fts: fix bug in find across filesystems
[gnulib.git] / ChangeLog
blob3702f75c187d7d1b6ad0158dbccddccbf4b7197c
1 2018-04-11  Paul Eggert  <eggert@cs.ucla.edu>
3         fts: fix bug in find across filesystems
4         This fixes a bug I introduced last summer.
5         Problem reported by Kamil Dudka in:
6         https://lists.gnu.org/r/bug-gnulib/2018-04/msg00033.html
7         * lib/fts.c (filesystem_type, dirent_inode_sort_may_be_useful)
8         (leaf_optimization):
9         New arg for file descriptor.  All callers changed.
10         (fts_build): Check for whether inodes should be sorted
11         before closing the directory.
13 2018-04-07  Bruno Haible  <bruno@clisp.org>
15         unicase/u*-context: Fix link errors with libunistring <= 0.9.9.
16         Reported by Genki Sky <sky@genki.is>.
17         * modules/unicase/u8-prefix-context (configure.ac): Require libunistring
18         version 0.9.10 or newer.
19         * modules/unicase/u8-suffix-context (configure.ac): Likewise.
20         * modules/unicase/u16-prefix-context (configure.ac): Likewise.
21         * modules/unicase/u16-suffix-context (configure.ac): Likewise.
22         * modules/unicase/u32-prefix-context (configure.ac): Likewise.
23         * modules/unicase/u32-suffix-context (configure.ac): Likewise.
25 2018-04-07  Bruno Haible  <bruno@clisp.org>
27         execute: Update comment.
28         * lib/execute.h (execute): Refer to spawn-pipe.h, not pipe.h.
30 2018-04-05  Paul Eggert  <eggert@cs.ucla.edu>
32         fts: treat CIFS like NFS
33         Problem reported by Kamil Dudka in:
34         https://lists.gnu.org/r/bug-gnulib/2018-04/msg00015.html
35         * lib/fts.c (S_MAGIC_CIFS): New macro.
36         (dirent_inode_sort_may_be_useful, leaf_optimization):
37         Treat CIFS like NFS.
39 2018-03-28  Bruno Haible  <bruno@clisp.org>
41         c-stack: Fix possible build failure on some platforms.
42         * lib/c-stack.c (die): Define whenever this function is referenced.
44 2018-03-28  Paul Eggert  <eggert@cs.ucla.edu>
46         time_rz: fix workaround for Mac OS X 10.6 infloop
47         Problems reported by Charles A. Roelli (Bug#27736#117).
48         * m4/time_rz.m4 (gl_TIME_RZ): Use a slightly different timestamp.
49         Also, discard output, which clutters the 'configure' log.
51 2018-03-27  Paul Eggert  <eggert@cs.ucla.edu>
53         havelib: port to Solaris 10 /bin/sh
54         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Use 'test ! EXPR'
55         instead of '! test EXPR'.
57 2018-03-26  Paul Eggert  <eggert@cs.ucla.edu>
59         time_rz: work around Mac OS X 10.6 infloop
60         * doc/posix-functions/localtime.texi:
61         * doc/posix-functions/localtime_r.texi: Mention the bug.
62         * lib/time_rz.c (localtime_rz): Work around the bug.  It’d be
63         better to fix localtime and localtime_r instead, but that would be
64         more work and is not needed to fix the Emacs problem.
65         * m4/time_rz.m4 (gl_TIME_RZ): Detect the bug.
67 2018-03-24  Jim Meyering  <meyering@fb.com>
69         test-version-etc.sh: don't use diff directly: use init.sh's compare
70         We'd rather not sacrifice readable "diff -u" output even for
71         "diff -c" output (not supported by busybox) or for even less
72         readable ed-style "diff" output.  So use init.sh's compare function
73         * tests/test-version-etc.sh: Source init.sh and add "." to path.
74         Remove "./" from invocation of test-version-etc, so we use path.
75         And s/diff/compare/.
76         * modules/version-etc-tests (Depends-on): Add test-framework-sh,
77         to get init.sh.
78         Prompted by Eric Blake's comments in
79         https://lists.gnu.org/r/sed-devel/2018-03/msg00015.html
81 2018-03-24  Bruno Haible  <bruno@clisp.org>
83         javacomp-script, javacomp: Add support for Java 10.
84         * m4/javacomp.m4 (gt_JAVACOMP): Accept source-version 10 and
85         target-version 10.
86         * lib/javaversion.h: Update comments.
87         * lib/javacomp.c (default_target_version, SOURCE_VERSION_BOUND,
88         source_version_index, get_goodcode_snippet, get_failcode_snippet,
89         TARGET_VERSION_BOUND, target_version_index,
90         corresponding_classfile_version): Accept source_version 10 and
91         target_version 10.
92         * lib/javacomp.h: Update comments accordingly.
94 2018-03-24  Bruno Haible  <bruno@clisp.org>
96         javacomp-script, javacomp: Update comments.
97         * m4/javacomp.m4: Update comments regarding gcj.
98         * lib/javacomp.h: Likewise.
100 2018-03-24  Bruno Haible  <bruno@clisp.org>
102         javacomp-script, javacomp: Fix support for Java 7, 8, 9.
103         * lib/javaversion.h: Update comments.
104         * lib/javacomp.h: Likewise.
105         * lib/javacomp.c (default_target_version, source_version_index,
106         get_goodcode_snippet, get_failcode_snippet): Recognize "9" instead of
107         "1.9".
108         (TARGET_VERSION_BOUND): Bump to 9.
109         (target_version_index, corresponding_classfile_version): Recognize "9"
110         instead of "1.9".
111         (get_source_version_for_javac): New function.
112         (is_envjavac_nongcj_usable, is_javac_usable): Add
113         source_version_for_javac argument.
114         (compile_java_class): Determine and pass source_version_for_javac.
115         * m4/javacomp.m4: Recognize version '9' instead of '1.9'. When invoking
116         $JAVAC or javac, pass '-source 1.6' instead of '-source 1.5' when
117         appropriate.
119 2018-03-23  Jim Meyering  <meyering@fb.com>
121         test-version-etc.sh: port to diff without -c
122         * tests/test-version-etc.sh: Don't use diff's -c option.
123         This caused spurious test failure on Alpine Linux, which
124         uses busybox's diff. Reported by Assaf Gordon in
125         https://lists.gnu.org/r/sed-devel/2018-03/msg00013.html
127 2018-03-23  Paul Eggert  <eggert@cs.ucla.edu>
129         c-stack: port to recent GCC build
130         Problem reported by The Fireplace (Bug#30913).
131         * lib/c-stack.c (die): Define only if used.
133 2018-03-20  Bruno Haible  <bruno@clisp.org>
135         euidaccess: Port to native Windows.
136         * lib/euidaccess.c (euidaccess): On native Windows, just use _access().
137         * posix-modules (exclude_for_mingw): Remove 'euidaccess'.
139 2018-03-19  Bruno Haible  <bruno@clisp.org>
141         javacomp: Add support for Java 7, 8, 9.
142         * lib/javacomp.c (default_target_version, SOURCE_VERSION_BOUND,
143         source_version_index, get_goodcode_snippet, get_failcode_snippet,
144         corresponding_classfile_version): Accept source_version 1,7, 1.8, 1.9
145         and target_version 1,7, 1.8, 1.9.
146         * lib/javacomp.h: Update comments accordingly.
148 2018-03-19  Bruno Haible  <bruno@clisp.org>
150         javacomp-script: Add support for Java 9.
151         * m4/javacomp.m4 (gt_JAVACOMP): Accept source-version 1.9 and
152         target-version 1.9.
154 2018-03-16  Bruno Haible  <bruno@clisp.org>
156         glob: Don't compile replacements on recent glibc systems.
157         * lib/glob.in.h: Use the usual idiom for the double-inclusion guard. If
158         REPLACE_GLOB is 0, include the system's <glob.h> and use
159         _GL_CXXALIAS_SYS.
160         * m4/glob.m4 (gl_GLOB): Set REPLACE_GLOB instead of GLOB_H. Accept
161         _GNU_GLOB_INTERFACE_VERSION 2 as well. Delete the file conf$$-globtest
162         inside the AC_RUN_IFELSE block. Remove GL_GENERATE_GLOB_H conditional.
163         * modules/glob (Dependencies): Test REPLACE_GLOB instead of GLOB_H.
164         Remove snippet/warn-on-use.
165         (configure.ac): Test REPLACE_GLOB instead of GLOB_H.
166         (Makefile.am): Create glob.h always. Update list of substitutions in
167         glob.h. Don't depend on $(WARN_ON_USE_H).
169 2018-03-16  Bruno Haible  <bruno@clisp.org>
171         glob: Fix link error on native Windows.
172         * modules/glob (Depends-on): Add 'lstat'.
174 2018-03-15  Bruno Haible  <bruno@clisp.org>
176         glob: Fix compilation error in C++ mode.
177         * lib/glob.in.h (_Restrict_): Define, like in regex.h and spawn.in.h.
179 2018-03-15  Bruno Haible  <bruno@clisp.org>
181         host-cpu-c-abi: Support for RISC-V CPU.
182         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): Recognize the various
183         riscv32 and riscv64 ABIs.
184         References:
185         https://github.com/riscv/riscv-toolchain-conventions
186         https://gcc.gnu.org/onlinedocs/gcc-7.3.0/gcc/RISC-V-Options.html
187         https://gnu-mcu-eclipse.github.io/toolchain/riscv/
189 2018-03-08  Paul Eggert  <eggert@cs.ucla.edu>
191         fflush: be more paranoid about libio.h change
192         Suggested by Eli Zaretskii in:
193         https://lists.gnu.org/r/emacs-devel/2018-03/msg00270.html
194         * lib/fbufmode.c (fbufmode):
195         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
196         (disable_seek_optimization, rpl_fflush):
197         * lib/fpending.c (__fpending):
198         * lib/fpurge.c (fpurge):
199         * lib/freadable.c (freadable):
200         * lib/freadahead.c (freadahead):
201         * lib/freading.c (freading):
202         * lib/freadptr.c (freadptr):
203         * lib/freadseek.c (freadptrinc):
204         * lib/fseeko.c (fseeko):
205         * lib/fseterr.c (fseterr):
206         * lib/fwritable.c (fwritable):
207         * lib/fwriting.c (fwriting):
208         Look at _IO_ftrylockfile as well as at _IO_EOF_SEEN.
210 2018-03-07  Paul Eggert  <eggert@cs.ucla.edu>
212         maint: write-file-hooks -> before-save-hook
213         write-file-hooks is obsolete since Emacs 22.1 (released June 2007) and
214         it's time to use the recommended replacement.
215         Problem reported by Glenn Morris in:
216         https://lists.gnu.org/r/bug-gnulib/2018-03/msg00008.html
217         * build-aux/announce-gen, build-aux/bootstrap:
218         * build-aux/do-release-commit-and-tag, build-aux/gendocs.sh:
219         * build-aux/git-version-gen, build-aux/gitlog-to-changelog:
220         * build-aux/gnu-web-doc-update, build-aux/gnupload:
221         * build-aux/move-if-change, build-aux/prefix-gnulib-mk:
222         * build-aux/update-copyright, build-aux/useless-if-before-free:
223         * build-aux/vc-list-files:
224         Update hook usage for files where Gnulib is the canonical source.
226 2018-03-05  Paul Eggert  <eggert@cs.ucla.edu>
228         binary-io: pacify gcc -Wunused-parameter
229         Problem reported by Reuben Thomas in:
230         https://lists.gnu.org/r/bug-gnulib/2018-03/msg00005.html
231         * lib/binary-io.h (__gl_setmode, __gl_setmode_check):
232         Use _GL_UNUSED where appropriate.
234         fflush: adjust to glibc 2.28 libio.h removal
235         Problem reported by Daniel P. Berrangé in:
236         https://lists.gnu.org/r/bug-gnulib/2018-03/msg00000.html
237         * lib/fbufmode.c (fbufmode):
238         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
239         (disable_seek_optimization, rpl_fflush):
240         * lib/fpending.c (__fpending):
241         * lib/fpurge.c (fpurge):
242         * lib/freadable.c (freadable):
243         * lib/freadahead.c (freadahead):
244         * lib/freading.c (freading):
245         * lib/freadptr.c (freadptr):
246         * lib/freadseek.c (freadptrinc):
247         * lib/fseeko.c (fseeko):
248         * lib/fseterr.c (fseterr):
249         * lib/fwritable.c (fwritable):
250         * lib/fwriting.c (fwriting):
251         Check _IO_EOF_SEEN instead of _IO_ftrylockfile.
252         * lib/stdio-impl.h (_IO_IN_BACKUP) [_IO_EOF_SEEN]:
253         Define if not already defined.
255 2018-02-27  Paul Eggert  <eggert@cs.ucla.edu>
257         environ: fix link error on 32-bit Cygwin
258         Problem reported for GNU Emacs by Ken Brown in:
259         https://lists.gnu.org/r/emacs-devel/2018-02/msg00765.html
260         * lib/unistd.in.h (environ) [__i386__]: Do not redeclare.
262 2018-02-24  Bruno Haible  <bruno@clisp.org>
264         mbrtowc tests: Fix regression on glibc.
265         Reported by Bernhard Voelker.
266         * tests/test-mbrtowc.c (main): Fix expected value of wc.
268 2018-02-24  Bruno Haible  <bruno@clisp.org>
270         striconveha, uniconv/*: Avoid test failures on musl libc.
271         * tests/iconvsupport.c: New file.
272         * tests/test-striconveha.c (main): Skip autodetect_jp tests if iconv()
273         does not support the ISO-2022-JP-2 encoding.
274         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
275         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
276         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
277         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
278         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
279         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
280         * modules/striconveha-tests (Files): Add tests/iconvsupport.c.
281         (Makefile.am): Link test-striconveha with iconvsupport.o.
282         * modules/uniconv/u8-conv-from-enc-tests (Files): Add
283         tests/iconvsupport.c.
284         (Makefile.am): Link test-u8-conv-from-enc with iconvsupport.o.
285         * modules/uniconv/u8-strconv-from-enc-tests (Files): Add
286         tests/iconvsupport.c.
287         (Makefile.am): Link test-u8-strconv-from-enc with iconvsupport.o.
288         * modules/uniconv/u16-conv-from-enc-tests (Files): Add
289         tests/iconvsupport.c.
290         (Makefile.am): Link test-u16-conv-from-enc with iconvsupport.o.
291         * modules/uniconv/u16-strconv-from-enc-tests (Files): Add
292         tests/iconvsupport.c.
293         (Makefile.am): Link test-u16-strconv-from-enc with iconvsupport.o.
294         * modules/uniconv/u32-conv-from-enc-tests (Files): Add
295         tests/iconvsupport.c.
296         (Makefile.am): Link test-u32-conv-from-enc with iconvsupport.o.
297         * modules/uniconv/u32-strconv-from-enc-tests (Files): Add
298         tests/iconvsupport.c.
299         (Makefile.am): Link test-u32-strconv-from-enc with iconvsupport.o.
301 2018-02-24  Bruno Haible  <bruno@clisp.org>
303         localename: Add support for musl libc.
304         * m4/localename.m4 (gl_LOCALENAME): Check for <langinfo.h>.
305         * lib/localename.c (gl_locale_name_thread_unsafe): Use NL_LOCALE_NAME
306         on Linux platforms which define NL_LOCALE_NAME.
308 2018-02-24  Bruno Haible  <bruno@clisp.org>
310         mbrtowc tests: Don't make assumptions about the charset the C locale.
311         * tests/test-mbrtowc.c (main): For bytes >= 0x80, don't assume a
312         particular mapping in the C locale.
314 2018-02-24  Bruno Haible  <bruno@clisp.org>
316         ptsname_r: Don't expect that this function sets errno.
317         * tests/test-ptsname_r.c (test_errors): Don't test errno after return
318         from ptsname_r().
319         * doc/glibc-functions/ptsname_r.texi: Mention the issue.
321 2018-02-23  Bruno Haible  <bruno@clisp.org>
323         xmalloca: pacify gcc -Wbad-function-cast
324         * lib/xmalloca.h (xmalloca): Insert intermediate cast here as well.
326 2018-02-23  Paul Eggert  <eggert@cs.ucla.edu>
328         nl_langinfo: pacify gcc -Wunused-function
329         * lib/nl_langinfo.c (ctype_codeset): Do not define if
330         REPLACE_NL_LANGINFO && !GNULIB_defined_CODESET, as it is unused in
331         this case.  Without this change, I got a diagnostic when building
332         coreutils on Fedora 27 with gcc 7.3.1 20180130.
334         same: pacify gcc -Wunused-variable
335         * lib/same.c (same_nameat) [!CHECK_TRUNCATION]:
336         Omit unused variable.
338         malloca: pacify gcc -Wbad-function-cast
339         * lib/malloca.h (malloca): Pacify gcc -Wbad-function-cast
340         diagnostic that I got on Fedora 27 with gcc 7.3.1 20180130.
341         To pacify GCC, I had to cast alloca’s result to some type other
342         than void * before casting that to uintptr_t.
344 2018-02-20  Paul Eggert  <eggert@cs.ucla.edu>
346         utimecmp: new function utimecmpat
347         * lib/utimecmp.c: Include fcntl.h, sys/stat.h and dirname.h.
348         Do not include utimens.h.
349         (utimecmpat): New function, generalizing utimecmp.
350         (utimecmp): Now a thin layer around utimecmpat.
351         * modules/utimecmp (Depends-on): Depend on dirname-lgpl, fstatat,
352         utimensat instead of on lstat and utimens.
354         same: new function same_nameat
355         * lib/same.c: Include fcntl.h.
356         * lib/same.c (same_nameat): New function, generalizing same_name.
357         (same_name): Now a thin layer around same_nameat.
358         * m4/same.m4 (gl_SAME): Check for fpathconf, not pathconf.
359         * modules/same (Depends-on): Depend on fstatat, openat.
361 2018-02-18  Eric Gallager  <egall@gwmail.gwu.edu>  (tiny change)
363         warnings: Add support for Objective C.
364         * m4/warnings.m4 (gl_UNKNOWN_WARNINGS_ARE_ERRORS(Objective C)): New
365         macro.
367 2018-02-17  Bruno Haible  <bruno@clisp.org>
369         lock: Fix test-once1 crash on FreeBSD11.
370         * lib/glthread/lock.h: On FreeBSD, test the weak value of the symbol
371         'pthread_create', not 'pthread_cancel'.
373 2018-02-17  Bruno Haible  <bruno@clisp.org>
375         lock: Add test of gl_once.
376         * tests/test-once.c: New file.
377         * modules/lock-tests (Files): Add it.
378         (Makefile.am): Build and test programs 'test-once1' and 'test-once2'.
380 2018-02-17  Bruno Haible  <bruno@clisp.org>
382         thread: Fix compilation error on IRIX.
383         * lib/glthread/thread.h: Include <unistd.h>. Include <signal.h> when
384         needed; include it outside the C++ extern "C" {} block.
385         * doc/posix-headers/pthread.texi: Mention the problem with
386         pthread_atfork on IRIX.
388 2018-02-04  Bruno Haible  <bruno@clisp.org>
390         nl_langinfo: Override the system's nl_langinfo() when needed.
391         Reported by Jim Meyering.
392         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Set REPLACE_NL_LANGINFO=1
393         also when HAVE_LANGINFO_T_FMT_AMPM or HAVE_LANGINFO_ALTMON is 0.
395 2018-02-04  Bruno Haible  <bruno@clisp.org>
397         signal-h, monetary, strings: Fix build failure in some cases.
398         Reported by Tim Rühsen <tim.ruehsen@gmx.de>.
399         * modules/signal-h (Makefile.am): In the GNULIB_* substitutions, use '/'
400         as delimiter in sed command, not '|'.
401         * modules/monetary (Makefile.am): Likewise.
402         * modules/strings (Makefile.am): Likewise.
404 2018-02-03  Jim Meyering  <meyering@fb.com>
406         maint.mk: exempt "/proc/filesystems" from "file system" syntax check
407         * top/maint.mk (sc_file_system): Don't complain about
408         "/proc/filesystems".
410 2018-02-03  Bruno Haible  <bruno@clisp.org>
412         stdlib: Fix compilation error on OpenIndiana.
413         * lib/stdlib.in.h: Before including <sys/loadavg.h>, include
414         <sys/time.h>.
415         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
416         * m4/getloadavg.m4 (gl_GETLOADAVG): Likewise.
418 2018-02-03  Bruno Haible  <bruno@clisp.org>
420         host-cpu-c-abi: Avoid use of 'grep -E' on OpenIndiana.
421         * m4/asm-underscore.m4 (gl_ASM_SYMBOL_PREFIX): Require AC_PROG_EGREP,
422         and use $EGREP instead of 'grep -E'.
423         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): Use 'grep' instead of
424         'grep -E'.
426 2018-02-02  Paul Eggert  <eggert@cs.ucla.edu>
428         malloca: Add a compile-time verification.
429         * lib/malloca.c (small_t): Verify that it is wide enough.
430         * modules/malloca (Depends-on): Add verify.
432 2018-02-02  Bruno Haible  <bruno@clisp.org>
434         malloca: Add an argument check.
435         Suggested by Paul Eggert.
436         * lib/malloca.c (freea): Check against an invalid argument.
438 2018-02-02  Bruno Haible  <bruno@clisp.org>
440         localename: Add support for OpenIndiana.
441         * lib/localename.c (gl_locale_name_thread_unsafe): Add code for
442         Solaris 11 variants with uselocale() but without getlocalename_l().
444 2018-02-02  Bruno Haible  <bruno@clisp.org>
446         malloca, xmalloca: Make multithread-safe.
447         Reported by Florian Weimer <fweimer@redhat.com>.
448         Implements an idea by Ondřej Bílka <neleai@seznam.cz>.
449         * lib/malloca.h (malloca): In the stack allocation case, return a
450         pointer that is a multiple of 2 * sa_alignment_max.
451         (sa_increment): Remove enum item.
452         * lib/xmalloca.h (xmalloca): In the stack allocation case, return
453         a pointer that is a multiple of 2 * sa_alignment_max.
454         * lib/malloca.c (NO_SANITIZE_MEMORY): Remove macro.
455         (MAGIC_NUMBER, MAGIC_SIZE, preliminary_header, HEADER_SIZE, header,
456         HASH_TABLE_SIZE, mmalloca_results): Remove.
457         (small_t): New type.
458         (mmalloca, free): Rewritten.
459         * lib/malloca.valgrind: Remove file.
460         * modules/malloca (Files): Remove it.
461         (Depends-on): Remove verify.
463 2018-01-31  Bruno Haible  <bruno@clisp.org>
465         environ: Fix link error on 64-bit Cygwin.
466         * lib/unistd.in.h (environ): On Cygwin, redeclare with the
467         __declspec(dllimport) attribute.
468         * doc/posix-functions/environ.texi: Mention the Cygwin problem.
470 2018-01-30  Bruno Haible  <bruno@clisp.org>
472         get-rusage-data: Add support for Minix 3.
473         * lib/get-rusage-data.c (get_rusage_data): Return 0 on Minix.
475 2018-01-30  Bruno Haible  <bruno@clisp.org>
477         vma-iter: Add support for Minix 3.
478         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Minix.
479         * lib/vma-iter.c: On Minix, read /proc/<pid>/map.
481 2018-01-27  Bruno Haible  <bruno@clisp.org>
483         Fix malfunction of socket functions on HP-UX in 64-bit mode.
484         * m4/socketlib.m4 (gl_SOCKETLIB): Add comment.
485         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define
486         _HPUX_ALT_XOPEN_SOCKET_API.
487         * modules/accept (Depends-on): Add 'extensions'.
488         * modules/getpeername (Depends-on): Likewise.
489         * modules/getsockname (Depends-on): Likewise.
490         * modules/getsockopt (Depends-on): Likewise.
491         * modules/recvfrom (Depends-on): Likewise.
492         * doc/posix-functions/accept.texi: Mention the HP-UX socklen_t problem.
493         * doc/posix-functions/getpeername.texi: Likewise.
494         * doc/posix-functions/getsockname.texi: Likewise.
495         * doc/posix-functions/getsockopt.texi: Likewise.
496         * doc/posix-functions/recvfrom.texi: Likewise.
498 2018-01-27  Bruno Haible  <bruno@clisp.org>
500         getsockname tests: More tests.
501         * tests/test-getsockname.c (open_server_socket): New function, mostly
502         copied from test-poll.c.
503         (main): Check that getsockname fills in addr.
504         * modules/getsockname-tests (Depends-on): Add the necessary
505         dependencies.
506         (test_getsockname_LDADD): Link with $(INET_PTON_LIB).
508 2018-01-26  Paul Eggert  <eggert@cs.ucla.edu>
510         manywarnings: fix maintainer comment
511         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Fix comment so that
512         it does not mistakenly think that ‘-1)’ is an option.
514 2018-01-26  Bruno Haible  <bruno@clisp.org>
516         langinfo: Fix last commit.
517         Reported by Tim Rühsen <tim.ruehsen@gmx.de>.
518         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_ALTMON.
520 2018-01-24  Bruno Haible  <bruno@clisp.org>
522         langinfo, nl_langinfo: Add support for alternative month names.
523         * m4/langinfo_h.m4 (gl_LANGINFO_H): Define HAVE_LANGINFO_ALTMON.
524         * lib/langinfo.in.h (ALTMON_1...ALTMON_12): New macros.
525         * lib/nl_langinfo.c (rpl_nl_langinfo): Treat ALTMON_i like MON_i.
526         * tests/test-nl_langinfo.c (main): Test ALTMON_*.
527         * doc/posix-headers/langinfo.texi: Document support of ALTMON_*.
528         * doc/posix-functions/nl_langinfo.texi: Likewise.
530 2018-01-23  Paul Eggert  <eggert@cs.ucla.edu>
532         Merge strftime.c changes from glibc
533         This incorporates:
534         2017-11-14 [BZ #10871] Implement alternative month names
535         2017-11-14 [BZ #10871] Abbreviated alternative month names (%Ob)
536         2017-06-20 Use locale_t, not __locale_t, throughout glibc
537         * lib/nstrftime.c (ABALTMON_1) [!COMPILE_WIDE]: New macro.
538         (LOCALE_PARAM) [_LIBC && USE_IN_EXTENDED_LOCALE_MODEL]:
539         Use locale_t, not __locale_t.
540         (a_altmonth, f_altmonth, aam_len) [_NL_CURRENT]: New macros.
541         (__strftime_internal): Add support for alternate months.
543 2018-01-23  Bruno Haible  <bruno@clisp.org>
545         doc: Mention another prerequisite for using Gnulib.
546         Reported at <https://stackoverflow.com/questions/48378214/>.
547         * doc/gnulib-tool.texi (Initial import): Mention requirement to use
548         AC_CONFIG_HEADERS.
550 2018-01-22  Mathieu Lirzin  <mthl@gnu.org>
552         build: GuixSD doesn't have /bin/bash
553         * Makefile (SHELL): Search 'bash' in the PATH environment variable.
555 2018-01-21  Bruno Haible  <bruno@clisp.org>
557         Avoid test failures on Microsoft Windows Subsystem for Linux.
558         * tests/test-fcntl.c (main): Allow a different errno.
559         * tests/test-rename.h (test_rename): Likewise.
560         * tests/test-renameat.c (main): Likewise.
561         * tests/test-renameat2.c (main): Likewise.
563 2018-01-14  Paul Eggert  <eggert@cs.ucla.edu>
565         filenamecat: make base a suffix of result
566         * lib/filenamecat-lgpl.c (longest_relative_suffix): Remove.
567         (mfile_name_concat): Always make BASE a suffix of the result, as
568         cp expects this.  To implement this, separate with '.' instead of
569         '/' in some rare cases.  Clarify spec to say ./BASE not BASE.
570         * tests/test-filenamecat.c (main): Adjust tests to match
571         current behavior.  Check that BASE_IN_RESULT points to
572         a copy of BASE and is a suffix of the resultk, and that DIR
573         is a prefix of the result that is no longer than the prefix
574         indicated by BASE_IN_RESULT.
576 2018-01-04  Mathieu Lirzin  <mthl@gnu.org>
578         update-copyright: Handle use of ©
579         * build-aux/update-copyright ($circle_c_re): Update regex to
580         handle use of © in headers.
582 2018-01-04  Tim Rühsen  <tim.ruehsen@gmx.de>
584         Fix -Wundef warning in user-included header lib/cdefs.h.
585         * lib/cdefs.h: Check if defined before using __USE_FORTIFY_LEVEL.
587 2018-01-04  Bruno Haible  <bruno@clisp.org>
589         pthread_sigmask: Avoid compilation error on mingw.
590         Reported by Tim Rühsen <tim.ruehsen@gmx.de>.
591         * lib/signal.in.h (pthread_sigmask): Don't declare it it's defined as a
592         macro.
594 2018-01-03  Paul Eggert  <eggert@cs.ucla.edu>
596         test-framework-sh: ‘ps -ef’, not ‘ps ef’
597         * tests/init.sh (rand_bytes_): Put ‘-’ before new-style ps options.
598         Suggested by Bob Proulx (Bug#29968).
599         * build-aux/mktempd (rand_bytes): Make it like tests/init.sh.
601 2018-01-02  Eric Blake  <eblake@redhat.com>
603         stat-time: silence -Wunused-parameter regression
604         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
605         Prefer attribute over cast-to-void.
606         (stat_time_normalize): Mark st as potentially unused.
608 2018-01-02  Paul Eggert  <eggert@cs.ucla.edu>
610         test-framework-sh: avoid netstat
611         Problem reported by Kristýna Streitová (Bug#29947).
612         * tests/init.sh (rand_bytes_): Stop using netstat, as it's
613         deprecated on SuSE and it's not that important anyway.
615 2018-01-01  Jim Meyering  <meyering@fb.com>
617         update-copyright: add code to handle more special cases
618         After running "make update-copyright" this year, five files
619         required additional manual changes.  Automate those adjustments
620         for next year.
621         * Makefile (_year_and_prev): Define.
622         (update-copyright): Add perl commands to induce this year's post-
623         update-copyright adjustments.
625 2018-01-01  Paul Eggert  <eggert@cs.ucla.edu>
627         version-etc: new year
628         * build-aux/gendocs.sh (version):
629         * doc/gendocs_template:
630         * doc/gendocs_template_min:
631         * doc/gnulib.texi:
632         * lib/version-etc.c (COPYRIGHT_YEAR):
633         Update copyright dates by hand in templates and the like.
635         maint: fix 'make update-copyright'
636         * Makefile (update-copyright): Adjust to 2016-11-23 change
637         to config/srclist-update, which changed the format of srclist.txt.
639 2017-12-30  Paul Eggert  <eggert@cs.ucla.edu>
641         chdir-safer: remove this module
642         * MODULES.html.sh (func_all_modules): Remove chdir-safer.
643         * NEWS: Document removal.
644         * lib/chdir-safer.c, lib/chdir-safer.h, m4/afs.m4, m4/chdir-safer.m4:
645         * modules/chdir-safer: Remove these files.
647 2017-12-29  Samuel Thibault  <samuel.thibault@gnu.org>
649         Add cross-compilation results for GNU/Hurd.
650         * m4/calloc.m4: Add GNU/Hurd guess.
651         * m4/cbrtl.m4: Likewise.
652         * m4/ceil.m4: Likewise.
653         * m4/ceilf.m4: Likewise.
654         * m4/ceill.m4: Likewise.
655         * m4/chown.m4: Likewise.
656         * m4/duplocale.m4: Likewise.
657         * m4/exp2l.m4: Likewise.
658         * m4/expm1.m4: Likewise.
659         * m4/fchdir.m4: Likewise.
660         * m4/floor.m4: Likewise.
661         * m4/floorf.m4: Likewise.
662         * m4/fmod.m4: Likewise.
663         * m4/fmodf.m4: Likewise.
664         * m4/fmodl.m4: Likewise.
665         * m4/getcwd.m4: Likewise.
666         * m4/getgroups.m4: Likewise.
667         * m4/gettimeofday.m4: Likewise.
668         * m4/hypot.m4: Likewise.
669         * m4/hypotf.m4: Likewise.
670         * m4/hypotl.m4: Likewise.
671         * m4/link-follow.m4: Likewise.
672         * m4/link.m4: Likewise.
673         * m4/linkat.m4: Likewise.
674         * m4/log.m4: Likewise.
675         * m4/log10.m4: Likewise.
676         * m4/log10f.m4: Likewise.
677         * m4/log1p.m4: Likewise.
678         * m4/log1pf.m4: Likewise.
679         * m4/log1pl.m4: Likewise.
680         * m4/log2.m4: Likewise.
681         * m4/log2f.m4: Likewise.
682         * m4/logf.m4: Likewise.
683         * m4/lstat.m4: Likewise.
684         * m4/malloc.m4: Likewise.
685         * m4/mbrlen.m4: Likewise.
686         * m4/mbrtowc.m4: Likewise.
687         * m4/mkdir.m4: Likewise.
688         * m4/mkfifo.m4: Likewise.
689         * m4/mknod.m4: Likewise.
690         * m4/mkstemp.m4: Likewise.
691         * m4/modf.m4: Likewise.
692         * m4/modff.m4: Likewise.
693         * m4/modfl.m4: Likewise.
694         * m4/printf.m4: Likewise.
695         * m4/pselect.m4: Likewise.
696         * m4/ptsname.m4: Likewise.
697         * m4/putenv.m4: Likewise.
698         * m4/readlink.m4: Likewise.
699         * m4/realloc.m4: Likewise.
700         * m4/remainder.m4: Likewise.
701         * m4/remainderf.m4: Likewise.
702         * m4/remainderl.m4: Likewise.
703         * m4/rmdir.m4: Likewise.
704         * m4/round.m4: Likewise.
705         * m4/roundf.m4: Likewise.
706         * m4/roundl.m4: Likewise.
707         * m4/select.m4: Likewise.
708         * m4/setenv.m4: Likewise.
709         * m4/signbit.m4: Likewise.
710         * m4/sleep.m4: Likewise.
711         * m4/stat.m4: Likewise.
712         * m4/strerror.m4: Likewise.
713         * m4/strtok_r.m4: Likewise.
714         * m4/symlink.m4: Likewise.
715         * m4/symlinkat.m4: Likewise.
716         * m4/trunc.m4: Likewise.
717         * m4/truncf.m4: Likewise.
718         * m4/truncl.m4: Likewise.
719         * m4/tzset.m4: Likewise.
720         * m4/ungetc.m4: Likewise.
721         * m4/usleep.m4: Likewise.
722         * m4/wcwidth.m4: Likewise.
724 2017-12-28  Bruno Haible  <bruno@clisp.org>
726         gnulib-tool: Make --conditional-dependencies work better.
727         Reported by Dmitry Selyutin <ghostman.sd@gmail.com>.
728         * gnulib-tool (Options): Don't reject the combination of
729         --conditional-dependencies with --with-tests.
730         (func_emit_autoconf_snippets): Add argument referenceable_modules.
731         Don't reference $modules.
732         (func_import, func_create_testdir): Pass it.
734 2017-12-19  Paul Eggert  <eggert@cs.ucla.edu>
736         regex: use re_malloc etc. consistently
737         Problem and original patch reported by Arnold Robbins in:
738         https://sourceware.org/ml/libc-alpha/2017-12/msg00241.html
739         * lib/regcomp.c (re_comp):
740         * lib/regexec.c (push_fail_stack, build_trtable, match_ctx_clean):
741         Use re_malloc/re_realloc/re_free instead of malloc/realloc/free.
743 2017-12-15  Tim Rühsen  <tim.ruehsen@gmx.de>
744             Paul Eggert  <eggert@cs.ucla.edu>
746         glob: Silence warning about void pointer arithmetic.
747         * lib/glob.c (glob): Use a 'char *', not a 'void *', in pointer
748         arithmetic.
750 2017-12-15  Bruno Haible  <bruno@clisp.org>
752         spawn-pipe: Silence a clang warning.
753         Reported by Tim Rühsen <tim.ruehsen@gmx.de>.
754         * lib/spawn-pipe.c: Disable clang -Wconditional-uninitialized warnings
755         in this file.
757 2017-12-12  Paul Eggert  <eggert@cs.ucla.edu>
759         explicit_bzero: port to macOS + Clang 9.0.0
760         Problem reported by Marcus Johnson (Bug#29658).
761         * lib/explicit_bzero.c (explicit_bzero) [__clang__]:
762         Don’t use asm.
764 2017-12-11  Reuben Thomas  <rrt@sc3d.org>
766         doc: Improve explanation of supporting relocatable libraries.
767         * doc/relocatable-maint.texi (Supporting Relocation): Explain
768         properly how to build the relocatable module for
769         libraries. (Method and example code from Bruno Haible.)
771 2017-12-11  Reuben Thomas  <rrt@sc3d.org>
773         doc: Use better texinfo tags in a few cases.
774         * doc/gnulib.texi (Extending Gnulib): Use @option or @command
775         instead of @samp in a few places.
777 2017-12-11  Bruno Haible  <bruno@clisp.org>
779         unistr/base: Update comment.
780         * lib/unistr.in.h: Update comment about u*_mbtouc_unsafe functions.
782 2017-12-10  Pádraig Brady  <P@draigBrady.com>
784         test-faccessat.c: unlink temp file to avoid subsequent test failure
785         * tests/test-faccessat.c: Remove the file to avoid failure
786         to open the file on subsequent runs due to being created
787         with no permissions.
789 2017-12-10  Bruno Haible  <bruno@clisp.org>
791         doc: New sect. "Modifying the build rules of a Gnulib import directory".
792         * doc/gnulib-tool.texi (Modified build rules): New node.
794 2017-12-10  Bruno Haible  <bruno@clisp.org>
796         doc: Tweak wording.
797         * doc/gnulib-tool.texi (Multiple instances): Talk about "programs", not
798         "binaries".
800 2017-12-05  Sam Steingold  <sds@gnu.org>
801             Bruno Haible  <bruno@clisp.org>
803         no-c++: Avoid "egrep: repetition-operator operand invalid" error.
804         * m4/no-c++.m4 (gt_NO_CXX): Don't use '+' characters nor spaces in the
805         AC_EGREP_CPP pattern.
807 2017-12-03  Bruno Haible  <bruno@clisp.org>
809         all: Replace more http URLs by https URLs.
810         * lib/sm3.h, lib/sm3.c, tests/test-sm3.c: Use https: URL.
811         * lib/unigbrk/u-grapheme-breaks.h: Likewise.
812         * lib/unigbrk/uc-grapheme-breaks.c: Likewise.
813         * tests/unigbrk/test-uc-grapheme-breaks.c: Likewise.
815 2017-11-28  Paul Eggert  <eggert@cs.ucla.edu>
817         Port better to CentOS 5
818         Problems reported by Tom G. Christensen in:
819         https://lists.gnu.org/r/bug-gnulib/2017-11/msg00053.html
820         * doc/glibc-functions/strverscmp.texi (strverscmp):
821         Document strverscmp bug with glibc 2.9 and earlier.
822         * doc/posix-functions/tzset.texi (tzset):
823         Document that TZ with angle brackets is POSIX-2001 and later.
824         * tests/test-nstrftime.c: Include unistd.h.
825         (TZ_ANGLE_BRACKETS_SHOULD_WORK): New macro.
826         (TZ): Use it to skip tests with angle brackets in TZ,
827         for older systems.
829         stat: add missing module dependencies
830         * modules/lstat, modules/stat, modules/utimensat (Depends-on):
831         Add stat-time.
833 2017-11-28  Benno Schulenberg  <bensberg@telfort.nl>
835         stat: fix compilation failure on macOS Sierra
836         Reported by Marius Schamschula <mschamschula@gmail.com> in:
837         https://savannah.gnu.org/bugs/?52546
838         * lib/stat.c: Add missing include of stat-time.h.
840 2017-11-28  Jim Meyering  <meyering@fb.com>
842         test-faccessat.c: correct BASE definition to avoid parallel test failure
843         * tests/test-faccessat.c (BASE): Define using this file's name, not
844         that of test-lstat.c.  Using the latter caused this test to fail
845         sometimes when run concurrently with test-lstat.
847 2017-11-27  Daiki Ueno  <ueno@gnu.org>
849         unicase: fix VPATH build
850         * modules/unicase/special-casing (Makefile.am): Ensure that the
851         base directory is created when generating
852         unicase/special-casing.h.
854 2017-11-27  Daiki Ueno  <ueno@gnu.org>
856         libunistring: update to Unicode 9.0.0
857         * lib/gen-uni-tables.c (fill_properties): Recognize
858         Sentence_Terminal and Prepended_Concatenation_Mark.
859         (is_property_default_ignorable_code_point): Exclude U+08E2.
860         (fill_arabicshaping): Allow missing whitespace when parsing;
861         recognize "AFRICAN FEH", "AFRICAN QAF", and "AFRICAN MOON".
862         (output_blocks): Increase the element size of the level1 table to
863         accommodate more blocks.
864         (get_lbp): Recognize ZWJ, E_Base, and E_Modifier characters;
865         Update each class according to the standard.
866         (get_wbp): Recognize ZWJ, E_Base, E_Modifier, Glue_After_Zwj, and
867         E_Base_GAZ characters.
868         (output_gbp_table): Recognize ZWJ, E_Base, E_Modifier,
869         Glue_After_Zwj, and E_Base_GAZ characters.
870         * lib/unictype.in.h (UC_JOINING_GROUP_AFRICAN_FEH)
871         (UC_JOINING_GROUP_AFRICAN_QAF, UC_JOINING_GROUP_AFRICAN_MOON): New
872         enum value.
873         * lib/unilbrk/lbrktables.h (LBP_ZWJ, LBP_EB, LBP_EM): New enum
874         value.
875         * lib/unilbrk/lbrktables.c (unilbrk_table): Extend the table with
876         LBP_ZWJ, LBP_EB, and LBP_EM.
877         * lib/uniwbrk.in.h (WBP_ZWJ, WBP_EB, WBP_EM, WBP_GAZ, WBP_EBG): New
878         enum value.
879         * lib/uniwbrk/u-wordbreaks.h: Implement WB3c, WB15, and WB16.
880         * lib/uniwbrk/wbrktable.h (uniwbrk_prop_index): New variable
881         declaration.
882         * lib/uniwbrk/wbrktable.c (uniwbrk_prop_index): New variable.
883         (uniwbrk_table): Implement WB14.
884         * tests/uniwbrk/test-uc-wordbreaks.c (wordbreakproperty_to_string):
885         Check WBP_ZWJ, WBP_EB, WBP_EM, WBP_GAZ, and WBP_EBG.
886         * modules/unigbrk/u{32,16,8}-grapheme-breaks: No longer depend on
887         uc-is-grapheme-break.
888         * modules/unigbrk/uc-grapheme-breaks: New module.
889         * modules/unigbrk/uc-grapheme-breaks-tests: New module.
890         * lib/unigbrk.in.h (GBP_ZWJ, GBP_EB, GBP_EM, GBP_GAZ, GBP_EBG): New
891         enum value.
892         (uc_grapheme_breaks): New function, replacing uc_is_grapheme_break.
893         * lib/unigbrk/u-grapheme-breaks.h: New file.
894         * lib/unigbrk/u{32,16,8}-grapheme-breaks.c: Rewrite using
895         u-grapheme-breaks.h instead of uc_is_grapheme_break.
896         * lib/unigbrk/uc-grapheme-breaks.c: New file.
897         * lib/unigbrk/uc-is-grapheme-break.c: Partially update to TR29 rev
898         29.
899         * tests/unigbrk/test-uc-gbrk-prop.c
900         (graphemebreakproperty_to_string): Check GBP_ZWJ, GBP_EB, GBP_EM,
901         GBP_GAZ, and GBP_EBG.
902         * tests/unigbrk/test-uc-grapheme-breaks.c: New test.
903         * tests/unigbrk/test-uc-is-grapheme-break.c
904         (graphemebreakproperty_to_string): Check GBP_ZWJ, GBP_EB, GBP_EM,
905         GBP_GAZ, and GBP_EBG.
906         (main): Skip unsupported rules involving 3 or more characters,
907         namely GB10, GB12, and GB13.
908         * lib/uniwidth/width.c (nonspacing_table_data): Update.
909         * all generated files under lib/uni* and tests/uni*: Regenerate.
910         * all the affected modules: Bump version.
912 2017-11-26  Bruno Haible  <bruno@clisp.org>
914         strfmon_l: Fix compilation error with glibc 2.5.
915         Reported by Tom G. Christensen <tgc@jupiterrise.com>
916         in <https://lists.gnu.org/r/bug-gnulib/2017-11/msg00051.html>.
917         * lib/monetary.in.h: Include also <locale.h>.
919 2017-11-24  Paul Eggert  <eggert@cs.ucla.edu>
921         posixtm: remove PDS_LEADING_YEAR
922         This changes the API slightly, in a hopefully-innocuous way.
923         Without this change the code had undefined behavior when a
924         caller specified neither PDS_LEADING_YEAR nor PDS_TRAILING_YEAR.
925         Problem reported by Pádraig Brady in:
926         https://lists.gnu.org/r/bug-gnulib/2017-11/msg00048.html
927         * NEWS: Mention this.
928         * lib/posixtm.c (posix_time_parse): Treat the absence of
929         PDS_TRAILING_YEAR as if PDS_LEADING_YEAR were present.
930         * lib/posixtm.h (PDS_LEADING_YEAR): Remove (actually, leave it
931         present, but define it as zero, for compatibility with existing
932         source code).  All other PDS_* values moved up.
933         * tests/test-posixtm.c (LY): New macro.
934         (T): Use it.  Do not expect a particular numeric encoding
935         for PDS_CENTURY etc.
937 2017-11-23  Paul Eggert  <eggert@cs.ucla.edu>
939         stat: work around Solaris bug with tv_nsec < 0
940         * doc/posix-functions/fstat.texi (fstat):
941         * doc/posix-functions/fstatat.texi (fstatat):
942         * doc/posix-functions/lstat.texi (lstat):
943         * doc/posix-functions/stat.texi (stat):
944         Mention Solaris 11 bug.
945         * lib/fstat.c, lib/fstatat.c, lib/lstat.c: Include stat-time.h.
946         * lib/fstat.c (rpl_fstat) [!WINDOWS_NATIVE]:
947         * lib/lstat.c (rpl_lstat):
948         * lib/stat.c (rpl_stat):
949         Normalize resulting timestamps.
950         * lib/fstatat.c (normal_fstatat): New function.
951         (rpl_fstatat): Use it.
952         * lib/stat-time.h: Include intprops.h, errno.h, stddef.h.
953         (stat_time_normalize): New function.
954         * m4/fstat.m4 (gl_FUNC_FSTAT):
955         * m4/fstatat.m4 (gl_FUNC_FSTATAT):
956         * m4/lstat.m4 (gl_FUNC_LSTAT):
957         * m4/stat.m4 (gl_FUNC_STAT):
958         Replace on Solaris.
959         * modules/fstat (Depends-on):
960         * modules/fstatat (Depends-on):
961         Add stat-time.
962         * modules/stat-time (Depends-on): Add errno, intprops.
964 2017-11-22  Paul Eggert  <eggert@cs.ucla.edu>
966         regex: merge from glibc
967         * lib/regcomp.c (init_word_char): Add comments.
969 2017-11-20  Paul Eggert  <eggert@cs.ucla.edu>
971         regex: merge from glibc
972         * lib/regcomp.c (__regcomp, __regfree) [_LIBC]: Now hidden.
973         * lib/regex_internal.h (internal_function): Remove.
974         All uses removed.
976 2017-11-20  Bruno Haible  <bruno@clisp.org>
978         crypto/gc-sm3: Fix buffer overrun.
979         * lib/gc-gnulib.c (MAX_DIGEST_SIZE): Bump to 32.
980         Reported by Coverity.
982 2017-11-12  Jim Meyering  <meyering@fb.com>
984         maint: shorten https://lists.gnu.org/archive/html/... links
985         Each /archive/html/ part can be replace with /r/.
986         Run this to induce the change:
987         git grep -l archive/html|xargs perl -pi -e 's,/archive/html/,/r/,g'
988         * ChangeLog: Perform that substitution.
989         * Makefile: Likewise.
990         * STATUS-libposix: Likewise.
991         * build-aux/bootstrap: Likewise.
992         * doc/maintain.texi: Likewise.
993         * gnulib-tool: Likewise.
994         * lib/allocator.h: Likewise.
995         * lib/argp-ba.c: Likewise.
996         * lib/argp-pv.c: Likewise.
997         * lib/canon-host.c: Likewise.
998         * lib/canonicalize-lgpl.c: Likewise.
999         * lib/float.in.h: Likewise.
1000         * lib/fstat.c: Likewise.
1001         * lib/getdelim.c: Likewise.
1002         * lib/getprogname.c: Likewise.
1003         * lib/glthread/thread.h: Likewise.
1004         * lib/intprops.h: Likewise.
1005         * lib/mbsrtowcs-state.c: Likewise.
1006         * lib/safe-read.c: Likewise.
1007         * lib/signal.in.h: Likewise.
1008         * lib/stat.c: Likewise.
1009         * lib/stdbool.in.h: Likewise.
1010         * lib/stdio-impl.h: Likewise.
1011         * lib/stdio.in.h: Likewise.
1012         * lib/sysexits.in.h: Likewise.
1013         * lib/timespec.h: Likewise.
1014         * lib/wcsrtombs-state.c: Likewise.
1015         * m4/alloca.m4: Likewise.
1016         * m4/extern-inline.m4: Likewise.
1017         * m4/fstatat.m4: Likewise.
1018         * m4/gnulib-common.m4: Likewise.
1019         * m4/lib-ignore.m4: Likewise.
1020         * m4/printf.m4: Likewise.
1021         * m4/regex.m4: Likewise.
1022         * m4/stat-size.m4: Likewise.
1023         * m4/std-gnu11.m4: Likewise.
1024         * m4/stdbool.m4: Likewise.
1025         * m4/sys_types_h.m4: Likewise.
1026         * m4/threadlib.m4: Likewise.
1027         * m4/vararrays.m4: Likewise.
1028         * pygnulib/GLImport.py: Likewise.
1029         * tests/test-exp.h: Likewise.
1030         * tests/test-exp2.h: Likewise.
1031         * tests/test-expm1.h: Likewise.
1032         * tests/test-fflush2.c: Likewise.
1033         * tests/test-getopt_long.h: Likewise.
1034         * tests/test-intprops.c: Likewise.
1035         * tests/test-log.h: Likewise.
1036         * tests/test-log10.h: Likewise.
1037         * tests/test-log1p.h: Likewise.
1038         * tests/test-log2.h: Likewise.
1039         * tests/test-printf-posix.h: Likewise.
1040         * tests/test-regex.c: Likewise.
1041         * tests/test-snprintf-posix.h: Likewise.
1042         * tests/test-sprintf-posix.h: Likewise.
1043         * tests/test-stdalign.c: Likewise.
1044         * tests/test-stdbool.c: Likewise.
1045         * tests/test-vasnprintf-posix.c: Likewise.
1046         * tests/test-vasprintf-posix.c: Likewise.
1047         * top/maint.mk: Likewise.
1049 2017-11-12  Bruno Haible  <bruno@clisp.org>
1051         faccessat: Make the last change more robust.
1052         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Require
1053         gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK. Treat "guessing yes" like "yes".
1055 2017-11-11  Paul Eggert  <eggert@cs.ucla.edu>
1057         faccessat: port to macOS (Bug#29231)
1058         macOS faccessat has the same bug that lstat does: if the file
1059         name ends in '/' it ignores the trailing slash.
1060         Problem reported for Emacs by Vincent Zhang.
1061         * doc/posix-functions/faccessat.texi (faccessat): Document this.
1062         * lib/faccessat.c (_GL_INCLUDING_UNISTD_H): Define and undef
1063         around the initial includes.  Include errno.h, string.h, sys/stat.h.
1064         (orig_faccessat) [HAVE_FACCESSAT]: New function.
1065         Include "unistd.h" after defining it.
1066         (rpl_faccessat) [HAVE_FACCESSAT]: New implementation.
1067         * lib/unistd.in.h (faccessat) [REPLACE_FACCESSAT]:
1068         Handle in the usual way.
1069         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Replace faccessat if
1070         lstat dereferences symlinks, since faccessat is likely to
1071         have the same problem.
1072         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Default REPLACE_ACCESSAT.
1073         * modules/faccessat (Depends-on): Add fstatat.
1074         Depend if REPLACE_FACCESSAT is 1, too.
1075         (configure.ac): Link if REPLACE_FACCESSAT is 1.
1076         * modules/faccessat-tests (Depends-on): Add symlink.
1077         * modules/unistd (unistd.h): Substitute REPLACE_FACCESSAT.
1078         * tests/test-faccessat.c (main): Test for the bug.
1080 2017-11-11  Bruno Haible  <bruno@clisp.org>
1082         getprogname: Fix compilation error on IRIX.
1083         * lib/getprogname.c (getprogname) [__sgi]: Fix type of local variable
1084         'namesize'.
1086 2017-11-11  Bruno Haible  <bruno@clisp.org>
1088         year2038: Tweak last patch.
1089         * m4/year2038.m4 (gl_YEAR2038): Correct indentation.
1091 2017-11-06  Paul Eggert  <eggert@cs.ucla.edu>
1093         year2038: be more insistent about 64-bit time_t
1094         Applications requiring access to arbitrary files should not be
1095         built with 32-bit time_t on hosts that have 64-bit timestamps,
1096         as this can lead to real trouble at runtime.
1097         * m4/year2038.m4 (gl_YEAR2038): Do not require AC_CANONICAL_HOST.
1098         Check on all systems, not just MinGW.  Use a heuristic involving
1099         TIME_T_32_BIT_OK, cross_compiling, and the touch command to
1100         output a failure or just a warning, to make it more likely that
1101         builders will select 64-bit time_t.
1103 2017-11-05  Paul Eggert  <eggert@cs.ucla.edu>
1105         havelib: fix typo in previous change
1106         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Fix typo.
1108         Don’t use AC_EGREP_CPP if affected by CFLAGS
1109         * m4/float_h.m4 (gl_FLOAT_H):
1110         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI):
1111         * m4/lib-ld.m4 (AC_LIB_PROG_LD):
1112         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB):
1113         * m4/year2038.m4 (gl_YEAR2038):
1114         Prefer AC_COMPILE_IFELSE to AC_EGREP_CPP when testing conditions
1115         likely to be affected by the choice of CFLAGS, since CFLAGS are
1116         not used by AC_EGREP_CPP.  Without this patch, ‘./configure
1117         CFLAGS="-m32"’ fails on gzip with GNU/Linux x86-64.
1119         fstatat: pacify GCC on unusual platform
1120         * lib/fstatat.c (orig_fstatat) [!HAVE_WORKING_FSTATAT_ZERO_FLAG]:
1121         Omit, as it’s unused in this case.
1123 2017-10-29  Paul Eggert  <eggert@cs.ucla.edu>
1125         timespec: prefer ‘assume’ to ‘assure’
1126         This avoids some runtime tests.  The rest of the module makes
1127         similar assumptions and there is little point to testing here.
1128         * lib/timespec.h: Include verify.h instead of assure.h.
1129         (timespec_cmp): Use ‘assume’, not ‘assure’.
1130         Also, remove an unnecessary cast to ‘int’, as lots of other
1131         code in this module now causes -Wconversion to complain, and
1132         this is a problem with -Wconversion not with the code.
1134         * modules/timespec (Depends-on): Depend on ‘verify’, not ‘assure’.
1136         Port recent gnulib-tool change to Dash
1137         * gnulib-tool (func_create_testdir): Don't assume that the shell
1138         retokenizes after expanding "$@" inside the call to
1139         func_execute_command.  Dash 0.5.8-2.1ubuntu2 does not.
1141 2017-10-27  Jim Meyering  <meyering@fb.com>
1143         timespec.h: use "assure" to avoid a spurious warning
1144         * lib/timespec.h: Include "assure.h" and use it to help
1145         gcc7's -Wstrict-overflow avoid a false positive warning
1146         for a use in coreutils' ls.c.  Suggested by Paul Eggert in
1147         https://lists.gnu.org/r/bug-gnulib/2017-10/msg00007.html
1148         * modules/timespec (Depends-on): Add assure.
1150 2017-10-29  Bruno Haible  <bruno@clisp.org>
1152         Avoid several test failures with traditional locales on Haiku.
1153         * m4/locale-ar.m4 (gt_LOCALE_AR): On BeOS and Haiku, set LOCALE_AR=none.
1154         * m4/locale-fr.m4 (gt_LOCALE_FR): On BeOS and Haiku, set LOCALE_FR=none.
1155         * m4/locale-ja.m4 (gt_LOCALE_JA): On BeOS and Haiku, set LOCALE_JA-none.
1156         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On BeOS and Haiku, set
1157         LOCALE_ZH_CN=none.
1159 2017-10-29  Bruno Haible  <bruno@clisp.org>
1161         strerror_r-posix: Fix behaviour and test failure on Haiku.
1162         * lib/strerror_r.c (strerror_r): Don't assume that valid error numbers
1163         are positive. Work around return value 0 instead of ERANGE on Haiku.
1164         For unknown error numbers, use a format string consistent with perror().
1165         * doc/posix-functions/strerror_r.texi: Mention the Haiku problem.
1166         * tests/test-strerror_r.c (main): Don't assume that valid error numbers
1167         are positive.
1169 2017-10-29  Bruno Haible  <bruno@clisp.org>
1171         get-rusage-data: Avoid crash on Haiku.
1172         * lib/get-rusage-data.c: Avoid the setlimit-based implementation.
1174 2017-10-29  Bruno Haible  <bruno@clisp.org>
1176         get-rusage-as: Avoid crash on Haiku.
1177         * lib/get-rusage-as.c: Avoid the setlimit-based implementation.
1179 2017-10-29  Bruno Haible  <bruno@clisp.org>
1181         ilogbl: Ensure replacement on Haiku.
1182         * m4/ilogbl.m4 (gl_FUNC_ILOGBL): Invoke gl_FUNC_ILOGBL_WORKS and set
1183         REPLACE_ILOGBL if ilogbl does not work.
1184         (gl_FUNC_ILOGBL_WORKS): New macro.
1185         * lib/math.in.h (ilogbl): Replace if REPLACE_ILOGBL is 1.
1186         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ILOGBL.
1187         * modules/math (Makefile.am): Substitute REPLACE_ILOGBL.
1188         * modules/ilogbl (Depends-on, configure.ac): Consider REPLACE_ILOGBL.
1189         * doc/posix-functions/ilogbl.texi: Mention the Haiku problem.
1191 2017-10-29  Bruno Haible  <bruno@clisp.org>
1193         expl: Ensure replacement on Haiku.
1194         * m4/expl.m4 (gl_FUNC_EXPL): Test whether an expl() return value is
1195         zero.
1196         * doc/posix-functions/expl.texi: Mention the Haiku problem.
1198 2017-10-29  Bruno Haible  <bruno@clisp.org>
1200         math: Fix test failure on Haiku.
1201         * lib/math.in.h (FP_ILOGB0, FP_ILOGBNAN): Override on Haiku.
1202         * m4/ilogb.m4 (gl_FUNC_ILOGB_WORKS): Update accordingly.
1203         * m4/ilogbf.m4 (gl_FUNC_ILOGBF_WORKS): Likewise.
1204         * doc/posix-headers/math.texi: Mention the Haiku problem.
1206 2017-10-29  Bruno Haible  <bruno@clisp.org>
1208         gnulib-tool: Avoid unnecessary config.h.in remaking in testdirs.
1209         * gnulib-tool (func_create_testdir): Use workaround against 'autoheader'
1210         bug reported at <https://savannah.gnu.org/support/index.php?109406>.
1212 2017-10-29  Bruno Haible  <bruno@clisp.org>
1214         crypto/*: Verify that the header file is self-contained.
1215         * tests/test-gc-*.c: Include the module's header file immediately after
1216         <config.h>.
1217         * tests/test-hmac-*.c: Likewise.
1218         * tests/test-arcfour.c: Likewise.
1219         * tests/test-arctwo.c: Likewise.
1220         * tests/test-des.c: Likewise.
1221         * tests/test-md2.c: Likewise.
1222         * tests/test-md4.c: Likewise.
1223         * tests/test-md5.c: Likewise.
1224         * tests/test-rijndael.c: Likewise.
1225         * tests/test-sha1.c: Likewise.
1226         * tests/test-sm3.c: Likewise.
1228 2017-10-29  Jia Zhang  <qianyue.zj@alibaba-inc.com>
1229             Bruno Haible  <bruno@clisp.org>
1231         crypto/gc: fix build failure with -Werror=suggest-attribute=const
1232         * lib/gc.h (gc_hash_digest_length): Mark with 'const' attribute.
1234 2017-10-29  Jia Zhang  <qianyue.zj@alibaba-inc.com>
1236         New module: crypto/gc-sm3
1237         * lib/gc.h: Declare SM3-related stuffs.
1238         * lib/gc-gnulib.c: Support sm3 in internal functions.
1239         * lib/gc-libgcrypt.c: Support sm3 with libgcrypt.
1240         * m4/gc-sm3.m4: m4 file for gc-sm3 module.
1241         * modules/crypto/gc-sm3: Define gc-sm3 module.
1242         * tests/test-gc-sm3.c: Implement SM3 test case with libgcrypt.
1243         * modules/crypto/gc-sm3-tests: Define gc-sm3 test module.
1244         * MODULES.html.sh: List gc-sm3 module.
1246 2017-10-29  Bruno Haible  <bruno@clisp.org>
1248         random, random_r: Mention different prototypes on Haiku.
1249         * doc/posix-functions/random.texi: Mention different prototype on Haiku.
1250         * doc/glibc-functions/random_r.texi: Likewise.
1251         * doc/glibc-functions/initstate_r.texi: Likewise.
1252         * doc/glibc-functions/setstate_r.texi: Likewise.
1254 2017-10-28  Bruno Haible  <bruno@clisp.org>
1256         posix_spawn: Avoid spurious message in configure output.
1257         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Discard stderr output from
1258         'cmp' command.
1260 2017-10-28  Bruno Haible  <bruno@clisp.org>
1262         inet_ntop, inet_pton: Determine needed library correctly on Haiku.
1263         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Search also in libnetwork.
1264         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
1266 2017-10-28  Bruno Haible  <bruno@clisp.org>
1268         ioctl: Override non-POSIX declaration on Haiku.
1269         * m4/ioctl.m4 (gl_FUNC_IOCTL): Include also <unistd.h>.
1270         * lib/sys_ioctl.in.h: Add comment about Haiku.
1271         * doc/posix-functions/ioctl.texi: Mention Haiku problem.
1272         * doc/glibc-headers/sys_ioctl.texi: Likewise.
1274 2017-10-28  Bruno Haible  <bruno@clisp.org>
1276         crypto/sm3: Add overview documentation to the .h file.
1277         * lib/sm3.h: Add comments.
1279 2017-10-28  Jia Zhang  <qianyue.zj@alibaba-inc.com>
1281         New module: crypto/sm3
1282         This new module can be used to compute SM3 message digest of files or
1283         memory blocks according to the specification GM/T 004-2012
1284         Cryptographic Hash Algorithm SM3, published by State Cryptography
1285         Administration, China.
1286         The official SM3 cryptographic hash algorithm specification is
1287         available at
1288         http://www.sca.gov.cn/sca/xwdt/2010-12/17/content_1002389.shtml
1289         * lib/sm3.h: Declare the APIs of sm3 module.
1290         * lib/sm3.c: Implement SM3 hash algorithm.
1291         * m4/sm3.m4: m4 file for sm3 module.
1292         * modules/crypto/sm3: Define sm3 module.
1293         * tests/test-sm3.c: Implement SM3 test case.
1294         * modules/crypto/sm3-tests: Define sm3 test module.
1295         * MODULES.html.sh: List sm3 module.
1297 2017-10-28  Jia Zhang  <qianyue.zj@alibaba-inc.com>
1299         gc-libgcrypt: fix undefined enum type in switch statement
1300         Resolve the following build failure:
1301         lib/gc-libgcrypt.c: In function 'gc_hash_open':
1302         lib/gc-libgcrypt.c:317:5: error: case value '0' not in enumerated type
1303         'Gc_hash_mode {aka enum Gc_hash_mode}' [-Werror=switch]
1304              case 0:
1305              ^~~~
1306         * lib/gc.h (enum Gc_hash_mode): Add value GC_NULL.
1307         * lib/gc-libgcrypt.c (gc_hash_open): Use this enum value instead of 0.
1309 2017-10-28  Jia Zhang  <qianyue.zj@alibaba-inc.com>
1311         gc-libgcrypt: fix assignment error due to -Werror=pointer-sign
1312         Resolve the following build failure:
1313         lib/gc-libgcrypt.c: In function 'gc_hash_read':
1314         lib/gc-libgcrypt.c:460:14: error: pointer targets in assignment differ
1315         in signedness [-Werror=pointer-sign]
1316             digest = gcry_md_read (ctx->gch, 0);
1317                    ^
1318         * lib/gc-libgcrypt.c (gc_hash_read): Cast result of gcry_md_read.
1320 2017-10-26  Bruno Haible  <bruno@clisp.org>
1322         havelib: Fix value of LD for 32-bit compilation on NetBSD/sparc64.
1323         * m4/lib-ld.m4 (AC_LIB_PROG_LD): On NetBSD/sparc64 with CC="gcc -m32",
1324         set LD to '/usr/bin/ld -m elf32_sparc', not '/usr/bin/ld'.
1326 2017-10-21  Paul Eggert  <eggert@cs.ucla.edu>
1328         glob: fix another heap buffer overflow
1329         Problem reported by Tim Rühsen in:
1330         https://sourceware.org/bugzilla/show_bug.cgi?id=22332
1331         * lib/glob.c (glob): Avoid buffer overrun when unescaping.
1333 2017-10-19  Paul Eggert  <eggert@cs.ucla.edu>
1335         quotearg: pacify compiler re unsigned
1336         * lib/quotearg.c (quotearg_n_options):
1337         Rewrite to avoid diagnostic from overly-picky compiler.
1338         Problem reported by Sami Kerola in:
1339         https://lists.gnu.org/r/bug-gnulib/2017-10/msg00060.html
1341         glob: fix heap buffer overflow
1342         * lib/glob.c (glob): Fix off-by-one error introduced into
1343         glibc in commit dd7d45e838a42b0ed470c44b55901ea98d0c2bab
1344         dated 1997-10-29 20:33:40.  Problem reported by Tim Rühsen in:
1345         https://sourceware.org/bugzilla/show_bug.cgi?id=22320
1346         Fix suggested by Bruno Haible.
1348 2017-10-18  Paul Eggert  <eggert@cs.ucla.edu>
1350         glob: pacify fuzzer for mempcpy
1351         Problem reported by Tim Rühsen in:
1352         https://lists.gnu.org/r/bug-gnulib/2017-10/msg00054.html
1353         * lib/glob.c (glob): Do not pass NULL to mempcpy.
1355 2017-10-12  Bruno Haible  <bruno@clisp.org>
1357         doc: Fix syntax error (regression from 2017-10-03).
1358         * doc/posix-functions/strncpy.texi: Fix syntax error.
1360 2017-10-12  Bruno Haible  <bruno@clisp.org>
1362         doc: Update for Solaris 11.3.
1363         * doc/**/*.texi: For bugs that exist in both Solaris 11.0 and 11.3,
1364         mention Solaris 11.3.
1365         * m4/log2.m4: Fix comments.
1366         * m4/log2f.m4: Likewise.
1367         * m4/printf.m4: Update comments.
1368         * m4/rename.m4: Likewise.
1369         * m4/strncat.m4: Likewise.
1371         all: Write "Solaris 11.0" instead of "Solaris 11 2011-11".
1373 2017-10-10  Bruno Haible  <bruno@clisp.org>
1375         doc: Improve doc about ioctl.
1376         * doc/posix-functions/ioctl.texi: Fix list of platforms with non-POSIX
1377         prototype.
1379 2017-10-09  Bruno Haible  <bruno@clisp.org>
1381         wcwidth: Don't use obsolete syntax of 'test'.
1382         Reported by Eric Blake.
1383         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Don't optimize two 'test'
1384         invocations into one, as POSIX marks '-a' and '-o' as "obsolescent".
1386 2017-10-09  Bruno Haible  <bruno@clisp.org>
1388         getopt-posix: Fix build failure when using ac_cv_header_getopt_h=no.
1389         Reported by Christian Ehrhardt <christian.ehrhardt@canonical.com>
1390         and Daniel P. Berrange <berrange@redhat.com>.
1391         * lib/unistd.in.h (getopt): Don't attempt to avoid namespace pollution
1392         on glibc systems. The getopt-pfx-core.h file declares exactly what
1393         unistd.h needs, nothing more.
1395 2017-10-08  Bruno Haible  <bruno@clisp.org>
1397         vma-iter: Improve support for FreeBSD.
1398         * lib/vma-iter.c (vma_iterate_proc): New function, extracted from
1399         vma_iterate.
1400         (vma_iterate): Use it. For FreeBSD, try vma_iterate_bsd first.
1402 2017-10-08  Bruno Haible  <bruno@clisp.org>
1404         vma-iter: Fix truncated result on NetBSD (regression from 2017-10-07).
1405         * lib/vma-iter.c (MIN_LEFTOVER): Define to 1, not 0.
1407 2017-10-07  KO Myung-Hun  <komh@chollian.net>
1409         test-framework-sh: Fix 'invalid path dir' error.
1410         On OS/2, a path separator is ';' not ':'. And ':' is used as a
1411         separator between a drive letter and directory parts.
1412         As a result, an absolute path such as x:/path/to/dir on OS/2 is
1413         treated as an invalid path dir.
1414         * tests/init.sh (PATH_SEPARATOR): Set at startup.
1415         (path_prepend_): '?:*' is also an absolute path. Use $PATH_SEPARATOR
1416         instead of hard coded ':'.
1418 2017-10-07  Bruno Haible  <bruno@clisp.org>
1420         vma-iter: Fix truncated result on Linux (regression from 2017-09-26).
1421         * lib/vma-iter.c (MIN_LEFTOVER): New macro.
1422         (STACK_ALLOCATED_BUFFER_SIZE): Set to a minimal value if not needed.
1423         (rof_open): On Linux, do multiple read() calls and make sure
1424         MIN_LEFTOVER bytes are left when read() returns.
1426 2017-10-07  Bruno Haible  <bruno@clisp.org>
1428         vma-iter: Improve support for GNU/Hurd.
1429         * lib/vma-iter.c (vma_iterate): On GNU/Hurd, use the Mach vm_region()
1430         API, not the /proc file system.
1432 2017-10-07  Bruno Haible  <bruno@clisp.org>
1434         test-framework-sh: Don't require bash on Windows and OS/2.
1435         Reported by KO Myung-Hun.
1436         * tests/test-init.sh: Use 'shopt' only when running in bash.
1438 2017-10-06  KO Myung-Hun  <komh@chollian.net>
1440         wcwidth: check a macro version of wcwidth () as well
1441         * lib/wchar.in.h: Revert commit from 2016-01-14.
1442         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test if wcwidth is a macro.
1444 2017-10-06  Bruno Haible  <bruno@clisp.org>
1446         getopt-posix: Clarify copyright header.
1447         * lib/getopt.in.h: Don't state that gnulib is under LGPL.
1448         * lib/getopt-pfx-core.h: Likewise.
1449         * lib/getopt-pfx-ext.h: Likewise.
1450         * lib/getopt-cdefs.in.h: Likewise.
1452 2017-10-03  Bruno Haible  <bruno@clisp.org>
1454         Fix warning "`gl_HOST_CPU_C_ABI' was expanded before it was required".
1455         * modules/host-cpu-c-abi (configure.ac): Require, don't invoke
1456         gl_HOST_CPU_C_ABI.
1458 2017-10-03  Bruno Haible  <bruno@clisp.org>
1460         doc: warn about misuse of strncpy and wcsncpy.
1461         * doc/posix-functions/strcpy.texi: Describe requirements on prior
1462         memory allocation.
1463         * doc/posix-functions/wcscpy.texi: Likewise.
1464         * doc/posix-functions/strncpy.texi: Describe what this function is not
1465         useful for.
1466         * doc/posix-functions/wcsncpy.texi: Likewise.
1468 2017-10-02  Paul Eggert  <eggert@cs.ucla.edu>
1470         fsuage: fix typo in previous change
1471         * lib/fsusage.c: Remove stray include of full-read.h.
1472         Problem reported by Sam Steingold for macOS (Bug#28669).
1474 2017-10-01  Paul Eggert  <eggert@cs.ucla.edu>
1476         fsusage: remove SVR2 support
1477         SVR2 was obsolete by 1986 and is no longer supported by anybody,
1478         and its code was getting in the way of use of this module by
1479         Emacs, which has its own ‘read’ function anyway.
1480         * lib/fsusage.c: Do not include sys/filsys.h.
1481         (get_fs_usage): Remove SVR2-specific code.
1482         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE):
1483         Do not test for sys/filsys.h or set STAT_READ_FILSYS.
1484         * modules/fsusage (Depends-on): Do not depend on full-read.
1486         Simplify autoupdate of licenses
1487         * config/srclistvars.sh (GNUWWWLICENSES): Move to a more-typical
1488         place.
1490 2017-10-01  Bruno Haible  <bruno@clisp.org>
1492         vma-iter: Add support for GNU/Hurd.
1493         * lib/vma-iter.c: Treat GNU/Hurd like Linux.
1494         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on GNU/kFreeBSD.
1496 2017-09-30  Bruno Haible  <bruno@clisp.org>
1498         vma-iter: Make it work on 32-bit Solaris with module 'largefile'.
1499         * modules/vma-iter: Don't test for sys/procfs.h, as this test would
1500         fail when module 'largefile' is in use.
1501         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Don't test HAVE_SYS_PROCFS_H.
1502         * lib/vma-iter.c: Undefine _FILE_OFFSET_BITS early.
1503         Don't test HAVE_SYS_PROCFS_H.
1505 2017-09-30  Bruno Haible  <bruno@clisp.org>
1507         havelib: Make it work for CC="gcc -m32" (regression from 2017-02-19).
1508         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Require gl_HOST_CPU_C_ABI.
1509         When $CC produces 32-bit code, set acl_libdirstem to 'lib', not 'lib64'.
1510         * modules/havelib (Depends-on): Add host-cpu-c-abi.
1512 2017-09-30  Bruno Haible  <bruno@clisp.org>
1514         uniname/uniname: Don't assume C99 compiler (regression from 2015-02-16).
1515         * lib/uniname/uniname.c (unicode_name_character): Add braces around
1516         scope of local variables.
1518 2017-09-28  Bruno Haible  <bruno@clisp.org>
1520         string: code style
1521         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Reorder list of
1522         substitutable variables.
1523         * modules/string (Makefile.am): Likewise.
1525 2017-09-26  Bruno Haible  <bruno@clisp.org>
1527         uniname/uniname-tests: Tighten code.
1528         * tests/uniname/test-uninames.c (fill_names, fill_aliases): Merge two
1529         local variables into one.
1531 2017-09-26  Bruno Haible  <bruno@clisp.org>
1533         vma-iter: Improvements for Linux and BSD platforms.
1534         - Add support for DragonFly BSD.
1535         - Make it more reliable on Linux, GNU/kFreeBSD, FreeBSD, NetBSD.
1536         * lib/vma-iter.c (struct rofile, rof_open, rof_peekchar, rof_close):
1537         Read the entire file into memory in a single system call.
1538         (vma_iterate): Update. Read from /proc on DragonFly BSD like on FreeBSD.
1539         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on DragonFly BSD.
1541 2017-09-26  Bruno Haible  <bruno@clisp.org>
1543         vma-iter: Provide the protection flags on FreeBSD.
1544         * lib/vma-iter.c (vma_iterate) [FreeBSD]: When reading from /proc,
1545         skip three fields between the addresses and the protection flags.
1547 2017-09-26  Paul Eggert  <eggert@cs.ucla.edu>
1549         glob: remove bogus extern decl
1550         * lib/glob.c (__glob_pattern_type): Remove now-spurious
1551         extern declaration.  Problem reported by Adhemerval Zanella in:
1552         https://sourceware.org/ml/libc-alpha/2017-09/msg00972.html
1554 2017-09-25  Paul Eggert  <eggert@cs.ucla.edu>
1556         uniname/uniname-tests: integer overflow fix
1557         * tests/uniname/test-uninames.c (fill_names, fill_aliases):
1558         Check for integer overflow.
1560         duplocale-tests: fix unlikely crash
1561         * tests/test-duplocale.c (get_locale_dependent_values):
1562         Don’t crash with absurdly long month names.
1564         maint: fix overflow checking in nap.h
1565         * modules/chown-tests:
1566         * modules/fchownat-tests, modules/fdutimensat-tests:
1567         * modules/futimens-tests, modules/lchown-tests:
1568         * modules/stat-time-tests, modules/utime-tests:
1569         * modules/utimens-tests, modules/utimensat-tests:
1570         Depend on intprops.
1571         * tests/nap.h: Include intprops.h.
1572         (diff_timespec): Handle overflow properly.
1574         sys_types: update URL
1575         * m4/sys_types_h.m4: Use https: URL.
1577         parse-datetime: fix dependency
1578         * modules/parse-datetime (Depends-on): Depend
1579         on nstrftime, not strftime.
1581         parse-datetime, posixtm: avoid uninit access
1582         * lib/parse-datetime.y (parse_datetime2):
1583         * lib/posixtm.c (posixtime):
1584         Do not access uninitialized storage, even though the resulting
1585         value is never used.
1587 2017-09-25  Bruno Haible  <bruno@clisp.org>
1589         vma-iter: Improvements for BSD platforms.
1590         - Add support for GNU/kFreeBSD.
1591         - Make it work on FreeBSD and NetBSD even when /proc is not mounted.
1592         - Speed up on OpenBSD.
1593         * lib/vma-iter.c (struct rofile, rof*): Define also on GNU/kFreeBSD.
1594         (vma_iterate_bsd): New function.
1595         (vma_iterate): Use it as fallback on FreeBSD and NetBSD. Use it as
1596         first choice on OpenBSD. Treat GNU/kFreeBSD like Linux.
1597         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on GNU/kFreeBSD.
1598         * modules/vma-iter (configure.ac): Require AC_C_INLINE.
1600 2017-09-23  Bruno Haible  <bruno@clisp.org>
1602         strfmon_l: New module.
1603         * modules/strfmon_l: New file.
1604         * lib/strfmon_l.c: New file.
1605         * m4/strfmon_l.m4: New file.
1606         * doc/posix-functions/strfmon_l.texi: Mention the new module.
1607         * modules/strfmon_l-tests: New file.
1608         * tests/test-strfmon_l.c: New file.
1610         monetary: New module.
1611         * modules/monetary: New file.
1612         * lib/monetary.in.h: New file.
1613         * m4/monetary_h.m4: New file.
1614         * doc/posix-headers/monetary.texi: Mention the new module.
1615         * modules/monetary-tests: New file.
1616         * tests/test-monetary.c: New file.
1617         * modules/monetary-c++-tests: New file.
1618         * tests/test-monetary-c++.cc: New file.
1619         * modules/duplocale-tests (configure.ac): Use AC_CHECK_HEADERS_ONCE.
1621 2017-09-23  Bruno Haible  <bruno@clisp.org>
1623         duplocale tests: Fix test crash on Linux/x86.
1624         * tests/test-duplocale.c (test_with_uselocale): Disconnect the mixed2
1625         locale from the current thread before freeing it.
1627 2017-09-21  Paul Eggert  <eggert@cs.ucla.edu>
1629         mktime: port to OpenVMS
1630         Problem reported by John E. Malmberg in:
1631         https://lists.gnu.org/r/bug-gnulib/2017-09/msg00100.html
1632         * m4/mktime.m4 (TIME_T_IS_SIGNED): Default to 0.
1634 2017-09-16  Paul Eggert  <eggert@cs.ucla.edu>
1636         manywarnings: port to GCC on 64-bit MS-Windows
1637         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Work better if
1638         LONG_MAX < PTRDIFF_MAX.  Problem reported by Richard Copley in:
1639         https://lists.gnu.org/r/emacs-devel/2017-09/msg00392.html
1641 2017-09-13  Bruno Haible  <bruno@clisp.org>
1643         all: Replace many more http URLs by https URLs. Update stale URLs.
1644         * users.txt: Remove mention of 'newts'.
1645         * lib/localename.c: Update comment about LANG_SOTHO.
1647 2017-09-13  Paul Eggert  <eggert@cs.ucla.edu>
1649         all: Replace many http URLs by https URLs.
1651 2017-09-12  Bruno Haible  <bruno@clisp.org>
1653         doc: Prefer https URLs where possible.
1654         * doc/**/*.texi: Use https URLs instead of http URLs where possible.
1655         * doc/ld-output-def.texi: Remove unavailable URL.
1657 2017-09-12  Paul Eggert  <eggert@cs.ucla.edu>
1659         maintainer-makefile: FTP -> HTTPS
1660         * top/maint.mk (url_dir_list, ftp-gnu): Use HTTPS protocol instead
1661         of FTP, which is planned to be decommissioned on 2017-11-01.
1663 2017-09-12  Tim Rühsen  <tim.ruehsen@gmx.de>  (tiny change)
1665         libc-config: Fix __GNUC_PREREQ macro.
1666         * lib/libc-config.h (__GNUC_PREREQ): Use __GNUC_MINOR__, not
1667         __GNUC_MINOR.
1669 2017-09-09  Bruno Haible  <bruno@clisp.org>
1671         gnulib-tool: Simplify commit from 2015-08-20.
1672         * gnulib-tool (func_add_or_update): Remove local variable
1673         is_binary_file.
1675 2017-09-08  Bruno Haible  <bruno@clisp.org>
1677         stddef: Avoid conflict with system-defined max_align_t.
1678         The configure-determined HAVE_MAX_ALIGN_T may not always be accurate.
1679         Reported by Werner Lemberg <wl@gnu.org> in
1680         <https://lists.gnu.org/r/bug-gnulib/2017-08/msg00185.html>.
1681         * lib/stddef.in.h (rpl_max_align_t): Renamed from max_align_t.
1682         (max_align_t): Define as a macro.
1683         (GNULIB_defined_max_align_t): New macro. Guards against multiple
1684         definitions of rpl_max_align_t in different copies of gnulib-generated
1685         <stddef.h>.
1687 2017-09-05  Paul Eggert  <eggert@cs.ucla.edu>
1689         libc-config: port to MSVC
1690         Problems reported by Gisle Vanem in:
1691         http://lists.gnu.org/r/bug-gnulib/2017-09/msg00016.html
1692         * lib/libc-config.h (__inline): Don't define if HAVE___INLINE.
1693         (libc_hidden_proto): Stick to Standard C syntax for varargs macro.
1694         * m4/__inline.m4: New file.
1695         * modules/libc-config (Files): Add it.
1696         (Depends-on): Use it.
1698         glob: Use enum for __glob_pattern_type result
1699         From a patch proposed by Adhemerval Zanella in:
1700         https://sourceware.org/ml/libc-alpha/2017-09/msg00212.html
1701         * lib/glob_internal.h (GLOBPAT_NONE, GLOBPAT_SPECIAL)
1702         (GLOBPAT_BACKSLASH, GLOBPAT_BRACKET): New constants.
1703         * lib/glob_internal.h (__glob_pattern_type):
1704         * lib/glob.c (glob):
1705         * lib/glob_pattern_p.c (__glob_pattern_p):
1706         Use them.
1708         glob: fix for use in glibc
1709         Problem reported by Adhemerval Zanella in:
1710         https://sourceware.org/ml/libc-alpha/2017-09/msg00213.html
1711         * lib/glob.c (DT_UNKNOWN, DT_DIR, DT_LINK):
1712         Do not redefine if _LIBC.
1714 2017-09-02  Paul Eggert  <eggert@cs.ucla.edu>
1716         glob: fix bugs with long login names
1717         Problem reported by Adhemerval Zanella in:
1718         https://sourceware.org/ml/libc-alpha/2017-08/msg00455.html
1719         * lib/glob.c (GET_LOGIN_NAME_MAX): Remove.
1720         (glob): Use the same scratch buffer for both getlogin_r and
1721         getpwnam_r.  Don’t require preallocation of the login name.  This
1722         simplifies storage allocation, and corrects the handling of
1723         long login names.
1725 2017-09-02  Bruno Haible  <bruno@clisp.org>
1727         dirent: Update doc.
1728         * doc/posix-headers/dirent.texi: More concrete list of platforms.
1730 2017-09-02  Paul Eggert  <eggert@cs.ucla.edu>
1732         glob: fix getpwnam_r errno typo
1733         * lib/glob.c (glob): Fix longstanding misuse of errno after
1734         getpwnam_r, which returns an error number rather than setting
1735         errno.
1737         glob: fix typo in recent change
1738         * lib/glob.c (glob) [!HAVE_GETPWNAM_R && !_LIBC]:
1739         Fix recently-introduced typo.
1741 2017-09-02  Paul Eggert  <eggert@cs.ucla.edu>
1743         glob: don't save and restore errno unnecessarily
1744         * lib/glob.c (glob): Don't save and restore errno
1745         merely because we have getpwnam_r.
1747         glob: don't assume getpwnam_r
1748         * lib/glob.c (glob): Port recent patches to platforms
1749         lacking getpwnam_r.
1751         scratch_buffer: don’t use private glibc API
1752         Suggested by Florian Weimer in:
1753         http://lists.gnu.org/r/bug-gnulib/2017-09/msg00004.html
1754         * lib/scratch_buffer.h: Rename to lib/malloc/scratch_buffer.h.
1755         * lib/scratch_buffer_grow.c: Rename to
1756         lib/malloc/scratch_buffer_grow.c.
1757         * lib/scratch_buffer_grow_preserve.c: Rename to
1758         lib/malloc/scratch_buffer_grow_preserve.c.
1759         * lib/scratch_buffer_set_array_size.c: Rename to
1760         lib/malloc/scratch_buffer_set_array_size.c.
1761         * lib/scratch_buffer.h: New file.
1762         * modules/scratch_buffer (Files, Makefile.am):
1763         Adjust to source-file renaming.
1765 2017-09-01  Paul Eggert  <eggert@cs.ucla.edu>
1767         glob: use scratch_buffer instead of extend_alloca
1768         Much of the lib/glob.c part of this patch comes from a glibc patch
1769         proposed by Adhemerval Zanella in:
1770         https://sourceware.org/ml/libc-alpha/2017-08/msg00456.html
1771         * lib/glob.c: Do not include <config.h>, since <libc-config.h>,
1772         included via glob.h, does this for us now.
1773         (__set_errno): Remove, as libc-config does this for us now.
1774         Include <scratch_buffer.h>.
1775         (GETPW_R_SIZE_MAX): Remove.
1776         (glob): Use struct scratch_buffer instead of extend_alloca.
1777         * lib/glob.in.h: Include libc-config.h rather than
1778         including <sys/cdefs.h> conditionally.
1779         (__BEGIN_DECLS, __END_DECLS, __THROW, __THROWNL, attribute_hidden)
1780         (__glibc_unlikely, __restrict, weak_alias):
1781         Remove, as libc-config does this for us now.
1782         * m4/glob.m4 (gl_PREREQ_GLOB):
1783         Remove sys/cdefs.h tests; no longer needed.
1784         * modules/glob (Depends-on): Add libc-config, scratch_buffer.
1785         (glob.h): Do not replace HAVE_SYS_CDEFS_H.
1787         scratch_buffer: new module
1788         * lib/scratch_buffer.h, lib/scratch_buffer_grow.c:
1789         * lib/scratch_buffer_grow_preserve.c:
1790         * lib/scratch_buffer_set_array_size.c:
1791         New files, copied from glibc with very minor changes that can be
1792         copied back.
1793         * modules/scratch_buffer: New file.
1795         libc-config: new module
1796         * MODULES.html.sh: Add libc-config.
1797         * lib/cdefs.h: New file, copied from the GNU C Library with very
1798         minor changes that can be copied back.
1799         * lib/libc-config.h, modules/libc-config: New files.
1801 2017-08-31  Paul Eggert  <eggert@cs.ucla.edu>
1803         glob: match dangling symlinks
1804         This fixes a bug I inadvertently introduced to Gnulib when I
1805         merged glibc glob back into gnulib on 2007-10-16.  This fix is
1806         inspired by a patch proposed for glibc by Adhemerval Zanella in:
1807         https://sourceware.org/ml/libc-alpha/2017-08/msg00446.html
1808         * doc/posix-functions/glob.texi: Update list of affected platforms.
1809         * lib/glob.c (__lstat64): New macro.
1810         (is_dir): New function.
1811         (glob, glob_in_dir): Match symlinks even if they are dangling.
1812         (link_stat, link_exists_p): Remove.  All uses removed.
1813         * lib/glob.in.h (__attribute_noinline__): Remove; no longer used.
1814         * m4/glob.m4 (gl_PREREQ_GLOB): Do not check for fstatat.
1815         * modules/glob-tests (Depends-on): Add symlink.
1816         * tests/test-glob.c: Include errno.h, unistd.h.
1817         (BASE): New macro.
1818         (main): Test dangling symlinks, if symlinks are supported.
1820         glob, backupfile: inode 0 is a valid inode number
1821         * doc/posix-functions/readdir.texi (readdir):
1822         * doc/posix-headers/dirent.texi (dirent.h):
1823         Document more readdir portability issues.
1824         * lib/backupfile.c (REAL_DIR_ENTRY): Remove.
1825         (numbered_backup): Don’t treat inode 0 any differently from
1826         other inode values.
1827         * lib/glob.c (struct readdir_result): Remove skip_entry member.
1828         (readdir_result_skip_entry, D_INO_TO_RESULT): Remove.
1829         All uses removed.
1830         * modules/glob (Depends-on): Remove d-ino.
1832         glob: simplify symlink detection
1833         * lib/glob.c (dirent_type): New type.  Use uint_fast8_t not
1834         uint8_t, as C99 does not require uint8_t.
1835         (struct readdir_result): Use it.  Do not define skip_entry unless
1836         it is needed; this saves a byte on platforms lacking d_ino.
1837         (readdir_result_type, readdir_result_skip_entry):
1838         New functions, replacing ...
1839         (readdir_result_might_be_symlink, readdir_result_might_be_dir):
1840         ... these functions, which were removed.  This makes the callers
1841         easier to read.  All callers changed.
1842         (D_INO_TO_RESULT): Now empty if there is no d_ino.
1844 2017-08-30  Pádraig Brady  <P@draigBrady.com>
1846         fts-tests: tag as a longrunning-test so not included by default
1847         * modules/fts-tests: This test takes about 20s on current systems,
1848         and uses about 285M of space on ext4.
1850 2017-08-30  Pádraig Brady  <P@draigBrady.com>
1852         renameat2: fix compilation on alpine linux
1853         * m4/renameat.m4: Check for <linux/fs.h> presence.
1854         * lib/renameat2.h: Only include <linux/fs.h> if present.
1855         Reported by Assaf Gordon on Alpine Linux.
1857 2017-08-24  Paul Eggert  <eggert@cs.ucla.edu>
1859         glob: try to port recent changes to MS-Windows
1860         Problem reported by Bruno Haible in:
1861         http://lists.gnu.org/r/bug-gnulib/2017-08/msg00170.html
1862         * lib/glob.c (__glob_pattern_p) [!_LIBC]: Move from here ...
1863         * lib/glob.in.h (__glob_pattern_p): ... to here.
1865 2017-08-24  Eric Blake  <eblake@redhat.com>
1867         warnings: fix compilation with old autoconf
1868         * m4/warnings.m4 (gl_UNKNOWN_WARNINGS_ARE_ERRORS(C))
1869         (gl_UNKNOWN_WARNINGS_ARE_ERRORS(C++)): Use m4_defun rather than
1870         AC_DEFUN.
1871         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC(C))
1872         (gl_MANYWARN_ALL_GCC(C++)): Likewise.
1874 2017-08-24  Bruno Haible  <bruno@clisp.org>
1876         glob: Fix compilation error on NetBSD 7.0 and OpenBSD 6.0.
1877         * modules/glob (Depends-on): Add c99.
1879 2017-08-24  Paul Eggert  <eggert@cs.ucla.edu>
1881         glob: fix typo that broke platforms lacking d_ino
1882         This typo also hurt performance on GNU/Linux and similar hosts.
1883         * lib/glob.c (D_INO_TO_RESULT): Fix typo (reversed ifdef)
1884         in previous change.
1886 2017-08-23  Paul Eggert  <eggert@cs.ucla.edu>
1888         glob: merge from glibc with Zanella glob changes
1889         Merge glob from glibc, with changes for glob proposed
1890         by Adhemerval Zanella in the thread starting here:
1891         https://sourceware.org/ml/libc-alpha/2017-08/msg01079.html
1892         plus some fixes for this merge.
1893         * lib/glob_internal.h, lib/glob_pattern_p.c, lib/globfree.c:
1894         New files, ported from glibc.
1895         * lib/glob-libc.h (_Restrict_): Remove.  All uses replaced
1896         with __restrict.
1897         (__size_t): Remove.  All uses replaced by size_t.
1898         (size_t): Define by defining __need_size_t and including <stddef.h>.
1899         This should work even in non-glibc platforms, where any name
1900         pollution is OK.
1901         Use __USE_MISC instead of __USE_BSD || __USE_GNU.
1902         (struct stat64): Don’t worry about __GLOB_GNULIB.
1903         (glob, globfree, glob_pattern_p): Remove macros for
1904         __USE_FILE_OFFSET64 && __GNUC__ < 2 && !defined __GLOB_GNULIB
1905         case.  Remove _GL_ARG_NONNULL as GNU behavior is to accept NULL
1906         but set errno.
1907         * lib/glob.c (_GL_ARG_NONNULL) [!_LIBC]: Remove.  All uses
1908         removed since the glibc behavior works on null pointers.
1909         Do not include stdio.h; old SunOS is irrelevant now.
1910         Do not worry about GLOB_ONLY_P as we now mimic glibc here.
1911         Include glob_internal.h.
1912         (D_INO_TO_RESULT): Depend on (_LIBC || D_INO_IN_DIRENT), not
1913         ((POSIX || WINDOWS32) && !__GNU_LIBRARY__).  The latter probably
1914         worked only coincidentally.
1915         (attribute_hidden, __attribute_noinline__, __glibc_unlikely):
1916         Remove macros; now done in glob.in.h.
1917         (size_add_wrapv): Do not use __builtin_add_overflow if __ICC.
1918         (glob): Properly initialize glob structure with
1919         GLOB_BRACE|GLOB_DOOFFS (bug 20707).
1920         Remove old code using SHELL since Bash no longer
1921         uses this.
1922         (glob, prefix_array): Separate MS code better.
1923         (glob, glob_in_dir): Use C99 decls before statements when glibc
1924         does.
1925         (glob_in_dir): Remove old Amiga and VMS code.
1926         (globfree, __glob_pattern_type, __glob_pattern_p): Move to
1927         separate files.
1928         * lib/glob.in.h (attribute_hidden, __attribute_noinline__)
1929         (__glibc_unlikely):
1930         Move here from glob.c.
1931         (__restrict): New macro here, replacing the _Restrict_ in glob.c.
1932         (weak_alias): New macro.
1933         (__size_t): Remove.  All uses replaced by size_t.
1934         * modules/d-ino (License): Now LGPLv2+, for compatibility with glob.
1935         * modules/glob (Files): Add +lib/glob_internal.h,
1936         lib/glob_pattern_p.c, lib/globfree.c.
1937         (Depends-on): Remove snippet/arg-nonnull.
1939 2017-08-22  Paul Eggert  <eggert@cs.ucla.edu>
1941         glob: port to clang's Undefined Sanitizer
1942         Problem reported by Tim Rühsen in:
1943         http://lists.gnu.org/r/bug-gnulib/2017-08/msg00144.html
1944         * lib/glob.c (FLEXIBLE_ARRAY_MEMBER) [_LIBC]: Define to empty.
1945         (glob_in_dir): Do not rely on undefined behavior in accessing
1946         struct members beyond their bounds.  Use a flexible array member
1947         instead.
1949 2017-08-21  Paul Eggert  <eggert@cs.ucla.edu>
1951         vc-list-files: port to Solaris 10
1952         * build-aux/vc-list-files: Don't assume test -e works.
1954 2017-08-21  Karl Berry  <karl@freefriends.org>
1956         * doc/posix-functions/srandom.texi (srandom): typo }.
1958 2017-08-20  Paul Eggert  <eggert@cs.ucla.edu>
1960         git-version-gen: port to Solaris 10
1961         Problem reported by Dagobert Michelsen in:
1962         http://lists.gnu.org/r/grep-devel/2017-08/msg00002.html
1963         * build-aux/git-version-gen (v_from_git):
1964         Use expr instead of shell substitution.
1966 2017-08-19  Bruno Haible  <bruno@clisp.org>
1968         host-cpu-c-abi: Improve detection of MIPS ABI.
1969         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): For MIPS, test the value of
1970         _MIPS_SIM.
1972 2017-08-17  Bruno Haible  <bruno@clisp.org>
1974         hypot tests: Fix test failure on FreeBSD 11.0/x86.
1975         * tests/test-hypot.h (test_function): Declare z as 'volatile'.
1977 2017-08-17  Bruno Haible  <bruno@clisp.org>
1979         float: Fix LDBL_MIN value on FreeBSD/x86.
1980         * lib/float.in.h (LDBL_MIN) [__FreeBSD__]: Add more precision.
1982 2017-08-17  Bruno Haible  <bruno@clisp.org>
1984         random: Fix test compilation failure on Cygwin 1.5.25.
1985         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_INITSTATE,
1986         HAVE_DECL_SETSTATE.
1987         * m4/random.m4 (gl_FUNC_RANDOM): Test whether initstate and setstate are
1988         declared.
1989         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_INITSTATE,
1990         HAVE_DECL_SETSTATE.
1991         * lib/stdlib.in.h (initstate): Declare also if HAVE_DECL_INITSTATE is 0.
1992         (setstate): Declare also if HAVE_DECL_SETSTATE is 0.
1993         * doc/posix-functions/initstate.texi: Mention the Cygwin 1.5.x problem.
1994         * doc/posix-functions/random.texi: Likewise.
1995         * doc/posix-functions/setstate.texi: Likewise.
1996         * doc/posix-functions/srandom.texi: Likewise.
1998 2017-08-16  Bruno Haible  <bruno@clisp.org>
2000         stdnoreturn: Fix test compilation failure on Cygwin.
2001         * m4/stdnoreturn.m4 (gl_STDNORETURN_H): On Cygwin, use gnulib's
2002         <stdnoreturn.h> replacement.
2003         * lib/stdnoreturn.in.h (noreturn): Treat Cygwin like MSVC.
2004         * doc/posix-headers/stdnoreturn.texi: Mention the Cygwin problem.
2006 2017-08-16  Bruno Haible  <bruno@clisp.org>
2008         thread: Fix conflict with pthread_sigmask module.
2009         * lib/glthread/thread.h (pthread_sigmask): Don't declare it weak if
2010         it's defined as a macro.
2011         * modules/thread (Depends-on): Add pthread_sigmask.
2013 2017-08-16  Paul Eggert  <eggert@cs.ucla.edu>
2015         rename: port better to NetBSD
2016         * doc/posix-functions/rename.texi (rename): NetBSD 7
2017         does not have the link-count bug.
2018         * m4/rename.m4 (gl_FUNC_RENAME): Don’t consider NetBSD to be
2019         broken merely because rename ("a", "b") removes "a" when the two
2020         names are hard links to the same file.
2022 2017-08-16  Bruno Haible  <bruno@clisp.org>
2024         iconv_open, uni*: Add support for VPATH builds with OpenBSD 'make'.
2025         * modules/iconv_open (Makefile.am): In the rules that use gperf, prefix
2026         the target file names with '$(srcdir)/'.
2027         * modules/unicase/locale-language (Makefile.am): Likewise.
2028         * modules/unicase/special-casing (Makefile.am): Likewise.
2029         * modules/unictype/bidiclass-byname (Makefile.am): Likewise.
2030         * modules/unictype/category-byname (Makefile.am): Likewise.
2031         * modules/unictype/combining-class-byname (Makefile.am): Likewise.
2032         * modules/unictype/joininggroup-byname (Makefile.am): Likewise.
2033         * modules/unictype/joiningtype-byname (Makefile.am): Likewise.
2034         * modules/unictype/property-byname (Makefile.am): Likewise.
2035         * modules/unictype/scripts (Makefile.am): Likewise.
2036         * modules/uninorm/composition (Makefile.am): Likewise.
2038 2017-08-16  Bruno Haible  <bruno@clisp.org>
2040         nonblocking-socket tests: Fix failure on OpenBSD 6.0.
2041         * tests/test-nonblocking-socket.h (SOCKET_DATA_BLOCK_SIZE): Increase
2042         value for OpenBSD.
2044 2017-08-16  Bruno Haible  <bruno@clisp.org>
2046         rename, renameat: Update doc regarding NetBSD.
2047         * doc/posix-functions/rename.texi: Clarify that when using
2048         -D_XOPEN_SOURCE=500 on NetBSD 7.0, the hard link bug is gone.
2049         * doc/posix-functions/renameat.texi: Be more precise about NetBSD
2050         version.
2052 2017-08-15  Paul Eggert  <eggert@cs.ucla.edu>
2054         renameat2: port better to macOS
2055         * lib/renameat2.c (renameat2): Use renameatx_np if available.
2057         futimens: don’t assume struct timespec layout
2058         * m4/futimens.m4 (gl_FUNC_FUTIMENS):
2059         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT):
2060         * tests/test-fdutimensat.c (main):
2061         * tests/test-futimens.h (test_futimens):
2062         * tests/test-lutimens.h (test_lutimens):
2063         * tests/test-utimens.h (test_utimens):
2064         * tests/test-utimensat.c (main):
2065         Don’t assume that struct timespec is a two-member structure in
2066         tv_sec, tv_nsec order.  Although this is true on all platforms we
2067         know about, POSIX does not guarantee it.
2069         rename: document+test NetBSD rename
2070         Test failure reported by Bruno Haible in:
2071         http://lists.gnu.org/r/bug-gnulib/2017-08/msg00104.html
2072         This is an area where NetBSD is better-behaved than POSIX,
2073         so allow the NetBSD behavior in tests.
2074         * doc/posix-functions/rename.texi:
2075         * doc/posix-functions/renameat.texi: Document NetBSD behavior.
2076         * tests/test-rename.h (test_rename): Allow NetBSD behavior.
2078 2017-08-15  Bruno Haible  <bruno@clisp.org>
2080         renameat: Ensure declaration in <stdio.h> on NetBSD.
2081         * lib/stdio.in.h: Include <unistd,h> also on NetBSD.
2082         * doc/posix-functions/renameat.texi: Mention this problem.
2084 2017-08-15  Bruno Haible  <bruno@clisp.org>
2086         duplocale: Work around NetBSD 7.0 bug.
2087         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Test against the NetBSD 7.0 bug.
2088         * lib/duplocale.c: Add comment about NetBSD problem.
2089         * doc/posix-functions/duplocale.texi: Mention the NetBSD problem.
2091 2017-08-15  Bruno Haible  <bruno@clisp.org>
2093         duplocale tests: Verify use with *_l functions.
2094         * modules/duplocale-tests (configure.ac): Test for uselocale and
2095         some *_l functions.
2096         * tests/test-duplocale.c (test_with_uselocale): New function, extracted
2097         from main.
2098         (get_locale_dependent_values_from, test_with_locale_parameter): New
2099         functions.
2100         (main): Test both test_with_uselocale and test_with_locale_parameter.
2102 2017-08-15  Bruno Haible  <bruno@clisp.org>
2104         extensions: Enable NetBSD specific extensions.
2105         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define _NETBSD_SOURCE.
2107 2017-08-14  Bruno Haible  <bruno@clisp.org>
2109         open, openat: Update doc about O_CLOEXEC.
2110         * doc/posix-functions/open.texi: More concrete list of platforms.
2111         * doc/posix-functions/openat.texi: Likewise.
2113 2017-08-14  Paul Eggert  <eggert@cs.ucla.edu>
2115         open: support O_CLOEXEC
2116         * NEWS, doc/posix-functions/open.texi:
2117         * doc/posix-functions/openat.texi: Document this.
2118         * lib/fcntl.in.h (O_CLOEXEC): Default to a nonzero value.
2119         (GNULIB_defined_O_CLOEXEC): New symbol.
2120         * lib/open.c: Include cloexec.h.
2121         (open): Support O_CLOEXEC.
2122         * lib/openat.c: Include cloexec.h.
2123         (rpl_openat): Support O_CLOEXEC.
2124         * lib/popen-safer.c: Do not include cloexec.h.
2125         (open_noinherit): Remove.
2126         (popen_safer): Use O_CLOEXEC instead of set_cloexec_flag.
2127         * lib/save-cwd.c: Do not include cloexec.h.
2128         (save_cwd): Use O_CLOEXEC instead of set_cloexec_flag.
2129         * m4/open-cloexec.m4: New file.
2130         * m4/open.m4 (gl_FUNC_OPEN): Require gl_PREPROC_O_CLOEXEC.
2131         Replace 'open' if O_CLOEXEC is not present.
2132         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_PREPROC_O_CLOEXEC.
2133         Replace 'openat' if O_CLOEXEC is not present.
2134         * modules/freopen (Depends-on): Depend on 'open' if replacing freopen.
2135         * modules/open (Files): Add m4/open-cloexec.m4.
2136         (Depends-on): Depend on cloexec if replacing 'open'.
2137         * modules/openat (Files): Add m4/open-cloexec.m4.
2138         (Depends-on): Depend on cloexec if replacing openat.
2139         * modules/popen-safer (Depends-on): Remove cloexec.
2140         * modules/save-cwd (Depends-on): Remove cloexec, and add
2141         fd-safer-flag and 'open'.
2143 2017-08-13  Paul Eggert  <eggert@cs.ucla.edu>
2145         reallocarray: minor fixes
2146         * doc/glibc-functions/reallocarray.texi: Update version numbers.
2147         * m4/reallocarray.m4 (gl_FUNC_REALLOCARRAY): Don't trust _cv_ contents.
2148         * modules/reallocarray (License): Change from GPL to LGPL.
2149         * tests/test-reallocarray.c (main): Fix ENOMEM typo.
2150         Indent properly and don't use tabs.
2152 2017-08-13  Darshit Shah  <darnir@gnu.org>
2154         reallocarray: New module
2155         reallocarray is a new function in glibc 2.26 to safely allocate an array
2156         of memory locations with integer overflow protection.
2157         * MODULES.html.sh: Add reallocarray.
2158         * doc/glibc-functions/reallocarray.texi: Documentation for reallocarray.
2159         * lib/reallocarray.c: New file to implement module reallocarray.
2160         * lib/stdlib.in.h: Add function declarations for reallocarray.
2161         * m4/reallocarray.m4: New file.
2162         * m4/stdlib_h.m4: Declare reallocarray.
2163         * modules/reallocarray: New file.
2164         * modules/reallocarray-test: New file.
2165         * modules/stdlib: Coerce stdlib.h to export reallocarray.
2166         * tests/test-reallocarray.c: New test.
2168 2017-08-12  Paul Eggert  <eggert@cs.ucla.edu>
2170         dirent-safer: fix cloexec race
2171         * lib/opendir-safer.c: Include fcntl.h instead of unistd-safer.h.
2172         (opendir_safer): Use F_DUPFD_CLOEXEC.
2173         * modules/dirent-safer (Depends-on): Add fcntl.  Remove unistd-safer.
2174         * tests/test-dirent-safer.c: Do not include unistd-safer.h,
2175         as it is no longer a prerequisite.  Use F_DUPFD_CLOEXEC
2176         instead of dup_safer.
2178         fts: fix cloexec races
2179         * lib/fts.c [!_LIBC]: Do not include dirent--.h, unistd--.h, cloexec.h.
2180         (opendirat, diropen): Use O_CLOEXEC instead of set_cloexec_flag.
2181         (fts_build): Use F_DUPD_CLOEXEC rinstad of set_cloexec_flag.
2182         (fd_ring_check): Set cloexec flag on new file descriptors.
2183         (fts_build, fd_ring_check): While we’re at it, make sure the
2184         resulting file descriptor is not 0, 1, or 2, since that is easy.
2186 2017-08-11  Bruno Haible  <bruno@clisp.org>
2188         fts tests: Fix link error.
2189         Reported by Tom G. Christensen in
2190         https://lists.gnu.org/r/bug-gnulib/2017-08/msg00078.html
2191         * modules/fts-tests (Makefile.am): Link test-fts against LIBINTL.
2193 2017-08-10  Paul Eggert  <eggert@cs.ucla.edu>
2195         fts: port recent changes to CentOS 6
2196         Problem reported by Tom G. Christensen in:
2197         http://lists.gnu.org/r/bug-gnulib/2017-08/msg00064.html
2198         * lib/fts.c (fsword): New type.
2199         (struct dev_type, filesystem_type): Use it.
2200         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for __fsword_t.
2201         Also, check for f_type only if fstatfs and sys/vfs.h work.
2203 2017-08-09  Paul Eggert  <eggert@cs.ucla.edu>
2205         tempname: do not depend on secure_getenv
2206         Excess dependency noted by Eli Zaretskii (Bug#28023#17).
2207         * lib/tempname.c (__secure_getenv) [!_LIBC]: Remove; unused.
2208         * modules/tempname (Depends-on): Remove secure_getenv.
2210 2017-08-08  Paul Eggert  <eggert@cs.ucla.edu>
2212         extensions: add _OPENBSD_SOURCE
2213         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define _OPENBSD_SOURCE.
2215 2017-08-06  Reuben Thomas  <rrt@sc3d.org>
2216             Bruno Haible  <bruno@clisp.org>
2218         manywarnings: Add support for C++.
2219         * build-aux/g++-warning.spec: New file.
2220         * m4/manywarnings-c++.m4: New file.
2221         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC(C++)): New macro, that
2222         redirects to manywarnings-c++.m4.
2223         * modules/manywarnings (Files): Add m4/manywarnings-c++.m4.
2225 2017-08-06  Paul Eggert  <eggert@cs.ucla.edu>
2227         git-version-gen: another fix for tags with "-"
2228         * build-aux/git-version-gen: Improve fix for tags containing "-".
2229         Suggested by Markus Armbruster in:
2230         http://lists.gnu.org/r/bug-gnulib/2017-08/msg00034.html
2232 2017-08-06  Bruno Haible  <bruno@clisp.org>
2234         warnings, manywarnings: Add support for multiple languages, not just C.
2235         * warnings.m4 (gl_UNKNOWN_WARNINGS_ARE_ERRORS_IMPL): Renamed from
2236         gl_UNKNOWN_WARNINGS_ARE_ERRORS.
2237         (gl_UNKNOWN_WARNINGS_ARE_ERRORS(C)): New macro.
2238         (gl_UNKNOWN_WARNINGS_ARE_ERRORS(C++)): New macro.
2239         (gl_UNKNOWN_WARNINGS_ARE_ERRORS): Dispatch to
2240         gl_UNKNOWN_WARNINGS_ARE_ERRORS(_AC_LANG).
2241         (gl_WARN_ADD): Require the gl_UNKNOWN_WARNINGS_ARE_ERRORS specialization
2242         of the current language. If C++ is the current language, modify
2243         WARN_CXXFLAGS instead of WARN_CFLAGS.
2244         * manywarnings.m4 (gl_MANYWARN_ALL_GCC(C)): New macro, extracted from
2245         gl_MANYWARN_ALL_GCC.
2246         (gl_MANYWARN_ALL_GCC): Dispatch to gl_MANYWARN_ALL_GCC(_AC_LANG).
2248 2017-08-06  Markus Armbruster  <armbru@pond.sub.org>
2250         git-version-gen: Fix for tags containing '-'
2252         Really old versions of git-describe (before v1.5.0, Feb 2007)
2253         don't have the number of commits in their long format output,
2254         i.e. where modern 'git describe --abbrev=4 --match="v*"' prints
2255         "v0.1-1494-g124b9", they print "v0.1-1494-g124b9".  git-version-gen
2256         recognizes both patterns, and normalizes the old format to the new one.
2258         Unfortunately, this normalization code gets confused when the tag
2259         contains '-'.  Reproducer:
2261             $ git-tag -m test v0.2-rc1
2262             $ build-aux/git-version-gen .tarball-version; echo
2263             build-aux/git-version-gen: WARNING: git rev-list failed
2264             UNKNOWN
2266         We take exact tag "v0.2-rc1" for the old format, extract the presumed
2267         tag "v0.2" from it, then run "git rev-list v0.2..HEAD" to count
2268         commits since tha tag.  Fails, because tag "v0.2" does not exist.
2270         * git-version-gen: We could perhaps drop support for versions from
2271         more than a decade ago.  But tightening the pattern match is easy
2272         enough, so do that.  Still breaks when you use version tags ending in
2273         something matching -g????, but you arguably get what you deserve then.
2275 2017-08-05  Paul Eggert  <eggert@cs.ucla.edu>
2277         valgrind-tests: use ls, and cache
2278         * m4/valgrind-tests.m4: Test ls, not bash.
2279         Problem reported by Reuben Thomas.
2280         Also, cache the result so that it can be overridden.
2282 2017-08-04  Paul Eggert  <eggert@cs.ucla.edu>
2284         manywarnings: port to 64-bit GCC builds of Emacs
2285         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Compute max safe
2286         object size rather than hardwiring 2147483647.  This is needed to
2287         build GNU Emacs, which has one conditional (and used
2288         only-in-theory) call to malloc with a literal greater than
2289         2147483647.
2291 2017-08-04  Bruno Haible  <bruno@clisp.org>
2293         Relax the license of some modules with no runtime code.
2294         * modules/std-gnu11 (License): Set to 'unlimited'.
2295         * modules/c99 (License): Likewise.
2296         Reported by Reuben Thomas <rrt@sc3d.org>.
2297         * modules/d-ino (License): Set to 'LGPL'.
2298         * modules/host-os (License): Likewise.
2299         * modules/longlong (License): Likewise.
2301 2017-08-03  Paul Eggert  <eggert@cs.ucla.edu>
2303         renameat2: port to RHEL 7 + NFS
2304         * lib/renameat2.c (renameat2) [SYS_renameat2]:
2305         Port to RHEL 7 + NFS.  Problem reported by Ted Zlatanov in:
2306         http://lists.gnu.org/r/emacs-devel/2017-08/msg00082.html
2308 2017-08-02  Paul Eggert  <eggert@cs.ucla.edu>
2310         renameat2: port to non-renameat platforms
2311         Problem reported for MSVC-2015 by Gisle Vanem in:
2312         http://lists.gnu.org/r/bug-gnulib/2017-08/msg00001.html
2313         * lib/renameat2.c [!HAVE_RENAMEAT]: Include <sys/stat.h> here too.
2314         (renameat2) [!HAVE_RENAMEAT]: Fix typo in arg passing.
2316 2017-08-01  Paul Eggert  <eggert@cs.ucla.edu>
2318         manywarnings: port to 32-bit GCC bug
2319         Problem reported by Pino Toscano in:
2320         http://lists.gnu.org/r/bug-gnulib/2017-07/msg00150.html
2321         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Use 2**31 - 1,
2322         not 2**63 - 1, to work around the following GCC bug:
2323         https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81650
2325 2017-07-30  Paul Eggert  <eggert@cs.ucla.edu>
2327         backupfile: new function to validate backup suffix
2328         * lib/backupfile.c (set_simple_backup_suffix): New function.
2329         (backupfile_internal): Use it.
2331         canonicalize: fix EOVERFLOW commentary
2332         Problem reported by Bruno Haible in:
2333         http://lists.gnu.org/r/bug-gnulib/2017-07/msg00147.html
2334         * lib/canonicalize.c (canonicalize_filename_mode):
2335         * lib/canonicalize-lgpl.c (__realpath): Fix comments.
2337         Don't interpret EOVERFLOW to mean nonexistence
2338         * lib/fts.c (fts_stat): If lstat fails, report its errno, which
2339         may be EOVERFLOW; this is likely more useful than reporting the
2340         stat errno.
2341         * lib/glob.c (link_stat): Rename from link_exists2_p and
2342         return -1/0 instead of 0/1.  Caller changed.
2343         * lib/glob.c (link_exists_p):
2344         * lib/renameat2.c (rename_noreplace, renameat2):
2345         * lib/tempname.c (try_nocreate):
2346         If errno == EOVERFLOW then the directory entry exists, so do not
2347         act as if it does not exist.
2349         backup-rename: new module
2350         It is like backupfile, except it avoids some race conditions,
2351         and it does not output to stderr or exit.
2352         * MODULES.html.sh: Add backup-rename.
2353         * lib/backup-find.c, lib/backup-internal.h, lib/backup-rename.c:
2354         * modules/backup-rename: New files.
2355         * lib/backupfile.c: Turn this into an internals file, which
2356         contains code common to backupfile and backup_rename.  Include
2357         backupfile-internal.h instead of backupfile.h.  Do not include
2358         argmatch.h or xalloc.h: include xalloc-oversized.h.  Include
2359         renameat2.h and fcntl.h.
2360         (BACKUP_NOMEM): New constant.
2361         (numbered_backup): New args BASE_OFFSET and *DIRPP.  Do not exit
2362         on memory exhaustion; just return BACKUP_NOMEM.  Caller changed.
2363         (backupfile_internal): Rename from find_backup_file_name.
2364         Support new arg RENAME.
2365         (backup_args, backup_types, get_version, xget_version):
2366         Move to lib/backup-find.c.
2367         * lib/backupfile.h (backup_file_rename): New decl.
2368         * modules/backupfile (Files): Add lib/backup-internal.h,
2369         lib/backup-find.c.
2370         (Depends-on): Add dirfd, fcntl, renameat2.
2371         (lib_SOURCES): Add backup-find.c.
2373         renameat2: port better to older Solaris
2374         * lib/renameat2.c (renameat2): Set ret_val properly on old Solaris.
2375         Add goto to use a label, to silence picky compilers.
2377         fts-tests: port to gcc -Wwrite-strings
2378         * tests/test-fts.c (base, base_d): New static vars.
2379         (argv, remove_tree, main): Use them.
2381 2017-07-26  Reuben Thomas  <rrt@sc3d.org>
2383         relocatable-lib{,-lgpl}: improve documentation
2384         * doc/relocatable-maint.texi: Document use of relocatable-lib{,-lgpl}.
2385         Various other updates.
2387 2017-07-30  Reuben Thomas  <rrt@sc3d.org>
2388             Bruno Haible  <bruno@clisp.org>
2390         relocatable-lib{,-lgpl}: add Valgrind suppressions
2391         * lib/relocatable.valgrind: New file.
2392         * modules/relocatable-lib (Files): Add relocatable.valgrind.
2393         * modules/relocatable-lib-lgpl: Likewise.
2395 2017-07-26  Reuben Thomas  <rrt@sc3d.org>
2397         relocatable: Make the license on the sources the GPL.
2398         * lib/relocatable.h, lib/relocatable.c: Change the copyright notice from
2399         LGPL, which was a special case so that the relocatable source files
2400         could be used without gnulib-tool, to GPL. They can still be used under
2401         the LGPL, using the --lgpl option to gnulib-tool.
2403 2017-07-30  Bruno Haible  <bruno@clisp.org>
2405         host-cpu-c-abi: Detect ILP32 ABI on IA-64 HP-UX.
2406         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): Distinguish ia64-ilp32
2407         from ia64. For arm64, test only __aarch64__, as __ARM_64BIT_STATE and
2408         __ARM_PCS_AAPCS64 are not reliable indicators: they are not defined on
2409         Ubuntu 14.04 (gcc 4.8.4) and Debian 8 (gcc 4.9.2).
2411 2017-07-27  Paul Eggert  <eggert@cs.ucla.edu>
2413         faccessat: document AT_SYMLINK_NOFOLLOW issue
2414         * doc/posix-functions/faccessat.texi: Modernize platform list.
2415         Document AT_SYMLINK_NOFOLLOW limitation.
2417         renameat2: port to Solaris 10
2418         * lib/renameat2.c (rename_noreplace): Use lstat, not faccessat
2419         with AT_SYMLINK_NOFOLLOW (which is not portable).
2420         (renameat): Undef before using, to avoid endless recursion when
2421         the replacement renameat calls renameat2 which calls the
2422         replacement renameat.
2423         (renameat2): Use lstatat, not faccessat with AT_SYMLINK_NOFOLLOW.
2424         * modules/renameat2 (Depends-on): Remove faccessat.
2425         * modules/renameat-tests (test_renameat_LDADD):
2426         * modules/renameat2-tests (test_renameat2_LDADD):
2427         Remove $(LIB_EACCESS).
2429         renameat2: new module
2430         Although the Linux syscall renameat2 is not in glibc (yet?), it is
2431         useful to have access to its RENAME_NOREPLACE flag.
2432         * MODULES.html.sh (func_all_modules): Add renameat2.
2433         * lib/renameat2.c, lib/renameat2.h, modules/renameat2:
2434         * modules/renameat2-tests, tests/test-renameat2.c: New files.
2435         * lib/renameat.c (renameat): Move most of the implementation
2436         to renameat2, and just call renameat2.
2437         * modules/renameat (Files): Remove lib/at-func2.c.
2438         (Depends-on): Depend only on renameat2.
2439         (Include): Remove <fcntl.h>.
2440         * modules/renameat-tests (test_renameat_LDADD): Add $(LIB_EACCESS),
2441         since renameat (via renameat2) might use faccessat.
2443 2017-07-27  Erik Skultety <eskultet@redhat.com>  (tiny change)
2445         vc-list-files: Adjust the script to support git worktrees
2446         * build-aux/vc-list-files: Require existence, not directory.
2448 2017-07-26  Paul Eggert  <eggert@cs.ucla.edu>
2450         doc: bring MODULES.html.sh up to date
2451         Somehow a few months ago we stopped updating MODULES.html.sh.
2452         I don’t recall explicitly deciding this, so I updated it now.
2453         Alternatively I suppose we could remove it.
2454         * MODULES.html.sh: Add builtin-expect, c99, ctime, explicit_bzero,
2455         localtime, localtime-buffer, noreturn, nstrftime, strftime-fixes,
2456         truncate, utime, utime-h, windows-stat-inodes,
2457         windows-stat-override, windows-stat-timespec, year2038.  Sort.
2459 2017-07-26  Jim Meyering  <meyering@fb.com>
2461         fprintftime: fix build-break caused by recent renaming
2462         * lib/fprintftime.c: Include "nstrftime.c", not the now-renamed
2463         "strftime.c".
2464         * modules/fprintftime: Depend directly on nstrftime.
2466 2017-07-26  Paul Eggert  <eggert@cs.ucla.edu>
2468         regex: work with GCC7's -Werror=implicit-fallthrough=
2469         * lib/regex_internal.h (FALLTHROUGH): New macro.
2470         * lib/regcomp.c (peek_token_bracket, parse_expression):
2471         * lib/regexec.c (check_node_accept): Use it.
2473 2017-07-24  Paul Eggert  <eggert@cs.ucla.edu>
2475         fts: simplify fts_build
2476         * lib/fts.c (fts_build): Simplify, and be lazier about
2477         calling leaf_optimization.
2479         fts: three levels of leaf optimization
2480         * lib/fts.c (enum leaf_optimization): New type with three values.
2481         (S_MAGIC_AFS): New macro.  Sort them.
2482         (leaf_optimization): Rename from leaf_optimization_applies, and
2483         return enum leaf_optimization instead of bool.  All uses changed.
2484         Add cases for unknown type and for AFS.
2485         (fts_build): Don’t rely on link counts if NO_LEAF_OPTIMIZATION.
2487         fts: cache dirent_inode_sort_may_be_useful too
2488         * lib/fts.c (struct dev_type): New struct.
2489         (DEV_TYPE_HT_INITIAL_SIZE): New constant.
2490         (dev_type_hash, dev_type_compare, filesystem_type): New functions.
2491         (dirent_inode_sort_may_be_useful, leaf_optimization_applies):
2492         Now takes FTSENT const *, not int.  All uses changed.  Use
2493         filesystem_type to cache.
2494         (link_count_optimize_ok): Remove.  Caller changed to use
2495         leaf_optimization_applies, which now uses shared cache.
2497         fts: introduce MIN_DIR_NLINK
2498         * lib/fts.c (MIN_DIR_NLINK): New constant.
2499         Use it instead of 2, whenever we are talking about link counts.
2501         fts: nlink_t signedness fixups
2502         * lib/fts.c (fts_open): Set rootparent n_dirs_remaining to -1
2503         so that root need not be a special case later.
2504         (fts_read): Remove now-redundant test for fts_level.
2505         Do not assume that nlink_t is signed.
2506         (fts_build): Remove useless decrement of nlinks.
2507         (fts_stat): Avoid unlikely signed integer overflow later, if
2508         nlink_t is signed.
2510         fts-tests: new module
2511         * modules/fts-tests, tests/test-fts.c: New files.
2513 2017-07-23  Bruno Haible  <bruno@clisp.org>
2515         Rename module 'strftime' to 'nstrftime'.
2516         * m4/nstrftime.m4: Renamed from m4/strftime.m4.
2517         * lib/nstrftime.c: Renamed from lib/strftime.c.
2518         * modules/nstrftime: Renamed from modules/strftime.
2519         (Files, Makefile.am): Update.
2520         * tests/test-nstrftime.c: Renamed from tests/test-strftime.c.
2521         Fix comment.
2522         * modules/nstrftime-tests: Renamed from modules/strftime-tests.
2523         (Files, Makefile.am): Update.
2524         * modules/strftime: New file, an obsolete indirection.
2525         * doc/posix-functions/strftime.texi: Update reference.
2526         * config/srclist.txt: Update info.
2527         * NEWS: Mention the change.
2529 2017-07-21  Tim Rühsen  <tim.ruehsen@gmx.de>
2531         malloca: Silence a warning from clang's memory sanitizer.
2532         * lib/malloca.c (NO_SANITIZE_MEMORY): New macro.
2533         (freea): Use it.
2535 2017-07-18  Bruno Haible  <bruno@clisp.org>
2537         host-cpu-c-abi: Fix detection of MIPS ABI.
2538         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): For MIPS, really test the
2539         ABI, not the CPU instruction set.
2541 2017-07-16  Paul Eggert  <eggert@cs.ucla.edu>
2543         explicit_bzero: new module
2544         The explicit_bzero function has been added to glibc.
2545         This module is intended to supports its use in GNU programs.
2546         * doc/glibc-functions/explicit_bzero.texi, lib/explicit_bzero.c:
2547         * m4/explicit_bzero.m4, modules/explicit_bzero:
2548         New files.
2549         * doc/gnulib.texi (Glibc string.h): Link to new doc.
2550         * lib/string.in.h (explicit_bzero): Declare.
2551         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add defaults for it.
2552         * modules/string (string.h): Substitute its vars.
2554 2017-07-16  Bruno Haible  <bruno@clisp.org>
2556         threadlib: Support static linking.
2557         * m4/threadlib.m4 (gl_THREADLIB_BODY): When static linking is in use,
2558         set gl_cv_have_weak to 'no'.
2560 2017-07-16  Bruno Haible  <bruno@clisp.org>
2562         unicase/locale-language: Fix link dependencies.
2563         * modules/unicase/locale-language (Link): New section.
2564         * modules/unicase/locale-language-tests (Makefile.am): Link
2565         test-locale-language program with $(LIBTHREAD).
2567 2017-07-15  John E. Malmberg  <wb8tyw@gmail.com>
2569         sys_socket: Add support for OpenVMS.
2570         * lib/sys_socket.in.h [__VMS]: Define CMSG_SPACE, CMSG_LEN.
2571         * doc/posix-headers/sys_socket.texi: Mention OpenVMS issues.
2573 2017-07-15  John E. Malmberg  <wb8tyw@gmail.com>
2575         sys_resource: Add support for OpenVMS.
2576         * lib/resource.in.h [__VMS]: Define RUSAGE_SELF, RUSAGE_CHILDREN.
2577         * doc/posix-headers/sys_resource.texi: Mention OpenVMS issues.
2579 2017-07-15  John E. Malmberg  <wb8tyw@gmail.com>
2580             Bruno Haible  <bruno@clisp.org>
2582         math: Add support for OpenVMS.
2583         * lib/math.in.h [__VMS]: Include <fp.h>.
2584         * doc/posix-headers/math.texi: Mention OpenVMS issues.
2586 2017-07-15  Bruno Haible  <bruno@clisp.org>
2588         getdtablesize: Add minimal support for OpenVMS.
2589         Reported by John E. Malmberg <wb8tyw@qsl.net>.
2590         * modules/getdtablesize (Description): Fix.
2591         * lib/getdtablesize.c: Fix comment.
2592         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Don't replace the
2593         getdtablesize() function, even though the test fails.
2594         * doc/glibc-functions/getdtablesize.texi: Reference SUSv2. Describe
2595         limitation on OpenVMS.
2597 2017-07-13  Bruno Haible  <bruno@clisp.org>
2599         Revisit cross-compilation guesses.
2600         * m4/wctype_h.m4 (gl_WCTYPE_H): Add comment.
2602 2017-07-13  Bruno Haible  <bruno@clisp.org>
2604         Improve cross-compilation guesses for native Windows.
2605         * m4/btowc.m4 (gl_FUNC_BTOWC): Add cross-compilation guess for native
2606         Windows.
2607         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Likewise.
2608         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Likewise.
2609         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
2610         * m4/cbrtf.m4 (gl_FUNC_CBRTF_WORKS): Likewise.
2611         * m4/cbrtl.m4 (gl_FUNC_CBRTL, gl_FUNC_CBRTL_WORKS): Likewise.
2612         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
2613         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
2614         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
2615         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
2616         * m4/dup.m4 (gl_FUNC_DUP): Likewise.
2617         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
2618         * m4/exp2.m4 (gl_FUNC_EXP2_WORKS): Likewise.
2619         * m4/exp2l.m4 (gl_FUNC_EXP2L): Likewise.
2620         * m4/expm1.m4 (gl_FUNC_EXPM1): Likewise.
2621         * m4/expm1f.m4 (gl_FUNC_EXPM1F_WORKS): Likewise.
2622         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
2623         * m4/fabsl.m4 (gl_FUNC_FABSL_WORKS): Likewise.
2624         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
2625         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
2626         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
2627         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
2628         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
2629         * m4/fma.m4 (gl_FUNC_FMA_WORKS): Likewise.
2630         * m4/fmaf.m4 (gl_FUNC_FMAF_WORKS): Likewise.
2631         * m4/fmal.m4 (gl_FUNC_FMAL_WORKS): Likewise.
2632         * m4/fmod.m4 (gl_FUNC_FMOD): Likewise.
2633         * m4/fmodf.m4 (gl_FUNC_FMODF): Likewise.
2634         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
2635         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
2636         * m4/frexpf.m4 (gl_FUNC_FREXPF_WORKS): Likewise.
2637         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
2638         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Likewise.
2639         * m4/hypot.m4 (gl_FUNC_HYPOT): Likewise.
2640         * m4/hypotf.m4 (gl_FUNC_HYPOTF, gl_FUNC_HYPOTF_WORKS): Likewise.
2641         * m4/hypotl.m4 (gl_FUNC_HYPOTL, gl_FUNC_HYPOTL_WORKS): Likewise.
2642         * m4/ilogb.m4 (gl_FUNC_ILOGB_WORKS): Likewise.
2643         * m4/ilogbf.m4 (gl_FUNC_ILOGBF_WORKS): Likewise.
2644         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
2645         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
2646         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
2647         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
2648         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
2649         * m4/log.m4 (gl_FUNC_LOG, gl_FUNC_LOG_WORKS): Likewise.
2650         * m4/logf.m4 (gl_FUNC_LOGF, gl_FUNC_LOGF_WORKS): Likewise.
2651         * m4/logl.m4 (gl_FUNC_LOGL_WORKS): Likewise.
2652         * m4/log10.m4 (gl_FUNC_LOG10, gl_FUNC_LOG10_WORKS): Likewise.
2653         * m4/log10f.m4 (gl_FUNC_LOG10F, gl_FUNC_LOG10F_WORKS): Likewise.
2654         * m4/log10l.m4 (gl_FUNC_LOG10L_WORKS): Likewise.
2655         * m4/log1p.m4 (gl_FUNC_LOG1P): Likewise.
2656         * m4/log1pf.m4 (gl_FUNC_LOG1PF, gl_FUNC_LOG1PF_WORKS): Likewise.
2657         * m4/log1pl.m4 (gl_FUNC_LOG1PL): Likewise.
2658         * m4/log2.m4 (gl_FUNC_LOG2, gl_FUNC_LOG2_WORKS): Likewise.
2659         * m4/log2f.m4 (gl_FUNC_LOG2F, gl_FUNC_LOG2F_WORKS): Likewise.
2660         * m4/log2l.m4 (gl_FUNC_LOG2L_WORKS): Likewise.
2661         * m4/logb.m4 (gl_FUNC_LOGB_WORKS): Likewise.
2662         * m4/logbf.m4 (gl_FUNC_LOGBF_WORKS): Likewise.
2663         * m4/logbl.m4 (gl_FUNC_LOGBL_WORKS): Likewise.
2664         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Likewise.
2665         * m4/mbrtowc.m4 (gl_MBRTOWC_EMPTY_INPUT, gl_MBRTOWC_C_LOCALE): Likewise.
2666         * m4/mkdir.m4 (gl_FUNC_MKDIR): Likewise.
2667         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
2668         * m4/mktime.m4 (gl_FUNC_MKTIME_WORKS): Likewise.
2669         * m4/modf.m4 (gl_FUNC_MODF): Likewise.
2670         * m4/modff.m4 (gl_FUNC_MODFF): Likewise.
2671         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
2672         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
2673         * m4/perror.m4 (gl_FUNC_PERROR): Likewise.
2674         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
2675         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE,
2676         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2,
2677         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN): Likewise.
2678         * m4/ptsname_r.m4 (gl_PREREQ_PTSNAME_R): Likewise.
2679         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
2680         * m4/regex.m4 (gl_REGEX): Likewise.
2681         * m4/remainder.m4 (gl_FUNC_REMAINDER): Likewise.
2682         * m4/remainderf.m4 (gl_FUNC_REMAINDERF,
2683         gl_FUNC_REMAINDERF_WORKS): Likewise.
2684         * m4/remainderl.m4 (gl_FUNC_REMAINDERL,
2685         gl_FUNC_REMAINDERL_WORKS): Likewise.
2686         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
2687         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
2688         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
2689         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
2690         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
2691         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
2692         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
2693         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
2694         * m4/sqrtl.m4 (gl_FUNC_SQRTL_WORKS): Likewise.
2695         * m4/stdint.m4 (gl_STDINT_H): Likewise.
2696         * m4/strerror.m4 (gl_FUNC_STRERROR_0): Likewise.
2697         * m4/strncat.m4 (gl_FUNC_STRNCAT): Likewise.
2698         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
2699         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
2700         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
2701         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
2702         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
2703         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
2704         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
2705         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
2706         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Likewise.
2707         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
2708         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
2709         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
2710         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
2711         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
2712         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
2713         Likewise.
2714         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
2715         * m4/chown.m4 (AC_FUNC_CHOWN): Add cross-compilation guess for native
2716         Windows. Enable also on Autoconf 2.70.
2717         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
2718         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
2719         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
2720         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO,
2721         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
2722         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1): Add cross-compilation guess
2723         for native Windows.
2724         (gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
2725         gl_VSNPRINTF_ZEROSIZE_C99): Add comment.
2727 2017-07-13  Bruno Haible  <bruno@clisp.org>
2729         Improve cross-compilation guesses for native Windows.
2730         * m4/memchr.m4 (gl_FUNC_MEMCHR): Add cross-compilation guess for native
2731         Windows.
2732         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Don't use internals of
2733         memchr.m4.
2734         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
2736 2017-07-13  Bruno Haible  <bruno@clisp.org>
2738         Improve cross-compilation guesses for native Windows.
2739         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): Add cross-compilation guess for
2740         native Windows.
2741         (gl_FUNC_FFLUSH): Update accordingly.
2742         * m4/fclose.m4 (gl_FUNC_FCLOSE): Likewise.
2743         * m4/fseeko.m4 (gl_FUNC_FFLUSH_STDIN): Likewise.
2745 2017-07-11  Bruno Haible  <bruno@clisp.org>
2747         More systematic m4 quoting and indentation.
2748         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Quote systematically.
2749         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
2750         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
2751         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
2752         * m4/host-os.m4 (gl_HOST_OS): Likewise.
2753         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H,
2754         gl_WINSIZE_IN_PTEM): Likewise.
2755         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Likewise.
2756         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
2757         * m4/pselect.m4 (gl_FUNC_PSELECT): Likewise.
2758         * m4/fchownat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Quote systematically.
2759         Correct indentation.
2760         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
2761         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
2762         * m4/jm-winsz2.m4 (gl_HEADER_TIOCGWINSZ_NEEDS_SYS_IOCTL): Likewise.
2763         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
2764         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
2765         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
2767 2017-07-10  Bruno Haible  <bruno@clisp.org>
2769         round, roundf: Avoid compiler warning in configure test.
2770         * m4/round.m4 (gl_FUNC_ROUND): Use 'return' instead of exit().
2771         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
2773 2017-07-10  Bruno Haible  <bruno@clisp.org>
2775         getlogin tests: Avoid #ifdefs when sharing code between modules.
2776         * modules/getlogin_r-tests (Files): Add tests/test-getlogin.h.
2777         * modules/getlogin-tests (Files): Likewise. Remove
2778         tests/test-getlogin_r.c.
2779         * tests/test-getlogin.h: Extracted from tests/test-getlogin_r.c.
2780         * tests/test-getlogin.c: Extracted from tests/test-getlogin_r.c.
2781         * tests/test-getlogin_r.c: Include test-getlogin.h. Omit code that tests
2782         getlogin().
2784 2017-07-10  Paul Eggert  <eggert@cs.ucla.edu>
2786         getlogin: don’t assume one name per uid
2787         Problem reported by Wolfgang F. Muthmann (Bug#27640).
2788         * modules/getlogin-tests (Files): Add tests/test-getlogin_r.c.
2789         (ttyname): Remove test.
2790         * modules/getlogin_r-tests (ttyname): Remove test.
2791         * tests/test-getlogin.c: Replace this near-clone of test-getlogin_r.c
2792         with ‘#define TEST_LOGIN’ followed by ‘#include "test-getlogin_r.c"’.
2793         * tests/test-getlogin_r.c: If TEST_GETLOGIN is defined, test
2794         getlogin rather than getlogin_r.  This avoids code duplication.
2795         (main): Use isatty and fstat rather than ttyname and stat.
2796         Use getpwnam instead of getpwuid, to be portable to test platforms
2797         that have multiple login names for the same uid.
2799 2017-07-10  Tim Rühsen  <tim.ruehsen@gmx.de>
2800             Bruno Haible  <bruno@clisp.org>
2802         glob: Fix more memory leaks.
2803         * lib/glob.c (glob): Use 'goto out' in order to free dirname before
2804         returning.
2805         Reported by Tim Rühsen.
2807 2017-07-10  Bruno Haible  <bruno@clisp.org>
2809         Make sure $host and $host_os are defined when used.
2810         * m4/argz.m4 (gl_FUNC_ARGZ): Require AC_CANONICAL_HOST.
2811         * m4/closedir.m4 (gl_FUNC_CLOSEDIR): Likewise.
2812         * m4/csharpexec.m4 (gt_CSHARPEXEC): Likewise.
2813         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
2814         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
2815         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
2816         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Likewise.
2817         * m4/opendir.m4 (gl_FUNC_OPENDIR): Likewise.
2818         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
2819         * m4/pselect.m4 (gl_FUNC_PSELECT): Likewise.
2820         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Likewise.
2821         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Likewise.
2822         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
2823         * m4/ceill.m4 (gl_FUNC_CEILL): Require AC_CANONICAL_HOST outside the
2824         m4_ifdef block.
2826 2017-07-09  Bruno Haible  <bruno@clisp.org>
2828         *printf: Fix cross-compilation guess for Solaris.
2829         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): Fix copy-and-paste mistake from
2830         2010-12-21.
2832 2017-07-07  Paul Eggert  <eggert@cs.ucla.edu>
2833             Bruno Haible  <bruno@clisp.org>
2835         vasnprintf: port to macOS 10.13
2836         Problem reported by comex in:
2837         http://lists.gnu.org/r/bug-gnulib/2017-07/msg00056.html
2838         * lib/vasnprintf.c (VASNPRINTF): Don’t use %n on macOS.
2840 2017-07-06  Bruno Haible  <bruno@clisp.org>
2842         imaxdiv tests: Fix logic.
2843         * tests/test-imaxdiv.c (main): Use == instead of =.
2844         Reported by Coverity.
2846 2017-07-06  Bruno Haible  <bruno@clisp.org>
2848         uninorm/filter: Fix use-after-free bug.
2849         * lib/uninorm/uninorm-filter.c (uninorm_filter_write): Maintain
2850         sortbuf == filter->sortbuf invariant.
2851         Reported by Coverity.
2853 2017-07-06  Bruno Haible  <bruno@clisp.org>
2855         glob: Fix more memory leaks.
2856         * lib/glob.c (glob): Free dirname before returning.
2857         Reported by Coverity and Tim Rühsen.
2859 2017-07-06  Paul Eggert  <eggert@cs.ucla.edu>
2861         parse-datetime: fix uninit var bug
2862         Reported by Bruno Haible in:
2863         http://lists.gnu.org/r/bug-gnulib/2017-07/msg00038.html
2864         * lib/parse-datetime.y (parse_datetime2): Do not use
2865         uninitialized.
2867 2017-07-05  Bruno Haible  <bruno@clisp.org>
2869         doc: Update for MSVC 14.
2870         * doc/posix-headers/*.texi: Add info about MSVC 14.
2871         * doc/posix-functions/*.texi: Likewise.
2872         * doc/pastposix-functions/*.texi: Likewise.
2873         * doc/glibc-headers/*.texi: Likewise.
2874         * doc/glibc-functions/*.texi: Likewise.
2876 2017-07-05  Bruno Haible  <bruno@clisp.org>
2878         sched: Fix build failure on native Windows (regression from 2017-06-19).
2879         * m4/sched_h.m4 (gl_SCHED_H): Set HAVE_STRUCT_SCHED_PARAM always.
2881 2017-07-03  John E. Malmberg  <wb8tyw@gmail.com>
2883         stdioext: Port to OpenVMS.
2884         * lib/stdio-impl.h: OpenVMS uses struct _iobuf for FILE information.
2885         * lib/fpending.c (fpending): Remove non-working VMS specific code.
2886         * lib/fbufmode.c (fbufmode): Fix _IOLBF test to use fp_ macro.
2887         * lib/fflush.c (clear_ungetc_buffer): Add OpenVMS to comments.
2888         * lib/fpurge.c (fpurge): Likewise.
2889         * lib/freadable.c (freadable): Likewise.
2890         * lib/freadahead.c (freadahead): Likewise.
2891         * lib/freading.c (freading): Likewise.
2892         * lib/freadptr.c (freadptr): Likewise.
2893         * lib/freadseek.c (freadseek): Likewise.
2894         * lib/fseeko.c (fseeko): Likewise.
2895         * lib/fseterr.c (fseterr): Likewise.
2896         * lib/fwritable.c (fwriteable): Likewise.
2897         * lib/fwriting.c (fwriting): Likewise.
2899 2017-07-01  Benno Schulenberg  <bensberg@telfort.nl>
2901         glob: Declare variables at the very start of their scope.
2902         * lib/glob.c (convert_dirent, convert_dirent64): Give each fragment
2903         its separate scope, so the functions will compile on Haiku.
2905 2017-07-01  Bruno Haible  <bruno@clisp.org>
2907         logbl: Work around a glibc bug on PowerPC64LE.
2908         * m4/logbl.m4 (gl_FUNC_LOGBL_WORKS): Test also negative subnormal
2909         numbers.
2910         * doc/posix-functions/logbl.texi: Update.
2912 2017-06-29  Bruno Haible  <bruno@clisp.org>
2914         stat, fstat: Compile stat-w32.c only on platforms that need it.
2915         Suggested by Paul Eggert.
2916         * modules/stat (configure.ac): Request stat-w32.o only on native
2917         Windows.
2918         * modules/fstat (configure.ac): Likewise.
2920 2017-06-25  Bruno Haible  <bruno@clisp.org>
2922         stat: Improve last change.
2923         * lib/stat-w32.c: Revert last change. Use generic idiom instead.
2925 2017-06-25  Paul Eggert  <eggert@cs.ucla.edu>
2927         stat: port to xlc 12.01
2928         * lib/stat-w32.c: Always include <sys/types.h>.  Otherwise, xlc
2929         12.01 complains "Compilation unit is empty."
2931 2017-06-24  Paul Eggert  <eggert@cs.ucla.edu>
2933         xalloc-oversized: port to icc
2934         * lib/xalloc-oversized.h (xalloc_oversized): Do not use
2935         __builtin_mul_overflow if ICC is defined, as this results in
2936         "undefined reference to `__builtin_mul_overflow'" with icc 17.0.2
2937         20170213.
2939 2017-06-19  Bruno Haible  <bruno@clisp.org>
2941         classpath: Avoid including config.h twice, as it produces warnings.
2942         Reported by John E. Malmberg <wb8tyw@gmail.com>.
2943         * lib/classpath.h: Conditionalize the include of config.h.
2945 2017-06-19  Bruno Haible  <bruno@clisp.org>
2946             John E. Malmberg  <wb8tyw@gmail.com>  (tiny change)
2948         sched: Fix compilation failure on OpenVMS.
2949         * m4/sched_h.m4 (gl_SCHED_H): Require AC_CANONICAL_HOST. On OpenVMS,
2950         test whether <pthread.h> exists and defines struct sched_param.
2951         * lib/sched.in.h: On OpenVMS, include <pthread.h>.
2953 2017-06-17  Paul Eggert  <eggert@cs.ucla.edu>
2955         diffseq: port to GCC 7 with --enable-gcc-warnings
2956         * lib/diffseq.h (diag): Use an if, not an ifdef, for most of the
2957         heuristic check.  This way, GCC 7 with --enable-gcc-warnings does
2958         not complain about big_snake being defined but not used.
2960 2017-06-15  Bruno Haible  <bruno@clisp.org>
2962         gettext-h: Update theoretical condition for use of variable size arrays.
2963         Reported by Paul Eggert.
2964         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Extend comment
2965         to include the theoretical condition for availability of variable size
2966         arrays, if we could trust the value of __STDC_VERSION__.
2968 2017-06-12  Bruno Haible  <bruno@clisp.org>
2970         Relicense some modules under LGPLv2+.
2971         Daiki Ueno's approval is in
2972         https://lists.gnu.org/r/bug-gnulib/2017-06/msg00058.html.
2973         * modules/uniwidth/base (License): Change to LGPLv2+.
2974         * modules/uniwidth/width (License): Likewise.
2976 2017-06-11  Bruno Haible  <bruno@clisp.org>
2978         localename: Fix test failure on DragonFly BSD.
2979         * lib/localename.c (gl_locale_name_thread_unsafe): Treat DragonFly BSD
2980         like FreeBSD.
2982 2017-06-11  Bruno Haible  <bruno@clisp.org>
2984         float: Fix 'float' and 'isinf' failures on DragonFly BSD.
2985         * m4/float_h.m4 (gl_FLOAT_H): Treat DragonFly BSD like FreeBSD.
2986         * lib/float.in.h: Likewise.
2987         * m4/fmal.m4, m4/frexpl.m4, m4/logbl.m4: Update accordingly.
2989 2017-06-11  Bruno Haible  <bruno@clisp.org>
2991         gnulib-tool: Clean up after autotools.
2992         * gnulib-tool (func_create_testdir, func_create_megatestdir): Remove
2993         useless directory left over by the Autotools.
2995 2017-06-11  Paul Eggert  <eggert@cs.ucla.edu>
2997         getopt-posix: port to glibc 2.25.90
2998         Problem reported by Daniel P. Berrange in:
2999         http://lists.gnu.org/r/bug-gnulib/2017-06/msg00003.html
3000         * lib/getopt-pfx-core.h (_GETOPT_CORE_H):
3001         * lib/getopt-pfx-ext.h (_GETOPT_EXT_H):
3002         #undef if __GETOPT_PREFIX is defined.
3004 2017-06-11  Bruno Haible  <bruno@clisp.org>
3006         strtod-obsolete: Fix license.
3007         * modules/strtod-obsolete (License): Change to LGPL.
3009 2017-06-10  Jim Meyering  <meyering@fb.com>
3011         maint: update to work with GCC7's -Werror=implicit-fallthrough=
3012         * lib/savewd.c (FALLTHROUGH): Define.
3013         (savewd_save, savewd_restore): Use this, rather than a comment,
3014         whenever one switch case falls through into the next.
3016 2017-06-08  Bruno Haible  <bruno@clisp.org>
3018         host-cpu-c-abi: Support for aarch64 ILP32 ABI.
3019         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): Recognize the aarch64 ILP32
3020         ABI. Set HOST_CPU_C_ABI=arm64-ilp32 and define __arm64_ilp32__ in this
3021         case.
3023 2017-06-08  Paul Eggert  <eggert@cs.ucla.edu>
3025         doc: remove robots, add prereqs
3026         * doc/build-automation.texi, doc/gnulib.texi: Mention prereqs for
3027         builds.  Simon's robot site does not seem to be up, so remove
3028         mentions of it for now.
3030 2017-06-08  Bruno Haible  <bruno@clisp.org>
3032         gnulib-tool: Fix bug in func_symlink_if_changed, from 2006-11-13.
3033         * gnulib-tool (func_symlink_target): New function, extracted from
3034         func_symlink.
3035         (func_symlink, func_symlink_if_changed): Use it.
3037 2017-06-08  Bruno Haible  <bruno@clisp.org>
3039         gnulib-tool: Fix bug in func_ln_s, from 2016-01-15.
3040         * gnulib-tool (func_ln_s): Determine cp_src correctly.
3042 2017-06-07  Bruno Haible  <bruno@clisp.org>
3044         canonicalize-lgpl: Avoid conflict with gnulib 'getcwd' module on VMS.
3045         Reported by John E. Malmberg <wb8tyw@gmail.com> in
3046         <https://lists.gnu.org/r/bug-gnulib/2017-06/msg00029.html>.
3047         * lib/canonicalize-lgpl.c (__getcwd): On VMS, when using gnulib's getcwd
3048         override, pass 2 arguments to getcwd, not 3.
3050 2017-06-04  Paul Eggert  <eggert@cs.ucla.edu>
3052         same-inode: port better to VMS 8.2 and later
3053         Problem reported by John E. Malmberg in:
3054         http://lists.gnu.org/r/bug-gnulib/2017-06/msg00005.html
3055         * lib/same-inode.h (SAME_INODE) [__VMS && 80200000 <= __CRTL_VER]:
3056         Use the usual POSIX definition.
3057         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Define _USE_STD_STAT.
3059 2017-06-01  Paul Eggert  <eggert@cs.ucla.edu>
3061         error: fix POSIX violation for va_end
3062         Problem reported by Bruno Haible in:
3063         http://lists.gnu.org/r/bug-gnulib/2017-06/msg00001.html
3064         * lib/error.c (error_tail): Do not call va_end here.
3065         (error, error_at_line): Call it here instead.
3067 2017-05-28  Bruno Haible  <bruno@clisp.org>
3069         c-strtod: Make it usable in C++ mode.
3070         * lib/c-strtod.h: Add 'extern "C"' marker for C++.
3072 2017-05-25  Jim Meyering  <meyering@fb.com>
3074         quotearg: fix compilation failure due to FALLTHROUGH misuse
3075         * lib/quotearg.c (quotearg_buffer_restyled): Revert one FALLTHROUGH
3076         macro back to /* fall through */ comment.  The macro can apply only
3077         to a following case statement.  Reported by Assaf Gordon.
3079 2017-05-25  Paul Eggert  <eggert@cs.ucla.edu>
3081         intprops: port to recent icc
3082         Port to icc (ICC) 17.0.4 20170411, which defines __GNUC__ to be 5
3083         but does not support __builtin_add_overflow etc.
3084         * lib/intprops.h (_GL_HAS_BUILTIN_OVERFLOW) [__ICC]:
3085         Define to 0.
3087 2017-05-23  Karl Berry  <karl@freefriends.org>
3089         * config/srclist.txt (iconv.m4): sync broken, comment out
3090         until (hopefully) the next gettext release.
3092 2017-05-22  Bjarni Ingi Gislason  <bjarniig@rhi.hi.is>
3094         Remove repeated words in comments.
3096 2017-05-22  Bernhard Voelker  <mail@bernhard-voelker.de>
3098         fallthrough: reinstate a FALLTHROUGH instance in quotearg
3099         quotearg.c: Reinstate this instance which is significant
3100         when the if branch is not taken.
3102 2017-05-21  Bruno Haible  <bruno@clisp.org>
3104         gnulib-tool: Add options to create hard links.
3105         * gnulib-tool (func_usage): Document options --hardlink,
3106         --local-hardlink, --more-hardlinks.
3107         (func_symlink): Renamed from func_ln.
3108         (func_symlink_if_changed): Renamed from func_ln_if_changed.
3109         (func_hardlink): New function.
3110         (copymode, lcopymode): New variables.
3111         (symbolic, lsymbolic): Remove variables.
3112         (Options): Implement options --hardlink, --local-hardlink,
3113         --more-hardlinks.
3114         (func_should_link): Renamed from func_should_symlink. Set copyaction.
3115         (func_add_file, func_update_file): Update invocation of
3116         func_should_link. Invoke func_hardlink when appropriate.
3117         (func_import): Update comments.
3118         (func_create_testdir): Update invocation of func_should_link. Invoke
3119         func_hardlink when appropriate.
3120         Finally, invoke 'git update-index --refresh' to mitigate the effects of
3121         the hard links on git.
3123 2017-05-20  Bruno Haible  <bruno@clisp.org>
3125         argp: Simplify bit manipulation.
3126         * lib/argp-parse.c (parser_parse_opt): Use &, |, ~ instead of shifts
3127         on a signed integer type.
3129 2017-05-20  Bruno Haible  <bruno@clisp.org>
3131         Avoid wrong configure results with gcc -fsanitize=address.
3132         This completes the work done on 2016-02-06 on this topic.
3133         * m4/memmem.m4 (gl_FUNC_MEMMEM): Free allocated memory before returning.
3134         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
3135         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
3136         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
3137         * m4/fopen.m4 (gl_FUNC_FOPEN): Close allocated FILE streams before
3138         returning.
3139         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): Likewise.
3140         * m4/fpurge.m4 (gl_FUNC_FPURGE): Likewise.
3141         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
3142         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
3143         * m4/signbit.m4 (gl_FLOATTYPE_SIGN_LOCATION): Likewise.
3144         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Likewise.
3145         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Close allocated FILE streams and
3146         free allocated memory before returning.
3147         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
3148         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Close allocated DIR
3149         objects before returning.
3150         * m4/iconv.m4 (AM_ICONV_LINK): Close allocated iconv_t handles before
3151         returning.
3153 2017-05-20  Bruno Haible  <bruno@clisp.org>
3155         gnulib-tool: Don't create hard links between gnulib and its testdirs.
3156         * gnulib-tool (func_create_testdir): Don't invoke 'ln'.
3158 2017-05-20  Bruno Haible  <bruno@clisp.org>
3160         argp, tsearch tests: Fix file list.
3161         * modules/argp-tests (Files): Add tests/macros.h.
3162         * modules/tsearch-tests (Files): Likewise.
3164 2017-05-20  Bruno Haible  <bruno@clisp.org>
3166         getopt-posix tests: Remove redundant include.
3167         * tests/test-getopt.h: Don't include "macros.h". It's already included
3168         by tests/test-getopt-main.h.
3170 2017-05-19  Jim Meyering  <meyering@fb.com>
3172         dfa: two small simplifications
3173         * lib/dfa.c (build_state): Avoid repeating longer expressions.
3175 2017-05-18  Jim Meyering  <meyering@fb.com>
3177         fallthrough: update for GCC 7/8
3178         * lib/quotearg.c (FALLTHROUGH): New macro.
3179         Use it whenever one switch case falls through into the next,
3180         replacing "/* Fall through */" comments.  This exposed one
3181         instance of an unwarranted "fall through" comment: unwarranted
3182         because it preceded a "goto" label not a case statement.
3183         * lib/freopen-safer.c (freopen_safer): Likewise.
3184         * lib/fts.c (leaf_optimization_applies): Likewise.
3185         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Likewise.
3186         * tests/test-getopt_long.h (getopt_long_loop): Likewise.
3187         * tests/test-tsearch.c (mangle_tree): Likewise.  Also include
3188         tests/macros.h for the definition.
3189         * tests/test-argp.c (group1_parser): Likewise.
3190         * tests/test-getopt.h (getopt_loop): Likewise.
3192 2017-05-19  Paul Eggert  <eggert@cs.ucla.edu>
3194         argp: fix shift bug
3195         * lib/argp-parse.c (parser_parse_opt): Rework to avoid undefined
3196         behavior on shift overflow, caught by gcc -fsanitize=undefined.
3198         argp: fix pointer-subtraction bug
3199         * lib/argp-help.c (hol_append): Don’t subtract pointers to
3200         different arrays, as this can run afoul of -fcheck-pointer-bounds.
3201         See the thread containing Bruno Haible’s report in:
3202         http://lists.gnu.org/r/bug-gnulib/2017-05/msg00171.html
3204 2017-05-19  Bruno Haible  <bruno@clisp.org>
3206         printf-posix tests: Avoid test failure with "gcc --coverage".
3207         Reported by Tim Rühsen <tim.ruehsen@gmx.de>.
3208         * tests/test-printf-posix2.c (main): Test a width of 10000000 rather
3209         than 5000000.
3210         * tests/test-fprintf-posix2.c (main): Likewise.
3212 2017-05-19  Paul Eggert  <eggert@cs.ucla.edu>
3214         closeout: don’t close stderr when sanitizing
3215         * NEWS: Document this.
3216         * lib/closeout.c (__has_feature): New macro, if not already defined.
3217         (SANITIZE_ADDRESS): New constant.
3218         (close_stdout): Don’t close stderr if sanitizing addresses.
3220 2017-05-19  Bruno Haible  <bruno@clisp.org>
3222         get-rusage-data tests: Avoid failure on Linux/glibc.
3223         * tests/test-get-rusage-data.c (main): Don't expect a strict increase
3224         on glibc systems.
3226 2017-05-18  Bruno Haible  <bruno@clisp.org>
3228         localename: Include necessary header files on Cygwin.
3229         * lib/localename.c [__CYGWIN__]: Include <langinfo.h>, since this is
3230         where NL_LOCALE_NAME is defined.
3232 2017-05-18  Bruno Haible  <bruno@clisp.org>
3234         gettext: Update macros from gettext git.
3235         * m4/intldir.m4: Require Autoconf >= 2.60.
3236         * m4/progtest.m4: Fix typos in copyright notice.
3238 2017-05-18  Bruno Haible  <bruno@clisp.org>
3240         copy-file tests: Fix link error (regression from 2017-05-01).
3241         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
3242         * modules/copy-file-tests (Makefile.am): Link test-copy-file with
3243         $(LIB_CLOCK_GETTIME).
3245 2017-05-18  Bruno Haible  <bruno@clisp.org>
3247         unicase/special-casing: Fix incompatibility with gperf-3.0.4
3248         (regression from 2017-02-13).
3249         * lib/unicase/special-casing.in.h: Renamed from
3250         lib/unicase/special-casing.h.
3251         * modules/unicase/special-casing (Files): Add
3252         lib/unicase/special-casing.in.h. Remove lib/unicase/special-casing.h.
3253         (Makefile.am): Add rule for generating unicase/special-casing.h.
3254         Update BUILT_SOURCES and MOSTLYCLEANFILES accordingly.
3255         * lib/unicase/special-casing.c: Include "unicase/special-casing.h",
3256         not "special-casing.h".
3257         * lib/unicase/u*.c: Likewise.
3259 2017-05-17  Bruno Haible  <bruno@clisp.org>
3261         README: Don't ask people to read a TeXinfo file.
3262         Reported by Tim Rühsen <tim.ruehsen@gmx.de>.
3263         * README: Tell people how to read the HTML formatted manual.
3265 2017-05-16  Tim Rühsen  <tim.ruehsen@gmx.de>
3267         parse-datetime: Fix memleak
3268         * lib/parse-datetime.y (parse_datetime2): Cleanup on
3269         localtime_rz() failure.
3271 2017-05-16  Bruno Haible  <bruno@clisp.org>
3273         javacomp: Fix handle leak.
3274         Found by Coverity.
3275         * lib/javacomp.c (get_classfile_version): Close fd before returning.
3277 2017-05-16  Bruno Haible  <bruno@clisp.org>
3279         relocate: Make it easier to reclaim allocated memory.
3280         * lib/relocatable.h (relocate2): New declaration/macro.
3281         * lib/relocatable.c (relocate2): New function.
3282         * doc/relocatable-maint.texi (Supporting Relocation): Mention the
3283         relocate2 function.
3284         * lib/localcharset.c (relocate2): Define fallback.
3285         (get_charset_aliases): Invoke relocate2 instead of relocate. Free the
3286         allocated memory.
3287         * lib/javaversion.c (relocate2): Define fallback.
3288         (javaexec_version): Invoke relocate2 instead of relocate. Free the
3289         allocated memory.
3291 2017-05-16  Bruno Haible  <bruno@clisp.org>
3293         relocate: Simplify EMX specific code.
3294         * lib/relocatable.c (relocate): Assume pathname is non-NULL. Use
3295         ISSLASH macro consistently. Avoid dangerous string concatenation idiom.
3297 2017-05-16  Bruno Haible  <bruno@clisp.org>
3299         sigpipe tests: Fix file list.
3300         * modules/sigpipe-tests (Files): Add tests/macros.h.
3302 2017-05-16  Paul Eggert  <eggert@cs.ucla.edu>
3304         manywarnings: update for GCC 7
3305         * build-aux/gcc-warning.spec:
3306         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC):
3307         Add GCC 7 warnings, notably -Wimplicit-fallthrough=5, which
3308         requires a non-comment fallthrough attribute.  This is a bit
3309         cleaner than the comment versions.
3310         * lib/strftime.c, lib/dfa.c, lib/fnmatch.c, lib/mbrtowc.c:
3311         * lib/vasnprintf.c, tests/macros.h (FALLTHROUGH): New macro.
3312         Use it whenever one switch case falls through into the next.
3313         * lib/fnmatch_loop.c, tests/test-mbrtowc.c, tests/test-sigpipe.c:
3314         Use FALLTHROUGH macro.
3316 2017-05-15  Bruno Haible  <bruno@clisp.org>
3318         gnulib-tool: Fix generated code when libtests contains module 'alloca'.
3319         * gnulib-tool (func_emit_tests_Makefile_am): For libtests.a, use
3320         @ALLOCA@, not @LTALLOCA@.
3322 2017-05-15  Bruno Haible  <bruno@clisp.org>
3324         sys_select: Avoid "was expanded before it was required" warning.
3325         * modules/sys_select (configure.ac): Require, not invoke,
3326         gl_HEADER_SYS_SELECT.
3328 2017-05-14  Paul Eggert  <eggert@cs.ucla.edu>
3330         gnulib-tool: improve GNU Make debugging
3331         * gnulib-tool (func_emit_lib_Makefile_am): Omit unnecessary echo.
3332         Report autoconf diagnostics when it fails, in the output makefile.
3334 2017-05-14  Bruno Haible  <bruno@clisp.org>
3336         stat-time tests: Improve comment.
3337         * tests/test-stat-time.c: Add hyperlink, from Paul Eggert.
3339 2017-05-14  Bruno Haible  <bruno@clisp.org>
3341         same-inode: Adapt for windows-stat-inodes.
3342         * lib/same-inode.h: Include <sys/types.h>.
3343         (SAME_INODE) [_GL_WINDOWS_STAT_INODES]: Define specifically.
3344         * modules/same-inode (Depends-on): Add sys_types.
3346 2017-05-14  Bruno Haible  <bruno@clisp.org>
3348         windows-stat-inodes: New module.
3349         * m4/windows-stat-inodes.m4: New file.
3350         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Set WINDOWS_STAT_INODES.
3351         * modules/sys_types (Makefile.am): Substitute WINDOWS_STAT_INODES.
3352         * lib/sys_types.in.h [WINDOWS_STAT_INODES]: Override dev_t and ino_t.
3353         (_GL_WINDOWS_STAT_INODES): New macro.
3354         * lib/stat-w32.c: Set _WIN32_WINNT. Include <string.h>, verify.h.
3355         (GetFileInformationByHandleExFunc): New variable.
3356         (initialize): Initialize it.
3357         (_gl_fstat_by_handle) [_GL_WINDOWS_STAT_INODES]: Initialize st_dev and
3358         st_ino appropriately.
3359         * lib/stat.c (rpl_stat): Use the directory entry based approach only as
3360         a fallback, because it does not provide st_dev and st_ino values.
3361         * modules/fstat (Depends-on): Add 'verify'.
3362         * modules/windows-stat-inodes: New file.
3363         * doc/windows-stat-inodes.texi: New file.
3364         * doc/gnulib.texi: Include it.
3365         * doc/posix-headers/sys_stat.texi: Mention the new module.
3367 2017-05-14  Bruno Haible  <bruno@clisp.org>
3369         stat-time tests: Workaround for native Windows.
3370         * tests/test-stat-time.c: Include <stdio.h>, <time.h>.
3371         (filename_stamp1, filename_testfile, filename_stamp2, filename_stamp3):
3372         New variables.
3373         (initialize_filenames): New function.
3374         (main): Invoke it.
3375         (cleanup, prepare_test): Update.
3377 2017-05-14  Bruno Haible  <bruno@clisp.org>
3379         stat-time: Adapt for windows-stat-timespec.
3380         * lib/stat-time.h (get_stat_birthtime) [_GL_WINDOWS_STAT_TIMESPEC]: Use
3381         entire st_ctim field.
3383 2017-05-13  Jim Meyering  <meyering@fb.com>
3385         maint.mk: update regex to reflect 2013 addition of "assume" to verify.h
3386         * top/maint.mk (sc_prohibit_verify_without_use): Don't reject a source
3387         file that uses the assume macro, claiming that verify.h is unused.
3389 2017-05-13  Bruno Haible  <bruno@clisp.org>
3391         Use symbolic values for _WIN32_WINNT.
3392         * lib/ftruncate.c (_WIN32_WINNT): Use symbolic value _WIN32_WINNT_WIN2K.
3393         * lib/sethostname.c (_WIN32_WINNT): Likewise.
3395 2017-05-13  Bruno Haible  <bruno@clisp.org>
3397         year2038: New module.
3398         * m4/year2038.m4: New file.
3399         * modules/year2038: New file.
3400         * doc/year2038.texi: New file.
3401         * doc/gnulib.texi: Include it.
3403 2017-05-13  Bruno Haible  <bruno@clisp.org>
3405         largefile: Simplify.
3406         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Remove unused definition
3407         of _GL_WINDOWS_64_BIT_ST_SIZE.
3409 2017-05-13  Bruno Haible  <bruno@clisp.org>
3411         largefile: Improve and document.
3412         * m4/largefile.m4 (gl_LARGEFILE): Set WINDOWS_64_BIT_ST_SIZE to 0 if
3413         the mingw headers already define 'stat' appropriately.
3414         * modules/largefile (Description): Clarify.
3415         * doc/largefile.texi: New file.
3416         * doc/gnulib.texi: Include it.
3417         * doc/posix-headers/sys_types.texi: Update.
3419 2017-05-13  Bruno Haible  <bruno@clisp.org>
3421         truncate: New module.
3422         * lib/unistd.in.h (truncate): New declaration.
3423         * lib/truncate.c: New file.
3424         * m4/truncate.m4: New file.
3425         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether 'truncate' is declared.
3426         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TRUNCATE, HAVE_TRUNCATE,
3427         REPLACE_TRUNCATE.
3428         * modules/unistd (Makefile.am): Substitute GNULIB_TRUNCATE,
3429         HAVE_TRUNCATE, REPLACE_TRUNCATE.
3430         * modules/truncate: New file.
3431         * tests/test-unistd-c++.cc (truncate): Test signature.
3432         * doc/posix-functions/truncate.texi: Mention the new module.
3434         * tests/test-truncate.c: New file.
3435         * modules/truncate-tests: New file.
3437 2017-05-13  Bruno Haible  <bruno@clisp.org>
3439         windows-stat-timespec: New module.
3440         * modules/windows-stat-timespec: New file.
3441         * m4/windows-stat-timespec.m4: New file.
3442         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Set WINDOWS_STAT_TIMESPEC.
3443         * modules/sys_stat (Makefile.am): Substitute WINDOWS_STAT_TIMESPEC.
3444         * lib/sys_stat.in.h (struct stat) [WINDOWS_STAT_TIMESPEC]: Declare with
3445         fields st_atim, st_mtim, st_ctim.
3446         (st_atime, st_mtime, st_ctime): Define as macros.
3447         (_GL_WINDOWS_STAT_TIMESPEC): New macro.
3448         * lib/stat-w32.h (_gl_convert_FILETIME_to_timespec)
3449         [_GL_WINDOWS_STAT_TIMESPEC]: New declaration.
3450         * lib/stat-w32.c (_gl_convert_FILETIME_to_timespec)
3451         [_GL_WINDOWS_STAT_TIMESPEC]: New function.
3452         (_gl_convert_FILETIME_to_POSIX): Adjust coding style.
3453         (_gl_fstat_by_handle): If _GL_WINDOWS_STAT_TIMESPEC, convert the
3454         FILETIME to 'struct timespec', not 'time_t'.
3455         * lib/stat.c (rpl_stat): If _GL_WINDOWS_STAT_TIMESPEC, convert the
3456         FILETIME to 'struct timespec', not 'time_t'.
3457         * lib/stat-time.h (STAT_TIMESPEC): Define also if
3458         _GL_WINDOWS_STAT_TIMESPEC.
3459         * doc/windows-stat-timespec.texi: New file.
3460         * doc/gnulib.texi: Include it.
3462 2017-05-13  Bruno Haible  <bruno@clisp.org>
3464         windows-stat-override: New module.
3465         * lib/sys_stat.in.h (stat) [GNULIB_OVERRIDES_STRUCT_STAT]: Provide own
3466         definition. Define GNULIB_defined_struct_stat.
3467         (fstat, fstatat, lstat, stat) [GNULIB_OVERRIDES_STRUCT_STAT]: Provoke
3468         link error if this symbol is used and the corresponding module is not
3469         in use.
3470         (_stat64, _stat32i64, _stati64, _stat32, _stat64i32): Don't redefine if
3471         GNULIB_OVERRIDES_STRUCT_STAT.
3472         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
3473         GNULIB_OVERRIDES_STRUCT_STAT.
3474         * modules/sys_stat (Makefile.am): Substitute
3475         GNULIB_OVERRIDES_STRUCT_STAT.
3476         * modules/windows-stat-override: New file.
3478 2017-05-13  Bruno Haible  <bruno@clisp.org>
3480         fstat: Fix module dependency conditions.
3481         * modules/fstat (Depends-on): Fix typo.
3483 2017-05-13  Bruno Haible  <bruno@clisp.org>
3485         stat, fstat: Complete removal of old native Windows code.
3486         * lib/stat.c: Remove old macrology for WINDOWS_NATIVE.
3487         * lib/fstat.c: Likewise.
3488         * lib/stat-w32.c: Likewise.
3490 2017-05-13  Bruno Haible  <bruno@clisp.org>
3492         stat: Complete removal of REPLACE_FUNC_STAT_DIR code.
3493         * lib/stat.c: Remove all REPLACE_FUNC_STAT_DIR code.
3495 2017-05-11  Paul Eggert  <eggert@cs.ucla.edu>
3497         getopt-posix: port to mingw
3498         * lib/getopt.c (flockfile, funlockfile): Define on mingw.
3499         Problem reported by Daniel P. Berrage in:
3500         http://lists.gnu.org/r/bug-gnulib/2017-05/msg00086.html
3502 2017-05-11  Bruno Haible  <bruno@clisp.org>
3504         gettimeofday: Increase precision on mingw.
3505         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Require AC_CANONICAL_HOST.
3506         Set REPLACE_GETTIMEOFDAY to 1 on mingw.
3507         * lib/gettimeofday.c (gettimeofday): On native Windows, use the
3508         GetSystemTimePreciseAsFileTime based implementation always.
3509         * doc/posix-functions/gettimeofday.texi: Mention precision problem on
3510         mingw.
3512 2017-05-11  Bruno Haible  <bruno@clisp.org>
3514         poll: Fix confusion between SOCKETs and FDs on native Windows.
3515         Fix proposed by Daniel P. Berrange <berrange@redhat.com>.
3516         * lib/poll.c [WINDOWS_NATIVE]: Undefine select.
3518 2017-05-11  Bruno Haible  <bruno@clisp.org>
3520         doc: Clarify doc about socket functions on native Windows.
3521         This reworks doc that was added on 2008-09-29.
3522         * doc/posix-functions/select.texi: Fix copy-and-paste mistake and use
3523         clearer wording.
3524         * doc/posix-functions/accept.texi: Use clearer wording.
3525         * doc/posix-functions/bind.texi: Likewise.
3526         * doc/posix-functions/connect.texi: Likewise.
3527         * doc/posix-functions/getpeername.texi: Likewise.
3528         * doc/posix-functions/getsockname.texi: Likewise.
3529         * doc/posix-functions/getsockopt.texi: Likewise.
3530         * doc/posix-functions/ioctl.texi: Likewise.
3531         * doc/posix-functions/listen.texi: Likewise.
3532         * doc/posix-functions/recv.texi: Likewise.
3533         * doc/posix-functions/recvfrom.texi: Likewise.
3534         * doc/posix-functions/send.texi: Likewise.
3535         * doc/posix-functions/sendto.texi: Likewise.
3536         * doc/posix-functions/setsockopt.texi: Likewise.
3537         * doc/posix-functions/shutdown.texi: Likewise.
3538         * doc/posix-functions/socket.texi: Likewise.
3540 2017-05-10  Bruno Haible  <bruno@clisp.org>
3542         poll: Fix link error on native Windows.
3543         * lib/poll.c [WINDOWS_NATIVE]: Undefine recv.
3545 2017-05-10  Bruno Haible  <bruno@clisp.org>
3547         time: Fix missing initialization of HAVE_TIMEZONE_T.
3548         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEZONE_T
3549         here...
3550         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): ... not here.
3551         * m4/time_rz.m4 (gl_TIME_RZ): Require gl_HEADER_TIME_H_DEFAULTS, not
3552         gl_HEADER_SYS_TIME_H_DEFAULTS.
3553         * modules/time_rz (Depends-on): Add 'time'. Remove useless quoting.
3554         (configure.ac): Remove useless quoting.
3556 2017-05-10  Bruno Haible  <bruno@clisp.org>
3558         Implement a way to opt out from MSVC support, part 2.
3559         * modules/msvc-inval (Include): Document recommended idiom.
3560         * modules/msvc-nothrow (Include): Likewise.
3562         Implement a way to opt out from MSVC support.
3563         This is useful for Emacs.
3564         * modules/msvc-nothrow (configure.ac): Invoke gl_MODULE_INDICATOR.
3565         * lib/accept4.c: Include <io.h> as an alternative to msvc-nothrow.h.
3566         * lib/error.c: Likewise.
3567         * lib/fcntl.c: Likewise.
3568         * lib/flock.c: Likewise.
3569         * lib/fstat.c: Likewise.
3570         * lib/fsync.c: Likewise.
3571         * lib/ioctl.c: Likewise.
3572         * lib/isapipe.c: Likewise.
3573         * lib/lseek.c: Likewise.
3574         * lib/nonblocking.c: Likewise.
3575         * lib/poll.c: Likewise.
3576         * lib/select.c: Likewise.
3577         * lib/sockets.h: Likewise.
3578         * lib/sockets.c: Likewise.
3579         * lib/stdio-read.c: Likewise.
3580         * lib/stdio-write.c: Likewise.
3581         * lib/utimens.c: Likewise.
3582         * lib/w32sock.h: Likewise.
3583         * lib/w32spawn.h: Likewise.
3584         * tests/test-cloexec.c: Likewise.
3585         * tests/test-dup-safer.c: Likewise.
3586         * tests/test-dup2.c: Likewise.
3587         * tests/test-dup3.c: Likewise.
3588         * tests/test-fcntl.c: Likewise.
3589         * tests/test-pipe.c: Likewise.
3590         * tests/test-pipe2.c: Likewise.
3591         * lib/ftruncate.c: Likewise.
3592         (chsize_nothrow): Renamed from chsize.
3593         * lib/msvc-nothrow.c: Don't include msvc-inval.h if
3594         HAVE_MSVC_INVALID_PARAMETER_HANDLER is not defined.
3595         * lib/close.c: Likewise.
3596         * lib/dup.c: Likewise.
3597         * lib/fclose.c: Likewise.
3598         * lib/raise.c: Likewise.
3599         * tests/test-fgetc.c: Likewise.
3600         * tests/test-fputc.c: Likewise.
3601         * tests/test-fread.c: Likewise.
3602         * tests/test-fwrite.c: Likewise.
3603         * lib/getdtablesize.c: Likewise.
3604         (_setmaxstdio_nothrow): Renamed from _setmaxstdio.
3605         * lib/isatty.c: Don't include msvc-inval.h if
3606         HAVE_MSVC_INVALID_PARAMETER_HANDLER is not defined.
3607         Include <io.h> as an alternative to msvc-nothrow.h.
3608         * lib/read.c: Likewise.
3609         * lib/write.c: Likewise.
3610         * lib/dup2.c: Likewise.
3611         (dup2_nothrow): New function.
3612         (ms_windows_dup2): Use it.
3613         * m4/close.m4 (gl_FUNC_CLOSE): Invoke gl_MSVC_INVAL and test
3614         HAVE_MSVC_INVALID_PARAMETER_HANDLER only if gl_MSVC_INVAL is defined.
3615         * m4/dup.m4 (gl_FUNC_DUP): Likewise.
3616         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Likewise.
3617         * m4/raise.m4 (gl_FUNC_RAISE): Likewise.
3618         * m4/read.m4 (gl_FUNC_READ): Likewise.
3619         * m4/write.m4 (gl_FUNC_WRITE): Likewise.
3620         * doc/windows-without-msvc.texi: New file.
3621         * doc/gnulib.texi (Native Windows Support without MSVC Support): New
3622         section.
3624 2017-05-10  Bruno Haible  <bruno@clisp.org>
3626         wait-process: Adjust native Windows support.
3627         * lib/wait-process.c: Use the usual condition for recognizing a native
3628         Windows platform.
3630 2017-05-10  Bruno Haible  <bruno@clisp.org>
3632         doc: New chapter "Native Windows Support".
3633         * doc/gnulib.texi (Native Windows Support): New chapter.
3634         * doc/windows-libtool.texi: Small wording changes.
3635         * doc/windows-sockets.texi: Small wording and formatting changes.
3637 2017-05-10  Bruno Haible  <bruno@clisp.org>
3639         doc: Move section "Library version handling".
3640         * doc/gnulib.texi: Move section "Library version handling"
3641         from chapter "Miscellaneous Notes" to chapter "Particular Modules".
3643 2017-05-10  Bruno Haible  <bruno@clisp.org>
3645         doc: Move section "Running self-tests under valgrind".
3646         * doc/gnulib.texi: Move section "Running self-tests under valgrind"
3647         from chapter "Particular Modules" to chapter "Miscellaneous Notes".
3649 2017-05-10  Bruno Haible  <bruno@clisp.org>
3651         doc: New chapter "Build Infrastructure Modules".
3652         * doc/gnulib.texi (Build Infrastructure Modules): New chapter.
3654 2017-05-10  Bruno Haible  <bruno@clisp.org>
3656         Prepare for reordering sections in the manual.
3657         * doc/gnulib.texi: Move several sections to separate files. Include
3658         these files.
3659         * doc/out-of-memory.texi: New file, extracted from doc/gnulib.texi.
3660         * doc/obsolete.texi: Likewise.
3661         * doc/extra-tests.texi: Likewise.
3662         * doc/transversal.texi: Likewise.
3663         * doc/namespace.texi: Likewise.
3664         * doc/check-version.texi: Likewise.
3665         * doc/windows-sockets.texi: Likewise.
3666         * doc/windows-libtool.texi: Likewise.
3667         * doc/licenses-texi.texi: Likewise.
3668         * doc/build-automation.texi: Likewise.
3669         * doc/c-locale.texi: Likewise.
3671 2017-05-10  Bruno Haible  <bruno@clisp.org>
3673         Fix instructions how to update manual on www.gnu.org.
3674         * doc/README: Add -I option, so that texi2dvi finds texinfo.tex.
3676 2017-05-09  Bruno Haible  <bruno@clisp.org>
3678         tzset: Expand comment about TZ problem on native Windows.
3679         * lib/tzset.c (tzset): Elaborate comment, based on explanations by
3680         Paul Eggert.
3681         * lib/ctime.c (rpl_ctime): Likewise.
3682         * lib/localtime.c (rpl_localtime): Likewise.
3683         * lib/mktime.c (mktime): Likewise.
3684         * lib/strftime-fixes.c (rpl_strftime): Likewise.
3685         * lib/wcsftime.c (rpl_wcsftime): Likewise.
3687 2017-05-08  Paul Eggert  <eggert@cs.ucla.edu>
3689         intprops: don’t depend on ‘verify’
3690         Problem reported by Ævar Arnfjörð Bjarmason in:
3691         http://lists.gnu.org/r/bug-gnulib/2017-05/msg00054.html
3692         * lib/intprops.h: Do not include verify.h, and move compile-time
3693         checks from here ...
3694         * tests/test-intprops.c (main): ... to here, if they’re not here
3695         already.  Check widths of other standard integer types.
3696         * modules/intprops (Depends-on): Remove ‘verify’.
3698 2017-05-07  Bruno Haible  <bruno@clisp.org>
3700         utimens: On native Windows, support 100ns resolution also if fd < 0.
3701         * lib/utime.in.h: Include <time.h>.
3702         (_gl_utimens_windows): New declaration.
3703         * lib/utime.c (_gl_utimens_windows): New function, based on utime.
3704         (utime): Invoke it.
3705         * lib/utimens.c (fdutimens): On native Windows, call _gl_utimens_windows
3706         instead of utime.
3707         * modules/utime (Depends-on): Add 'time'.
3709 2017-05-07  Bruno Haible  <bruno@clisp.org>
3711         utimens: Improve error code on native Windows.
3712         * lib/utimens.c (fdutimens): If fd was not opened with O_RDWR, fail with
3713         error code EACCES, not EINVAL.
3715 2017-05-07  Bruno Haible  <bruno@clisp.org>
3717         utime: Handle more Windows error codes.
3718         * lib/utime.c (utime): Handle ERROR_BAD_NETPATH.
3719         Based on explanations by Billy O'Neal.
3721 2017-05-05  Bruno Haible  <bruno@clisp.org>
3723         crypto/rijndael: Fix "strict-aliasing rules" warnings, alignment issues.
3724         * lib/rijndael-api-fst.c (rijndaelBlockEncrypt): Declare 'block' as a
3725         union.
3726         (rijndaelPadEncrypt, rijndaelBlockDecrypt): Likewise.
3727         (rijndaelPadDecrypt): Likewise. Use local variable 'iv' to cache the
3728         value of cipher->IV.
3730 2017-05-05  Bruno Haible  <bruno@clisp.org>
3732         wctype-h-c++-tests: Update.
3733         * tests/test-wctype-h-c++.cc: Reorder to match lib/wchar.in.h.
3735 2017-05-05  Bruno Haible  <bruno@clisp.org>
3737         wchar-c++-tests: Update.
3738         * tests/test-wchar-c++.cc (wcsftime): Declare, missing since 2017-04-30.
3740 2017-05-05  Bruno Haible  <bruno@clisp.org>
3742         utime-h-c++-tests: New module.
3743         * tests/test-utime-h-c++.cc: New file.
3744         (utime): Declare, missing since 2017-04-30.
3745         * modules/utime-h-c++-tests: New file.
3747 2017-05-05  Bruno Haible  <bruno@clisp.org>
3749         unistd-c++-tests: Update.
3750         * tests/test-unistd-c++.cc (isatty): Declare, missing since 2012-01-03.
3751         (read): Declare, missing since 2011-04-15.
3752         (sethostname): Declare, missing since 2011-12-03.
3754 2017-05-05  Bruno Haible  <bruno@clisp.org>
3756         time-c++-tests: Update.
3757         * tests/test-time-c++.cc (tzset): Declare, missing since 2017-05-01.
3758         (localtime, gmtime): Declare, missing since 2017-04-30.
3759         (ctime): Declare, missing since 2017-04-30.
3760         (strftime): Declare, missing since 2017-04-30.
3761         (tzalloc, tzfree, localtime_rz, mktime_z): Declare, missing since
3762         2015-07-24.
3764 2017-05-05  Bruno Haible  <bruno@clisp.org>
3766         sys_resource-c++-tests: New module.
3767         * tests/test-sys_resource-c++.cc: New file.
3768         (getrusage): Declare, missing since 2012-04-13.
3769         * modules/sys_resource-c++-tests: New file.
3771 2017-05-05  Bruno Haible  <bruno@clisp.org>
3773         strings-c++-tests: New module.
3774         * tests/test-strings-c++.cc: New file.
3775         (ffs): Declare, missing since 2011-07-12.
3776         * modules/strings-c++-tests: New file.
3778 2017-05-05  Bruno Haible  <bruno@clisp.org>
3780         string-c++-tests: Update.
3781         * tests/test-string-c++.cc (ffsl): Declare, missing since 2011-07-15.
3782         (ffsll): Declare, missing since 2011-07-15.
3784 2017-05-05  Bruno Haible  <bruno@clisp.org>
3786         stdlib-c++-tests: Update.
3787         * tests/test-stdlib-c++.cc (posix_openpt): Declare, missing since
3788         2011-10-18.
3789         (ptsname_r): Declare, missing since 2011-11-07.
3790         (qsort_r): Declare, missing since 2014-08-29.
3791         (random, srandom, initstate, setstate): Declare, missing since
3792         2012-01-14.
3793         (secure_getenv): Declare, missing since 2013-02-05.
3795 2017-05-05  Bruno Haible  <bruno@clisp.org>
3797         stdio-c++-tests: Update.
3798         * tests/test-stdio-c++.cc (pclose): Declare, missing since 2011-09-18.
3800 2017-05-05  Bruno Haible  <bruno@clisp.org>
3802         signal-h-c++-tests: Update.
3803         * tests/test-signal-h-c++.cc (raise): Remove redundant declaration.
3805 2017-05-05  Bruno Haible  <bruno@clisp.org>
3807         math-c++-tests: Update.
3808         * tests/test-math-c++.cc (fmaf): Declare, missing since 2011-10-17.
3809         (fma): Declare, missing since 2011-10-17.
3810         (fmal): Declare, missing since 2011-10-17.
3812 2017-05-05  Bruno Haible  <bruno@clisp.org>
3814         locale-c++-tests: Update.
3815         * tests/test-locale-c++.cc (localeconv): Declare, missing since
3816         2012-03-25.
3818 2017-05-05  Bruno Haible  <bruno@clisp.org>
3820         inttypes-c++-tests: New module.
3821         * tests/test-inttypes-c++.cc: New file.
3822         (strtoimax): Declare, missing since 2012-01-05.
3823         (strtoumax): Declare, missing since 2012-01-05.
3824         * modules/inttypes-c++-tests: New file.
3826 2017-05-05  Bruno Haible  <bruno@clisp.org>
3828         dirent-c++-tests: Update.
3829         * tests/test-dirent-c++.cc (readdir): Declare, missing since 2011-09-13.
3830         (rewinddir): Declare, missing since 2011-09-13.
3831         (dirfd): Declare, missing since 2010-03-08.
3833 2017-05-04  Bruno Haible  <bruno@clisp.org>
3835         argp: Fix mistake in 2017-04-23 commit.
3836         * lib/argp-help.c (__argp_failure): If GNULIB_STRERROR_R_POSIX is set,
3837         assume that strerror_r returns 'int', not 'char *'.
3839 2017-05-04  Reuben Thomas  <rrt@sc3d.org>
3841         argp: Fix typo.
3842         * lib/argp-help.c (argp_doc): Fix spelling mistake in comment.
3844 2017-05-02  Paul Eggert  <eggert@cs.ucla.edu>
3846         utimens: port to Emacs + MS-Windows
3847         Skip the new MS-Windows-specific code if Emacs.
3848         * lib/utimens.c [EMACS_CONFIGUATION]:
3849         Avoid new MS-Windows-specific code.
3850         (USE_SETFILETIME): New macro.
3851         (fdutimens): Use it.
3853 2017-05-01  Paul Eggert  <eggert@cs.ucla.edu>
3855         tzset: update doc for TZ problems on MS-Windows
3856         * doc/posix-functions/ctime.texi,  doc/posix-functions/daylight.texi:
3857         * doc/posix-functions/localtime.texi, doc/posix-functions/mktime.texi:
3858         * doc/posix-functions/strftime.texi, doc/posix-functions/timezone.texi:
3859         * doc/posix-functions/tzname.texi, doc/posix-functions/tzset.texi:
3860         * doc/posix-functions/wcsftime.texi:
3861         Mention some issues with TZ under MS-Windows.
3863 2017-05-01  Bruno Haible  <bruno@clisp.org>
3865         copy-file: Fix build error on mingw.
3866         * modules/copy-file (Depends-on): Add 'close'.
3868 2017-05-01  Bruno Haible  <bruno@clisp.org>
3870         tzset: Work around TZ problem on native Windows.
3871         * m4/tzset.m4 (gl_FUNC_TZSET): Require AC_CANONICAL_HOST. On native
3872         Windows, set REPLACE_TZSET to 1.
3873         * lib/tzset.c (tzset): On native Windows, fix TZ if necessary, and
3874         invoke '_tzset' instead of 'tzset'.
3875         * doc/posix-functions/tzset.texi: Mention the native Windows workaround.
3877         * modules/time_rz (Depends-on): Add tzset.
3878         * lib/time_rz.c (tzset): Remove fallback definition.
3879         * m4/time_rz.m4 (gl_TIME_RZ): Don't test for tzset.
3881 2017-05-01  Bruno Haible  <bruno@clisp.org>
3883         mktime: Fix dependencies.
3884         * modules/mktime (Depends-on): Add 'time'.
3886 2017-05-01  Bruno Haible  <bruno@clisp.org>
3888         New module 'localtime-buffer', split off from module 'gettimeofday'.
3889         * lib/localtime-buffer.h: New file.
3890         * lib/localtime-buffer.c: New file, extracted from lib/gettimeofday.c.
3891         * lib/time.in.h (tzset): New declaration.
3892         (localtime, gmtime): Don't test GNULIB_GETTIMEOFDAY.
3893         * lib/tzset.c: New file, extracted from lib/gettimeofday.c.
3894         * lib/gettimeofday.c: Include localtime-buffer.h. Remove code that was
3895         moved to lib/localtime-buffer.c or lib/tzset.c.
3896         * m4/localtime-buffer.m4: New file.
3897         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TZSET,
3898         HAVE_TZSET, REPLACE_TZSET.
3899         * m4/tzset.m4 (gl_FUNC_TZSET): Move code from m4/gettimeofday.m4 to
3900         here, with modifications. Set HAVE_TZSET, REPLACE_TZSET. Invoke
3901         gl_LOCALTIME_BUFFER_NEEDED.
3902         (gl_FUNC_TZSET_CLOBBER): Don't require gl_HEADER_SYS_TIME_H; not needed
3903         since 2007-01-18.
3904         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Remove code that deals with
3905         tzset.
3906         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Require gl_LOCALTIME_BUFFER_DEFAULTS.
3907         Invoke gl_LOCALTIME_BUFFER_NEEDED instead of
3908         gl_GETTIMEOFDAY_REPLACE_LOCALTIME.
3909         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Remove macro.
3910         * modules/localtime-buffer: New file.
3911         * modules/time (Depends-on): Remove 'gettimeofday'.
3912         (Makefile.am): Substitute GNULIB_TZSET, HAVE_TZSET,
3913         REPLACE_TZSET. Don't substitute GNULIB_GETTIMEOFDAY.
3914         * modules/tzset (Description): Enable hyperlink to POSIX spec.
3915         (Files): Add lib/tzset.c.
3916         (Depends-on): Remove gettimeofday. Add localtime-buffer, time.
3917         (configure.ac): Arrange to conditionally compile lib/tzset.c. Invoke
3918         gl_TIME_MODULE_INDICATOR.
3919         * modules/gettimeofday (Depends-on): Add localtime-buffer.
3921 2017-05-01  Bruno Haible  <bruno@clisp.org>
3923         copy-file: Preserve sub-second time stamps.
3924         * lib/copy-file.c: Include stat-time.h, utimens.h instead of <utime.h>.
3925         (qcopy_file_preserving): Use 'struct timespec' and utimens() to
3926         transport the time stamps from the original file to the destination
3927         file.
3928         * m4/copy-file.m4 (gl_COPY_FILE): Don't test for utime, utimes.
3929         * modules/copy-file (Depends-on): Add stat-time, utimns instead of
3930         utime-h.
3932 2017-05-01  Bruno Haible  <bruno@clisp.org>
3934         wctype-t: Fix problems if <wchar.h> gets included after <wctype.h>.
3935         * lib/wctype.in.h: Include not only <ctype.h> but also <wchar.h>. Do so
3936         also on MSVC.
3937         Reported by Eli Zaretskii <eliz@gnu.org>.
3939 2017-05-01  Bruno Haible  <bruno@clisp.org>
3941         wchar: Fix compilation error with the original mingw.org mingw.
3942         * lib/wchar.in.h (rpl_wint_t): If <crtdefs.h> does not exist, include
3943         <stddef.h> instead.
3944         * m4/wint_t.m4 (gl_TYPE_WINT_T_PREREQ): New macro, extracted from
3945         gl_WCTYPE_H.
3946         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set HAVE_CRTDEFS_H here; require
3947         gl_TYPE_WINT_T_PREREQ instead.
3948         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_TYPE_WINT_T_PREREQ.
3949         * modules/wchar (Makefile.am): Substitute HAVE_CRTDEFS_H.
3950         Reported by Eli Zaretskii <eliz@gnu.org>.
3952 2017-04-30  Bruno Haible  <bruno@clisp.org>
3954         utimecmp: Add support for native Windows.
3955         * lib/utimecmp.c (SYSCALL_RESOLUTION): Set to 100 on native Windows.
3957 2017-04-30  Bruno Haible  <bruno@clisp.org>
3959         utimens: Add support for native Windows.
3960         * lib/utimens.c: Include <windows.h>, msvc-nothrow.h.
3961         (fdutimens): Provide a native Windows implementation, like utime.c with
3962         added tv_nsec support.
3963         * modules/utimens (Depends-on): Add msvc-nothrow, utime.
3964         Suggested by Tim Rühsen <tim.ruehsen@gmx.de>.
3966 2017-04-30  Bruno Haible  <bruno@clisp.org>
3968         wcsftime: New module.
3969         * lib/wchar.in.h (wcsftime): New declaration.
3970         * lib/wcsftime.c: New file.
3971         * m4/wcsftime.m4: New file.
3972         * m4/wchar_h.m4 (gl_WCHAR_H): Test for wcsftime declaration.
3973         (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_WCSFTIME,
3974         HAVE_WCSFTIME, REPLACE_WCSFTIME.
3975         * modules/wchar (Makefile.am): Substitute GNULIB_WCSFTIME,
3976         HAVE_WCSFTIME, REPLACE_WCSFTIME.
3977         * modules/wcsftime: New file.
3978         * doc/posix-functions/wcsftime.texi: Mention the new module.
3980 2017-04-30  Bruno Haible  <bruno@clisp.org>
3982         strftime-fixes: New module.
3983         * lib/time.in.h (strftime): New declaration.
3984         * lib/strftime-fixes.c: New file.
3985         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Inline gl_FUNC_STRFTIME macro.
3986         (gl_FUNC_STRFTIME): Remove macro.
3987         * m4/strftime-fixes.m4: New file.
3988         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_STRFTIME,
3989         REPLACE_STRFTIME.
3990         * modules/time (Makefile.am): Substitute GNULIB_STRFTIME,
3991         REPLACE_STRFTIME.
3992         * modules/strftime-fixes: New file.
3993         * doc/posix-functions/strftime.texi: Mention the new module.
3995 2017-04-30  Bruno Haible  <bruno@clisp.org>
3997         mktime: Work around TZ problem on native Windows.
3998         * lib/mktime.c: Add #ifs to make the algorithmic workaround independent
3999         from the native Windows workaround.
4000         * m4/mktime.m4 (gl_FUNC_MKTIME_WORKS): New macro, extracted from
4001         gl_FUNC_MKTIME. If guessing, set gl_cv_func_working_mktime to
4002         'guessing no'.
4003         (gl_FUNC_MKTIME): Require it. Require AC_CANONICAL_HOST.
4004         Set REPLACE_MKTIME to 1 on native Windows. Define NEED_MKTIME_WORKING,
4005         NEED_MKTIME_WINDOWS.
4006         (gl_FUNC_MKTIME_INTERNAL): Require gl_FUNC_MKTIME_WORKS, not
4007         gl_FUNC_MKTIME. Set WANT_MKTIME_INTERNAL, not REPLACE_MKTIME. Define
4008         NEED_MKTIME_INTERNAL.
4009         * m4/timegm.m4 (gl_FUNC_TIMEGM): Require gl_FUNC_MKTIME_WORKS, not
4010         gl_FUNC_MKTIME. Cope with 'guessing yes' value.
4011         * modules/mktime-internal (configure.ac): Test WANT_MKTIME_INTERNAL,
4012         not REPLACE_MKTIME.
4013         * doc/posix-functions/mktime.texi: Mention the native Windows
4014         workaround.
4016 2017-04-30  Bruno Haible  <bruno@clisp.org>
4018         localtime: New module.
4019         * lib/time.in.h (localtime): Declare also if requested by module
4020         'localtime'.
4021         * lib/localtime.c: New file.
4022         * m4/localtime.m4: New file.
4023         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_LOCALTIME.
4024         * modules/time (Makefile.am): Substitute GNULIB_LOCALTIME.
4025         * modules/localtime: New file.
4026         * doc/posix-functions/localtime.texi: Mention the new module.
4028 2017-04-30  Bruno Haible  <bruno@clisp.org>
4030         ctime: New module.
4031         * lib/time.in.h (ctime): New declaration.
4032         * lib/ctime.c: New file.
4033         * m4/ctime.m4: New file.
4034         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_CTIME,
4035         REPLACE_CTIME.
4036         * modules/time (Makefile.am): Substitute GNULIB_CTIME, REPLACE_CTIME.
4037         * modules/ctime: New file.
4038         * doc/posix-functions/ctime.texi: Mention the new module.
4040 2017-04-30  Bruno Haible  <bruno@clisp.org>
4042         gettimeofday: Provide higher resolution on native Windows.
4043         * lib/gettimeofday.c: Don't include <sys/timeb.h>.
4044         (GetSystemTimePreciseAsFileTimeFuncType): New variable.
4045         (initialize): Initialize it.
4046         (gettimeofday) [WINDOWS_NATIVE]: Use it, and convert from FILETIME to
4047         'struct timeval'. Don't use _ftime().
4048         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): Don't test for
4049         <sys/timeb.h> and _ftime.
4051 2017-04-30  Bruno Haible  <bruno@clisp.org>
4053         Document the problem with the Cygwin environment variable TZ.
4054         * doc/posix-functions/tzset.texi: Add note about TZ.
4055         * doc/posix-functions/ctime.texi: Likewise.
4056         * doc/posix-functions/localtime.texi: Likewise.
4057         * doc/posix-functions/mktime.texi: Likewise.
4058         * doc/posix-functions/strftime.texi: Likewise.
4059         * doc/posix-functions/wcsftime.texi: Likewise.
4060         * doc/pastposix-functions/ftime.texi: Likewise.
4062 2017-04-30  Bruno Haible  <bruno@clisp.org>
4064         utime-tests: New module.
4065         * tests/test-utime.c: New file, based on tests/test-utimens.h.
4066         * tests/test-utimens-common.h: Include <sys/stat.h>.
4067         * modules/utime-tests: New file.
4069 2017-04-29  Bruno Haible  <bruno@clisp.org>
4071         utime: New module.
4072         * lib/utime.in.h: Add comment for snippets.
4073         (utime): New declaration.
4074         * lib/utime.c: New file.
4075         * m4/utime.m4: New file.
4076         * m4/utime_h.m4 (gl_UTIME_H): Test for utime declaration.
4077         (gl_UTIME_H_DEFAULTS): Initialize GNULIB_UTIME, HAVE_UTIME,
4078         REPLACE_UTIME.
4079         * modules/utime-h (Depends-on): Add snippets.
4080         (Makefile.am): Substitute GNULIB_UTIME, HAVE_UTIME, REPLACE_UTIME.
4081         Insert snippets.
4082         * modules/utime: New file.
4083         * doc/posix-functions/utime.texi: Mention the new module.
4085 2017-04-29  Bruno Haible  <bruno@clisp.org>
4087         utime-h: Modernize handling of 'struct utimbuf'.
4088         * lib/utime.in.h: Include next <utime.h> if it exists.
4089         (utimbuf): Define to _utimbuf on native Windows.
4090         * m4/utime_h.m4 (gl_UTIME_H): Check for prerequisites of include_next.
4091         Set UTIME_H on native Windows.
4092         (gl_UTIME_MODULE_INDICATOR, gl_HEADER_UTIME_H_DEFAULTS): New macros.
4093         * modules/utime-h (Depends-on): Add include_next.
4094         (Makefile.am): Substitute also HAVE_UTIME_H, INCLUDE_NEXT,
4095         PRAGMA_SYSTEM_HEADER, PRAGMA_COLUMNS, NEXT_UTIME_H.
4097         * lib/utimens.c (utimbuf): Remove fallback definition.
4098         * m4/utimens.m4 (gl_UTIMENS): Don't require
4099         gl_CHECK_TYPE_STRUCT_UTIMBUF.
4100         * m4/utimbuf.m4: Remove file.
4101         * modules/utimens (Files): Remove m4/utimbuf.m4.
4103 2017-04-29  Bruno Haible  <bruno@clisp.org>
4105         Make use of module 'utime-h'.
4106         * modules/copy-file (Depends-on): Add utime-h.
4107         * lib/copy-file.c: Assume that <utime.h> exists.
4108         * m4/copy-file.m4 (gl_COPY_FILE): Don't test for <utime.h>.
4110         * modules/utimens (Depends-on): Add utime-h.
4111         * lib/utimens.c: Assume that <utime.h> exists.
4113 2017-04-29  Bruno Haible  <bruno@clisp.org>
4115         utime-h: New module.
4116         * m4/utime_h.m4: New file.
4117         * lib/utime.in.h: New file.
4118         * modules/utime-h: New file.
4119         * doc/posix-headers/utime.texi: Mention the new module.
4121         * tests/test-utime-h.c: New file.
4122         * modules/utime-h-tests: New file.
4124 2017-04-30  Bruno Haible  <bruno@clisp.org>
4126         Fix a few typos.
4127         * m4/fstat.m4 (gl_FUNC_FSTAT): Require AC_CANONICAL_HOST.
4128         * m4/stat.m4 (gl_FUNC_STAT): Fix comment.
4129         * doc/posix-functions/fstat.texi: Fix a plural typo.
4130         * doc/posix-functions/stat.texi: Likewise.
4131         * m4/include_next.m4: Update comments.
4133 2017-04-29  Bruno Haible  <bruno@clisp.org>
4135         error: Fix mistake in 2017-04-23 commit.
4136         * lib/error.c (print_errno_message): If GNULIB_STRERROR_R_POSIX is set,
4137         assume that strerror_r returns 'int', not 'char *'.
4139 2017-04-29  Bruno Haible  <bruno@clisp.org>
4141         stat: Fix time_t values and other problems on native Windows platforms.
4142         * doc/posix-functions/stat.texi: Mention the problem with the Microsoft
4143         implementations of stat().
4144         * lib/stat.c: Include filename.h instead of dosname.h. Include
4145         malloca.h, stat-w32.h.
4146         (is_unc_root): New function.
4147         (rpl_stat): New implementation for native Windows. Remove
4148         REPLACE_FUNC_STAT_DIR code.
4149         * m4/stat.m4 (gl_FUNC_STAT): On native Windows, set REPLACE_STAT always.
4150         Don't define REPLACE_FUNC_STAT_DIR.
4151         (gl_PREREQ_STAT): Require gl_HEADER_SYS_STAT_H.
4152         * modules/stat (Files): Add lib/stat-w32.h, lib/stat-w32.c.
4153         (Depends-on): Remove dosname. Add filename, malloca.
4154         (configure.ac): Also compile lib/stat-w32.c.
4156 2017-04-29  Bruno Haible  <bruno@clisp.org>
4158         fstat: Fix time_t values on native Windows platforms.
4159         * doc/posix-functions/fstat.texi: Mention the problem with st_*time.
4160         * lib/stat-w32.h: New file.
4161         * lib/stat-w32.c: New file.
4162         * lib/fstat.c: Don't include msvc-inval.h. Include msvc-nothrow.h,
4163         stat-w32.h instead.
4164         (fstat_nothrow): Remove function.
4165         (rpl_fstat): Implement by means of _gl_fstat_by_handle.
4166         * m4/fstat.m4 (gl_FUNC_FSTAT): On native Windows, set REPLACE_FSTAT
4167         always.
4168         (gl_PREREQ_FSTAT): Require gl_HEADER_SYS_STAT_H.
4169         * modules/fstat (Files): Add lib/stat-w32.h, lib/stat-w32.c.
4170         (Depends-on): Remove msvc-inval. Add pathmax, msvc-nothrow.
4171         (configure.ac): Also compile lib/stat-w32.c.
4173 2017-04-29  Paul Eggert  <eggert@cs.ucla.edu>
4175         getopt: port to Solaris 10 with circa-1997 glibc getopt.h
4176         Problem reported by Assaf Gordon and Gavin Smith in:
4177         http://lists.gnu.org/r/bug-gnulib/2017-04/msg00157.html
4178         * lib/getopt-pfx-ext.h (_getopt_internal) [__GETOPT_PREFIX]:
4179         #define this, too.
4181 2017-04-29  Bruno Haible  <bruno@clisp.org>
4183         strerror_r-posix: Fixes for MSVC 14.
4184         * lib/strerror_r.c: Include <stdarg.h>.
4185         (strerror_r): Provide error messages for errno values 100...140.
4186         * doc/posix-functions/strerror_r.texi: Mention the MSVC 14 problem.
4188 2017-04-28  Bruno Haible  <bruno@clisp.org>
4190         noreturn: New module.
4191         * lib/noreturn.h: New file.
4192         * modules/noreturn: New file.
4193         * tests/test-noreturn.c: New file.
4194         * modules/noreturn-tests: New file.
4195         * tests/test-noreturn-c++.cc: New file.
4196         * modules/noreturn-c++-tests: New file.
4198 2017-04-27  Bruno Haible  <bruno@clisp.org>
4200         wctype-h: Fix compilation error with the original mingw.org mingw.
4201         * m4/wctype_h.m4 (gl_WCTYPE_H): Test for <crtdefs.h>. Set
4202         HAVE_CRTDEFS_H.
4203         * modules/wctype-h (Makefile.am): Substitute HAVE_CRTDEFS_H.
4204         * lib/wctype.in.h (rpl_wint_t): If <crtdefs.h> does not exist, include
4205         <stddef.h> instead.
4206         Reported and proposed by Eli Zaretskii <eliz@gnu.org>.
4208 2017-04-26  Pádraig Brady  <P@draigBrady.com>
4210         nap.h: Fix compilation on non windows platforms
4211         * tests/nap.h: Move misplaced endif.
4213 2017-04-26  Pádraig Brady  <P@draigBrady.com>
4214         and Paul Eggert  <eggert@cs.ucla.edu>
4216         time_rz: fix heap buffer overflow vulnerability
4217         Reported and analyzed at https://bugzilla.redhat.com/CVE-2017-7476
4218         * lib/time_rz.c (save_abbr): Rearrange the calculation determining
4219         whether there is enough buffer space available, thus avoiding
4220         the problematic promotion of signed to unsigned causing an invalid
4221         comparison when zone_copy is more than ABBR_SIZE_MIN bytes beyond
4222         the start of the buffer.
4223         * tests/test-parse-datetime.c (main): Add a test case written by
4224         Paul Eggert, which overwrites enough of the heap so that
4225         standard glibc will fail with "free(): invalid pointer"
4226         without the patch applied.
4228 2017-04-26  Paul Eggert  <eggert@cs.ucla.edu>
4230         xalloc: add missing integer overflow check
4231         * lib/xalloc.h (x2nrealloc): Also check for multiplication
4232         overflow when P is null.
4234 2017-04-25  Paul Eggert  <eggert@cs.ucla.edu>
4236         parse-datetime: make it standalone
4237         * lib/parse-datetime.y: Include <stdarg.h>, for va_start etc.
4238         (_GL_ATTRIBUTE_FORMAT): New macro.
4239         These are needed to get './gnulib-tool --test parse-datetime' to work.
4241 2017-04-23  Bruno Haible  <bruno@clisp.org>
4243         nap.h: Port to native Windows.
4244         * tests/nap.h (nap_get_stat): Renamed from get_stat. Remove argument fd;
4245         use nap_fd instead. On native Windows, close and reopen nap_fd.
4246         (nap_works): Don't compare the ctimes, because on native Windows, these
4247         are the creation times.
4248         (nap): Update.
4250 2017-04-23  Bruno Haible  <bruno@clisp.org>
4252         nap.h: Fix logic.
4253         * tests/nap.h (nap): Avoid signed integer overflow in loop.
4255 2017-04-23  Bruno Haible  <bruno@clisp.org>
4257         Fix conflict between strerror_r-posix module and AC_FUNC_STRERROR_R.
4258         * modules/strerror_r-posix (configure.ac): Invoke gl_MODULE_INDICATOR.
4259         * lib/error.c: Test GNULIB_STRERROR_R_POSIX before testing
4260         HAVE_DECL_STRERROR_R, HAVE_STRERROR_R, or STRERROR_R_CHAR_P.
4261         * lib/argp-help.c (__argp_failure): Likewise.
4263 2017-04-23  Bruno Haible  <bruno@clisp.org>
4265         strerror_r-posix: Revert commits from 2016-10-16,2016-11-04,2016-11-14.
4266         * m4/strerror_r.m4: Revert changes since 2016-10-16.
4267         * lib/strerror_r.c: Likewise.
4269 2017-04-23  Paul Eggert  <eggert@cs.ucla.edu>
4271         Target a C99 subset, not a C89 subset
4272         For many years Gnulib has targeted C89 and has resisted using C99
4273         features, as some Gnulib-using programs still wanted to target
4274         C89.  As this no longer seems to be the case, relax the porting
4275         requirements to allow some C99 features.  This is merely a change
4276         to the documentation, to give other Gnulib developers a chance to
4277         weigh in on the topic.
4278         * doc/extern-inline.texi (extern inline):
4279         * doc/gnulib-readme.texi (Portability guidelines):
4280         * doc/gnulib-tool.texi (Initial import):
4281         * doc/gnulib.texi (Header files):
4282         Modernize to talk about C99 and C11 instead of C89 and C99.
4283         * doc/gnulib-readme.texi (Portability guidelines):
4284         Now a section, not merely a subsection, so that it
4285         can be split up.  Modernize a bit.
4286         (C language versions, C99 features assumed)
4287         (C99 features avoided):
4288         New sections.
4290 2017-04-23  Bruno Haible  <bruno@clisp.org>
4292         doc: New section "Modules that modify the way other modules work".
4293         * doc/gnulib.texi (Modules that modify the way other modules work): New
4294         section.
4296 2017-04-23  Bruno Haible  <bruno@clisp.org>
4298         stat-time: Update comments.
4299         * lib/stat-time.h: Fix reference regarding st_ctime on Windows.
4300         * tests/test-utimens-common.h: Add reference regarding st_ctime on
4301         Windows.
4303 2017-04-01  Bruno Haible  <bruno@clisp.org>
4305         glob: Fix more memory leaks.
4306         * lib/glob.c (glob): Free allocated memory before returning.
4307         Reported by Coverity via Tim Rühsen.
4309 2017-04-22  Paul Eggert  <eggert@cs.ucla.edu>
4311         poll: improve fast check for out-of-range NFD
4312         * lib/poll.c: Do not include intprops.h.
4313         (poll): Compare NFD to INT_MAX, not to TYPE_MAXIMUM (nfds_t) / 2.
4314         * modules/poll (Depends-on): Remove intprops.
4316         ftoastr: cite a newer paper
4317         * lib/ftoastr.c (FTOASTR): In comment, cite Andrysco et al. 2016
4318         instead of Loitsch 2010.
4320 2017-04-22  Bruno Haible  <bruno@clisp.org>
4322         poll: Enable argument check also in the Windows implementation.
4323         * lib/poll.c (poll) [WINDOWS_NATIVE]: Check value of nfd correctly.
4324         Reported by Paul Eggert.
4326 2017-04-22  Bruno Haible  <bruno@clisp.org>
4328         getlogin_r: Work around bug in Mac OS X 10.12.
4329         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test also against the Mac OS X
4330         bug.
4331         * lib/getlogin_r.c (getlogin_r): When getlogin_r returns a string of the
4332         given size minus 1, call getlogin_r a second time, on a larger buffer.
4333         * modules/getlogin_r (Depends-on): Add malloca.
4334         * doc/posix-functions/getlogin_r.texi: Mention the Mac OS X bug.
4336 2017-04-22  Paul Eggert  <eggert@cs.ucla.edu>
4338         parse-datetime: fix %z and prefer signed int
4339         %z problem reported by Pádraig Brady in:
4340         http://lists.gnu.org/r/bug-gnulib/2017-04/msg00103.html
4341         While fixing it, I decided to prefer signed ints to size_t, as
4342         they are less error-prone (e.g., ubsan catches overflow).
4343         * lib/parse-datetime.y (textint, parser_control, lookup_word, yylex)
4344         (parse_datetime2): Prefer ptrdiff_t to size_t for sizes and object
4345         counts, since signed integers make for better debugging.
4346         (date): Don’t assume %z works in printf formats.
4347         (debug_strfdatetime, debug_strfdate, debug_strftime): Use int for
4348         sizes of buffers known to be small, e.g., because we’re using snprintf.
4349         (parse_datetime2): Simplify call to debug_mktime_not_ok.
4351 2017-04-22  Bruno Haible  <bruno@clisp.org>
4353         *printf: Work around rounding bug on Mac OS X.
4354         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Test for Mac OS X 10.12 bug.
4355         * doc/posix-functions/*printf.texi: Mention the rounding bugs of
4356         Mac OS X and FreeBSD.
4357         * doc/glibc-functions/*printf.texi: Likewise.
4359 2017-04-22  Bruno Haible  <bruno@clisp.org>
4361         vasnprintf tests: Avoid warnings.
4362         * tests/test-vasnprintf-posix3.c (test_function, my_asnprintf,
4363         test_vasnprintf, test_asnprintf): Don't define if there's nothing to
4364         test.
4366 2017-04-22  Bruno Haible  <bruno@clisp.org>
4368         sys_file tests: Avoid warning.
4369         * tests/test-sys_file.c (main): Add a default clause to the switch
4370         statement.
4372 2017-04-22  Bruno Haible  <bruno@clisp.org>
4374         sethostname: Update doc.
4375         * doc/glibc-functions/sethostname.texi: Mention differing prototype on
4376         Mac OS X.
4378 2017-04-22  Bruno Haible  <bruno@clisp.org>
4380         quotearg tests: Avoid warnings.
4381         * tests/test-quotearg.c: Don't include test-quotearg.h if ENABLE_NLS is
4382         false.
4384 2017-04-22  Bruno Haible  <bruno@clisp.org>
4386         poll: Enable argument check.
4387         * lib/poll.c: Include intprops.h.
4388         (poll): Check value of nfd correctly.
4389         * modules/poll (Depends-on): Add intprops.
4391 2017-04-22  Bruno Haible  <bruno@clisp.org>
4393         get-rusage-data: Avoid warnings on Mac OS X.
4394         * lib/get-rusage-data.c: On Mac OS X, don't define
4395         get_rusage_data_via_setrlimit nor get_rusage_data_via_iterator.
4396         (get_rusage_data) [Mac OS X]: Just return 0.
4398 2017-04-22  Bruno Haible  <bruno@clisp.org>
4400         xbinary-io: Fix build error.
4401         * modules/xbinary-io (Depends-on): Add gettext-h.
4402         * lib/xbinary-io.c: Include gettext.h and define _().
4403         Reported by Gisle Vanem <gisle.vanem@gmail.com> in
4404         <https://lists.gnu.org/r/bug-gnulib/2017-04/msg00089.html>.
4406 2017-04-22  Paul Eggert  <eggert@cs.ucla.edu>
4408         parse-datetime: overflow and debug cleanups
4409         This long patch was triggered by this bug report from Ruediger Meier:
4410         http://lists.gnu.org/r/bug-gnulib/2017-04/msg00028.html
4411         I fixed the bug he noted, then found some others nearby, and then
4412         still others.  Oh my goodness, there were a lot of bugs.  I cleaned
4413         up some of the code to follow GNU standards while I was at it.
4414         * lib/parse-datetime.y (ISDIGIT): Remove; all callers changed to
4415         use c_isdigit.
4416         (EPOCH_YEAR): Remove; unused.
4417         (TM_YEAR_BASE): Now an enum rather than a macro.
4418         (HOUR, debug_strfdatetime): Multiply hour by 3600, not 60, to get
4419         time zone offset, since timezones now are in terms of seconds and
4420         not minutes.
4421         (long_time_t): Remove.  All uses replaced by time_t or intmax_t as
4422         appropriate.  Verify that intmax_t is wide enough.
4423         (time_overflow, time_zone_str): New functions, used to deal
4424         more reliably with overflow.
4425         (dbg_printf): Add printf attribute, to help catch integer width errors.
4426         (textint, relative_time, parser_control, time_zone_hhmm, set_hhmmss)
4427         (%union, to_hour, yylex, parse_datetime2):
4428         Use intmax_t instead of long int and/or long_time_t.
4429         All uses changed.
4430         (DBGBUFSIZE): Move earlier.
4431         (relative_time, set_hhmmss, parser_control):
4432         Just use int for nanoseconds and for time zones; that’s wide enough.
4433         (parser_control): Use bool for members like year_seen that can
4434         be booleans instead of counters.  All uses changed.
4435         Remove debug_default_input_timezone; no longer needed.
4436         All uses removed.
4437         (apply_relative_time): Return a bool overflow flag.
4438         All uses changed to check for overflow.
4439         (apply_relative_time, zone, date, relunit, relunit_snumber)
4440         (signed_seconds, unsigned_seconds, yylex, parse_datetime2):
4441         Check for integer overflow portably.
4442         (str_days): Use just int for N, as it’s wide enough.
4443         Prefer 2D char arrays to arrays of char * when it looks like
4444         2D is a win on typical platforms.
4445         Prefer snprintf to strncpy/strncat, for simplicity;
4446         all buffers are smaller than INT_MAX so this is safe.
4447         (TIME_ZONE_BUFSiZE, TM_YEAR_BUFSIZE): New constants.
4448         (debug_print_current_time): Don’t assume tv_nsec is of type long,
4449         as this is not true on x32.  Output "." before any nanoseconds.
4450         (debug_print_current_time, parse_datetime2):
4451         Output local zones using a more-consistent format.
4452         (debug_print_current_time, date, parse_datetime2):
4453         (main) [TEST]:
4454         Don’t assume time_t is the same width as long.
4455         (print_rel_part): New function, replacing ...
4456         (PRINT_REL_PART): ... this macro, which was removed.  All uses changed.
4457         (debug_print_relative_time): Use bool for boolean.
4458         (local_zone): dsts_seen now counts only tDST instances.
4459         (date): Fix printf of size_t to use %z.  Do not assume numeric
4460         tokens have negative values merely because the context suggests
4461         a syntax with "-" separating tokens.
4462         (time_zone_hhmm): Return bool success indicator, which checks for
4463         overflow.  Store result into PC->time_zone instead.  All callers
4464         changed.
4465         (tm_year_str): New function.  Return a bool success indicator and
4466         store the result into a buffer.  All callers changed.  Output the
4467         numerically correct string even if adding 1900 to the year would
4468         overflow.
4469         (to_tm_year): New function, replacing the old to_year.  All
4470         callers changed.
4471         (tm_diff): Sync with glibc.
4472         (lookup_word): Use to_uchar instead of doing it by hand.
4473         (TZBUFSIZE): Now local to the only function that needs it.
4474         (debug_strfdatetime): Simplify now that time zones are int seconds.
4475         (debug_strfdate): Work even if tm_year + 1900 would overflow.
4476         (get_effective_timezone): Remove.  All uses removed.
4477         (parse_datetime2): Use fprintf in pieces instead of snprintfing
4478         to a fixed-size buffer.  Don’t assume that gmtime succeeds iff
4479         localtime succeeds.  Use tm_gmtoff if available.  Simplify how
4480         ‘goto fail;’ works in conjunction with the ‘ok’ flag.
4481         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Don’t define
4482         TIME_T_FITS_IN_LONG_INT, as it is no longer needed.
4483         * modules/parse-datetime (Depends-on): Add inttypes.
4485 2017-04-21  Bruno Haible  <bruno@clisp.org>
4487         gettext-h: Avoid -Wundef warning.
4488         * lib/gettext.h: Test the value of ENABLE_NLS only if it is defined.
4489         Reported by Tim Rühsen <tim.ruehsen@gmx.de> in
4490         <https://lists.gnu.org/r/bug-gnulib/2017-04/msg00022.html>.
4492 2017-04-05  Tim Rühsen  <tim.ruehsen@gmx.de>
4494         error: Avoid "function declaration isn't a prototype" warning.
4495         * lib/error.c (strerror_r): Turn K&R C prototype to an ANSI C prototype.
4497 2017-04-21  Bruno Haible  <bruno@clisp.org>
4499         vasnprintf: Fix for MSVC 14.
4500         * lib/vasnprintf.c (USE_MSVC__SNPRINTF): New macro.
4501         Everywhere, use !HAVE_SNPRINTF_RETVAL_C99 || USE_MSVC__SNPRINTF instead
4502         of !HAVE_SNPRINTF_RETVAL_C99.
4504 2017-04-21  Bruno Haible  <bruno@clisp.org>
4506         mbrtowc tests: Fix test failures on MSVC 14.
4507         * tests/test-mbrtowc-w32.c (test_one_locale): Accept MSVC's conversion
4508         behaviour for invalid input.
4510 2017-04-21  Bruno Haible  <bruno@clisp.org>
4512         mbsinit: Fix for MSVC 14.
4513         * lib/mbsinit.c (mbsinit): If GNULIB_defined_mbstate_t, provide an
4514         implementation that is in sync with mbrtowc.c. On other platforms, use
4515         an adequate ad-hoc implementation.
4517 2017-04-21  Bruno Haible  <bruno@clisp.org>
4519         Fix test-mbrtowc5.sh failure on native Windows.
4520         * lib/setlocale.c (setlocale_unixlike): Accept "POSIX" as an alias for
4521         "C".
4523 2017-04-21  Bruno Haible  <bruno@clisp.org>
4525         Avoid accidental use of native Windows APIs on Cygwin.
4526         * lib/getaddrinfo.c (WINDOWS_NATIVE): Don't define on Cygwin.
4527         * lib/localcharset.c (WINDOWS_NATIVE): Likewise.
4528         * lib/localename.c (WINDOWS_NATIVE): Likewise.
4530 2017-04-20  Bruno Haible  <bruno@clisp.org>
4532         Remove red warnings from the generated MODULES.html.
4533         * modules/fcntl (Description): Disambiguate function references.
4534         * modules/getcwd-lgpl (Description): Likewise.
4535         * modules/hostent (Description): Likewise.
4536         * modules/servent (Description): Likewise.
4537         * modules/tempname (Description): Likewise.
4539 2017-04-20  Bruno Haible  <bruno@clisp.org>
4541         verify tests: Fix spurious failure with parallel make.
4542         * gnulib-tool (func_emit_tests_Makefile_am): Emit initialization of
4543         EXTRA_PROGRAMS.
4544         * tests/test-verify.sh: Build test-verify-try.o, not test-verify.o.
4545         * tests/test-verify-try.c: New file.
4546         * modules/verify-tests (Files): Add it.
4547         (EXTRA_PROGRAMS): Add test-verify-try.
4548         (MOSTLYCLEANFILES): Update accordingly.
4549         Reported by Adam James Stewart <ajstewart@anl.gov>.
4551 2017-04-18  Bruno Haible  <bruno@clisp.org>
4553         vma-iter: Fix compilation error on Solaris 7.
4554         * lib/vma-iter.c (vma_iterate): Treat missing MAP_ANONYMOUS on Solaris
4555         like on IRIX, OSF/1.
4556         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
4558 2017-04-18  Bruno Haible  <bruno@clisp.org>
4560         vma-iter: Fix conflict with module 'largefile' on 32-bit Solaris 9.
4561         * modules/vma-iter (configure.ac): Test whether <sys/procfs.h> can be
4562         included.
4563         * lib/vma-iter.c: On Solaris, test HAVE_SYS_PROCFS_H before including
4564         <sys/procfs.h>.
4565         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Don't define on Solaris when
4566         <sys/procfs.h> cannot be included.
4567         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
4569 2017-04-18  Bruno Haible  <bruno@clisp.org>
4571         getopt-gnu: Add comments.
4572         * m4/getopt.m4 (gl_FUNC_GETOPT_GNU): Add comments.
4573         * modules/getopt-gnu (configure.ac): Likewise.
4575 2017-04-16  Paul Eggert  <eggert@cs.ucla.edu>
4577         regex: port better to Solaris 10
4578         Solaris 10 <locale.h> includes <libintl.h>, which #defines
4579         gettext, and this causes a double #define.
4580         Problem reported by Gavin Smith in:
4581         http://lists.gnu.org/r/bug-gnulib/2017-04/msg00056.html
4582         * lib/regex_internal.h (gettext): #undef before #defining.
4584 2017-04-15  Paul Eggert  <eggert@Penguin.CS.UCLA.EDU>
4586         intprops: improve comments
4587         * lib/intprops.h: Improve and shorten commentary.
4588         For the record, if we ever run into a pedantic compiler that
4589         behaves differently from GCC when converting an out-of-range value
4590         to a signed integer, we can work around the problem with something
4591         like the following code, where UCT is the signed counterpart of T
4592         (UCT is sometimes narrower than UT) and all callers are changed
4593         accordingly:
4594         #if __SUNPRO_C <= 0x5120
4595         # define _GL_INT_OP_WRAPV_VIA_UNSIGNED(a, b, op, uct, ut, t) \
4596            ((t) ((ut) (a) op (ut) (b)))
4597         #else
4598         # define _GL_INT_OP_WRAPV_VIA_UNSIGNED(a, b, op, uct, ut, t) \
4599            (TYPE_MINIMUM (t) <= (uct) ((ut) (a) op (ut) (b)) \
4600             ? ((t) (uct) (((ut) (a) op (ut) (b)) - TYPE_MINIMUM (t)) \
4601                + TYPE_MINIMUM (t)) \
4602             : (t) (uct) ((ut) (a) op (ut) (b)))
4603         #endif
4605 2017-04-14  Paul Eggert  <eggert@Penguin.CS.UCLA.EDU>
4607         intprops: try to avoid tickling similar bugs
4608         * lib/intprops.h (_GL_INT_OP_CALC): Document that UT no longer
4609         needs to be the same width as T; it can be wider.
4610         Change callers so that UT is at least as wide as unsigned int,
4611         as I suspect that this is less likely to run into compiler bugs.
4613         intprops: port to Oracle Studio 12.3 x86
4614         Problem reported by Gavin Smith in:
4615         http://lists.gnu.org/r/bug-gnulib/2017-04/msg00049.html
4616         * lib/intprops.h (_GL_INT_OP_WRAPV_VIA_UNSIGNED):
4617         Convert unsigned to signed via the usual rather than the standard way,
4618         to avoid a compiler bug in Oracle Studio 12.3 x86.
4620 2017-04-08  Paul Eggert  <eggert@cs.ucla.edu>
4622         getopt: prefer - to _ in new file names
4623         * lib/getopt-cdefs.in.h: Rename from lib/getopt_cdefs.in.h.
4624         * lib/getopt-core.h: Rename from lib/getopt_core.h.
4625         * lib/getopt-ext.h: Rename from lib/getopt_ext.h.
4626         * lib/getopt-pfx-core.h: Rename from lib/getopt_pfx_core.h.
4627         * lib/getopt-pfx-ext.h: Rename from lib/getopt_pfx_ext.h.
4628         All uses changed.
4630         getopt: port recent getopt changes to macOS
4631         Problem reported by Harald Maier (Bug#26398).
4632         The macOS C compiler uses __nonnull for its own purposes and that
4633         clashes with glibc's __nonnull.
4634         * lib/getopt.in.h: Add comment for _GL_ARG_NONNULL snippet.
4635         * lib/getopt_cdefs.in.h (__nonnull): Remove.
4636         * lib/getopt_core.h (getopt):
4637         * lib/getopt_ext.h (getopt_long, getopt_long_only):
4638         Use _GL_ARG_NONNULL, not __nonnull.
4639         * lib/unistd.in.h: Move snippet hooks to before where the getopt
4640         .h files are included, so that _GL_ARG_NONNULL is defined in time.
4641         * modules/getopt-posix (Depends-on): Add snippet/arg-nonnull.
4642         (getopt.h): Interpolate _GL_ARG_NONNULL snippet.
4644 2017-04-06  Paul Eggert  <eggert@cs.ucla.edu>
4646         getopt-gnu: omit some duplicate code
4647         * m4/getopt.m4 (gl_FUNC_GETOPT_GNU): Don’t require
4648         gl_FUNC_GETOPT_POSIX, as the configure.ac code generated by
4649         gnulib-tool already does this.
4650         * modules/getopt-gnu (configure.ac): Omit code duplicated from
4651         getopt-posix, which we depend on.
4653         getopt-posix: use angle-bracket include
4654         * lib/getopt1.c: Include <config.h>, not "config.h".
4656 2017-04-06  Zack Weinberg  <zackw@panix.com>
4658         getopt: annotate files with relationship to glibc
4660         As the final act in this patchset, adjust the message at the top of
4661         each file to indicate which files are synced with glibc.  (This has
4662         already been done for most of the headers.)
4664         * lib/getopt.c, lib/getopt1.c, lib/getopt_int.h:
4665         Mention in top-of-file boilerplate that these files are shared
4666         between glibc and gnulib.
4669         getopt: split up getopt.in.h and eliminate __need_getopt
4671         Over in glibc, all of the __need macros are being phased out in favor
4672         of small headers that declare only the necessary components, as this
4673         is much simpler and less prone to bugs.  As getopt is shared with
4674         glibc, gnulib needs to do the same for __need_getopt.
4676         __need_getopt is misnamed; what it really means is "we want only the
4677         getopt features specified in POSIX, not the GNU extensions".  glibc
4678         placed the "meat" of getopt.h into getopt_core.h and getopt_ext.h;
4679         these files can be shared verbatim with gnulib.  The portability
4680         wrapper, on the other hand, they have renounced altogether; glibc's
4681         getopt.h will no longer be shared with gnulib at all.  In exchange,
4682         certain glibc-specific quirks (having to do with __posix_getopt) no
4683         longer need appear in gnulib's headers at all.
4685         This patch merges getopt_core.h and getopt_ext.h from glibc, and
4686         splits up the current gnulib-side portability wrapper into three
4687         additional headers: getopt_pfx_core.h and getopt_pfx_ext.h handle
4688         __GETOPT_PREFIX for their respective headers, getopt_cdefs.in.h
4689         handles things like __BEGIN_DECLS and __THROW, and getopt.in.h and
4690         unistd.in.h just use them.  All new files are clearly marked with
4691         whether they are shared with glibc.
4693         * lib/getopt.in.h: Eliminate __need_getopt.  Break up into ...
4694         * lib/getopt_core.h, lib/getopt_ext.h: ... these new files shared
4695         with glibc, and ...
4696         * lib/getopt_cdefs.in.h, lib/getopt_pfx_core.h
4697         * lib/getopt_pfx_ext.h: ... these new files not shared with glibc.
4698         * lib/unistd.in.h: Include getopt_cdefs.h and getopt_pfx_core.h,
4699         instead of defining __need_getopt and including the full getopt.h.
4701         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): Check for sys/cdefs.h.
4702         Define substitution variables GETOPT_CDEFS_H and HAVE_SYS_CDEFS_H.
4703         * modules/getopt-posix (Files): Add new headers and sort list.
4704         (Depends-on): No longer need snippet/arg-nonnull.
4705         (Makefile.am): Generate getopt_cdefs.h.
4708         getopt: better handling of ambiguous options
4710         glibc's getopt uses alloca to construct a linked list of possibilities
4711         for an "ambiguous" long option.  In gnulib, malloc should be used
4712         instead.  Providing for both cases complicates things a fair bit.
4714         This patch rewrites ambiguous-option handling to use a boolean vector
4715         instead of a linked list.  There is then only one allocation that
4716         might need freeing; in glibc it can honor __libc_use_alloca as usual,
4717         and in gnulib we define __libc_use_alloca to always be false, so we
4718         don't need ifdefs in the middle of the function.  This should also be
4719         slightly more efficient in the normal case of long options being fully
4720         spelled out -- I think most people aren't even aware they _can_
4721         sometimes abbreviate long options.
4723         One interesting consequence is that the list of possibilities is now
4724         printed in exactly the order they appear in the list of long options,
4725         instead of the first possibility being shuffled to the end.
4727         (The patch looks bigger than it really is because there's a fair bit
4728         of reindentation and code rearrangement.)
4730         * lib/getopt.c: When used standalone, define __libc_use_alloca
4731         as always false and alloca to abort if called.
4732         (process_long_option): Rewrite handling of ambiguous long options
4733         to use a single boolean vector, not a linked list; use
4734         __libc_use_alloca to decide whether to allocate this using alloca.
4737         getopt: refactor long-option handling
4739         There were two copies of the bulk of the code to handle long options.
4740         Now there is only one.
4742         This change temporarily removes the logic to avoid using alloca when
4743         standalone; the next patch in the series will restore it.
4745         * lib/getopt.c (process_long_option): New function split out
4746         from _getopt_internal_r.
4747         (_getopt_internal_r): Replace both copies of the long-option
4748         processing code with calls to process_long_option.
4751         getopt: tidy up _getopt_initialize a bit
4753         _getopt_data.__posixly_correct is completely redundant to
4754         _getopt_data.__ordering, and some work that logically belongs in
4755         _getopt_initialize was being done by _getopt_internal_r, making the
4756         code harder to understand.
4758         As a side effect, getenv will no longer be called if the first
4759         character of the options string is '+' or '-', which is probably a
4760         Good Thing.  (Perhaps we should have a flag character that
4761         specifically asks for the permutation behavior?)
4763         * lib/getopt_int.h (_getopt_data): Remove __posixly_correct field.
4764         * lib/getopt.c (_getopt_internal_r): Move some initialization code...
4765         (_getopt_initialize): ...here. Don't set d->__posixly_correct.
4768         getopt: merge from glibc: repetition reduction
4770         The definitions of the entry point functions 'getopt' and
4771         '__posix_getopt' can be made substantially less repetitive with a
4772         helper macro.
4774         While I was merging the const-correctness changes from gnulib into
4775         glibc I noticed there are still some unnecessary casts in
4776         _getopt_internal_r.
4778         * lib/getopt.c (getopt, __posix_getopt): Eliminate repetition with
4779         a macro.  Consistently cast 'argv' to 'char **' when calling
4780         _getopt_internal.
4781         (_getopt_internal_r): Remove unnecessary casts when calling exchange.
4784         getopt: clean up error reporting
4786         getopt can print a whole bunch of error messages, and when used
4787         standalone (from gnulib) it uses fprintf to do that.  But fprintf is a
4788         cancellation point and getopt isn't, and also applying fprintf to a
4789         stream in wide-character mode is not allowed.  So every single error
4790         reporting case has an #ifdef _LIBC block in which it calls internal
4791         libc functions instead.  The counterpart patch series in glibc makes
4792         it possible to simplify all of that down to a set of #defines at the
4793         top of the file; core code is written as if it is safe to just call
4794         fprintf, flockfile, and funlockfile.  (One caveat: it's *not* safe to
4795         call any *other* stdio functions.)
4797         * lib/getopt.c: When _LIBC is defined, define fprintf to
4798         __fxprintf_nocancel, flockfile to _IO_flockfile, and funlockfile
4799         to _IO_funlockfile.  When neither _LIBC nor
4800         _POSIX_THREAD_SAFE_FUNCTIONS is defined, define flockfile and
4801         funlockfile as no-ops.
4802         (_getopt_internal_r): Remove all internal #ifdef _LIBC blocks; the
4803         standalone error-printing code can now be used for libc as well.
4804         Add an flockfile/funlockfile pair around one case where the error
4805         message is printed in several chunks.  Don't use fputc.
4808         getopt: fix fencepost error in ambiguous-W-option handling
4810         getopt_long contains an undocumented (AFAICT) feature in which, if you
4811         put "W;" in the short-options list, then '-W foo' and '-Wfoo' are
4812         treated as equivalent to '--foo'.  This is implemented with a partial
4813         second copy of the code for handling long options, and that code
4814         increments optind one too many times when recovering from an ambiguous
4815         abbreviated option, which can cause the main loop to walk past the end
4816         of argv and crash.
4818         I discovered this while writing a test case that tries to exercise all
4819         of getopt's error reporting paths; I wouldn't be surprised to learn
4820         that this feature is never used by real applications.
4822         * lib/getopt.c (_getopt_internal_r): Don't increment
4823         d->optind a second time when reporting ambiguous -W options.
4826         getopt: clean up getopt.c and getopt1.c file headers
4828         In getopt.c, there is no need to include wchar.h at all, and it is
4829         safe nowadays to assume that stdlib.h does declare getenv (several
4830         other gnulib modules make this assumption).
4832         In getopt1.c, the #ifdef _LIBC block at the top can be simplified
4833         by using "" inclusions consistently, and there is no actual need to
4834         include stdlib.h (except in the #ifdef TEST block, where it should be
4835         unconditional), nor to provide a backup definition of NULL at all.
4837         * lib/getopt1.c: Simplify #ifdeffage at top of file.
4838         Move inclusion of stdlib.h to #ifdef TEST block and make
4839         unconditional.  Do not define NULL.
4840         * lib/getopt.c: Don't include wchar.h. No need to declare getenv.
4841         * m4/getopt.m4 (gl_PREREQ_GETENV): Delete.
4842         * modules/getopt-gnu, modules/getopt-posix: Don't call
4843         gl_PREREQ_GETENV.
4846         getopt: harmonize comments with glibc
4848         The comments explaining how the behavior of 'getopt' varies depending
4849         on whether it's the standalone version and whether there are special
4850         characters at the beginning of the options string were inconsistent
4851         between gnulib and glibc, and also out of sync with the code.
4853         * lib/getopt.c, lib/getopt_int.h: Harmonize comments with glibc.
4856         getopt: remove USE_NONOPTION_FLAGS
4858         getopt includes code to parse an environment variable named
4859         _XXX_GNU_nonoption_argv_flags_ (where XXX is the current process's PID
4860         in decimal); but all of it has been #ifdefed out since 2001, with no
4861         official way to turn it back on.
4863         According to commentary in glibc's config.h.in, bash version 2.0
4864         set this environment variable to indicate argv elements that were
4865         the result of glob expansion and therefore should not be treated
4866         as options, but the feature was "disabled later" because "it
4867         caused problems".  According to bash's CHANGES file, "later" was
4868         release 2.01; it gives no more detail about what the problems
4869         were.
4871         Version 2.0 of bash was released on the last day of 1996, and version
4872         2.01 in June of 1997.  Twenty years later, I think it is safe to
4873         assume that this environment variable isn't coming back.
4875         * lib/getopt_int.h: Remove all #ifdef USE_NONOPTION_FLAGS blocks.
4876         * lib/getopt.c: Likewise. Also remove SWAP_FLAGS and the
4877         __libc_argc and __libc_argv externs, which were only used by
4878         #ifdef USE_NONOPTION_FLAGS blocks.
4881         getopt: tabify, in preparation for merge with glibc
4883         glibc sticks to the GNU default of indenting with a mix of
4884         8-column tabs and spaces; make the gnulib copy match.
4886         getopt.h is not included because it is *not* going to be merged in its
4887         present form.
4889         * getopt.c, getopt1.c, getopt_int.h: Tabify.
4891 2017-04-02  Bruno Haible  <bruno@clisp.org>
4893         relocatable-lib-lgpl: Fix link error (regression from 2011-06-16).
4894         * modules/relocatable-lib-lgpl (configure.ac): Add AC_LIBOBJ invocation,
4895         like it was done in modules/relocatable-lib on 2011-05-21 and in
4896         modules/relocatable-prog on 2011-08-15.
4897         Reported by Reuben Thomas <rrt@sc3d.org>.
4899 2017-03-31  Bruno Haible  <bruno@clisp.org>
4901         glob: Fix invalid free() call.
4902         * lib/glob.c (glob): Reset malloc_home_dir when assigning a pointer to
4903         static storage to home_dir.
4904         Reported by Coverity via Tim Rühsen.
4906 2017-03-31  Bruno Haible  <bruno@clisp.org>
4908         glob: Fix memory leaks.
4909         * lib/glob.c (glob): Free allocated memory before returning.
4910         Reported by Coverity via Tim Rühsen.
4912 2017-03-31  Bruno Haible  <bruno@clisp.org>
4914         md5, sha1, sha256, sha512: Add comments regarding correctness.
4915         * lib/md5.h (buflen): Add comments regarding range.
4916         * lib/sha1.h (buflen): Likewise.
4917         * lib/sha256.h (buflen): Likewise.
4918         * lib/sha512.h (buflen): Likewise.
4919         * lib/md5.c (md5_process_bytes): Add comment why memmove is not needed.
4920         * lib/sha1.c (sha1_process_bytes): Likewise.
4921         * lib/sha256.c (sha256_process_bytes): Likewise.
4922         * lib/sha512.c (sha512_process_bytes): Likewise.
4923         Reported by Coverity via Tim Rühsen.
4925 2017-03-22  Paul Eggert  <eggert@cs.ucla.edu>
4927         getopt: merge from glibc
4928         This does not change anything substantial; it merely simplifies
4929         hypothetical merges back to glibc.
4930         * lib/getopt.c, lib/getopt.in.h, lib/getopt1.c, lib/getopt_int.h:
4931         Change copyright notice to match what is in glibc.
4932         * lib/getopt.c: Reorder includes to match glibc.  Remove uses of
4933         USE_IN_LIBIO.  Remove 'register'.  In __LIBC code, use
4934         __open_memstream rather than open_memstream and __glibc_likely
4935         instead of __builtin_expect.
4936         * lib/getopt.in.h (__posix_getopt) [!__GETOPT_PREFIX]: New decl.
4938 2017-03-21  Paul Eggert  <eggert@cs.ucla.edu>
4940         dfa: make [0-9] faster in non-C locales
4941         Problem reported by John P. Linderman (Bug#26193).
4942         * lib/dfa.c (parse_bracket_exp): Remove redundant assignment.
4943         If both ends of the range are ASCII digits, do not worry about
4944         multi-character collating sequences and the like.  Be consistent
4945         about using isalpha as a precondition for setbit_case_fold_c.
4947 2017-03-19  Bruno Haible  <bruno@clisp.org>
4949         lock: Fix compilation error with HP-UX IA64 cc.
4950         * lib/glthread/lock.h (pthread_rwlockattr_setkind_np): Don't declare
4951         weak on non-glibc platforms.
4953 2017-03-19  Paul Eggert  <eggert@cs.ucla.edu>
4955         stdalign: tweak version# and test for HP-UX IA64
4956         Problems reported by Bruno Haible in:
4957         http://lists.gnu.org/r/bug-gnulib/2017-03/msg00078.html
4958         * lib/stdalign.in.h (_Alignas):
4959         * m4/stdalign.m4 (gl_STDALIGN_H):
4960         Use octal, not decimal, for __HP_cc version.  Perhaps HP formerly
4961         used octal (as that is how they document it), but it is decimal in
4962         practice now and the ancient implementations no longer matter.
4963         * tests/test-stdalign.c (main) [__HP_cc && __ia64]: Skip test.
4965 2017-03-19  Bruno Haible  <bruno@clisp.org>
4967         vma-iter: Add support for Solaris.
4968         * lib/vma-iter.c (vma_iterate): On Solaris, use the /proc filesystem
4969         approach.
4970         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on Solaris.
4971         * lib/get-rusage-as.c: Update comment about Solaris.
4972         * lib/get-rusage-data.c: Likewise.
4974 2017-03-19  Bruno Haible  <bruno@clisp.org>
4976         vma-iter: Prefer HP-UX specific API on HP-UX.
4977         * lib/vma-iter.c (vma_iterate): Move HP-UX specific implementation up.
4978         * lib/vma-iter.h: Update.
4979         Just in case HP-UX ever implements mquery().
4981 2017-03-18  Paul Eggert  <eggert@cs.ucla.edu>
4983         stdalign: restore previous behavior for HP-UX IA64
4984         See Bruno Haible's email in:
4985         http://lists.gnu.org/r/bug-gnulib/2017-03/msg00066.html
4986         which cites p 150 of a manual saying that 'aligned' works on Itanium.
4987         * lib/stdalign.in.h (_Alignas):
4988         Assume the '061200' applies to Itanium, not to PA-RISC.
4989         * m4/stdalign.m4 (gl_STDALIGN_H): Adjust to match stdalign.in.h.
4991 2017-03-17  Bruno Haible  <bruno@clisp.org>
4993         stat-time, timespec: Support use of the header files in C++ mode.
4994         * lib/stat-time.h: Add "C" linkage declaration.
4995         * lib/timespec.h: Likewise.
4997 2017-03-17  Bruno Haible  <bruno@clisp.org>
4999         stdalign: Make it work with HP-UX cc.
5000         * lib/stdalign.in.h (_Alignas): Don't define for HP-UX cc.
5001         * m4/stdalign.m4 (gl_STDALIGN_H): No need to enable the extra test
5002         for HP-UX cc.
5004 2017-03-17  Paul Eggert  <eggert@cs.ucla.edu>
5006         flexmember: try to detect HP-UX 11.31 cc bug
5007         Problem reported by Bruno Haible in:
5008         http://lists.gnu.org/r/bug-gnulib/2017-03/msg00066.html
5009         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
5010         Attempt to detect bug in HP-UX 11.31 cc.
5012 2017-03-16  Bruno Haible  <bruno@clisp.org>
5014         stdint: Fix test compilation failure with HP-UX 11 cc.
5015         * lib/stdint.in.h (_STDINT_MIN): Remove macro.
5016         (_STDINT_UNSIGNED_MIN, _STDINT_SIGNED_MIN): New macros.
5017         (PTRDIFF_MIN, SIG_ATOMIC_MIN, WCHAR_MIN, WINT_MIN): Define using
5018         _STDINT_UNSIGNED_MIN, _STDINT_SIGNED_MIN.
5020 2017-03-14  Bruno Haible  <bruno@clisp.org>
5022         gnulib-tool: Don't produce a tests directory with only snippet .h files.
5023         * gnulib-tool (func_modules_transitive_closure_separately): If
5024         testsrelated_modules ends up with no "real" modules, aside from
5025         modules with applicability 'all', set it to empty.
5027 2017-03-14  Bruno Haible  <bruno@clisp.org>
5029         vma-iter: Add support for HP-UX.
5030         * modules/vma-iter (configure.ac): Check for 'pstat_getprocvm'.
5031         * lib/vma-iter.c (vma_iterate): On HP-UX, use pstat_getprocvm().
5032         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on HP-UX.
5033         * lib/get-rusage-as.c: Update comment about HP-UX.
5034         * lib/get-rusage-data.c: Likewise.
5035         (get_rusage_data): Use get_rusage_data_via_setrlimit.
5037 2017-03-14  Bruno Haible  <bruno@clisp.org>
5039         limits-h: Make it work with HP-UX cc.
5040         * lib/limits.in.h (LLONG_MIN, LLONG_MAX, ULLONG_MAX): Define if not
5041         defined.
5043 2017-03-14  Bruno Haible  <bruno@clisp.org>
5045         Fix test failures on DragonFlyBSD.
5046         * tests/test-localeconv.c (main): Treat DragonFlyBSD like FreeBSD.
5047         * tests/test-select.h (test_bad_fd): Likewise.
5048         * tests/test-get-rusage-data.c (main): Treat DragonFlyBSD like OpenBSD.
5050 2017-03-14  Bruno Haible  <bruno@clisp.org>
5052         freadahead: Silence warning on DragonFlyBSD.
5053         * lib/freadahead.c (__sreadahead): Declare ourselves.
5055 2017-03-14  Bruno Haible  <bruno@clisp.org>
5057         vma-iter: Add comment about AIX.
5058         * lib/vma-iter.c: Add comment about why this module is not implemented
5059         on AIX.
5061 2017-03-14  Paul Eggert  <eggert@cs.ucla.edu>
5063         snippets: move unadjusted snippet sources to lib
5064         Problem reported by Michal Privoznik in:
5065         http://lists.gnu.org/r/bug-gnulib/2017-03/msg00039.html
5066         * lib/_Noreturn.h: Rename from build-aux/snippet/_Noreturn.h.
5067         * lib/arg-nonnull.h: Rename from build-aux/snippet/arg-nonnull.h.
5068         * lib/c++defs.h: Rename from build-aux/snippet/c++defs.h.
5069         * lib/unused-parameter.h: Rename from
5070         build-aux/snippet/unused-parameter.h.
5071         * lib/warn-on-use.h: Rename from build-aux/snippet/warn-on-use.h.
5072         * modules/snippet/_Noreturn (Files:, _NORETURN_H):
5073         * modules/snippet/arg-nonnull (Files:, ARG_NONNULL_H):
5074         * modules/snippet/c++defs (Files:, CXXDEFS_H):
5075         * modules/snippet/unused-parameter (Files:, UNUSED_PARAMETER_H):
5076         * modules/snippet/warn-on-use (Files: WARN_ON_USE_H):
5077         Adjust to file renamings.
5079 2017-03-14  Mathieu Lirzin  <mthl@gnu.org>
5081         gnulib-tool: don't automatically distribute files from top/
5082         * gnulib-tool (func_get_automake_snippet_unconditional): To be able to
5083         not distribute top/README-release by default, don't distribute files
5084         from top/ unconditionally.
5085         * modules/gnumakefile (Makefile.am): Distribute top/GNUmakefile.
5086         * modules/maintainer-makefile (Makefile.am): Distribute top/maint.mk.
5088 2017-03-14  Paul Eggert  <eggert@cs.ucla.edu>
5090         gnulib-tool: fix typo in comment output
5091         * gnulib-tool (func_import): Fix typo with previous change.
5093         snippets: work around GNU Make 3.82 VPATH
5094         When using 'gnulib-tool --gnu-make' on Emacs, and building
5095         the resulting tarball on Solaris 10 which bundles GNU Make 3.82,
5096         an out-of-source (VPATH) build failed because the sans-copyright
5097         snippet file was not built before the file that used it.
5098         Presumably this is some sort of VPATH thing.  Work around the
5099         problem by using the original snippet, i.e., don’t bother to
5100         remove its copyright notice.
5101         * modules/snippet/_Noreturn, modules/snippet/link-warning:
5102         Don’t assume Automake in comments.  Omit long-incorrect comment.
5103         * modules/snippet/arg-nonnull (BUILT_SOURCES, arg-nonnull.h)
5104         (MOSTLYCLEANFILES):
5105         * modules/snippet/c++defs (BUILT_SOURCES, c++defs.h)
5106         (MOSTLYCLEANFILES):
5107         * modules/snippet/unused-parameter (BUILT_SOURCES, unused-parameter.h)
5108         (MOSTLYCLEANFILES):
5109         * modules/snippet/warn-on-use (BUILT_SOURCES, warn-on-use.h)
5110         (MOSTLYCLEANFILES):
5111         Remove.
5112         * modules/snippet/arg-nonnull (ARG_NONNULL_H):
5113         * modules/snippet/c++defs (CXXDEFS_H):
5114         * modules/snippet/unused-parameter (UNUSED_PARAMETER_H):
5115         * modules/snippet/warn-on-use (WARN_ON_USE_H):
5116         Don’t bother to remove the copyright notice; just use the
5117         original snippet as-is.
5119 2017-03-13  Paul Eggert  <eggert@cs.ucla.edu>
5121         gnulib-tool: minor --gnu-make fixups
5122         * gnulib-tool (func_emit_lib_Makefile_am):
5123         Remove useless code that was a blind alley during implementation.
5124         Problem reported by Thien-Thi Nguyen in:
5125         http://lists.gnu.org/r/bug-gnulib/2017-03/msg00029.html
5126         (func_import): Note the "--gnu-make" option in the output comment.
5128 2017-03-12  Paul Eggert  <eggert@cs.ucla.edu>
5130         gnulib-tool: new option --gnu-make
5131         This is for applications like GNU Emacs that use GNU Make
5132         features instead of Automake.
5133         * doc/gnulib-tool.texi (Initial import): Mention --gnu-make.
5134         * doc/gnulib.texi (Unit test modules, Build robot for gnulib):
5135         Do not assume Automake.
5136         * gnulib-tool (func_determine_path_separator)
5137         (func_modules_transitive_closure, func_update_file)
5138         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
5139         (func_import): Add support for --gnu-make.
5141 2017-03-11  Paul Eggert  <eggert@cs.ucla.edu>
5143         gnulib-common.m4: avoid aclocal.m4 bloat
5144         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB):
5145         Hide AM_PROG_AR from aclocal, so that aclocal does not
5146         install irrelevant macro definitions into aclocal.m4.
5148 2017-03-10  Bruno Haible  <bruno@clisp.org>
5150         vma-iter: Let callers know about error.
5151         * lib/vma-iter.h (vma_iterate): Return 'int', not 'void'.
5152         * lib/vma-iter.c (vma_iterate): Return -1 in case of error.
5154 2017-03-05  Bruno Haible  <bruno@clisp.org>
5156         Fix value of LD for 64-bit compilers on AIX.
5157         * m4/lib-ld.m4 (AC_LIB_PROG_LD): For 64-bit compilers on AIX
5158         ("gcc -maix64" and "xlc -q64"), add option -b64 to $LD.
5160 2017-03-04  Paul Eggert  <eggert@cs.ucla.edu>
5162         dtotimespec: simplify
5163         * lib/dtotimespec.c (dtotimespec): Simplify.
5165 2017-03-04  Bruno Haible  <bruno@clisp.org>
5167         test-calloc-gnu: Reenable test also for GCC 7.
5168         * tests/test-calloc-gnu.c (eight): New function.
5169         (main): Don't skip test; use eight() instead.
5171 2017-03-04  Jim Meyering  <meyering@fb.com>
5173         test-calloc-gnu: port to GCC7
5174         * tests/test-calloc-gnu.c (main) [__GNUC__ >= 7]: Skip a test
5175         that attempts to calloc more than SIZE_MAX bytes, because GCC7
5176         and newer would detect that at compilation time.
5178 2017-03-04  Bruno Haible  <bruno@clisp.org>
5180         tests: Avoid compiler warning about uses of null_ptr.
5181         * tests/null-ptr.h: New file.
5182         * tests/test-canonicalize.c: Include null-ptr.h.
5183         (null_ptr): Remove function.
5184         * tests/test-canonicalize-lgpl.c: Likewise.
5185         * tests/test-memmem.c: Likewise.
5186         * tests/test-ptsname_r.c: Likewise.
5187         * modules/canonicalize-tests (Files): Add tests/null-ptr.h.
5188         * modules/canonicalize-lgpl-tests: Likewise.
5189         * modules/memmem-tests: Likewise.
5190         * modules/ptsname_r-tests: Likewise.
5191         Reported by Jim Meyering.
5193 2017-03-03  Bruno Haible  <bruno@clisp.org>
5195         doc: Mention Mac OS X deficiencies regarding semaphores.
5196         * doc/posix-functions/sem_init.texi: Mention status on Mac OS X.
5197         * doc/posix-functions/sem_destroy.texi: Likewise.
5198         * doc/posix-functions/sem_getvalue.texi: Likewise.
5200 2017-03-03  Bruno Haible  <bruno@clisp.org>
5202         lock tests: Fix test failure on Mac OS X (regression from 2017-01-05).
5203         Reported by Assaf Gordon <assafgordon@gmail.com> via
5204         Pádraig Brady <P@draigBrady.com>.
5205         * tests/test-lock.c: On Mac OS X, use named semaphores, not unnamed
5206         semaphores.
5207         (USE_NAMED_SEMAPHORE, USE_UNNAMED_SEMAPHORE): New macros.
5208         (atomic_int_semaphore): New macro.
5210 2017-02-28  Bruno Haible  <bruno@clisp.org>
5212         perror tests: Tweak for z/OS.
5213         Reported by Daniel Richard G. <skunk@iskunk.org>.
5214         * tests/test-perror.sh: Don't fail z/OS style perror output.
5216 2017-02-26  Bruno Haible  <bruno@clisp.org>
5218         nproc: Refactor large function.
5219         * lib/nproc.c (num_processors_ignoring_omp): New function, extracted
5220         from num_processors.
5221         (num_processors): In this function, only deal with OMP.
5223 2017-02-26  Pádraig Brady  <P@draigBrady.com>
5225         nproc: adjust handling of OpenMP environment variables
5226         to match the return value from omp_get_num_threads(), i.e.:
5227          - honor OMP_THREAD_LIMIT without OMP_NUM_THREADS
5228          - Treat 0 as an invalid value and ignore
5229         Also remove the call to omp_get_num_threads() because
5230         it's ineffective without the omp pragmas in place.
5231         * lib/nproc.c (parse_omp_threads): Return 0 if specified,
5232         so that it can be ignored.
5233         (num_processors): Honor OMP_THREAD_LIMIT even without
5234         OMP_NUM_THREADS being set.  Also fix a typo in the environment
5235         variable being checked, from the previous recent commit.
5237 2017-02-26  Pádraig Brady  <P@draigBrady.com>
5239         nproc: support nested OMP_NUM_THREADS, and OMP_THREAD_LIMIT
5240         * lib/nproc.c (parse_omp_threads): A new function refactored
5241         from num_processors() to support parsing both of the
5242         above environment variables.
5243         (num_processors): Prefer using omp_get_num_threads() with [_OPENMP]
5244         to accurately reflect the current OpenMP nesting level.
5245         Also support the OMP_THREAD_LIMIT environment variable
5246         to limit the max value determined from OMP_NUM_THREADS.
5247         * modules/nproc: Depend on minmax header.
5248         Suggested by Oliver Heimlich.
5250 2017-02-25  Bruno Haible  <bruno@clisp.org>
5252         maintainer-makefile: Fix AC_PROG_SED with autoconf cache.
5253         * m4/gnulib-common.m4 (AC_PROG_SED): Fix AC_CACHE_CHECK invocation.
5255 2017-02-24  Paul Eggert  <eggert@cs.ucla.edu>
5257         ftoastr: port to -Wdouble-promotion
5258         Work around -Wdouble-promotion false alarm in recent GCCs.
5259         * lib/ftoastr.c (PROMOTED_FLOAT): New macro.
5260         (ftoastr_snprintf, FTOASTR): Use it.
5262 2017-02-21  Bruno Haible  <bruno@clisp.org>
5264         lock tests: Fix build failure on GNU/Hurd (regression from 2017-01-05).
5265         Reported by Rene Saavedra <rennes@openmailbox.org> in
5266         https://debbugs.gnu.org/cgi/bugreport.cgi?bug=25821 via Paul Eggert.
5267         * lib/glthread/lock.h: On glibc systems without
5268         PTHREAD_RWLOCK_WRITER_NONRECURSIVE_INITIALIZER_NP, use the fallback
5269         implementation of rwlocks.
5270         * lib/glthread/lock.c: Likewise.
5272 2017-02-20  Bruno Haible  <bruno@clisp.org>
5274         lock tests: Fix build failure on z/OS.
5275         Reported by Daniel Richard G. <skunk@iskunk.org>.
5276         * modules/lock-tests (configure.ac): Test for <semaphore.h>.
5277         * tests/test-lock.c (USE_SEMAPHORE): Don't set if <semaphore.h> does not
5278         exist.
5280 2017-02-19  Bruno Haible  <bruno@clisp.org>
5282         havelib: Prefer the search path of /usr/bin/gcc over the one of $CC.
5283         This helps when CC=clang.
5284         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Prefer the search path
5285         of /usr/bin/gcc.
5287         havelib: Support overriding the result of AC_LIB_PREPARE_MULTILIB.
5288         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Use AC_CACHE_CHECK.
5290 2017-02-19  Bruno Haible  <bruno@clisp.org>
5292         gnulib-tool: Avoid conflict of havelib-tests with --single-configure.
5293         * gnulib_tool (func_create_testdir): Avoid havelib-tests when
5294         --with-tests --single-configure is specified.
5296 2017-02-16  Tim Rühsen  <tim.ruehsen@gmx.de>
5298         users.txt: Update links, use HTTPS where possible
5299         * users.txt: Updated to HTTPS where possible,
5300         fixed some links to new locations.
5302 2017-02-16  Bruno Haible  <bruno@clisp.org>
5304         xbinary-io: Fix inlining.
5305         * lib/xbinary-io.c: Set XBINARY_IO_INLINE, not XSETMODE_INLINE.
5307 2017-02-16  Paul Eggert  <eggert@cs.ucla.edu>
5309         xbinary-io: rename from xsetmode
5310         This patch is taken from suggestions by Bruno Haible in:
5311         http://lists.gnu.org/r/bug-gnulib/2017-02/msg00060.html
5312         http://lists.gnu.org/r/bug-gnulib/2017-02/msg00061.html
5313         * lib/binary-io.c (__gl_setmode_check): Set errno to EINVAL,
5314         not ENOTTY, when it is an inappropriate device.
5315         * lib/binary-io.h (SET_BINARY): Resurrect.
5316         * lib/xbinary-io.c: Rename from lib/xsetmode.c.
5317         (xset_binary_mode_error): Rename from xsetmode_error.
5318         * lib/xbinary-io.h: Rename from lib/xsetmode.h.
5319         (xset_binary_mode): Rename from xsetmode.
5320         All uses changed.
5321         * modules/xbinary-io: Rename from modules/xsetmode.
5322         Update file names.
5323         * tests/test-binary-io.sh (tmpfiles): Remove no-longer-used file name.
5324         * NEWS: Update to match revised behavior.
5326 2017-02-15  Paul Eggert  <eggert@cs.ucla.edu>
5328         tests: Adjust to recent SET_BINARY change
5329         * tests/test-binary-io.c (main):
5330         * tests/test-binary-io.sh: Remove test for SET_BINARY.
5331         * tests/test-closein.c, tests/test-fflush2.c, tests/test-ftell.c:
5332         * tests/test-ftello.c, tests/test-nonblocking-pipe-child.c:
5333         * tests/test-yesno.c: Use set_binary_mode, not SET_BINARY.
5335         xsetmode: new module
5336         This is to fix a problem noted by Eric Blake.
5337         Code was using xfreopen to change files to binary mode, but this
5338         fails for stdout when in append mode.  Such code should use
5339         xsetmode instead.
5340         * NEWS: Document incompatible changes to binary-io module.
5341         * lib/binary-io.c (__gl_setmode_check) [__DJGPP__ || __EMX__]:
5342         New function.
5343         * lib/binary-io.h (__gl_setmode): Rename from set_binary_mode.
5344         (set_binary_mode): New function, which also checks for tty.
5345         * lib/xsetmode.c, lib/xsetmode.h, modules/xsetmode: New files.
5347 2017-02-14  Paul Eggert  <eggert@cs.ucla.edu>
5349         headers: fix begin-end typos
5350         * lib/mbfile.h, lib/se-selinux.in.h: Fix typos by replacing
5351         _GL_INLINE_HEADER_BEGIN with _GL_INLINE_HEADER_END.
5353         selinux-h: port to PGI 16.10
5354         * lib/se-selinux.in.h: Don't assume that include_next skips over
5355         duplicate -I DIR options.
5357         argp: port to PGI 16.10
5358         * lib/argp-pin.c (dummy): Declare as needed to make file nonempty.
5360 2017-02-13  Darshit Shah  <darnir@gnu.org>
5362         unicase: Update function protoype to match definition.
5363         * lib/unicase/special-casing.h (gl_unicase_special_lookup): Gperf 3.1
5364         uses 'size_t' as the datatype for the 'len' parameter in the functions
5365         it generates. Update the prototype specified here to match the newly
5366         generated function.
5368 2017-02-12  Bruno Haible  <bruno@clisp.org>
5370         times test: Avoid gcc warnings on Linux/x32.
5371         * tests/test-times.c (main): Really cast printf arguments from clock_t
5372         to 'long int'.
5374 2017-02-12  Paul Eggert  <eggert@cs.ucla.edu>
5376         glob: port better to emscripten
5377         Problem reported by Bruno Haible in:
5378         http://lists.gnu.org/r/bug-gnulib/2017-02/msg00031.html
5379         * lib/glob.c (glob): Don't assume HAVE_GETPWNAM_R || _LIBC.
5381 2017-02-11  Bruno Haible  <bruno@clisp.org>
5383         host-cpu-c-abi: Support for 64-bit AIX, 32-bit armhf on arm64, hppa64.
5384         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): Define also HOST_CPU.
5385         For the x32 ABI on x86_64, set HOST_CPU_C_ABI to 'x86_64-x32' and define
5386         both __x86_64__ and __x86_64_x32__. For the ELFv2 ABI on powerpc64,
5387         define both __powerpc64__ and __powerpc64_elfv2__. Recognize 64-bit
5388         compilation on AIX. Recognize 32-bit compilation on arm64/Linux.
5389         Distinguish hppa64 from hppa.
5391 2017-02-10  Bruno Haible  <bruno@clisp.org>
5393         search: Don't assume that tsearch() exists if 'VISIT' is defined.
5394         * m4/search_h.m4 (gl_SEARCH_H): Determine HAVE_TYPE_VISIT.
5395         * modules/search (Makefile.am): Substitute HAVE_TYPE_VISIT.
5396         * lib/search.in.h (VISIT): Define if HAVE_TYPE_VISIT is 0.
5398 2017-02-09  Bruno Haible  <bruno@clisp.org>
5400         doc: Don't mention obsolete AC_LIBTOOL_WIN32_DLL macro.
5401         * doc/gnulib.texi (Libtool and Windows): Recommend
5402         LT_INIT([win32-dll]) instead of AC_LIBTOOL_WIN32_DLL.
5403         Reported by Reuben Thomas <rrt@sc3d.org>.
5405 2017-02-08  Paul Eggert  <eggert@cs.ucla.edu>
5407         stddef-tests: port to SIZE_MAX <= INT_MAX
5408         * tests/test-stddef.c: Include <limits.h>, for INT_MAX.
5409         Do not assume that INT_MAX < SIZE_MAX.
5411 2017-02-01  Bruno Haible  <bruno@clisp.org>
5413         lock tests: Fix link error.
5414         * modules/lock-tests (test_rwlock1_LDADD): Add @YIELD_LIB@.
5415         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
5417 2017-01-31  Bruno Haible  <bruno@clisp.org>
5419         lock: Fix link error (regression from 2017-01-05).
5420         * lib/glthread/lock.h [USE_POSIX_THREADS_WEAK]: Declare also
5421         pthread_rwlockattr_init, pthread_rwlockattr_setkind_np,
5422         pthread_rwlockattr_destroy weak.
5423         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
5425 2017-01-30  Paul Eggert  <eggert@cs.ucla.edu>
5427         Port to PGI 16.10 x86-64
5428         This patch fixes one real bug in gl_anylinked_list2.h, along with
5429         some minor glitches that are not bugs.  It does not silence PGI’s
5430         thousands of bogus warnings when compiling test-intprops.c.
5431         Fortunately, the warnings do not cause a failure.
5432         * lib/c-ctype.h (_C_CTYPE_LOWER_A_THRU_F_N, _C_CTYPE_LOWER_N):
5433         Rename parameter to avoid PGI warning about ‘#define f(n) 'n'’.
5434         My goodness, PGI goes back a long ways - this predates C89!
5435         * lib/gl_anylinked_list2.h (ASYNCSAFE): Fix bug caught by PGI.
5436         For example, ASYNCSAFE (const void *) should expand to
5437         ‘const void *volatile’, not to ‘volatile const void *’.
5438         * lib/spawn.in.h (POSIX_SPAWN_USEVFORK): Don't define if already defined.
5439         * lib/verify.h (verify) [!__GNUC__]:
5440         Use shorter albeit meaningless string to bypass silly compiler limits.
5441         * tests/infinity.h (Infinityf, Infinityd, Infinityl) [__PGI]:
5442         * tests/nan.h (NaNf, NaNd, NaNl):
5443         Use static functions to avoid misguided compiler diagnostics.
5444         Is there some reason we don’t use static functions on all platforms?
5446 2017-01-20  Paul Eggert  <eggert@cs.ucla.edu>
5448         parse-datetime: handle timezones reentrantly
5449         This API change was prompted by a report by Pádraig Brady in:
5450         https://bug.debian.org/851934#10
5451         To help fix the bug, make parse_datetime2 more reentrant.
5452         * NEWS: Document this incompatible change.
5453         * lib/parse-datetime.h, lib/parse-datetime.y (parse_datetime2):
5454         Add two arguments, the timezone and the timezone name.
5455         All callers changed.  If TZ="..." is specified, use it for
5456         calculating defaults.
5457         * lib/parse-datetime.y: Don't include xalloc.h or use xmalloc, as
5458         this code should be usable in a library.
5459         (mktime_ok, get_effective_timezone):
5460         Accept timezone arg too.  All callers changed.
5461         (get_tz): Remove.
5462         (get_effective_timezone): Check for failures.
5464 2017-01-20  Eric Blake  <eblake@redhat.com>
5466         localename: port to cygwin 2.6
5467         * lib/localename.c (gl_locale_name_thread_unsafe): Add clause for
5468         Cygwin.
5469         * modules/localename (Depends-on): Add extensions, since
5470         NL_LOCALE_NAME() is not visible without it.
5472 2017-01-17  Pádraig Brady  <P@draigBrady.com>
5474         parse-datetime: fix dependence on AC_PROG_SED
5475         * modules/parse-datetime: Use `sed` directly like all other modules.
5476         Reported by J William Piggott
5478 2017-01-16  Paul Eggert  <eggert@cs.ucla.edu>
5480         intprops: update doc URLs
5481         * doc/intprops.texi (Integer Range Overflow): Update URLs.
5483 2017-01-16  Bruno Haible  <bruno@clisp.org>
5485         host-cpu-c-abi: Add support for armhf, arm64, x32, s390x.
5486         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): Require gl_C_ASM. On x86_64
5487         systems, distinguish x86_64 and x32. On arm systems, distinguish arm,
5488         armhf, arm64, and no longer distinguish arm and armel. On s390x systems,
5489         distinguish s390 and s390x.
5490         * modules/host-cpu-c-abi (Files): Add m4/asm-underscore.m4.
5491         * NEWS: Mention the change regarding 'armel'.
5493 2017-01-15  Paul Eggert  <eggert@cs.ucla.edu>
5495         localeinfo: case_folded_counterparts and WEOF
5496         * NEWS: Document this.
5497         * lib/localeinfo.c (case_folded_counterparts):
5498         First arg is now wint_t, not wchar_t.  This generalizes the
5499         function to also work on WEOF, where it returns 0.
5501         dfa: port to gcc -fsanitize=undefined
5502         * lib/dfa.c (copy): Don’t pass NULL with size 0 to memcpy,
5503         as this runs afoul of gcc -fsanitize=undefined.
5505 2017-01-14  Paul Eggert  <eggert@cs.ucla.edu>
5507         strftime: %z is -00 if unknown
5508         * lib/strftime.c (DO_TZ_OFFSET): Omit arg 'negative'; it's now
5509         the caller's responsibility to set 'negative_number'.  All uses changed.
5510         (__strftime_internal): Put '-' before a zero UTC offset if the time
5511         zone abbreviation starts with "-", which is the recently-introduced
5512         tzdb convention for an unknown UTC offset that is arbitrarily set to 0.
5513         * tests/test-strftime.c: Test for this.
5515 2017-01-10  Paul Eggert  <eggert@cs.ucla.edu>
5517         dfa: port to older GCC
5518         Problem reported by Assaf Gordon in:
5519         http://lists.gnu.org/r/bug-gnulib/2017-01/msg00103.html
5520         * modules/c99: New module.  This merely attempts to use the latest
5521         C version, which should be enough to solve this particular problem.
5522         The idea is to document which Gnulib modules assume C99 or later.
5523         * modules/dfa (Depends-on): Add it.
5525 2017-01-10  Bruno Haible  <bruno@clisp.org>
5527         Update DEPENDENCIES.
5528         * DEPENDENCIES: List only https URLs. Update recommended version for
5529         autoconf, automake, gperf.
5531 2017-01-10  Jim Meyering  <meyering@fb.com>
5533         maint.mk: enforce spelling of "timestamp" (i.e., no space)
5534         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Also
5535         disallow /\btime\s+stamps?\b/.  Prefer "timestamp".
5537 2017-01-10  Paul Eggert  <eggert@cs.ucla.edu>
5539         dfa: minor simplification with emptyset
5540         * lib/dfa.c (build_state): Simplify by using emptyset.
5542 2017-01-09  Paul Eggert  <eggert@cs.ucla.edu>
5544         dfa: shrink constraints from 4 bits to 3
5545         * lib/dfa.c (newline_constraint, letter_constraint)
5546         (other_constraint, prev_newline_dependent)
5547         (prev_letter_dependent, NO_CONSTRAINT, BEGLINE_CONSTRAINT)
5548         (ENDLINE_CONSTRAINT, BEGWORD_CONSTRAINT, ENDWORD_CONSTRAINT)
5549         (LIMWORD_CONSTRAINT, NOTLIMWORD_CONSTRAINT):
5550         Constraints need only 3 bits, not 4.  Using smaller integers
5551         shrinks the code a bit and makes grep a tad faster on x86-64.
5553         dfa: omit unnecessary ptrdiff_t check
5554         * lib/dfa.c (alloc_position_set): Do not worry about ptrdiff_t
5555         overflow, since xnmalloc does that now.
5557         dfa: omit unnecessary allocation
5558         * lib/dfa.c (dfaanalyze): Do not allocate follow set, since
5559         an all-zero follow set works just fine.
5561         dfa: omit unused local
5562         * lib/dfa.c (build_state): Fix up recent change.
5564         maint: remove stray .texi files
5565         Although these were superseded by other files like
5566         doc/posix-functions/ctime.texi, the old files were not removed.
5567         * doc/ctime.texi, doc/inet_ntoa.texi: Remove.
5569 2017-01-08  Paul Eggert  <eggert@cs.ucla.edu>
5571         getprogname: fix port to IRIX
5572         * lib/getprogname.c (getprogname) [__sgi]:
5573         Don't dump core if malloc returns NULL.
5575         dfa: fix reallocation bug when matching newlines
5576         Problem reported for sed by S. Gilles (Bug#25390).
5577         * lib/dfa.c (realloc_trans_if_necessary): Move earlier.
5578         (dfastate): Reallocate before moving any newline transition ...
5579         (build_state): ... instead of reallocating here, where it is too late.
5581 2017-01-07  Tim Rühsen  <tim.ruehsen@gmx.de>  (tiny change)
5583         Avoid -Wundef warning about undefined WINDOWS_SOCKETS.
5584         * lib/sockets.h: Test if WINDOWS_SOCKETS is defined.
5586 2017-01-07  Tim Rühsen  <tim.ruehsen@gmx.de>  (tiny change)
5588         Avoid -Wundef warning about undefined __USE_FILE_OFFSET64.
5589         * lib/glob-libc.h: Test if __USE_FILE_OFFSET64 is defined.
5591 2017-01-07  Bruno Haible  <bruno@clisp.org>
5593         stdioext: Port to Minix 3.2 and newer.
5594         * lib/stdio-impl.h: Treat __minix like the newest NetBSD.
5595         * lib/fseeko.c (fseeko): Likewise.
5596         Reported by Nelson Beebe via Paul Eggert.
5598 2017-01-06  Paul Eggert  <eggert@cs.ucla.edu>
5600         getprogname: port to IRIX
5601         * lib/getprogname.c (getprogname): Port to IRIX.
5602         Based on an idea by Bastien Roucariès at:
5603         http://lists.gnu.org/r/bug-gnulib/2010-12/msg00096.html
5604         via code from Bruno Haible at:
5605         https://lists.gnu.org/r/bug-gnulib/2010-12/msg00249.html
5607         localename-tests: port to NetBSD 7
5608         Problem reported by Nelson H. F. Beebe.
5609         * tests/test-localename.c:
5610         Test newlocale and uselocale only if both exist.
5612         glob, intprops, xalloc: work around Clang bug
5613         Work around LLVM bug 16404, which is still not fixed.
5614         https://llvm.org/bugs/show_bug.cgi?id=16404
5615         Problem reported by Nelson H. F. Beebe.
5616         * lib/glob.c, lib/intprops.h, lib/xalloc-oversized.h (__has_builtin):
5617         Remove.
5618         * lib/glob.c (size_add_wrapv):
5619         * lib/intprops.h (_GL_HAS_BUILTIN_OVERFLOW, _GL_HAS_BUILTIN_OVERFLOW_P):
5620         * lib/xalloc-oversized.h (xalloc_oversized):
5621         Do not use overflow builtins if Clang.
5623         dfa: fix 'return' typo
5624         Problem reported by Nelson H. F. Beebe.
5625         * lib/dfa.c (merge): Fix typo that Sun compilers rejected.
5627 2017-01-05  Pádraig Brady  <P@draigBrady.com>
5629         parse-datetime: fix generated paths for coverage files
5630         * modules/parse-datetime: Adjust the paths for parse-datetime.y
5631         within parse-datetime.c, so that gcc generates appropriate .gcno
5632         files, allowing lcov to proceed without error.  Previously it
5633         would error trying to find "lib/lib/parse-datetime.y".
5635 2017-01-05  Pádraig Brady  <P@draigBrady.com>
5637         maint.mk: support parallel execution of coverage
5638         * top/maint.mk (coverage): Run dependencies serially,
5639         thus supporting parallel processing of each one,
5640         particularly build-coverage, which builds and runs tests.
5642 2017-01-05  Bruno Haible  <bruno@clisp.org>
5644         lock tests: Prefer semaphore over mutex.
5645         * tests/test-lock.c (USE_SEMAPHORE): New constant.
5646         (struct atomic_int, init_atomic_int, get_atomic_int_value,
5647         set_atomic_int_value) [USE_SEMAPHORE]: Define using a POSIX semaphore.
5648         Suggested by Torvald Riegel <triegel@redhat.com>.
5650 2017-01-05  Bruno Haible  <bruno@clisp.org>
5652         lock: Provide guarantee to avoid writer starvation for rwlocks.
5653         The rationale is: 1) Read-preferring read-write locks are prone to
5654         writer starvation if the number of reader threads multiplied by the
5655         percentage of time they have the lock held is too high. 2) Write-
5656         preferring read-write locks are the only reliable way to avoid this.
5657         3) There have been reports of 'test-lock' hanging on glibc systems
5658         http://lists.gnu.org/r/bug-gnulib/2017-01/msg00009.html,
5659         and glibc indeed implements read-preferring rwlocks by default, see
5660         http://man7.org/linux/man-pages/man3/pthread_rwlockattr_setkind_np.3.html
5661         and https://sourceware.org/bugzilla/show_bug.cgi?id=13701 .
5662         * m4/pthread_rwlock_rdlock.m4: New file.
5663         * m4/lock.m4 (gl_LOCK): Invoke gl_PTHREAD_RWLOCK_RDLOCK_PREFER_WRITER.
5664         * lib/glthread/lock.h [USE_POSIX_THREADS]: Test
5665         HAVE_PTHREAD_RWLOCK_RDLOCK_PREFER_WRITER. Use a different implementation
5666         of rwlock initialization on glibc systems without
5667         HAVE_PTHREAD_RWLOCK_RDLOCK_PREFER_WRITER. Use a different implementation
5668         of rwlocks altogether on non-glibc systems without
5669         HAVE_PTHREAD_RWLOCK_RDLOCK_PREFER_WRITER.
5670         [USE_PTH_THREADS]: Use a different implementation of rwlocks altogether.
5671         * lib/glthread/lock.c [USE_POSIX_THREADS]
5672         (glthread_rwlock_init_for_glibc): New function.
5673         [USE_POSIX_THREADS] (glthread_rwlock_rdlock_multithreaded): Update
5674         comment.
5675         [USE_PTH_THREADS]: New implementation of rwlocks.
5676         [USE_WINDOWS_THREADS] (glthread_rwlock_rdlock_func): Prefer writers over
5677         readers.
5678         * modules/lock (Files): Add m4/pthread_rwlock_rdlock.m4.
5679         (Depends-on): Add 'extensions'.
5680         * tests/test-rwlock1.c: New file.
5681         * lock-tests (Files): Add it.
5682         (Depends-on): Add usleep.
5683         (Makefile.am): Add test-rwlock1 to the tests.
5685 2017-01-05  Bruno Haible  <bruno@clisp.org>
5687         thread: Fix pth port.
5688         * lib/glthread/thread.h (pth_init): Declare weak.
5689         (glthread_create, glthread_sigmask, glthread_join, gl_thread_self,
5690         gl_thread_exit): Make sure Pth is initialized before invoking any Pth
5691         function.
5693 2017-01-04  Assaf Gordon  <assafgordon@gmail.com>
5695         parse-datetime: fix debug message on lone year number
5696         Input dates such as
5697           date -d "Apr 11 22:59:00 2011"
5698         are parsed as date (Apr 11, with default year 2016), then time, then a
5699         number (2011). Based on the combination of previously seen tokens,
5700         'digits_to_date_time' determines 2011 to be a year value.
5701         This fixes the debug messages to correctly show the updated year.
5702         Before:
5703             $ date --debug -d 'Apr 11 22:59:00 2011'
5704             date: parsed date part: (Y-M-D) 2016-04-11
5705             date: parsed time part: 22:59:00
5706             date: parsed number part: today/this/now
5707         After:
5708             $ ./src/date --debug -d 'Apr 11 22:59:00 2011'
5709             date: parsed date part: (Y-M-D) 2016-04-11
5710             date: parsed time part: 22:59:00
5711             date: parsed number part: year: 2011
5712         * lib/parse-datetime.y (struct parser_control): Add 'year_seen',
5713         'debug_year_seen' member fields.
5714         (digits_to_date_time): Update 'year_seen' as needed.
5715         (debug_print_current_time): Inform about year updates.
5716         (parse_datetime2): Initialize year_seen,debug_year_seen member fields.
5718         parse-datetime: fix local timezone debug messages
5719         "Local timezones" are strings that affect only DST relative to the
5720         default timezone. The debug messages in parse-datetime.y printed
5721         wrong information when encountering local timezones.
5722         Examples:
5723         Here EET/EEST are time zones ('zone' token, with values +02:00/+03:00):
5724              TZ=Asia/Tokyo ./src/date --debug -d '2011-12-11 EET'
5725              TZ=Asia/Tokyo ./src/date --debug -d '2011-06-11 EEST'
5726         When the default timezone relates to the zone strings, EET/EEST are
5727         parsed as local timezones (tLOCAL_ZONE), and only change the DST
5728         value (0/1, respectively):
5729              TZ=Europe/Helsinki ./src/date --debug -d '2011-12-11 EET'
5730              TZ=Europe/Helsinki ./src/date --debug -d '2011-06-11 EEST'
5731         * lib/parse-datetime.y (debug_print_current_time): If local timezone
5732         was seen, inform about DST change, don't print actual timezone.
5733         (debug_strfdatetime): If local timezone was seen, use default timezone
5734         (and adjust as needed) instead of using incorrect timezone.
5735         (parse_datetime2): Use correct time-zone source string, and adjust
5736         default timezone as needed.
5738         parse-datetime: add debug warning about DST changes
5739         Incorrect date arithmetic due to daylight saving time (DST) are a
5740         common (false) bug report in coreutils.
5741         Detect two such cases and print a warning:
5742         1. year/month/day adjustments (performed on 'struct tm'),
5743            where 'mktime' returns a different isdst value.
5744         2. hour/minute/seconds/ns adjustments (performed on 'time_t'),
5745            where the result of 'localtime(3)' on the value will return a
5746            different isdst value.
5747         Note: DST changes could be harmless or unnoticeable.
5748         Examples (with 'TZ=America/New_York'):
5749         Unnoticeable: result is 2016-Dec-14
5750            $ date -d '2016-06-15 EDT + 6 months' +%b
5751            Dec
5752         Unnoticeable: result is 2016-Dec-15 11:00:00
5753            $ date -d '2016-06-15 12:00:00 EDT + 6 months' +%F
5754            2016-12-15
5755         This is unexpected:
5756            $ date -d '2016-06-01 EDT + 6 months' +%F
5757            2016-11-30
5758         The new debug warnings will show:
5759            $ ./src/date --debug -d '2016-06-01 EDT + 6 months' +%F
5760            ...
5761            date: warning: daylight saving time changed after date adjustment
5762            ...
5763         * lib/parse-datetime.y (parse_datetime2): Detect DST changes, and
5764         print an appropriate warning message.
5766         parse-datetime: add debug warning about date arithmetic
5767         Date arithmetic are done directly on the fields of 'struct tm',
5768         which can result in invalid dates. Normalization with 'mktime(3)'
5769         will then produce a different date - which might cause unexpected
5770         results.
5771         Examples:
5772           '2016-10-31 - 1 month' => 2016-09-31 normalized to 2016-10-01.
5773           '2016-02-29 + 1 year'  => 2017-02-29 normalized to 2017-03-01.
5774         Note that date normalization is not inherently wrong and not rejected,
5775         as it has legitimate uses:
5776           '2016-12-29 + 5 days' => 2016-12-34 noramlized to 2017-01-03.
5777         If the user asked to adjust months but 'mday' changed,
5778         or user asked to adjust years but 'month' changed - warn about it.
5779             $ ./src/date --debug -d '2016-10-31 - 1 month'
5780             ...
5781             date: warning: when adding relative months/years, \
5782                            it is recommended to specify the 15th of the month
5783             ...
5784             date: warning: month/year adjustment resulted in shifted dates:
5785             date:      adjusted Y M D: 2016 09 31
5786             date:    normalized Y M D: 2010 10 01
5787             ...
5788         * lib/parse-datetime.y (parse_datetime2): Detect such cases and print
5789         a warning message. Improve recommendation of when to use 15 of the
5790         month or noon for date arithmetic.
5792         parse-datetime: fix debug message of relative part after timezone
5793         Relative part (e.g '+8 days') after a timezone string was not
5794         reported (was only reported after a timezone number). Due to the
5795         parser's structure, timezone strings with numbers were handled
5796         separately.
5797         before:
5798              # Timezone number + relative part: OK
5799              $ ./src/date --debug +%F -d '2013-10-30 00:00:00 +00:00 -8 days'
5800              ...
5801              date: parsed relative part: -8 day(s)
5802              # Timezone string + relative part: missing
5803              $ ./src/date --debug +%F -d '2013-10-30 00:00:00 UTC -8 days'
5804              [ missing message ]
5805         After: messages are printed in both cases.
5806         * lib/parse-datetime.y ('zone' token): Call debug_print_relative_time.
5808         parse-datetime: fix incorrect debug message on lone number
5809         A lone number is an absolute value, not a relative time part.
5810         before:
5811            $ date --debug -d '20130101'
5812            date: parsed number part: today/this/now
5813         After:
5814            $ ./src/date --debug -d '20130101'
5815            date: parsed number part: (Y-M-D) 2013-01-01
5816         * lib/parse-datetime.y ('item'/'number' tokens): Call
5817         'debug_print_current_time' instead of 'debug_print_relative_time'.
5819 2017-01-02  Paul Eggert  <eggert@cs.ucla.edu>
5821         doc: modernize for C11 etc.
5822         * doc/gnulib-readme.texi (Portability guidelines): Modernize a bit
5823         for C11, MinGW, etc.  This responds to Paul Smith's question in:
5824         http://lists.gnu.org/r/bug-gnulib/2017-01/msg00014.html
5826         dfa: prefer functions to FETCH_WC macro
5827         * lib/dfa.c (FETCH_WC): Remove, replacing with ...
5828         (fetch_wc, bracket_fetch_wc): ... new functions.  These store the
5829         wint_t result into DFA->lex.wctok instead of to a separate arg.
5830         All callers changed.  Move more local decls closer to where
5831         they're used.
5833         dfa: narrow more local var scopes
5834         * lib/dfa.c: Move more local decls to be more local.
5836         dfa: remove duplicate assignment
5837         Problem reported by Bruno Haible in:
5838         http://lists.gnu.org/r/bug-gnulib/2017-01/msg00007.html
5839         * lib/dfa.c (parse_bracket_exp): Simplify.
5841 2017-01-01  Paul Eggert  <eggert@cs.ucla.edu>
5843         dfa: simplify constraint-dependency checking
5844         * lib/dfa.c (prev_newline_constraint, prev_letter_constraint)
5845         (prev_other_constraint): Remove.
5846         (prev_newline_dependent, prev_letter_dependent):
5847         Simplify, to avoid an unnecessary bitwise AND operation.
5849         dfa: prefer functions and constants to macros
5850         * lib/dfa.c: Prefer constants to macros where either will do.
5851         (streq, isasciidigit, newline_constraint)
5852         (letter_constraint, other_constraint, succeeds_in_context)
5853         (prev_newline_constraint, prev_letter_constraint)
5854         (prev_other_constraint, prev_newline_dependent)
5855         (prev_letter_dependent, accepting, accepts_in_context):
5856         Now static functions instead of function-like macros.
5857         Use lower-case names accordingly.  All uses changed.
5859         dfa: narrow more local var scopes
5860         * lib/dfa.c: Move some more local decls down to nearer where
5861         they're needed.
5863 2016-12-31  Jim Meyering  <meyering@fb.com>
5865         dfa: narrow the scope of many local variables
5866         * lib/dfa.c: Now that we are no longer constrained to c89, move
5867         declarations of many variables (often indices) "down" into the
5868         scope(s) where used or to the point of definition.  This is a
5869         no-semantic-change diff.
5871 2017-01-01  Paul Eggert  <eggert@cs.ucla.edu>
5873         version-etc: new year
5874         * build-aux/gendocs.sh (version):
5875         * doc/gendocs_template:
5876         * doc/gendocs_template_min:
5877         * doc/gnulib.texi:
5878         * lib/version-etc.c (COPYRIGHT_YEAR):
5879         Update copyright dates by hand in templates and the like.
5880         * all files: Run 'make update-copyright'.
5882 2016-12-31  Eric Blake  <eblake@redhat.com>
5884         do-release-commit-and-tag: avoid shell syntax error
5885         * build-aux/do-release-commit-and-tag (curr_br): $branch can
5886         contain spaces when rebasing.
5888         maint.mk: hoist gnulib_dir definition earlier
5889         * top/maint.mk (gnulib_dir): Move near top of file.
5891 2016-12-31  Jim Meyering  <meyering@fb.com>
5893         maint.mk: do not always evaluate intprops-related shell
5894         * top/maint.mk (_intprops_names): Change := to just "=" to avoid
5895         using gnulib_dir undefined (gnulib_dir is defined later in the
5896         file, which will be fixed separately), and besides, there is no
5897         need to incur the cost of this shell invocation for every single
5898         use of this .mk file.  Reported by Eric Blake in
5899         https://lists.gnu.org/r/bug-gnulib/2016-12/msg00137.html
5901 2016-12-30  Jim Meyering  <meyering@fb.com>
5903         maint.mk: improve sc_prohibit_intprops_without_use
5904         * top/maint.mk (_intprops_names): Don't hard-code the list of
5905         symbol names.  Instead, derive it on the fly.
5907 2016-12-30  Paul Eggert  <eggert@cs.ucla.edu>
5909         dfa: shorten sbit, success
5910         * lib/dfa.c (struct regex_syntax.sbit):
5911         (struct dfa.success): Use char, not int, for array elements, since
5912         they are all in the range 0..7.
5914         dfa: simplify multibyte_prop etc.
5915         This follows up on a change made when dfa.c was in grep, namely grep
5916         commit c797046c7c13c2647182b919a79a4c5b4ecf82b1
5917         dated 2015-08-12 07:35:03 -0700, which removed unused multibyte support.
5918         That earlier simplification allows for some more simplification
5919         and trimming down here.
5920         * lib/dfa.c (struct mb_char_classes): New member nchars_alloc.
5921         (struct lexer_state): New mamber brack.
5922         (struct dfa, addtok_mb): multibyte_prop elements are now char, not int,
5923         since they must be in the range 0..3 now.
5924         Remove members mbcsets, nmbcsets, mbcsets_alloc, since
5925         the brack member now supersedes them.
5926         (parse_bracket_exp): Update dfa->lex.brack instead of dfa->mbcsets.
5927         (addtok): Use dfa->lex.brack instead of dfa->mbcsets.
5928         (dfaparse): Remove unnecessary initializations of already-0 storage.
5929         (free_mbdata): Free d->lex.brack.chars instead of d->mbcsets.
5930         (dfassbuild): No need to clear sup->mbcsets.
5932         dfa: minor performance tweak
5933         * lib/dfa.c (setbit_wc): Test < 0, not == EOF.
5935         dfa: wrap charclass inside a struct
5936         On my platform (gcc Ubuntu 5.4.0-6ubuntu1~16.04.4 x86-64,
5937         en_US.utf8 locale) this makes 'grep -Fi -f list.txt list.txt >out'
5938         about 5% faster, where list.txt is generated by 'aspell dump
5939         master | head -n 100000 >list.txt'.  See Bug#22239.
5940         * lib/dfa.c (charclass): Wrap inside a struct.  All uses changed.
5941         (CHARCLASS_INIT, tstbit, setbit, clrbit, zeroset, fillset, notset)
5942         (equal, emptyset, charclass_index, setbit_wc, setbit_case_fold_c):
5943         Adjust to this, e.g., by using charclass * rather than charclass.
5944         All callers changed as needed.
5945         (copyset): Remove.  All uses changed to simple assignment.
5946         (parse_bracket_exp): Use zeroset instead of memset.
5948 2016-12-30  Jim Meyering  <meyering@fb.com>
5950         maint.mk: update list of intprops.h symbol names
5951         * top/maint.mk (_intprops_names): Regenerate the list of symbol names.
5952         This avoids a false failure of the sc_prohibit_intprops_without_use
5953         rule in grep.
5955 2016-12-29  Eric Blake  <eblake@redhat.com>
5957         getopt: fix parallel test failure
5958         * tests/test-getopt-posix.c (TEST_GETOPT_TMP_NAME): Set name.
5959         * tests/test-getopt-gnu.c (TEST_GETOPT_TMP_NAME): Likewise.
5960         * tests/test-getopt-main.h (main): Use different file names
5961         in case test-getopt-gnu and test-getopt-posix run in parallel.
5963 2016-12-29  Paul Eggert  <eggert@cs.ucla.edu>
5965         xalloc: x2nrealloc check for ptrdiff_t overflow
5966         * lib/xalloc.h (x2nrealloc): Check for ptrdiff_t overflow, too.
5967         * modules/xalloc, modules/xvasprintf (Depends-on): Add stdint.
5969 2016-12-24  Bruno Haible  <bruno@clisp.org>
5971         lock test: Fix performance problem on multi-core machines.
5972         * tests/test-lock.c (USE_VOLATILE): New macro.
5973         (struct atomic_int): New type.
5974         (init_atomic_int, get_atomic_int_value, set_atomic_int_value): New
5975         functions.
5976         (lock_checker_done, rwlock_checker_done, reclock_checker_done): Define
5977         as 'struct atomic_int'.
5978         (lock_checker_thread, test_lock, rwlock_checker_thread, test_rwlock,
5979         reclock_checker_thread, test_recursive_lock): Use the new functions.
5980         Reported by Eric Blake in
5981         https://www.redhat.com/archives/libvir-list/2012-March/msg00854.html
5982         and by Pádraig Brady in
5983         http://lists.gnu.org/r/bug-gnulib/2016-12/msg00117.html.
5985 2016-12-19  Bruno Haible  <bruno@clisp.org>
5987         vma-iter: Fix endless loop on 64-bit Windows.
5988         * lib/vma-iter.c (vma_iterate): On Windows, use 'uintptr_t' instead of
5989         'unsigned long'.
5991 2016-12-19  Bruno Haible  <bruno@clisp.org>
5993         stdint: Fix WINT_MAX to match the gnulib provided wint_t on minw.
5994         * m4/wint_t.m4 (gt_TYPE_WINT_T): Define GNULIB_OVERRIDES_WINT_T here.
5995         * m4/stdint.m4 (gl_STDINT_H): Don't define GNULIB_OVERRIDES_WINT_T.
5996         Invoke gt_TYPE_WINT_T instead.
5997         (gl_STDINT_TYPE_PROPERTIES): Test GNULIB_OVERRIDES_WINT_T.
5998         * modules/stdint (Files): Add m4/wint_t.m4.
5999         * modules/wchar (Makefile.am): Substitute GNULIB_OVERRIDES_WINT_T.
6000         * modules/wctype-h (Makefile.am): Likewise.
6001         * lib/wchar.in.h (wint_t): Override if GNULIB_OVERRIDES_WINT_T is set,
6002         not only on MSVC.
6003         * lib/wctype.in.h (wint_t): Likewise.
6005 2016-12-19  Paul Eggert  <eggert@cs.ucla.edu>
6007         getopt-posix-tests: fix Makefile typo
6008         * modules/getopt-posix-tests (test_getopt_posix_LDADD):
6009         Fix typo: the last ‘_’ was missing in the name.
6010         I suspect that the typo explains this build failure:
6011         https://buildfarm.opencsw.org/buildbot/builders/ggrep-solaris10-sparc/builds/39
6012         although I can’t reproduce the problem on Solaris 10 sparc.
6014 2016-12-18  Paul Eggert  <eggert@cs.ucla.edu>
6016         dfa: improve worst-case 'replace' performance
6017         See my note in Bug#22357#71.
6018         * lib/dfa.c (insert, delete): Rework to avoid duplicate test.
6019         (merge_constrained): New function, which is like
6020         the old 'merge' function, except with a new argument C2.
6021         Simplify the body by avoiding the need for different sections
6022         of code depending on whether one input is exhausted.
6023         (merge): Use the new function.
6024         (delete): Return the constraint of the deleted position,
6025         not the entire position.  Caller changed.
6026         (replace): Change from O(N*(N + log N)) to O(N log N) algorithm.
6028 2016-12-18  Norihiro Tanaka  <noritnk@kcn.ne.jp>
6030         dfa: performance improvement for removal of epsilon closure
6031         See Bug#22357#32.
6032         * lib/dfa.c (delete): Use binary search to find deleted index.
6033         (replace): New function.  It replaces a position with the followed set.
6034         (epsclosure): Replace it with a new algorithm.  Update caller.
6036 2016-12-18  Bruno Haible  <bruno@clisp.org>
6038         Split tests for getopt-posix and getopt-gnu.
6039         * tests/test-getopt-posix.c: New file.
6040         * tests/test-getopt-gnu.c: New file, with code from test-getopt.c.
6041         * tests/test-getopt-main.h: Renamed from tests/test-getopt.c. Remove
6042         stuff moved to test-getopt-gnu.c. Test TEST_GETOPT_GNU instead of
6043         GNULIB_TEST_GETOPT_GNU.
6044         * modules/getopt-posix-tests (Files): Add test-getopt-posix.c,
6045         test-getopt-main.h. Remove test-getopt.c, test-getopt_long.h.
6046         (Makefile.am): Test test-getopt-posix instead of test-getopt.
6047         * modules/getopt-gnu-tests: New file.
6048         * modules/getopt-gnu (configure.ac): Don't define GNULIB_TEST_GETOPT_GNU.
6050 2016-12-18  Bruno Haible  <bruno@clisp.org>
6052         posix-modules: Add options for specific platforms.
6053         * posix-modules (func_usage): Document options --for-mingw, --for-msvc.
6054         (exclude_for_mingw, exclude_for_msvc, exclude): New variables.
6055         Invoke func_tmpdir. Filter out the excludes.
6057 2016-12-18  Bruno Haible  <bruno@clisp.org>
6059         getopt: Fix link error for users of getopt() in <unistd.h>.
6060         * lib/getopt.in.h (getopt etc.): Do the macro definitions also when
6061         __need_getopt is defined. Undefine all macros before defining them.
6062         * modules/getopt (Include): Clarify that including <unistd.h> is also
6063         OK.
6064         * tests/test-getopt.c: Add comment.
6066 2016-12-17  Bruno Haible  <bruno@clisp.org>
6068         getaddrinfo tests: Avoid compilation error on MSVC.
6069         * tests/test-getaddrinfo.c: Don't check the prototypes of freeaddrinfo,
6070         getaddrinfo on native Windows.
6072 2016-12-17  Bruno Haible  <bruno@clisp.org>
6074         getlogin, getlogin_r: Fix link errors on MSVC.
6075         * m4/getlogin.m4 (gl_LIB_GETLOGIN): New macro.
6076         * modules/getlogin (configure.ac): Require gl_LIB_GETLOGIN.
6077         (Link): New section.
6078         * modules/getlogin_r (Files): Add m4/getlogin.m4.
6079         (configure.ac): Require gl_LIB_GETLOGIN.
6080         (Link): New section.
6081         * NEWS: Mention the new link requirements.
6082         * modules/getlogin-tests (test_getlogin_LDADD): New variable.
6083         * modules/getlogin_r-tests (test_getlogin_r_LDADD): New variable.
6085 2016-12-17  Bruno Haible  <bruno@clisp.org>
6087         Un-deprecate the 'progname' module.
6088         * NEWS: Describe the appropriate use-cases of 'progname' versus
6089         'getprogname'. Based on discussion summary at
6090         http://lists.gnu.org/r/bug-gnulib/2016-10/msg00105.html
6092 2016-12-17  Bruno Haible  <bruno@clisp.org>
6094         Reorganize NEWS a bit.
6095         * NEWS: Move some not so important changes away from section
6096         "Important Notes".
6098 2016-12-17  Bruno Haible  <bruno@clisp.org>
6100         tanhf: Avoid redefinition error on MSVC.
6101         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_TANHF.
6102         * m4/tanhf.m4 (gl_FUNC_TANHF): Set REPLACE_TANHF to 1 if the function
6103         may be defined as an inline function.
6104         * modules/math (Makefile.am): Substitute REPLACE_TANHF.
6105         * lib/math.in.h (tanhf): Override if REPLACE_TANHF is 1.
6107 2016-12-17  Bruno Haible  <bruno@clisp.org>
6109         tanf: Avoid redefinition error on MSVC.
6110         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_TANF.
6111         * m4/tanf.m4 (gl_FUNC_TANF): Set REPLACE_TANF to 1 if the function
6112         may be defined as an inline function.
6113         * modules/math (Makefile.am): Substitute REPLACE_TANF.
6114         * lib/math.in.h (tanf): Override if REPLACE_TANF is 1.
6116 2016-12-17  Bruno Haible  <bruno@clisp.org>
6118         sqrtf: Avoid redefinition error on MSVC.
6119         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_SQRTF.
6120         * m4/sqrtf.m4 (gl_FUNC_SQRTF): Set REPLACE_SQRTF to 1 if the function
6121         may be defined as an inline function.
6122         * modules/math (Makefile.am): Substitute REPLACE_SQRTF.
6123         * lib/math.in.h (sqrtf): Override if REPLACE_SQRTF is 1.
6125 2016-12-17  Bruno Haible  <bruno@clisp.org>
6127         sinhf: Avoid redefinition error on MSVC.
6128         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_SINHF.
6129         * m4/sinhf.m4 (gl_FUNC_SINHF): Set REPLACE_SINHF to 1 if the function
6130         may be defined as an inline function.
6131         * modules/math (Makefile.am): Substitute REPLACE_SINHF.
6132         * lib/math.in.h (sinhf): Override if REPLACE_SINHF is 1.
6134 2016-12-17  Bruno Haible  <bruno@clisp.org>
6136         sinf: Avoid redefinition error on MSVC.
6137         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_SINF.
6138         * m4/sinf.m4 (gl_FUNC_SINF): Set REPLACE_SINF to 1 if the function
6139         may be defined as an inline function.
6140         * modules/math (Makefile.am): Substitute REPLACE_SINF.
6141         * lib/math.in.h (sinf): Override if REPLACE_SINF is 1.
6143 2016-12-17  Bruno Haible  <bruno@clisp.org>
6145         logf: Avoid redefinition error on MSVC.
6146         * m4/logf.m4 (gl_FUNC_LOGF): Set REPLACE_LOGF to 1 if the function
6147         may be defined as an inline function.
6149 2016-12-17  Bruno Haible  <bruno@clisp.org>
6151         log10l: Avoid redefinition error on MSVC.
6152         * m4/log10l.m4 (gl_FUNC_LOG10L): Set REPLACE_LOG10L to 1 if the function
6153         may be defined as an inline function.
6155 2016-12-17  Bruno Haible  <bruno@clisp.org>
6157         log10f: Avoid redefinition error on MSVC.
6158         * m4/log10f.m4 (gl_FUNC_LOG10F): Set REPLACE_LOG10F to 1 if the function
6159         may be defined as an inline function.
6161 2016-12-17  Bruno Haible  <bruno@clisp.org>
6163         hypotl: Avoid redefinition error on MSVC.
6164         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Set REPLACE_HYPOTL to 1 if the function
6165         may be defined as an inline function.
6167 2016-12-17  Bruno Haible  <bruno@clisp.org>
6169         hypotf: Avoid redefinition error on MSVC.
6170         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Set REPLACE_HYPOTF to 1 if the function
6171         may be defined as an inline function.
6173 2016-12-17  Bruno Haible  <bruno@clisp.org>
6175         fmodl: Avoid redefinition error on MSVC.
6176         * m4/fmodl.m4 (gl_FUNC_FMODL): Set REPLACE_FMODL to 1 if the function
6177         may be defined as an inline function.
6179 2016-12-17  Bruno Haible  <bruno@clisp.org>
6181         fmodf: Avoid redefinition error on MSVC.
6182         * m4/fmodf.m4 (gl_FUNC_FMODF): Set REPLACE_FMODF to 1 if the function
6183         may be defined as an inline function.
6185 2016-12-17  Bruno Haible  <bruno@clisp.org>
6187         expf: Avoid redefinition error on MSVC.
6188         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_EXPF.
6189         * m4/expf.m4 (gl_FUNC_EXPF): Set REPLACE_EXPF to 1 if the function
6190         may be defined as an inline function.
6191         * modules/math (Makefile.am): Substitute REPLACE_EXPF.
6192         * lib/math.in.h (expf): Override if REPLACE_EXPF is 1.
6194 2016-12-17  Bruno Haible  <bruno@clisp.org>
6196         coshf: Avoid redefinition error on MSVC.
6197         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_COSHF.
6198         * m4/coshf.m4 (gl_FUNC_COSHF): Set REPLACE_COSHF to 1 if the function
6199         may be defined as an inline function.
6200         * modules/math (Makefile.am): Substitute REPLACE_COSHF.
6201         * lib/math.in.h (coshf): Override if REPLACE_COSHF is 1.
6203 2016-12-17  Bruno Haible  <bruno@clisp.org>
6205         cosf: Avoid redefinition error on MSVC.
6206         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_COSF.
6207         * m4/cosf.m4 (gl_FUNC_COSF): Set REPLACE_COSF to 1 if the function
6208         may be defined as an inline function.
6209         * modules/math (Makefile.am): Substitute REPLACE_COSF.
6210         * lib/math.in.h (cosf): Override if REPLACE_COSF is 1.
6212 2016-12-17  Bruno Haible  <bruno@clisp.org>
6214         atan2f: Avoid redefinition error on MSVC.
6215         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_ATAN2F.
6216         * m4/atan2f.m4 (gl_FUNC_ATAN2F): Set REPLACE_ATAN2F to 1 if the function
6217         may be defined as an inline function.
6218         * modules/math (Makefile.am): Substitute REPLACE_ATAN2F.
6219         * lib/math.in.h (atan2f): Override if REPLACE_ATAN2F is 1.
6221 2016-12-17  Bruno Haible  <bruno@clisp.org>
6223         atanf: Avoid redefinition error on MSVC.
6224         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_ATANF.
6225         * m4/atanf.m4 (gl_FUNC_ATANF): Set REPLACE_ATANF to 1 if the function
6226         may be defined as an inline function.
6227         * modules/math (Makefile.am): Substitute REPLACE_ATANF.
6228         * lib/math.in.h (atanf): Override if REPLACE_ATANF is 1.
6230 2016-12-17  Bruno Haible  <bruno@clisp.org>
6232         asinf: Avoid redefinition error on MSVC.
6233         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_ASINF.
6234         * m4/asinf.m4 (gl_FUNC_ASINF): Set REPLACE_ASINF to 1 if the function
6235         may be defined as an inline function.
6236         * modules/math (Makefile.am): Substitute REPLACE_ASINF.
6237         * lib/math.in.h (asinf): Override if REPLACE_ASINF is 1.
6239 2016-12-17  Bruno Haible  <bruno@clisp.org>
6241         acosf: Avoid redefinition error on MSVC.
6242         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_ACOSF.
6243         * m4/acosf.m4 (gl_FUNC_ACOSF): Set REPLACE_ACOSF to 1 if the function
6244         may be defined as an inline function.
6245         * modules/math (Makefile.am): Substitute REPLACE_ACOSF.
6246         * lib/math.in.h (acosf): Override if REPLACE_ACOSF is 1.
6248 2016-12-17  Bruno Haible  <bruno@clisp.org>
6250         Avoid redefinition errors on MSVC.
6251         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): Set REPLACE_SNPRINTF to 1 if
6252         the function may be defined as an inline function.
6253         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): Set REPLACE_VSNPRINTF to 1 if
6254         the function may be defined as an inline function.
6256 2016-12-17  Bruno Haible  <bruno@clisp.org>
6258         Avoid redefinition errors on MSVC.
6259         * lib/stdio.in.h: Include <stdlib.h> and <io.h> when necessary.
6260         * lib/unistd.in.h: Include <stdio.h> when necessary.
6262 2016-12-17  Bruno Haible  <bruno@clisp.org>
6264         stdint: Fix WINT_MAX to match the gnulib provided wint_t on MSVC.
6265         * m4/stdint.m4 (gl_STDINT_H): Define GNULIB_OVERRIDES_WINT_T.
6266         * modules/stdint (Makefile.am): Substitute GNULIB_OVERRIDES_WINT_T.
6267         * lib/stdint.in.h [GNULIB_OVERRIDES_WINT_T]: Redefine WINT_MIN and
6268         WINT_MAX.
6270 2016-12-17  Bruno Haible  <bruno@clisp.org>
6272         Avoid autoconf warning.
6273         * modules/frexpl (configure.ac): Require, not invoke, gl_FUNC_FREXPL.
6274         * modules/frexp (configure.ac): Require, not invoke, gl_FUNC_FREXP.
6276 2016-12-17  Bruno Haible  <bruno@clisp.org>
6278         fpending: Revert workaround against Emacs bug.
6279         * lib/stdio-impl.h [__MINGW32__]: Revert conditional.
6280         The Emacs bug is fixed by Eli Zaretskii in
6281         http://lists.gnu.org/r/emacs-devel/2016-12/msg00715.html
6283 2016-12-17  Bruno Haible  <bruno@clisp.org>
6285         getlogin_r tests: Port to mingw.
6286         * tests/test-getlogin_r.c: Don't include <pwd.h> on native Windows. Fixes
6287         regression introduced on 2014-05-19.
6289 2016-12-17  Bruno Haible  <bruno@clisp.org>
6291         getlogin: Port to newer mingw.
6292         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_GETLOGIN.
6293         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Set HAVE_DECL_GETLOGIN.
6294         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETLOGIN, not
6295         HAVE_GETLOGIN.
6296         * lib/unistd.in.h (getlogin): Test HAVE_DECL_GETLOGIN, not
6297         HAVE_GETLOGIN.
6298         * doc/posix-functions/getlogin.texi: Mention the issue.
6299         * tests/test-getlogin.c: Don't include <pwd.h> on native Windows. Fixes
6300         regression introduced on 2014-05-14.
6302 2016-12-16  Paul Eggert  <eggert@cs.ucla.edu>
6304         builtin-expect: improve port to IBM XL C
6305         Problem reported for z/OS by Daniel Richard G. in:
6306         http://lists.gnu.org/r/bug-gnulib/2016-12/msg00079.html
6307         * m4/builtin-expect.m4 (gl___BUILTIN_EXPECT):
6308         Test for <builtins.h> directly.
6310         builtin-expect: port to IBM XL C
6311         Problem reported for z/OS by Daniel Richard G. in:
6312         http://lists.gnu.org/r/bug-gnulib/2016-12/msg00074.html
6313         * m4/builtin-expect.m4 (gl___BUILTIN_EXPECT):
6314         Also allow __builtin_expect defined via a standard include file.
6316         regex: fix dependency
6317         Problem reported by Bruno Haible in:
6318         http://lists.gnu.org/r/bug-gnulib/2016-12/msg00073.html
6319         * modules/regex: Depend on builtin-expect.
6321         builtin-expect: new module
6322         Fix fnmatch to use it.
6323         Problem reported for z/OS by Daniel Richard G.
6324         * lib/fnmatch.c (__builtin_expect):
6325         * lib/glob.c (__builtin_expect):
6326         * lib/grantpt.c (__builtin_expect) [!_LIBC]:
6327         * lib/memmem.c (__builtin_expect) [!_LIBC]:
6328         * lib/scandir.c (__builtin_expect):
6329         * lib/strstr.c (__builtin_expect) [!_LIBC]:
6330         Remove macro; config.h now does this.
6331         * lib/gl_anytreehash_list1.h (add_to_bucket):
6332         * lib/regex_internal.h (BE):
6333         Assume __builtin_expect.
6334         * m4/builtin-expect.m4, modules/builtin-expect: New files.
6335         * modules/avltreehash-list, modules/fnmatch, modules/glob:
6336         * modules/grantpt, modules/memmem-simple, modules/rbtreehash-list:
6337         * modules/scandir, modules/strstr-simple:
6338         Depend on builtin-expect.
6340 2016-12-15  Bruno Haible  <bruno@clisp.org>
6342         init.sh: Add possibility to not delete temporary files.
6343         * tests/init.sh (remove_tmp_): If the environment variable KEEP is set
6344         to yes, don't erase the temporary directory.
6346 2016-12-16  Paul Eggert  <eggert@cs.ucla.edu>
6348         regex: fix integer-overflow bug in never-used code
6349         Problem reported by Clément Pit–Claudel in:
6350         http://lists.gnu.org/r/emacs-devel/2016-12/msg00654.html
6351         * lib/regex_internal.h: Include intprops.h.
6352         * lib/regexec.c (re_search_2_stub): Use it to avoid undefined
6353         behavior on integer overflow.
6354         * modules/regex (Depends-on): Add intprops.
6356         fpending: fix port to MinGW on Emacs
6357         * lib/stdio-impl.h [__MINGW32__]: Do not include errno.h.
6358         Problem reported by Eli Zaretskii in:
6359         http://lists.gnu.org/r/emacs-devel/2016-12/msg00642.html
6360         Is Plan 9 still a valid porting target, anyway?
6362 2016-12-15  Paul Eggert  <eggert@cs.ucla.edu>
6364         safe-alloc: use xalloc-oversized
6365         * lib/safe-alloc.c: Include xalloc-oversized.h.
6366         (safe_alloc_oversized): Remove.  All uses changed to xalloc_oversized.
6367         * modules/safe-alloc (Depends-on): Add xalloc-oversized.
6369         xalloc: do not exceed PTRDIFF_MAX
6370         * lib/xmalloc.c (xcalloc) [HAVE_GNU_CALLOC]: Do not omit
6371         xalloc_oversized check, since objects larger than PTRDIFF_MAX
6372         bytes have pointer-subtraction problems.
6374         malloca: do not exceed PTRDIFF_MAX
6375         * lib/malloca.h: Include xalloc-oversized.
6376         (nmalloca): Use xalloc_oversized instead of rolling our own.
6377         * modules/malloca (Depends-on):
6378         * modules/relocatable-prog-wrapper (Depends-on):
6379         Add xalloc-oversized.
6381         quotearg: pacify GCC better
6382         * modules/quotearg (Depends-on): Add minmax, stdint.
6383         * lib/quotearg.c: Include minmax.h, stdint.h.
6384         (nslots): Now int, as there seems little point to going to extra
6385         work merely to support the INT_MAX slot, which nobody ever uses.
6386         (quotearg_n_options): Redo size-overflow checks to pacify GCC
6387         and to catch (mostly-theoretical) ptrdiff_t problems too.
6388         This can be done via one comparison.
6390 2016-12-14  Paul Eggert  <eggert@cs.ucla.edu>
6392         xalloc-oversized: check for PTRDIFF_MAX too
6393         This avoids undefined behavior when subtracting pointers to
6394         objects containing more than PTRDIFF_MAX bytes.
6395         * lib/xalloc-oversized.h (__xalloc_oversized, xalloc_oversized):
6396         Also return 1 if the result would exceed PTRDIFF_MAX>
6397         * modules/xalloc-oversized (Depends-on):
6398         Add stdint.
6400         dfa: fix glitches in previous commit
6401         Sorry, I don't know how I managed to commit the wrong version.
6402         * lib/dfa.c (MIN): Move up.
6403         (xpalloc): Now static.
6405         dfa: fix some unlikely integer overflows
6406         I found these while reviewing the recent Coverity-related fix.
6407         This patch changes part of dfa.c to prefer ptrdiff_t instead of
6408         size_t for object counts.  Using ptrdiff_t is the style typically
6409         used in Emacs; although it wastes a sign bit as sizes can never be
6410         negative, it makes -fsanitize=undefined more likely to catch
6411         integer overflows in index calculation, and nowadays the upside is
6412         typically more important than the downside.  Although perhaps the
6413         rest of dfa.c should be changed to prefer ptrdiff_t as well (much
6414         of dfa.c already does, since it uses state_num which is signed),
6415         that is a bigger change and is not needed to fix the bugs I found.
6416         * lib/dfa.c: Include stdint.h and intprops.h.
6417         (TOKEN_MAX): New macro.
6418         (position_set, struct mb_char_classes, struct dfa, maybe_realloc)
6419         (charclass_index, parse_bracket_exp, addtok, insert, merge)
6420         (realloc_trans_if_necessary, free_mbdata):
6421         Use ptrdiff_t instead of size_t for object counts related to xpalloc.
6422         This is safe because xpalloc checks that the sizes do not exceed
6423         either SIZE_MAX or PTRDIFF_MAX.
6424         (xpalloc): New function, mostly taken from Emacs.
6425         (maybe_realloc, copy, realloc_trans_if_necessary): Use it.
6426         (maybe_realloc): Add NITEMS_MAX to signature.  All callers changed.
6427         (charclass_index): Check for integer overflow in computing
6428         charclass index; it must not exceed TOKEN_MAX - CSET, as CSET is
6429         added to it later.
6430         (alloc_position_set): Check for integer overflow.  On typical
6431         platforms this check has zero overhead, since the constant
6432         expression is false.
6433         (realloc_trans_if_necessary):
6434         Remove assertion, which I hope Coverity no longer needs.
6436         * modules/dfa (Depends-on): Add intprops, stdint.
6438 2016-12-12  Jim Meyering  <meyering@fb.com>
6440         dfa: add an assertion to avoid coverity false positive
6441         * lib/dfa.c (realloc_trans_if_necessary): Otherwise, coverity
6442         warned that "newalloc1 - 2" could overflow.
6444 2016-12-13   Arnold D. Robbins  <arnold@skeeve.com>
6446         dfa: remove DFA_CASE_FOLD flag in favor of RE_ICASE
6447         * dfa.h (DFA_CASE_FOLD): Remove.
6448         * dfa.c (dfasyntax): Set dfa->syntax.case_fold based on RE_ICASE.
6450 2016-12-13  John W. Eaton  <gnu@jweaton.org>
6452         link: fix test to declare use of rename()
6453         * m4/link.m4 (gl_FUNC_LINK): Include <stdio.h> needed with
6454         -Werror=implicit-function-declaration
6456 2016-12-12  Bruno Haible  <bruno@clisp.org>
6458         fpending: Port to native Windows with MSVC.
6459         * lib/fpending.c: Include stdio-impl.h.
6460         (__fpending): Include all known implementations. Err out if it's not
6461         ported.
6462         * m4/fpending.m4 (gl_PREREQ_FPENDING): Remove macro.
6463         * modules/fpending (Files): Add lib/stdio-impl.h.
6464         (configure.ac): Don't invoke gl_PREREQ_FPENDING.
6466 2016-12-12  Bruno Haible  <bruno@clisp.org>
6468         stdioext: Port to native Windows with MSVC.
6469         * lib/stdio-impl.h (WINDOWS_OPAQUE_FILE): New macro.
6470         (struct _gl_real_FILE): New type.
6471         (fp_, _IOREAD, _IOWRT, _IORW, _IOEOF, _IOERR): New macros, for native
6472         Windows.
6473         * lib/fbufmode.c (fbufmode): Add code for native Windows.
6474         * lib/fflush.c (clear_ungetc_buffer): Treat native Windows like the
6475         other SystemV derived implementations.
6476         * lib/fpurge.c (fpurge): Likewise.
6477         * lib/freadable.c (freadable): Likewise.
6478         * lib/freadahead.c (freadahead): Likewise.
6479         * lib/freading.c (freading): Likewise.
6480         * lib/freadptr.c (freadptr): Likewise.
6481         * lib/freadseek.c (freadptrinc): Likewise.
6482         * lib/fseeko.c (fseeko): Likewise.
6483         * lib/fseterr.c (fseterr): Likewise.
6484         * lib/fwritable.c (fwritable): Likewise.
6485         * lib/fwriting.c (fwriting): Likewise.
6486         Reported by Gisle Vanem <gvanem@yahoo.no>.
6488 2016-12-11  Jim Meyering  <meyering@fb.com>
6490         non-recursive-gnulib-prefix-hack.m4: remove leading "(" in case stmt
6491         * m4/non-recursive-gnulib-prefix-hack.m4: That leading "(" happens
6492         to work with most shells, but not with the one provided by many
6493         Solaris 10 systems, so running configure with such a /bin/sh evokes
6494         e.g., "./configure: syntax error at line 33602: `(' unexpected".
6495         Reported by Assaf Gordon in
6496         https://lists.gnu.org/r/sed-devel/2016-12/msg00002.html
6498 2016-12-10  Bruno Haible  <bruno@clisp.org>
6500         threadlib: Optimize out runtime test on Solaris >= 10.
6501         * m4/threadlib.m4 (gl_THREADLIB_BODY): Don't set
6502         PTHREAD_IN_USE_DETECTION_HARD if configuring on Solaris 10 or newer.
6503         Reported by Peter Felecan at <https://savannah.gnu.org/bugs/?32087>.
6505 2016-12-10  Bruno Haible  <bruno@clisp.org>
6507         stdint: Update doc about Solaris 9.
6508         * doc/posix-headers/stdint.texi: Add info about Solaris 9.
6510 2016-12-09  Bruno Haible  <bruno@clisp.org>
6512         c-ctype tests: Fix link error on Solaris 9.
6513         * modules/c-ctype-tests (Depends-on): Add 'isblank'.
6514         Reported at <https://savannah.gnu.org/bugs/?46827>.
6516 2016-12-09  Paul Eggert  <eggert@cs.ucla.edu>
6518         dfa: fix performance bug that recomputes trans
6519         * lib/dfa.c (build_state): Fix performance bug introduced in Nov
6520         25 on-demand changes.  The bug caused build_state to reset all
6521         d->trans elements to -2 even when d->trans was already non-null.
6522         Use C99 style decls after statements in this function.
6524         same-inode: port to MinGW
6525         Here st_ino is always 0, so change the definition of SAME_INODE so
6526         that 1 means the two files are the same, 0 with st_ino != 0 means
6527         they differ, and 0 with st_ino == 0 means we don’t know.  Problem
6528         reported by Bruno Haible (Bug#25146).
6529         * doc/posix-headers/sys_stat.texi (sys/stat.h): Update.
6530         * lib/same-inode.h (SAME_INODE): Return 0 on MinGW.
6532 2016-12-04  Bruno Haible  <bruno@clisp.org>
6534         javacomp-script: Support Java 7 and 8.
6535         * m4/javacomp.m4 (gt_JAVACOMP): Accept source-version 1.7, 1.8 and
6536         target-version 1.7, 1.8.
6538 2016-12-02  Daiki Ueno  <ueno@gnu.org>
6540         * gnulib-tool (func_import): Relax the regex used for "LGPLv3+ or
6541         GPLv2" rewriting.
6543 2016-12-02  Nikos Mavrogiannopoulos  <nmav@gnutls.org>
6545         * gnulib-tool (func_import): Adhere to the license guideline when
6546         rewriting the license text to "LGPLv3+ or GPLv2":
6547         https://www.gnu.org/prep/maintain/maintain.html#Licensing-of-GNU-Packages
6549 2016-12-02  Bruno Haible  <bruno@clisp.org>
6551         localcharset: Avoid theoretical buffer overrun.
6552         * lib/localcharset.c (locale_charset) [WINDOWS_NATIVE]: Don't use the
6553         return value from setlocale if it would lead to a buffer overrun.
6555 2016-12-01  Bruno Haible  <bruno@clisp.org>
6557         Relicense some modules under LGPLv2+.
6558         Kevin Cernekee's approval is in
6559         http://lists.gnu.org/r/bug-gnulib/2016-11/msg00090.html.
6560         * modules/fseterr (License): Change to LGPLv2+.
6561         * modules/mbchar (License): Likewise.
6562         * modules/mbiter (License): Likewise.
6563         * modules/mbsnlen (License): Likewise.
6564         * modules/wcwidth (License): Likewise.
6566 2016-12-01  KO Myung-Hun  <komh78@gmail.com>
6568         scandir: Fix _D_ALLOC_NAMLEN() on OS/2 kLIBC
6569         * lib/scandir.c (_D_ALLOC_NAMLEN): Consider the fields after d_name on
6570         OS/2 kLIBC.
6572 2016-12-01  KO Myung-Hun  <komh78@gmail.com>
6574         alphasort, scandir: Port to OS/2 kLIBC
6575         * lib/alphasort.c (alphasort): Implement according to OS/2 kLIBC
6576         declaration.
6577         * lib/scandir.c (scandir): Add declaration for OS/2 kLIBC.
6579 2016-12-01  KO Myung-Hun  <komh78@gmail.com>
6581         relocatable: Fix that /@unixroot prefix is not working on OS/2 kLIBC
6582         * lib/relocatable.c (relocate): Do not touch pathname if it is started
6583         with '/@unixroot'.
6585 2016-12-01  KO Myung-Hun  <komh78@gmail.com>
6587         sys_socket: typedef sa_family_t correctly on OS/2 kLIBC
6588         * lib/sys_socket.in.h (sa_family_t): Typedef to unsigned char on
6589         OS/2 kLIBC unless TCPV40HDRS is defined.
6591 2016-11-29  Jim Meyering  <meyering@fb.com>
6593         dfa: avoid new infinite loop
6594         This would infloop: echo cx | LC_ALL=C grep -E 'c\b[x ]'
6595         * lib/dfa.c (dfastate): When constructing a new state table, we could
6596         initially declare that we had found a match, and later find that
6597         constraints eliminate that possibility, yet continue to use the
6598         now stale "matched" indicator.  That would lead to an infinite loop.
6599         The solution is to update "matched" when necessary.
6600         Introduced by commit v0.1-983-g403adf1.
6602 2016-11-27  Norihiro Tanaka  <noritnk@kcn.ne.jp>
6604         dfa: avoid match middle in multibyte character
6605         * lib/dfa.c (transit_state): If fails in matching single byte characters
6606         on a state including period expression in non-UTF8 multibyte locales,
6607         skip trailing bytes.
6608         (dfa_supported): Revert previous change.
6610 2016-11-27  Jim Meyering  <meyering@fb.com>
6612         dfa: avoid false match in non-UTF8 multibyte locales
6613         * lib/dfa.c (dfa_supported): Treat any non-UTF8 multibyte locale
6614         as "not supported" so that callers will resort to using regex-based
6615         matcher.  This will surely hurt performance, but correctness trumps
6616         performance here, and the affected locales are less and less relevant,
6617         these days.  See grep's bug report https://bugs.gnu.org/24975.
6619 2016-11-27  Mike Frysinger  <vapier@gentoo.org>
6621         ptsname_r: leverage AC_HEADER_MAJOR to provide major()
6622         * lib/ptsname_r.c: Include the appropriate headers.
6623         [__sun]: Delete sys/sysmacros.h include.
6624         [_AIX || __osf__]: Likewise.
6625         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): Depend on AC_HEADER_MAJOR.
6627 2016-11-27  Pádraig Brady  <P@draigBrady.com>
6629         md4,md5,sha*: allow _STRING_INLINE_unaligned enable unaligned operation
6630         * lib/md4.c (md4_process_bytes): The existing define is made internal
6631         in recent versions of glibc, so also use this new public define.
6632         * lib/md5.c (md5_process_bytes): Likewise.
6633         * lib/sha1.c (sha1_process_bytes): Likewise.
6634         * lib/sha256.c (sha256_process_bytes): Likewise.
6635         * lib/sha512.c (sha512_process_bytes): Likewise.
6637 2016-11-27  Pádraig Brady  <P@draigBrady.com>
6639         maint: use a more standard return from mbrtowc test
6640         * m4/mbrtowc.m4 (gl_MBRTOWC_C_LOCALE): Don't return 1
6641         from the test program as this often indicates an
6642         unhandled case in the test program.
6643         (gl_MBRTOWC_INCOMPLETE_STATE): Likewise.
6644         (gl_MBRTOWC_SANITYCHECK): Likewise.
6645         (gl_MBRTOWC_NULL_ARG2): Likewise.
6646         (gl_MBRTOWC_NUL_RETVAL): Likewise.
6648 2016-11-26  Paul Eggert  <eggert@cs.ucla.edu>
6650         freopen: work around glibc bug with closed fd
6651         Work around glibc bug#15589, where freopen mishandles the case
6652         where stdin etc. are already closed.
6653         * doc/posix-functions/freopen.texi (freopen): Document the bug.
6654         * lib/freopen.c (_GL_ALREADY_INCLUDING_STDIO_H): Define this
6655         instead of __need_FILE, as the latter does not work with glibc.
6656         Include <fcntl.h>, for open flags.
6657         (rpl_freopen): Work around glibc bug.
6658         * m4/freopen.m4 (gl_FUNC_FREOPEN): Check for bug.
6659         * modules/freopen (Depends-on): Add fcntl-h.
6660         * tests/test-freopen.c (main): Test for bug.
6662 2016-11-25  Paul Eggert  <eggert@cs.ucla.edu>
6664         fnmatch: fix typo introduced on 2016-08-17
6665         This fixes the port to non-GCC compilers that lack __builtin_expect.
6666         * lib/fnmatch.c (__builtin_expect): Change A&&B to !A||B.
6668         dfa: simplify with new function fillset
6669         * lib/dfa.c (fillset): New function.
6670         Use it for clarity when applicable.
6672         dfa: fix glitches with on-demand states
6673         Also, adjust commentary to better match new code.
6674         Some of these glitches predate the recent change.
6675         * lib/dfa.c (dfaanalyze): Clear trcount here, so that it counts
6676         only non-initial states.
6677         (dfastate): Rename locals to better match new roles.
6678         Move them into nested scopes if this is easy.
6679         Omit unnecessary calls to zeroset.
6680         Simplify test for whether to throw in the positions of state 0.
6681         Omit C99-ism (decl after statement) since Gawk still wants C89.
6682         (build_state): Omit unnecessary test and assignment.
6683         Fix some confusion that counted transition tables inaccurately
6684         and could cause a memory leak.
6685         (dfaexec_main): Redo to make it clearer to the compiler that
6686         -1 and -2 are the only negative state numbers here.
6688 2016-11-25  Norihiro Tanaka  <noritnk@kcn.ne.jp>
6690         dfa: addition of new state on demand
6691         * src/dfa.c (dfastate): Add argument UC, the current input character.
6692         Fill only a group including the character in transition table.
6693         (realloc_trans_if_necessary): Add the dummy state which means that a
6694         transition table is assigned but the next state is not assigned.
6695         (build_state): Return the next state.  All callers updated.
6696         (transit_state_singlebyte): If we get the dummy state,
6697         fill the transition table.
6698         (dfaexec_main): Handle the dummy state.
6699         (free_mbdata, dfafree): Consider the dummy state.
6701 2016-11-24  Daiki Ueno  <ueno@gnu.org>
6703         srclist: sync with released gettext
6704         * config/srclist.txt: Set "release" option to the files under
6705         $GETTEXT.
6707 2016-11-24  Daiki Ueno  <ueno@gnu.org>
6709         srclist: add "release" option
6710         * config/srclist.txt: Change the format so that the first column
6711         of each line points to the top-level directory of the source
6712         archive.
6713         * config/srclist-update: Accept "release" option that checks files
6714         from the most recently tagged revision in the source archive.
6716 2016-11-21  Bruno Haible  <bruno@clisp.org>
6718         snippet/c++defs: Simplify _GL_CXXALIAS_* macros.
6719         * build-aux/snippet/c++defs.h [__cplusplus && GNULIB_NAMESPACE]
6720         (_GL_CXXALIAS_RPL_1, _GL_CXXALIAS_RPL_CAST_1,
6721         _GL_CXXALIAS_SYS, _GL_CXXALIAS_SYS_CAST, _GL_CXXALIAS_SYS_CAST2):
6722         Inline and remove member function 'rpl ()' of the wrapper struct.
6724 2016-11-20  Paul Eggert  <eggert@cs.ucla.edu>
6726         dfa: fix logic typo
6727         Problem reported by Stephane Chazelas (Bug#24973).
6728         * lib/dfa.c (using_simple_locale): Fix typo that caused some
6729         non-simple locales like fr_FR to be treated as simple.
6731 2016-11-20  Jim Meyering  <meyering@fb.com>
6733         fix test driver leaks: exclude, malloc, realloc
6734         * tests/test-exclude.c (main): Fix trivial leak.
6735         * tests/test-malloc-gnu.c (main): Likewise.
6736         * tests/test-realloc-gnu.c (main): Likewise.
6737         With these changes, grep's tests are now leak free.
6738         I.e., running them with ASAN elicits no failure:
6739           make CFLAGS='-O0 -ggdb3' AM_CFLAGS=-fsanitize=address \
6740             AM_LDFLAGS='-fsanitize=address -static-libasan' check
6742 2016-11-11  Bruno Haible  <bruno@clisp.org>
6744         libunistring: Relicense under dual "LGPLv3+ or GPLv2" license.
6745         * modules/libunistring: (License): Change from LGPL to
6746         "LGPLv3+ or GPLv2".
6747         * modules/libunistring-optional: Likewise.
6748         * modules/unicase/*: Likewise.
6749         * modules/uniconv/*: Likewise.
6750         * modules/unictype/*: Likewise.
6751         * modules/unigbrk/*: Likewise.
6752         * modules/unilbrk/*: Likewise.
6753         * modules/uniname/*: Likewise.
6754         * modules/uninorm/*: Likewise.
6755         * modules/unistdio/*: Likewise.
6756         * modules/unistr/*: Likewise.
6757         * modules/uniwbrk/*: Likewise.
6758         * modules/uniwidth/*: Likewise.
6760 2016-11-12  Bruno Haible  <bruno@clisp.org>
6762         Relicense some modules under LGPLv2+.
6763         Paul Eggert's approval is in
6764         http://lists.gnu.org/r/bug-gnulib/2016-11/msg00037.html.
6765         Eric Blake's approval is in
6766         http://lists.gnu.org/r/bug-gnulib/2016-11/msg00042.html.
6767         Ludovic Courtès's approval is in
6768         http://lists.gnu.org/r/bug-gnulib/2016-11/msg00038.html.
6769         * modules/isnand-nolibm (License): Change to LGPLv2+.
6770         * modules/isnanf-nolibm (License): Likewise.
6771         * modules/isnanl-nolibm (License): Likewise.
6773 2016-11-19  Bruno Haible  <bruno@clisp.org>
6775         Relicense some modules under LGPLv2+.
6776         lib/float+.h is already under LGPLv2+ since 2007-07-13, per
6777         modules/vasnprintf.
6778         Paolo Bonzini's approval for lib/frexp.c and lib/frexpl.c is in
6779         http://lists.gnu.org/r/bug-gnulib/2016-11/msg00074.html.
6780         All other significant changes to the files in lib/ of these modules
6781         are from me.
6782         * modules/memcmp2 (License): Change to LGPLv2+.
6783         * modules/amemxfrm (License): Likewise.
6784         * modules/fpieee (License): Likewise.
6785         * modules/fpucw (License): Likewise.
6786         * modules/frexp-nolibm (License): Likewise.
6787         * modules/frexpl-nolibm (License): Likewise.
6788         * modules/printf-frexp (License): Likewise.
6789         * modules/printf-frexpl (License): Likewise.
6790         * modules/printf-safe (License): Likewise.
6791         * modules/signbit (License): Likewise.
6793 2016-11-17  Bruno Haible  <bruno@clisp.org>
6795         Enable Unicode decoder safety unconditionally.
6796         * lib/unistr.in.h (u32_mbtouc_unsafe): Assume CONFIG_UNICODE_SAFETY.
6797         * lib/unistr/u8-mblen.c (u8_mblen): Likewise.
6798         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
6799         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
6800         * lib/unistr/u8-prev.c (u8_prev): Likewise.
6801         * lib/unistr/u8-strmblen.c (u8_strmblen): Likewise.
6802         * lib/unistr/u8-strmbtouc.c (u8_strmbtouc): Likewise.
6803         * lib/unistr/u16-mblen.c (u16_mblen): Likewise.
6804         * lib/unistr/u16-mbtouc-unsafe.c (u16_mbtouc_unsafe): Likewise.
6805         * lib/unistr/u16-mbtouc-unsafe-aux.c (u16_mbtouc_unsafe_aux): Likewise.
6806         * lib/unistr/u16-prev.c (u16_prev): Likewise.
6807         * lib/unistr/u16-strmblen.c (u16_strmblen): Likewise.
6808         * lib/unistr/u16-strmbtouc.c (u16_strmbtouc): Likewise.
6809         * lib/unistr/u32-mblen.c (u32_mblen): Likewise.
6810         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Likewise.
6811         * lib/unistr/u32-prev.c (u32_prev): Likewise.
6812         * lib/unistr/u32-next.c (u32_next): Likewise.
6813         * lib/unistr/u32-strmblen.c (u32_strmblen): Likewise.
6814         * lib/unistr/u32-strmbtouc.c (u32_strmbtouc): Likewise.
6815         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
6816         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
6817         * tests/unistr/test-u16-prev.c (check_invalid): Enable the
6818         CONFIG_UNICODE_SAFETY tests unconditionally.
6819         * tests/unistr/test-u32-mblen.c (main): Likewise.
6820         * tests/unistr/test-u32-mbtouc.h (test_function): Likewise.
6821         * tests/unistr/test-u32-prev.c (check_invalid): Likewise.
6822         * tests/unistr/test-u32-next.c (main): Likewise.
6823         * tests/unistr/test-u32-strmblen.c (main): Likewise.
6824         * tests/unistr/test-u32-strmbtouc.c (main): Likewise.
6825         * tests/unistr/test-u32-mbtouc.c (FULL_SAFETY): Remove macro.
6826         * lib/unistr/u8-check.c (u8_check): Remove old dead code.
6827         * lib/unistr/u8-mbtouc.c (u8_mbtouc): Likewise.
6828         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
6829         * lib/unistr/u8-mbtoucr.c (u8_mbtoucr): Likewise.
6830         * lib/unistr/u8-uctomb.c (u8_uctomb): Likewise.
6831         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Likewise.
6832         * lib/unistr/u16-check.c (u16_check): Update comment.
6833         * NEWS: Mention the changes that callers should be aware of.
6835 2016-11-19  Bruno Haible  <bruno@clisp.org>
6837         relocatable-prog-wrapper: Fix breakage on Cygwin.
6838         * modules/relocatable-prog-wrapper (Files): Add lib/stat.c, lib/lstat.c.
6839         (Depends-on): Remove intprops.
6840         * lib/relocwrapper.c: Update dependency tree.
6841         (strerror): Undefine.
6842         * build-aux/install-reloc (func_create_wrapper): Do not compile
6843         strerror.c and strerror-override.c. Erase stat.o and lstat.o.
6845 2016-11-19  Bruno Haible  <bruno@clisp.org>
6847         strerror: Make it compile in C++ mode.
6848         * lib/strerror.c (strerror): Ignore the return value of memcpy().
6850 2016-11-15  Pedro Alves  <palves@redhat.com>
6852         sys_time: add gnulib::timeval for C++
6853         * lib/sys_time.in.h [__cplusplus && defined GNULIB_NAMESPACE]:
6854         Define "timeval" in the GNULIB_NAMESPACE namespace, and #undef any
6855         timeval macro.
6857 2016-11-14  Pedro Alves  <palves@redhat.com>
6859         snippet/c++defs: fix real-floating arg functions in C++ mode
6860         Also, define isfinite, isinf, isnan, signbit in the gnulib
6861         namespace instead of in the global namespace.
6862         * build-aux/snippet/c++defs.h (_GL_BEGIN_NAMESPACE)
6863         (_GL_END_NAMESPACE): New.
6864         * lib/math.in.h (_GL_MATH_CXX_REAL_FLOATING_DECL_2): Use them.
6865         (isfinite, isinf, isnan, signbit) [__cplusplus &&
6866         GNULIB_NAMESPACE]: Define them in the GNULIB_NAMESPACE namespace
6867         instead of in the global namespace.
6868         * tests/test-math-c++.cc: Check that the isfinite, isinf, isnan,
6869         signbit overloads exist in the GNULIB_NAMESPACE namespace, instead
6870         of in the global namespace.
6872 2016-11-13  Jim Meyering  <meyering@fb.com>
6874         strftime: don't use __THROW
6875         Each use of __THROW would provoke this from gcc-7-to-be:
6877           lib/strftime.c:371:1: warning: '__leaf__' attribute has no effect \
6878             on unit local functions [-Wattributes]
6879           static int iso_week_days (int, int) __THROW;
6880           ^~~~~~
6881         * lib/strftime.c (__THROW): Don't define.
6882         Remove each use of __THROW.
6883         * lib/strftime.c (memcpy_lowcase, memcpy_uppcase): Remove __THROW.
6884         (tm_diff, iso_week_days, __strftime_internal): Likewise.
6886 2016-11-14  Paul Eggert  <eggert@union>
6888         obstack: port to gcc -fcheck-pointer-bounds
6889         Problem found by 'make check' failure on bleeding-edge coreutils
6890         on an MPX-enabled CPU (Intel Core i3-7100U) running GCC (Ubuntu
6891         6.2.0-5ubuntu12), configured via "./configure
6892         --enable-gcc-warnings CFLAGS='-mmpx -fcheck-pointer-bounds -g3
6893         -O2' LDFLAGS='-static-libmpx -static-libmpxwrappers'".
6894         * lib/obstack.h (__FLEXIBLE_ARRAY_MEMBER):
6895         New macro, copied from fts_.h.
6896         (struct _obstack_chunk.contents): Use it.
6898 2016-11-14  Eric Blake  <eblake@redhat.com>
6900         strerror_r-posix: Another fix, for HAVE_DECL_STRERROR_R on mingw.
6901         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R, gl_FUNC_STRERROR_R_WORKS):
6902         Avoid _ONCE variants, which may supply a conflicting AC_DEFINE().
6904 2016-11-14  Pádraig Brady  <P@draigBrady.com>
6906         strptime: fix compile error in recent change
6907         * lib/strptime.c (__strptime_internal): Fix ported code.
6909 2016-11-11  Bruno Haible  <bruno@clisp.org>
6911         gnulib-tool: Support for the dual "LGPLv3+ or GPLv2" license.
6912         * gnulib-tool (--lgpl): Accept value 3orGPLv2.
6913         (func_import): Extend determination of license_incompatibilities.
6914         (func_create_testdir): Extend table of license compatibility. Handle
6915         also the licenses GPLv3+, GPL, LGPLv3+.
6917 2016-11-12  Paul Eggert  <eggert@cs.ucla.edu>
6919         strftime: tune %q
6920         * lib/strftime.c (__strftime_internal): Assume tp->tm_mon is in range.
6922         Merge strftime.c changes from glibc
6923         This incorporates:
6924         2007-10-16 [BZ #5184] Add tzset_called argument
6925         2008-06-13 [BZ #6612] pass reference to tzset_called around
6926         2009-10-30 Implement Burmese language locale for Myanmar
6927         2010-01-09 Add support for XPG7 testing
6928         2015-09-26 [BZ #18985] out of range data to strftime() causes a segfault
6929         2015-10-20 Convert miscellaneous function definitions to prototype style
6930         * lib/strftime.c: Copy glibc license, since gnulib-tool rewrites
6931         it anyway and this lessens the difference between gnulib and glibc.
6932         (USE_IN_EXTENDED_LOCALE_MODEL) [_LIBC]: Define.
6933         (__THROW): Define if standard headers do not.
6934         (LOCALE_PARAM): Rename from LOCALE_PARAM_PROTO.  All uses changed.
6935         (memcpy_locase, memcpy_uppcase, tm_diff, __strftime_internal):
6936         Declare with __THROW.
6937         (__strftime_internal): Rename from strftime_case_. Add arg for
6938         whether tzset is called.  All uses changed.  Call tzset at most
6939         once.  Allow %OC, for Burmese.
6940         (a_wkday, f_wkday, a_month, f_month) [_NL_CURRENT]:
6941         Don't assume values are in range.
6943 2016-11-12  Eric Blake  <eblake@redhat.com>
6945         strerror_r-posix: Fix override of AC_FUNC_STRERROR_R
6946         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): New override.
6947         (gl_FUNC_STRERROR_R): Don't reuse AC_DEFINE() with a potentially
6948         different value.
6950 2006-11-12  Pedro Alves  <palves@redhat.com>
6952         Fix gnulib C++ namespace support and std::frexp
6953         * lib/math.in.h (frexp): Use _GL_CXXALIASWARN1 instead of
6954         _GL_CXXALIASWARN.
6956 2006-11-12  Pedro Alves  <palves@redhat.com>
6958         GNULIB_NAMESPACE::func need not pull in rpl_func
6959         * build-aux/snippet/c++defs.h [__cplusplus && GNULIB_NAMESPACE]
6960         (_GL_CXXALIAS_RPL_1, _GL_CXXALIAS_RPL_CAST_1, _GL_CXXALIAS_SYS)
6961         (_GL_CXXALIAS_SYS_CAST, _GL_CXXALIAS_SYS_CAST2): Define a wrapper
6962         struct instead of a function pointer.
6964 2016-11-09  Frediano Ziglio  <fziglio@redhat.com>
6966         manywarnings: fix -Wno-missing-field-initializers detection
6967         * m4/manywarnings.m4: Fix -Wno-missing-field-initializers detection
6968         to be independent of -Wunused-variable.  I.E. ensure the latter
6969         warning doesn't occur so that detection of the former is accurate.
6971 2016-11-05  Pádraig Brady  <pbrady@fb.com>
6973         strftime,strptime: support %q to represent the quarter
6974         * lib/strftime.c (strftime_case_): Add %q case.
6975         * lib/strptime.c (__strptime_internal): Likewise.
6976         * tests/test-strftime.c (quarter_test): A new test case.
6978 2016-11-03  Eric Blake  <eblake@redhat.com>
6980         bootstrap: Fix get_version() for AIX 5.3
6981         * build-aux/bootstrap (get_version): Factor out sed script, since
6982         indented comments choke AIX 5.3 sed.
6983         Reported-by: Michael Felt <aixtools@gmail.com>
6985 2016-11-03  Paul Eggert  <eggert@cs.ucla.edu>
6987         intprops: port to older XL C
6988         Problem reported by Alexander Samoilov in:
6989         http://lists.gnu.org/r/bug-gnulib/2016-10/msg00166.html
6990         http://savannah.nongnu.org/bugs/?49448
6991         * lib/intprops.h (_GL_HAVE___TYPEOF__) [__IBM__TYPEOF__]:
6992         Define to 1 only for XL C 12.1 or later, since this bug
6993         occurs in XL C for AIX 6.0 but not in 12.1.
6995 2016-11-02  Pádraig Brady  <P@draigBrady.com>
6997         backupfile: initialize default suffix within the implementation
6998         * lib/backupfile.c (find_backup_file_name): Initialize the
6999         global variable here, to simplify usage, and to only call
7000         getenv() when needed.
7002 2016-11-01  Paul Eggert  <eggert@cs.ucla.edu>
7004         futimens: remove FIXME for old Linux kernels
7005         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Belatedy do a "simplify
7006         this in 2012" FIXME, like that for utimensat.
7008         utimensat: remove FIXME for old Linux kernels
7009         * lib/utimensat.c (rpl_utimensat): Update FIXME comment.
7010         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Belatedy do a "simplify
7011         this in 2012" FIXME, by assuming the file system bug is absent
7012         unless demonstrated to be present.  We no longer need to worry
7013         about Linux kernel 2.6.32 when building with newer kernels.
7015 2016-10-16  Bruno Haible  <bruno@clisp.org>
7017         qsort_r: Fix macrology for platforms that lack the function.
7018         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for qsort_r.
7019         (gl_STDLIB_H_DEFAULTS): Initialize HAVE_QSORT_R.
7020         * modules/stdlib (Makefile.am): Substitute HAVE_QSORT_R.
7021         * lib/stdlib.in.h (qsort_r): Provide declaration if the function does
7022         not exist.
7023         * m4/qsort_r.m4 (gl_FUNC_QSORT_R): Use AC_CHECK_FUNCS to test whether
7024         the function exists.
7025         * modules/qsort_r: Add comments.
7027 2016-10-26  Paul Eggert  <eggert@cs.ucla.edu>
7029         sys_types: fix Texinfo typos
7030         * doc/glibc-functions/gnu_dev_major.texi:
7031         * doc/glibc-functions/gnu_dev_makedev.texi:
7032         * doc/glibc-functions/gnu_dev_minor.texi: Fix typos.
7034 2016-10-26  John David Anglin  <dave.anglin@bell.net>
7036         getprogname: port to HP-UX
7037         See Bug#24805.
7038         * lib/getprogname.c (getprogname) [__hpux]: Port.
7039         * tests/test-getprogname.c (STREQ) [__hpux]:
7040         Special-case for HP-UX limitations on program name length.
7042 2016-10-20  Bruno Haible  <bruno@clisp.org>
7044         Update doc about target platforms.
7045         * doc/gnulib-intro.texi (Target Platforms): Update list.
7047 2016-10-15  Bruno Haible  <bruno@clisp.org>
7049         opendir, readdir, closedir: Relicense under LGPLv2+.
7050         * modules/opendir (License): Change to LGPLv2+.
7051         * modules/readdir (License): Likewise.
7052         * modules/closedir (License): Likewise.
7054 2016-10-16  Bruno Haible  <bruno@clisp.org>
7056         Fix conflict between strerror_r-posix module and AC_FUNC_STRERROR_R.
7057         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Override the values set by the
7058         AC_FUNC_STRERROR_R macro. Define HAVE_DECL_STRERROR_R_ORIG.
7059         * lib/strerror_r.c: Use HAVE_DECL_STRERROR_R_ORIG instead of
7060         HAVE_DECL_STRERROR_R.
7062 2016-10-16  Bruno Haible  <bruno@clisp.org>
7064         Make the 'argp' module work without the 'error' module.
7065         * m4/argp.m4 (gl_ARGP): Require AC_FUNC_STRERROR_R.
7067 2016-10-25  Paul Eggert  <eggert@cs.ucla.edu>
7069         diffseq: restore TOO_EXPENSIVE heuristic
7070         * lib/diffseq.h: Problem with diffutils reported by Andreas Schwab
7071         (Bug#24715).  The simplest solution is to restore the
7072         TOO_EXPENSIVE heuristic that I added to GNU diff in 1993, while
7073         using a higher threshold to avoid Bug#16848 on smaller files.
7074         * lib/diffseq.h (struct context): Restore member too_expensive.
7075         (struct partition): Restore members lo_minimal, hi_minimal.
7076         (diag, compareseq): Restore arg find_minimal.  All uses changed.
7077         (diag): Restore the TOO_EXPENSIVE heuristic that I added back in
7078         1993 to make 'diff' run faster (but not as well) on large inputs,
7079         but use a threshold of 4096 instead of the old 256.
7080         * lib/fstrcmp.c (strcmp_bounded):
7081         * lib/git-merge-changelog.c (compute_differences):
7082         Adjust to diffseq.h changes.
7084 2016-10-22  Bruno Haible  <bruno@clisp.org>
7086         iconv: Avoid compilation error when bootstrapping GNU libiconv.
7087         * m4/iconv.m4 (AM_ICONV): When the system does not have an iconv()
7088         declaration yet, define ICONV_CONST to empty.
7090 2016-10-15  Bruno Haible  <bruno@clisp.org>
7092         Avoid gnulib-tool warnings about the dependencies of 'parse-datetime'.
7093         * gnulib-tool (func_get_license): Special-case the 'parse-datetime'
7094         module.
7096 2016-10-16  Bruno Haible  <bruno@clisp.org>
7098         system-quote tests: Avoid compiler warning on AIX.
7099         * tests/test-system-quote-child.c (fopen): Redefine like the system's
7100         <stdio.h> does.
7102 2016-10-16  Bruno Haible  <bruno@clisp.org>
7104         Fix some "gcc -Wall" warnings.
7105         * tests/test-ffsl.c (main): Use variable x, not i.
7106         * tests/test-posix_spawn3.c (parent_main): Consider the return value of
7107         freopen.
7108         * tests/test-sethostname1.c (main): Explicitly ignore the return value
7109         of sethostname.
7111 2016-10-16  Bruno Haible  <bruno@clisp.org>
7113         gnulib-tool: Make --create-testdir on all modules work again.
7114         * gnulib-tool (func_create_testdir): Don't include the
7115         non-recursive-gnulib-prefix-hack module.
7117 2016-10-21  Daiki Ueno  <ueno@gnu.org>
7119         libunistring: change the maintainer to 'all'
7120         * modules/gen-uni-tables, modules/libunistring:
7121         * modules/ucs4-utf16, modules/ucs4-utf8, modules/unicodeio:
7122         * modules/unitypes, modules/utf16-ucs4, modules/utf16-ucs4-unsafe:
7123         * modules/utf8-ucs4, modules/utf8-ucs4-unsafe:
7124         * modules/unicase/*, modules/uniconv/*, modules/unictype/*:
7125         * modules/unilbrk/*, modules/uniname/*, modules/uninorm/*:
7126         * modules/unistdio/*, modules/unistr/*, modules/uniwbrk/*:
7127         * modules/uniwidth/*: Change the maintainer to 'all'.
7129 2016-10-16  Bruno Haible  <bruno@clisp.org>
7131         Simplify "configure: checking ..." messages.
7132         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use AC_MSG_CHECKING instead of
7133         AC_MSG_NOTICE.
7134         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
7136 2016-10-20  Paul Eggert  <eggert@cs.ucla.edu>
7138         quotearg-tests: pacify gcc -Wall
7139         Problem reported by Bruno Haible in:
7140         http://lists.gnu.org/r/bug-gnulib/2016-10/msg00066.html
7141         * tests/test-quotearg-simple.c (use_quote_double_quotes): Move here ...
7142         * tests/test-quotearg.h: ... from here.
7144 2016-10-20  Pádraig Brady  <P@draigBrady.com>
7146         canonicalize-lgpl: fix for missing SIZE_MAX on older systems
7147         * lib/canonicalize-lgpl.c [SIZE_MAX]: Define if needed.
7148         Needed on Centos <= 4.
7150 2016-10-20  Jim Meyering  <meyering@fb.com>
7152         printf.m4: fix a bug in detecting printf %j support
7153         * m4/printf.m4 (gl_PRINTF_SIZES_C99): Fail any system for which
7154         uintmax_t is defined in neither stdint.h nor inttypes.h.
7155         Before, this macro might have mistakenly set
7156         gl_cv_func_printf_sizes_c99=yes on such a system.
7157         Spotted by Zev Weiss.
7159 2016-10-19  Paul Eggert  <eggert@cs.ucla.edu>
7161         sched: substitute HAVE_SYS_CDEFS_H too
7162         Problem reported by Tom G. Christensen in:
7163         http://lists.gnu.org/r/bug-gnulib/2016-10/msg00084.html
7164         * m4/sched_h.m4 (gl_SCHED_H): Set and substitute HAVE_SYS_CDEFS_H.
7165         * modules/sched (Depends-on): Substitute HAVE_SYS_CDEFS_H.
7167 2016-10-19  Pádraig Brady  <P@draigBrady.com>
7169         quotearg: never write beyond the returned length
7170         * lib/quotearg.c (quotearg_buffer_restyled): Switch to a read-only
7171         scan of the string when we initially encounter a single quote when
7172         shell quoting, so that if we then switch to a more concise quoting method
7173         we will not have written beyond that returned length.
7174         This is significant for sh-quote, which has separate routines
7175         to determine the length and do the actual quoting.
7176         * tests/test-quotearg.h: Reinstate the buffer bounds checking
7177         now that we never write more than the returned length.
7179 2016-10-18  Bruno Haible  <bruno@clisp.org>
7181         getprogname tests: Avoid failure in packages that use libtool.
7182         * tests/test-getprogname.c (main): Strip "lt-" prefix.
7183         Based on a patch by Jim Meyering.
7185 2016-10-16  Bruno Haible  <bruno@clisp.org>
7187         getprogname: Fix test failure on Cygwin. Comments.
7188         * lib/getprogname.h: Add comments.
7189         * lib/getprogname.c: Add comments. Fix #elif indentation.
7190         * tests/test-getprogname.c (main): On Cygwin, expect a result without
7191         ".exe" suffix.
7193 2016-10-16  Bruno Haible  <bruno@clisp.org>
7195         Make sure the libunistring detection rejects older versions with a
7196         known bug.
7197         * modules/unistr/u8-strtok (configure.ac): Bump required version.
7198         * modules/unistr/u16-strtok (configure.ac): Likewise.
7199         * modules/unistr/u32-strtok (configure.ac): Likewise.
7201 2016-10-18  Bruno Haible  <bruno@clisp.org>
7203         sh-quote, system-quote: revert regression of unit test.
7204         * tests/test-sh-quote.c (check_one): Do detect buffer overruns.
7205         * tests/test-system-quote-main.c (check_one): Likewise.
7207 2016-10-16  Pádraig Brady  <P@draigBrady.com>
7209         quotearg: fix stale tests
7210         * tests/test-quotearg.c [locale_results]: Add the missing str7
7211         entries to the expected results.
7212         * tests/test-system-quote-main.c (check_one): Don't enforce that we
7213         don't write beyond the returned length, since that's no longer the
7214         case if we switch to a more concise quoting style.
7215         * tests/test-sh-quote.c (check_one): Likewise.
7216         (main): Adjust for the new more concise quoting style.
7217         Reported by Bruno Haible.
7219 2016-10-16  Jim Meyering  <meyering@fb.com>
7221         non-recursive-gnulib-prefix-hack: fix inconsequential typo
7222         * m4/non-recursive-gnulib-prefix-hack.m4: Change a hard-coded "lib"
7223         to "$1".  This macro is always invoked with $1 == lib.
7224         Spotted by Bruno Haible
7226 2016-10-16  Bruno Haible  <bruno@clisp.org>
7228         Fix a test crash.
7229         * tests/test-duplocale.c (main): Skip the test if the 'newlocale' call
7230         fails.
7232 2016-10-16  Pádraig Brady  <P@draigBrady.com>
7234         test-limits-h: suppress -Woverlength-strings
7235         * tests/test-limits-h.c [__GNUC__]: Ignore -Woverlength-strings.
7237 2016-10-15  Bruno Haible  <bruno@clisp.org>
7239         gettime, timespec, utimens: Relicense under LGPL.
7240         * modules/gettime (License): Change to LGPL.
7241         * modules/timespec (License): Likewise.
7242         * modules/utimens (License): Likewise.
7244 2016-10-14  Bruno Haible  <bruno@clisp.org>
7245             Pádraig Brady  <P@draigBrady.com>
7247         canonicalize-lgpl: Support the case path_max > INT_MAX.
7248         * lib/canonicalize-lgpl.c (__realpath): Declare n as ssize_t, not int.
7249         Fix overflow check, for platforms where 'size_t' is larger than 'long'.
7251 2016-10-13  Jim Meyering  <meyering@fb.com>
7253         getprogname: IBM z/OS: avoid NULL-dereference
7254         * lib/getprogname.c (getprogname) [__MVS__]: Don't dereference NULL
7255         upon strdup failure.
7257 2016-10-12  Jim Meyering  <meyering@fb.com>
7259         test-stdint: use _GL_VERIFY rather than "verify" for some tests
7260         * tests/test-stdint.c (verify_width): Implement with _GL_VERIFY
7261         and an abbreviated diagnostic rather than verify with the full one,
7262         because the full-length strings would evoke warnings from gcc with
7263         -Woverlength-strings.
7265 2016-10-13  Paul Eggert  <eggert@cs.ucla.edu>
7267         stdint: port SIZE_MAX to glibc s390
7268         Problem reported by Eric Blake in:
7269         http://lists.gnu.org/r/bug-gnulib/2016-10/msg00031.html
7270         * doc/posix-headers/stdint.texi (stdint.h): Document the fix.
7271         * m4/stdint.m4 (gl_STDINT_H): Check that SIZE_MAX has the
7272         correct type, if possible.
7274 2016-10-13  Daniel Richard G.  <skunk@iSKUNK.ORG>
7276         getprogname: port to IBM z/OS
7277         * lib/getprogname.c (getprogname): Use w_getpsent() to get the name.
7279 2016-10-11  Jim Meyering  <meyering@fb.com>
7281         maint: remove stray space after "." in AC_DEFINE comment.
7282         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Remove space-after-".".
7283         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
7285 2016-10-05  Jim Meyering  <meyering@fb.com>
7287         long-options: avoid new GCC 7 warning from -Wimplicit-fallthrough
7288         * lib/long-options.c (parse_long_options): Add a break statement
7289         to avoid this new warning/failure:
7290         $ CFLAGS='-O -Werror=implicit-fallthrough' ./gnulib-tool \
7291           --create-testdir --dir=/t/x --with-tests --test long-options
7292         ../../gllib/long-options.c: In function 'parse_long_options':
7293         ../../gllib/long-options.c:66:12: error: this statement may \
7294           fall through [-Werror=implicit-fallthrough]
7295                    (*usage_func) (EXIT_SUCCESS);
7296                    ~^~~~~~~~~~~~~~~~~~~~~~~~~~~
7298 2016-10-05  Jim Meyering  <meyering@fb.com>
7300         utimecmp: avoid new GCC 7 warning from -Wbool-operation
7301         Testing this module would fail when using GCC 7 like this:
7302         $ CFLAGS='-O -Werror=bool-operation' ./gnulib-tool --create-testdir \
7303           --dir=/tmp/x --with-tests --test utimecmp
7304         ../../gllib/utimecmp.c: In function ‘utimecmp’:
7305         ../../gllib/utimecmp.c:291:36: error: ‘~’ on a boolean expression \
7306           [-Werror=bool-operation]
7307                          time_t s = src_s & ~ (res == 2 * BILLION);
7308                                             ^
7309         ../../gllib/utimecmp.c:370:16: error: ‘~’ on a boolean expression \
7310           [-Werror=bool-operation]
7311                src_s &= ~ (res == 2 * BILLION);
7312                         ^
7313         * lib/utimecmp.c (utimecmp): Do not apply "~" to a boolean.
7314         Instead, make it explicit that we intend to apply it to 0 or 1.
7316 2016-10-10  Norihiro Tanaka  <noritnk@kcn.ne.jp>
7318         dfa: save memory for states
7319         * src/dfa (dfaexec_main): Beginning of dfa execution, release caches of
7320         states if dfa has a lot of caches.
7322 2016-10-10  Eli Zaretskii  <eliz@gnu.org>
7324         wchar, wctype-h: fix for MinGW 3.22.2
7325         * lib/wchar.in.h [__MINGW32__]: Add one more condition for
7326         special invocation, to fix issues with MinGW 3.22.2 wchar.h
7327         when included from <string.h>.
7328         * lib/wctype.in.h [__MINGW32__]: Add special invocation
7329         convention for MinGW 3.22.2, to solve issues with their
7330         wctype.h when included from <ctype.h>.
7332 2016-10-05  Jim Meyering  <meyering@fb.com>
7334         long-options: avoid new GCC 7 warning from -Wimplicit-fallthrough
7335         * lib/long-options.c (parse_long_options): Add a break statement
7336         to avoid this new warning/failure:
7337         $ CFLAGS='-O -Werror=implicit-fallthrough' ./gnulib-tool \
7338           --create-testdir --dir=/t/x --with-tests --test long-options
7339         ../../gllib/long-options.c: In function ‘parse_long_options’:
7340         ../../gllib/long-options.c:66:12: error: this statement may \
7341           fall through [-Werror=implicit-fallthrough]
7342                    (*usage_func) (EXIT_SUCCESS);
7343                    ~^~~~~~~~~~~~~~~~~~~~~~~~~~~
7345         utimecmp: avoid new GCC 7 warning from -Wbool-operation
7346         Testing this module would fail when using GCC 7 like this:
7347         $ CFLAGS='-O -Werror=bool-operation' ./gnulib-tool --create-testdir \
7348           --dir=/tmp/x --with-tests --test utimecmp
7349         ../../gllib/utimecmp.c: In function ‘utimecmp’:
7350         ../../gllib/utimecmp.c:291:36: error: ‘~’ on a boolean expression \
7351           [-Werror=bool-operation]
7352                          time_t s = src_s & ~ (res == 2 * BILLION);
7353                                             ^
7354         ../../gllib/utimecmp.c:370:16: error: ‘~’ on a boolean expression \
7355           [-Werror=bool-operation]
7356                src_s &= ~ (res == 2 * BILLION);
7357                         ^
7358         * lib/utimecmp.c (utimecmp): Do not apply "~" to a boolean.
7359         Instead, make it explicit that we intend to apply it to 0 or 1.
7361 2016-10-03  Pádraig Brady  <P@draigBrady.com>
7363         quotearg: minimize shell quoting using double quotes
7364         * lib/quotearg.c (quotearg_buffer_restyled): If an ASCII single
7365         quote in encountered then use double quotes (c style quoting)
7366         when possible, as it simplifies the quoting.
7367         * tests/test-quotearg-simple.c: Add test cases.
7368         * tests/test-quotearg.h (use_quotearg_buffer): Adjust to account
7369         for the fact we now may write beyond the returned length.
7371 2016-10-02  Jim Meyering  <meyering@fb.com>
7373         vasnprintf.c: avoid spurious warning from GCC 7
7374         The presence of cpp directives renders this "FALLTHROUGH" comment
7375         ineffective, so does not suppress the -Wimplicit-fallthrough warning
7376         from GCC 7 built from git on 2016-10-02.
7377         * lib/vasnprintf.c (VASNPRINTF): Move comment down past two cpp
7378         directives, so that it takes effect once again.  This is clearly
7379         not a proper change, and I will revert it once this bug is fixed:
7380         https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77817
7382 2016-10-01  Jim Meyering  <meyering@fb.com>
7384         getprogname: correct the test for a __progname variable
7385         * m4/getprogname.m4 (gl_FUNC_GETPROGNAME): Use AC_CACHE_CHECK
7386         and AC_LINK_IFELSE to check for a global __progname.  If found,
7387         define HAVE_VAR___PROGNAME.
7388         * lib/getprogname.c (getprogname): Reflect the new name of the
7389         feature- checked preprocessor symbol:
7390         s/HAVE_DECL___PROGNAME/HAVE_VAR___PROGNAME/
7392 2016-09-28  Jim Meyering  <meyering@fb.com>
7394         u8-uctomb-aux.c: build: placate GCC 7's new -Wimplicit-fallthrough
7395         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Mark each end of
7396         fall-through case with a /* fallthrough */ comment.
7398         dfa: build: avoid warning from GCC 7's new -Wimplicit-fallthrough
7399         * lib/dfa.c (dfassbuild): Mark the end of this case with a
7400         /* fallthrough */ comment.
7402         getprogname: avoid __progname vs program_invocation_short_name pitfall
7403         I.e., don't let the OpenBSD 5.1 fix induce failure when using newer
7404         glibc.  Would have caused failure with Fedora 25's glibc-2.24-3, but
7405         not with Fedora 24's glibc-2.23.1-10.
7406         * lib/getprogname.c (__progname): Move this declaration down...
7407         (getprogname): ... into the #elif block where used, and make it
7408         explicitly "extern".
7410         getprogname: port to OpenBSD 5.1
7411         * lib/getprogname.c (__progname) [HAVE_DECL___PROGNAME]: Declare.
7412         (getprogname) [HAVE_DECL___PROGNAME]: Return __progname or "?".
7413         * modules/getprogname (configure.ac): Move most of this code...
7414         * m4/getprogname.m4 (gl_FUNC_GETPROGNAME): ... to this function,
7415         increment serial number, and add a test for __progname.
7416         https://bugs.gnu.org/24562
7417         Reported by Nelson H. F. Beebe.
7419 2016-09-24  Paul Eggert  <eggert@cs.ucla.edu>
7421         sched: port to GCC 6.2.1 on macOS Sierra
7422         Problem reported by Denis Davydov in:
7423         http://lists.gnu.org/r/bug-gnulib/2016-09/msg00056.html
7424         * lib/sched.in.h [HAVE_SYS_CDEFS_H]:
7425         Include <sys/cdefs.h> before <sched.h>.
7426         * m4/nproc.m4 (gl_PREREQ_NPROC): Include errno.h before sched.h,
7427         so that we needn’t worry about the sched.h include bug here.
7428         * m4/sched_h.m4 (gl_SCHED_H): Check for sys/cdefs.h,
7429         and include it before <sched.h> if it exists, when
7430         checking for <sched.h>.
7432         tests/init.sh: port Alpine fix to AIX 7.1
7433         * tests/init.sh (compare_): When attempting to use diff -U3,
7434         prefer diff -u to -U3 to -c to plain diff.  Do not insist on
7435         diff -u not outputting a space after leading '+', as the users
7436         of 'compare' should not be that picky about its output format.
7437         In the AIX 7.1 case, return with diff exit status (or with 2 if
7438         trouble), instead of some random nonzero exit status.
7439         * tests/test-init.sh (test_compare): Remove space after leading
7440         '+', so that AIX 7.1 'diff' passes the test.
7442 2016-09-22  Paul Eggert  <eggert@cs.ucla.edu>
7444         nl_langinfo: pacify GCC
7445         * lib/nl_langinfo.c (ctype_codeset): Remove unused local.
7446         (rpl_nl_langinfo): Cast string literals to char *, to pacify GCC.
7448         stdint: also set GL_GENERATE_LIMITS_H
7449         Problem reported by Jim Meyering in:
7450         http://lists.gnu.org/r/bug-gnulib/2016-09/msg00052.html
7451         * m4/stdint.m4 (gl_STDINT_H): Also redo the AM_CONDITIONAL.
7453         limits-h, stdint: Don't assume extensions, fix typo
7454         * m4/limits-h.m4 (gl_LIMITS_H):
7455         * m4/stdint.m4 (gl_STDINT_H):
7456         Don't assume AC_USE_SYSTEM_EXTENSIONS.
7457         * m4/stdint.m4 (gl_STDINT_H): Fix typo in setting of LIMITS_H,
7458         reported by Jim Meyering in:
7459         http://lists.gnu.org/r/bug-gnulib/2016-09/msg00050.html
7461 2016-09-21  Jim Meyering  <meyering@fb.com>
7463         getprogname: port to AIX
7464         * lib/getprogname.c (getprogname) [_AIX]: Use getpid, getprocs64
7465         and strdup to obtain a short program name string.  Using code from
7466         Bruno Haible and an idea from Bastien ROUCARIÈS, in
7467         https://lists.gnu.org/r/bug-gnulib/2010-12/msg00249.html
7468         Assaf Gordon reported that this new file would fail to compile on
7469         AIX-7.1 32bit.
7471 2016-09-16  Paul Eggert  <eggert@cs.ucla.edu>
7473         extensions: fix typo in comment
7474         * m4/extensions.m4: Sync from Autoconf master.
7476         stdint: support new _WIDTH macros
7477         * doc/posix-headers/stdint.texi: Document this.
7478         * lib/stdint.in.h: Add support for INTMAX_WIDTH. etc.
7479         * m4/stdint.m4 (gl_STDINT_H): Require gl_LIMITS_H.  Check for
7480         support for INTMAX_WIDTH, etc. as well as for support for just C99.
7481         * modules/stdint (Depends-on): Add limits-h.
7482         (Makefile.am): Substitute HAVE_C99_STDINT_H.
7483         * modules/stdint-tests (Depends-on): Add extensions, so that
7484         INTMAX_MAX etc. are defined.
7485         * tests/test-stdint.c: Verify the new macros.
7487         limits-h: new module
7488         This adds ISO/IEC TS 18661-1:2014 support to limits.h.
7489         * MODULES.html.sh: Add limits-h,and move size_max to stdint section.
7490         * doc/posix-headers/limits.texi: Document new module.
7491         * lib/limits.in.h, m4/limits-h.m4, modules/limits-h:
7492         * modules/limit-h-tests, tests/test-limits-h.c: New files.
7494         stdio: don't redefine __USE_MINGW_ANSI_STDIO
7495         * m4/stdio_h.m4 (gl_STDIO_H): Don't define __USE_MINGW_ANSI_STDIO
7496         if it is already defined.  Apparently GNU Emacs relies on this.  See:
7497         http://lists.gnu.org/r/emacs-devel/2016-09/msg00416.html
7499 2016-09-15  Eric Blake  <eblake@redhat.com>
7501         sys_types: avoid glibc 2.25 warnings about major()
7502         * m4/sys_types_h.m4 (AC_HEADER_MAJOR): Replace broken version in
7503         older autoconf.
7504         * doc/posix-headers/sys_types.texi (sys/types.h): Document fix.
7505         * doc/glibc-functions/gnu_dev_major.texi (gnu_dev_major): Likewise.
7506         * doc/glibc-functions/gnu_dev_makedev.texi (gnu_dev_makedev): Likewise.
7507         * doc/glibc-functions/gnu_dev_minor.texi (gnu_dev_minor): Likewise.
7509         mountlist: include sysmacros.h for glibc
7510         * m4/mountlist.m4 (gl_PREREQ_MOUTLIST_EXTRA): Include
7511         AC_HEADER_MAJOR.
7512         * lib/mountlist.c (includes): Use correct headers.
7514 2016-09-15  Paul Eggert  <eggert@cs.ucla.edu>
7516         extensions: port to more ISO C TSes
7517         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Sync from Autoconf
7518         master, to add support for more recent ISO C TRs and TSes.
7520 2016-09-13  Paul Eggert  <eggert@cs.ucla.edu>
7522         intprops: new macro TYPE_WIDTH
7523         * lib/intprops.h (TYPE_WIDTH): New macro.
7524         (TYPE_MAXIMUM, _GL_SIGNED_INT_MAXIMUM, INT_STRLEN_BOUND):
7525         * lib/ftoastr.h (_GL_FLOAT_DIG_BITS_BOUND):
7526         * lib/parse-datetime.y (parse_datetime2):
7527         Use it.
7529         extensions: port to recent ISO C TRs
7530         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
7531         Sync from Autoconf master, to add support for recent ISO C TRs.
7532         * m4/stdio_h.m4 (gl_STDIO_H): Define __USE_MINGW_ANSI_STDIO here,
7533         since AC_USE_SYSTEM_EXTENSIONS no longer does that as
7534         the MinGW option is not an extension.
7536 2016-09-11  Paul Eggert  <eggert@cs.ucla.edu>
7538         dfa: port to Solaris 9
7539         Problems reported by Tom G. Christensen in:
7540         http://lists.gnu.org/r/bug-gnulib/2016-09/msg00031.html
7541         * modules/dfa (Depends-on): Add isblank.
7542         * modules/dfa-tests (dfa_match_aux_LDADD):
7543         Rename from test_stat_LDADD, to fix typo.
7544         * tests/dfa-match.sh: Don't require 'timeout'; use it if available.
7546 2016-09-10  Jim Meyering  <meyering@fb.com>
7548         strverscmp: avoid link failure on OS X
7549         * lib/strverscmp.c [!weak_alias]: Define __strverscmp to strverscmp.
7550         Reported by Assaf Gordon in https://bugs.gnu.org/24256#26
7552 2016-08-16  Jim Meyering  <meyering@fb.com>
7554         dfa: new module, importing grep's DFA matcher
7555         Since grep's DFA matcher is now being used by two gnulib-enabled
7556         projects, grep and sed, it makes sense to version-control its
7557         sources and unit tests in one place: here.
7558         * modules/dfa: New module.
7559         * modules/dfa-tests: New file.
7560         * lib/dfa.c: New file, from grep.
7561         * lib/dfa.h: Likewise.
7562         * lib/localeinfo.c: Likewise.
7563         * lib/localeinfo.h: Likewise.
7564         * tests/dfa-match-aux.c: Likewise.
7565         * tests/dfa-invalid-char-class.sh: Likewise.
7566         * tests/dfa-match.sh: Likewise, with minor changes.
7567         * MODULES.html.sh (Misc): Add "dfa" to this list.
7569 2016-09-09  Jim Meyering  <meyering@fb.com>
7571         getprogname-tests: don't depend on assert-h
7572         * modules/getprogname-tests (Depends-on): Remove assert-h.
7573         It was not needed, and in fact would cause build failure for
7574         coreutils on some systems.  Reported by Assaf Gordon in https:
7575         //lists.gnu.org/r/coreutils/2016-09/msg00016.html
7577 2016-09-07  Jim Meyering  <meyering@fb.com>
7579         getprogname-tests: work also when EXEEXT is nonempty
7580         * modules/getprogname-tests (Makefile.am): Define EXEEXT.
7581         * tests/test-getprogname.c (main): Use it.
7582         Suggested by Gisle Vanem.
7584 2016-09-07  Gisle Vanem  <gvanem@yahoo.no>
7586         getprogname: fix errors in previous change
7587         * lib/getprogname.c (getprogname) [HAVE_GETEXECNAME]:
7588         s/program_invocation_name/base/
7589         [HAVE_DECL___ARGV]: Handle NULL __argv or __argv[0].
7591 2016-09-08  Pádraig Brady  <P@draigBrady.com>
7593         parse-datetime: restrict debug output to input string
7594         * lib/parse-datetime.y (parse_datetime2): If we parse
7595         all of the input but determine it's invalid, ensure
7596         we don't output the now invalid input pointer.
7597         This issue was seen with `date -d 'now +1'`.
7599 2016-09-07  Paul Eggert  <eggert@cs.ucla.edu>
7601         flexmember: new macro FLEXALIGNOF
7602         * lib/flexmember.h: Include <stddef.h>, for offsetof.
7603         (FLEXALIGNOF): Rename from _GL_XALLOC_ALIGNOF, as Emacs can use
7604         this macro.  Update comments.
7606 2016-09-07  Jim Meyering  <meyering@fb.com>
7608         getprogname: port to systems with __argv (mingw, msvc)
7609         * lib/getprogname.c (getprogname): Include "dirname.h" and use
7610         last_component: more general than open coding it with hard-coded "/".
7611         * lib/getprogname.h (getprogname): Prefer "char const *" consistently.
7612         * modules/getprogname (Depends-on): Add dirname-lgpl.
7613         (configure.ac): Check for __argv in <stdlib.h>.
7614         * modules/getprogname-tests: New file.
7615         * tests/test-getprogname.c: New file.
7616         Suggested by Gisle Vanem in
7617         https://lists.gnu.org/r/bug-gnulib/2016-09/msg00014.html
7619 2016-09-07  Paul Eggert  <eggert@cs.ucla.edu>
7621         flexmember: port better to GCC + valgrind
7622         With a char[] flexible array member in a struct with nontrivial
7623         alignment, GCC-generated code can access past the end of the
7624         array, because GCC assumes there are padding bytes to get the
7625         struct aligned.  So the common idiom of malloc (offsetof (struct
7626         s, m), n) does not properly allocate an n-byte trailing member, as
7627         malloc’s argument should be the next multiple of alignof (struct s).
7628         See GCC Bug#66661: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66661
7629         Although C11 apparently permits this GCC optimization (i.e., there
7630         was a bug in Gnulib not in GCC), possibly this is a defect in C11.
7631         See the thread containing:
7632         https://gcc.gnu.org/ml/gcc-patches/2016-09/msg00317.html
7633         * lib/flexmember.h: New file.
7634         * lib/fnmatch.c, lib/fts.c, lib/glob.c, lib/idcache.c:
7635         * lib/localename.c, lib/time_rz.c:
7636         Include flexmember.h.
7637         * lib/fnmatch_loop.c (struct patternlist):
7638         * lib/localename.c (struct hash_node):
7639         Use FLEXIBLE_ARRAY_MEMBER.
7640         * lib/fnmatch_loop.c (EXT):
7641         * lib/fts.c (fts_alloc):
7642         * lib/glob.c (glob_in_dir):
7643         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
7644         * lib/localename.c (gl_lock_define_initialized):
7645         * lib/time_rz.c (tzalloc):
7646         Use FLEXSIZEOF instead of offsetof.
7647         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
7648         Check that the size of the struct can be taken.
7649         * modules/flexmember (Files): Add lib/flexmember.h.
7650         * modules/fnmatch, modules/glob, modules/localename (Depends-on):
7651         Add flexmember.
7653 2016-09-06  Paul Eggert  <eggert@cs.ucla.edu>
7655         getprogname: port to Solaris 10
7656         * lib/getprogname.c: Include stdlib.h, for getexecname decl.
7657         (getprogname) [HAVE_GETEXECNAME]: Use that, for Solaris 10.
7658         * m4/getprogname.m4 (gl_FUNC_GETPROGNAME): Check for getexecname.
7660         stdalign: correct mistake in alignof doc
7661         Problem reported by Joseph Myers in:
7662         https://gcc.gnu.org/ml/gcc-patches/2016-09/msg00340.html
7663         * doc/posix-headers/stdalign.texi: Do not imply that C11 prohibits
7664         alignof(S) where S is a structure containing a flexible array
7665         member.  The Gnulib substitute does not support this, but C11 does.
7667 2016-08-18  Pino Toscano  <ptoscano@redhat.com>
7669         main.mk: remove sc_program_name, since there is no more need to
7670         use set_program_name in tools (getprogname is enough for most
7671         of the cases).
7672         * cfg.mk (local-checks-to-skip): Remove sc_program_name.
7673         * top/maint.mk (sc_program_name): Remove.
7675 2016-08-18  Pino Toscano  <ptoscano@redhat.com>
7677         Port tests away from progname, since modules that need the
7678         program name already depend on getprogname.
7679         * modules/acl-tests (Depends-on): Remove progname.
7680         * modules/argmatch (Depends-on): Likewise.
7681         * modules/argmatch-tests (Depends-on): Likewise.
7682         * modules/argp-tests (Depends-on): Likewise.
7683         * modules/argp-version-etc-tests (Depends-on): Likewise.
7684         * modules/array-list-tests (Depends-on): Likewise.
7685         * modules/array-oset-tests (Depends-on): Likewise.
7686         * modules/avltree-list-tests (Depends-on): Likewise.
7687         * modules/avltree-oset-tests (Depends-on): Likewise.
7688         * modules/avltreehash-list-tests (Depends-on): Likewise.
7689         * modules/carray-list-tests (Depends-on): Likewise.
7690         * modules/copy-file-tests (Depends-on): Likewise.
7691         * modules/exclude-tests (Depends-on): Likewise.
7692         * modules/fchownat-tests (Depends-on): Likewise.
7693         * modules/fdopendir-tests (Depends-on): Likewise.
7694         * modules/filenamecat-tests (Depends-on): Likewise.
7695         * modules/fstatat-tests (Depends-on): Likewise.
7696         * modules/fstrcmp-tests (Depends-on): Likewise.
7697         * modules/linked-list-tests (Depends-on): Likewise.
7698         * modules/linkedhash-list-tests (Depends-on): Likewise.
7699         * modules/mkdirat-tests (Depends-on): Likewise.
7700         * modules/nonblocking-pipe-tests (Depends-on): Likewise.
7701         * modules/nonblocking-socket-tests (Depends-on): Likewise.
7702         * modules/obstack-printf-tests (Depends-on): Likewise.
7703         * modules/openat-tests (Depends-on): Likewise.
7704         * modules/parse-datetime-tests (Depends-on): Likewise.
7705         * modules/pipe-filter-gi-tests (Depends-on): Likewise.
7706         * modules/pipe-filter-ii-tests (Depends-on): Likewise.
7707         * modules/quotearg-simple-tests (Depends-on): Likewise.
7708         * modules/quotearg-tests (Depends-on): Likewise.
7709         * modules/rbtree-list-tests (Depends-on): Likewise.
7710         * modules/rbtree-oset-tests (Depends-on): Likewise.
7711         * modules/rbtreehash-list-tests (Depends-on): Likewise.
7712         * modules/spawn-pipe-tests (Depends-on): Likewise.
7713         * modules/system-quote-tests (Depends-on): Likewise.
7714         * modules/uniname/uniname-tests (Depends-on): Likewise.
7715         * modules/uninorm/nfc-tests (Depends-on): Likewise.
7716         * modules/uninorm/nfd-tests (Depends-on): Likewise.
7717         * modules/uninorm/nfkc-tests (Depends-on): Likewise.
7718         * modules/uninorm/nfkd-tests (Depends-on): Likewise.
7719         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Likewise.
7720         * modules/unistdio/u16-vsprintf-tests (Depends-on): Likewise.
7721         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Likewise.
7722         * modules/unistdio/u32-vsprintf-tests (Depends-on): Likewise.
7723         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Likewise.
7724         * modules/unistdio/u8-vsprintf-tests (Depends-on): Likewise.
7725         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Likewise.
7726         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Likewise.
7727         * modules/unlinkat-tests (Depends-on): Likewise.
7728         * modules/version-etc-tests (Depends-on): Likewise.
7729         * modules/xalloc-die-tests (Depends-on): Likewise.
7730         * modules/xmemdup0-tests (Depends-on): Likewise.
7731         * modules/xprintf-posix-tests (Depends-on): Likewise.
7732         * modules/xvasprintf-tests (Depends-on): Likewise.
7733         * tests/test-argmatch.c: Do not include progname.h.
7734         (main) Stop calling set_program_name.
7735         * tests/test-argp-version-etc.c: Likewise.
7736         * tests/test-argp.c: Likewise.
7737         * tests/test-argv-iter.c: Likewise.
7738         * tests/test-array_list.c: Likewise.
7739         * tests/test-array_oset.c: Likewise.
7740         * tests/test-avltree_list.c: Likewise.
7741         * tests/test-avltree_oset.c: Likewise.
7742         * tests/test-avltreehash_list.c: Likewise.
7743         * tests/test-carray_list.c: Likewise.
7744         * tests/test-copy-acl.c: Likewise.
7745         * tests/test-copy-file.c: Likewise.
7746         * tests/test-exclude.c: Likewise.
7747         * tests/test-fchownat.c: Likewise.
7748         * tests/test-fdopendir.c: Likewise.
7749         * tests/test-filenamecat.c: Likewise.
7750         * tests/test-fstatat.c: Likewise.
7751         * tests/test-fstrcmp.c: Likewise.
7752         * tests/test-linked_list.c: Likewise.
7753         * tests/test-linkedhash_list.c: Likewise.
7754         * tests/test-mkdirat.c: Likewise.
7755         * tests/test-nonblocking-pipe-main.c: Likewise.
7756         * tests/test-nonblocking-socket-main.c: Likewise.
7757         * tests/test-obstack-printf.c: Likewise.
7758         * tests/test-openat.c: Likewise.
7759         * tests/test-parse-datetime.c: Likewise.
7760         * tests/test-pipe-filter-gi1.c: Likewise.
7761         * tests/test-pipe-filter-gi2-main.c: Likewise.
7762         * tests/test-pipe-filter-ii1.c: Likewise.
7763         * tests/test-pipe-filter-ii2-main.c: Likewise.
7764         * tests/test-quotearg-simple.c: Likewise.
7765         * tests/test-quotearg.c: Likewise.
7766         * tests/test-rbtree_list.c: Likewise.
7767         * tests/test-rbtree_oset.c: Likewise.
7768         * tests/test-rbtreehash_list.c: Likewise.
7769         * tests/test-sameacls.c: Likewise.
7770         * tests/test-set-mode-acl.c: Likewise.
7771         * tests/test-spawn-pipe-main.c: Likewise.
7772         * tests/test-system-quote-main.c: Likewise.
7773         * tests/test-unlinkat.c: Likewise.
7774         * tests/test-version-etc.c: Likewise.
7775         * tests/test-xalloc-die.c: Likewise.
7776         * tests/test-xfprintf-posix.c: Likewise.
7777         * tests/test-xmemdup0.c: Likewise.
7778         * tests/test-xprintf-posix.c: Likewise.
7779         * tests/test-xvasprintf.c: Likewise.
7780         * tests/uniname/test-uninames.c: Likewise.
7781         * tests/uninorm/test-u32-nfc-big.c: Likewise.
7782         * tests/uninorm/test-u32-nfd-big.c: Likewise.
7783         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
7784         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
7785         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
7786         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
7787         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
7788         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
7789         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
7790         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
7791         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
7792         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
7793         * tests/test-c-stack.c: (program_name): Do not define.
7794         (main): Do not set program_name.
7795         * tests/test-closein.c: Likewise.
7796         * tests/test-xstrtol.c: Likewise.
7797         * tests/test-yesno.c: Likewise.
7799 2016-08-18  Pino Toscano  <ptoscano@redhat.com>
7801         Port modules to use getprogname explicitly, instead of requiring
7802         progname to be used (or program_name to be provided).
7803         * lib/argmatch.c: Do not include progname.h.
7804         [TEST] (program_name): Do not define.
7805         [TEST] (main): Call getprogname instead of using program_name.
7806         * lib/c-stack.c: Do not include progname.h.
7807         (program_name): Do not define.
7808         (die): Call getprogname instead of using program_name.
7809         * lib/chdir-long.c: Do not include progname.h.
7810         [TEST_CHDIR] (main): Do not set program_name.
7811         * lib/error.c [!_LIBC]: Include progname.h.
7812         [!_LIBC] (program_name): Define using getprogname.
7813         * lib/euidaccess.c: Do not include progname.h.
7814         [TEST] (main): Do not set program_name.
7815         * lib/git-merge-changelog.c: Include getprogname.h instead of
7816         progname.h.
7817         (usage): Call getprogname instead of using program_name.
7818         (main): Likewise.  Stop calling set_program_name.
7819         * lib/group-member.c: Do not include progname.h.
7820         [TEST] (main): Do not set program_name.
7821         * modules/argmatch (Depends-on): Add getprogname.
7822         * modules/c-stack (Depends-on): Likewise.
7823         * modules/error (Depends-on): Likewise.
7824         * modules/git-merge-changelog (Depends-on): Likewise.
7825         Also remove progname.
7827 2016-09-05  Pino Toscano  <ptoscano@redhat.com>
7829         * NEWS: Document the deprecation of the 'progname' module.
7831 2016-08-18  Pino Toscano  <ptoscano@redhat.com>
7833         getprogname: new module
7834         This provides a LGPL module for getting the name of the current
7835         program, using the same API found on *BSD systems.
7836         * lib/getprogname.c, lib/getprogname.h, m4/getprogname.m4:
7837         * modules/getprogname: New files.
7838         * MODULES.html.sh (Misc): Add getprogname.
7840 2016-09-02  Jim Meyering  <meyering@fb.com>
7842         manywarnings: add -fno-common
7843         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add -fno-common
7844         to the list.  Quoting the manual, "Compiling with -fno-common is
7845         useful on targets for which it provides better performance, or if
7846         you wish to verify that the program will work on other systems that
7847         always treat uninitialized variable declarations this way [putting
7848         it in the data section]."  If diffutils had been using this sooner,
7849         it would have prevented this duplicate declaration issue:
7850         http://git.sv.gnu.org/cgit/diffutils.git/commit/?id=v3.4-10-gc2dc91f
7852 2016-08-31  Simon Josefsson  <simon@josefsson.org>
7854         parse-datetime: Fix typo.
7855         * lib/parse-datetime.y (parse_datetime2): Fix typo.
7857 2016-08-30  Paul Eggert  <eggert@cs.ucla.edu>
7859         intprops: tune INT_NEGATE_OVERFLOW for GCC 5 and 6
7860         * lib/intprops.h (INT_NEGATE_OVERFLOW): Tune for platforms like
7861         GCC 5 and 6 that have __builtin_sub_overflow but not
7862         __builtin_sub_overflow_p.  With the recent changes, these
7863         platforms are a tiny bit faster with the INT_NEGATE_RANGE_OVERFLOW
7864         implementation than with INT_SUBTRACT_OVERFLOW implementation,
7865         since the former needs just one runtime comparison whereas the
7866         latter needs two.
7868         strverscmp: sync with glibc
7869         Although this doesn't exactly synchronize with glibc
7870         byte-for-byte, it makes the code behave the same as glibc.
7871         * lib/strverscmp.c (S_I, S_F, S_Z): Now masks, not powers of 2.
7872         (ISDIGIT): Remove, as glibc is sticking with isdigit, and the
7873         difference shouldn't matter in practical use.  All uses changed
7874         back to isdigit.
7875         (__strverscmp, strverscmp): Use new glibc method for weak aliases.
7876         (next_state): Now unsigned char array; redo elements.
7877         (result_type): Now signed char array; redo elements.
7878         (__strverscmp): Fix glibc bug 9913 by using new states.
7879         * tests/test-strverscmp.c (main): Test glibc bug 9913.
7881 2016-08-29  Jim Meyering  <meyering@fb.com>
7883         xalloc-oversized.h: port __builtin_mul_overflow change to GCC 6.2.0
7884         * lib/xalloc-oversized.h: Port this change to GCC 6.2.0, too,
7885         similarly to how it was done to intprops.h.
7887 2016-08-29  Paul Eggert  <eggert@cs.ucla.edu>
7889         intprops.h: port recent changes to GCC 6.2.0
7890         * lib/intprops.h (__has_builtin): Move earlier.
7891         (_GL_HAS_BUILTIN_OVERFLOW): Rename from
7892         _GL_HAS_BUILTIN_OVERFLOW_WITH_NULL and don't worry about whether
7893         the last argument can be null.  All uses changed.
7894         (_GL_HAS_BUILTIN_OVERFLOW_P): Also test __has_builtin.
7895         (_GL_ADD_OVERFLOW, _GL_SUBTRACT_OVERFLOW, _GL_MULTIPLY_OVERFLOW):
7896         Don't try to use 3rd arg null, as this doesn't work on GCC 6.2.0
7897         and it's not clear which GCC versions it works for.
7898         (_GL_INT_OP_WRAPV): Use _GL_HAS_BUILTIN_OVERFLOW instead of
7899         its definiens.
7901         intprops.h: use __typeof__ with GCC 7
7902         * lib/intprops.h (_GL_ADD_OVERFLOW, _GL_SUBTRACT_OVERFLOW)
7903         (_GL_MULTIPLY_OVERFLOW): Use __typeof__ as in the GCC manual.
7904         This avoids computing the expression's value (which might overflow!).
7906 2016-08-29  Jim Meyering  <meyering@fb.com>
7908         intprops.h, xalloc-oversized.h: work with gcc 7
7909         In gcc 6, __builtin_add_overflow, __builtin_sub_overflow and
7910         __builtin_mul_overflow each accept a NULL pointer as the third
7911         argument.  However in gcc 7, that is no longer accepted.
7912         Instead, one must use the "_p"-suffixed names, with which, the
7913         third parameter is no longer a pointer.
7914         * lib/intprops.h (_GL_HAS_BUILTIN_OVERFLOW_WITH_NULL): Correct
7915         the definition: not true for gcc 7 and subsequent.
7916         (_GL_HAS_BUILTIN_OVERFLOW_P): Define.
7917         (_GL_ADD_OVERFLOW, _GL_SUBTRACT_OVERFLOW, _GL_MULTIPLY_OVERFLOW):
7918         Provide new definitions for gcc 7 and subsequent.
7919         * lib/xalloc-oversized.h (xalloc_oversized): Provide a definition
7920         that works with gcc-7.
7922         intprops.h: fix missing-backslash problems
7923         * lib/intprops.h (_GL_ADD_OVERFLOW): Add backslash.
7924         (_GL_SUBTRACT_OVERFLOW,_GL_MULTIPLY_OVERFLOW): Likewise.
7926 2016-08-24  Paul Eggert  <eggert@cs.ucla.edu>
7928         intprops: fix paren typo on old platforms
7929         Problem reported by John E. Malmberg in: https://bugs.gnu.org/24300#13
7930         * lib/intprops.h (_GL_INT_OP_WRAPV_LONGISH)
7931         [__GNUC__ < 5 && !__has_builtin (__builtin_add_overflow)
7932         && (__STDC_VERSION__ < 201112 || _GL__GENERIC_BOGUS)
7933         && !defined LLONG_MAX]:
7934         Remove stray paren.
7936         intprops: port to OpenVMS
7937         Problem reported by John E. Malmberg in: https://bugs.gnu.org/24300
7938         * doc/posix-headers/limits.texi: Document the problem.
7939         * lib/intprops.h (LLONG_MAX, LLONG_MIN) [__INT64_MAX]:
7940         Define if not already defined.
7942 2016-08-19  Assaf Gordon  <assafgordon@gmail.com>
7944         parse-datetime: improve debug implementation
7945         Follow-up to commit 12ad79069 ("add optional debug printing").
7946         Improve parse-datetime's debug implementation: remove macros,
7947         replace global debug flag variable with a function parameter,
7948         use nstrftime for formatting.
7949         See: https://lists.gnu.org/r/bug-gnulib/2016-08/msg00021.html
7950         * lib/parse-datetime.h: (parse_datetime_debug): Remove global extern.
7951         (parse_datetime2): New function, accepts 'flags' parameter, supporting
7952         debug flag. Existing interface 'parse_datetime' left unmodified.
7953         * lib/parse-datetime.c: (parse_datetime_debug): Remove global variable.
7954         (struct parser_control): add 'parse_datetime_debug' member variable.
7955         (parse_datetime): Call new function 'parse_datetime2' without debug.
7956         (parse_datetime2): Adapted from previous 'parse_datetime', initialize
7957         pc.parse_datetime_debug variable as needed.
7958         (to_year): Accept new flags parameter, instead of using global variable.
7959         (debug_print_current_time,debug_print_relative_time,debug_mktime_not_ok):
7960         use struct 'debug' variable instead of global variable.
7961         (DEBUG,DEBUG_PRINT_CURRENT_TIME,DEBUG_PRINT_RELATIVE_TIME,
7962         DEBUG_MKTIME_NOT_OK,PROGRESS,PROGRESS0): Remove macros. Call
7963         correspnding functions directly instead of using macros.
7964         * modules/parse-datetime: Add gnulib's strftime module.
7966 2016-08-19  Daniel Richard G.  <skunk@iSKUNK.ORG>
7968         c-strcase-tests: port to EBCDIC
7969         * tests/test-c-strncasecmp.c: Allow two c_strncasecmp calls
7970         which assume ASCII encoding semantics to run only in ASCII
7971         mode, as they fail in EBCDIC.
7973         sigpipe-tests: fix typo
7974         * tests/test-sigpipe.sh: C, not B.
7976 2016-08-18  Paul Eggert  <eggert@cs.ucla.edu>
7978         canonicalize-lgpl: fix errno after malloca fails
7979         This fixes a typo I recently introduced.  Suggested by Bruno Haible in:
7980         http://lists.gnu.org/r/bug-gnulib/2016-08/msg00039.html
7981         * lib/canonicalize-lgpl.c (__realpath):
7982         Don't assume malloca sets errno on failure.
7984 2016-08-17  Paul Eggert  <eggert@cs.ucla.edu>
7986         strtod: port errno handling to z/OS
7987         * lib/strtod.c (strtod): Save and restore errno more reliably.
7989 2016-08-17  Daniel Richard G.  <skunk@iSKUNK.ORG>
7991         strtod: port to z/OS
7992         * lib/strtod.c (strtod): Address a couple quirks in the z/OS
7993         implementation.
7995 2016-08-17  Paul Eggert  <eggert@cs.ucla.edu>
7997         strtod: port to z/OS
7998         * lib/strtod.c (strtod): Address a couple quirks in the z/OS
7999         implementation.
8001         regex, string: rename to avoid '__string'
8002         * lib/regex.h, lib/string.in.h: Do not use the identifier
8003         '__string', as it is effectively reserved by string.h on z/OS.
8005         c-strcase-tests, wcwidth-tests: depend on c-ctype
8006         * modules/c-strcase-tests, modules/wcwidth-tests (Depends-on):
8007         Add c-ctype.
8009 2016-08-17  Daniel Richard G.  <skunk@iSKUNK.ORG>
8011         thread: port to z/OS
8012         * lib/glthread/thread.c, lib/glthread/thread.h:
8013         Rudimentary gl_thread support for z/OS.
8015         maint: port tests to z/OS errno behavior
8016         * tests/test-nonblocking-reader.h:
8017         * tests/test-nonblocking-writer.h:
8018         Accommodate z/OS errno code preferences. (I believe this should
8019         still be within spec; IBM is good at following the letter if not
8020         the spirit of such things.)
8022         maint: preprocessor changes to support z/OS
8023         * lib/alloca.in.h, lib/fnmatch.c, lib/get-rusage-as.c:
8024         * lib/glob.c, lib/math.in.h, lib/ptsname_r.c:
8025         * tests/infinity.h, tests/nan.h, tests/test-canonicalize-lgpl.c:
8026         * tests/test-nonblocking-pipe.h:
8028         fclose, strstr-simple, wchar: port to z/OS
8029         * m4/fclose.m4, m4/strstr.m4, m4/wchar_h.m4:
8030         Changes to the Autoconf M4 code to support z/OS.  Note that
8031         fclose() is broken in a different way on z/OS than it is on other
8032         systems, thus the special-case in fclose.m4.
8034         iconv_open-utf-tests, iconv-tests: port to EBCDIC
8035         * tests/test-iconv-utf.c, tests/test-iconv.c:
8036         Added appropriately conditional #pragmas so that the test strings
8037         in test-iconv-utf.c are correctly interpreted in ASCII instead of
8038         EBCDIC (i.e. 'J' == 0x4A and not 0xD1). This issue could be
8039         addressed in a more portable way by simply rewriting all the ASCII
8040         literal characters as octal escapes, but then you would lose the
8041         partial readability that the strings have now. Also, iconv_open()
8042         on z/OS does not recognize "ISO-8859-1", but "ISO8859-1" works.
8044         c-strcase-tests, wcwidth-tests: port to EBCDIC
8045         * tests/test-c-strcasecmp.c: Include c-ctype.h.
8046         (main) [!C_CTYPE_ASCII]: Skip tests that assume ASCII.
8047         * tests/test-wcwidth.c: Likewise.
8049 2016-08-17  Paul Eggert  <eggert@cs.ucla.edu>
8051         stdbool: don't require _Bool for C++
8052         Problem reported by David Seifert in:
8053         http://lists.gnu.org/r/bug-gnulib/2016-06/msg00005.html
8054         * NEWS, doc/posix-headers/stdbool.texi (stdbool.h): Document this.
8055         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Make the check
8056         more-forgiving for C++, in that it requires only 'bool'.  Be a bit
8057         stricter about checking that bool and _Bool are compatible in C.
8059 2016-08-16  Paul Eggert  <eggert@cs.ucla.edu>
8061         getdelim: remove dependency on realloc-posix
8062         * lib/canonicalize-lgpl.c (alloc_failed)
8063         [!FUNC_REALPATH_WORKS || defined _LIBC]: New function,
8064         (__realpath) [!FUNC_REALPATH_WORKS || defined _LIBC]: Use it.
8065         Use __set_errno where needed, for consistency.
8066         * lib/getdelim.c (alloc_failed): New function.
8067         (getdelim): Use it.
8069 2016-08-09  Assaf Gordon  <assafgordon@gmail.com>
8071         parse-datetime: add optional debug printing
8072         Print parsing information, warnings, and errors to stderr.
8073         * lib/parse-datetime.h (parse_datetimte_debug): New global variable.
8074         * lib/parse-datetime.y:
8075         (DEBUG_*):  Macros calling debug functions if debugging is enabled.
8076         (PROGRESS*): Same as DEBUG, for progress reporting.
8077         (dbg_printf): Print message to stderr, with 'date' prefix.
8078         (struct parser_control): Add 'debug_*_seen' variables.
8079         (str_days): Converts day ordinal/number to string (e.g. 'last wed').
8080         (debug_print_current_time, debug_print_relateive_time): Prints the
8081         current/relative date/time value of parser_control.
8082         (YACC parser syntax): Print parsed parts with DEBUG_* macros.
8083         (to_year): Warn about 2-digit year parsing.
8084         (yylex):   Warn about unrecognized words.
8085         (get_effective_timezone): Returns current timezone in minutes.
8086         (debug_strf{time,date,datetime}): Convert 'struct tm' to string as
8087         clearly and unambigiously as possible.
8088         (debug_mktime_not_ok): Print detailed information about failed
8089         date/time values.
8090         (parse_datetime): Add DEBUG messages for failures, warnings. Add
8091         PROGRESS messages for status messages.
8092         * modules/parse-datetime: Add 'timegm', 'gettext-h' dependencies.
8094 2016-08-06  Jim Meyering  <meyering@fb.com>
8096         tests/init.sh: exclude dash with bad "local" semantics
8097         * tests/init.sh (gl_shell_test_script_): Add a function to
8098         eliminate a shell like "dash" (unlike bash, zsh) that has
8099         surprising/risky "local var='...'" semantics.  Inspired by
8100         the problem and discussion in https://bugs.gnu.org/24116#11.
8102 2016-08-02  Ján Tomko  <jtomko@redhat.com>
8104         maint.mk: expand the prohibit_doubled_word regex
8105         This check has a static list of words that are checked for
8106         repetitions.  Expand it before running the perl script to
8107         avoid using expensive captures.  This decreases the cost
8108         for libvirt from 1.66s to 0.66s.
8109         * top/maint.mk (prohibit_doubled_word_expanded_): Define.
8110         (sc_prohibit_doubled_word): Use it.
8112 2016-07-26  Ján Tomko  <jtomko@redhat.com>
8114         useless-if-before-free: skip non-matching lines early
8115         * build-aux/useless-if-before-free: First match each line with the
8116         simple/quick /\bif\b/ and reject if there is no match. This often
8117         saves the cost of the much more involved regular expression.
8118         For libvirt, this decreases the cost from 1.44s to 1.02s.
8120 2016-07-26  Ján Tomko  <jtomko@redhat.com>
8122         maint.mk: speed up sc_po_check
8123         sc_po_check would skip files based on their names, or on the
8124         existence of files with derived names. Rewrite it to use perl
8125         instead of shell to make the check faster.
8126         * top/maint.mk (perl_translatable_files_list_): Define.
8127         (sc_po_check): Use it.
8129 2016-07-30  Ján Tomko  <jtomko@redhat.com>
8131         maint.mk: speed up require_config_h_first
8132         Instead of spawning three processes per file,
8133         rewrite the check in perl and run it once for all the files.
8134         * top/maint.mk (perl_config_h_first_): Define.
8135         (sc_require_config_h_first): Use it in place of shell code.
8137 2016-07-26  Ján Tomko  <jtomko@redhat.com>
8139         maint.mk: speed up sc_po_check
8140         sc_po_check would skip files based on their names, or on the
8141         existence of files with derived names. Rewrite it to use perl
8142         instead of shell to make the check faster.
8143         * top/maint.mk (perl_translatable_files_list_): Define.
8144         (sc_po_check): Use it.
8146 2016-07-15  Paul Eggert  <eggert@cs.ucla.edu>
8148         obstack: pacify GCC 6 with -Wnull-dereference
8149         Problem reported by Assaf Gordon in:
8150         http://lists.gnu.org/r/bug-gnulib/2016-07/msg00028.html
8151         * lib/obstack.c, lib/obstack.h (obstack_alloc_failed_handler):
8152         Declare with __attribute_noreturn__.
8153         * lib/obstack.h (__attribute_noreturn__): New macro.
8155 2016-07-13  Eric Blake  <eblake@redhat.com>
8157         doc: mention glibc, OS X, Cygwin [S]SIZE_MAX buglet
8158         * doc/posix-headers/stdint.texi (stdint.h): Document the bugs.
8159         * doc/posix-headers/limits.texi (limits.h): Document the bugs.
8161 2016-07-13  Paul Eggert  <eggert@cs.ucla.edu>
8163         doc: mention glibc SSIZE_MAX buglet
8164         * doc/posix-headers/limits.texi (limits.h): Document the bug.
8166 2016-07-04  Martin Kletzander  <mkletzan@redhat.com>
8168         printf-posix: Fix mingw build
8169         Commit 54615b95ff238e235e806855efc46a9abad09f2e changed the regular
8170         expression for detecting C symbol prefixes but forgot to qoute square
8171         brackets in the command line arguments for grep.  That way when
8172         building with mingw the condition was false although it ought to be
8173         true instead.  In particular scenarios this led to the following
8174         compile error:
8176             Cannot export rpl_printf: symbol not found
8177             Cannot export rpl_scanf: symbol not found
8178             collect2: error: ld returned 1 exit status
8180         Fix this by properly quoting square brackets.
8182 2016-07-03  Paul Eggert  <eggert@cs.ucla.edu>
8184         mktime: call tzset as per POSIX
8185         Problem reported by Ludovic Courtès in:
8186         http://lists.gnu.org/r/bug-gnulib/2016-06/msg00068.html
8187         * lib/mktime.c (mktime) [!_LIBC && HAVE_TZSET]: Call tzset.
8188         * m4/mktime.m4 (gl_FUNC_MKTIME): Check for tzset.
8190 2016-06-26  Pádraig Brady  <P@draigBrady.com>
8192         fts: handle readdir() errors
8193         * lib/fts.c (fts_build): readdir(3) returns NULL when finished,
8194         but also upon error when it will also set errno.  Therefore
8195         flag the error case from readdir().  We treat the case where
8196         no items are read the same as if the dir can't be accessed,
8197         i.e. by setting fts_errno to FTS_DNR.
8199 2016-06-24  Paul Eggert  <eggert@cs.ucla.edu>
8201         intprops: port better to GCC 7
8202         GCC 7 __builtin_add_overflow supports a new usage form, where the
8203         last argument is a null pointer, and which merely returns 1 if an
8204         overflow would occur.  This is a constant expression if all
8205         arguments are constants, and should generate faster code when code
8206         needs to be generated.
8207         * lib/intprops.h (_GL_HAS_BUILTIN_OVERFLOW_WITH_NULL): New macro.
8208         (_GL_ADD_OVERFLOW, _GL_SUBTRACT_OVERFLOW, _GL_MULTIPLY_OVERFLOW):
8209         Use builtin operations if available.
8210         (INT_NEGATE_OVERFLOW): Prefer INT_SUBTRACT_OVERFLOW if builtin
8211         operations are available, as it's almost surely faster.
8213 2016-06-23  Paul Eggert  <eggert@cs.ucla.edu>
8215         intprops-test: port to GCC 6
8216         * tests/test-intprops.c: Ignore -Woverflow if any GCC version,
8217         since the bug is not fixed in GCC 6.1.
8219 2016-06-13  Paul Eggert  <eggert@cs.ucla.edu>
8221         xalloc-oversized: port to GCC 7; fewer warnings
8222         GCC 7 will have a better way to deal with integer overflow.
8223         Plus, fix a warnings problem reported by Tim Ruehsen in:
8224         http://lists.gnu.org/r/bug-gnulib/2016-06/msg00022.html
8225         * lib/xalloc-oversized.h (__xalloc_oversized): New macro.
8226         (xalloc_oversized): Use plain __builtin_mul_overflow if GCC 7 or later.
8227         For GCC 5, use __xalloc_oversized if both args are constants,
8228         or if pedantic.
8230 2016-06-08  Paul Eggert  <eggert@cs.ucla.edu>
8232         regex: port to Sun C
8233         Reported by Daiki Ueno.
8234         * lib/regcomp.c (regcomp, regerror): Use _Restrict_, not
8235         __restrict, in prototype.  This fixes a problem I introduced in
8236         the 2016-02-19 merge from glibc.
8238 2016-05-31  Paul Eggert  <eggert@cs.ucla.edu>
8240         stdbool: Restore __bool_true_false_are_defined check
8241         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL):
8242         __bool_true_false_are_defined is still defined, even with C++11.
8244 2016-05-31  David Seifert  <soap@gentoo.org>  (tiny change)
8246         stdbool: Port AC_CHECK_HEADER_STDBOOL to C++11
8247         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Port to C++11.
8249 2016-05-30  Paul Eggert  <eggert@cs.ucla.edu>
8251         Use GCC_LINT, not lint
8252         FreeBSD and Cygwin #define _Noreturn to empty if 'lint' is defined.
8253         Problem reported by Ken Brown in: http://bugs.gnu.org/23640
8254         * doc/posix-headers/stdnoreturn.texi (stdnoreturn.h):
8255         Document problem with lint and _Noreturn.
8256         * lib/diffseq.h (IF_LINT, IF_LINT2):
8257         * lib/fts.c (sccsid):
8258         * lib/getndelim2.c (IF_LINT):
8259         * lib/gl_anylinked_list2.h (gl_linked_iterator)
8260         (gl_linked_iterator_from_to):
8261         * lib/gl_anytree_list2.h (gl_tree_iterator)
8262         (gl_tree_iterator_from_to):
8263         * lib/gl_anytree_oset.h (gl_tree_iterator):
8264         * lib/gl_array_list.c (gl_array_iterator)
8265         (gl_array_iterator_from_to):
8266         * lib/gl_array_oset.c (gl_array_iterator):
8267         * lib/gl_carray_list.c (gl_carray_iterator)
8268         (gl_carray_iterator_from_to):
8269         * lib/idcache.c:
8270         * lib/inet_ntop.c (IF_LINT):
8271         * lib/regcomp.c (build_charclass_op, create_tree):
8272         * lib/regex_internal.c (re_acquire_state)
8273         (re_acquire_state_context):
8274         * lib/trigl.c (rcsid):
8275         * lib/trim.c (IF_LINT):
8276         * lib/vasnprintf.c (IF_LINT):
8277         * lib/verify.h (assume):
8278         Treat GCC_LINT like lint.
8280 2016-05-29  Bruno Haible  <bruno@clisp.org>
8282         secure_getenv: Port to many more platforms.
8283         * m4/secure_getenv.m4 (gl_PREREQ_SECURE_GETENV): Also check for get*id
8284         functions.
8285         * lib/secure_getenv.c (secure_getenv): Add alternate implementations
8286         for non-BSD Unix platforms and for native Windows.
8287         * doc/glibc-functions/secure_getenv.texi: Remove known issue.
8288         Prompted by a request from Nikos Mavrogiannopoulos.
8290 2016-05-27  Eric Blake  <eblake@redhat.com>
8292         canonicalize: Fix broken probe for realpath.
8293         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Fix regression
8294         in logic introduced in 54615b95.
8296 2016-05-26  Eric Blake  <eblake@redhat.com>
8298         unsetenv: relax to LGPLv2+
8299         * modules/unsetenv (License): Match setenv license.
8301 2016-05-20  Ludovic Courtès  <ludo@gnu.org>
8303         gendocs.sh: Set default TOP_NODE_UP_URL in HTML output.
8304         Suggested by Gavin Smith <gavinsmith0123@gmail.com>.
8305         Reported by myglc2 <myglc2@gmail.com> in <http://bugs.gnu.org/22651>.
8306         * build-aux/gendocs.sh (MANUAL_TITLE, PACKAGE, EMAIL)
8307         (commonarg, dirargs, dirs, infoarg, generate_ascii)
8308         (generate_html, generate_info, generate_tex, outdir)
8309         (source_extra, split, srcfile, texarg): Move above 'version'.
8310         (htmlarg): Likewise, and add "-c TOP_NODE_UP_URL=/manual".
8312 2016-05-17  Paul Eggert  <eggert@cs.ucla.edu>
8314         manywarnings: update for GCC 6.1
8315         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC):
8316         Add GCC 6.1 options that apply to C.
8317         * build-aux/gcc-warning.spec: Add GCC 6.1 options that
8318         do not apply to C, are obsolescent, etc.
8320 2016-05-12  Paul Eggert  <eggert@cs.ucla.edu>
8322         glob: size_t overflow checks
8323         * lib/glob.c (__has_builtin): New macro.
8324         (size_add_wrapv, glob_use_alloca): New static functions.
8325         (glob, glob_in_dir): Check for size_t overflow in several places,
8326         and fix some size_t checks that were not quite right.
8328         glob: don't assume INT_MAX < SIZE_MAX
8329         * lib/glob.c (glob): Prefer SIZE_MAX to ~((size_t) 0), as the
8330         latter is not portable to (probably theoretical) hosts where
8331         SIZE_MAX <= INT_MAX.
8333 2016-05-09  Bruno Haible  <bruno@clisp.org>
8335         Fix undefined behaviour in gettext.h.
8336         * lib/gettext.h (dcpgettext_expr, dcnpgettext_expr): Avoid accessing a
8337         pointer's value after the storage it points to has been freed.
8338         Reported by Michael Pyne in https://savannah.gnu.org/bugs/?47847.
8339         Spotted by Coverity.
8341 2016-05-08  Paul Eggert  <eggert@cs.ucla.edu>
8343         git-version-gen: avoid undefined shift
8344         Problem reported by Mosè Giordano in:
8345         http://lists.gnu.org/r/bug-gnulib/2016-05/msg00012.html
8346         * build-aux/git-version-gen: Avoid undefined behavior if invoked
8347         with --prefix or --fallback but without a later argument.  While
8348         we're at it, omit unnecessary quotes.
8350 2016-05-04  Paul Eggert  <eggert@cs.ucla.edu>
8352         glob: merge glibc changes into lib/glob.c
8353         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c,
8354         dated 2016-05-04 12:09:35 2016 +0200.  Here are the changes:
8355         2016-05-04 CVE-2016-1234: glob: Do not copy d_name field of
8356           struct dirent [BZ #19779]
8357         2016-04-29 glob: Simplify the interface for the GLOB_ALTDIRFUNC
8358           callback gl_readdir
8359         2015-10-20 Convert miscellaneous function definitions to prototype style
8360         2015-10-20 Convert 113 more function definitions to prototype style
8361           (files with assertions)
8362         2015-06-12 Fix getlogin_r namespace (bug 18527).
8363         2014-02-10 Use glibc_likely instead __builtin_expect.
8364         2013-10-20 When glob pattern contains a trailing slash match only
8365           directories. Fixes bug 10278.
8366         2013-09-04 glob: silence -Wattribute warnings
8367         2013-06-07 Avoid use of "register" as optimization hint.
8368         2012-09-25 Use size_t instead of int for internal variables in glob
8369           (bug 14621)
8370         2011-07-20 Check for overflows in expressions
8371         2011-05-28 Remove unused variable
8372         2011-05-22 Add a few more alloca size checks
8373         2010-03-27 Whitespace fixes
8374         2010-03-27 Fix one more issue with the glob patch
8375         2010-03-24 Fix glob with empty pattern
8376         2008-05-27 Remove useless more "if" tests before "free"
8377         * modules/glob (Depends-on): Add stdint.
8379 2016-05-01  Paul Eggert  <eggert@cs.ucla.edu>
8381         mktime: port to stricter signed overflow checking
8382         * lib/mktime.c: Omit 'pragma GCC optimize ("wrapv")'.
8383         (long_int): Require width for INT_MAX * 3 * (seconds per year),
8384         instead of merely for INT_MAX * 2.  In practice platforms that
8385         do the latter also do the former.
8386         (TIME_T_MIN, TIME_T_MAX, TIME_T_MIDPOINT, SHR): Remove.
8387         (shr): New static function, replacing SHR.  All uses changed.
8388         (mktime_min, mktime_max): New constants, replacing TIME_T_MIN
8389         and TIME_T_MAX.  All uses changed.
8390         (ydhms_diff, guess_time_tm, ranged_convert, __mktime_internal):
8391         Use long_int, not time_t.
8392         (long_int_avg): New static function, replacing time_t_avg.
8393         All uses changed.  Round toward positive infinity, as that
8394         generates slightly better code.
8395         (time_t_add_ok, time_t_int_add_ok): Remove.  All uses replaced
8396         by INT_ADD_WRAPV.
8397         (guess_time_tm): Accept time, not a pointer to it.  All uses changed.
8398         (convert_time): New static function.
8399         (ranged_convert): Use it
8400         (ranged_convert): Check for *T out of [mktime_min, mktime_max] range.
8401         Use simpler test for loop exit.
8402         (__mktime_internal): Store negative of guessed offset, to simplify
8403         overflow checking.  Remove no-longer-needed test for small time_t
8404         overflows.
8406         mktime: speed up DEBUG_MKTIME benchmarks
8407         Call tzset just once, at the start, rather than for every test
8408         case.  This lets us measure the CPU cost of mktime as opposed to
8409         that of tzset.  This is relevant when TZ is not set and glibc is
8410         being used.  This speeds up tests by a factor of 40 on my Fedora
8411         23 x86-64 platform.
8412         * lib/mktime.c (main) [DEBUG_MKTIME]: Call localtime at the start,
8413         to call tzset and as a sanity check.  Later on, use localtime_r
8414         instead of localtime.
8416         mktime: resurrect DEBUG_MKTIME testing
8417         * lib/mktime.c [DEBUG_MKTIME]: Do not include <config.h>.
8418         Include <string.h>, for strcmp.
8420         mktime: simplify DEBUG_MKTIME
8421         * lib/mktime.c (DEBUG_MKTIME): Define to 0 if not defined.
8422         Simplify later usage accordingly.
8424         Port mktime_internal offset to unsigned time_t
8425         This avoids some assumptions about wraparound arithmetic on
8426         signed integer overflow.
8427         * lib/mktime-internal.h (mktime_offset_t): New type.
8428         (mktime_internal): Use it in decl.
8429         * lib/mktime.c, lib/timegm.c (mktime_offset_t) [_LIBC]: New type.
8431         * lib/mktime.c (__mktime_internal, localtime_offset):
8432         * lib/timegm.c (timegm): Use it.
8433         * m4/mktime.m4 (gl_TIME_T_IS_SIGNED): New macro.
8434         (gl_FUNC_MKTIME): Require it.
8436 2016-04-27  Paul Eggert  <eggert@cs.ucla.edu>
8438         xstrtol: prohibit monstrosities like "1bB"
8439         Problem reported by Young Mo Kang in: http://bugs.gnu.org/23388
8440         * lib/xstrtol.c (__xstrtol): Allow trailing second suffixes like
8441         "B" only if the first suffix needs a base.
8442         * tests/test-xstrtol.sh: Test this.
8444 2016-04-21  Pádraig Brady  <P@draigBrady.com>
8446         xstrtod: reinstate setting of *result upon ERANGE
8447         * lib/xstrtod.c (XSTRTOD): The user may decide to use
8448         the returned limits upon ERANGE, so allow and document that.
8450 2016-04-20  Tino Calancha  <f92capac@gmail.com>  (tiny change)
8452         xstrtod: modify *result only if no errors
8453         * lib/xstrtod.c (XSTRTOD).
8455 2016-04-19  Paul Eggert  <eggert@cs.ucla.edu>
8457         btowc: document problems in C locale
8458         * doc/posix-functions/btowc.texi (btowc): Mention incompatibility
8459         with mbrtowc.  See: http://bugs.gnu.org/23269#32
8461 2016-04-13  Paul Eggert  <eggert@cs.ucla.edu>
8463         mktime: improve integer overflow checking
8464         * lib/mktime.c: Include stdbool.h, intprops.h, verify.h.
8465         (WRAPV): Remove; no longer needed.
8466         (verify): Remove.  Replace all uses with call to verify.h 'verify'.
8467         (TYPE_IS_INTEGER, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
8468         Remove.  Use intprops.h defns instead.
8469         (leapyear, isdst_differ, time_t_add_ok, time_t_int_ok):
8470         Use bool for Boolean, for clarity.
8471         (time_t_add_ok, time_t_int_add_ok): Use INT_ADD_WRAPV to
8472         detect integer overflow.
8473         * modules/mktime (Depends-on): Add intprops, stdbool, verify.
8475         intprops: check two's complement assumption
8476         Suggested by Eric Blake in:
8477         http://lists.gnu.org/r/bug-gnulib/2016-04/msg00016.html
8478         * lib/intprops.h: Include <verify.h>.  Verify that signed char,
8479         short, int, long, and (if available) long long are two's complement.
8480         * modules/intprops (Depends-on): Add 'verify'.
8482         intprops, mktime, strtol: assume two's complement
8483         These macros were not portable to every conforming C11 ones'
8484         complement platform.  It's not worth the hassle of porting to some
8485         platforms that use ones' complement or signed magnitude, as such
8486         platforms are almost purely theoretical nowadays and porting even
8487         to some of them makes the code harder to review for little
8488         practical benefit.  Problem reported by Florian Weimer in:
8489         https://sourceware.org/ml/libc-alpha/2016-04/msg00295.html
8490         * lib/intprops.h (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT)
8491         (TYPE_SIGNED_MAGNITUDE, _GL_INT_TWOS_COMPLEMENT):
8492         * lib/mktime.c (TYPE_TWOS_COMPLEMENT):
8493         * lib/strtol.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT)
8494         (TYPE_SIGNED_MAGNITUDE):
8495         Remove.  All uses rewritten to assume two's complement, which is
8496         all we can reasonably test nowadays anyway.
8497         * top/maint.mk (_intprops_names): Remove the removed macros.
8499 2016-04-11  Paul Eggert  <eggert@cs.ucla.edu>
8501         stdint: port to strict C11 left shift
8502         * lib/stdint.in.h (_STDINT_MIN, _STDINT_MAX):
8503         Pacify clang -Wshift-negative-value, which should be an issue only
8504         on clang setups where stdint.h does not conform to C11 or to C++11.
8505         Problem reported by Philipp Stephani in: http://bugs.gnu.org/23261
8507 2016-04-09  Paul Eggert  <eggert@penguin.cs.ucla.edu>
8509         mbrtowc: work around glibc bug#19932
8510         Fix mbrtowc so that it never returns -1 in the C locale,
8511         as this conflicts with a future version of POSIX
8512         http://austingroupbugs.net/view.php?id=663#c2738
8513         and causes problems with GNU grep: http://bugs.gnu.org/23234
8514         See glibc bug 19932:
8515         https://sourceware.org/bugzilla/show_bug.cgi?id=19932
8516         * doc/posix-functions/mbrlen.texi (mbrlen):
8517         * doc/posix-functions/mbrtowc.texi (mbrtowc):
8518         Document the glibc bug.
8519         * lib/mbrtowc.c [C_LOCALE_MAYBE_EILSEQ]:
8520         Include hard-locale.h, locale.h.
8521         (rpl_mbrtowc): Work around the C_LOCALE_MAYBE_EILSEQ bug,
8522         if the bug is possible.
8523         * m4/mbrtowc.m4 (gl_MBRTOWC_C_LOCALE): New macro.
8524         (gl_FUNC_MBRTOWC): Use it, and define C_LOCALE_MAYBE_EILSEQ as needed.
8525         * modules/hard-locale (License): Now LGPLv2+, for mbrtowc.
8526         * modules/mbrtowc (Depends-on): Add hard-locale.
8527         * modules/mbrtowc-tests (Files, TESTS): Add tests/test-mbrtowc5.sh.
8528         * tests/test-mbrtowc.c (main): Test for bug fix if arg is '5'.
8529         * tests/test-mbrtowc5.sh: New file.
8531 2016-04-03  Pedro Alves  <palves@redhat.com>
8533         stdint: detect good enough pre-C++11 stdint.h in C++ mode
8534         When gnulib is configured in C++ mode for a system with a working C99
8535         implementation of stdint.h that predates C++11, gnulib ends up
8536         substituting stdint.h anyway.  This works on most targets, but on e.g.,
8537         64-bit MinGW, it doesn't, as gnulib's substitute assumes LP64, while
8538         MinGW is LLP64.  Instead of trying to detect the right types, detect
8539         good-enough-pre-C++11 stdint.h and in such case define
8540         __STDC_CONSTANT_MACROS/__STDC_LIMIT_MACROS in config.h.
8541         * m4/stdint.m4 (gl_STDINT_H): Always define __STDC_CONSTANT_MACROS
8542         / __STDC_LIMIT_MACROS while checking whether the system stdint.h
8543         conforms to C99.  If it does, check whether it hides symbols
8544         behind the __STDC_{CONSTANT|LIMIT}_MACROS macros.  Then if it
8545         does, define those macros in config.h.
8547 2016-04-03  Paul Eggert  <eggert@cs.ucla.edu>
8549         argp: merge changes from glibc
8550         Among other things, this should fix problems found by a Coverity
8551         scan and reported by Andrei Borzenkov:
8552         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00015.html
8553         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00016.html
8554         * lib/argp-ba.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h:
8555         * lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h:
8556         * lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c:
8557         * lib/argp.h:
8558         Merge changes from glibc.
8559         * tests/test-argp-2.sh: Adjust to match new behavior.
8561 2016-04-01  Paul Eggert  <eggert@cs.ucla.edu>
8563         stddef: support configuring with g++
8564         Problem reported by Ángel González in:
8565         http://lists.gnu.org/r/bug-gnulib/2016-04/msg00003.html
8566         * lib/stddef.in.h (_GL_STDDEF_ALIGNAS, max_align_t):
8567         Do not define if _GCC_MAX_ALIGN_T is defined.
8569 2016-03-25  Paul Eggert  <eggert@cs.ucla.edu>
8571         test-framework-sh: minor cleanups
8572         * tests/init.sh (testdir_prefix_): Output a trailing newline,
8573         since strictly speaking POSIX requires this.
8574         (setup_): Do not use the variable 'fail', as that makes the
8575         trace output harder to read ('fail' is typically used by
8576         tests to mean the test failed).  Treat // portably.
8577         Check that new directory is not merely a sibling of the tmp dir.
8578         Avoid unnecessary invocation of tr.
8580         test-framework-sh: revert port to NetBSD 7.0
8581         It was a false alarm; I misinterpreted Assaf Gordon's report.
8582         * tests/init.sh (testdir_prefix_, pfx_, template_length_):
8583         Restore.
8584         (test_dir_): Adjust to mktempd_ change.
8585         (mktempd_): Restore 2nd arg.  Use -t again.
8586         (base_template_, template_, nx_): Resurrect old code.
8588         Port better to Alpine Linux
8589         Its diff implementation does not support -c, but does support -U3.
8590         Problem reported by Assaf Gordon in: http://bugs.gnu.org/23107#13
8591         * tests/init.sh (diff_opt_): New var.
8592         (compare_): Prefer diff -U3 to diff -c to plain diff.
8594 2016-03-24  Paul Eggert  <eggert@cs.ucla.edu>
8596         test-framework-sh: port to NetBSD 7.0
8597         Problem reported by Assaf Gordon in: http://bugs.gnu.org/23107#13
8598         * tests/init.sh (testdir_prefix_, pfx_, template_length_):
8599         Remove.  All uses removed.
8600         (test_dir_): Adjust to mktempd_ change.
8601         (mktempd_): Omit 2nd arg.  Stop using -t, as it is not portable.
8602         (base_template_, template_, nx_): Simplify by hardcoding.
8604 2016-03-22  Paul Eggert  <eggert@cs.ucla.edu>
8606         gitlog-to-changelog: suppress ignored chatter
8607         * build-aux/gitlog-to-changelog: Do not warn about skipping
8608         an SHA if it would have been ignored anyway.
8610 2016-03-22  Geert Janssens  <janssens-geert@telenet.be>
8612         setlocale: add "sv" to Windows language table
8613         * lib/setlocale.c (language_table) [W32]: Add "sv".
8614         Reported in <https://savannah.gnu.org/bugs/?44588>.
8616 2016-03-21  Paul Eggert  <eggert@cs.ucla.edu>
8618         sys_select: port to new Cygwin
8619         Problem reported by Ken Brown in:
8620         https://lists.gnu.org/r/bug-gnulib/2016-03/msg00054.html
8621         * lib/sys_select.in.h [__CYGWIN__]: Avoid "unknown type name"
8622         diagnostics.
8624 2016-03-17  Jim Meyering  <meyering@fb.com>
8626         test-userspec.c: do not trigger gcc's new -Wmisleading-indentation
8627         * tests/test-userspec.c (main): Remove unnecessary braces and fix
8628         misleading indentation. Here is the diagnostic gcc-6.0-to-be issued:
8629           test-userspec.c:176:9: error: statement is indented as if it were \
8630             guarded by... [-Werror=misleading-indentation]
8631                    {
8632                    ^
8633           test-userspec.c:173:7: note: ...this 'if' clause, but it is not
8634                  if (!diag && !T[i].result)
8635                  ^~
8637 2016-03-15  Paul Eggert  <eggert@cs.ucla.edu>
8639         time_rz: port to clang -Wunused-const-variable
8640         * lib/time_rz.c (TZ): Remove.  All uses removed.
8642         std-gnu11: improve clang support
8643         * m4/std-gnu11.m4: Sync with autoconf, incorporating:
8644         2016-03-15 Also try clang
8645         2016-03-15 Port C11 and C++11 testing to clang
8647         select: port more to Intel 2016.1.150 compiler
8648         Problem reported by Balázs Hajgató in:
8649         http://lists.gnu.org/r/bug-gnulib/2016-03/msg00036.html
8650         * m4/select.m4 (gl_FUNC_SELECT): Require AC_C_RESTRICT.
8652 2016-03-14  Paul Eggert  <eggert@cs.ucla.edu>
8654         select: try to port to 2016.1.150 compiler
8655         Problem reported by Balázs Hajgató in:
8656         http://lists.gnu.org/r/bug-gnulib/2016-03/msg00026.html
8657         * lib/sys_select.in.h (select): Use 'restrict' on arguments where
8658         POSIX specifies 'restrict'.
8660 2016-03-13  Paul Eggert  <eggert@cs.ucla.edu>
8662         localename-tests: memory allocation fixes
8663         * tests/test-localename.c (test_locale_name)
8664         (test_locale_name_thread): Don't call freelocale on a locale
8665         that was the base of a successful newlocale, as that
8666         results in a double free.  Problem reported by Assaf Gordon.
8667         (test_locale_name_thread): Free saved names after use, to pacify
8668         gcc -fsanitize=address.
8670 2016-03-08  Paul Eggert  <eggert@cs.ucla.edu>
8672         intprops: make .h file license match module
8673         * lib/intprops.h: Change the license wording to match glibc format.
8674         This is what is in modules/intprops anyway.  See:
8675         https://sourceware.org/bugzilla/show_bug.cgi?id=19738#c8
8677 2016-03-08  Eric Blake  <eblake@redhat.com>
8679         acl: fix missing return on Cygwin
8680         * lib/set-permissions.c (set_acls) [HAVE_FACL && GETACL]: Don't
8681         fall off end of function. Fixes http://bugs.gnu.org/22949
8683 2016-03-05  Bruno Haible  <bruno@clisp.org>
8685         extern-inline: port to PGI CC
8686         * m4/extern-inline.m4 (gl_EXTERN_INLINE): For PGI CC, don't use the
8687         keyword 'inline'.
8688         Reported by Adam James Stewart in:
8689         http://lists.gnu.org/r/bug-gnulib/2016-03/msg00006.html
8691 2016-02-20  Paul Eggert  <eggert@cs.ucla.edu>
8693         signbit: port back to pre-C++11 GCC
8694         * lib/math.in.h (signbit): Do previous change only if
8695         __cplusplus < 201103.  See Jonathan Wakely in:
8696         https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org/message/UY3VX3W7XEXYTUKHG5BALU4ACUD7ZLGE/
8698 2016-02-19  Kamil Dudka  <kdudka@redhat.com>
8700         mountlist: recognize autofs-mounted remote file systems, too
8701         Originally reported at: https://bugzilla.redhat.com/1309247
8702         * lib/mountlist.c (ME_REMOTE): Return true if a file system is named
8703         "-hosts" because it is used by autofs to mount remote file systems.
8705 2016-02-19  Paul Eggert  <eggert@cs.ucla.edu>
8707         signbit: port to C++ with GCC 6
8708         * lib/math.in.h (signbit) [__cplusplus]:
8709         Do not replace with GCC builtin.  Reported by Orion Poplawski in:
8710         http://lists.gnu.org/r/bug-gnulib/2016-02/msg00005.html
8712         * lib/regex_internal.h (IDX_MAX) [_REGEX_LARGE_OFFSETS]: Now SSIZE_MAX.
8714         regex: make it closer to libc
8715         Make Idx a signed type, rather than possibly unsigned.
8716         The unsignedness was not really buying us anything, since the code
8717         overflows for other reasons before getting to PTRDIFF_MAX.  Making
8718         it signed allows us to use -1 and -2 with abandon, like libc does,
8719         thus lessening the number of differences between gnulib and libc.
8720         Also, it should help avoid gratuitous warnings like the one
8721         reported by Nelson H. F. Beebe in: http://bugs.gnu.org/22702
8722         * lib/regex.h (__re_idx_t): Remove.  All uses changed to regoff_t.
8725         regex: merge patches from libc
8727         2015-10-21  Joseph Myers  <joseph@codesourcery.com>
8728         2015-10-20  Joseph Myers  <joseph@codesourcery.com>
8729         Convert miscellaneous function definitions to prototype style.
8730         * lib/regcomp.c (re_compile_pattern, re_set_syntax)
8731         (re_compile_fastmap, regcomp, regerror, regfree, re_comp):
8732         * lib/regexec.c (regexec, re_match, re_search, re_match_2, re_search_2)
8733         (re_search_2_stub, re_search_stub, re_set_registers, re_exec)
8734         (re_search_internal):
8735         Convert to prototype-style function definition.
8736         Use internal_function for internal functions.
8738 2016-02-10  Paul Eggert  <eggert@cs.ucla.edu>
8740         stdalign: port to older HP and IBM cc
8741         * lib/stdalign.in.h (_Alignas): Port better to older HP and IBM
8742         C compilers, by checking their version numbers.  These version
8743         numbers appear in MariaDB and in Qt code that dates way back and
8744         that conditiionally uses the 'aligned' attribute.
8746 2016-02-09  Paul Eggert  <eggert@cs.ucla.edu>
8748         stdalign: port to clang 3.7.0
8749         Problem reported by Herbert J. Skuhra in:
8750         http://lists.gnu.org/r/emacs-devel/2016-02/msg00476.html
8751         * lib/stdalign.in.h (alignas): Fix typo that prevented 'alignas'
8752         from being defined on clang 3.7.0, which has a buggy stdalign.h.  See:
8753         https://llvm.org/bugs/show_bug.cgi?id=26547
8755 2016-02-08  Paul Eggert  <eggert@cs.ucla.edu>
8757         readdir_r: now obsolescent
8758         * doc/posix-functions/readdir_r.texi (readdir_r): Now obsolescent.
8759         * lib/mountlist.c (read_file_system_list): Add a FIXME.
8761 2016-02-06  Paul Eggert  <eggert@cs.ucla.edu>
8763         misc: port better to gcc -fsanitize=address
8764         Without these patches, ./configure CFLAGS='-fsanitize=address'
8765         would compute incorrect values.  This patch fixes some (but not all)
8766         test failures with recent glibc, with this configuration.
8767         * m4/acl.m4 (gl_ACL_GET_FILE):
8768         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF):
8769         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS):
8770         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO):
8771         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE):
8772         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
8773         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
8774         * m4/getgroups.m4 (gl_FUNC_GETGROUPS):
8775         * m4/getline.m4 (gl_FUNC_GETLINE):
8776         * m4/malloc.m4 (_AC_FUNC_MALLOC_IF):
8777         * m4/realloc.m4 (_AC_FUNC_REALLOC_IF):
8778         * m4/regex.m4 (gl_REGEX):
8779         * m4/strndup.m4 (gl_FUNC_STRNDUP):
8780         * tests/test-calloc-gnu.c (main):
8781         * tests/test-duplocale.c (main):
8782         * tests/test-getgroups.c (main):
8783         * tests/test-getline.c (main):
8784         * tests/test-inttostr.c (main):
8785         * tests/test-localename.c (test_locale_name)
8786         (test_locale_name_thread, test_locale_name_environ)
8787         (test_locale_name_default):
8788         * tests/test-regex.c (main):
8789         * tests/test-setlocale1.c (main):
8790         * tests/test-stat.h (test_stat_func):
8791         Free heap-allocated storage before exiting.
8792         * m4/asm-underscore.m4 (gl_ASM_SYMBOL_PREFIX):
8793         Don't match *_foo symbols inserted by AddressSanitizer.
8794         * tests/test-regex.c, tests/test-stat.c: Include stdlib.h, for 'free'.
8796 2016-02-02  Jim Meyering  <meyering@fb.com>
8798         verify-tests: also remove stray test-verify.Tpo
8799         * modules/verify-tests (Makefile.am): Arrange for "make clean"
8800         to remove the test-verify.Tpo file that is left behind by
8801         the automake-generated rule upon compilation failure.
8802         Otherwise, that .Tpo file would cause a failed "make distcheck"
8803         at least for grep.
8805 2016-02-02  Paul Eggert  <eggert@cs.ucla.edu>
8807         std-gnu11: new module
8808         This makes it easier for applications to prefer C11 and C++11
8809         to older variants, when compiling C and C++ code.
8810         Unlike most m4/*.m4 files, m4/std-gnu11.m4 is GPLed, as it copies
8811         a nontrivial chunk of GPLed Autoconf source code.
8812         * COPYING: Mention the m4/*.m4 copyright situation.
8813         * MODULES.html.sh (std-gnu11): New module.
8814         * m4/std-gnu11.m4, modules/std-gnu11: New files.
8816 2016-01-25  Paul Eggert  <eggert@cs.ucla.edu>
8818         get-permissions, strftime: fix grammar in comments
8819         * lib/get-permissions.c, lib/strftime.c: Merge into the comments
8820         some grammar fixes Alan Mackenzie made to GNU Emacs.
8822 2016-01-25  Daiki Ueno  <ueno@gnu.org>
8824         gettext: mark as obsolete
8825         Suggested by Paul Eggert in:
8826         https://lists.gnu.org/r/bug-gnulib/2016-01/msg00101.html
8827         * modules/gettext (Status): Mark as obsolete.
8828         (Notice): Suggest to use 'gettext-h' instead.
8829         * modules/gettext-h (Description): Suggest GNU gettext, instead of
8830         the 'gettext' module.
8832 2016-01-24  Paul Eggert  <eggert@cs.ucla.edu>
8834         gnulib-tool: don't give up on ln -s so easily
8835         * gnulib-tool (func_ln_s): Don't give up on a later ln -s merely
8836         because an earlier one failed.  The targets could be on different
8837         file systems.  Problem reported by KO Myung-Hun in:
8838         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00081.html
8840         closedir: fix OS/2-related typos
8841         Problem reported by KO Myung-Hun in:
8842         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00107.html
8843         * m4/closedir.m4 (gl_FUNC_CLOSEDIR): Fix a couple of typos
8844         in the last couple of changes.
8846 2016-01-24  KO Myung-Hun  <komh78@gmail.com>
8848         openat_proc_name: fix that last '/' is overwritten on OS/2 kLIBC
8849         * lib/openat-proc.c (openat_proc_name): Increase dirlen by 1 after
8850         copying a directory.
8852 2016-01-24  Paul Eggert  <eggert@cs.ucla.edu>
8854         regex: treat [x] as x if x is a unibyte encoding error
8855         Problem reported by Aharon Robbins in:
8856         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00091.html
8857         * lib/regcomp.c (parse_byte) [!_LIBC && RE_ENABLE_I18N]: New function.
8858         (build_range_exp) [!_LIBC && RE_ENABLE_I18N]: Use it.
8860         closedir, dirfd, opendir: port to OpenSolaris 5.10
8861         * m4/closedir.m4 (gl_FUNC_CLOSEDIR):
8862         * m4/dirfd.m4 (gl_FUNC_DIRFD):
8863         * m4/opendir.m4 (gl_FUNC_OPENDIR):
8864         Don't use ${word##pat} substitution, as it doesn't work in
8865         OpenSolaris 5.10 /bin/sh.  Problem reported by Assaf Gordon in:
8866         http://bugs.gnu.org/22443#11
8868 2016-01-23  Paul Eggert  <eggert@cs.ucla.edu>
8870         bootstrap: use American spelling
8871         * build-aux/bootstrap: Honor American spelling.
8873 2016-01-22  Karl Berry  <karl@freefriends.org>
8875         * doc/posix-functions/localtime.texi,
8876         * doc/posix-functions/localtime_r.texi: @item needed for @itemize text.
8878 2016-01-21  Bruno Haible  <bruno@clisp.org>
8880         hash-pjw-bare: fix comment
8881         * lib/hash-pjw-bare.h (hash_pjw_bare): Fix comment.
8883         wcwidth: Replace also on OpenBSD 5.8
8884         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check the value of wcwidth(0xFF1A).
8885         * doc/posix-functions/wcwidth.texi: Update.
8887 2016-01-20  Pádraig Brady  <P@draigBrady.com>
8889         gnu-web-doc-update: fix addition of new files
8890         If there were already added (emnpty) dirs,
8891         then cvs aborts the add with the message:
8892           cvs [add aborted]: there is a version in <./dirname> already
8893         * build-aux/gnu-web-doc-update: Add directories separately
8894         to the addition of files, to avoid the above issue
8895         impacting the addition of files.
8897 2016-01-19  Daiki Ueno  <ueno@gnu.org>
8899         utimens-tests: avoid pulling gettext .m4 files
8900         Although this is not the right fix to the original problem:
8901         http://lists.gnu.org/r/bug-gnulib/2013-01/msg00086.html
8902         it makes it possible again for consumer projects to use arbitrary
8903         version of gettext, through the steps described at:
8904         http://www.gnu.org/software/gnulib/manual/html_node/gettextize-and-autopoint.html
8905         See here for details:
8906         https://lists.gnu.org/r/bug-gnulib/2016-01/msg00079.html
8907         * modules/futimens-tests (Depends-on): Add 'gettext-h' in place of
8908         'gettext'.
8909         * modules/utimens-tests (Depends-on): Add 'gettext-h' in place of
8910         'gettext'.
8912 2016-01-18  Paul Eggert  <eggert@cs.ucla.edu>
8914         regex: pacify static checkers
8915         Problem and draft fix reported by Aharon Robbins in:
8916         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00082.html
8917         * lib/regcomp.c (build_charclass_op, create_tree) [lint]:
8918         Clear memory to pacify static checkers.
8920         regex: fix [ diagnostic
8921         Problem and fix reported by Aharon Robbins in:
8922         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00082.html
8923         * lib/regcomp.c (REG_EBRACK_IDX): Fix misleading diagnostic about [.
8925         regex: fix memory leaks
8926         Problem and draft fix reported by Aharon Robbins in:
8927         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00082.html
8928         * lib/regcomp.c (build_range_exp, build_charclass_op)
8929         * lib/regex_internal.c (re_dfa_add_node):
8930         Fix memory leak on failure.
8932 2016-01-18  Pádraig Brady  <P@draigBrady.com>
8934         fts: don't unconditionally use leaf optimization for NFS
8935         NFS st_nlink are not accurate on all implementations,
8936         leading to aborts() if that assumption is made.
8937         See <https://bugzilla.redhat.com/1299169>
8938         * lib/fts.c (leaf_optimization_applies): Remove NFS from
8939         the white list, and document the issue.
8941 2016-01-15  Paul Eggert  <eggert@cs.ucla.edu>
8942             KO Myung-Hun  <komh@chollian.net>
8944         gnulib-tool: don't assume ln -s works
8945         * gnulib-tool (func_ln_s): New function.
8946         (func_ln): Use it.
8948 2016-01-15  KO Myung-Hun  <komh@chollian.net>
8950         utimes: detect utimes() correctly on OS/2 kLIBC
8951         utimes() of OS/2 kLIBC has some limitations.
8952         1. OS/2 itself supports a file date since 1980 year in local time.
8953         2. OS/2 itself supports only even seconds for a file time.
8954         3. utimes() of OS/2 kLIBC does not work on an opened file.
8955         * m4/utimes.m4: Detect utimes() correctly on OS/2 kLIBC.
8956         * doc/posix-functions/utimes.texi: Document the above limitations of
8957         utimes() on OS/2 kLIBC.
8959 2016-01-15  Paul Eggert  <eggert@cs.ucla.edu>
8960             KO Myung-Hun  <komh@chollian.net>
8962         openat_proc_name: port to OS/2 kLIBC
8963         OS/2 kLIBC provides a function to retrive a path from a fd. Use it
8964         instead of /proc/self/fd.
8965         * lib/openat-proc.c (openat_proc_name):
8966         Don't assume file name length is less than INT_MAX.
8967         Port to OS/2 kLIBC with __libc_Back_ioFHToPath().
8969 2016-01-14  KO Myung-Hun  <komh@chollian.net>
8971         stdint: check _INTPTR_T_DECLARED for intptr_t etc.
8972         OS/2 kLIBC's stdint.h defines _INTPTR_T_DECLARED and needs its own
8973         definitions of intptr_t and uintptr_t (which use int and unsigned)
8974         to avoid clashes with declarations of system functions like sbrk.
8975         * lib/stdint.in.h (intptr_t, uintptr_t): Check
8976         _INTPTR_T_DECLARED before defining them.
8978         opendir, closedir, dirfd, fdopendir: port to OS/2 kLIBC
8979         * lib/closedir.c (closedir): Unregister fd if closedir() succeeds.
8980         * lib/dirent.in.h (_gl_register_dirp_fd, _gl_unregister_dirp_fd):
8981         Declare on kLIBC.
8982         * lib/dirfd.c (struct dirp_fd_list): New. Structures to keep track of
8983         fd associated with dirp.
8984         (_gl_register_dirp_fd): New. Register fd associated with dirp to
8985         dirp_fd_list.
8986         (_gl_unregister_dirp_fd): New. Unregister fd with closing it.
8987         (dirfd): Implemented for kLIBC.
8988         * lib/fdopendir.c (fdopendir): Implemented for kLIBC.
8989         * lib/opendir.c (opendir): New. Register fd and dirp pair if open()
8990         succeeds.
8991         * m4/closedir.m4 (gl_FUNC_CLOSEDIR): Replace if OS/2.
8992         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
8993         (REPLACE_DIRFD): Define to 1 if replaced.
8994         * m4/opendir.m4 (gl_FUNC_OPENDIR): Likewise.
8995         * modules/closedir (Depends-on): Add dirfd.
8996         * modules/dirfd (Depends-on): Add 'test $REPLACE_DIRFD = 1' to errno
8997         condition.
8998         (configure.ac): Add dirfd to LIBOBJS if $REPLACE_DIRFD = 1 as well.
8999         * modules/opendir (Depends-on): Add dirfd.
9001         dup, dup2, fcntl: support a directory fd on OS/2 kLIBC
9002         On OS/2 kLIBC, dup(), dup2() and fcntl() do not work on a directory fd.
9003         * lib/dup.c (dup_nothrow): New.
9004         * lib/dup2.c (klibc_dup2dirfd): New. dup2() for a directory fd.
9005         (klibc_dup2): New.
9006         * lib/fcntl.c (klibc_fcntl): New.
9007         * m4/dup.m4 (gl_FUNC_DUP): Check if dup() works on a directory fd.
9008         * m4/dup2.m4 (gl_FUNC_DUP2): Check if dup2() works on a directory fd.
9009         * m4/fcntl.m4 (gl_FUNC_FCNTL): Check if F_DUPFD works on a directory
9010         fd.
9012         pipe_filter_ii_execute: port to OS/2 kLIBC
9013         Pipes on kLIBC do not support O_NONBLOCK like Win32.
9014         * lib/pipe-filter-ii.c (start_wrapper, _beginthreadex, CloseHandle,
9015         WaiForSingleObject, WaitForMultipleObjects): New on OS/2 kLIBC.
9016         Reuse Win32 code on OS/2 kLIBC.
9017         * lib/spawn-pipe.c: Reuse Win32 code on OS/2 kLIBC.
9018         * lib/w32spawn.h: Do not include windows.h on OS/2 kLIBC.
9020         wchar: fix "conflicting types" error for __wcwidth on OS/2 kLIBC
9021         On OS/2 kLIBC, wcwidth is a macro that expands to the name of a
9022         static inline function.  The implementation of wcwidth in wcwidth.c
9023         causes a "conflicting types" error.
9024         * lib/wchar.in.h: Undefine wcwidth on OS/2 kLIBC.
9026         w32spawn: clear SHELL_SPECIAL_CHARS and SHELL_SPACE_CHAR on OS/2 kLIBC
9027         spawn() on OS/2 kLIBC is not silly like one on Windows
9028         * libc/w32spawn.h (SHELL_SPECIAL_CHARS, SHELL_SPACE_CHAR): Set both to
9029         empty string on OS/2 kLIBC.
9031         pipe-filter-aux: undefine HAVE_SELECT on KLIBC
9032         On OS/2 kLIBC, select() works only on sockets.
9033         * lib/pipe-filter-aux.h (HAVE_SELECT): Undefine on OS/2 kLIBC.
9035         binary-io: don't put fd in binary mode if it is a console on EMX
9036         * lib/binary-io.h (SET_BINARY): Don't put fd in binary mode if it is
9037         a console on EMX.
9039 2016-01-15  Pádraig Brady  <P@draigBrady.com>
9041         doc: mention unfixed issues with unsupported localtime() values
9042         * doc/posix-functions/localtime.texi: Mention that FreeBSD 10
9043         returns nonsense for localtime(2^56).
9044         * doc/posix-functions/localtime_r.texi: Likewise.
9046 2016-01-14  Pádraig Brady  <P@draigBrady.com>
9048         doc: mention setlocale() issues on OpenBSD
9049         * doc/posix-functions/setlocale.texi: Mention setlocale(LC_ALL,"")
9050         never fails, and the need to check categories individually.
9052 2016-01-14  Pádraig Brady  <P@draigBrady.com>
9054         sig2str: list all signals on FreeBSD >= 7
9055         FreeBSD >= 7 is contravening POSIX by not defining NSIG
9056         to the maximal statically defined signal value.
9057         It does define _SIG_MAXSIG though, so base SIGNUM_BOUND on that.
9058         * lib/sig2str.h (SIGNUM_BOUND): Define to (_SIG_MAXSIG - 2)
9059         where available, even when NSIG is defined.
9061 2016-01-13  Paul Eggert  <eggert@cs.ucla.edu>
9063         acl-permissions: port to USE_ACL==0 platforms
9064         I ran into this problem when building bleeding-edge GNU Emacs
9065         with gcc -fsanitize=address on Fedora 23.  On this platform
9066         the ACL library does not pass the 'configure' test and Emacs
9067         then does not build due in part to what appear to be typos in the
9068         ACL part of Gnulib.
9069         * lib/acl-internal.c (free_permission_context):
9070         * lib/acl-internal.h (struct permission_context):
9071         Test whether USE_ACL is nonzero, not whether it is defined.
9073 2016-01-12  Martin Sebor  <msebor@redhat.com>
9075         mktime: rename macro to avoid glibc clash
9076         * lib/mktime.c [DEBUG] (DEBUG): Rename to DEBUG_MKTIME.  See:
9077         https://sourceware.org/ml/libc-alpha/2016-01/msg00267.html
9079 2016-01-12  Paul Eggert  <eggert@cs.ucla.edu>
9081         Port "$@" to OpenIndiana ksh93
9082         In http://lists.gnu.org/r/bug-autoconf/2015-12/msg00000.html
9083         Pavel Raiskup reports that ${1+"$@"} runs afoul of a bug in /bin/sh
9084         (derived from ksh 93t+ 2010-03-05).  ${1+"$@"} works around an ancient
9085         bug long-dead shells, so remove the workaround.
9086         * build-aux/announce-gen, build-aux/do-release-commit-and-tag:
9087         * build-aux/gitlog-to-changelog, build-aux/gnu-web-doc-update:
9088         * build-aux/prefix-gnulib-mk, build-aux/update-copyright:
9089         * build-aux/useless-if-before-free, tests/test-update-copyright.sh:
9090         Use "$@" instead of ${1+"$@"}.
9092         Port Universal Time settings to strict POSIX
9093         * build-aux/announce-gen, build-aux/bootstrap:
9094         * build-aux/do-release-commit-and-tag, build-aux/git-version-gen:
9095         * build-aux/gitlog-to-changelog, build-aux/gnu-web-doc-update:
9096         * build-aux/gnupload, build-aux/mkinstalldirs:
9097         * build-aux/move-if-change, build-aux/prefix-gnulib-mk:
9098         * build-aux/update-copyright, build-aux/useless-if-before-free:
9099         * build-aux/vc-list-files, tests/test-strftime.c:
9100         Use TZ="UTC0", not TZ="UTC".  Either works on GNU platforms,
9101         but POSIX says the behavior of TZ="UTC" is undefined.
9103 2016-01-02  Paul Eggert  <eggert@cs.ucla.edu>
9105         msvc-inval: fix problem with unset shell var
9106         Problem reported by Karl Berry in:
9107         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00004.html
9108         * modules/msvc-inval (Depends-on):
9109         AC_REQUIRE gl_MSVC_INVAL instead of merely calling it.
9110         * modules/msvc-nothrow (Depends-on): Likewise for gl_MSVC_NOTHROW.
9112 2016-01-01  Pádraig Brady  <P@draigBrady.com>
9114         tests: for compare_(), use cmp -s where available
9115         * tests/init.sh (compare_): Only fall back to cmp without
9116         the POSIX defined -s option, where this is not available.
9118 2016-01-01  Paul Eggert  <eggert@cs.ucla.edu>
9120         version-etc: new year
9121         * build-aux/gendocs.sh (version):
9122         * doc/gendocs_template:
9123         * doc/gendocs_template_min:
9124         * doc/gnulib.texi:
9125         * lib/version-etc.c (COPYRIGHT_YEAR):
9126         Update copyright dates by hand in templates and the like.
9127         * all files: Run 'make update-copyright'.
9129 2015-12-31  Paul Eggert  <eggert@cs.ucla.edu>
9131         human: fix output buffer overrun by 1
9132         * lib/human.c (human_readable): Fix off-by-one typo in buffer
9133         calculation that could lead to a one-byte buffer overrun.
9135 2015-12-28  Daiki Ueno  <ueno@gnu.org>
9137         maint: fix operator precedence in mbrtowc test
9138         This is a fix for test breakage introduced by commit 45228d96; the
9139         equality expression must be parenthesized when negated with '!',
9140         otherwise we always get:
9142           test-mbrtowc.c:49: assertion 'ret == (size_t)(-2)' failed
9144         * m4/mbrtowc.m4 (gl_MBRTOWC_EMPTY_INPUT): Negate the entire expression.
9145         * m4/mbrlen.m4 (gl_MBRLEN_EMPTY_INPUT): Likewise.
9147 2015-12-23  James Youngman  <jay@gnu.org>
9149         regexprops-generic: update from regex.h
9150         * doc/regexprops-generic.texi: update by running the regexprops binary
9151         from findutils (the command line is 'regexprops "Regular Expressions"
9152         generic').  The recent (ish) change (5a5a9388) to regex.h aligning
9153         gnulib with GNU grep had made this document out-of-date.
9155 2015-12-23  Pádraig Brady  <P@draigBrady.com>
9157         strftime-tests: avoid false failure on OS X
9158         * tests/test-strftime.c (struct localtime_rz_test): Add an
9159         ahistorical member which is used to warn rather than fail
9160         when tm_isdst isn't set for such entries.  This is the case for
9161         "1970-01-01 13:00:00 +1300 (NZDT)" on Darwin 13/14 at least.
9163 2015-12-20  Kamil Dudka  <kdudka@redhat.com>
9165         fts: ensure leaf optimization is used for NFS
9166         NFS provides usable dirent.d_type but not necessarily for all entries
9167         of large directories.  See <https://bugzilla.redhat.com/1252549>
9168         * lib/fts.c (leaf_optimization_applies): Append NFS on the white list.
9170 2015-12-20  Pádraig Brady  <P@draigBrady.com>
9172         fts: enable leaf optimization for XFS
9173         XFS provides usable dirent.d_type only for DT_DIR,
9174         but the noleaf optimization still applies.
9175         * lib/fts.c (leaf_optimization_applies): Add XFS to the white list.
9177 2015-12-17  Paul Eggert  <eggert@cs.ucla.edu>
9179         intprops: comment fix
9180         * lib/intprops.h: Fix comment.  Reported by Pádraig Brady in:
9181         http://lists.gnu.org/r/bug-gnulib/2015-12/msg00013.html
9183         intprops-test: work around GCC bug 68971
9184         Problem reported by Pádraig Brady in:
9185         http://lists.gnu.org/r/bug-gnulib/2015-12/msg00011.html
9186         * tests/test-intprops.c: Ignore -Woverflow in GCC 6 and earlier.
9187         (main): Add a case that better tests 64-bit long in this area.
9189 2015-12-09  Pavel Raiskup  <praiskup@redhat.com>
9191         gnulib-tool: allow multiple --local-dir usage
9192         * gnulib-tool: Use --local-dir to construct compound
9193         $local_gnulib_path path instead of $local_gnulib_dir.  Determine
9194         PATH_SEPARATOR early.
9195         (local_gnulib_dir): Rename into $local_gnulib_path everywhere.
9196         (func_gnulib_dir): Cut out PATH_SEPARATOR detection code into
9197         func_determine_path_separator because that needs to be detected
9198         earlier now.
9199         (func_determine_path_separator): New function.
9200         (func_path_foreach, func_path_foreach_inner): New functions.
9201         (func_path_prepend, func_path_append): Likewise.
9202         (func_lookup_local_file, func_lookup_local_file_cb): Likewise.
9203         (func_lookup_file, func_all_modules): Use new functions to work
9204         with local_gnulib_path.
9205         (func_modules_in_dir, func_exists_module): New callbacks for
9206         func_path_foreach.
9207         (func_exists_module, func_get_tests_module): Likewise.
9208         (func_is_local_file, func_should_symlink): New helper methods.
9209         (func_add_file, func_update_file): Use new func_should_symlink
9210         instead, DRY.
9211         (func_reconstruct_cached_local_gnulib_path): New helper.
9212         (func_reconstruct_cached_dir): New callback.
9213         (func_import): The cached_local_gnulib_dir renamed to
9214         cached_local_gnulib_path similarly to local_gnulib_dir.
9215         Use new func_reconstruct_cached_local_gnulib_path.
9216         (func_count_relative_local_gnulib_path): New sub-method.
9217         (func_create_testdir): Use func_should_symlink, DRY.
9218         (func_create_megatestdir): Use new functions to work with
9219         local_gnulib_path correctly.
9220         (func_append_local_dir): New helper.
9222 2015-12-08  Pádraig Brady  <P@draigBrady.com>
9224         fix freadptr to work with ungetc on all uClibc configs
9225         Reported at https://bugs.busybox.net/show_bug.cgi?id=4099
9226         where GNU coreutils cut(1) generates invalid output on uClibc
9227         when __UCLIBC_HAS_STDIO_GETC_MACRO__ is not defined.
9228         * lib/freadptr.c (freadptr): Return NULL if there are
9229         ungotten chars.  In this case freadseek() will iterate
9230         again to process the ungotten character.
9232 2015-11-13  Paul Eggert  <eggert@cs.ucla.edu>
9234         xalloc-oversized: improve performance with GCC 5
9235         * lib/xalloc-oversized.h (xalloc_oversized):
9236         Improve performance with GCC 5 by using __builtin_mul_overflow.
9238 2015-11-10  Paul Eggert  <eggert@cs.ucla.edu>
9240         intprops: new public macro EXPR_SIGNED
9241         Emacs can use this macro, so make it public.
9242         * doc/intprops.texi (Arithmetic Type Properties): Rename from
9243         'Integer Type Determination', since some of these macros apply
9244         to non-integer types.  Clarify what kinds of constant expressions
9245         these macros return.  Say when the arguments can be non-integers.
9246         Mention newly published macro EXPR_SIGNED.
9247         * lib/intprops.h (EXPR_SIGNED): Rename from _GL_INT_SIGNED, to
9248         make it public.  All uses changed.
9250         intprops: fix typo in clang port
9251         * lib/intprops.h (_GL_INT_OP_WRAPV): Fix misspelling of
9252         '__builtin_add_overflow' that is not caught by compiler.
9254 2015-11-05  Paul Eggert  <eggert@cs.ucla.edu>
9256         test-timespec: fix typo in previous change
9257         * tests/test-timespec.c (main): Fix typo that reduced test quality.
9259         timespec-sub: fix overflow bug; add tests
9260         * lib/timespec-add.c (timespec_add):
9261         * lib/timespec-sub.c (timespec_sub):
9262         Work even if time_t is narrower than int (a theoretical
9263         possibility).  Redo code for a bit more clarity.
9264         * lib/timespec-sub.c (timespec_sub):
9265         Fix off-by-2 bug if a.tv_sec == TYPE_MINIMUM (time_t) and 0 < b.tv_sec.
9266         * modules/timespec-tests, tests/test-timespec.c: New files.
9268         intprops-test: suppress -Woverlength-strings
9269         Problem reported by Pádraig Brady in:
9270         http://lists.gnu.org/r/bug-gnulib/2015-11/msg00008.html
9271         It is not worth the hassle to port this test to compilers that
9272         cannot handle long strings in diagnostics.
9273         * tests/test-intprops.c [__GNUC__]: Ignore -Woverlength-strings.
9275 2015-11-03  Pádraig Brady  <P@draigBrady.com>
9277         quotearg: add quotearg_n_style_colon()
9278         This quotes with default options of the specified style,
9279         but with quoting enabled for instances of ':'.
9280         * lib/quotearg.h (quotearg_n_style_colon): Description and declaration.
9281         * lib/quotearg.c (quotearg_n_style_colon): New function implementation.
9283 2015-11-04  Paul Eggert  <eggert@cs.ucla.edu>
9285         intprops: revise _WRAPV macros, revert _OVERFLOW
9286         The incompatible changes to the _OVERFLOW macros were too much of
9287         a hassle in practice, so revert them.  Instead, change the new
9288         _WRAPV macros to make them closer in behavior to GCC 5's new
9289         builtin_add_overflow etc. functions.  No other software was using
9290         these newly-added macros yet, so this should be OK.
9291         * NEWS: Revert previous change, since the incompatible change
9292         has been reverted, and nobody used the incompatible version.
9293         * doc/intprops.texi (Wraparound Arithmetic, Integer Type Overflow):
9294         Document revised behavior.
9295         (Integer Range Overflow): Adjust example to match above revisions.
9296         * lib/intprops.h (INT_ADD_OVERFLOW, INT_SUBTRACT_OVERFLOW)
9297         (INT_MULTIPLY_OVERFLOW): Revert previous change, so that
9298         these can be used in integer constant expressions again.
9299         (INT_CONST_ADD_OVERFLOW, INT_CONST_SUBTRACT_OVERFLOW)
9300         (INT_CONST_MULTIPLY_OVERFLOW): Remove, as these are no longer
9301         needed.
9302         (INT_CONST_ADD_WRAPV, INT_CONST_SUBTRACT_WRAPV)
9303         (INT_NEGATE_WRAPV, INT_CONST_MULTIPLY_WRAPV, INT_DIVIDE_WRAPV)
9304         (INT_REMAINDER_WRAPV, INT_LEFT_SHIFT_WRAPV):
9305         Remove, as they did not seem that useful.
9306         (INT_ADD_WRAPV, INT_SUBTRACT_WRAPV, INT_MULTIPLY_WRAPV)
9307         (_GL_INT_OP_WRAPV, _GL_INT_OP_WRAPV_LONGISH)
9308         (_GL_INT_OP_WRAPV_VIA_UNSIGNED):
9309         Support new semantics.
9310         (__has_builtin): New macro, if not alreay defined.
9311         (_GL__GENERIC_BOGUS, _GL_INT_OP_CALC, _GL_INT_OP_CALC1): New macros.
9312         * tests/test-intprops.c (INT_CONST_DIVIDE_OVERFLOW)
9313         (INT_CONST_REMAINDER_OVERFLOW, INT_CONST_LEFT_SHIFT_OVERFLOW)
9314         (INT_CONST_DIVIDE_WRAPV, INT_CONST_REMAINDER_WRAPV)
9315         (INT_CONST_LEFT_SHIFT_WRAPV): Remove.
9316         (CHECK_SBINOP, CHECK_SSUM, CHECK_SUM1, CHECK_SSUM1)
9317         (CHECK_SDIFFERENCE, CHECK_SPRODUCT, CHECK_PRODUCT1, CHECK_SPRODUCT1):
9318         New macros.
9319         (CHECK_BINOP, CHECK_UNOP, main, CHECK_SUM): Test new behavior.
9321 2015-11-03  Jim Meyering  <meyering@fb.com>
9323         intprops: add parentheses for when OP has precedence lower than "-"
9324         * lib/intprops.h (_GL_INT_OP_WRAPV_VIA_UNSIGNED): In "a OP b - c",
9325         "a OP b" must be parenthesized for when OP is like "<<", which has
9326         lower precedence than the following "-". Reported by Pádraig Brady.
9328 2015-11-03  Pádraig Brady  <P@draigBrady.com>
9330         quotearg: constify get_quoting_style parameters
9331         * lib/quotearg.h (get_quoting_style): Mark parameter as const.
9332         * lib/quotearg.c (get_quoting_style): Likewise.
9334 2015-11-02  Pádraig Brady  <P@draigBrady.com>
9336         quotearg: add support for $'' shell escaping
9337         * lib/quotearg.h: Add "shell-escape" and "shell-escape-always"
9338         items and descriptions.
9339         * lib/quotearg.c (quotearg_buffer_restyled): Add support for the
9340         above types by quoting like "shell", but using $'...' syntax
9341         for non printable characters, which should provide unambiguous
9342         printable output for any input.
9343         * tests/test-quotearg-simple.c: Update accordingly.
9345 2015-11-02  Pádraig Brady  <P@draigBrady.com>
9347         maint: use a more standard return from mbrtowc test
9348         * m4/mbrtowc.m4 (gl_MBRTOWC_EMPTY_INPUT): Don't return 1
9349         from the test program as this is non standard and often
9350         indicates an unhandled case in the test program.
9351         * m4/mbrlen.m4 (gl_MBRLEN_EMPTY_INPUT): Likewise.
9353 2015-10-30  Paul Eggert  <eggert@cs.ucla.edu>
9355         intprops: add WRAPV and const flavors for GCC 5
9356         If available, use GCC 5's builtin functions for efficient integer
9357         overflow checking.  Also, add macros like INT_ADD_WRAPV efficently
9358         and safely compute the low-order bits of the correct answer.
9359         A downside of these efficient functions is that they cannot be
9360         used in constant expressions, so add macros like INT_CONST_ADD_OVERFLOW
9361         and INT_CONST_ADD_WRAPV that can be used even in constant expressions.
9362         * NEWS: Document the incompatible changes to INT_ADD_OVERFLOW etc.
9363         * doc/intprops.texi (Integer Properties, Integer Type Overflow):
9364         Document the changes.
9365         (Wraparound Arithmetic): New section.
9366         (Integer Range Overflow):
9367         Put this subsection last, since it's least useful.
9368         * lib/intprops.h (INT_CONST_ADD_OVERFLOW)
9369         (INT_CONST_SUBTRACT_OVERFLOW, INT_CONST_MULTIPLY_OVERFLOW):
9370         New macros, with the meaning that INT_ADD_OVERFLOW etc. used to have.
9371         (INT_CONST_ADD_WRAPV, INT_CONST_SUBTRACT_WRAPV)
9372         (INT_NEGATE_WRAPV, INT_CONST_MULTIPLY_WRAPV, INT_DIVIDE_WRAPV)
9373         (INT_REMAINDER_WRAPV, _GL_INT_OP_WRAPV, _GL_EXPR_CAST)
9374         (_GL_INT_OP_WRAPV_LONGISH, INT_ADD_WRAPV, INT_SUBTRACT_WRAPV)
9375         (INT_MULTIPLY_WRAPV, _GL_OP_OVERFLOW, _GL_OP_WRAPV, _GL_OP_WRAPV_GENSYM):
9376         New macros.
9377         (INT_ADD_OVERFLOW, INT_SUBTRACT_OVERFLOW, INT_MULTIPLY_OVERFLOW):
9378         Generate calls to GCC builtins if available, for speed.
9379         * tests/test-intprops.c (INT_CONST_DIVIDE_OVERFLOW)
9380         (INT_CONST_REMAINDER_OVERFLOW, INT_CONST_LEFT_SHIFT_OVERFLOW)
9381         (INT_CONST_DIVIDE_WRAPV, INT_CONST_REMAINDER_WRAPV)
9382         (INT_CONST_LEFT_SHIFT_WRAPV): New macros.
9383         (main, CHECK_BINOP, CHECK_UNOP, CHECK_SUM, CHECK_PRODUCT)
9384         (CHECK_QUOTIENT, CHECK_REMAINDER):
9385         Test WRAPV and CONST flavors (when available) too.
9387 2015-10-30  Pádraig Brady  <P@draigBrady.com>
9389         doc: use extended timezone format in iso-8601 example
9390         * doc/parse-datetime.texi: The standard states that extended format
9391         is to be used consistently throughout.
9392         Note that lib/parse-datetime.y can handle either tz format.
9394 2015-10-25  Paul Eggert  <eggert@cs.ucla.edu>
9396         stdalign: port to Sun C 5.9
9397         * doc/posix-headers/stdalign.texi: Document this.
9398         * lib/stdalign.in.h (_Alignas): Sun C 5.9 also supports
9399         __attribute__ ((__aligned__ (...))).
9401 2015-10-20  Paul Eggert  <eggert@cs.ucla.edu>
9403         time_rz: fix comment about tzalloc
9404         * lib/time_rz.c (tzalloc): Fix comment.
9406 2015-10-18  Paul Eggert  <eggert@cs.ucla.edu>
9408         stdalign: work around pre-4.9 GCC x86 bug
9409         * lib/stdalign.in.h (_Alignof): Work around bug in pre-4.9 GCC on
9410         x86, when -std=gnu11 is used.  Problem reported by Jim Meyering in:
9411         http://lists.gnu.org/r/bug-gnulib/2015-10/msg00038.html
9413 2015-10-18  Pádraig Brady  <P@draigBrady.com>
9415         maint.mk: sc_tight_scope: remove extraneous expressions
9416         * top/maint.mk (tight_scope): This is not really required since
9417         commit 3ef58f46 as sed_wrap ensures we don't get an empty expression
9418         that matches all nm entries.  But it does remove extraneous entries
9419         that may be confusing or cause issue in future maintenance.
9421 2015-10-18  Paul Eggert  <eggert@cs.ucla.edu>
9423         time_rz: return NULL if localtime_r fails
9424         * lib/time_rz.c (localtime_rz): Return NULL if localtime_r fails,
9425         while still attempting to pacify bleeding-edge GCC.
9427         fts: port to C11 alignof
9428         * doc/posix-headers/stdalign.texi (stdalign.h):
9429         Document the C11 restriction.
9430         * lib/fts.c: Include stddef.h, for max_align_t.
9431         (fts_alloc): Align using max_align_t, not FTSENT.
9432         * modules/fts (Depends-on): Add stddef.
9434 2015-10-18  Jim Meyering  <meyering@fb.com>
9436         time_rz: avoid warning from bleeding-edge gcc's -Wnonnull
9437         Compiling with gcc version 6.0.0 20151017 (experimental) (GCC), I
9438         would see this:
9440         lib/time_rz.c: In function 'localtime_rz':
9441         lib/time_rz.c:292:15: error: nonnull argument 'tm' compared to NULL \
9442           [-Werror=nonnull]
9443                    if (tm && !save_abbr (tz, tm))
9444                        ^
9446         That was complaining about "tm" because it is a parameter that was
9447         declared with the __nonnull__ attribute.
9448         * lib/time_rz.c (localtime_rz): Don't bother setting "tm" to the
9449         result of localtime_r.
9451 2015-10-17  Jim Meyering  <meyering@fb.com>
9453         maint.mk: _gl_TS_function_match: fix "extern" name extracting regexp
9454         * top/maint.mk (_gl_TS_function_match): This heuristic extern-function-
9455         name-extraction regexp mistakenly used \S+, and would mistakenly
9456         extract "*F" from "extern int *F()" rather than the desired "F".
9457         Use \w+ instead.
9459 2015-10-17  Jim Meyering  <meyering@fb.com>
9461         maint.mk: sc_tight_scope: factor and support OS X
9462         * top/maint.mk (_gl_tight_scope): Address three issues:
9463         - factor out four instances of code that wraps a string in "^...$"
9464         - allow nm-reported symbol names to have an optional leading "_"
9465         - add "main" to the list of ignored variable names, because on os x,
9466         "main" has nm-reported type "S" in the variable-checking section.
9468 2015-10-16  Dmitry Smirnov  <onlyjob@member.fsf.org>
9470         safe-alloc-tests: fix typo in license header
9471         * tests/test-safe-alloc.c: Mention LGPL 2.1, not 3.1
9473 2015-10-15  Simon Reinhardt  <simon@keinstein.org>
9475         copy-file: fix mem leak in error case
9476         * lib/copy-file.c (qcopy_file_preserving): Free the 32KiB buffer
9477         upon error opening or performing I/O to the src and dest files.
9479 2015-10-15  Mike Frysinger  <vapier@chromium.org>
9481         localename: control langinfo.h inclusion
9482         This header is only used to work around buggy behavior in old
9483         versions of glibc, so do not include it all the time.  Otherwise
9484         we get build failures on systems that do not provide langinfo.h.
9485         * lib/localename.c: Wrap langinfo.h include with same ifdefs used
9486         in the source later on.
9487         The patch was originally submitted to gettext as:
9488         https://lists.gnu.org/r/bug-gettext/2015-10/msg00011.html
9490 2015-10-13  Paul Eggert  <eggert@cs.ucla.edu>
9492         binary-io, math, pthread, sys_socket, u64, unistd: port to strict C
9493         * lib/binary-io.c, lib/math.c, lib/pthread.c, lib/sys_socket.c:
9494         * lib/u64.c, lib/unistd.c:
9495         Append 'typedef int dummy;', to pacify compilers that are picky
9496         about empty translation units.
9498 2015-10-12  Pino Toscano  <ptoscano@redhat.com>
9500         accept4-tests: fix to avoid non portable flags
9501         * tests/test-accept4.c (main): Pass only SOCK_* flags to accept4(),
9502         as they are the only documented ones, and passing others may trigger
9503         EINVAL (seen on FreeBSD 10.1-RELEASE).
9504         * doc/glibc-functions/accept4.texi: Mention that we don't provide
9505         the SOCK_CLOEXEC or SOCK_NONBLOCK defines.
9507 2015-10-06  Pavel Raiskup  <praiskup@redhat.com>
9509         gnulib-tool: fix tests of 'extensions' module
9510         This complements f8fe25fab60e3c687a124 commit.
9511         * gnulib-tool (func_emit_pre_early_macros): New function, it wraps
9512         emitting of initial gl_EARLY macros.
9513         (func_import, func_create_testdir): All dumps of gl_PROG_AR_RANLIB
9514         replaced with func_emit_pre_early_macros call.
9516 2015-10-06  Paul Eggert  <eggert@cs.ucla.edu>
9518         unicase/locale-language: fix typo in utf-8 cookie
9519         * lib/unicase/locale-languages.gperf: Fix gperf input file format.
9520         Problem reported by Zbigniew Jędrzejewski-Szmek.
9522 2015-10-02  Paul Eggert  <eggert@cs.ucla.edu>
9524         xalloc: do not worry about GCC 5 warning on 32 bit
9525         * lib/xalloc.h: Revert previous change.
9526         I found a better way to fix this in coreutils.
9528 2015-10-02  Pádraig Brady  <P@draigBrady.com>
9530         xalloc: avoid GCC 5.1 warning on 32 bit
9531         * lib/xalloc.h: Disable -Wstrict-overflow for uses of
9532         xalloc_oversized(), which was seen to give this warning
9533         on GCC 5.1 on 32 bit: "assuming signed overflow does not occur
9534         when simplifying conditional".
9536 2015-10-02  Daiki Ueno  <ueno@gnu.org>
9538         uniname/uniname-tests: avoid compiler warnings
9539         * tests/uniname/test-uninames.c (fill_names, fill_aliases): Remove
9540         unused local variables.
9541         (test_alias_lookup): Fix alias name display in failure cases.
9543 2015-09-26  Paul Eggert  <eggert@cs.ucla.edu>
9545         c-ctype: do not worry about EBCDIC + char signed
9546         Drop support for EBCDIC with char being signed, as this breaks too
9547         many programs.  Problem reported by Ben Pfaff in:
9548         http://lists.gnu.org/r/bug-gnulib/2015-09/msg00053.html
9549         * lib/c-ctype.h: Verify that we are not using EBCDIC with
9550         char being signed.
9551         (_C_CTYPE_LOWER_A_THRU_F_N): New macro.
9552         (_C_CTYPE_LOWER_N, _C_CTYPE_A_THRU_F): Use it.
9553         (_C_CTYPE_DIGIT, _C_CTYPE_LOWER, _C_CTYPE_PUNCT, _C_CTYPE_UPPER):
9554         (c_isascii, c_isgraph, c_isprint, c_ispunct, c_tolower, c_toupper):
9555         * tests/test-c-ctype.c (test_all):
9556         Simplify by assuming standard char values cannot be negative.
9557         * tests/test-c-ctype.c (NCHARS, to_char): Remove; all uses removed.
9559 2015-09-25  Paul Eggert  <eggert@cs.ucla.edu>
9561         c-ctype: port better to z/OS EBCDIC
9562         Problems reported by Daniel Richard G. in:
9563         http://lists.gnu.org/r/bug-gnulib/2015-09/msg00050.html
9564         * lib/c-ctype.h (_C_CTYPE_CNTRL): Rewrite in terms of
9565         the C standard escapes and _C_CTYPE_OTHER_CNTRL.
9566         (_C_CTYPE_OTHER_CNTRL): New macro.
9567         * tests/test-c-ctype.c (test_all): Test from CHAR_MIN, not
9568         from SCHAR_MIN, as the functions are defined only from values
9569         promoted from char or from unsigned char, not necessarily from
9570         signed char.
9572 2015-09-25  Pavel Raiskup  <praiskup@redhat.com>
9574         gnulib-common.m4: fix gl_PROG_AR_RANLIB/AM_PROG_AR clash
9576         The gl_PROG_AR_RANLIB (it is always called by gl_EARLY) sets AR
9577         and ARFLAGS variables.  Doing this unconditionally could break
9578         later Automake's AM_PROG_AR invocation (at least it's
9579         AC_CHECK_TOOLS call to detect correct 'ar' binary).
9581         Original purpose of the gl_PROG_AR_RANLIB was only to handle the
9582         Amsterdam Compiler Kit, so make the previous code to have effects
9583         only on ACK, and rather automatically call the Automake's
9584         AM_PROG_AR as soon as possible to decide other cases.
9586         References:
9587         http://lists.gnu.org/r/bug-gnulib/2015-07/msg00001.html
9589         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): AC_BEFORE AM_PROG_AR.
9590         Set the AR/ARFLAGS to ACK defaults OR call AM_PROG_AR.  If neither
9591         is possible, keep setting AR/ARFLAGS to reasonable defaults.
9592         * gnulib-tool (func_import): Put the gl_USE_SYSTEM_EXTENSIONS
9593         right before gl_PROG_AR_RANLIB into gnulib-comp.m4 (if the
9594         'extensions' module is used.
9595         * modules/extensions (configure.ac-early): Remove as this snippet
9596         is added to gnulib-comp.m4 earlier anyway.
9598 2015-09-25  Paul Eggert  <eggert@cs.ucla.edu>
9600         sockets: MS Windows initalization fixes
9601         Problem reported by Test User in:
9602         http://lists.gnu.org/r/help-shishi/2015-09/msg00001.html
9603         * lib/sockets.h (SOCKETS_1_0, SOCKETS_2_0, SOCKETS_2_1):
9604         Correct the endianness.
9605         * lib/sockets.c (gl_sockets_startup): Return 2 on any version
9606         number mismatch, not just on <.  Cleanup before any such failure.
9608 2015-09-25  Mats Erik Andersson  <gnu@gisladisker.se>
9610         gc: fix detection of installed libgcrypt version
9611         * m4/gc.m4: Use AM_PATH_LIBCRYPT to test for libcrypt versions
9612         at least as recent as 1.4.4.  The previously used macro is not
9613         available now, since modules were removed in version 1.6.0.
9615 2015-09-25  Paul Eggert  <eggert@cs.ucla.edu>
9617         c-ctype: rewrite to use inline functions
9618         This simplifies maintenance, since it makes for just one
9619         implementation of each function, letting the compiler have the fun
9620         of optimization.  In practice this works well nowadays with GCC.
9621         E.g., c_isascii might need only three instructions even though the
9622         source code lists every ASCII character individually in a large
9623         switch statement.
9624         Also, fix some z/OS porting bugs reported by Daniel Richard G. in:
9625         http://lists.gnu.org/r/bug-gnulib/2015-09/msg00037.html
9626         * NEWS: Document the API change.
9627         * lib/c-ctype.c: Drastically simplify, since this now just expands
9628         inline functions.
9629         * lib/c-ctype.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
9630         (C_CTYPE_INLINE): New macro.
9631         (C_CTYPE_CONSECUTIVE_DIGITS, C_CTYPE_CONSECUTIVE_LOWERCASE)
9632         (C_CTYPE_CONSECUTIVE_UPPERCASE): Remove.
9633         Verify that either ASCII or EBCDIC is being used.
9634         (_C_CTYPE_SIGNED_EBCDIC, _C_CTYPE_CNTRL, _C_CTYPE_A_THRU_F_N)
9635         (_C_CTYPE_DIGIT_N, _C_CTYPE_LOWER_N, _C_CTYPE_UPPER_N)
9636         (_C_CTYPE_CASES, _C_CTYPE_A_THRU_F, _C_CTYPE_DIGIT, _C_CTYPE_LOWER)
9637         (_C_CTYPE_UPPER, _C_CTYPE_PUNCT_PLAIN):
9638         New private macros.
9639         (_C_CTYPE_CNTRL): In EBCDIC, '\x07' is a control, not '\xff'.
9640         (c_isalnum, c_isalpha, c_isascii, c_isblank, c_iscntrl, c_isdigit)
9641         (c_isgraph, c_islower, c_isprint, c_ispunct, c_isspace, c_isupper)
9642         (c_isxdigit, c_tolower, c_toupper): Now inline functions.
9643         (c_tolower, c_toupper): When converting, return the unsigned char,
9644         as that is what z/OS does.
9645         * lib/c-strcaseeq.h (CASEEQ): Simplify in the light of the removal
9646         of some c-ctype.h macros.
9647         * modules/c-ctype (Depends-on): Add extern-inline; remove verify.
9648         * tests/test-c-ctype.c (test_all): Fix test for c_toupper and
9649         c_tolower promotion to be compatible with z/OS.
9651 2015-09-24  Pavel Raiskup  <praiskup@redhat.com>
9653         gitlog-to-changelog: trim only trailing whitespaces
9654         This is fix for --format regression introduced by commit
9655         2b93079a5d1baa4d;  it caused that --format='%s%n%n%b%n' (see the
9656         doubled %n string) had no effect anymore.  This format
9657         specification has been used e.g. by GNU paxuitils (commit
9658         edfd8bcc3).
9660         * build-aux/gitlog-to-changelog (main): Stop squashing multiple
9661         newlines in commmit messages.
9663 2015-09-23  Paul Eggert  <eggert@cs.ucla.edu>
9665         Test that c_iscntrl agrees with iscntrl, etc.
9666         Suggested by Daniel Richard G. in:
9667         http://lists.gnu.org/r/bug-gnulib/2015-09/msg00034.html
9668         * modules/c-ctype-tests (Depends-on): Add ctype.
9669         * tests/test-c-ctype.c: Include <ctype.h>.
9670         (NCHARS): New constant.
9671         (test_agree_with_C_locale): New function.
9672         (main): Use it.
9673         (test_all): Use named constants.
9675         c-ctype: improve c_isascii testing
9676         * tests/test-c-ctype.c (test_all): Port c_isascii test to EBCDIC.
9677         Add a test to count the number of ASCII characters.
9679 2015-09-22  Paul Eggert  <eggert@cs.ucla.edu>
9681         savewd: remove SAVEWD_CHDIR_READABLE
9682         It was problematic in the light of file systems that ignore umask.
9683         Problem reported by Sebastian Unger in: http://bugs.gnu.org/21534
9684         * NEWS: Document this.
9685         * lib/mkancesdirs.c (mkancesdirs): MAKE_DIR now returns 0 if
9686         successful, -1 (setting errno) on failure, rather than something
9687         more complicated than that.
9688         * lib/mkdir-p.c (make_dir_parents):
9689         Do not use SAVEWD_CHDIR_READABLE.
9690         * lib/savewd.c (savewd_chdir):
9691         Remove support for SAVEWD_CHDIR_READABLE.
9692         * lib/savewd.h (SAVEWD_CHDIR_READABLE): Remove.
9694         c-ctype: port better to EBCDIC
9695         Problems reported by Daniel Richard G. in
9696         http://lists.gnu.org/r/bug-gnulib/2015-09/msg00020.html
9697         * lib/c-ctype.c: Include <limits.h>, for CHAR_MIN and CHAR_MAX.
9698         Include "verify.h".
9699         (C_CTYPE_ASCII, C_CTYPE_CONSECUTIVE_DIGITS)
9700         (C_CTYPE_CONSECUTIVE_LOWERCASE, C_CTYPE_CONSECUTIVE_UPPERCASE):
9701         Define as enum constants with value false, if not defined, so that
9702         code can use 'if' instead of 'ifdef'.  Using 'if' helps make the
9703         code more portable, as both branches of the 'if' are compiled on
9704         all platforms.
9705         (C_CTYPE_EBCDIC): New constant.
9706         Verify that the character set is either ASCII or EBCDIC.
9707         (to_char): New static function.
9708         (c_isascii, c_iscntrl):
9709         Assume standard control-character assignments for EBCDIC.
9710         (c_isalnum, c_isalpha, c_isdigit, c_islower, c_isgraph, c_isprint)
9711         (c_ispunct, c_isupper, c_isxdigit, c_tolower, c_toupper):
9712         Rewrite to use 'if' instead of 'ifdef'.
9713         Use to_char if non-ASCII.  Prefer <= to >=.
9714         Prefer true and false to 1 and 0, for booleans.
9715         (c_iscntrl): Use 'if', not 'ifdef'.
9716         * modules/c-ctype (Depends-on): Add verify.
9717         * tests/test-c-ctype.c: Include <limits.h>, for CHAR_MIN
9718         (to_char): New function.
9719         (test_all): Port to EBCDIC.  Add some more tests, e.g., for c_ispunct.
9721 2015-09-21  Pádraig Brady  <P@draigBrady.com>
9723         nanosleep: fix return code for interrupted replacement
9724         * lib/nanosleep.c (nanosleep): In the replaced nanosleep, ensure
9725         that we return -1 in the case the call is interrupted by a signal,
9726         rather than the current value of 1.
9727         Diagnosed and tested by Daniel Richard G.
9729 2015-09-19  Paul Eggert  <eggert@cs.ucla.edu>
9731         Diagnose ERE '()|\1'
9732         Problem reported by Hanno Böck in: http://bugs.gnu.org/21513
9733         * lib/regcomp.c (parse_reg_exp): While parsing alternatives, keep
9734         track of the set of previously-completed subexpressions available
9735         before the first alternative, and restore this set just before
9736         parsing each subsequent alternative.  This lets us diagnose the
9737         invalid back-reference in the ERE '()|\1'.
9739         regex: merge patches from libc
9741         2015-09-08  Joseph Myers  <joseph@codesourcery.com>
9742         Move bits/libc-lock.h and bits/libc-lockP.h out of bits/ (bug 14912).
9743         * lib/regex_internal.h:
9744         Include <libc-lock.h> instead of <bits/libc-lock.h>.
9746         2015-06-09  Joseph Myers  <joseph@codesourcery.com>
9747         Fix regcomp wcscoll, wcscmp namespace (bug 18497).
9748         * lib/regcomp.c (build_range_exp): Call __wcscoll instead of
9749         wcscoll.
9750         * lib/regexec.c (check_node_accept_bytes): Likewise.
9752         2015-06-05  Joseph Myers  <joseph@codesourcery.com>
9753         Fix regex wcrtomb namespace (bug 18496).
9754         * lib/regex_internal.c (build_wcs_upper_buffer): Call __wcrtomb
9755         instead of wcrtomb.
9757         2015-06-05  Joseph Myers  <joseph@codesourcery.com>
9758         Fix regex wctype namespace (bug 18495).
9759         * lib/regcomp.c (re_compile_fastmap_iter): Call __towlower
9760         instead of towlower.
9761         * lib/regex_internal.c (build_wcs_upper_buffer): Call __iswlower
9762         instead of iswlower.  Call __towupper instead of towupper.
9763         * lib/regex_internal.h (IS_WIDE_WORD_CHAR): Call __iswalnum
9764         instead of iswalnum.
9766         2015-01-07  Chris Metcalf  <cmetcalf@ezchip.com>
9767         * lib/regcomp.c (parse_bracket_exp): Initialize type to
9768         COLL_SYM in a couple of places to avoid uninitialized variable
9769         wanings on tilegx gcc 4.8.2.
9771         2014-11-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
9772         * lib/regex_internal.h: Remove NOT_IN_libc.
9774         2014-11-17  Andreas Schwab  <schwab@suse.de>
9775         * lib/regex_internal.h: Don't include <locale/elem-hash.h>.
9777         2014-09-11  Roland McGrath  <roland@hack.frob.com>
9778         Move findidx nested functions to top-level.
9779         * lib/regcomp.c [_LIBC]: #include <locale/weight.h>.
9780         (build_equiv_class) [_LIBC]: Don't #include it inside the function.
9781         Pass new arguments to findidx.
9782         * lib/regexec.c [RE_ENABLE_I18N] [_LIBC]: #include <locale/weight.h>.
9783         [RE_ENABLE_I18N] (check_node_accept_bytes) [_LIBC]:
9784         Don't #include it inside the function.  Pass new arguments to findidx.
9785         * lib/regex_internal.h:
9786         [!NOT_IN_libc] [_LIBC]: #include <locale/weight.h>.
9787         (re_string_elem_size_at): Don't #include it inside the function.
9788         Pass new arguments to findidx.
9790         2014-08-01  Siddhesh Poyarekar  <siddhesh@redhat.com>
9791         Check if DEBUG is defined in regex_internal.c
9792         * lib/regex_internal.c: Check if DEBUG is defined and is set.
9794 2015-09-08   Assaf Gordon  <assafgordon@gmail.com>
9796         ceill: detect buggy OpenBSD implementation
9797         * m4/ceill.m4 (gl_FUNC_CEILL): Detect buggy openBSD implementation
9798         which returns zero for small values.  Discussed here:
9799         http://lists.gnu.org/r/bug-gnulib/2015-08/msg00010.html
9801 2015-09-08  Dave Chiluk  <chiluk@canonical.com>
9803         mountlist: add me_mntroot field on Linux machines
9804         * lib/mountlist.c (read_file_system_list): Populate me_mntroot in
9805         mount_entry so Linux machines based on /proc/self/mountinfo can
9806         distinguish between bind mounts and original mounts.  In reality bind
9807         mounts aren't treated differently than mountroot=/ mounts by the
9808         kernel, but the user often wants these bind mounts distinguished.
9809         * lib/mountlist.h (struct mount_entry): Add me_mntroot element.
9810         More details at https://pad.lv/1432871
9812 2015-09-08  Christian Egli  <christian.egli@sbs.ch>
9814         doc: Describe to use multiple instances of gnulib
9815         * doc/gnulib-tool.texi: Add a section to the manual outlining how two
9816         instances of gnulib with different modules can be used, for example one
9817         for a lib and another one for associated tools.
9819 2015-09-01  Pádraig Brady  <P@draigBrady.com>
9821         base32: mark function as __attribute__ const
9822         * lib/base32.h (isbase32): Mark __attribute__ const as
9823         suggested by GCC, and consistent with the base64 module.
9825 2015-08-20  Daiki Ueno  <ueno@gnu.org>
9827         gnulib-tool: don't transform binary files with sed
9828         * gnulib-tool (func_add_or_update): Don't apply sed_transform_* to
9829         .mo and .class files.
9830         Reported by Denis Denisov.
9832 2015-08-10  Daiki Ueno  <ueno@gnu.org>
9834         gperf: respect silent rules
9835         * modules/gperf (Makefile.am): Define V_GPERF, V_GPERF_, and
9836         V_GPERF_0 for silent rules.
9837         * modules/iconv_open (Makefile.am): Use V_GPERF.
9838         * modules/unicase/locale-language (Makefile.am): Likewise.
9839         * modules/unicase/special-casing (Makefile.am): Likewise.
9840         * modules/unictype/category-byname (Makefile.am): Likewise.
9841         * modules/unictype/combining-class-byname (Makefile.am): Likewise.
9842         * modules/unictype/joininggroup-byname (Makefile.am): Likewise.
9843         * modules/unictype/joiningtype-byname (Makefile.am): Likewise.
9844         * modules/unictype/property-byname (Makefile.am): Likewise.
9845         * modules/unictype/scripts (Makefile.am): Likewise.
9846         * modules/uninorm/composition (Makefile.am): Likewise.
9848 2015-08-03  Paul Eggert  <eggert@cs.ucla.edu>
9850         Improve port of stdalign to C++11
9851         Problem reported by Sundaram in:
9852         http://lists.gnu.org/r/bug-gnulib/2015-08/msg00003.html
9853         * lib/stdalign.in.h (alignof, alignas): Don't define if C++11 or newer.
9854         (__alignas_is_defined): Define if C++11 or newer.
9856 2015-08-01  Assaf Gordon  <assafgordon@gmail.com>  (tiny change)
9858         pmccabe2html: fix gawk regex escaping
9859         * build-aux/pmccabe2html: Add one more backslash to properly
9860         escape the gsub replacement value.  Fixes this error:
9861         gawk: ./build-aux/pmccabe2html:425: \
9862         warning: escape sequence `\&' treated as plain `&'
9864 2015-07-29  Paul Eggert  <eggert@cs.ucla.edu>
9866         time_rz: port to pedantic memcpy
9867         * lib/time_rz.c (tzalloc): Pacify pedantic memcpy implementations
9868         that reject memcpy (..., NULL, 0).
9870 2015-07-27  Paul Eggert  <eggert@cs.ucla.edu>
9872         time_rz: port better to MinGW
9873         Don't change tzname, as this makes MinGW dump core (Bug#21020).
9874         Instead, store the tzname copy in the struct tm_zone object.
9875         Problem reported by Eli Zaretskii in: http://bugs.gnu.org/21020#48
9876         * lib/strftime.c [!_LIBC]:
9877         * lib/time_rz.c: Include time-internal.h.
9878         * lib/strftime.c (strftime_case_) [!HAVE_TM_ZONE]: Infer the zone
9879         name from *TZ rather than from TZNAME, doable because *TZ now has
9880         a tzname_copy member.
9881         * lib/time-internal.h: New file, with contents taken from
9882         lib/time_rz.c.  It's separate because strftime.c now accesses
9883         struct tm_zone members.
9884         (struct tm_zone) [HAVE_TZNAME && !HAVE_TM_ZONE]:
9885         New member tzname_copy.
9886         * lib/time_rz.c (struct tm_zone): Move to time-internal.h.
9887         (tzalloc) [HAVE_TZNAME && !HAVE_TM_ZONE]:
9888         Initialize tzname_copy member.
9889         (save_abbr) [HAVE_TZNAME && !HAVE_TM_ZONE]: Save abbreviation
9890         in tzname_copy member.
9891         (revert_tz) [HAVE_TZNAME]: Remove no-longer-needed tzname saving.
9892         (restore_tzname): Remove; no longer needed.  All calls removed.
9893         * modules/time_rz (Files): Add lib/time-internal.h.
9895         time: port __need_time_t to MinGW
9896         * lib/time.in.h (__need_time_t): Do not treat specially on MinGW.
9897         Fix reported by Eli Zaretskii in: http://bugs.gnu.org/21020#36
9899 2015-07-25  Paul Eggert  <eggert@cs.ucla.edu>
9901         strftime: fix newly-introduced bug on Solaris
9902         * lib/strftime.c (strftime_case_): Set the local variable 'zone'
9903         consistently at the start, rather than doing some of the setup at
9904         the start and some in the %Z format spec.  This is cleaner, and
9905         works better with time_rz on platforms like Solaris where struct
9906         tm lacks a tm_zone member, as when !HAVE_TM_GMTOFF %z's calls to
9907         mktime_z and localtime_rz can mess up the tzname cache.
9909         test-strftime: test for Solaris bug
9910         * modules/strftime-tests (Depends-on): Add strerror.
9911         * tests/test-strftime.c: Include <errno.h>.
9912         (posixtm_test): New function, containing the old 'main'.
9913         (struct tzalloc_test, struct localtime_rz_test): New types.
9914         (TZ, LT): New static vars.
9915         (tzalloc_test): New function.
9916         (main): Rewrite in terms of posixtm_test and tzalloc_test.
9918         time_rz: port to Solaris etc.
9919         Works around a tzname problem on platforms like Solaris that have
9920         tzname but not tm_zone, by setting tzname at the appropriate time
9921         and restoring it later.
9922         * lib/time_rz.c (tzname_address, tzname_value) [HAVE_TZNAME]:
9923         New static vars.
9924         (save_abbr) [HAVE_TZNAME]: Set them.
9925         (revert_tz) [HAVE_TZNAME]: Clear or use them.
9926         (restore_tzname): New function.
9927         (localtime_rz, mktime_z): Use it.
9929         time_rz: now LGPL
9930         * modules/time_rz (License): Now LGPL, because strftime depends on it.
9932         time_rz: make a constant 'const'
9933         * lib/time_rz.c (local_tz): Now const.
9935         time_rz: fix off-by-one typo
9936         * lib/time_rz.c (extend_abbrs): Fix off-by-one typo.
9938 2015-07-23  Paul Eggert  <eggert@cs.ucla.edu>
9940         fprintftime, strftime: use timezone_t args
9941         * NEWS: Document the change.
9942         * lib/fprintftime.h (fprintftime):
9943         * lib/strftime.c (extra_args) [my_strftime]:
9944         * lib/strftime.h (nstrftime):
9945         Time zone arg is now of type timezone_t, not int.
9946         * lib/strftime.c (mktime_z) [_LIBC]: New macro.
9947         (__gmtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: Remove; no longer used.
9948         (my_strftime) [emacs && !my_strftime]:
9949         (emacs_strftimeu) [emacs && !FPRINTFTIME]:
9950         Remove; Emacs doesn't need this any more.
9951         (HAVE_TZSET) [my_strftime]: Unset, since we no longer want
9952         fprintftime and nstrftime to call tzset.
9953         (ut) [!my_strftime]: Remove, replacing with ...
9954         (tz) [!my_stftime]: ... this new macro.  All uses changed.
9955         (strftime_case_): Use localtime_rz and mktime_z instead
9956         of localtime_r and mktime.
9957         * modules/fprintftime (Depends-on): Add time_rz.
9958         * modules/strftime (Depends-on): Add time_rz.  Remove time_r.
9959         * tests/test-strftime.c (main): Adjust to new nstrftime API.
9961         time_rz: new module
9962         * MODULES.html.sh: Add time_rz.
9963         * lib/time_rz.c, m4/time_rz.m4, modules/time_rz: New files.
9964         * lib/time.in.h (timezone_t, tzalloc, tzfree, localtime_rz, mktime_z):
9965         New decls if _GNU_SOURCE && @GNULIB_TIME_RZ@ && ! @HAVE_TIMEZONE_T@.
9966         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS):
9967         New var HAVE_TIMEZONE_T (default 0).
9968         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS):
9969         New var GNULIB_TIME_RZ (default 0).
9970         * modules/time (time.h): Substitute the new vars.
9972         flexmember: license is now unlimited
9973         * modules/flexmember (License): Change to unlimited,
9974         since its only source file gives an unlimited license.
9976 2015-07-15  Eric Blake  <eblake@redhat.com>
9978         maint: update copyright paper procedures
9979         * config/srclist.txt: Drop outdated files.
9980         * doc/Copyright/conditions.txt: Update to latest.
9981         * doc/Copyright/assign.changes.manual: Delete.
9982         * doc/Copyright/assign.future.manual: Likewise.
9983         * doc/Copyright/assign.manual: Likewise.
9984         * doc/Copyright/assign.translation.manual: Likewise.
9985         * doc/Copyright/disclaim.changes.manual: Likewise.
9986         * doc/Copyright/disclaim.manual: Likewise.
9987         * doc/Copyright/disclaim.program: Likewise.
9989 2015-07-07  Daiki Ueno  <ueno@gnu.org>
9991         localename: fix link error on Illumos
9992         Illumos defines __sun, but does not have getlocalename_l nor the
9993         equivalent.  This partially reverts commit 387c214.
9994         * m4/localename.m4 (gl_LOCALENAME): Check if getlocalename_l is
9995         available, as well as uselocale.
9996         * lib/localename.c [HAVE_USELOCALE && __sun]: Don't fallback to
9997         use getlocalename_l if it is not available.
9999 2015-07-07  Daiki Ueno  <ueno@gnu.org>
10001         unistr/uN-strtok-tests: avoid a trivial leak
10002         * tests/unistr/test-u-strtok.h (test_u_strtok): Untabify.  Free
10003         input and delim after the multibyte delimiter tests.
10005 2015-07-04  Paul Eggert  <eggert@cs.ucla.edu>
10007         file-has-acl, acl-permissions: fix HP-UX typos
10008         Problem reported by John David Anglin in: http://bugs.gnu.org/20979
10009         * lib/file-has-acl.c (file_has_acl):
10010         * lib/set-permissions.c (context_acl_from_mode)
10011         (context_aclv_from_mode, set_acls):
10012         Fix some obvious typos when HAVE_GETCL /* HP-UX */.
10013         They were introduced by the recent ACL changes.
10015         regex: match current GNU grep behavior
10016         These symbols have not matched GNU grep behavior for quite some time.
10017         Fix prompted by Balazs Kezes bug report at: http://bugs.gnu.org/20974
10018         * lib/regex.h (RE_SYNTAX_GREP, RE_SYNTAX_EGREP):
10019         Change to match current GNU behavior.
10020         Simplify by expressing it as differences from POSIX BREs and EREs.
10021         (RE_SYNTAX_POSIX_EGREP): No longer differs from GNU behavior.
10023 2015-07-03  Jim Meyering  <meyering@fb.com>
10025         set-permissions.c: adjust acl_from_mode's cpp guard
10026         * lib/set-permissions.c (acl_from_mode): Guard with #ifdef
10027         directives identical to those guarding the sole use.
10028         Otherwise, on some systems, we'd get a warning about
10029         the function being defined but not used.
10030         Also, filter through cppi to correct misleading indentation
10031         of cpp directives.
10033 2015-07-03  Pádraig Brady  <P@draigBrady.com>
10035         tests: restrict shells to those that support 'local'
10036         The local keyword is very widely supported and used
10037         in tests in coreutils and grep at least.  Therefore
10038         restrict to testing with shells that support it.
10039         This mainly excludes /bin/sh on Solaris.
10040         * tests/init.sh (gl_shell_test_script_): Add a test for 'local'.
10042 2015-07-03  Seiya Kawashima  <skawashima@uchicago.edu>  (tiny change)
10043         and Daiki Ueno  <ueno@gnu.org>
10045         unistr/uN-strtok: handle multibyte delimiters
10046         Previously, uN_strtok moved PTR to the next unit to the token end.
10047         When DELIM contained a multibyte character, the new position could
10048         be a middle of a multibyte character.
10049         * lib/unistr/u-strtok.h (FUNC): Place PTR at the next character
10050         after the token.
10051         * lib/unistr/u8-strtok.c (U_STRMBLEN): New macro.
10052         * lib/unistr/u16-strtok.c (U_STRMBLEN): New macro.
10053         * lib/unistr/u32-strtok.c (U_STRMBLEN): New macro.
10054         * modules/unistr/u8-strtok (Depends-on): Depend on
10055         unistr/u8-strmblen.
10056         * modules/unistr/u16-strtok (Depends-on): Depend on
10057         unistr/u16-strmblen.
10058         * modules/unistr/u32-strtok (Depends-on): Depend on
10059         unistr/u32-strmblen.
10060         * tests/unistr/test-u-strtok.h: New file.
10061         * tests/unistr/test-u8-strtok.c: New file.
10062         * tests/unistr/test-u16-strtok.c: New file.
10063         * tests/unistr/test-u32-strtok.c: New file.
10064         * modules/unistr/u8-strtok-tests: New file.
10065         * modules/unistr/u32-strtok-tests: New file.
10066         * modules/unistr/u16-strtok-tests: New file.
10068 2015-07-02  Friedrich Haubensak  <hsk@fli-leibniz.de>
10070         update-copyright: fix test failure with perl >= 5.22 (trivial)
10071         * build-aux/update-copyright: Escape a literal left curly bracket,
10072         required with perl >= 5.22
10074 2015-07-02  Daiki Ueno  <ueno@gnu.org>
10076         u{16,32}-strstr-tests: relax timeout condition
10077         On slower platforms (e.g., Solaris 10/SPARC), u{16,32}-strstr
10078         tests can take longer than 5 seconds to complete.
10079         Reported by Dagobert Michelsen in:
10080         https://lists.gnu.org/r/bug-libunistring/2015-06/msg00006.html
10081         * tests/unistr/test-u16-strstr.c (main): Increase timeout from 5
10082         seconds to 10 seconds.
10083         * tests/unistr/test-u32-strstr.c (main): Likewise.
10085 2015-07-01  Pavel Raiskup  <praiskup@redhat.com>
10087         gnulib-common.m4: change the ARFLAGS default to 'cr'
10088         In some GNU/Linux distributions people started to compile 'ar'
10089         binary with --enable-deterministic-archives (binutils project).
10090         That, however, in combination with previous autotools long time
10091         working default AR{_,}FLAGS=cru causes warnings on such
10092         installations:
10093         ar: `u' modifier ignored since `D' is the default (see `U')
10094         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Set ARFLAGS='cr' if not
10095         set already.
10097 2015-07-01  Pavel Raiskup  <praiskup@redhat.com>
10099         selinux-h: avoid double free after *getfilecon()
10100         Originally reported by Ben Shelton on bug-tar:
10101         http://lists.gnu.org/r/bug-tar/2015-04/msg00009.html
10102         * lib/getfilecon.c (map_to_failure): Set the already freed '*con'
10103         pointer to NULL.  Man getfilecon(3) says that any non-NULL '*con'
10104         param should be freed by freecon(3) (regardless the return value).
10106 2015-07-01  Pavel Fedin  <p.fedin@samsung.com>
10108         fix pty related tests issues on Windows (trivial)
10109         * lib/grantpt.c (grantpt): grantpt.c seems to be never used on Windows,
10110         however it's still present in tests/ subdirectory of the final project.
10111         Therefore avoid it to pass `make check`.
10112         * tests/test-openpty.c (main): Windows has no PTYs and gnulib's openpty()
10113         will just return -ENOSYS, so avoid this non applicable test allowing
10114         the build to proceed.
10116 2015-07-01  Pádraig Brady  <P@draigBrady.com>
10118         acl: fix definition of acl_from_mode on FreeBSD
10119         This was causing basic coreutils copy operations to fail
10120         with ENOTSUP or ENOENT error messages.
10121         * lib/acl-internal.h (acl_from_mode): Only define when
10122         ! defined HAVE_ACL_FROM_TEXT.  That allows the version
10123         of acl_from_mode() defined in lib/set-permissions.c to
10124         be used on FreeBSD at least.
10125         * lib/set-permissions.c: Fix up comment spelling,
10126         and a redundant variable assignment; noticed in passing.
10128 2015-06-30  Pádraig Brady  <P@draigBrady.com>
10130         readutmp: port to FreeBSD >= 9
10131         * lib/readutmp.h: Map utmpxname() to setutxdb().
10132         With that coreutils who(1) and pinky(1) tests pass.
10134 2015-06-30  Paul Eggert  <eggert@cs.ucla.edu>
10136         mgetgroups: port to strict OS X
10137         The previous fix wasn't working, so use a bigger hammer (Bug#20923).
10138         * lib/mgetgroups.c: Ignore -Wpointer-sign diagnostics.
10139         (getgrouplist_gids) [HAVE_GETGROUPLIST]: Remove.  All uses removed.
10140         * m4/mgetgroups.m4 (gl_MGETGROUPS): Revert recent changes.
10142 2015-06-29  Paul Eggert  <eggert@cs.ucla.edu>
10144         mgetgroups: port to strict OS X
10145         * doc/glibc-functions/getgrouplist.texi (getgrouplist):
10146         Document the getgrouplist problem.
10147         * lib/mgetgroups.c (getgrouplist_gids) [HAVE_GETGROUPLIST]:
10148         New macro.
10149         (mgetgroups): Use it.
10150         * m4/mgetgroups.m4 (gl_MGETGROUPS):
10151         Check for OS X signature for getgrouplist.
10153 2015-06-29  Jim Meyering  <meyering@fb.com>
10155         linkat: fix invalid definition of LINKAT_SYMLINK_NOTSUP on OS X
10156         It started like this when building coreutils' latest on OS X,
10157         invoking ./configure with a nonempty --cache=.cache:
10159           lib/linkat.c:46:42: error: operator '||' has no right operand
10160           lib/linkat.c: In function 'rpl_linkat':
10161           lib/linkat.c:330:27: error: #if with no expression
10163         Here's linkat.c's line 46:
10165           #if !HAVE_LINKAT || LINKAT_SYMLINK_NOTSUP
10167         Here's some context:
10169           $ grep linkat_nofoll .cache
10170           gl_cv_func_linkat_nofollow=${gl_cv_func_linkat_nofollow=no}
10171           $ grep LINKAT_SYM lib/config.h
10172           #define LINKAT_SYMLINK_NOTSUP
10174         The problem is that m4/linkat.m4's gl_FUNC_LINKAT
10175         uses AC_CACHE_CHECK to set LINKAT_SYMLINK_NOTSUP,
10176         but that violates a tenet of AC_CACHE_CHECK: it must
10177         have no side effect other than setting its cache variable.
10179         What happens is that when the cache is set, we'd skip the
10180         code in that AC_CACHE_CHECK call, and leave LINKAT_SYMLINK_NOTSUP
10181         defined to whatever value it happened to have in configure's
10182         environment.  In my case, it was not defined, so this later code:
10184           AC_DEFINE_UNQUOTED([LINKAT_SYMLINK_NOTSUP], [$LINKAT_SYMLINK_NOTSUP],
10185             [Define to 1 if linkat can create hardlinks to symlinks])
10187         would emit code with an empty RHS.
10189         * m4/linkat.m4 (gl_FUNC_LINKAT): Move the setting of
10190         $LINKAT_SYMLINK_NOTSUP out of the AC_CACHE_CHECK code block.
10192 2015-06-28  Jim Meyering  <meyering@fb.com>
10194         mountlist: avoid an unused-label warning on OS X
10195         * lib/mountlist.c (read_file_system_list) [MOUNTED_GETMNTINFO]:
10196         Building on OS X, I saw a warning about the "free_then_fail" label
10197         being unused.  Give it the _GL_UNUSED_LABEL attribute.
10199         error.c: correct printf-style format: %d -> %u
10200         * lib/error.c (error_at_line): Correct __fxprintf format to use %u,
10201         rather than %d, to match the type of "line_number", unsigned int.
10203 2015-06-25  Pádraig Brady  <P@draigBrady.com>
10205         fts: avoid reading beyond the heap allocation
10206         GCC 5.1.1 with -O2 and -fsanitize=address reports
10207         a read of size 4 from a heap object of size 3 is indeed invalid,
10208         though this may be due to incorrect padding assumptions by GCC, see:
10209         https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66661
10210         * lib/fts.c (fts_alloc): Increase allocation to alignof(FTSENT).
10211         * modules/fts: Depend on stdalign.
10213 2015-06-24  Pádraig Brady  <P@draigBrady.com>
10215         savedir: avoid undefined behavior in qsort call
10216         GCC 5.1.1 -fsanitize=undefined with glibc 2.21 is returning:
10217         "runtime error: null pointer passed as argument 1,
10218          which is declared to never be null"
10219         * lib/savedir.c (streamsavedir): Avoid the call with no entries.
10221 2015-06-24  Pádraig Brady  <P@draigBrady.com>
10223         userspec: avoid undefined behavior in gettext call
10224         GCC 5.1.1 -fsanitize=undefined with glibc 2.21 is returning:
10225         "runtime error: null pointer passed as argument 2,
10226          which is declared to never be null"
10227         * lib/userspec.c (parse_with_separator): Avoid passing NULL to gettext()
10229 2015-06-20  Glenn Morris  <rgm@gnu.org>
10231         gitlog-to-changelog: improve gitmerge.el commits
10232         Let the Emacs ChangeLog generation process exclude "skipped"
10233         messages from merge commits (Bug#20717).
10234         * build-aux/gitlog-to-changelog: Handle gitmerge.el skipped commits.
10236 2015-06-20  Paul Eggert  <eggert@cs.ucla.edu>
10238         wchar: fix MinGW compilation warnings
10239         This lets Texinfo compile cleanly.  See Eli Zaretskii in:
10240         http://lists.gnu.org/r/bug-gnulib/2015-06/msg00050.html
10241         * lib/wchar.in.h: Do not use special invocation convention on MinGW.
10243 2015-06-20  Daiki Ueno  <ueno@gnu.org>
10245         uniname/uniname-tests: use pristine data files
10246         For copyright and maintenance reasons, use the data files from UCD
10247         without modification.
10248         * tests/uniname/test-uninames.c (FIELDLEN): Remove.
10249         (getfield): Remove.
10250         (aliases_count): New global variable.
10251         (fill_names): Skip comments and empty lines in the input.  Don't
10252         use getfield.
10253         (fill_aliases): Likewise.
10254         (main): Change the expected command line arguments to:
10255         NAMES... ["--" ALIASES...].
10256         * tests/uniname/test-uninames.sh: Adjust to the change in
10257         test-uninames.c.
10258         * tests/uniname/UnicodeDataNames.txt: Remove.
10259         * tests/uniname/UnicodeData.txt: New file, from Unicode 8.0.0.
10260         * tests/uniname/NameAliases.txt: Use the pristine copy of the data
10261         file from Unicode 8.0.0.
10263 2015-06-19  Pádraig Brady  <P@draigBrady.com>
10265         linked-list, linkedhash-list: avoid compiler warnings
10266         * lib/gl_anytree_list2.h: Add _GL_ATTRIBUTE_PURE to avoid
10267         -Werror=suggest-attribute=pure (from GCC 5.1.1).
10269 2015-06-19  Daiki Ueno  <ueno@gnu.org>
10271         libunistring: bump minimum version to 0.9.6
10272         * all modules depending on updated Unicode data: Regenerate.
10273         The modules are listed by a script that does:
10274         - for each file listed by: git show --oneline --name-only 705f4efc
10275           - deduce the containing modules, based on "Files:"
10276         - deduce the modules which depend on the containing modules, based
10277           on "Depends-on:"
10279 2015-06-18  Daiki Ueno  <ueno@gnu.org>
10281         uniname/uniname: update to Unicode 8.0.0
10282         * lib/uniname/uninames.h: Regenerate.
10283         * tests/uniname/NameAliases.txt: Update from Unicode 8.0.0.
10284         * tests/uniname/UnicodeDataNames.txt: Update from Unicode 8.0.0.
10286 2015-06-18  Daiki Ueno  <ueno@gnu.org>
10288         libunistring: update to Unicode 8.0.0
10289         * lib/gen-uni-tables.c (SIZEOF): New macro.
10290         (output_numeric): Increase the maximum number of fractions from
10291         128 to 160.  Increase the level3 value width from 7 bits to 8
10292         bits.  Use SIZEOF instead of a hard-coded integer.
10293         (output_blocks): Decrease the cut-off threshold from 0x30000 to
10294         0x28000.
10295         (fill_blocks): Increase the maximum number of blocks from 256 to
10296         384.  Use SIZEOF instead of a hard-coded integer.
10297         (get_lbp): Adjust to new characters added in Unicode 8.0.0.
10298         * lib/unictype/numeric.c (uc_numeric_value): Adjust the level3
10299         value width.
10300         * lib/unilbrk/lbrktables.c (unilbrk_table): Implement LBP21b and
10301         a new case added to LBP22.
10302         * lib/uniwidth/width.c (nonspacing_table_data): Add U+08E3,
10303         U+A69E, U+FE2E..U+FE2F, U+111CA..U+111CC, U+11300,
10304         U+115DC..U+115DD, U+1171D..U+1171F, U+11722..U+11725,
10305         U+11727..U+1172B, U+1DA00..U+1DA36, U+1DA3B..U+1DA6C, U+1DA75,
10306         U+1DA84, U+1DA9B..U+1DA9F, and U+1DAA1..U+1DAAF.
10307         * tests/uniwidth/test-uc_width2.sh: Same updates as in
10308         lib/uniwidth/width.c.
10309         * all generated files under lib/uni* and tests/uni*: Regenerate.
10311 2015-06-16  Pádraig Brady  <P@draigBrady.com>
10313         gnu-web-doc-update: add --mirror to remove stale files
10314         * build-aux/gnu-web-doc-update: Add a --mirror option to remove
10315         out of date files from the CVS server.  Since this is usually
10316         appropriate, a prompt is given when the option is not specified,
10317         along with the `cvs remove` command that would be run.
10319 2015-06-06  Paul Eggert  <eggert@cs.ucla.edu>
10321         acl-permissions: pacify -Wsuggest-attribute=const
10322         Problem reported by Masanari Iida in: http://bugs.gnu.org/20753
10323         * lib/acl-internal.h (free_permission_context):
10324         Declare with attribute const if ! (defined USE_ACL &&
10325         (HAVE_ACL_GET_FILE || defined GETACL)).
10327         fsync: document AIX misbehavior
10328         * doc/posix-functions/fsync.texi (fsync):
10329         Document failure on AIX with read-only file descriptor.
10331 2015-06-05  Jonathan Perkin  <jperkin@joyent.com>  (tiny change)
10333         stdio: Don't redefine gets when using C++
10334         * lib/stdio.in.h (gets): Disable warning on C++.
10336 2015-06-05  Paul Eggert  <eggert@cs.ucla.edu>
10338         acl-permissions: port to AIX, C89 HP-UX
10339         Problems reported by Michael Felt.
10340         * lib/file-has-acl.c (file_has_acl) [HAVE_STATACL]:
10341         * lib/get-permissions.c (get_permissions) [USE_ACL && HAVE_STATACL]:
10342         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]:
10343         * lib/set-permissions.c (set_acls) [HAVE_ACLX_GET && ACL_AIX_WIP]:
10344         Add cast for AIX, whose system calls are declared to accept
10345         char * even though the arguments are really char const *.
10346         * lib/get-permissions.c (get_permissions):
10347         If USE_ACL && HAVE_GETACL /* HP-UX */, don't assume C99.
10348         If USE_ACL && HAVE_STATACL /* older AIX */, add missing decl
10349         that broke a build.
10350         * lib/mountlist.c (read_file_system_list) [MOUNTED_VMOUNT]:
10351         Rework types to pacify xlc.
10353 2015-06-03  Pádraig Brady  <P@draigBrady.com>
10355         vasprintf-posix: avoid compiling vasnprintf where possible
10356         * modules/vasprintf-posix: Avoid compiling the large vasnprintf
10357         module where not required.  For example on a GNU/Linux system
10358         when gnulib-tool is run with the --conditional-dependencies option.
10360 2015-06-02  Pádraig Brady  <P@draigBrady.com>
10362         file-has-acl: fix build on Mac OS X 10
10363         This reverts commit f1b37e3a which doesn't work on Mac OS X >= 10.4
10364         which has an incompatible 6 parameter getxattr() call.
10365         * doc/glibc-functions/getxattr.texi: Mention the divergent getxattr()
10366         call on Mac OS X >= 10.4.
10367         * doc/glibc-functions/fgetxattr.texi: Likewise.
10368         * lib/file-has-acl.c: Revert to more complete combined check.
10369         * m4/acl.m4 (gl_FILE_HAS_ACL): Likewise.
10370         Reported by Jack Howarth.
10372 2015-06-02  Pádraig Brady  <P@draigBrady.com>
10374         prefix-gnulib-mk: remove no longer needed special case
10375         * build-aux/prefix-gnulib-mk (prefix): Since commit e3704b9c,
10376         continued lib_SOURCES lines are no longer present,
10377         so special case handling of such entries is not required.
10379 2015-06-01  Pádraig Brady  <P@draigBrady.com>
10381         acl: don't depend on the deprecated qacl module
10382         * modules/acl (Depends-on): Use q{copy,set}-acl instead.
10384 2015-06-01  Pádraig Brady  <P@draigBrady.com>
10386         gnulib-tool: concatenate lib_SOURCES to a single line
10387         * gnulib-tool: Refactor the line merging sed logic,
10388         and use that to output a single lib_SOURCES line for each module.
10389         gnulib using projects often postprocess this output to prepend
10390         subdir paths to each item, and having a single line simplifies this
10391         processing allowing better decoupling from the gnulib-tool output.
10393 2015-06-01  Pavel Fedin  <p.fedin@samsung.com>
10395         pthread_sigmask: discount system version if a simple macro (trivial)
10396         MinGW64 has: #define pthread_sigmask(H, S1, S2) 0
10397         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Call the
10398         function to ensure it's available.
10400 2015-05-31  Pádraig Brady  <P@draigBrady.com>
10402         readlinkat: avoid OS X 10.10 trailing slash bug
10403         * doc/posix-functions/readlink.texi: Mention that OS X 10.10
10404         has this bug.
10405         * doc/posix-functions/readlinkat.texi: Likewise.  Also mention
10406         that OS X 10.10 has this function.
10407         * lib/readlinkat.c (rpl_readlinkat): Handle the trailing slash bug,
10408         as done for readlink().
10409         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Check for the readlink()
10410         trailing slash bug, and assume readlinkat() has the same issue.
10411         Also fix a typo where $gl_cv_decl_readlink_works was tested,
10412         rather than the correct $gl_cv_decl_readlinkat_works.
10414 2015-05-29  Andreas Gruenbacher  <andreas.gruenbacher@gmail.com>
10416         acl-permissions: Fix build on Mac OS X and older AIX (Bug#20681)
10417         * lib/set-permissions.c (set_acls): Fix more errors introduced in the acl
10418         module rewrite.
10420         acl-permissions: Fix build on Solaris and Cygwin
10421         Reported by Tom G. Christensen <tgc@jupiterrise.com>:
10422         * lib/set-permissions.c (set_acls): The count, entries, ace_count, and
10423         ace_entries variables have moved into struct permission_context but
10424         they were still accessed as local variables here.
10426 2015-05-29  Pádraig Brady  <P@draigBrady.com>
10428         linkat: avoid OS X 10.10 trailing slash with symlink bug
10429         On Darwin 14.3.0 linkat(,"path1",,"dangling_symlink/",)
10430         causes the symlink to be dereferenced, and if it points
10431         to a non existent file, that file will be created as
10432         a hard link to "path1".
10433         This fixes a test failure in test-linkat.c.
10434         * m4/linkat.m4 (gl_FUNC_LINKAT): Augment the test with
10435         this case.  The existing workaround in linkat.c for
10436         trailing slash issues, suffices for this case.
10437         * doc/posix-functions/linkat.texi: Add OS X 10.10 to
10438         the list of platforms with trailing slash issues.
10440 2015-05-28  Pádraig Brady  <P@draigBrady.com>
10442         unlinkat: handle ignoring of ".." on Darwin 14
10443         * lib/unlinkat.c: unlinkat() has the same bug as unlink()
10444         on Mac OS X 10.10, where it ignores paths with a trailing "..",
10445         so handle in the same manner.
10446         * m4/unlinkat.m4: Comment on this Darwin issue.
10447         * doc/posix-functions/unlink.texi: Update the latest version
10448         where the issue was seen.
10449         * doc/posix-functions/unlinkat.texi: Mention this issue.
10450         Fixes a test failure in test-unlinkat.c.
10452 2015-05-27  Paul Eggert  <eggert@cs.ucla.edu>
10454         qacl: split into qcopy-acl and qset-acl
10455         Emacs needs the former, but not the latter.
10456         * modules/acl-permissions: New file, containing most of the old qacl.
10457         * modules/file-has-acl (Depends-on): Depend on acl-permissions, not qacl.
10458         * modules/qacl: Now merely depends on qcopy-acl and qset-acl.
10459         * modules/qcopy-acl, modules/qset-acl: New files.
10460         * MODULES.html.sh (File system functions):
10461         Mention the new modules, and mention qacl while we're at it.
10463 2015-05-27  Glenn Morris  <rgm@gnu.org>
10465         gitlog-to-changelog: new option --ignore-line
10466         (This patch is imported from the GNU Emacs master.)
10467         This option ignores individual commit lines matching a pattern.
10468         * build-aux/gitlog-to-changelog: Add --ignore-line option.
10470 2015-05-27  Andreas Gruenbacher  <agruenba@redhat.com>
10472         qacl: Reimplement qset_acl and qcopy_acl (Bug#20666)
10473         Implement get_permissions and set_permissions primitives for getting all
10474         the permissions of a file, storing them, and later setting them. (In the
10475         minimal case, the permissions consist only of a file mode.) Reimplement
10476         qset_acl and qcopy_acl based on these new primitives: this avoids code
10477         duplication and makes error handling more consistent.
10478         The Solaris and Cygwin code still uses duplicate code paths for setting
10479         a file mode while making sure that no acls exist and setting an explicit
10480         acl; this is no worse than before, but could be cleaned up.  The AIX
10481         code still doesn't read ACLs, it only makes sure that acls don't get in
10482         the way when setting a file mode.
10483         * lib/acl-internal.h (struct permission_context): New data structure.
10484         (get_permissions, set_permissions, free_permission_context): Declare.
10485         * lib/acl-internal.c (free_permission_context): New helper function.
10486         * lib/get-permissions.c (get_permissions): New helper function split off
10487         from qcopy_acl.
10488         * lib/set-permissions.c: (set_acls_from_mode): On Solaris, Cygwin, and
10489         AIX, set a file's permissions based only on a file mode.
10490         (acl_from_mode, context_acl_from_mode, context_aclv_from_mode): All
10491         other platforms construct a temporary acl from the file mode and set
10492         that acl in the same way as setting an acl read from the source file.
10493         This should help avoid code duplication and inconsistent / buggy
10494         behavior.
10495         (set_acls): New helper function Split off from qcopy_acl.
10496         (chmod_or_fchmod): Moved here from qset-acl.c.
10497         (set_permissions): New helper function.
10498         * lib/qcopy-acl.c (qcopy_acl): Rewrite using get_permissions and
10499         set_permissions.
10500         * lib/qset-acl.c (qset_acl): Rewrite using set_permissions.
10501         * modules/qacl: Add get-permissions.c and set-permissions.c.
10503         file-has-acl: Split feature tests again (Bug#20667)
10504         * lib/file-has-acl.c: Instead of testing for
10505         XATTR_NAME_POSIX_ACL_ACCESS and XATTR_NAME_POSIX_ACL_DEFAULT,
10506         define them when needed.
10507         * m4/acl.m4 (gl_FILE_HAS_ACL): With that, Paul's
10508         GETXATTR_WITH_POSIX_ACLS change shouldn't be needed anymore.
10510 2015-05-27  Pádraig Brady  <P@draigBrady.com>
10512         string: fix build failure on BSD/OSX with FORTIFY_SOURCE
10513         This avoids a conflict with "FORTIFY_SOURCE" variants
10514         of the string functions when they're replaced on NetBSD-6.0.1
10515         and Darwin-14.3.0 at least.
10516         * lib/string.in.h: Avoid including our "lib/string.h" while
10517         including the system <string.h>.
10519 2015-05-26  Eric Blake  <eblake@redhat.com>
10521         stdio: limit __gnu_printf__ witness to gcc 4.4+
10522         * lib/error.h (_GL_ATTRIBUTE_SPEC_PRINTF): Move gcc version probe...
10523         * m4/stdio_h.m4 (gl_STDIO_H): ...here.
10525         error: use correct printf attributes on mingw
10526         * lib/stdio.in.h (_GL_ATTRIBUTE_SPEC_PRINTF): New define.
10528         inttypes: force correct mingw PRIdMAX even without <stdio.h>
10529         * modules/inttypes (Depends-on): Require extensions, so that mingw
10530         always uses GNU style inttypes.
10531         * lib/inttypes.in.h: On mingw, include <stdio.h>.
10533         stdio: fix probe on mingw under gcc 5.1
10534         * m4/stdio_h.m4 (gl_STDIO_H): Change to compile test, to work
10535         around new gcc preprocessor rules.
10537 2015-05-07  Glenn Morris  <rgm@gnu.org>
10539         gitlog-to-changelog: parse "Tiny-change"
10540         * build-aux/gitlog-to-changelog: Treat "Tiny-change" like
10541         "Copyright-paperwork-exempt".  (Bug#20324)
10543 2015-05-06  Pádraig Brady  <P@draigBrady.com>
10545         doc: document glibc posix_fallocate() issues
10546         * doc/posix-functions/posix_fallocate.texi: Mention the
10547         glibc efficiency problems and issues with NFS.
10549 2015-05-05  Karl Berry  <karl@freefriends.org>
10551         * build-aux/gendocs.sh (usage): document new css default
10552         for HTML (--htmlarg).
10554 2015-04-29  Paul Eggert  <eggert@cs.ucla.edu>
10556         extern-inline: no need for workaround in GCC 5.1
10557         * doc/extern-inline.texi (extern inline):
10558         * m4/extern-inline.m4 (gl_EXTERN_INLINE):
10559         GCC bugs 54113 and 63877 are fixed in GCC 5.1, so don't work
10560         around these bugs in GCC 5.1 and later.  Maybe in a decade or
10561         two we can remove these workarounds.
10563 2015-04-28  Pádraig Brady  <P@draigBrady.com>
10565         eealloc, pagealign_alloc, xalloc: avoid clang warnings
10566         Avoid [-Wunknown-attributes] warnings like:
10567         warning: unknown attribute '__alloc_size__' ignored
10568         * lib/xalloc.h: Don't use the __alloc_size__  attribute
10569         with clang, as support has been fully removed as of clang 3.5:
10570         https://github.com/llvm-mirror/clang/commit/c047507a
10571         * lib/eealloc.h: Likewise.
10572         * lib/pagealign_alloc.h: Likewise.
10574 2015-04-27  Paul Eggert  <eggert@cs.ucla.edu>
10576         tests: pacify GCC 5.1's stricter printf checking
10577         * tests/test-dirname.c (main):
10578         * tests/test-getaddrinfo.c (simple):
10579         * tests/test-getlogin.c (main):
10580         * tests/test-getndelim2.c (main):
10581         * tests/test-inttostr.c (CK):
10582         * tests/test-md5.c (main):
10583         * tests/test-read-file.c (main):
10584         * tests/test-sha1.c (main):
10585         Fix mismatches between printf format and value signedness.
10586         * tests/test-inttostr.c (FMT, CAST_VAL, V_min, V_max):
10587         Remove, as CAST_VAL always returned a value of type uintmax_t.
10589         fts: port to GCC 5.1 with --enable-gcc-warnings
10590         Without this fix, GCC 5.1 (correctly) warns about a subscript
10591         error on the fts_name component of FTSENT.  It's actually a
10592         flexible member, so define it that way on C99 or later hosts.
10593         * lib/fts.c (fts_alloc): Use offsetof, not sizeof, for a
10594         structure that now has a flexible array member.
10595         * lib/fts_.h (__FLEXIBLE_ARRAY_MEMBER): New macro.
10596         (FTSENT): fts_name is now flexible on C99-or-later platforms.
10597         * modules/fts (Depends-on): Add flexmember.
10599 2015-04-26  Paul Eggert  <eggert@cs.ucla.edu>
10601         file-has-acl: port to CentOS 6
10602         Problem reported by Tom G. Christensen in:
10603         http://lists.gnu.org/r/bug-gnulib/2015-04/msg00074.html
10604         * lib/file-has-acl.c: Use GETXATTR_WITH_POSIX_ACLS instead of a
10605         combination of HAVE_SYS_XATTR_H, HAVE_LINUX_XATTR_H, and
10606         HAVE_GETXATTR.
10607         * m4/acl.m4 (gl_FILE_HAS_ACL): Test fot the entire combination of
10608         linux/xattr.h, sys/xattr.h, getxattr, XATTR_NAME_POSIX_ACL_ACCESS,
10609         and XATTR_NAME_POSIX_ACL_DEFAULT, since that's what
10610         file-has-acl.c actually needs.
10612 2015-04-26  Pádraig Brady  <P@draigBrady.com>
10614         file-has-acl: always return false when ACLs aren't supported
10615         * lib/file-has-acl.c (file_has_acl): Consistent with other paths,
10616         change the GNU/Linux getxattr path, to transform "not supported"
10617         errors to a false return rather than an error.  This is handled
10618         within file_has_acl() due to the platform specific tests to
10619         determine if ACLs are not supported.
10621 2015-04-25  Paul Eggert  <eggert@cs.ucla.edu>
10623         gettext: propagate po/Makefile.in.in too
10624         * build-aux/po/Makefile.in.in: Copy from latest gettext.
10625         * config/srclist.txt: In build-aux/po, copy Makefile.in.in and
10626         remove-potcdate.sin from $GETTEXT.  This fixes a version mismatch
10627         between Makefile.in.in and the gettext-runtime m4 files.
10629 2015-04-24  Paul Eggert  <eggert@cs.ucla.edu>
10631         file-has-acl: new module, split from acl
10632         And add a new module file-has-acl-tests to match.
10633         I ran into a problem with the recent changes to the acl module,
10634         as they introduced a typo 'test use_xattrs = 0' into 'configure'.
10635         When using the fixed version with Emacs, I discovered that
10636         file-has-acl wasn't separated out well enough for Emacs (e.g., it
10637         had multiple libraries, but needed only one), so I fixed that too.
10638         * NEWS: Document this incompatible change.
10639         * modules/file-has-acl, modules/file-has-acl-tests: New files.
10640         * m4/acl.m4 (gl_FUNC_ACL_ARG): New macro, split from gl_FUNC_ACL.
10641         Initialize gl_need_lib_has_acl.
10642         (gl_FUNC_ACL): Require it.
10643         Simplify use of 'test'.  Set LIB_HAS_ACL if gl_need_lib_has_acl.
10644         Move the file-has-acl.c-relevant stuff to ...
10645         (gl_FILE_HAS_ACL): ... this new macro.  Rewrite to fix 'test
10646         use_xattrs = 0' typo, and omit some needless work.  Set
10647         gl_need_lib_has_acl=1 if we'll need LIB_HAS_ACL to be set
10648         when gl_FUNC_ACL is called.
10649         * modules/acl (Files, lib_SOURCES): Remove lib/file-has-acl.c.
10650         (Link): Remove $(LIB_HAS_ACL).
10651         * modules/acl-tests (Files, Depends-on, configure.ac, TESTS)
10652         (check_PROGRAMS): Move stuff relevant to file-has-acl to
10653         modules/file-has-acl-tests.
10654         (test_file_has_acl_LDADD): Move to modules/file-has-acl-tests.
10656         manywarnings: add GCC 5.1 warnings
10657         * build-aux/gcc-warning.spec: Add -Wabi=, -Warray-bounds,
10658         -Warray-bounds=, -Wc++14-compat, -Wc90-c99-compat,
10659         -Wc99-c11-compat, -Wshadow-ivar, -Wsized-deallocation,
10660         -Wsuggest-override, -Wuse-without-only.  Change
10661         -Wnormalized=... operands to match 5.1.
10662         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add -Wbool-compare,
10663         -Wchkp, -Wdesignated-init, -Wdiscarded-array-qualifiers,
10664         -Wdiscarded-qualifiers, -Wformat-signedness,
10665         -Wincompatible-pointer-types, -Wint-conversion,
10666         -Wlogical-not-parentheses, -Wmemset-transposed-args, -Wodr,
10667         -Wshift-count-negative, -Wshift-count-overflow,
10668         -Wsizeof-array-argument, -Wsuggest-final-methods,
10669         -Wsuggest-final-types, -Wswitch-bool.  Remove -Warray-bounds,
10670         and add -Warray-bounds=2 as a special case.
10672 2015-04-21  Simon Josefsson  <simon@josefsson.org>
10674         doc: update FDL template to match FDL examples.
10675         * doc/alloca-opt.texi:
10676         * doc/alloca.texi:
10677         * doc/c-ctype.texi:
10678         * doc/c-strcase.texi:
10679         * doc/c-strcaseeq.texi:
10680         * doc/c-strcasestr.texi:
10681         * doc/c-strstr.texi:
10682         * doc/c-strtod.texi:
10683         * doc/c-strtold.texi:
10684         * doc/ctime.texi:
10685         * doc/error.texi:
10686         * doc/gcd.texi:
10687         * doc/gnulib-tool.texi:
10688         * doc/inet_ntoa.texi:
10689         * doc/intprops.texi:
10690         * doc/lib-symbol-visibility.texi:
10691         * doc/maintain.texi:
10692         * doc/parse-datetime.texi:
10693         * doc/quote.texi:
10694         * doc/regexprops-generic.texi:
10695         * doc/standards.texi: Remove spurious 'with' in FDL license
10696         template.
10698 2015-04-21  Paul Eggert  <eggert@cs.ucla.edu>
10700         lstat: fix cross-compilation 'ln -s' problem
10701         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK):
10702         Have the test program call 'symlink' rather than a separate
10703         script run 'ln -s'; this is more likely to work in
10704         cross-compilation environments.  Reported by Pavel Fedin in:
10705         http://lists.gnu.org/r/bug-gnulib/2015-04/msg00060.html
10707 2015-04-16  Ludovic Courtès  <ludo@gnu.org>
10709         gendocs.sh: default to a common CSS style sheet for HTML output
10710         * build-aux/gendocs.sh (htmlarg): Change default value.
10712 2015-04-15  Mats Erik Andersson  <gnu@gisladisker.se>
10714         gnulib-tool: output bold attribute more portably
10715         * gnulib-tool (func_show_module_list): Change hexadecimal
10716         numbers to octal in BOLD_ON and BOLD_OFF.  The use of hex
10717         encoded numbers as arguments to `printf' is not portable,
10718         and is not claimed by POSIX.  This is the case with FreeBSD.
10720 2015-04-15  Andreas Gruenbacher  <andreas.gruenbacher@gmail.com>
10722         qacl: Simplify HP-UX acl_nontrivial check
10723         * lib/acl-internal.c: Remove struct stat parameter from HP-UX's version of
10724         acl_nontrivial. Check if the acl has at most three entries instead (it must
10725         have exactly three entries according to the HP-UX documentation). Ignore
10726         uids and gids as long as an entry is either for a user (i.e., the owner),
10727         a group (i.e., the owning group), or others.
10728         * lib/acl-internal.h: Change HP-UX's acl_nontrivial prototype.
10729         * lib/qcopy-acl.c (qcopy_acl): With that, we no longer need to stat the file.
10731 2015-04-15  Andreas Gruenbacher   <andreas.gruenbacher@gmail.com>
10733         acl: On Linux, check for acls without libacl
10734         On Linux, use the getxattr syscall instead of the acl_extended_file libacl
10735         library function to check for the presence of acls, avoiding a library.
10736         * lib/file-has-acl.c: Include xattr headers if we have them.
10737         (file_has_acl): On Linux, use getxattr().
10738         * m4/acl.m4 (gl_FUNC_ACL): Define LIB_HAS_ACL as the libraries to link with for
10739         file_has_acl(). Check for xattr headers and getxattr().
10741 2015-04-14  Ángel González  <keisial@gmail.com>
10743         tempname: avoid unused parameter warnings (trivial)
10744         * lib/tempname.c (try_dir): Tag with __GL_UNUSED.
10745         (try_nocreate): Likewise.
10747 2015-04-14  HIRAMATSU Yoshifumi  <hiramatu@boreas.dti.ne.jp>
10749         fseeko: fix build failure on NetBSD >= 6 (trivial)
10750         * lib/fseeko.c (feeko): NetBSD 6 changed the definition of _offset
10751         from 'fpos_t struct' to __off_t, which is a typedef of __int64_t.
10753 2015-04-09  Paul Eggert  <eggert@cs.ucla.edu>
10755         gitlog-to-changelog: port to MS-Windows
10756         * build-aux/gitlog-to-changelog (git_dir_option):
10757         Use strftime with "%Y-%m-%d", not "%F", to avoid a bug in
10758         MS-Windows Perl.  Reported by Eli Zaretskii in:
10759         http://lists.gnu.org/r/emacs-devel/2015-04/msg00504.html
10761 2015-04-07  Karl Berry  <karl@gnu.org>
10763         gendocs: new option --tex for passing args to texi2dvi.
10764         * build-aux/gendocs.sh: new option --tex, default -t @finalout.
10765         (TEXI2DVI): cut to just command name.
10766         (usage): mention new option, and update copyright.
10767         <generate_tex>: use it.
10769 2015-04-07  Karl Berry  <karl@gnu.org>
10771         * config/srclistvars.sh (GETTEXT): new definition.
10772         * config/srclist.txt: use it for gettext .m4 files.
10773         Thread starting at http://lists.gnu.org/r/bug-gnulib/201
10774         and confirmed at http://lists.gnu.org/r/bug-gnulib/2015-02/msg00146.html
10775         and continuing into April.
10777 2015-04-07  Daiki Ueno  <ueno@gnu.org>
10779         uniname/uniname-tests: fix failure due to alias
10780         Reported by Jack Howarth in:
10781         <https://lists.gnu.org/r/bug-libunistring/2015-04/msg00000.html>.
10782         * tests/uniname/test-uninames.c (name_has_alias): New function.
10783         (test_inverse_lookup): Exclude character name with valid alias,
10784         from randomly generated character names.
10785         (main): Fill unicode_aliases before calling test functions.
10787 2015-04-03  Giuseppe Scrivano  <gscrivan@redhat.com>
10789         hash: remove deprecated hash_insert0 function
10790         * lib/hash.h (hash_insert0): Remove deprecated function.
10791         * lib/hash.c (hash_insert0): Likewise.
10793 2015-04-02  Pádraig Brady  <P@draigBrady.com>
10795         mountlist: remove dependency on libmount
10796         * lib/mountlist.c (read_file_system_list): Parse /proc/self/mountinfo
10797         directly, rather than depending on libmount, which has many
10798         dependencies due to its dependence on libselinux, as detailed at:
10799         http://lists.gnu.org/r/bug-gnulib/2015-01/msg00063.html
10800         Note we restrict this to __linux__ as that's probably where this
10801         interface will remain.  If ever porting, it would be best
10802         to first pull the makedev() wrapper from coreutils to a gnulib module.
10803         Note also we don't add a getline dependency to the mountlist module,
10804         as all Linux versions are sufficient.
10806 2015-04-02  Paul Eggert  <eggert@cs.ucla.edu>
10808         stddef: port to pre-C11 GCC on x86
10809         On this platform, max_align_t should have an alignment of 8 even
10810         though the storage alignments of double, long, etc. max out at 4.
10811         Inspired by a comment of Andreas Schwab's here:
10812         https://sourceware.org/ml/libc-alpha/2015-04/msg00017.html
10813         * lib/stddef.in.h (_GL_STDDEF_ALIGNAS) [!HAVE_MAX_ALIGN_T]: New macro.
10814         (max_align_t) [!HAVE_MAX_ALIGN_T]: Use it.
10815         * tests/test-stddef.c: Test __alignof__ too, if available.
10817 2015-03-24  Pádraig Brady  <P@draigBrady.com>
10819         quotearg-simple-tests: add missing gl_FUNC_MMAP_ANON dependency
10820         * modules/quotearg-simple-tests: Reference m4/mmap-anon.m4
10822 2015-03-24  Tobias Stoeckmann  <tobias@stoeckmann.org>
10824         yesno: make EOL optional in ENABLE_NLS case also (trival)
10825         * lib/yesno.c (yesno): Check for EOL before replacing.
10826         * tests/test-yesno.sh: Add a test case (test along with gettext).
10828 2015-03-22  Paul Eggert  <eggert@cs.ucla.edu>
10830         fdopendir-tests: test it does not close its arg
10831         * tests/test-fdopendir.c (main): Test that fdopendir does not
10832         close its argument.  From a suggestion by David Grayson in:
10833         http://lists.gnu.org/r/bug-gnulib/2015-03/msg00039.html
10835 2015-03-20  Paul Eggert  <eggert@cs.ucla.edu>
10837         gitlog-to-changelog: trim trailing white space
10838         * build-aux/gitlog-to-changelog (main):
10839         Trim trailing white space from commit message lines.
10840         This is helpful for processing the GNU Emacs repository,
10841         which dates back to 1985 and contains a lot of such lines.
10843         gitlog-to-changelog: new option --ignore-matching
10844         * build-aux/gitlog-to-changelog (usage, git_dir_option, main):
10845         Support new option --ignore-matching=PAT, which ignores all
10846         commit messages whose first line matches PAT.
10848 2015-03-19  Paul Eggert  <eggert@cs.ucla.edu>
10850         fdopendir: port better to MinGW
10851         * lib/fdopendir.c (fd_clone_opendir) [REPLACE_FCHDIR]:
10852         Use 'dup' if dirfd fails.  Suggested by Eli Zaretskii in:
10853         http://lists.gnu.org/r/bug-gnulib/2015-03/msg00033.html
10854         * modules/fdopendir (Depends-on): Add dirfd.
10856 2015-03-18  Paul Eggert  <eggert@cs.ucla.edu>
10858         fdopendir: fix typo in comment
10859         * lib/fdopendir.c (fdopendir_with_dup): REPLACE_FCHDIR was misspelled.
10861 2015-03-09  Eric Blake  <eblake@redhat.com>
10863         error: document all entry points provided
10864         * doc/glibc-functions/error_print_progname.texi
10865         (error_print_progname): Mention the error module.
10866         * doc/glibc-functions/error_at_line.texi (error_at_line):
10867         Likewise.
10868         * doc/glibc-functions/error_message_count.texi
10869         (error_message_count): Likewise.
10870         * doc/glibc-functions/error_one_per_line.texi
10871         (error_one_per_line): Likewise.
10873 2015-03-03  Paul Eggert  <eggert@cs.ucla.edu>
10875         vasnprintf: pacify clang 3.5.0
10876         Problem reported by Werner Lemberg in:
10877         http://lists.gnu.org/r/bug-gnulib/2015-03/msg00000.html
10878         * lib/vasnprintf.c (VASNPRINTF): Omit casts that clang objects to.
10879         The casts aren't needed, since the characters in question are ASCII.
10881 2015-02-24  Paul Eggert  <eggert@cs.ucla.edu>
10883         glob, etc.: port to MSVC v18 on MS-Windows 8.1
10884         * lib/dirent--.h (GNULIB_defined_opendir):
10885         * lib/dirent.in.h (GNULIB_defined_opendir)
10886         (GNULIB_defined_closedir):
10887         * lib/getcwd.c, lib/glob.c, lib/mountlist.c (opendir, closedir):
10888         #undef only if Gnulib defined it.
10890         poll: port to MSVC v18 on MS-Windows 8.1
10891         Problem reported by Gisle Vanem in:
10892         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00139.html
10893         * lib/poll.c: Always include <sys/select.h> and <sys/socket.h>.
10894         * modules/poll (Depends-on) [!HAVE_POLL || REPLACE_POLL]:
10895         Add sys_socket.
10897 2015-02-24  Pádraig Brady  <P@draigBrady.com>
10899         tests: support stderr verification with returns_()
10900         * tests/init.sh (returns_): Disable tracing for this wrapper
10901         function, so that stderr of the wrapped command is unchanged,
10902         allowing for verification of the contents.
10904 2015-02-24  Pavel Hrdina  <phrdina@redhat.com>
10906         passfd: avoid valgrind uninitalised data warning
10907         * lib/passfd.c (sendfd): Reset the msg_controllen of msghdr,
10908         to include just the fd we've initialized, rather than including
10909         the extra space used for alignment.
10911 2015-02-23  Paul Eggert  <eggert@cs.ucla.edu>
10913         uniwbrk/u32-wordbreaks-tests: fix copyright
10914         * tests/uniwbrk/test-uc-wordbreaks.c: Fix copyright date.
10916         dup2: doc and test for Android bug
10917         Reported by Kevin Cernekee in:
10918         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00125.html
10919         * doc/posix-functions/dup2.texi (dup2): Document the bug.
10920         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the bug.
10922 2015-02-23  Kevin Cernekee  <cernekee@google.com>
10924         Replace dup2() on Android
10925         * m4/dup2.m4 (gl_FUNC_DUP2): Android implements dup2() using dup3().
10926         Since dup3(fd, fd) fails but dup2(fd, fd) should pass, test-dup2
10927         fails.  Using rpl_dup2() fixes this because it has an explicit test
10928         for this condition.
10930 2015-02-22  Paul Eggert  <eggert@cs.ucla.edu>
10932         Android doesn't define RLIM_SAVED_*
10933         Portability problem reported by Kevin Cernekee in:
10934         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00122.html
10935         * doc/posix-headers/sys_resource.texi (sys/resource.h):
10936         Mention the portability problem.
10937         * lib/getdtablesize.c (RLIM_SAVED_CUR, RLIM_SAVED_MAX):
10938         Define if not defined.
10939         * m4/dup2.m4 (gl_FUNC_DUP2):
10940         * m4/fcntl.m4 (gl_FUNC_FCNTL):
10941         Likewise.
10943 2015-02-21  Paul Eggert  <eggert@cs.ucla.edu>
10945         vasnprintf-posix-tests: use consistent test
10946         * tests/test-vasnprintf-posix.c (test_function):
10947         Use "<" in assert instead of "<=", for consistency with other tests.
10949 2015-02-20  Paul Eggert  <eggert@cs.ucla.edu>
10951         printf, isinf, etc.: noncanonical != NaN
10952         Do not require that isinf, printf, etc. treat noncanonical
10953         values as NaNs.  Instead, require only that they do not crash.
10954         Problem reported by Joseph Myers in:
10955         https://sourceware.org/ml/libc-alpha/2015-02/msg00244.html
10956         * doc/posix-functions/dprintf.texi (dprintf):
10957         * doc/posix-functions/fprintf.texi (fprintf):
10958         * doc/posix-functions/isfinite.texi (isfinite):
10959         * doc/posix-functions/isinf.texi (isinf):
10960         * doc/posix-functions/isnan.texi (isnan):
10961         * doc/posix-functions/printf.texi (printf):
10962         * doc/posix-functions/snprintf.texi (snprintf):
10963         * doc/posix-functions/sprintf.texi (sprintf):
10964         * doc/posix-functions/vdprintf.texi (vdprintf):
10965         * doc/posix-functions/vfprintf.texi (vfprintf):
10966         * doc/posix-functions/vprintf.texi (vprintf):
10967         * doc/posix-functions/vsnprintf.texi (vsnprintf):
10968         * doc/posix-functions/vsprintf.texi (vsprintf):
10969         Document this.
10970         * m4/isfinite.m4 (gl_ISFINITEL_WORKS):
10971         * m4/isinf.m4 (gl_ISINFL_WORKS):
10972         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS):
10973         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE):
10974         * tests/test-isfinite.c (test_isfinitel):
10975         * tests/test-isinf.c (test_isinfl):
10976         * tests/test-isnan.c (test_long_double):
10977         * tests/test-isnanl.h (main):
10978         * tests/test-snprintf-posix.h (test_function):
10979         * tests/test-sprintf-posix.h (test_function):
10980         * tests/test-vasnprintf-posix.c (test_function):
10981         * tests/test-vasprintf-posix.c (test_function):
10982 o       Test only that noncanonical values do not cause crashes, not that
10983         they are treated as NaNs.  In some cases this means a larger
10984         output buffer is needed.
10986 2015-02-20  Jaroslav Skarvada  <jskarvad@redhat.com>
10988         fts: remove redundant close() (trivial)
10989         * lib/fts.c (fts_read): Remove redundant call to close().
10990         Spotted by coverity.
10992 2015-02-20  Paul Eggert  <eggert@cs.ucla.edu>
10994         getdtablesize: port better for Android
10995         Problem reported by Kevin Cernekee in:
10996         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00112.html
10997         * doc/glibc-functions/getdtablesize.texi (getdtablesize): Mention bug.
10998         * lib/getdtablesize.c (getdtablesize): Don't fall back on _SC_OPEN_MAX.
10999         Instead, just use getrlimit, taking care to avoid Cygwin bug.
11001         poll: fixes for large fds
11002         * lib/poll.c (poll): Don't check directly for NFD too large.
11003         Don't rely on undefined behavior in FD_SET when an arg exceeds
11004         FD_SETSIZE.  Always set revents afterwards, even if to zero.
11005         * tests/test-poll.c (poll1): Set revents to -1 instead of 0,
11006         as that makes the test a bit stricter.
11008 2015-02-19  Kevin Cernekee  <cernekee@google.com>
11010         fcntl: Fix cross compiling
11011         * m4/fcntl.m4 (gl_FUNC_FCNTL): Assign the guessed result to the
11012         correct variable name (gl_cv_func_fcntl_f_dupfd_works).
11014 2015-02-18  Paul Eggert  <eggert@cs.ucla.edu>
11016         dup2, fcntl: cross-compile better for Android
11017         Problem reported by Kevin Cernekee in:
11018         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00109.html
11019         * m4/dup2.m4 (gl_FUNC_DUP2): Don't guess no when cross-compiling
11020         for a Linux kernel.  That kernel bug was fixed on 2009-05-11, and
11021         there's little need to cross-compile for older kernels nowadays.
11022         * m4/fcntl.m4 (gl_FUNC_FCNTL): When cross-compiling, guess no only
11023         for systems where the bug is known to occur (AIX, Cygwin, Haiku).
11025 2015-02-18  Pádraig Brady  <P@draigBrady.com>
11027         getopt: don't crash on memory exhaustion
11028         * lib/getopt.c (_getopt_internal_r): Use degraded diagnostics on
11029         memory exhaustion.  In the _LIBC case we use alloca() as is
11030         already done in glibc, so we don't need to consider the separate
11031         error path in that awkward case.  Also fix a memory leak when
11032         ambiguous options are present.
11033         Reported by Tobias Stoeckmann
11035 2015-02-17  Mike Miller  <mtmiller@ieee.org>
11037         tempname: allow compilation with C++ (trivial)
11038         * lib/tempname.h [C++]: Specify extern "C" linkage.
11039         * lib/tempname.h (try_tempname):
11040         * lib/tempname.c (__try_tempname, __gen_tempname):
11041         Rename 'try' to 'tryfunc'.
11043 2015-02-17  Paul Eggert  <eggert@cs.ucla.edu>
11045         dup2, fcntl: port to AIX
11046         * m4/dup2.m4 (gl_FUNC_DUP2):
11047         * m4/fcntl.m4 (gl_FUNC_FCNTL):
11048         Prefer getrusage (RLIM_NOFILE ...)/rlim_cur to sysconf (_SC_OPEN_MAX).
11049         The former works on AIX 7.1 but the latter does not.
11050         Also, this may work better with Android; see:
11051         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00100.html
11053 2015-02-16  Paul Eggert  <eggert@cs.ucla.edu>
11055         getdtablesize, dup2, fcntl: port to Android
11056         Problem reported by Kevin Cernekee in:
11057         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00092.html
11058         * doc/glibc-functions/getdtablesize.texi (getdtablesize):
11059         Mention that getdtablesize doesn't work on Android.
11060         * lib/getdtablesize.c: Use getrlimit substitute only if
11061         getdtablesize is declared.  This should suffice for Cygwin
11062         while not breaking Android.
11063         * m4/dup2.m4 (gl_FUNC_DUP2):
11064         * m4/fcntl.m4 (gl_FUNC_FCNTL):
11065         Prefer sysconf (_SC_OPEN_MAX) to getdtablesize, as the former is
11066         standardized but the latter is not, and sysconf works on Android.
11067         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE):
11068         Also check that getdtablesize is declared.
11069         This removes the need for a special case for Android.
11071 2015-02-16  Kevin Cernekee  <cernekee@google.com>
11073         localename: Implement gl_locale_name_thread_unsafe for Android
11074         * lib/localename.c: Android API level >= 21 supports two hardcoded
11075         locales: C (POSIX) and C.UTF-8.  Distinguish them by checking
11076         the internal __locale_t struct.
11078 2015-02-16  Kamil Dudka  <kdudka@redhat.com>
11080         fts: avoid crash when a cycle is added while traversing
11081         This could be triggered by auto-mounting a recursive bind mount.
11082         Reported by Michael Chapman in: https://bugzilla.redhat.com/1188498
11083         * lib/fts.c (fts_read): Avoid removing the original hash table item
11084         when leaving a directory that caused a cycle, and preserve the FTS_DC
11085         flag.
11087 2015-02-16  Daiki Ueno  <ueno@gnu.org>
11089         uniname/uniname: support character alias
11090         * lib/uniname/gen-uninames.lisp (main): New argument ALIASFILE.
11091         Generate one-way mapping from aliases to codepoints in the
11092         generated tables.  Special case variation selectors to reduce
11093         table size.
11094         * lib/uniname/uniname.c (unicode_character_name): Special case
11095         variation selectors.
11096         (unicode_name_character): Special case variation selectors and
11097         their aliases.
11098         * lib/uniname/uninames.h: Regenerate.
11099         * tests/uniname/NameAliases.txt: New file, taken from UCD 7.0.0.
11100         * modules/uniname/uniname-tests (Files): Add
11101         tests/uniname/NameAliases.txt.
11102         * tests/uniname/test-uninames.c: Mark as static.
11103         (ALIASLEN): Define.
11104         (struct unicode_alias): New struct.
11105         (unicode_aliases): New variable.
11106         (fill_aliases): New function.
11107         (test_alias_lookup): New test function.
11108         (main): Run the 'test_alias_lookup' test if the second argument is
11109         given.
11110         * tests/uniname/test-uninames.sh: Supply NameAliases.txt as the
11111         second argument.
11113 2015-02-11  Kevin Cernekee  <cernekee@google.com>
11115         Fix FILE struct compatibility with Android API level >= 21
11116         * lib/stdio-impl.h: Test explicitly for __ANDROID__ instead of
11117         __sferror.  Recent versions of Bionic's stdio.h no longer define
11118         __sferror.
11119         * lib/fbufmode.c: Likewise.
11120         * lib/fflush.c: Likewise.
11121         * lib/fpurge.c: Likewise.
11122         * lib/freadable.c: Likewise.
11123         * lib/freadahead.c: Likewise.
11124         * lib/freading.c: Likewise.
11125         * lib/freadptr.c: Likewise.
11126         * lib/freadseek.c: Likewise.
11127         * lib/fseeko.c: Likewise.
11128         * lib/fseterr.c: Likewise.
11129         * lib/fwritable.c: Likewise.
11131         Assume unbroken ungetc() on Android
11132         * m4/ungetc.m4: Add Android case to host OS check.  The ungetc()
11133         test case passed when running on an Android host, and the code
11134         hasn't really changed since 2009.
11136         getdtablesize: Fix Android build
11137         * m4/getdtablesize.m4: Add Android case to host OS check.  Recent NDK
11138         versions have this symbol in the .so library (at least 32-bit
11139         platforms) but are missing the declaration in the header file,
11140         causing the m4 logic to guess incorrectly.
11142         localename: Fix Android build
11143         * modules/localename (Depends-on): Add langinfo.
11145         getugroups: Fix Android build
11146         * lib/getugroups.c: Don't reference unsupported {get,set,end}grent
11147         functions.
11149         euidaccess: Fix Android build
11150         * modules/euidaccess (Depends-on): Add fcntl-h to ensure that
11151         AT_EACCESS gets declared.
11153         linkat_nofollow: Add fallback case for cross compiling
11154         * m4/linkat.m4: Guess no for Darwin, yes otherwise.
11156         net_if: Handle content-free <net/if.h> system headers
11157         * m4/net_if_h.m4: Check to make sure <net/if.h> actually defines
11158         struct if_nameindex.  If not, enable the replacement header.
11160         signal_h: Fix Android build
11161         * lib/signal.in.h: Add Android to the list of platforms that declare
11162         pthread_sigmask() in <pthread.h> instead of <signal.h>.
11164         duplocale: Fix Android build of duplocale-tests
11165         * modules/duplocale-tests (Depends-on): Add langinfo, as the header
11166         is included by test-duplocale.c (but not by duplocale.c).
11167         * modules/duplocale-tests (configure.ac): Check for monetary.h.
11168         * tests/test-duplocale.c: Skip test if monetary.h is absent.
11169         * doc/posix-headers/monetary.texi: Add Android to the list of
11170         platforms missing monetary.h.
11172 2015-02-11  Pádraig Brady  <P@draigBrady.com>
11174         tests: avoid recent -Werror=unused-variable regression in test-locale
11175         * tests/test-locale.c (main): Reference the variable to avoid the
11176         "unused variable" warning.
11178 2015-02-11  Pádraig Brady  <P@draigBrady.com>
11180         maint: various whitespace cleanups in tempname
11181         * lib/tempname.c: Normalize spacing and line length.
11182         * lib/tempname.h: Likewise.
11183         * modules/tempname: Likewise.
11185 2015-02-11  Pádraig Brady  <P@draigBrady.com>
11187         tests: provide returns_() to simplify exit status checking
11188         * tests/init.sh (returns_): A new function for use in tests,
11189         to allow for easier checking of return values, where you expect
11190         a command to exit with failure status.  By checking for a particular
11191         exit code, you don't hide any crashes for example.
11193 2015-02-11  Pádraig Brady  <P@draigBrady.com>
11195         mountlist: only use libmount when specified
11196         There are currently many shared libs dependencies introduced by
11197         libmount with associated runtime and virt mem overhead.
11198         Therefore don't enable by default.
11199         * m4/ls-mntd-fs.m4: Use --with-libmount to enable at build time.
11201 2015-02-08  Daiki Ueno  <ueno@gnu.org>
11203         uniname/unimame-tests: don't link with -lunistring
11204         * modules/uniname/uniname-tests (Makefile.am): Don't link against
11205         $(LIBUNISTRING).  Document the rationale why we need to
11206         conditionalize the test.
11208 2015-02-07  Paul Eggert  <eggert@cs.ucla.edu>
11210         fstrcmp: don't assume strlen < INT_MAX
11211         * lib/fstrcmp.c: Include stddef.h and stdint.h.
11212         (uintptr_t): Remove, as we're now assuming stdint.
11213         (OFFSET, EXTRA_CONTEXT_FIELDS, fstrcmp_bounded):
11214         Prefer ptrdiff_t to int when the value could exceed INT_MAX
11215         if the input string is long.
11216         (fstrcmp_bounded): Check for size-calculation overflow.  Prefer
11217         uintptr_t to size_t when the underlying value is a pointer casted
11218         to an unsigned integer.  Avoid unnecessary 'buffer != NULL' test.
11219         * modules/fstrcmp (Depends-on): Add stdint.
11221         diffseq: prefer ptrdiff_t to ssize_t
11222         * lib/diffseq.h: In commentary, prefer ptrdiff_t to ssize_t.
11223         ptrdiff_t is the natural type for signed indexes.
11224         On a few older platforms, ssize_t is narrower than size_t.
11226         xalloc: fix typo that suppressed warnings
11227         * lib/xalloc.h: Add missing _GL_INLINE_HEADER_END.
11228         This typo, introduced a couple of years ago, mistakenly suppressed
11229         some -Wsuggest-attribute=const, -Wmissing-prototypes, and
11230         -Wmissing-declarations warnings.
11232         full-read: fix license notice typo
11233         * lib/full-read.h: Remove a stray line in the license notice.
11234         Reported by Sam Ellis in: http://bugs.gnu.org/19808
11236         crypto/gc: fix a -Wswitch warning
11237         Reported by Bruce Korb in:
11238         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00046.html
11239         * lib/gc-gnulib.c (gc_hash_open): Fail faster if MODE is nonzero.
11241 2015-02-03  Pádraig Brady  <P@draigBrady.com>
11243         gnulib-tool: fix handling of patch(1) diagnostics
11244         * gnulib-tool: Send diagnostics from patch(1) to stderr,
11245         as otherwise gnulib-tool will reparse that output and attempt
11246         to lookup modules.
11248 2015-02-03  Pádraig Brady  <P@draigBrady.com>
11250         bootstrap: exit immediately upon gnulib-tool failure
11251         * build-aux/bootstrap: Exit immediately if gnulib-tool fails.
11252         This was noticed when gnulib-tool exited early due to failure
11253         to apply a patch in coreutils at http://hydra.nixos.org/eval/1172233,
11254         but various confusing errors were then given as the build proceeded.
11256 2015-02-02  Andreas Gruenbacher  <agruen@gnu.org>
11258         symlinkat: include all required header files
11259         * lib/symlinkat.c (HAVE_SYMLINK_AT): Add <sys/stat.h> for fstatat(),
11260         and string.h for strlen(), required at least on OS X 10.10 (Yosemite).
11261         Reported at https://savannah.gnu.org/bugs/index.php?44151
11262         and by Jack Howarth.
11264 2015-01-29  Pádraig Brady  <P@draigBrady.com>
11266         localename: support Solaris 12 and illumos
11267         * lib/localename.c (gl_locale_name_thread_unsafe): call
11268         getlocalename_l() on newer __sun platforms.
11269         Reported by Alexander Pyhalov.
11270         Fix suggested by Rich Burridge.
11272 2015-01-29  Alexander Pyhalov  <alp@rsu.ru>
11274         locale: fix tests on illumos (trivial)
11275         * tests/test-locale.c: LC_GLOBAL_LOCALE is a function call on illumos,
11276         so move from global scope to main().
11278 2015-01-24  Daiki Ueno  <ueno@gnu.org>
11280         unictype: avoid undefined left-shift behavior
11281         * lib/unictype/bidi_of.c (uc_bidi_class): Building libunistring with
11282         gcc's -fsanitize=shift and running its tests triggered:
11283           unictype/bidi_of.c:43:60: runtime error: left shift of 40167 by 16 \
11284             places cannot be represented in type 'int'
11285         Cast LHS to 'unsigned int' after integer promotion.
11286         * lib/unictype/categ_of.c (lookup_withtable): Likewise.
11287         * lib/unictype/joininggroup_of.c (uc_joining_group): Likewise.
11289 2015-01-20  Daiki Ueno  <ueno@gnu.org>
11291         libunistring: bump version of unitypes dependants
11292         Due to the header file search order, all the headers which depend
11293         on unitypes.h need to be generated, when the preinstalled
11294         libunistring is older.
11295         * modules/unicase/base (configure.ac): Bump minimum version to
11296         0.9.4.
11297         * modules/uniconv/base (configure.ac): Likewise.
11298         * modules/unilbrk/base (configure.ac): Likewise.
11299         * modules/uninorm/base (configure.ac): Likewise.
11300         * modules/unistdio/base (configure.ac): Likewise.
11301         * modules/unistr/base (configure.ac): Likewise.
11302         * modules/uniwbrk/base (configure.ac): Likewise.
11303         * modules/uniwidth/base (configure.ac): Likewise.
11305 2015-01-20  Daiki Ueno  <ueno@gnu.org>
11307         unictype/category-none: fix link with libunistring
11308         Since _UC_CATEGORY_NONE is not a public symbol, it will be
11309         prefixed with "libstring_" when compiled as part of libunistring.
11310         To avoid undefined symbol at link time, increase the minimum
11311         version when the dependant modules are updated.
11312         * modules/unictype/category-none (configure.ac): Bump minimum
11313         version to 0.9.5.
11315 2015-01-20  Daiki Ueno  <ueno@gnu.org>
11317         unitypes: fix build with installed libunistring
11318         The minimum version has not bumped after _UC_ATTRIBUTE_CONST and
11319         _UC_ATTRIBUTE_PURE were added to unitypes.in.h.
11320         * modules/unitypes (configure.ac): Bump minimum version to 0.9.4.
11322 2015-01-15  Paul Eggert  <eggert@cs.ucla.edu>
11324         time: port to MinGW32 3.21
11325         Problem reported by Eli Zaretskii in:
11326         http://lists.gnu.org/r/bug-gnulib/2015-01/msg00042.html
11327         * lib/time.in.h:
11328         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC):
11329         * modules/time (Depends-on):
11330         Fall back on unistd.h if the other include files don't define
11331         struct timespec.
11333         update-copyright: apply to self
11334         * build-aux/update-copyright: Fix copyright date.  How ironic!
11336 2015-01-15  Daiki Ueno  <ueno@gnu.org>
11338         libunistring: update to Unicode 7.0.0
11339         * lib/unictype/joininggroup_byname.gperf: Add Straight Waw and
11340         Manichaean names.
11341         * lib/unictype/joininggroup_name.h: Likewise.
11342         * lib/unictype.in.h (UC_JOINING_GROUP_STRAIGHT_WAW)
11343         (UC_JOINING_GROUP_MANICHAEAN_ALEPH): New enumeration values.
11344         * lib/gen-uni-tables.c (UC_JOINING_GROUP_STRAIGHT_WAW)
11345         (UC_JOINING_GROUP_MANICHAEAN_*): New enumeration values.
11346         (fill_arabicshaping, joining_group_as_c_identifier): Support those
11347         enum values.
11348         (is_property_alphabetic): Accept newly added characters to
11349         cuneiform numeric signs.
11350         (is_property_default_ignorable_code_point): Reject U+0605.
11351         (FIELDLEN): Increase from 120 to 160.
11352         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0605,
11353         U+08FF, U+0C00, U+0C81, U+0D01, U+1AB0..U+1ABE, U+1BAC..U+1BAD,
11354         U+1CF8..U+1CF9, U+1DE7..U+1DF5, U+A9E5, U+AA7C, U+FE27..U+FE2D,
11355         U+102E0, U+10376..U+1037A, U+10AE5..U+10AE6, U+1107F, U+11173,
11356         U+1122F..U+11231, U+11234, U+11236..U+11237, U+112DF,
11357         U+112E3..U+112EA, U+11301, U+1133C, U+11340, U+11366..U+1136C,
11358         U+11370..U+11374, U+114B3..U+114B8, U+114BA, U+114BF..U+114C0,
11359         U+114C2..U+114C3, U+115B2..U+115B5, U+115BC..U+115C0,
11360         U+11633..U+1163A, U+1163D, U+1163F..U+11640, U+16AF0..U+16AF4,
11361         U+16B30..U+16B36, U+1BC9D..U+1BC9E, U+1BCA0..U+1BCA3, and
11362         U+1E8D0..U+1E8D6.
11363         (uc_width): Adjust nonspacing_table_ind boundary from 240 to 248.
11364         * tests/uniwidth/test-uc_width2.sh: Same updates as in
11365         lib/uniwidth/width.c.
11366         * all generated files under lib/uni* and tests/uni*: Regenerate.
11368 2015-01-14  Daiki Ueno  <ueno@gnu.org>
11370         libunistring: update to Unicode 6.3.0
11371         * lib/uniwbrk.in.h (WBP_DQ, WBP_SQ, WBP_HL): New enumeration values.
11372         * lib/uniwbrk/u-wordbreaks.h (FUNC): Support WB7a, WB7b, and WB7c.
11373         Update WB5, WB6, WB7, WB9, WB11, WB12, WB13a, and WB13b.
11374         * lib/uniwbrk/wbrktable.h (uniwbrk_table): Adjust table size.
11375         * lib/uniwbrk/wbrktable.c (uniwbrk_table): Support rule WB7a.
11376         Update WB5, WB9, WB10, WB13a, and WB13b.
11377         * tests/uniwbrk/test-uc-wordbreaks.c
11378         (wordbreakproperty_to_string): Support WBP_DQ, WBP_SQ, and WBP_HL.
11379         * lib/gen-uni-tables.c (UC_BIDI_LRI, UC_BIDI_RLI, UC_BIDI_FSI)
11380         (UC_BIDI_PDI): New enumeration values.
11381         (bidi_category_byname): Support those enum values.
11382         (is_WBP_MIDNUMLET): Exclude 0x0027 (SINGLE QUOTE), which is now a
11383         dedicated property assigned.
11384         (is_property_case_ignorable): Check 0x0027.
11385         (WBP_DQ, WBP_SQ, WBP_HL): New enumeration values.
11386         (get_wbp, debug_output_wbp, fill_org_wbp, debug_output_org_wbp)
11387         (output_wbp): Support those enum values.
11388         * lib/unictype.in.h (UC_BIDI_LRI, UC_BIDI_RLI, UC_BIDI_FSI)
11389         (UC_BIDI_PDI): New enumeration values.
11390         * lib/unictype/bidi_byname.gperf: Add those property names.
11391         * lib/uniwidth/width.c (nonspacing_table_data): Add U+061C,
11392         U+180E, U+1A1B, and U+2066..U+2069.
11393         * tests/uniwidth/test-uc_width2.sh: Same updates as in
11394         lib/uniwidth/width.c.
11395         * all generated files under lib/uni* and tests/uni*: Regenerate.
11397 2015-01-14  Daiki Ueno  <ueno@gnu.org>
11399         libunistring: update to Unicode 6.2.0
11400         * lib/unilbrk/lbrktables.h (LBP_RI): New enumeration value.
11401         (unilbrk_table): Adjust table size.
11402         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column
11403         for LBP_RI.
11404         * lib/uniwbrk.in.h (WBP_RI): New enumeration value.
11405         * lib/uniwbrk/u-wordbreaks.h (FUNC): Support rule WB13c.
11406         Normalize table index skipping ignored properties.
11407         * lib/uniwbrk/wbrktable.c (uniwbrk_table): Support WBP_RI.  Remove
11408         WBP_EXTEND and WBP_FORMAT, which are now computed without using
11409         the table.
11410         * lib/uniwbrk/wbrktable.h: Adjust table size.
11411         * lib/unigbrk.in.h (GBP_RI): New enumeration value.
11412         * lib/unigbrk/uc-is-grapheme-break.c (UC_IS_GRAPHEME_BREAK):
11413         Support rule GB8a.
11414         (UC_GRAPHEME_BREAKS_FOR, gb_table): Support GBP_RI.
11415         * tests/unigbrk/test-uc-is-grapheme-break.c
11416         (graphemebreakproperty_to_string): Support GBP_RI.
11417         * tests/uniwbrk/test-uc-wordbreaks.c
11418         (wordbreakproperty_to_string): Support WBP_RI.
11419         * lib/gen-uni-tables.c (LBP_RI): New enumeration value.
11420         (get_lbp, debug_output_lbp, fill_org_lbp, debug_output_org_lbp)
11421         (output_lbp): Support LBP_RI.  Adjust some characters changed from
11422         LBP_AL to LBP_ID.
11423         (output_lbp): Support LBP_RI.
11424         (WBP_RI): New enumeration value.
11425         (debug_output_wbp, fill_org_wbp, debug_output_org_wbp)
11426         (output_wbp): Support WBP_RI.
11427         (GBP_RI): New enumeration value.
11428         (output_gbp_test, fill_org_gbp): Support GBP_RI.
11429         * all generated files under lib/uni* and tests/uni*: Regenerate.
11431 2015-01-14  Daiki Ueno  <ueno@gnu.org>
11433         libunistring: update to Unicode 6.1.0
11434         * lib/gen-uni-tables.c (output_joining_group): Switch to
11435         3-level table to accommodate joining groups defined with higher
11436         codepoint value.  Since there are only 88 groups defined in
11437         Unicode 7.0.0, use 7-bit packed format for level3 entries.
11438         (get_lbp): Update for Unicode 6.1.0.
11439         * lib/unictype/joininggroup_of.c (uc_joining_group): Adjust to use
11440         3-level table.
11441         * lib/unictype/joininggroup_byname.gperf: Add Rohingya Yeh
11442         joining group name.
11443         * lib/unictype/joininggroup_name.h: Likewise.
11444         * lib/unilbrk/lbrktables.h (LBP_HL): New enumeration value.
11445         (unilbrk_table): Adjust table size.
11446         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column
11447         for LBP_HL.
11448         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0604,
11449         U+08E4..U+08FE, U+1BAB, U+1CF4, U+A674..U+A67B, U+A69F,
11450         U+AAEC..U+AAED, U+AAF6, U+11100..U+11102, U+11127..U+1112B,
11451         U+1112D..U+11134, U+11180..U+11181, U+111B6..U+111BE, U+116AB,
11452         U+116AD, U+116B0..U+116B5, U+116B7, U+16F8F..U+16F92.  Remove
11453         U+302E..U+302F.
11454         * tests/uniwidth/test-uc_width2.sh: Same updates as in
11455         lib/uniwidth/width.c.
11456         * all generated files under lib/uni* and tests/uni*: Regenerate.
11457         * modules/uni*/* (configure.ac): Bump minimum version to 0.9.5.
11459 2015-01-15  Daiki Ueno  <ueno@gnu.org>
11461         uniwbrk/u32-wordbreaks-tests: add conformance test
11462         * modules/uniwbrk/u32-wordbreaks-tests (Files): Add
11463         tests/uniwbrk/test-uc-wordbreaks.c,
11464         tests/uniwbrk/test-uc-wordbreaks.sh, and
11465         tests/uniwbrk/WordBreakTest.txt.
11466         (Makefile.am): Add uniwbrk/test-uc-wordbreaks.sh to $(TESTS), add
11467         test-uc-wordbreaks to $(check_PROGRAMS), and define
11468         test_uc_wordbreaks_SOURCES and test_uc_wordbreaks_LDADD.
11469         * tests/uniwbrk/test-uc-wordbreaks.sh: New file.
11470         * tests/uniwbrk/test-uc-wordbreaks.c: New file.
11472 2015-01-15  Daiki Ueno  <ueno@gnu.org>
11474         uniwbrk: ignore Extended/Format characters at BOL not BOS
11475         * lib/uniwbrk/u-wordbreaks.h (FUNC): Ignore Extend and Format
11476         characters if the previous character property is one of
11477         WBP_NEWLINE, WBP_CR, and WBP_LF.
11479 2015-01-11  Jim Meyering  <meyering@fb.com>
11481         test-strstr.c: avoid a trivial leak
11482         * tests/test-strstr.c (main): Free haystack.
11484         update-copyright: recognize groff's \(co marker
11485         * build-aux/update-copyright (circle_c_re): Also accept
11486         uses of \(co, as found in gzip.1.
11488 2015-01-08  Pádraig Brady  <P@draigBrady.com>
11490         maint.mk: fix compatibility with OS X nm
11491         * top/maint.mk (_gl_tight_scope): Use the -g option to
11492         show exported items rather than the -e option which is
11493         ignored on all platforms except OS X where it gives an error.
11494         Reported by Assaf Gordon.
11496 2015-01-07  KO Myung-Hun  <komh@chollian.net>
11498         localcharset: improve charset detection on OS/2
11499         Use system codepage when appropriate.  Map OS/2 codepages to
11500         GNU canonical charset names if possible.
11501         * lib/config.charset: Don't output aliases if "$os" is os2*.
11502         * lib/localcharset.c (get_charset_aliases) [OS2]: Hardcode the
11503         result for OS/2.
11504         (locale_charset) [OS2]: Use system codepage if codeset is omitted
11505         from the locale name which is neither "C" nor "POSIX".
11507 2015-01-06  Paul Eggert  <eggert@cs.ucla.edu>
11509         count-leading-zeros: use 64-bit intrinsics on 32-bit Windows
11510         This reverts the last patch but one, as it shouldn't be needed now
11511         that the typo is fixed.
11512         * lib/count-leading-zeros.h (count_leading_zeros_ll):
11513         * lib/count-trailing-zeros.h:
11514         * lib/count-one-bits.h:
11515         Go back to using 64-bit intrinsics.
11517         count-leading-zeros: fix pragma typos
11518         * lib/count-leading-zeros.h (_BitScanReverse, _BitScanReverse64):
11519         Fix typos in declaration of intrinsics when _MSC_VER.
11521 2015-01-06  Pádraig Brady  <P@draigBrady.com>
11523         count-leading-zeros: avoid 64-bit intrinsics on 32-bit Windows
11524         * lib/count-leading-zeros.h (count_leading_zeros_ll): Use 32 bit
11525         intrinsics in this case.
11526         * lib/count-trailing-zeros.h: Likewise.
11527         * lib/count-one-bits.h: Likewise.
11529 2015-01-06  Daiki Ueno  <ueno@gnu.org>
11531         uniname/uniname: update to Unicode 7.0.0
11532         To accommodate new characters added since Unicode 5.1.0, this
11533         changes the internal representation of codepoint ranges.
11534         Previously, we grouped codepoint ranges by manually assigned 4-bit
11535         tag, which only allowed 16 groups.  This removes the limitation by
11536         switching to binary search on a table.  For the detail rationale
11537         and the benchmark results, see:
11538         https://lists.gnu.org/r/bug-libunistring/2014-06/msg00001.html
11539         * lib/uniname/gen-uninames.lisp (unicode-char): Rename CODE member
11540         to INDEX, as it no longer represents a codepoint.
11541         (range): New struct.
11542         (main): Switch to intervals list from a bit-pattern based
11543         classification.
11544         * lib/uniname/uninames.h: Regenerate.
11545         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 7.0.0.
11546         * modules/uniname/base (configure.ac): Bump minimum version to
11547         0.9.5.
11548         * modules/uniname/uniname (configure.ac): Bump minimum version to
11549         0.9.5.
11551 2015-01-05  Eric Blake  <eblake@redhat.com>
11553         doc: update INSTALL from autoconf
11554         * doc/install.texi: Resync from autoconf.
11555         * doc/INSTALL: Reflect recent autoconf update.
11556         * doc/INSTALL.ISO: Likewise.
11557         * doc/INSTALL.UTF-8: Likewise.
11559         stdio: fix use of PRIdMAX on modern mingw
11560         * m4/stdio_h.m4 (gl_STDIO_H): Probe for printf flavor via inttypes.
11561         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): Use result
11562         to work with modern mingw.
11564 2015-01-05  Daniel P. Berrange  <berrange@redhat.com>  (tiny change)
11566         pthread: detect git mingw builds with only partial pollution
11567         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for additional
11568         pollution, as seen temporarily in Fedora 21.
11570 2015-01-04  Paul Eggert  <eggert@cs.ucla.edu>
11572         lib-symbol-versions: cache script check
11573         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT):
11574         Cache the check for linker version scripts.
11575         From a suggestion by Christophe Curis in:
11576         http://lists.gnu.org/r/bug-gnulib/2015-01/msg00011.html
11578 2015-01-04  Benno Schulenberg  <bensberg@justemail.net>
11580         maint: fix grammar nits in propername (trivial change)
11581         * lib/propername.h: Remove a mistaken comma and a duplicate "from",
11582         and use an adequate verb and tense.
11584 2015-01-02  Ludovic Courtès  <ludo@gnu.org>
11586         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
11587         * module/gendocs: Add 'doc/gendocs_template_min'.
11589         * build-aux/gendocs.sh: Change email addresses and upstream URLs
11590         from to Gnulib's.
11591         (scripturl, templateurl): Adjust accordingly.
11593 2015-01-01  Paul Eggert  <eggert@cs.ucla.edu>
11595         gendocs: copyright date and version fix
11596         Reported by Karl Berry in:
11597         http://lists.gnu.org/r/bug-gnulib/2015-01/msg00002.html
11598         * build-aux/gendocs.sh, doc/gendocs_template, doc/gendocs_template_min:
11599         Fix copyright date.
11600         * build-aux/gendocs.sh (scriptversion): Update.
11602 2015-01-01  Karl Berry  <karl@gnu.org>
11604         * doc/install.texi,
11605         * build-aux/mdate-sh,
11606         * build-aux/depcomp,
11607         * build-aux/config.guess,
11608         * build-aux/config.sub,
11609         * build-aux/ar-lib,
11610         * build-aux/compile: revert copyright updates (some from last
11611         year) in slaved files.
11613 2015-01-01  Paul Eggert  <eggert@cs.ucla.edu>
11615         version-etc: new year
11616         * doc/gnulib.texi:
11617         * lib/version-etc.c (COPYRIGHT_YEAR): Update copyright date.
11618         * all files: Run 'make update-copyright'.
11620 2014-12-30  Pádraig Brady  <P@draigBrady.com>
11622         xstrtol: ensure errno is reset
11623         Since commit 3bf75404, on 26-09-1998, errno may not have been reset.
11624         Noticed with a spurious coreutils test failure on Darwin 14.0.0.
11626         * lib/xstrtol.c (__xstrtol): Always reset errno before returning.
11628 2014-12-28  Paul Eggert  <eggert@cs.ucla.edu>
11630         utimens: fix dependency typo
11631         * modules/utimens (Depends-on): Remove 'assure'.
11632         This bug was introduced in the recent 'assure' patch.
11634 2014-12-22  Eric Blake  <eblake@redhat.com>
11636         docs: mention why libgen.h is bad
11637         * doc/posix-headers/libgen.texi (libgen.h): Refer to dirname module.
11639 2014-12-20  Paul Eggert  <eggert@cs.ucla.edu>
11641         assure: new module
11642         This works better than 'assert' when compiling with -DNDEBUG,
11643         as it avoids some compiler diagnostics in that case.
11644         Reported by Norihiro Tanaka in:
11645         http://lists.gnu.org/r/bug-gnulib/2014-12/msg00215.html
11646         * MODULES.html.sh (func_all_modules): Add 'assure'.
11647         * lib/assure.h, modules/assure: New files.
11648         * lib/chdir-long.c, lib/cycle-check.c, lib/fchdir.c, lib/fts.c:
11649         * lib/poll.c, lib/savewd.c, lib/xstrtol.c:
11650         Prefer 'assure' to 'assert'.
11651         * lib/utimens.c: Stop using 'assert'; it wasn't helpful.
11652         * modules/chdir-long, modules/cycle-check, modules/fchdir:
11653         * modules/poll, modules/savewd, modules/utimens, modules/xstrtol:
11654         Depend on 'assure'.
11656 2014-12-16  Paul Eggert  <eggert@cs.ucla.edu>
11658         stdalign: port better to HP compilers
11659         * m4/stdalign.m4 (gl_STDALIGN_H): Try the test if __HP_cc or
11660         __HP_aCC are nonzero, to be consistent with the 2014-01-20 patch.
11662         stdalign: work around Apple GCC 4.0 bug
11663         Reported by David Fang in:
11664         http://lists.gnu.org/r/bug-gnulib/2014-12/msg00194.html
11665         * lib/stdalign.in.h (_Alignas):
11666         * m4/stdalign.m4 (gl_STDALIGN_H):
11667         Do not use aligned attribute with GCC 4.0 on Apple.
11669 2014-12-16  Pádraig Brady  <P@draigBrady.com>
11671         getcwd: fix test failure on OS X 10.9
11672         * m4/getcwd-path-max.m4: Avoid the replacement if it
11673         won't be effective due to the PATH_MAX limitation of lstat().
11674         (gl_cv_func_getcwd_path_max): Adjust to indicate this case.
11675         * m4/getcwd.m4 (gl_FUNC_GETCWD): Define HAVE_GETCWD_SHORTER
11676         for this case for use in tests, and also exclude this
11677         case when setting REPLACE_GETCWD.
11678         * tests/test-getcwd.c (test_long_name): Restrict the
11679         tested path length so that lstat() will not be passed
11680         a path greater than PATH_MAX.
11681         Also key a test condition on HAVE_OPENAT_SUPPORT rather
11682         than AT_FDCWD, since the latter is set unconditionally
11683         since Sep 2009 in commit 52c658e9.
11685 2014-12-14  Tim Rühsen  <tim.ruehsen@gmx.de>
11687         parse-datetime: avoid a compiler warning with byacc (trivial)
11688         * lib/parse-datetime.y (yylex): Use the same prototype in the
11689         function definition as the declaration, to avoid a -Wstrict-prototypes
11690         warning seen when using byacc.
11692 2014-12-12  Daiki Ueno  <ueno@gnu.org>
11694         unicase/locale-language-tests: fix LOCALE_FR test
11695         * tests/unicase/test-locale-language.sh: Really use $LOCALE_FR for
11696         a French locale with traditional encoding.
11697         Reported by umerqayam in:
11698         http://lists.gnu.org/r/bug-libunistring/2014-12/msg00000.html
11700 2014-12-12  Paul Eggert  <eggert@cs.ucla.edu>
11702         stddef: support C11's max_align_t
11703         * doc/posix-headers/stddef.texi (stddef.h): Document max_align_t.
11704         * lib/stddef.in.h (_@GUARD_PREFIX@_STDDEF_H) [__need_wint_t]:
11705         Do not undef, as that might cause max_align_t to be defined twice.
11706         Instead, change use to check for _GL_STDDEF_WINT_T too.
11707         (max_align_t) [!HAVE_MAX_ALIGN_T]: New decl.
11708         * m4/stddef_h.m4 (gl_STDDEF_H, gl_STDDEF_H_DEFAULTS):
11709         Check for max_align_t.
11710         * modules/stddef (stddef.h): Substitute HAVE_MAX_ALIGN_T.
11711         * modules/stddef-tests (Depends-on): Add stdalign.
11712         * tests/test-stddef.c: Test max_align_t.
11714 2014-12-11  Daiki Ueno  <ueno@gnu.org>
11716         unistd: fix iOS check conditional
11717         On Mac OS X 10.8, the TARGET_* macros are unconditonally defined
11718         as 0 or 1 in <TargetConditionals.h>, and the previous check always
11719         yielded true on non-iOS environment.
11720         * lib/unistd.in.h (environ) [__APPLE__]: Check the values of
11721         TARGET_OS_IPHONE and TARGET_IPHONE_SIMULATOR, instead of whether
11722         they are defined.
11724 2014-12-09  Paul Eggert  <eggert@cs.ucla.edu>
11726         posixtm: avoid compiler warning in a better way
11727         * lib/posixtm.c (IF_LINT): Remove.
11728         (year, posix_time_parse):
11729         Return true (not 0) if successful.  All callers changed.
11730         (posix_time_parse): Simplify to pacify GCC without need for IF_LINT.
11732 2014-12-08  KO Myung-Hun  <komh78@gmail.com>
11734         * lib/relocatable.c (relocate): Prepend $UNIXROOT to pathname if it is
11735         started with '/' on EMX.
11737 2014-12-08  KO Myung-Hun  <komh78@gmail.com>
11739         freopen: workaround freopen() on OS/2 kLIBC
11740         * lib/freopen.c (rpl_freopen): Workaround.
11741         * m4/freopen.m4: Add os2* case.
11743         get_shared_library_fullname: port to EMX
11744         * lib/relocatable.c: Define strcmp and strncmp to stricmp and strnicmp
11745         on EMX, respectively.
11746         (_DLL_InitTerm): New on EMX.
11747         (get_shared_library_fullname): Implement on EMX.
11749         find_executable: port to EMX
11750         * lib/progreloc.c (find_executable): Implement on EMX.
11752         sched: check struct sched_param in spawn.h as well
11753         * lib/sched.in.h: Include spawn.h on kLIBC.
11754         * lib/sched_h.m4: Check struct sched_param in spawn.h as well.
11756 2014-12-08  Martin Kletzander  <mkletzan@redhat.com>  (tiny change)
11758         bootstrap: Allow perl modules in $buildreq
11759         * build-aux/bootstrap: Add case for perl modules.
11761 2014-12-08  Pádraig Brady  <P@draigBrady.com>
11763         apply _GL_ATTRIBUTE_PURE to some inline functions
11764         clang 3.4.2 flagged these inline functions as pure
11765         * lib/savewd.h (savewd_errno): Set _GL_ATTRIBUTE_PURE.
11766         * lib/sig-handler.h (get_handler): Likewise.
11767         * lib/stat-time.h (get_stat_{a,c,m,birth}time{,_ns}): Likewise.
11768         * lib/timespec.h (timespec_cmp, timespec_sign): Likewise.
11770 2014-12-06  Pádraig Brady  <P@draigBrady.com>
11772         vasnprintf: fix potential use after free
11773         * lib/vasnprintf.c (VASNPRINTF): Fix free-memory read,
11774         flagged by clang-analyzer 3.4.2.
11776 2014-12-05  Pádraig Brady  <P@draigBrady.com>
11778         filevercmp, posixtm: avoid compiler warnings with -O3
11779         * lib/filevercmp.h (filevercmp): Tag with _GL_ATTRIBUTE_PURE
11780         * lib/posixtm.c: (IF_LINT): Define.
11781         (posix_time_parse): Use it to void a "may be used uninitialized"
11782         warning, seen only with -O3.
11784 2014-12-05  Bruno Haible  <bruno@clisp.org>
11786         Fix LDBL80_WORDS macro on big endian platforms.
11787         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Add missing parenthesis in
11788         LDBL80_WORDS macro.
11789         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
11790         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
11791         * tests/test-isfinite.c (test_isfinitel): Likewise.
11792         * tests/test-isinf.c (test_isinfl): Likewise.
11793         * tests/test-isnan.c (test_long_double): Likewise.
11794         * tests/test-isnanl.h (main): Likewise.
11795         * tests/test-snprintf-posix.h (LDBL80_WORDS): Add missing parenthesis.
11796         * tests/test-sprintf-posix.h (LDBL80_WORDS): Likewise.
11797         * tests/test-vasnprintf-posix.c (LDBL80_WORDS): Likewise.
11798         * tests/test-vasprintf-posix.c (LDBL80_WORDS): Likewise.
11799         Reported by Pádraig Brady.
11801 2014-12-02  KO Myung-Hun  <komh78@gmail.com>
11803         git-version-gen: do not print new line characters
11804         * build-aux/git-version-gen: Use printf instead of echo and tr.
11806         gnulib-tool: recognize x:* as an absolute path
11807         * gnulib-tool (func_gnulib_dir): Add ?:* case.
11808         (func_relconcat): Likewise.
11810 2014-12-02  Andrei Borzenkov  <arvidjaar@gmail.com>
11812         argp: avoid extraneous translation and mem leak with empty pre doc
11813         * lib/argp-help.c (argp_doc): Never translate the empty string,
11814         when "\v" is the first or last character of the string, as that
11815         has a reserved meaning to return the header info from a po file.
11816         This also fixes a small memory leak in the !post case.
11817         The issue can be seen with this command for example:
11818         LC_MESSAGES=en_US grub2-mknetdir --help
11820 2014-11-27  Daiki Ueno  <ueno@gnu.org>
11822         uniname/uniname-tests: skip if system's libunistring is used
11823         * modules/uniname/uniname-tests (Makefile.am): Skip test if
11824         uniname/uniname module is not compiled.
11826 2014-11-27  Pádraig Brady  <P@draigBrady.com>
11828         printf: fix configure check on big endian systems
11829         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Add missing bracket.
11831 2014-11-22  Daiki Ueno  <ueno@gnu.org>
11833         pipe-filter-gi, pipe-filter-ii: port to AIX
11834         On AIX 7.1, 'select' is defined as static and cannot be referred
11835         to from inline function.
11836         * lib/pipe-filter-aux.h (nointr_select): Remove, manually expand
11837         the definition...
11838         * lib/pipe-filter-gi.c (filter_loop): ...here, and...
11839         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): ...here.
11841 2014-11-20  Paul Eggert  <eggert@cs.ucla.edu>
11843         gitlog-to-changelog: add --until
11844         * build-aux/gitlog-to-changelog: Support new --until option.
11845         Need described by Eli Zaretskii in: http://bugs.gnu.org/19113
11847 2014-11-14  Paul Eggert  <eggert@cs.ucla.edu>
11849         extern-inline: update commentary about GCC bugs
11850         * m4/extern-inline.m4: Add another GCC bug number to comments.
11852 2014-11-13  Daiki Ueno  <ueno@gnu.org>
11854         gen-uni-tables: untabify
11855         * lib/gen-uni-tables.c: Untabify.
11857 2014-11-13  Daiki Ueno  <ueno@gnu.org>
11859         gen-uni-tables: check out-of-range values added to 3-level tables
11860         * lib/gen-uni-tables.c (output_category, output_bidi_category)
11861         (output_joining_type, output_ident_category): Check out-of-range
11862         values added to 3-level tables.
11864 2014-11-13  Daiki Ueno  <ueno@gnu.org>
11866         gen-uni-tables: utilize 'assert'
11867         * lib/gen-uni-tables.c: Include <assert.h>.
11868         (output_category, output_combclass, output_decimal_digit_test)
11869         (output_decimal_digit, output_digit_test, output_digit)
11870         (output_numeric, get_mirror_value, fill_properties)
11871         (fill_property30, is_property_alphabetic)
11872         (is_property_default_ignorable_code_point)
11873         (is_property_uppercase, is_property_lowercase)
11874         (is_property_cased, is_property_case_ignorable)
11875         (is_property_changes_when_lowercased, is_property_iso_control)
11876         (is_property_math, fill_arabicshaping, output_joining_group)
11877         (fill_scripts, fill_blocks, output_lbp, fill_org_wbp)
11878         (output_wbp, fill_org_gbp, get_decomposition)
11879         (output_decomposition, fill_composition_exclusions)
11880         (debug_output_composition_tables, output_composition_tables)
11881         (redistribute_casefolding_rules, output_casing_rules): Use
11882         'assert (EXPR);' instead of 'if (!EXPR) abort ();' for better error
11883         reporting.
11885 2014-11-13  Daiki Ueno  <ueno@gnu.org>
11887         gen-uni-tables: cosmetic improvements
11888         * lib/gen-uni-tables.c: Escape newlines in the Emacs file local
11889         variables specification.
11890         (is_outdigit): Remove unused function.
11892 2014-11-12  Jeroen Roovers  <jer@gentoo.org>  (tiny change)
11894         fcntl-h-tests: port to PA-RISC GNU/Linux
11895         * tests/test-fcntl-h.c (main): Check O_SYNC is different from O_DSYNC.
11897 2014-11-10  Paul Eggert  <eggert@cs.ucla.edu>
11899         fts: port to C89
11900         Problem reported for MSVC 16 by Gisle Vanem in:
11901         http://lists.gnu.org/r/bug-gnulib/2014-11/msg00027.html
11902         * lib/fts.c (fts_build): Avoid declaration before statement.
11904 2014-11-06  Paul Eggert  <eggert@cs.ucla.edu>
11906         unistd: port to iOS
11907         Problem reported by André Klitzing in:
11908         http://lists.gnu.org/r/bug-gnulib/2014-11/msg00013.html
11909         * lib/unistd.in.h (environ): Do not include crt_externs.h on iOS.
11911 2014-11-05  Paul Eggert  <eggert@cs.ucla.edu>
11913         obstack: do not reject malloc-style obstack_chunkfun, obstack_freefun
11914         Problem reported by Alan Modra in:
11915         http://lists.gnu.org/r/bug-gnulib/2014-11/msg00007.html
11916         * lib/obstack.h (obstack_chunkfun, obstack_freefun):
11917         Always cast the function arg, reverting this part of the previous
11918         change.
11920 2014-11-04  Paul Eggert  <eggert@cs.ucla.edu>
11922         obstack: avoid potentially-nonportable function casts
11923         * lib/obstack.c (CALL_CHUNKFUN, CALL_FREEFUN):
11924         Remove, replacing with ...
11925         (call_chunkfun, call_freefun): New static functions.
11926         All uses changed.  Avoid potentially-nonportable casts.
11927         (chunkfun_type, freefun_type): Remove typedefs; no longer used.
11928         (_obstack_begin_worker): Omit last two args, since they
11929         rely on potentially-nonportable casts.  All callers changed.
11930         * lib/obstack.h (_OBSTACK_CAST): New macro.
11931         Use it everywhere the old API used a potentially-nonportable cast.
11932         The new API doesn't cast.
11933         (struct obstack): Use unions rather than requiring
11934         potentially-nonportable casts.
11935         (obstack_chunkfun, obstack_freefun): Return void.
11937 2014-11-03  Alan Modra  <amodra@gmail.com>
11939         obstack: fix macro return values
11940         * lib/obstack.h (obstack_next_free): Return void *.
11941         (obstack_1grow_fast, obstack_blank_fast): Return void.
11942         For __GNUC__ macros:
11943         (obstack_1grow, obstack_blank): Remove now unnecessary (void) 0.
11944         For !__GNUC__ macros:
11945         (obstack_make_room, obstack_grow, obstack_grow0)
11946         (obstack_ptr_grow_fast, obstack_int_grow_fast): Return void.
11948 2014-11-03  Paul Eggert  <eggert@cs.ucla.edu>
11950         obstack: do not assume system-supplied obstack is size_t safe
11951         * m4/obstack.m4: New file.
11952         * modules/obstack (Files): Add it.
11954         obstack: port to platforms that #define __alignof__
11955         * lib/obstack.c: Include <alignof.h> if !defined __alignof__,
11956         not if !_LIBC.  We don't know of any platforms that #define
11957         __alignof__, but it might be useful in tests.  Conversely,
11958         glibc assumes GCC.
11960 2014-11-03  Pádraig Brady  <P@draigBrady.com>
11962         linkat: don't unconditionally replace on GNU/Linux
11963         * m4/linkat.m4 (gl_FUNC_LINKAT): The compile check for AT_SYMLINK_FOLLOW
11964         was redundant for a few reasons.  It was present to support compiling
11965         on new systems but running on the old narrow window of Linux 2.6.1[67].
11966         It setup and cleaned up test files which weren't actually used.
11967         On non __linux__ it compile tested AT_SYMLINK_FOLLOW, but that is
11968         implicit in the following check.
11970 2014-11-03  Pádraig Brady  <P@draigBrady.com>
11972         linkat: wrap to handle symlinks on OS X 10.10
11973         * m4/linkat.m4 (gl_FUNC_LINKAT): linkat() is available on Yosemite
11974         but not usable because it doesn't support creating hardlinks
11975         to symlinks.  Therefore add a generic test for this capability
11976         and fallback to our emulation if linkat() fails with ENOTSUP.
11978 2014-11-02  Paul Eggert  <eggert@cs.ucla.edu>
11980         open, openat: document nonstandard FreeBSD, NetBSD O_NOFOLLOW errno
11981         * doc/posix-functions/open.texi (open):
11982         * doc/posix-functions/openat.texi (openat):
11983         Document that these functions do not set errno to ELOOP when
11984         a symlink is opened with O_NOFOLLOW.
11986 2014-10-31  Paul Eggert  <eggert@cs.ucla.edu>
11988         obstack: add NEWS entry for recent incompatible changes
11989         * NEWS: Describe recent changes.
11991 2014-10-30  Pádraig Brady  <P@draigBrady.com>
11993         mountlist: don't use libmount to decide on dummy/remote
11994         * lib/mountlist.c (read_file_system_list): Don't use the libmount
11995         routines to determine whether a file system is dummy or remote,
11996         as they're not currently compatible.  For example the remoteness
11997         is determined on file system type (for which the list seems incomplete),
11998         rather than simply checking for a ':' in the device name.
11999         Also libmount currently determines that 'tmpfs' is a dummy file system
12000         even though it has associated storage.
12002 2014-10-29  Paul Eggert  <eggert@cs.ucla.edu>
12004         obstack: prefer __alignof__ to alignof
12005         This is for portability to pre-4.7 GCC when compiling glibc.
12006         See Joseph S. Myers in:
12007         http://sourceware.org/ml/libc-alpha/2014-10/msg00703.html
12008         * lib/obstack.c (__alignof__) [!_LIBC && !__GNUC__]:
12009         New macro, defined by including and using <alignof.h>.
12010         (MAX): New macro.
12011         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Redefine in terms of these.
12012         Do not use enums as they are not portable to some broken compilers.
12013         * modules/obstack (Depends-on): Depend on alignof, not stdalign.
12015         obstack: prefer alignof to calculating alignments by hand
12016         * lib/obstack.c: Include <stdalign.h>.
12017         (struct fooalign): Remove.
12018         (DEFAULT_ALIGNMENT): Use alignof rather than the old offsetof hack.
12019         * modules/obstack (Depends-on): Add stdalign.
12021 2014-10-28  Paul Eggert  <eggert@cs.ucla.edu>
12023         obstack: use size_t alignments and check for overflow
12024         * lib/obstack.c, lib/obstack.h (_obstack_begin, _obstack_begin_1):
12025         * lib/obstack.c (_obstack_begin_worker, _obstack_newchunk):
12026         * lib/obstack.h (struct obstack.alignment_mask):
12027         Use _OBSTACK_SIZE_T, not int, for alignments.
12028         * lib/obstack.c (_obstack_newchunk): Fail if the size calculation
12029         overflows, e.g., when adding the alignment.
12031 2014-10-29  Alan Modra  <amodra@gmail.com>
12033         obstack: 64-bit obstack support, part 3
12034         This finally enables full 64-bit obstack support.  The glibc
12035         shared library specific code is removed from obstack.c too, and
12036         the error handling code conditionally compiled under control of
12037         another macro, _OBSTACK_NO_ERROR_HANDLER.
12038         * lib/obstack.h: Include string.h earlier.
12039         (_OBSTACK_INTERFACE_VERSION): Define.
12040         (_OBSTACK_SIZE_T, _CHUNK_SIZE_T): Define as size_t for version 2.
12041         * lib/obstack.c: Don't include shlib-compat.h.
12042         (OBSTACK_INTERFACE_VERSION): Delete.
12043         (_OBSTACK_ELIDE_CODE): Rename from ELIDE_CODE.  Define when version 1
12044         glibc code is compatible with version 2.  Don't include stdio.h for
12045         __GNU_LIBRARY.
12046         (obstack_exit_failure, print_and_abort, obstack_alloc_failed_handler):
12047         Omit when _OBSTACK_NO_ERROR_HANDLER defined.  Include stdio.h here.
12048         (_obstack_compat, _obstack, _obstack_newchunk, obstack_free): Delete
12049         glibc shared library specific source.
12051         obstack: 64-bit obstack support, part 2
12052         This gets us 4G obstack support, without changing ABI
12053         compatibility, apart from possibly introducing some
12054         signed/unsigned comparison warnings in code that uses obstack.h.
12055         a) Replace "int" size parameters, return values, and macro local vars
12056            with _OBSTACK_SIZE_T, an "unsigned int" for now.
12057         b) Make obstack.chunk_size a _CHUNK_SIZE_T, an "unsigned long" for now.
12058         c) Make all obstack macros checking available room use obstack_room.
12059            "next_free + desired > chunk_limit" may wrap the lhs for chunks
12060            allocated near the top of memory.
12061         d) Use unsigned comparisons, and macro locals to support >2G on 32-bit.
12062         * lib/obstack.h (_OBSTACK_SIZE_T): Define.  Use throughout
12063         in place of "int" size parameters, return values and local vars.
12064         (_CHUNK_SIZE_T): Define.
12065         (struct obstack): Make chunk_size a _CHUNK_SIZE_T.  Make temp
12066         union use an _OBSTACK_SIZE_T integer type.
12067         For __GNUC__ versions of the following macros...
12068         (obstack_room): Rename local var.
12069         (obstack_make_room): Use obstack_room.
12070         (obstack_grow, obstack_grow0, obstack_1grow, obstack_ptr_grow,
12071         obstack_int_grow, obstack_blank): Likewise.
12072         (obstack_finish): Use unsigned comparison when comparing aligned
12073         next_free against chunk_limit.
12074         (obstack_free): Cast OBJ to remove possible const qualifier.
12075         For !__GNUC__ versions of the following macros...
12076         (obstack_make_room): Use obstack_room.
12077         (obstack_grow, obstack_grow0, obstack_1grow, obstack_ptr_grow,
12078         obstack_int_grow, obstack_blank): Likewise.
12079         (obstack_finish): Use unsigned comparision when comparing aligned
12080         next_free against chunk_limit.
12081         (obstack_free): Use temp.p and same comparisons as __GNUC__ version.
12082         * lib/obstack.c (_obstack_begin_worker): Make "size" parameter
12083         _OBSTACK_SIZE_T.
12084         (_obstack_begin, _obstack_begin_1): Likewise.
12085         (_obstack_newchunk): Likewise for length parameter.  Use size_t locals.
12086         (_obstack_memory_used): Return and use _OBSTACK_SIZE_T local.
12088         obstack: 64-bit obstack support, part 1
12089         a) Correct calls to alloc function, to use a size_t arg.  "long" is
12090            just wrong on targets like x86_64-mingw64 where "long" is 32 bits
12091            and "size_t" 64 bits.
12092         b) Consolidate _obstack_begin and _obstack_begin1 code.
12093         * lib/obstack.h (struct obstack <chunkfun>): Correct prototype to
12094         use "size_t" rather than "long".
12095         (_obstack_begin, _obstack_begin1): Likewise.
12096         (obstack_init, obstack_begin, obstack_specify_allocation_with_arg,
12097         obstack_chunkfun): Update alloc function casts.
12098         * lib/obstack.c (CALL_CHUNKFUN): Update chunkfun cast.
12099         (chunkfun_type, freefun_type): New typdefs.
12100         (_obstack_begin_worker): Split out from ..
12101         (_obstack_begin, _obstack_begin_1): ..here.
12103         obstack: tidy part 2
12104         a) Don't be concerned about "not polluting the namespace with stddef.h
12105            symbols" in obstack.h, since gnulib string.h includes stddef.h
12106            anyway, and it seems unlikely that anyone would care.
12107         b) Don't roll our own slow memcpy in _obstack_newchunk.
12108         c) Rename obstack_free to _obstack_free.  This makes the naming
12109            consistent with other obstack functions and obviates the need for
12110            __obstack_free.  Ancient obstack.c defined both obstack_free and
12111            _obstack_free.  We continue to do that for _LIBC via an alias.
12112         d) Miscellaneous macro fixes.  The expression used to test for gcc-2.8
12113            is clever, but nowadays gcc warns on undefined macros.  You'll get
12114            an undefined macro warning if simulating an old gcc with -U__GNUC__
12115            -U__GNUC_MINOR__ -D__GNUC__=1.
12116         * lib/obstack.h: Include stddef.h unconditionally.  Formatting fixes.
12117         (PTR_INT_TYPE): Delete, replace with ptrdiff_t.
12118         (__obstack_free): Delete, update refs.
12119         (_obstack_free): Rename from obstack_free.
12120         (__extension__): Avoid undefined macro warning for __GNUC_MINOR__.
12121         (obstack_object_size, obstack_room): Parenthesise !__GNUC__ versions.
12122         * lib/obstack.c: Don't include stddef.h.
12123         (COPYING_UNIT): Delete.
12124         (_obstack_begin): Formatting fix.
12125         (_obstack_newchunk): Use memcpy to move existing object to new chunk.
12126         (_obstack_free): Rename from __obstack_free, update alias.  Move
12127         undef of obstack_free to where it is needed.
12129         obstack: tidy part 1
12130         a) Rename temp fields.  temp.tempint and temp.tempptr just looks ugly
12131            to me, and result in overlong lines after later patches.
12132         b) Move error handling code, to avoid a forward declaration and to
12133            simplify later patches in this series.
12134         * lib/obstack.h (struct obstack <temp>): Rename fields of union
12135         and update all uses.
12136         * lib/obstack.c: Include stdlib.h earlier.
12137         (obstack_exit_failure, obstack_alloc_failed_handler): Move later
12138         in file.
12139         (print_and_abort): Remove now redundant forward declaration.
12141 2014-10-24  Paul Eggert  <eggert@cs.ucla.edu>
12143         socketlib, sockets, sys_socket: Use AC_REQUIRE to pacify autoconf.
12144         Without this change, in bleeding-edge fileutils Autoconf complains
12145         that gl_SOCKETLIB etc. are AC_REQUIREd after being invoked.
12146         * modules/socketlib (configure.ac): AC_REQUIRE gl_SOCKETLIB.
12147         * modules/sockets (configure.ac): AC_REQUIRE gl_SOCKETS.
12148         * modules/sys_socket (configure.ac): AC_REQUIRE gl_HEADER_SYS_SOCKET.
12150 2014-10-24  Daiki Ueno  <ueno@gnu.org>
12152         iconv: avoid false detection of non-working iconv
12153         The INBUF arguments of iconv can be either 'const char **'
12154         or 'char **'.  If CC is g++, the difference causes a compile error
12155         and thus leads to a false detection of non-working iconv.
12156         Reported by Eli Zaretskii and Werner LEMBERG in:
12157         <https://lists.gnu.org/r/bug-gnulib/2014-10/msg00023.html>.
12158         * m4/iconv.m4 (AM_ICONV_LINK): Try all possible argument types of
12159         iconv.  Bump serial number.
12161 2014-10-23  Pádraig Brady  <P@draigBrady.com>
12163         bootstrap: print more diagnostics for missing programs
12164         * build-aux/bootstrap: only suppress stderr when checking for
12165         alternative program names.  This supports programs issuing non
12166         standard error messages.
12168 2014-10-23  Pádraig Brady  <P@draigBrady.com>
12170         bootstrap: only update the gnulib submodule
12171         * build-aux/bootstrap: Restrict the "submodule update" command
12172         to the gnulib path.
12174 2014-10-18  Paul Eggert  <eggert@cs.ucla.edu>
12176         symlinkat: port to AIX 7.1
12177         * doc/posix-functions/symlinkat.texi (symlinkat):
12178         Mention AIX porting problem.
12179         * lib/symlinkat.c: Always include errno.h.
12180         (rpl_symlinkat) [HAVE_SYMLINKAT]: New function.
12181         * lib/unistd.in.h (symlinkat): Add replacement machinery.
12182         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Check symlinkat behavior.
12183         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_SYMLINKAT.
12184         * modules/symlinkat (Depends-on): Add fstatat if REPLACE_SYMLINKAT.
12185         (configure.ac): Also compile replacement if REPLACE_SYMLINKAT.
12186         * modules/unistd (unistd.h): Substitute REPLACE_SYMLINKAT.
12188         readlinkat: port to AIX 7.1
12189         * doc/posix-functions/readlink.texi (readlink):
12190         * doc/posix-functions/readlinkat.texi (readlinkat):
12191         Mention AIX porting problem.
12192         * lib/readlinkat.c (rpl_readlinkat) [HAVE_READLINKAT]:
12193         New function.
12194         * lib/unistd.in.h (readlinkat): Add replacement machinery.
12195         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Check readlinkat signature.
12196         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_READLINKAT.
12197         * modules/readlinkat (configure.ac): Also compile replacement
12198         if REPLACE_READLINKAT.
12199         * modules/unistd (unistd.h): Substitute REPLACE_READLINKAT.
12201 2014-10-12  Karl Berry  <karl@gnu.org>
12203         * doc/posix-functions/dirname.texi: remove spurious {.
12205 2014-09-28  Ben Pfaff  <blp@cs.stanford.edu>
12207         basename, dirname: Improve documentation.
12208         * doc/posix-functions/basename.texi: Mention dirname module and
12209         base_name() function.
12210         * doc/posix-functions/dirname.texi: Mention dir_name() and
12211         mdir_name() functions.
12212         Suggested by Werner LEMBERG <wl@gnu.org>.
12214 2014-09-24  Jim Meyering  <meyering@fb.com>
12216         exclude: declare exclude_patopts static
12217         * lib/exclude.c (exclude_patopts): Declare static,
12218         to avoid triggering a -Wmissing-prototypes warning.
12219         The alternative (declaring it in the .h file) would
12220         require publicizing the private "struct patopts".
12222 2014-09-21  Werner Lemberg  <wl@gnu.org>
12224         dirname: support compilation with C++
12225         * lib/dirname.h: Add necessary C linkage declarations.
12227 2014-09-16  Paul Eggert  <eggert@cs.ucla.edu>
12229         qsort_r: include <config.h>
12230         Problem reported by Tom G. Christensen in:
12231         http://lists.gnu.org/r/bug-gnulib/2014-09/msg00071.html
12232         * lib/qsort.c [!_LIBC]: Include <config.h> first.
12234 2014-09-16  Dylan Cali  <calid1984@gmail.com>
12236         avltree-list: avoid compiler warnings (trivial)
12237         * lib/gl_anytree_list2.h: Add _GL_ATTRIBUTE_PURE to avoid
12238         -Werror=suggest-attribute=pure.
12239         * lib/gl_array_list.c: Likewise.
12240         * lib/gl_avltree_list.c (gl_avltree_list_check_invariants): Add extern
12241         declaration to avoid -Werror=missing-prototypes.  This is not added
12242         to a header as only exported for tests.  Add (void) to the
12243         check_invariants() call to indicate we're discarding the result
12244         in this context which avoids -Werror=unused-value.  Note we don't
12245         use ignore_value here to avoid a dependency as we know we'll not
12246         be adding __attribute__((warn_unused_result)) to check_invariants().
12247         Add _GL_ATTRIBUTE_CONST to avoid -Werror=suggest-attribute=const.
12249 2014-09-15  Paul Eggert  <eggert@cs.ucla.edu>
12251         qsort_r: new module, for GNU-style qsort_r
12252         * m4/qsort_r.m4: New file.  Forgot to add this earlier.
12254 2014-09-15  Werner LEMBERG  <wl@gnu.org>
12256         strerror_r-posix: support compilation with C++
12257         * lib/strerror_r.c: Add necessary C linkage declarations.
12259 2014-09-11  Johannes Zarl  <johannes.zarl@jku.at>
12261         fcntl-h: fix compilation with Intel C++ compiler (trivial)
12262         * lib/fcntl.in.h: ICC has the same issue as GCC <= 4.2.
12264 2014-09-09  Fridolin Pokorny  <fpokorny@redhat.com>
12266         mountlist: use /proc/self/mountinfo when available
12267         Use libmount to propagate device IDs provided by Linux in
12268         /proc/self/mountinfo.  This will give more accurate output when
12269         using df in chroot'ed environments as the device IDs are not
12270         determined by stat() which may be inaccurate within the chroot.
12271         * lib/mountlist.c (read_file_system_list): Use the libmount routines
12272         from util-linux to parse "/proc/self/mountinfo" or fall back to
12273         standard getmntent() processing.
12274         * m4/ls-mntd-fs.m4: Check for libmount only when 1-argument
12275         getmntent() is used, as is the case on GNU/Linux.
12277 2014-09-07  Eric Wong  <normalperson@yhbt.net>
12279         users.txt: add cmogstored
12280         cmogstored has used gnulib since the beginning in 2012 to support
12281         GNU/Linux, FreeBSD, and GNU/kFreeBSD.
12283 2014-09-05  Mathieu Anquetin  <mathieu@anquetin.eu>
12285         Trivial change.
12286         * gnulib-tool: Use same options as build-aux/bootstrap to download
12287         PO files.
12289 2014-09-05  Mathieu Anquetin  <mathieu@anquetin.eu>
12291         Trivial change.
12292         * gnulib-tool: Fallback to wget when rsync of PO files fails.
12294 2014-09-04  Eric Blake  <eblake@redhat.com>
12296         maintainer-makefile: add syntax check for useless ';;'
12297         * top/maint.mk (sc_prohibit_double_semicolon): New rule.
12299 2014-09-04  Paul Eggert  <eggert@cs.ucla.edu>
12301         pthread, pthread_sigmask, threadlib: port to Ubuntu 14.04
12302         Problem reported by Assaf Gordon in:
12303         http://lists.gnu.org/r/bug-gnulib/2014-09/msg00023.html
12304         Apparently Ubuntu is doing some fancy link-time optimization
12305         that doesn't work with -lpthread but does work with -pthread.
12306         Work around the bug by preferring -pthread to -lpthread.
12307         * m4/pthread.m4 (gl_PTHREAD_CHECK):
12308         * m4/threadlib.m4 (gl_THREADLIB_BODY): Prefer -pthread to -lpthread.
12309         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
12310         Treat -pthread like -lpthread.
12312 2014-09-04  Eric Blake  <eblake@redhat.com>
12314         error: drop spurious semicolon
12315         * lib/error.c (__error_at_line): Fix ';;'.
12317 2014-09-02  Paul Eggert  <eggert@cs.ucla.edu>
12319         gnulib-common.m4: port to GCC 4.2.1 and Sun Studio 12 C++
12320         * m4/gnulib-common.m4 (AC_C_RESTRICT):
12321         Override AC_C_RESTRICT unconditionally.
12322         Update from autoconf, incorporating:
12323         2014-09-02 autoconf: port 'restrict' to GCC 4.2.1
12324         2009-01-28 Fix AC_C_RESTRICT for Sun Studio 12 C++.
12326 2014-09-01  Paul Eggert  <eggert@cs.ucla.edu>
12328         manywarnings: add GCC 4.9 warnings
12329         Also, make it easier to maintain this in the future.
12330         * build-aux/gcc-warning.spec: Add -Wabi-tag,
12331         -Wconditionally-supported, -Wdelete-incomplete,
12332         -Winherited-variadic-ctor, -Wvirtual-move-assign, -Wzerotrip.
12333         Remove duplicates.  Use tabs uniformly, as that's what 'cut' wants.
12334         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add -Wdate-time,
12335         -Wopenmp-simd.  Use -fdiagnostics-show-option and -funit-at-a-time
12336         only for older GCC versions that need them.  Handle
12337         -Wnormalized=nfc specially, so that the 'comm' command used
12338         for maintenance doesn't get confused.
12340 2014-08-31  Paul Eggert  <eggert@cs.ucla.edu>
12342         vasnprintf: fix bugs in width computation
12343         * lib/vasnprintf.c (VASNPRINTF):
12344         Rework previous change, which introduced a bug,
12345         to avoid the warning in a different way.
12346         Avoid undefined behavior if the width arg is less than -INT_MAX.
12347         Avoid unnecessary use of HAS_WIDTH local.
12349 2014-08-31  Thien-Thi Nguyen  <ttn@gnu.org>  (tiny change)
12351         vasnprintf: Avoid signed/unsigned comparison warning.
12352         * lib/vasnprintf.c (VASNPRINTF): To calculate padding,
12353         compare end addr of generated string w/ maximum end addr.
12355 2013-08-30  Mats Erik Andersson  <gnu@gisladisker.se>  (tiny change)
12357         parse-datetime: Avoid pointer difference.
12358         * lib/parse-datetime.y (yylex): Compare pointer to end of buffer,
12359         instead of calculating difference of pointers.  This removes an
12360         annoying warning, devoid of any use.
12362 2014-08-29  Paul Eggert  <eggert@cs.ucla.edu>
12364         qsort_r: new module, for GNU-style qsort_r
12365         This works even on FreeBSD, which has an incompatible qsort_r API.
12366         * MODULES.html.sh: Add it.
12367         * doc/glibc-functions/qsort_r.texi: It's now supported.
12368         * lib/qsort.c: New file, taken from glibc with minor changes
12369         inside "#ifndef _LIBC" and with an unnecessary "#include <alloca.h>"
12370         removed.
12371         * lib/qsort_r.c: New file, compiled only on FreeBSD.
12372         * lib/stdlib.in.h (qsort_r): Declare in the usual way.
12373         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS):
12374         * modules/qsort_r, modules/qsort_r-tests: New files.
12375         * modules/stdlib (Makefile): Set up its defaults.
12376         * tests/test-qsort_r.c: New file.
12378 2014-08-08  Paul Eggert  <eggert@cs.ucla.edu>
12380         vla: new module
12381         GNU RCS can use this, mostly for documentation I expect.  See:
12382         http://lists.gnu.org/r/bug-gnulib/2014-08/msg00025.html
12383         * MODULES.html.sh: Add vla.
12384         * lib/vla.h, modules/vla: New files.
12386 2014-08-07  Daiki Ueno  <ueno@gnu.org>
12388         localename: make gl_locale_name_thread really thread-safe on Windows
12389         * lib/localename.c [WINDOWS_NATIVE && !IN_LIBINTL]: Include
12390         "glthread/lock.h".
12391         (get_lcid_lock) [WINDOWS_NATIVE]: New variable.
12392         (get_lcid) [WINDOWS_NATIVE]: Lock while looking for an LCID.
12394 2014-08-07  Paul Eggert  <eggert@cs.ucla.edu>
12396         getpass: don't assume struct termios
12397         Problem report and trivial fix by Jonas 'Sortie' Termansen in:
12398         http://lists.gnu.org/r/bug-gnulib/2014-08/msg00015.html
12399         * lib/getpass.c (getpass): Port to systems lacking struct termios.
12401         getdtablesize: fall back on sysconf (_SC_OPEN_MAX)
12402         Problem reported by Jonas 'Sortie' Termansen in:
12403         http://lists.gnu.org/r/bug-gnulib/2014-08/msg00023.html
12404         * lib/getdtablesize.c (getdtablesize) [_SC_OPEN_MAX]:
12405         Implement via sysconf for platforms that lack getdtablesize.
12407         vararrays: modernize AC_C_VARARRAYS for C11
12408         This backports a change I recently made to Autoconf.
12409         * m4/vararrays.m4 (AC_C_VARARRAYS): Define __STDC_NO_VLA__ if
12410         VLAs are not supported, as this is what C11 does.  The old macro
12411         HAVE_C_VARARRAYS is still defined if they are supported, but is
12412         now obsolescent.  Also, check for VLA bug in GCC 3.4.3.
12414 2014-08-07  Alessandro Degano  <degano@cern.ch>  (tiny change)
12416         relocatable-prog-wrapper: port gettext to OS X 10.8 + GCC 4.8.1
12417         * build-aux/install-reloc (func_create_wrapper): Also wrap
12418         strerror-override, stat, stat.
12420 2014-08-05  Paul Eggert  <eggert@cs.ucla.edu>
12422         sys_select: fix FD_ZERO problem on Solaris 10
12423         * lib/sys_select.in.h: Fix Solaris 10 bug where "#include
12424         <sys/time.h>" followed by "#include <sys/select.h>" caused FD_ZERO
12425         to expand to an expression that invoked memset without necessarily
12426         including <string.h>.  The problem was that the first include
12427         defined _SYS_TIME_H, causing the second include to short-circuit.
12428         Fix a similar problem with <sys/types.h> followed by <sys/select.h>.
12429         Also, fix what appears to be a cut-and-paste typo, by replacing
12430         _GL_SYS_SELECT_H_REDIRECT_FROM_SYS_TIME_H with
12431         _GL_SYS_SELECT_H_REDIRECT_FROM_SYS_TYPES_H.
12433         accept: document Solaris 10 type glitch
12434         * doc/posix-functions/accept.texi (accept): Mention that
12435         Solaris 10 'accept' takes void * last arg, not socklen_t *.
12437 2014-08-04  Paul Eggert  <eggert@cs.ucla.edu>
12439         extern-inline: port to FreeBSD, DragonFly
12440         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Also assume the bug
12441         is present if either __DragonFly__ or __FreeBSD__ is defined.
12442         FreeBSD problem reported by Andrey Borzenkov in:
12443         http://lists.gnu.org/r/bug-gnulib/2014-07/msg00104.html
12444         Also, worry about __APPLE__ only if __MACH__ is also defined,
12445         as this is more consistent with the rest of gnulib.
12446         (_GL_EXTERN_INLINE_STDHEADER_BUG): Rename this internal macro from
12447         _GL_EXTERN_INLINE_APPLE_BUG, since the bug is not limited to Apple.
12449 2014-08-01  Siddhesh Poyarekar  <siddhesh@redhat.com>
12451         regex: Make #if/#ifdef usage consistent for DEBUG
12452         * lib/regex_internal.c: Use "#if defined DEBUG && DEBUG" instead
12453         of the inconsistent usage of #if and #ifdef as that works with
12454         both Glibc and Gnulib's style.
12456 2014-07-31  Eric Blake  <eblake@redhat.com>
12458         openat-die: use _Noreturn markup
12459         * modules/openat-die (Depends-on): Add snippet/_Noreturn.
12460         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Mark
12461         _Noreturn.
12463 2014-07-30  Eric Blake  <eblake@redhat.com>
12465         test-open: port to cygwin, which lacks Fortify
12466         * tests/test-open.h (ALWAYS_INLINE): New macro.
12467         (__always_inline): Don't abuse internal symbol on non-glibc.
12469 2014-07-19  Eli Zaretskii  <eliz@gnu.org>
12471         localename: Enforce declarations before statements.
12472         * localename.c (gl_locale_name_thread): Declare 'lcid' before the
12473         first statement.
12475 2014-07-18  Jim Meyering  <meyering@fb.com>
12477         test-userspec: don't look up numeric user names
12478         * tests/test-userspec.c: I found a system for which getpwnam("0")
12479         returned a pointer to a non-root user's entry, and that made the
12480         test fail.
12481         (T): Prefix each numeric input with "+", to inhibit lookup.
12483 2014-07-15  Eli Zaretskii  <eliz@gnu.org>
12485         localcharset, localename: MS-Windows support for non-default locales
12486         * lib/localcharset.c (locale_charset) [WINDOWS_NATIVE]: Before
12487         falling back on the default system codepage, try extracting
12488         the codepage from what 'setlocale' returns.  This allows to
12489         take into account changes of the codeset due to non-default
12490         locale set by a previous call to 'setlocale'.
12491         * lib/localename.c (LOCALE_NAME_MAX_LENGTH) [WINDOWS_NATIVE]:
12492         Define if not already defined.
12493         (enum_locales_fn, get_lcid) [WINDOWS_NATIVE]: New functions.
12494         (gl_locale_name_thread) [WINDOWS_NATIVE]: Produce the
12495         current locale by calling 'setlocale', then converting the
12496         locale name into LCID by calling 'get_lcid'.  This allows to
12497         take into account changes in the current locale from the
12498         default one, in contrast to GetThreadLocale.
12500 2014-07-14  Daiki Ueno  <ueno@gnu.org>
12502         announce-gen: avoid failure when Digest::SHA is installed
12503         When Digest::SHA is available, Digest::SHA1 is not loaded and thus
12504         Digest::SHA1->new in print_checksums fails.
12505         * build-aux/announce-gen (digest_classes): New associative array
12506         for available message digest implementations.
12507         (print_locations): Use it.
12509 2014-07-13  Pádraig Brady  <P@draigBrady.com>
12511         gettext: revert "update macros to version 0.19"
12512         This reverts commit 9b9370ca, as it currently requires that
12513         developers of any project that explicitly uses the gettext module
12514         or implicitly uses it through the utimens-tests or
12515         futimens-tests modules, use gettext >= 0.19.
12516         However there are some stability and availablity issues with
12517         that version at present.  We can reinstate this soon, when stability
12518         is addressed and packages are more readily available.
12520 2014-07-12  Jim Meyering  <meyering@fb.com>
12522         regex: don't deref NULL upon heap allocation failure
12523         * lib/regcomp.c (parse_dup_op): Handle duplicate_tree
12524         failure in one more place.
12525         To trigger the segfault, configure grep -with-included-regex,
12526         build it, and run these commands:
12527         ( ulimit -v 300000; echo a|src/grep -E a+++++++++++++++++++++ )
12528         I discovered this while replying to a private report from
12529         Jens Schleusener about excessive memory consumption by grep
12530         when using a regular expression like the one above.
12532 2014-07-11  Paul Eggert  <eggert@cs.ucla.edu>
12534         regex: fix memory leak in compiler
12535         Fix by Andreas Schwab in:
12536         https://sourceware.org/ml/libc-alpha/2014-06/msg00503.html
12537         * lib/regcomp.c (parse_reg_exp): Deallocate partially
12538         constructed tree before returning error.
12540 2014-07-10  Assaf Gordon  <assafgordon@gmail.com>
12542         announce-gen: avoid perl warnings
12543         * build-aux/announce-gen: add two minor checks to avoid
12544         "use of uninitialized value" warnings when command-line parameters are
12545         missing.
12547 2014-07-10  Assaf Gordon  <assafgordon@gmail.com>
12549         localename: avoid -Wsuggest-attribute={const,pure} warnings
12550         * lib/localename.c (string_has): Tag internal function as pure.
12551         * lib/localename.h (gl_locale_name_default): Tag extern declaration
12552         as const when appropriate.
12554 2014-07-10  Eli Zaretskii  <eliz@gnu.org>
12556         nl_langinfo: Fix last change.
12557         * lib/nl_langinfo.c (includes): Drop redundant include.
12559 2014-07-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
12561         error: Fix -Wundef warnings in glibc
12562         * lib/error.c [_LIBC]: Define default macros for
12563         glibc.
12564         (print_errno_message) [defined HAVE_STRERROR_R || _LIBC]:
12565         Check _LIBC before STRERROR_R_CHAR_P.
12567         error: Sync from glibc master
12568         * lib/error.c [_LIBC]: Remove INTUSE usage.
12569         (error_tail): Remove unused macro ALLOCA_LIMIT.
12570         Fix potential buffer overflow.  Fix potential NULL dereference
12571         in strcmp.
12573 2014-07-09  Pavel Hrdina  <phrdina@redhat.com> (tiny change)
12575         nl_langinfo: fix build under mingw
12576         * lib/nl_langinfo.c (includes): Pick up <windows.h> for GetACP().
12578 2014-07-09  Andrew D Warshall  <warshall@99main.com>
12580         mountlist: do not classify a bind-mounted dir entry as "dummy"
12581         * m4/ls-mntd-fs.m4: Check for hasmntopt() on platforms with
12582         1-argument getmntent() (instead of assuming absence).
12584 2014-07-08  Eric Blake  <eblake@redhat.com>
12586         maint.mk: less syntax-check noise when SIGPIPE is ignored
12587         * top/maint.mk (_sc_header_without_use)
12588         (sc_require_config_h_first): Parse full list.
12590 2014-07-07  Eli Zaretskii  <eliz@gnu.org>
12591             Paul Eggert  <eggert@cs.ucla.edu>
12593         nl_langinfo: CODESET on MS-Windows and more items from localeconv
12594         * lib/langinfo.in.h (DECIMAL_POINT, THOUSANDS_SEP, GROUPING)
12595         (CURRENCY_SYMBOL, INT_CURR_SYMBOL, MON_DECIMAL_POINT)
12596         (MON_THOUSANDS_SEP, MON_GROUPING, POSITIVE_SIGN, NEGATIVE_SIGN)
12597         (FRAC_DIGITS, INT_FRAC_DIGITS, P_CS_PRECEDES, N_CS_PRECEDES)
12598         (P_SEP_BY_SPACE, N_SEP_BY_SPACE, P_SIGN_POSN, N_SIGN_POSN): Define.
12599         * lib/nl_langinfo.c: Include <locale.h> and <string.h> early.
12600         Include <stdio.h> if Microsoft Windows.
12601         Include <time.h> if !REPLACE_NL_LANGINFO.
12602         (ctype_codeset): New function, taken from rpl_nl_langinfo,
12603         and with improvements for Microsoft Windows.
12604         (rpl_nl_langinfo): Use it.
12605         (nl_langinfo) [!REPLACE_NL_LANGINFO]: Likewise.
12606         Compute the values of RADIXCHAR, THOUSEP, GROUPING, CRNCYSTR,
12607         INT_CURR_SYMBOL, MON_DECIMAL_POINT, MON_THOUSANDS_SEP,
12608         MON_GROUPING, POSITIVE_SIGN, NEGATIVE_SIGN, FRAC_DIGITS,
12609         INT_FRAC_DIGITS, P_CS_PRECEDES, N_CS_PRECEDES, P_SEP_BY_SPACE,
12610         N_SEP_BY_SPACE, P_SIGN_POSN, and N_SIGN_POSN from the
12611         corresponding values returned by 'localeconv'.  Compute the values
12612         of AM_STR, PM_STR, DAY_n, ABDAY_n, MON_n, and ABMON_n by calling
12613         'strftime' with a suitable struct tm value.
12615 2014-07-05  Paul Eggert  <eggert@cs.ucla.edu>
12617         Bruno Haible has stepped down as maintainer.
12618         See Karl Berry in:
12619         http://lists.gnu.org/r/bug-gnulib/2014-07/msg00004.html
12620         Daiki Ueno has volunteered to maintain libunistring; see:
12621         http://lists.gnu.org/r/bug-gnulib/2014-07/msg00005.html
12622         * modules/gen-uni-tables, modules/libunistring:
12623         * modules/libunistring-optional, modules/ucs4-utf16, modules/ucs4-utf8:
12624         * modules/unicase/base, modules/unicase/cased:
12625         * modules/unicase/empty-prefix-context:
12626         * modules/unicase/empty-suffix-context, modules/unicase/ignorable:
12627         * modules/unicase/locale-language, modules/unicase/special-casing:
12628         * modules/unicase/tocasefold, modules/unicase/tolower:
12629         * modules/unicase/totitle, modules/unicase/toupper:
12630         * modules/unicase/u16-casecmp, modules/unicase/u16-casecoll:
12631         * modules/unicase/u16-casefold, modules/unicase/u16-casemap:
12632         * modules/unicase/u16-casexfrm, modules/unicase/u16-ct-casefold:
12633         * modules/unicase/u16-ct-tolower, modules/unicase/u16-ct-totitle:
12634         * modules/unicase/u16-ct-toupper, modules/unicase/u16-is-cased:
12635         * modules/unicase/u16-is-casefolded, modules/unicase/u16-is-invariant:
12636         * modules/unicase/u16-is-lowercase, modules/unicase/u16-is-titlecase:
12637         * modules/unicase/u16-is-uppercase, modules/unicase/u16-prefix-context:
12638         * modules/unicase/u16-suffix-context, modules/unicase/u16-tolower:
12639         * modules/unicase/u16-totitle, modules/unicase/u16-toupper:
12640         * modules/unicase/u32-casecmp, modules/unicase/u32-casecoll:
12641         * modules/unicase/u32-casefold, modules/unicase/u32-casemap:
12642         * modules/unicase/u32-casexfrm, modules/unicase/u32-ct-casefold:
12643         * modules/unicase/u32-ct-tolower, modules/unicase/u32-ct-totitle:
12644         * modules/unicase/u32-ct-toupper, modules/unicase/u32-is-cased:
12645         * modules/unicase/u32-is-casefolded, modules/unicase/u32-is-invariant:
12646         * modules/unicase/u32-is-lowercase, modules/unicase/u32-is-titlecase:
12647         * modules/unicase/u32-is-uppercase, modules/unicase/u32-prefix-context:
12648         * modules/unicase/u32-suffix-context, modules/unicase/u32-tolower:
12649         * modules/unicase/u32-totitle, modules/unicase/u32-toupper:
12650         * modules/unicase/u8-casecmp, modules/unicase/u8-casecoll:
12651         * modules/unicase/u8-casefold, modules/unicase/u8-casemap:
12652         * modules/unicase/u8-casexfrm, modules/unicase/u8-ct-casefold:
12653         * modules/unicase/u8-ct-tolower, modules/unicase/u8-ct-totitle:
12654         * modules/unicase/u8-ct-toupper, modules/unicase/u8-is-cased:
12655         * modules/unicase/u8-is-casefolded, modules/unicase/u8-is-invariant:
12656         * modules/unicase/u8-is-lowercase, modules/unicase/u8-is-titlecase:
12657         * modules/unicase/u8-is-uppercase, modules/unicase/u8-prefix-context:
12658         * modules/unicase/u8-suffix-context, modules/unicase/u8-tolower:
12659         * modules/unicase/u8-totitle, modules/unicase/u8-toupper:
12660         * modules/unicase/ulc-casecmp, modules/unicase/ulc-casecoll:
12661         * modules/unicase/ulc-casexfrm, modules/unicodeio:
12662         * modules/uniconv/base, modules/uniconv/u16-conv-from-enc:
12663         * modules/uniconv/u16-conv-to-enc:
12664         * modules/uniconv/u16-strconv-from-enc:
12665         * modules/uniconv/u16-strconv-from-locale:
12666         * modules/uniconv/u16-strconv-to-enc:
12667         * modules/uniconv/u16-strconv-to-locale:
12668         * modules/uniconv/u32-conv-from-enc, modules/uniconv/u32-conv-to-enc:
12669         * modules/uniconv/u32-strconv-from-enc:
12670         * modules/uniconv/u32-strconv-from-locale:
12671         * modules/uniconv/u32-strconv-to-enc:
12672         * modules/uniconv/u32-strconv-to-locale:
12673         * modules/uniconv/u8-conv-from-enc, modules/uniconv/u8-conv-to-enc:
12674         * modules/uniconv/u8-strconv-from-enc:
12675         * modules/uniconv/u8-strconv-from-locale:
12676         * modules/uniconv/u8-strconv-to-enc:
12677         * modules/uniconv/u8-strconv-to-locale, modules/unictype/base:
12678         * modules/unictype/bidicategory-all:
12679         * modules/unictype/bidicategory-byname:
12680         * modules/unictype/bidicategory-name, modules/unictype/bidicategory-of:
12681         * modules/unictype/bidicategory-test, modules/unictype/bidiclass-all:
12682         * modules/unictype/bidiclass-byname:
12683         * modules/unictype/bidiclass-longname, modules/unictype/bidiclass-name:
12684         * modules/unictype/bidiclass-of, modules/unictype/bidiclass-test:
12685         * modules/unictype/block-all, modules/unictype/block-list:
12686         * modules/unictype/block-of, modules/unictype/block-test:
12687         * modules/unictype/category-C, modules/unictype/category-Cc:
12688         * modules/unictype/category-Cf, modules/unictype/category-Cn:
12689         * modules/unictype/category-Co, modules/unictype/category-Cs:
12690         * modules/unictype/category-L, modules/unictype/category-LC:
12691         * modules/unictype/category-Ll, modules/unictype/category-Lm:
12692         * modules/unictype/category-Lo, modules/unictype/category-Lt:
12693         * modules/unictype/category-Lu, modules/unictype/category-M:
12694         * modules/unictype/category-Mc, modules/unictype/category-Me:
12695         * modules/unictype/category-Mn, modules/unictype/category-N:
12696         * modules/unictype/category-Nd, modules/unictype/category-Nl:
12697         * modules/unictype/category-No, modules/unictype/category-P:
12698         * modules/unictype/category-Pc, modules/unictype/category-Pd:
12699         * modules/unictype/category-Pe, modules/unictype/category-Pf:
12700         * modules/unictype/category-Pi, modules/unictype/category-Po:
12701         * modules/unictype/category-Ps, modules/unictype/category-S:
12702         * modules/unictype/category-Sc, modules/unictype/category-Sk:
12703         * modules/unictype/category-Sm, modules/unictype/category-So:
12704         * modules/unictype/category-Z, modules/unictype/category-Zl:
12705         * modules/unictype/category-Zp, modules/unictype/category-Zs:
12706         * modules/unictype/category-all, modules/unictype/category-and:
12707         * modules/unictype/category-and-not, modules/unictype/category-byname:
12708         * modules/unictype/category-longname, modules/unictype/category-name:
12709         * modules/unictype/category-none, modules/unictype/category-of:
12710         * modules/unictype/category-or, modules/unictype/category-test:
12711         * modules/unictype/category-test-withtable:
12712         * modules/unictype/combining-class:
12713         * modules/unictype/combining-class-all:
12714         * modules/unictype/combining-class-byname:
12715         * modules/unictype/combining-class-longname:
12716         * modules/unictype/combining-class-name, modules/unictype/ctype-alnum:
12717         * modules/unictype/ctype-alpha, modules/unictype/ctype-blank:
12718         * modules/unictype/ctype-cntrl, modules/unictype/ctype-digit:
12719         * modules/unictype/ctype-graph, modules/unictype/ctype-lower:
12720         * modules/unictype/ctype-print, modules/unictype/ctype-punct:
12721         * modules/unictype/ctype-space, modules/unictype/ctype-upper:
12722         * modules/unictype/ctype-xdigit, modules/unictype/decimal-digit:
12723         * modules/unictype/digit, modules/unictype/joininggroup-all:
12724         * modules/unictype/joininggroup-byname:
12725         * modules/unictype/joininggroup-name, modules/unictype/joininggroup-of:
12726         * modules/unictype/joiningtype-all:
12727         * modules/unictype/joiningtype-byname:
12728         * modules/unictype/joiningtype-longname:
12729         * modules/unictype/joiningtype-name, modules/unictype/joiningtype-of:
12730         * modules/unictype/mirror, modules/unictype/numeric:
12731         * modules/unictype/property-all, modules/unictype/property-alphabetic:
12732         * modules/unictype/property-ascii-hex-digit:
12733         * modules/unictype/property-bidi-arabic-digit:
12734         * modules/unictype/property-bidi-arabic-right-to-left:
12735         * modules/unictype/property-bidi-block-separator:
12736         * modules/unictype/property-bidi-boundary-neutral:
12737         * modules/unictype/property-bidi-common-separator:
12738         * modules/unictype/property-bidi-control:
12739         * modules/unictype/property-bidi-embedding-or-override:
12740         * modules/unictype/property-bidi-eur-num-separator:
12741         * modules/unictype/property-bidi-eur-num-terminator:
12742         * modules/unictype/property-bidi-european-digit:
12743         * modules/unictype/property-bidi-hebrew-right-to-left:
12744         * modules/unictype/property-bidi-left-to-right:
12745         * modules/unictype/property-bidi-non-spacing-mark:
12746         * modules/unictype/property-bidi-other-neutral:
12747         * modules/unictype/property-bidi-pdf:
12748         * modules/unictype/property-bidi-segment-separator:
12749         * modules/unictype/property-bidi-whitespace:
12750         * modules/unictype/property-byname:
12751         * modules/unictype/property-case-ignorable:
12752         * modules/unictype/property-cased:
12753         * modules/unictype/property-changes-when-casefolded:
12754         * modules/unictype/property-changes-when-casemapped:
12755         * modules/unictype/property-changes-when-lowercased:
12756         * modules/unictype/property-changes-when-titlecased:
12757         * modules/unictype/property-changes-when-uppercased:
12758         * modules/unictype/property-combining:
12759         * modules/unictype/property-composite:
12760         * modules/unictype/property-currency-symbol:
12761         * modules/unictype/property-dash:
12762         * modules/unictype/property-decimal-digit:
12763         * modules/unictype/property-default-ignorable-code-point:
12764         * modules/unictype/property-deprecated:
12765         * modules/unictype/property-diacritic:
12766         * modules/unictype/property-extender:
12767         * modules/unictype/property-format-control:
12768         * modules/unictype/property-grapheme-base:
12769         * modules/unictype/property-grapheme-extend:
12770         * modules/unictype/property-grapheme-link:
12771         * modules/unictype/property-hex-digit:
12772         * modules/unictype/property-hyphen:
12773         * modules/unictype/property-id-continue:
12774         * modules/unictype/property-id-start:
12775         * modules/unictype/property-ideographic:
12776         * modules/unictype/property-ids-binary-operator:
12777         * modules/unictype/property-ids-trinary-operator:
12778         * modules/unictype/property-ignorable-control:
12779         * modules/unictype/property-iso-control:
12780         * modules/unictype/property-join-control:
12781         * modules/unictype/property-left-of-pair:
12782         * modules/unictype/property-line-separator:
12783         * modules/unictype/property-logical-order-exception:
12784         * modules/unictype/property-lowercase, modules/unictype/property-math:
12785         * modules/unictype/property-non-break:
12786         * modules/unictype/property-not-a-character:
12787         * modules/unictype/property-numeric:
12788         * modules/unictype/property-other-alphabetic:
12789         * modules/unictype/property-other-default-ignorable-code-point:
12790         * modules/unictype/property-other-grapheme-extend:
12791         * modules/unictype/property-other-id-continue:
12792         * modules/unictype/property-other-id-start:
12793         * modules/unictype/property-other-lowercase:
12794         * modules/unictype/property-other-math:
12795         * modules/unictype/property-other-uppercase:
12796         * modules/unictype/property-paired-punctuation:
12797         * modules/unictype/property-paragraph-separator:
12798         * modules/unictype/property-pattern-syntax:
12799         * modules/unictype/property-pattern-white-space:
12800         * modules/unictype/property-private-use:
12801         * modules/unictype/property-punctuation:
12802         * modules/unictype/property-quotation-mark:
12803         * modules/unictype/property-radical:
12804         * modules/unictype/property-sentence-terminal:
12805         * modules/unictype/property-soft-dotted:
12806         * modules/unictype/property-space:
12807         * modules/unictype/property-terminal-punctuation:
12808         * modules/unictype/property-test, modules/unictype/property-titlecase:
12809         * modules/unictype/property-unassigned-code-value:
12810         * modules/unictype/property-unified-ideograph:
12811         * modules/unictype/property-uppercase:
12812         * modules/unictype/property-variation-selector:
12813         * modules/unictype/property-white-space:
12814         * modules/unictype/property-xid-continue:
12815         * modules/unictype/property-xid-start:
12816         * modules/unictype/property-zero-width, modules/unictype/scripts:
12817         * modules/unictype/scripts-all, modules/unictype/syntax-c-ident:
12818         * modules/unictype/syntax-c-whitespace:
12819         * modules/unictype/syntax-java-ident:
12820         * modules/unictype/syntax-java-whitespace, modules/unigbrk/base:
12821         * modules/unigbrk/u16-grapheme-breaks:
12822         * modules/unigbrk/u16-grapheme-next, modules/unigbrk/u16-grapheme-prev:
12823         * modules/unigbrk/u32-grapheme-breaks:
12824         * modules/unigbrk/u32-grapheme-next, modules/unigbrk/u32-grapheme-prev:
12825         * modules/unigbrk/u8-grapheme-breaks, modules/unigbrk/u8-grapheme-next:
12826         * modules/unigbrk/u8-grapheme-prev, modules/unigbrk/uc-gbrk-prop:
12827         * modules/unigbrk/uc-is-grapheme-break:
12828         * modules/unigbrk/ulc-grapheme-breaks, modules/unilbrk/base:
12829         * modules/unilbrk/tables, modules/unilbrk/u16-possible-linebreaks:
12830         * modules/unilbrk/u16-width-linebreaks:
12831         * modules/unilbrk/u32-possible-linebreaks:
12832         * modules/unilbrk/u32-width-linebreaks:
12833         * modules/unilbrk/u8-possible-linebreaks:
12834         * modules/unilbrk/u8-width-linebreaks, modules/unilbrk/ulc-common:
12835         * modules/unilbrk/ulc-possible-linebreaks:
12836         * modules/unilbrk/ulc-width-linebreaks, modules/uniname/base:
12837         * modules/uniname/uniname, modules/uninorm/base:
12838         * modules/uninorm/canonical-decomposition:
12839         * modules/uninorm/compat-decomposition, modules/uninorm/composition:
12840         * modules/uninorm/decompose-internal, modules/uninorm/decomposing-form:
12841         * modules/uninorm/decomposition, modules/uninorm/decomposition-table:
12842         * modules/uninorm/filter, modules/uninorm/nfc, modules/uninorm/nfd:
12843         * modules/uninorm/nfkc, modules/uninorm/nfkd:
12844         * modules/uninorm/u16-normalize, modules/uninorm/u16-normcmp:
12845         * modules/uninorm/u16-normcoll, modules/uninorm/u16-normxfrm:
12846         * modules/uninorm/u32-normalize, modules/uninorm/u32-normcmp:
12847         * modules/uninorm/u32-normcoll, modules/uninorm/u32-normxfrm:
12848         * modules/uninorm/u8-normalize, modules/uninorm/u8-normcmp:
12849         * modules/uninorm/u8-normcoll, modules/uninorm/u8-normxfrm:
12850         * modules/unistdio/base, modules/unistdio/u-printf-args:
12851         * modules/unistdio/u16-asnprintf, modules/unistdio/u16-asprintf:
12852         * modules/unistdio/u16-printf-parse, modules/unistdio/u16-snprintf:
12853         * modules/unistdio/u16-sprintf, modules/unistdio/u16-u16-asnprintf:
12854         * modules/unistdio/u16-u16-asprintf, modules/unistdio/u16-u16-snprintf:
12855         * modules/unistdio/u16-u16-sprintf:
12856         * modules/unistdio/u16-u16-vasnprintf:
12857         * modules/unistdio/u16-u16-vasprintf:
12858         * modules/unistdio/u16-u16-vsnprintf:
12859         * modules/unistdio/u16-u16-vsprintf, modules/unistdio/u16-vasnprintf:
12860         * modules/unistdio/u16-vasprintf, modules/unistdio/u16-vsnprintf:
12861         * modules/unistdio/u16-vsprintf, modules/unistdio/u32-asnprintf:
12862         * modules/unistdio/u32-asprintf, modules/unistdio/u32-printf-parse:
12863         * modules/unistdio/u32-snprintf, modules/unistdio/u32-sprintf:
12864         * modules/unistdio/u32-u32-asnprintf:
12865         * modules/unistdio/u32-u32-asprintf, modules/unistdio/u32-u32-snprintf:
12866         * modules/unistdio/u32-u32-sprintf:
12867         * modules/unistdio/u32-u32-vasnprintf:
12868         * modules/unistdio/u32-u32-vasprintf:
12869         * modules/unistdio/u32-u32-vsnprintf:
12870         * modules/unistdio/u32-u32-vsprintf, modules/unistdio/u32-vasnprintf:
12871         * modules/unistdio/u32-vasprintf, modules/unistdio/u32-vsnprintf:
12872         * modules/unistdio/u32-vsprintf, modules/unistdio/u8-asnprintf:
12873         * modules/unistdio/u8-asprintf, modules/unistdio/u8-printf-parse:
12874         * modules/unistdio/u8-snprintf, modules/unistdio/u8-sprintf:
12875         * modules/unistdio/u8-u8-asnprintf, modules/unistdio/u8-u8-asprintf:
12876         * modules/unistdio/u8-u8-snprintf, modules/unistdio/u8-u8-sprintf:
12877         * modules/unistdio/u8-u8-vasnprintf, modules/unistdio/u8-u8-vasprintf:
12878         * modules/unistdio/u8-u8-vsnprintf, modules/unistdio/u8-u8-vsprintf:
12879         * modules/unistdio/u8-vasnprintf, modules/unistdio/u8-vasprintf:
12880         * modules/unistdio/u8-vsnprintf, modules/unistdio/u8-vsprintf:
12881         * modules/unistdio/ulc-asnprintf, modules/unistdio/ulc-asprintf:
12882         * modules/unistdio/ulc-fprintf, modules/unistdio/ulc-printf-parse:
12883         * modules/unistdio/ulc-snprintf, modules/unistdio/ulc-sprintf:
12884         * modules/unistdio/ulc-vasnprintf, modules/unistdio/ulc-vasprintf:
12885         * modules/unistdio/ulc-vfprintf, modules/unistdio/ulc-vsnprintf:
12886         * modules/unistdio/ulc-vsprintf, modules/unistr/base:
12887         * modules/unistr/u16-check, modules/unistr/u16-chr:
12888         * modules/unistr/u16-cmp, modules/unistr/u16-cmp2:
12889         * modules/unistr/u16-cpy, modules/unistr/u16-cpy-alloc:
12890         * modules/unistr/u16-endswith, modules/unistr/u16-mblen:
12891         * modules/unistr/u16-mbsnlen, modules/unistr/u16-mbtouc:
12892         * modules/unistr/u16-mbtouc-unsafe, modules/unistr/u16-mbtoucr:
12893         * modules/unistr/u16-move, modules/unistr/u16-next:
12894         * modules/unistr/u16-prev, modules/unistr/u16-set:
12895         * modules/unistr/u16-startswith, modules/unistr/u16-stpcpy:
12896         * modules/unistr/u16-stpncpy, modules/unistr/u16-strcat:
12897         * modules/unistr/u16-strchr, modules/unistr/u16-strcmp:
12898         * modules/unistr/u16-strcoll, modules/unistr/u16-strcpy:
12899         * modules/unistr/u16-strcspn, modules/unistr/u16-strdup:
12900         * modules/unistr/u16-strlen, modules/unistr/u16-strmblen:
12901         * modules/unistr/u16-strmbtouc, modules/unistr/u16-strncat:
12902         * modules/unistr/u16-strncmp, modules/unistr/u16-strncpy:
12903         * modules/unistr/u16-strnlen, modules/unistr/u16-strpbrk:
12904         * modules/unistr/u16-strrchr, modules/unistr/u16-strspn:
12905         * modules/unistr/u16-strstr, modules/unistr/u16-strtok:
12906         * modules/unistr/u16-to-u32, modules/unistr/u16-to-u8:
12907         * modules/unistr/u16-uctomb, modules/unistr/u32-check:
12908         * modules/unistr/u32-chr, modules/unistr/u32-cmp:
12909         * modules/unistr/u32-cmp2, modules/unistr/u32-cpy:
12910         * modules/unistr/u32-cpy-alloc, modules/unistr/u32-endswith:
12911         * modules/unistr/u32-mblen, modules/unistr/u32-mbsnlen:
12912         * modules/unistr/u32-mbtouc, modules/unistr/u32-mbtouc-unsafe:
12913         * modules/unistr/u32-mbtoucr, modules/unistr/u32-move:
12914         * modules/unistr/u32-next, modules/unistr/u32-prev:
12915         * modules/unistr/u32-set, modules/unistr/u32-startswith:
12916         * modules/unistr/u32-stpcpy, modules/unistr/u32-stpncpy:
12917         * modules/unistr/u32-strcat, modules/unistr/u32-strchr:
12918         * modules/unistr/u32-strcmp, modules/unistr/u32-strcoll:
12919         * modules/unistr/u32-strcpy, modules/unistr/u32-strcspn:
12920         * modules/unistr/u32-strdup, modules/unistr/u32-strlen:
12921         * modules/unistr/u32-strmblen, modules/unistr/u32-strmbtouc:
12922         * modules/unistr/u32-strncat, modules/unistr/u32-strncmp:
12923         * modules/unistr/u32-strncpy, modules/unistr/u32-strnlen:
12924         * modules/unistr/u32-strpbrk, modules/unistr/u32-strrchr:
12925         * modules/unistr/u32-strspn, modules/unistr/u32-strstr:
12926         * modules/unistr/u32-strtok, modules/unistr/u32-to-u16:
12927         * modules/unistr/u32-to-u8, modules/unistr/u32-uctomb:
12928         * modules/unistr/u8-check, modules/unistr/u8-chr:
12929         * modules/unistr/u8-cmp, modules/unistr/u8-cmp2, modules/unistr/u8-cpy:
12930         * modules/unistr/u8-cpy-alloc, modules/unistr/u8-endswith:
12931         * modules/unistr/u8-mblen, modules/unistr/u8-mbsnlen:
12932         * modules/unistr/u8-mbtouc, modules/unistr/u8-mbtouc-unsafe:
12933         * modules/unistr/u8-mbtoucr, modules/unistr/u8-move:
12934         * modules/unistr/u8-next, modules/unistr/u8-prev:
12935         * modules/unistr/u8-set, modules/unistr/u8-startswith:
12936         * modules/unistr/u8-stpcpy, modules/unistr/u8-stpncpy:
12937         * modules/unistr/u8-strcat, modules/unistr/u8-strchr:
12938         * modules/unistr/u8-strcmp, modules/unistr/u8-strcoll:
12939         * modules/unistr/u8-strcpy, modules/unistr/u8-strcspn:
12940         * modules/unistr/u8-strdup, modules/unistr/u8-strlen:
12941         * modules/unistr/u8-strmblen, modules/unistr/u8-strmbtouc:
12942         * modules/unistr/u8-strncat, modules/unistr/u8-strncmp:
12943         * modules/unistr/u8-strncpy, modules/unistr/u8-strnlen:
12944         * modules/unistr/u8-strpbrk, modules/unistr/u8-strrchr:
12945         * modules/unistr/u8-strspn, modules/unistr/u8-strstr:
12946         * modules/unistr/u8-strtok, modules/unistr/u8-to-u16:
12947         * modules/unistr/u8-to-u32, modules/unistr/u8-uctomb, modules/unitypes:
12948         * modules/uniwbrk/base, modules/uniwbrk/table:
12949         * modules/uniwbrk/u16-wordbreaks, modules/uniwbrk/u32-wordbreaks:
12950         * modules/uniwbrk/u8-wordbreaks, modules/uniwbrk/ulc-wordbreaks:
12951         * modules/uniwbrk/wordbreak-property, modules/uniwidth/base:
12952         * modules/uniwidth/u16-strwidth, modules/uniwidth/u16-width:
12953         * modules/uniwidth/u32-strwidth, modules/uniwidth/u32-width:
12954         * modules/uniwidth/u8-strwidth, modules/uniwidth/u8-width:
12955         * modules/uniwidth/width, modules/utf16-ucs4:
12956         * modules/utf16-ucs4-unsafe, modules/utf8-ucs4:
12957         * modules/utf8-ucs4-unsafe:
12958         Change maintainer from Bruno Haible to Daiki Ueno.
12959         This is my guess at the libunistring modules; please feel free
12960         to fix if I guessed incorrectly.
12961         * modules/accept4, modules/acl, modules/acos, modules/acosf:
12962         * modules/alignof, modules/amemxfrm, modules/ansi-c++-opt:
12963         * modules/areadlink, modules/array-list, modules/array-mergesort:
12964         * modules/array-oset, modules/asin, modules/asinf, modules/astrxfrm:
12965         * modules/atan, modules/atan2, modules/atan2f, modules/atanf:
12966         * modules/avltree-list, modules/avltree-oset, modules/avltreehash-list:
12967         * modules/binary-io, modules/bison-i18n, modules/btowc:
12968         * modules/c-ctype, modules/c-strcase, modules/c-strcaseeq:
12969         * modules/c-strcasestr, modules/c-strstr, modules/calloc-posix:
12970         * modules/canonicalize-lgpl, modules/careadlinkat, modules/carray-list:
12971         * modules/cbrt, modules/cbrt-ieee, modules/cbrtf, modules/cbrtf-ieee:
12972         * modules/cbrtl, modules/cbrtl-ieee, modules/ceil, modules/ceil-ieee:
12973         * modules/ceilf, modules/ceilf-ieee, modules/ceill, modules/ceill-ieee:
12974         * modules/chdir, modules/classpath, modules/clean-temp, modules/close:
12975         * modules/closedir, modules/concat-filename, modules/copy-file:
12976         * modules/copysign, modules/copysignf, modules/copysignl, modules/cos:
12977         * modules/cosf, modules/cosh, modules/coshf, modules/csharpcomp:
12978         * modules/csharpcomp-script, modules/csharpexec:
12979         * modules/csharpexec-script, modules/ctype, modules/diffseq:
12980         * modules/dprintf, modules/dprintf-posix, modules/dup:
12981         * modules/dup2-obsolete, modules/dup3, modules/duplocale:
12982         * modules/eealloc, modules/environ, modules/erf, modules/erfc:
12983         * modules/errno, modules/execute, modules/exp, modules/exp-ieee:
12984         * modules/exp2, modules/exp2-ieee, modules/exp2f, modules/exp2f-ieee:
12985         * modules/exp2l, modules/exp2l-ieee, modules/expf, modules/expf-ieee:
12986         * modules/expl, modules/expl-ieee, modules/expm1, modules/expm1-ieee:
12987         * modules/expm1f, modules/expm1f-ieee, modules/expm1l:
12988         * modules/expm1l-ieee, modules/fabs, modules/fabs-ieee, modules/fabsf:
12989         * modules/fabsf-ieee, modules/fabsl, modules/fabsl-ieee:
12990         * modules/fatal-signal, modules/fbufmode, modules/fchdir:
12991         * modules/fclose, modules/fd-hook, modules/fdopen, modules/filename:
12992         * modules/findprog, modules/findprog-lgpl, modules/floor:
12993         * modules/floor-ieee, modules/floorf, modules/floorf-ieee:
12994         * modules/floorl, modules/floorl-ieee, modules/fma, modules/fma-ieee:
12995         * modules/fmaf, modules/fmaf-ieee, modules/fmal, modules/fmal-ieee:
12996         * modules/fmod, modules/fmod-ieee, modules/fmodf, modules/fmodf-ieee:
12997         * modules/fmodl, modules/fmodl-ieee, modules/fopen, modules/fpieee:
12998         * modules/fprintf-posix, modules/fpucw, modules/fpurge:
12999         * modules/freadable, modules/freadahead, modules/freadptr:
13000         * modules/freadseek, modules/freopen, modules/frexp:
13001         * modules/frexp-ieee, modules/frexp-nolibm, modules/frexpf:
13002         * modules/frexpf-ieee, modules/frexpl, modules/frexpl-ieee:
13003         * modules/frexpl-nolibm, modules/fseek, modules/fseeko:
13004         * modules/fseterr, modules/fstat, modules/fstrcmp, modules/ftell:
13005         * modules/ftello, modules/full-read, modules/full-write:
13006         * modules/fwritable, modules/fwriteerror, modules/gcd:
13007         * modules/get-rusage-as, modules/get-rusage-data:
13008         * modules/getdtablesize, modules/getrusage, modules/gettext:
13009         * modules/gettext-h, modules/git-merge-changelog, modules/gperf:
13010         * modules/grantpt, modules/havelib, modules/host-cpu-c-abi:
13011         * modules/hostent, modules/hypot, modules/hypot-ieee, modules/hypotf:
13012         * modules/hypotf-ieee, modules/hypotl, modules/hypotl-ieee:
13013         * modules/iconv, modules/iconv-h, modules/iconv_open:
13014         * modules/iconv_open-utf, modules/idpriv-drop, modules/idpriv-droptemp:
13015         * modules/ilogb, modules/ilogbf, modules/ilogbl, modules/imaxabs:
13016         * modules/imaxdiv, modules/integer_length, modules/integer_length_l:
13017         * modules/integer_length_ll, modules/ioctl, modules/isatty:
13018         * modules/isblank, modules/isnand, modules/isnand-nolibm:
13019         * modules/isnanf, modules/isnanf-nolibm, modules/isnanl:
13020         * modules/isnanl-nolibm, modules/iswblank, modules/iswctype:
13021         * modules/j0, modules/j1, modules/javacomp, modules/javacomp-script:
13022         * modules/javaexec, modules/javaexec-script, modules/javaversion:
13023         * modules/jn, modules/langinfo, modules/ldd, modules/ldexp:
13024         * modules/ldexp-ieee, modules/ldexpf, modules/ldexpf-ieee:
13025         * modules/ldexpl, modules/ldexpl-ieee, modules/lgamma:
13026         * modules/lib-symbol-visibility, modules/libsigsegv:
13027         * modules/linked-list, modules/linkedhash-list, modules/list:
13028         * modules/localcharset, modules/locale, modules/localeconv:
13029         * modules/localename, modules/lock, modules/log, modules/log-ieee:
13030         * modules/log10, modules/log10-ieee, modules/log10f:
13031         * modules/log10f-ieee, modules/log10l, modules/log10l-ieee:
13032         * modules/log1p, modules/log1p-ieee, modules/log1pf:
13033         * modules/log1pf-ieee, modules/log1pl, modules/log1pl-ieee:
13034         * modules/log2, modules/log2-ieee, modules/log2f, modules/log2f-ieee:
13035         * modules/log2l, modules/log2l-ieee, modules/logb, modules/logb-ieee:
13036         * modules/logbf, modules/logbf-ieee, modules/logbl, modules/logbl-ieee:
13037         * modules/logf, modules/logf-ieee, modules/login_tty:
13038         * modules/logl-ieee, modules/malloc-posix, modules/malloca:
13039         * modules/mbchar, modules/mbfile, modules/mbiter, modules/mbmemcasecmp:
13040         * modules/mbmemcasecoll, modules/mbrlen, modules/mbrtowc:
13041         * modules/mbscasecmp, modules/mbscasestr, modules/mbschr:
13042         * modules/mbscspn, modules/mbsinit, modules/mbslen:
13043         * modules/mbsncasecmp, modules/mbsnlen, modules/mbsnrtowcs:
13044         * modules/mbspbrk, modules/mbspcasecmp, modules/mbsrchr:
13045         * modules/mbsrtowcs, modules/mbssep, modules/mbsspn, modules/mbsstr:
13046         * modules/mbstok_r, modules/mbswidth, modules/mbtowc, modules/mbuiter:
13047         * modules/memchr-obsolete, modules/memcmp2, modules/minmax:
13048         * modules/mkdtemp, modules/mkostemp, modules/mktime-internal:
13049         * modules/modf, modules/modf-ieee, modules/modff, modules/modff-ieee:
13050         * modules/modfl, modules/modfl-ieee, modules/msvc-inval:
13051         * modules/msvc-nothrow, modules/multiarch, modules/nextafter:
13052         * modules/nl_langinfo, modules/no-c++, modules/nocrash:
13053         * modules/nonblocking, modules/open, modules/opendir, modules/openmp:
13054         * modules/oset, modules/pclose, modules/pipe, modules/pipe-filter-gi:
13055         * modules/pipe-filter-ii, modules/pipe2, modules/poll-h:
13056         * modules/posix_spawn, modules/posix_spawn-internal:
13057         * modules/posix_spawn_file_actions_addclose:
13058         * modules/posix_spawn_file_actions_adddup2:
13059         * modules/posix_spawn_file_actions_addopen:
13060         * modules/posix_spawn_file_actions_destroy:
13061         * modules/posix_spawn_file_actions_init:
13062         * modules/posix_spawnattr_destroy, modules/posix_spawnattr_getflags:
13063         * modules/posix_spawnattr_getpgroup:
13064         * modules/posix_spawnattr_getschedparam:
13065         * modules/posix_spawnattr_getschedpolicy:
13066         * modules/posix_spawnattr_getsigdefault:
13067         * modules/posix_spawnattr_getsigmask, modules/posix_spawnattr_init:
13068         * modules/posix_spawnattr_setflags, modules/posix_spawnattr_setpgroup:
13069         * modules/posix_spawnattr_setschedparam:
13070         * modules/posix_spawnattr_setschedpolicy:
13071         * modules/posix_spawnattr_setsigdefault:
13072         * modules/posix_spawnattr_setsigmask, modules/posix_spawnp:
13073         * modules/pow, modules/powf, modules/printf-frexp:
13074         * modules/printf-frexpl, modules/printf-posix, modules/printf-safe:
13075         * modules/progname, modules/propername, modules/pselect:
13076         * modules/pthread_sigmask, modules/ptsname, modules/ptsname_r:
13077         * modules/qacl, modules/quotearg-simple, modules/raise, modules/random:
13078         * modules/rbtree-list, modules/rbtree-oset, modules/rbtreehash-list:
13079         * modules/read, modules/readdir, modules/readlink:
13080         * modules/realloc-posix, modules/regex-quote, modules/relocatable-lib:
13081         * modules/relocatable-lib-lgpl, modules/relocatable-perl:
13082         * modules/relocatable-prog, modules/relocatable-prog-wrapper:
13083         * modules/relocatable-script, modules/remainder:
13084         * modules/remainder-ieee, modules/remainderf, modules/remainderf-ieee:
13085         * modules/remainderl, modules/remainderl-ieee, modules/rewinddir:
13086         * modules/rint, modules/rint-ieee, modules/rintf, modules/rintf-ieee:
13087         * modules/rintl, modules/rintl-ieee, modules/round-ieee:
13088         * modules/roundf-ieee, modules/roundl-ieee, modules/safe-read:
13089         * modules/safe-write, modules/sched, modules/servent, modules/setenv:
13090         * modules/setlocale, modules/sh-quote, modules/shutdown:
13091         * modules/signal, modules/signbit, modules/sigpipe:
13092         * modules/sigpipe-die, modules/sigprocmask, modules/sin, modules/sinf:
13093         * modules/sinh, modules/sinhf, modules/size_max, modules/sleep:
13094         * modules/snippet/arg-nonnull, modules/snippet/c++defs:
13095         * modules/snippet/link-warning, modules/snippet/unused-parameter:
13096         * modules/snprintf, modules/snprintf-posix, modules/spawn:
13097         * modules/spawn-pipe, modules/sprintf-posix, modules/sqrt:
13098         * modules/sqrt-ieee, modules/sqrtf, modules/sqrtf-ieee:
13099         * modules/sqrtl-ieee, modules/stdalign, modules/stdarg:
13100         * modules/stdbool, modules/stpcpy, modules/stpncpy, modules/strcase:
13101         * modules/strcasestr, modules/strcasestr-simple, modules/strcspn:
13102         * modules/streq, modules/strerror_r-posix, modules/striconv:
13103         * modules/striconveh, modules/striconveha, modules/strncat:
13104         * modules/strnlen1, modules/strpbrk, modules/strtod-obsolete:
13105         * modules/sublist, modules/sys_resource, modules/sys_utsname:
13106         * modules/sys_wait, modules/system-posix, modules/system-quote:
13107         * modules/tan, modules/tanf, modules/tanh, modules/tanhf:
13108         * modules/tcgetsid, modules/termios, modules/threadlib, modules/tls:
13109         * modules/tmpdir, modules/towctrans, modules/trunc, modules/trunc-ieee:
13110         * modules/truncf, modules/truncf-ieee, modules/truncl:
13111         * modules/truncl-ieee, modules/ttyname_r, modules/uname:
13112         * modules/unlockpt, modules/unsetenv, modules/vasnprintf:
13113         * modules/vasnprintf-posix, modules/vasprintf, modules/vasprintf-posix:
13114         * modules/vdprintf, modules/vdprintf-posix, modules/vfprintf-posix:
13115         * modules/vfscanf, modules/vma-iter, modules/vprintf-posix:
13116         * modules/vscanf, modules/vsnprintf-posix, modules/vsprintf-posix:
13117         * modules/wait-process, modules/waitpid, modules/wcpcpy:
13118         * modules/wcpncpy, modules/wcrtomb, modules/wcscasecmp, modules/wcscat:
13119         * modules/wcschr, modules/wcscmp, modules/wcscoll, modules/wcscpy:
13120         * modules/wcscspn, modules/wcsdup, modules/wcslen, modules/wcsncasecmp:
13121         * modules/wcsncat, modules/wcsncmp, modules/wcsncpy, modules/wcsnlen:
13122         * modules/wcsnrtombs, modules/wcspbrk, modules/wcsrchr:
13123         * modules/wcsrtombs, modules/wcsspn, modules/wcsstr, modules/wcstok:
13124         * modules/wcswidth, modules/wcsxfrm, modules/wctob, modules/wctomb:
13125         * modules/wctrans, modules/wctype, modules/wcwidth, modules/wmemchr:
13126         * modules/wmemcmp, modules/wmemcpy, modules/wmemmove, modules/wmemset:
13127         * modules/write, modules/xconcat-filename, modules/xlist:
13128         * modules/xmalloca, modules/xoset, modules/xprintf-posix:
13129         * modules/xreadlink, modules/xsetenv, modules/xsize, modules/xstriconv:
13130         * modules/xstriconveh, modules/xsublist, modules/xvasprintf-posix:
13131         * modules/y0, modules/y1, modules/yn:
13132         Remove Bruno Haible as maintainer; if he's the sole maintainer,
13133         change the maintainer to 'all'.  Let's hope someone volunteers.
13135 2014-06-27  Paul Eggert  <eggert@cs.ucla.edu>
13137         mktime: merge #if/#ifdef usage from glibc
13138         * lib/mktime.c: Use "#if defined DEBUG && DEBUG", not "#if DEBUG",
13139         as that works with both Glibc's and Gnulib's style.
13140         See thread starting at Siddhesh Poyarekar's bug report at:
13141         http://lists.gnu.org/r/bug-gnulib/2014-06/msg00102.html
13143 2014-06-20  Alfred M. Szmidt  <ams@gnu.org>
13145         git-version-gen: improve option descriptions
13146         * build-aux/git-version-gen: Mention that --prefix and --fallback
13147         have a mandatory argument.
13149 2014-06-19  Paul Eggert  <eggert@penguin.cs.ucla.edu>
13151         regex: fix memory leak in compiler
13152         Fix by Andreas Schwab in:
13153         https://sourceware.org/ml/libc-alpha/2014-06/msg00462.html
13154         * lib/regcomp.c (parse_expression): Deallocate partially
13155         constructed tree before returning error.
13157         regex: merge patch from libc
13158         2014-02-12  Joseph Myers  <joseph@codesourcery.com>
13159         Combine __USE_BSD and __USE_SVID into __USE_MISC.
13160         * lib/regex.h [__USE_BSD]: Change condition to [__USE_MISC].
13162 2014-06-17  Paul Eggert  <eggert@cs.ucla.edu>
13164         acl: port to gcc -Wredundant-decls
13165         From a request by Dmitry Antipov in:
13166         http://lists.gnu.org/r/emacs-devel/2014-06/msg00263.html
13167         * lib/acl.h (_GL_ACL_H): New macro.  Protect entire contents with
13168         "#ifndef _GL_ACL_H".
13170 2014-06-11  Bruce Korb  <bkorb@gnu.org>
13171         Jim Meyering  <meyering@fb.com>
13173         parse-duration: eliminate 68-year duration limit
13174         * lib/parse-duration.c: Include "intprops.h".
13175         (TIME_MAX): Rename to MAX_DURATION and define to
13176         TYPE_MAXIMUM(time_t).
13177         * modules/parse-duration (Depends-on): Add intprops.
13178         Reported by Jonas 'Sortie' Termansen.
13180 2014-06-14  Paul Eggert  <eggert@cs.ucla.edu>
13182         pthread: don't assume AC_CANONICAL_HOST, port better to Solaris, etc.
13183         * modules/pthread (Depends-on): Add 'extensions', as it defines
13184         _POSIX_PTHREAD_SEMANTICS, which is needed on Solaris.
13185         (configure.ac-early): New section.
13186         * m4/pthread.m4 (gl_PTHREAD_CHECK): Revert previous change, as
13187         it is no longer needed.
13189 2014-06-14  Pádraig Brady  <P@draigBrady.com>
13191         pthread: define thread-safe macros on some platforms
13192         * m4/pthread.m4 (gl_PTHREAD_CHECK): Define macros needed
13193         for thread-safe operation on some platforms.
13195 2014-06-13  Paul Eggert  <eggert@cs.ucla.edu>
13197         regex: don't be multithreaded if USE_UNLOCKED_IO.
13198         Problem reported by Michael Felt in: http://bugs.gnu.org/17773
13199         * lib/regex_internal.h: Do not use multithreaded version if
13200         USE_UNLOCKED_IO is defined.  This is a hack, but it works
13201         around a porting bug with coreutils 8.22 on AIX 7.1.
13203 2014-06-11  Daiki Ueno  <ueno@gnu.org>
13205         gettext: update macros to version 0.19
13206         * m4/intl.m4, m4/po.m4: Update from gettext-0.19.  In particular,
13207         depend on gl_EXTERN_INLINE and drop support for older Bison
13208         versions.
13210 2014-06-10  Pádraig Brady  <P@draigBrady.com>
13212         select,poll: fix console handle check on windows 8
13213         lib/poll.c (IsConsoleHandle): Change from testing the lower
13214         2 bits of the handle to the more expensive but accurate syscall.
13215         lib/select.c: Likewise.
13217 2014-06-10  Eli Zaretskii  <eliz@gnu.org>
13219         select: fix waiting on anonymous pipes on MS-Windows
13220         * lib/select.c (rpl_select): Fall back to polling when select()
13221         indicates there is nothing to check, while due to the timeout not
13222         expiring, activity is indicated on one of the handles.
13223         Also clear the TIMEOUT argument if the timer does expire.
13225 2014-06-10  Eli Zaretskii  <eliz@gnu.org>
13227         times: fix to return non constant value on MS-Windows
13228         * lib/times.c (times): Don't use the process creation time,
13229         rather clock() which on windows returns the number of
13230         clock ticks since the process started.
13232 2014-06-09  Michael Goffioul  <michael.goffioul@gmail.com>
13234         isatty: fix to work on windows 8
13235         * lib/isatty.c (IsConsoleHandle): Change from testing the lower
13236         2 bits of the handle to the more expensive but accurate syscall.
13238 2014-06-07  Paul Eggert  <eggert@cs.ucla.edu>
13240         maint: fix typo in fdl.texi
13241         * doc/fdl.texi: Fix typo (missing '@').
13242         Somehow this was in fdl.texi but not fdl-1.3.texi.
13244 2014-06-06  Ben Walton  <bdwalton@gmail.com>
13246         mountlist: avoid hasmntopt const type warning on solaris
13247         * lib/mountlist.c: Solaris defines the OPT param of hasmntopt()
13248         with char * instead of const char *.  Passing the constant string
13249         "ignore" generates a compiler warning.  For Solaris cast MNT_IGNORE
13250         to avoid the warning.
13252 2014-06-04  Eric Blake  <eblake@redhat.com>
13254         maintainer-makefile: delete obsolete code
13255         * top/maint.mk (build_aux): Drop old code, as threatened.
13257         maintainer-makefile: avoid spurious error messages
13258         * top/maint.mk (syntax-check): Guard definition and use of
13259         $(shell) by whether Makefile is present.
13261 2014-06-03  Ben Walton  <bdwalton@gmail.com>
13263         rename: avoid unused-but-set-variable compiler warning
13264         * lib/rename.c (rpl_rename):  In the non-Win32 variant of rpl_rename,
13265         it is possible that dst_exists may be set but not used.  Mark it with
13266         the unused attribute to avoid compiler warnings.
13268 2014-06-02  Ben Walton  <bdwalton@gmail.com>
13270         rename: mark a label as potentially unused
13271         * lib/rename.c (rpl_rename): Avoid compiler warnings seen on Solaris,
13272         by marking the out label as potentially unused.
13273         * m4/gnulib-common.m4: Mention the need for the trailing ; for C++.
13275 2014-06-01  Paul Eggert  <eggert@cs.ucla.edu>
13277         gnulib-common.m4: Fix typo in _GL_UNUSED_LABEL.
13278         * m4/gnulib-common.m4 (_GL_UNUSED_LABEL): Omit trailing semicolon.
13280 2014-06-02  Ben Walton  <bdwalton@gmail.com>
13282         acl: apply pure attribute to two functions
13283         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial):
13284         Mark as "pure" as flagged by gcc 4.9 on Solaris 10.
13286 2014-06-01  Pádraig Brady  <P@draigBrady.com>
13288         gnulib-common.m4: add _GL_UNUSED_LABEL
13289         * m4/gnulib-common.m4: Add _GL_UNUSED_LABEL which is similar to
13290         _GL_UNUSED, but handles g++ < 4.5 not supporting this syntax.
13292 2014-05-31  Paul Eggert  <eggert@cs.ucla.edu>
13294         dup2, fcntl, fcntl-h: port to AIX 7.1
13295         This fixes some porting problems discovered when testing the latest
13296         grep snapshot on AIX 7.1.  I don't think if fixes any bugs
13297         in grep but it could be important for other applications.
13298         * doc/posix-functions/dup2.texi:
13299         * doc/posix-functions/fcntl.texi:
13300         * doc/posix-headers/fcntl.texi:
13301         Document AIX bugs.
13302         * lib/fcntl.in.h (O_CLOEXEC, O_NOFOLLOW, O_TTY_INIT) [_AIX]:
13303         Define to 0 if outside 'int' range.
13304         * m4/dup2.m4 (gl_FUNC_DUP2):
13305         * m4/fcntl.m4 (gl_FUNC_FCNTL):
13306         Check for getdtablesize.  If it's available, test a value just
13307         outside its range instead of testing 1000000.  When cross-compiling,
13308         guess that AIX will fail this improved test.
13310 2014-05-30  Paul Eggert  <eggert@cs.ucla.edu>
13312         printf, config.rpath: Port to FreeBSD 10.
13313         Problem reported by Tijl Coosemans in:
13314         http://lists.gnu.org/r/bug-gnulib/2014-05/msg00078.html
13315         * build-aux/config.rpath (hardcode_libdir_flag_spec)
13316         (hardcode_direct): Simplify FreeBSD configuration.
13317         (library_names_spec): Don't mishandle FreeBSD 10+.
13318         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE)
13319         (gl_PRINTF_INFINITE_LONG_DOUBLE, gl_PRINTF_DIRECTIVE_F)
13320         (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99)
13321         (gl_SNPRINTF_DIRECTIVE_N, gl_VSNPRINTF_ZEROSIZE_C99):
13322         Don't mishandle FreeBSD 10+ when cross-compiling.
13324         ftoastr: work around compiler bug in IBM xlc 12.1
13325         * lib/ftoastr.h (_GL_FLT_PREC_BOUND, _GL_DBL_PREC_BOUND)
13326         (_GL_LDBL_PREC_BOUND): Make these macros, not enums, to work
13327         around a compiler bug in IBM xlc 12.1.0.0: it complains
13328         '"ftoastr.c", line 80.37: 1506-045 (S) Undeclared identifier
13329         _GL_FLT_PREC_BOUND.'
13331 2014-05-30  Kieran Colford  <colfordk@gmail.com>
13333         valgrind-tests: fixed misleading help message
13334         * m4/valgrind-tests.m4: The help message generated by configure
13335         implied that valgrind was disabled by default, which it wasn't.
13336         Adjusted the help message using s/enable/disable/ to clarify.
13338 2014-05-30  Ulrich Weigand  <uweigand@de.ibm.com>
13340         isfinite, isinf, isnan tests: fix for little-endian PowerPC
13341         * tests/test-isfinite.c (test_isfinitel): Only manipulate the
13342         first double of a PowerPC "double double" pair.
13343         * tests/test-isinf.c (test_isinfl): Likewise.
13344         * tests/test-isnan.c (test_long_double): Likewise.
13345         * tests/test-isnanl.h (main): Likewise.
13346         * tests/test-signbit.c (test_signbitl): Likewise.
13348 2014-05-29  Paul Eggert  <eggert@cs.ucla.edu>
13350         exclude-tests: port to AIX 7.1
13351         * modules/exclude-tests (test_exclude_LDADD): Add $(LIBTHREAD).
13352         Needed on AIX 7.1 with xlc V12.1, otherwise it won't link because
13353         the regex code uses locks.
13355 2014-05-28  Paul Eggert  <eggert@cs.ucla.edu>
13357         pthread_sigmask, timer-time: use gl_THREADLIB only if needed
13358         Without this fix, Emacs would sometimes call sigprocmask instead
13359         of pthread_sigmask, which is a no-no in multithreaded applications.
13360         Problem reported by Jorgen Schaefer in <http://bugs.gnu.org/17561>.
13361         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
13362         Suppress check for pthread_sigmask working without -lpthread if
13363         the application always links with -lpthread.  Do not link with
13364         $LIBMULTITHREAD if gl_THREADLIB is not defined.
13365         * m4/timer_time.m4 (gl_TIMER_TIME):
13366         Require gl_THREADLIB only if it is defined.  Do not append
13367         $LIBMULTITHREAD to LIB_TIMER_TIME if gl_THREADLIB is not defined.
13369 2014-05-27  Sylvain Beucler  <beuc@beuc.net>.
13371         gnulib-tool: wget translations using --no-verbose rather than --quiet
13372         This allows the user to see error messages if any (--quiet hides them)
13373         * gnulib-tool: Invoke wget with --no-verbose, rather than --quiet.
13375 2014-05-27  Sylvain Beucler  <beuc@beuc.net>
13377         gnulib-tool: adjust translation wget to avoid a https redirection
13378         Context: http://translationproject.org/latest/gnulib redirects to
13379            https://translationproject.org/latest/gnulib/
13380         Rationale: if the user falls back to wget, she doesn't have rsync and
13381         is probably in a minimal build environment, where packages such as
13382         'ca-certificates' are missing as well, resulting in a failed (and
13383         difficult to detect since ignored) translation initial fetch.
13384         Consequently let's avoid https if possible, and add the missing
13385         trailing slash.  This also avoids an unnecessary 302 redirection.
13386         * gnulib-tool: Add trailing slash to gnulib URL.
13388 2014-05-22  Pádraig Brady  <P@draigBrady.com>
13390         getlogin_r-tests: check return value rather than errno
13391         * tests/test-getlogin_r.c (main): As per POSIX we should be
13392         verifying the return value from getlogin_r() rather than errno.
13394 2014-05-22  Pádraig Brady  <P@draigBrady.com>
13396         getlogin_r-tests: fix various issues in recent change
13397         * tests/test-getlogin_r.c: Include required headers that were
13398         missed in recent commit eec20b4e.
13399         Also consistently check the errno rather than the return value from
13400         getlogin_r as POSIX only specifies that non zero is returned on error.
13401         * modules/getlogin_r-tests (configure.ac): Add the check for ttyname().
13403 2014-05-21  Paul Eggert  <eggert@cs.ucla.edu>
13405         fchdir: port 'open' and 'close' redefinitions to AIX 7.1
13406         * lib/chown.c, lib/clean-temp.c, lib/copy-file.c, lib/execute.c:
13407         * lib/fsusage.c, lib/gc-gnulib.c, lib/javacomp.c, lib/mountlist.c:
13408         * lib/openat-proc.c, lib/pagealign_alloc.c, lib/progreloc.c:
13409         * lib/spawn-pipe.c:
13410         Do not #undef 'open' and 'close'.  AIX 7 does '#define open open64'
13411         and then 'int open64(const char *, int, ...);', which means the
13412         declaration for 'open' gets lost if we later '#undef open'.
13413         Discovered while building grep pretest 2.18.151-1c770 on AIX 7.1,
13414         where the compilation reported the non-fatal error "In function
13415         'openat_proc_name' ... warning: implicit declaration of function
13416         'open'".  In this case the error is relatively harmless, but in
13417         other cases it might not be so minor.
13419 2014-05-20  Paul Eggert  <eggert@cs.ucla.edu>
13421         xalloc: don't potentially generate invalid code for xmemdup calls
13422         * lib/xalloc.h (xmemdup): Do not mark with _GL_ATTRIBUTE_ALLOC, as
13423         this function can initialize the newly-allocated storage with new
13424         pointers, which means this function is not malloc-like.  See:
13425         https://gcc.gnu.org/bugzilla/show_bug.cgi?id=56955
13427 2014-05-19  Pádraig Brady  <P@draigBrady.com>
13429         getlogin_r-tests: avoid false failure under sudo/ssh etc.
13430         * tests/test-getlogin_r.c (main): Sync up with test-getlogin.c
13431         changes from commit 97249cf29 to not depend on environment variables.
13433 2014-05-18  Pádraig Brady  <P@draigBrady.com>
13435         getlogin-tests: avoid false failure under cron
13436         * tests/test-getlogin.c (main): Avoid verifying errnos from ttyname()
13437         since that's not what's under test.  Centos 6 was seen to return
13438         EINVAL for ttyname() when run from cron.
13440 2014-05-16  Jim Meyering  <meyering@fb.com>
13442         mbrtowc.m4: fix a comment typo
13443         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Fix typo s/2/-2/ in
13444         emitted documentation string.
13446 2014-05-16  Paul Eggert  <eggert@cs.ucla.edu>
13448         mbrlen, mbrtowc: fix bug with empty input
13449         * lib/mbrtowc.c (rpl_mbrtowc) [MBRTOWC_EMPTY_INPUT_BUG]: Fix the bug.
13450         * m4/mbrlen.m4 (gl_MBRLEN_EMPTY_INPUT): New macro.  It's not used,
13451         so this is mainly for documentation.
13452         * m4/mbrtowc.m4 (gl_MBRTOWC_EMPTY_INPUT): New macro.
13453         (gl_FUNC_MBRTOWC): Use it.
13454         * tests/test-mbrtowc.c (main): Test for the bug.
13456 2014-05-15  Paul Eggert  <eggert@cs.ucla.edu>
13458         doc: document mbrtowc and mbrlen problem with empty input
13459         * doc/posix-functions/mbrlen.texi (mbrlen):
13460         * doc/posix-functions/mbrtowc.texi (mbrtowc):
13461         Document portability problem when the input string is empty.  See:
13462         https://sourceware.org/bugzilla/show_bug.cgi?id=16950
13464         doc: document exec* = spawn+exit bug with non-Cygwin Windows platforms
13465         Problem reported by Eli Zaretskii in:
13466         http://lists.gnu.org/r/bug-grep/2014-05/msg00118.html
13467         * doc/posix-functions/execl.texi (execl):
13468         * doc/posix-functions/execle.texi (execle):
13469         * doc/posix-functions/execlp.texi (execlp):
13470         * doc/posix-functions/execv.texi (execv):
13471         * doc/posix-functions/execve.texi (execve):
13472         * doc/posix-functions/execvp.texi (execvp):
13473         Mention spawn+exit problem on non-Cygwin Windows platforms.
13475 2014-05-14  Guilherme de Almeida Suckevicz  <guito.linux@gmail.com>
13477         getlogin-tests: avoid false failure under sudo/ssh etc.
13478         * modules/getlogin-tests (configure.ac): Check for ttyname().
13479         * tests/test-getlogin.c (main): Don't depend on environment variables
13480         to correlate with getlogin(), since sudo and ssh etc. can tamper
13481         with the LOGNAME and USER env vars.  Instead lookup the name from
13482         the uid associated with the stdin tty.
13484 2014-05-11  Paul Eggert  <eggert@cs.ucla.edu>
13486         mbsstr, quotearg, xstrtol: pacify IRIX 6.5 cc
13487         These were found when building the latest grep snapshot on IRIX 6.5.
13488         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Break "a=b=c;" into
13489         "b=c; a=b;", since IRIX 6.5 cc complains about the former if b is
13490         never used later.
13491         * lib/quotearg.c (quoting_options_from_style):
13492         * lib/xstrtol.c (__xstrtol):
13493         Use enum instead of 0, to pacify IRIX 6.5 cc.
13495 2014-04-18  Pádraig Brady  <P@draigBrady.com>
13497         gitlog-to-changelog: revert inclusion of git-log-fix file
13498         * build-aux/git-log-fix: Delete dummy file.
13499         * modules/gitlog-to-changelog: Don't reference (overwrite)
13500         the project specific git-log-fix file.
13502 2014-04-18  Assaf Gordon  <agordon@wi.mit.edu>
13504         maint.mk: Relax the copyright check to cater for non FSF projects
13505         * top/maint.mk (sc_copyright_check): Relax the check for $PACKAGE.texi
13506         to not require the "Free" suffix after the copyright years.
13508 2014-04-18  Natanael Copa  <ncopa@alpinelinux.org>
13510         physmem: use sysinfo on linux-gnu if _SC_PHYS_PAGES unavailable
13511         * lib/physmem.c (physmem_total): Some systems like musl libc don't yet
13512         support _SC_PHYS_PAGES.  Use the linux syscall sysinfo as fallback
13513         if _SC_PHYS_PAGES or _SC_PAGESIZE fails.
13514         (physmem_available): Likewise for _SC_AVPHYS_PAGES.
13516 2014-04-18  Paul Eggert  <eggert@cs.ucla.edu>
13518         exclude: port to strict C99
13519         Strict C does not allow converting a function pointer to void *
13520         and vice versa.  Pass a pointer to a function pointer instead.
13521         * lib/exclude.c (add_exclude_file):
13522         Pass the address of the function pointer.
13523         (call_addfn): And deference the address here, to match.
13525 2014-04-17  Paul Eggert  <eggert@cs.ucla.edu>
13527         regex: do not depend on malloc-gnu
13528         * modules/regex (Depends-on): Remove malloc-gnu.
13529         It's no longer needed, because of the 2012-12-29 patch
13530         "regex: port to hosts where malloc (0) == NULL".
13531         Reported by Nathan Kennedy in:
13532         http://lists.gnu.org/r/bug-gnulib/2014-04/msg00026.html
13534 2014-04-16  Assaf Gordon  <agordon@wi.mit.edu>
13536         expl: avoid incorrect expl(small_value) on OpenBSD 5.4
13537         * m4/expl.m4 (gl_FUNC_EXPL): Add a check for this condition.
13538         * doc/posix-functions/expl.texi: Mention the workaround.
13540 2014-04-12  Paul Eggert  <eggert@cs.ucla.edu>
13542         xalloc: allow x2nrealloc (P, PN, S) where P && !*PN
13543         * lib/xalloc.h (x2nrealloc): Extend slightly, to allow the current
13544         size to be zero even when the pointer is nonnull.  This
13545         accommodates the use case where P is malloc (0) and *PN is 0 on a
13546         host where malloc (0) yields nonnull.
13548 2014-04-09  Eric Blake  <eblake@redhat.com>
13550         fts: avoid unnecessary strlen calls
13551         * lib/fts.c (_D_EXACT_NAMLEN): Restore definition when needed.
13553 2014-04-09  Paul Eggert  <eggert@cs.ucla.edu>
13555         fts: avoid unnecessary strlen calls
13556         * lib/fts.c (fts_build): Go back to using _D_EXECT_NAMLEN
13557         when that can be faster than strlen.
13559 2014-03-26  Bernhard Voelker  <mail@bernhard-voelker.de>
13561         fts: avoid unnecessary strlen calls
13562         * lib/fts.c (_D_EXACT_NAMLEN): Remove macro.
13563         (fts_build): Store the length of the dp->d_name entry in a local variable
13564         instead of calling strlen() several times via the above, removed macro.
13565         For 'rm -rf some-dir' with e.g. 1M directory entries, this speeds up the
13566         run by ~4%, yet this reduces the execution time by about a third if run
13567         via "ltrace -c rm -rf some-dir".
13569 2014-03-27  Paul Eggert  <eggert@cs.ucla.edu>
13571         obstack: Remove ancient NeXTSTEP gcc support conditional
13572         This change will ease merging with glibc.  The "#if ... __NEXT__"
13573         causes a warning with -Wundef which glibc now enables by default.
13574         Problem reported by Will Newton in
13575         <http://lists.gnu.org/r/bug-gnulib/2014-03/msg00032.html>.
13576         glibc <sys/cdefs.h> now uses __extension__ for GCC 2.8 or later,
13577         so go with that.
13578         * lib/obstack.h (__extension__):
13580 2014-03-27  Paul Eggert  <eggert@cs.ucla.edu>
13582         obstack: merge with glibc changes
13583         * lib/obstack.c, lib/obstack.h: Merge from glibc.
13584         This is mostly indenting and commentary changes.
13585         Instances of 'register' have been removed.
13587 2014-03-26  Bernhard Voelker  <mail@bernhard-voelker.de>
13589         strftime: wrap macros in "do {...} while(0)"
13590         * lib/strftime.c (DO_NUMBER): Wrap multi-statement code block of
13591         this macro in "do {...} while(0)" to prevent false use as a
13592         single statement, e.g., in an un-braced "{}" else-block.
13593         (DO_SIGNED_NUMBER, DO_TZ_OFFSET, DO_NUMBER_SPACEPAD): Likewise.
13594         (strftime_case_): Remove 'else' after 'goto' - which was the
13595         only non-fatal, un-braced use of one of the above macros.
13596         Spotted by coverity (NESTING_INDENT_MISMATCH).
13598 2014-03-26  Bernhard Voelker  <mail@bernhard-voelker.de>
13600         modechange: avoid memory leaks for invalid octal modes
13601         * lib/modechange.c (mode_compile): During the parsing of
13602         notations like +40, free the 'mc' buffer for invalid mode
13603         strings like +17777 (greater than the maximum octal mode),
13604         =18 (bad octal mode characters) or u=1 ('affected' with
13605         octal modes).
13606         Reproducer, e.g.:
13607             $ valgrind --leak-check=full chmod +17777 file
13608         Introduced via the 2012-03-09 commit, 4730c3e3, "modechange:
13609         add notations +40, 00440, etc.".
13610         Spotted by coverity (RESOURCE_LEAK).
13612 2014-03-24  Paul Eggert  <eggert@cs.ucla.edu>
13614         gitlog-to-changelog: include a dummy git-log-fix file
13615         Problem reported by Nathan Stratton Treadway in:
13616         http://lists.gnu.org/r/bug-tar/2014-03/msg00082.html
13617         * build-aux/git-log-fix: New file.
13619 2014-03-13  Jim Meyering  <meyering@fb.com>
13621         gitlog-to-changelog: also include the file, git-log-fix
13622         * modules/gitlog-to-changelog (Files): Add git-log-fix.
13623         Reported by Assaf Gordon.
13625 2014-03-06  Paul Eggert  <eggert@cs.ucla.edu>
13627         regex: port to OS X 10.8.5 en_US.UTF-8 locale
13628         This fixes a bug when ignoring case and when comparing the
13629         titlecase letter 'Lj' (U+01C8 LATIN CAPITAL LETTER L WITH SMALL
13630         LETTER J) to the corresponding uppercase letter 'LJ' (U+01C7 LATIN
13631         CAPITAL LETTER LJ).  In the OS X 10.8.5 en_US.UTF-8 locale, the
13632         titlecase letter is neither lowercase nor uppercase, but
13633         uppercasing the titlecase letter (via towupper) yields the
13634         uppercase letter, so the two letters should match when ignoring case.
13635         Problem reported by Jim Meyering in <http://debbugs.gnu.org/16911#16>.
13636         * lib/regex_internal.c (build_wcs_upper_buffer, build_upper_buffer):
13637         Don't test whether a character is lowercase before uppercasing it.
13639 2014-03-04  Kevin Cernekee  <cernekee@gmail.com>
13641         stdint, read-file: fix missing SIZE_MAX on Android (tiny change)
13642         This is basically one of the options Bruno Haible proposed in:
13643         http://lists.gnu.org/r/bug-gnulib/2012-01/msg00282.html
13644         * lib/sys_types.in.h (_GL_INCLUDING_UNISTD_H): New macro.
13645         * lib/stdint.in.h: Use it.
13646         * modules/stdint (Depends-on): Add sys_types.
13648 2014-02-26  Pádraig Brady  <P@draigBrady.com>
13650         parse-datetime: fix crash or infloop in TZ="" parsing
13651         * lib/parse-datetime.y (parse_datetime): Break out of the
13652         TZ="" parsing loop once the second significant " is found.
13653         Also skip over any subsequent whitespace to be consistent
13654         with the non TZ= case.
13655         * tests/test-parse-datetime.c: Add test cases for TZ="" parsing.
13657 2014-02-26  Paul Eggert  <eggert@cs.ucla.edu>
13659         savedir: new symbol for fast-read version
13660         * lib/savedir.h (SAVEDIR_SORT_FASTREAD): New symbol, for programs
13661         like GNU cp that want to use SAVEDIR_SORT_INODE if available,
13662         SAVEDIR_SORT_NONE otherwise.  Problem reported by Bernhard Voelker in:
13663         http://lists.gnu.org/r/coreutils/2014-02/msg00037.html
13665 2014-02-25  Paul Eggert  <eggert@penguin.cs.ucla.edu>
13667         unistd: port readlink to Mac OS X 10.3.9
13668         * lib/unistd.in.h (_GL_INCLUDING_UNISTD_H): New macro, to work
13669         around self-include problem in Mac OS X 10.3.9 when combined with
13670         readlink module.  Problem reported by Klaus Zietler in
13671         <http://bugs.gnu.org/16825>.
13673 2014-02-23  Paul Eggert  <eggert@cs.ucla.edu>
13675         diffseq: remove TOO_EXPENSIVE heuristic
13676         Problem with diffutils reported by Vincent Lefevre in
13677         <http://bugs.gnu.org/16848>.  The simplest solution is to remove
13678         the TOO_EXPENSIVE heuristic that I added to GNU diff in 1993.
13679         Although appropriate for circa-1993 hardware, these days the heuristic
13680         seems to be more trouble than it's worth.
13681         * lib/diffseq.h: Modernize citations.
13682         (struct context): Remove member too_expensive.
13683         All uses changed.
13684         (struct partition): Remove members lo_minimal, hi_minimal.
13685         All uses changed.
13686         (diag, compareseq): Remove arg find_minimal.  All uses changed.
13687         (diag): Remove the TOO_EXPENSIVE heuristic that I added back in
13688         1993 to make 'diff' run faster (but not as well) on large inputs.
13689         These days, computers are fast enough that it's typically better
13690         to run slower but more accurately.
13691         * lib/fstrcmp.c: Remove duplicate comment.
13692         * lib/fstrcmp.c (strcmp_bounded):
13693         * lib/git-merge-changelog.c (compute_differences):
13694         Adjust to diffseq.h changes.
13695         * NEWS: Document the change.
13697         savedir: simplify by using stpcpy
13698         * lib/savedir.c (direntry_t): Remove size member.  All uses removed.
13699         (streamsavedir): Use stpcpy instead.
13700         * modules/savedir (Depends-on): Add stpcpy.
13702 2014-02-21  Pádraig Brady  <P@draigBrady.com>
13704         spawn: fix link error on uclibc
13705         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): use AC_SEARCH_LIBS,
13706         to incorporate -lrt if needed (on uclibc for example).
13707         * modules/posix_spawn: Reference the substituted LIB.
13709 2014-02-21  Thomas Petazzoni  <thomas.petazzoni@free-electrons.com>  (tiny change)
13710         timer: fix uClibc detection of threading
13711         * m4/time_time.m4 (gl_TIMER_TIME): Detect whether threads are
13712         enabled in uClibc.
13714 2014-02-21  Eric Blake  <eblake@redhat.com>
13716         maintainer-makefiles: provide AC_PROG_SED for older autoconf
13717         * m4/gnulib-common.m4 (AC_PROG_SED): Copy from newer autoconf.
13719 2014-02-21  Sergey Poznyakoff  <gray@gnu.org.ua>
13721         exclude: add support for posix regexps
13723         This commit adds support for POSIX extended regular expressions
13724         and fixes a long-standing memory leak (pattern buffer was never
13725         freed).  It also implements a new interface function to read
13726         exclude patterns from a FILE, which passes an additional parameter
13727         to its callback function, thereby allowing to preserve its state
13728         between invocations.
13730         * lib/exclude.c (struct patopts): Pack regex and pattern into union.
13731         (pattern_buffer): New struct.
13732         (exclude): New member patbuf.
13733         (exclude_add_pattern_buffer): New function.
13734         (free_exclude_segment): Free regexps.
13735         (free_exclude): Free allocated pattern buffers.
13736         (exclude_patopts): New function.
13737         (file_pattern_matches): Use exclude_patopts.
13738         (add_exclude): support regexps.
13739         (add_exclude_fp): New function.
13740         (add_exclude_file): Rewrite using add_exclude_fp.
13741         (fnmatch_pattern_has_wildcards): Support posix extended regexps.
13742         * lib/exclude.h (EXCLUDE_REGEX, EXCLUDE_ALLOC): New flags.
13743         (add_exclude_fp)
13744         (add_exclude_file): Rewrite using add_exclude_fp.
13745         (fnmatch_pattern_has_wildcards): Support posix extended regexps.
13746         * lib/exclude.h (EXCLUDE_REGEX, EXCLUDE_ALLOC): New flags.
13747         (add_exclude_fp)
13748         (exclude_add_pattern_buffer): New prototypes.
13749         * modules/exclude: Depends on regex and filename.
13751 2014-02-20  Eric Blake  <eblake@redhat.com>
13753         maintainer-makefiles: use $(SED) for syntax check
13754         * modules/maintainer-makefile (configure.ac): Check for sane sed.
13755         * top/maint.mk: Change sed to $(SED).
13757 2014-02-11  Sergey Poznyakoff  <gray@gnu.org.ua>
13758             Paul Eggert  <eggert@cs.ucla.edu>
13760         savedir: add sorting arg to savedir, streamsavedir; remove fdsavedir
13761         Patch based on an idea by Dick Streefland in
13762         <https://savannah.gnu.org/patch/?7892>.
13763         * NEWS: Document this.
13764         * lib/savedir.c (NAME_SIZE_DEFAULT): Remove.
13765         (direntry_t, comparison_function): New types.
13766         (direntry_cmp_name): New function.
13767         (direntry_cmp_inode) [D_INO_IN_DIRENT]: New function.
13768         (streamsavedir, savedir): New arg OPTION.
13769         (streamsavedir): Simplify memory allocation.
13770         (fdsavedir): Remove.
13771         * lib/savedir.h (enum savedir_option): New type.
13772         (streamsavedir, savedir): New arg OPTION.
13773         (fdsavedir): Remove.
13775 2014-02-05  Paul Eggert  <eggert@cs.ucla.edu>
13777         file-type: add support for doors and other less-common file types
13778         Problem with S_ISDOOR reported by Rich Burridge.
13779         * lib/file-type.c (file_type): Do S_ISLNK early too.  Do S_TYPEIS*
13780         macros before the rest.  Add S_ISCTG, S_ISDOOR, S_ISMPB, S_ISMPC,
13781         S_ISMPX, S_ISNAM, S_ISNWK, S_ISOFD, S_ISOFL, S_ISPORT, S_ISWHT.
13783 2014-01-23  Eric Blake  <eblake@redhat.com>
13785         pthread: work around winpthread header pollution on mingw
13786         * lib/time.in.h: Move pthread workarounds...
13787         * lib/pthread.in.h: ...here.
13788         * m4/pthread.m4 (gl_PTHREAD_CHECK): Also build pthread.h when we
13789         detect macro pollution on mingw.
13790         * doc/posix-headers/pthread.texi (pthread.h): Document the problems.
13792 2014-01-22  Paul Eggert  <eggert@cs.ucla.edu>
13794         qacl: check for fchmod
13795         * m4/acl.m4 (gl_FUNC_ACL): Check for fchmod, since acl-internal.h
13796         and qset-acl.c both use HAVE_FCHMOD.
13798 2014-01-20  Paul Eggert  <eggert@cs.ucla.edu>
13800         fdopen-tests: port to Tru64
13801         * tests/test-fdopen.c (main): Don't invoke fdopen on a file
13802         descriptor that is not open, as POSIX doesn't specify the
13803         resulting behavior and the test does not work on Tru64.
13804         Problem reported by Steven M. Schweda in:
13805         http://lists.gnu.org/r/bug-gnulib/2014-01/msg00079.html
13807         stdalign: port to HP-UX compilers
13808         * lib/stdalign.in.h (_Alignas): Use __attribute__ (__aligned__ (x))
13809         if __HP_cc or __HP_aCC are nonzero.
13811 2014-01-16  Paul Eggert  <eggert@cs.ucla.edu>
13813         strtoimax: port to platforms lacking 'long long'
13814         VMS's pre-C99 compiler lacks 'long long', so 'configure' doesn't
13815         check whether strtoll is declared, which causes the C file to
13816         wrongly report an error.  Problem reported by Steven M. Schweda in:
13817         http://lists.gnu.org/r/bug-diffutils/2014-01/msg00003.html
13818         * lib/strtoimax.c (strtoull):
13819         Declare only if HAVE_UNSIGNED_LONG_LONG_INT.
13820         (strtoll): Declare only if HAVE_LONG_LONG_INT.
13822 2014-01-16  Daniel Albers  <daniel@lbe.rs>  (tiny change)
13824         relocatable-perl: fix texi syntax
13825         * doc/relocatable-maint.texi: Escape braces.
13827 2014-01-09  Reuben Thomas  <rrt@sc3d.org>
13829         relocatable-perl: like relocatable-script, but for Perl scripts
13830         * build-aux/relocatable.pl.in: Add.
13831         * doc/relocatable-maint.texi: Add documentation.
13832         * modules/relocatable-perl: Add.
13834 2014-01-07  Paul Eggert  <eggert@cs.ucla.edu>
13836         tests: fix export bug in previous patch
13837         Problem reported by Jim Meyering.
13838         * tests/init.sh (re_shell): New var, which is exported instead of
13839         re_shell_.
13841         tests: simplify porting to Solaris 10 /bin/sh
13842         Some test cases in 'grep' need a shell that groks '$(';
13843         export re_shell_ for their benefit.  Problem reported for 'grep'
13844         by Dagobert Michelsen in <http://bugs.gnu.org/16380>.
13845         * tests/init.sh (re_shell_): Export if it's used.
13847 2014-01-06  Eric Blake  <eblake@redhat.com>
13849         md5, sha1, sha256, sha512: support older autoconf
13850         * m4/00gnulib.m4 (m4_divert_push): Wrap diversion stack
13851         for autoconf < 2.63b.
13853         include_next: port to autoconf 2.63
13854         * m4/gnulib-common.m4 (AS_VAR_COPY): Define if missing.
13856 2014-01-04  Jim Meyering  <meyering@fb.com>
13858         maint: add a gnulib-local rule to keep non-ascii out of .texi files
13859         * cfg.mk (sc_keep_gnulib_texi_files_mostly_ascii): New rule,
13860         so that "make sc_maint" will ding anyone who puts non-ascii
13861         in any of gnulib's .texi files.
13863 2014-01-03  Jim Meyering  <meyering@fb.com>
13865         freadable, fwritable, fwriting: declare with the "pure" attribute
13866         * lib/freadable.h (freadable): Declare with the "pure" attribute.
13867         * lib/fwritable.h (fwritable): Likewise.
13868         * lib/fwriting.h (fwriting): Likewise.
13869         Suggested by Bruno Haible.
13871         maint.mk: adapt openat.h-include-without-use test
13872         * top/maint.mk (sc_prohibit_openat_without_use): Also check for
13873         FCHMODAT_INLINE, FCHOWNAT_INLINE and STATAT_INLINE, to avoid
13874         failing on gnulib's own lib/{chmod,chown,stat}at.c files.
13875         With this change, running "make sc_maint" in gnulib's top-level
13876         directory now passes for me.
13878 2014-01-03  Paul Eggert  <eggert@cs.ucla.edu>
13880         doc: use ASCII in .texi files where UTF-8 isn't needed
13881         * doc/posix-functions/crypt.texi, doc/posix-functions/encrypt.texi:
13882         * doc/posix-functions/setkey.texi, doc/regex.texi:
13883         Use ASCII input, not UTF-8.
13885 2014-01-02  Jim Meyering  <meyering@fb.com>
13887         freading: declare with the "pure" attribute
13888         * lib/freading.h (freading): Declare with the "pure" attribute.
13890         manywarnings: remove -Wmudflap
13891         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Remove -Wmudflap, since
13892         it is no longer supported in gcc-4.9-to-be.
13894 2014-01-01  Paul Eggert  <eggert@cs.ucla.edu>
13896         relocatable-script: remove unused code
13897         Problem reported by Reuben Thomas in:
13898         http://lists.gnu.org/r/bug-gnulib/2013-12/msg00117.html
13899         * build-aux/relocatable.sh.in (func_tmpdir): Remove unused function.
13901 2014-01-01  Jim Meyering  <meyering@fb.com>
13903         maint: fix public-submodule-commit to work with newer git
13904         * top/maint.mk (public-submodule-commit): Remove excess quoting.
13905         We were over-quoting the test arguments, and somewhere prior to
13906         version 1.8.5.2.229, git stopped removing those excess quotes,
13907         which made the test fail, since the unexpanded strings would
13908         always differ; using GIT_TRACE=1 confirmed that the git merge-base
13909         command wasn't even being run.
13911 2014-01-01  Paul Eggert  <eggert@cs.ucla.edu>
13913         doc: update main copyright year
13914         * doc/gnulib.texi: Update copyright date.
13916 2014-01-01  Eric Blake  <eblake@redhat.com>
13918         version-etc: new year
13919         * lib/version-etc.c (COPYRIGHT_YEAR): Bump to 2014.
13920         * all files: run 'make update-copyright'
13922 2013-12-24  Eric Blake  <eblake@redhat.com>
13924         passfd: give nicer error for recvfd at eof
13925         * lib/passfd.c (recvfd): Fake ENOTCONN if other end closes early.
13926         * tests/test-passfd.c (main): Enhance test to cover this.
13928 2013-12-17  Paul Eggert  <eggert@cs.ucla.edu>
13930         gettimeofday: port recent C++ fix to Emacs
13931         Without this further patch, Emacs won't build due to
13932         the portcheck failing.  Also, this simplifies the patch a bit.
13933         * lib/time.in.h (localtime, gmtime): Don't replace unless
13934         GNULIB_GETTIMEOFDAY.  Treat them more like mktime.
13935         * lib/time.in.h (localtime, gmtime):
13936         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME):
13937         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS):
13938         * modules/time (time.h):
13939         Don't worry about the possibility of localtime and gmtime
13940         being absent; they're present in all C libraries we know about.
13941         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS):
13942         Don't assume sys_time is present and has been initialized.
13943         Instead, use a hack that should work even if it hasn't been.
13944         Don't use a portcheck for gmtime or localtime; this supports
13945         the hack.
13946         * modules/time (time.h): Substitute GNULIB_GETTIMEOFDAY.
13948 2013-12-17  John W. Eaton  <jwe@gnu.org>
13950         gettimeofday: fix C++ crosscompilation
13952         Never replace gmtime and localtime by macros when compiling with
13953         C++, this prevents <ctime> from being included.
13955         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Do not
13956         define gmtime and localtime as preprocessor macros.  Instead
13957         define some HAVE_GMTIME, HAVE_LOCALTIME, REPLACE_GMTIME, and
13958         REPLACE_LOCALTIME substitutions.
13959         * lib/time.in.h: Declare gmtime and localtime when needed.
13960         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): AC_SUBST HAVE_GMTIME,
13961         HAVE_LOCALTIME, REPLACE_GMTIME, and REPLACE_LOCALTIME.
13962         * modules/time: Depend on gettimeofday, and substitute the above
13963         variables in time.h.
13965 2013-12-17  Paul Eggert  <eggert@cs.ucla.edu>
13967         qacl: port to Windows better
13968         See Eli Zaretskii in
13969         <http://lists.gnu.org/r/emacs-devel/2013-12/msg00593.html>.
13970         * lib/file-has-acl.c (acl_access_nontrivial):
13971         Return -1 and set errno if !HAVE_ACL_FIRST_ENTRY &&
13972         !HAVE_ACL_TO_SHORT_TEXT && !HAVE_ACL_FREE_TEXT.
13974 2013-12-12  Alexander V. Lukyanov  <lav@netis.ru>
13976         md5, sha1, sha256, sha512: fix (trivial) compile error in c++ mode.
13977         * lib/gl_openssl.h: Cast void pointers to a specific type.
13979 2013-12-07  Pádraig Brady  <P@draigBrady.com>
13981         open-tests: fix build failure with -Werror=old-style-declaration
13982         * tests/test-open.h: Reorder the inline to avoid the issue.
13984 2013-12-07  Pádraig Brady  <P@draigBrady.com>
13986         md5, sha1, sha256, sha512: fix link error with partial libcrypto
13987         * m4/gl-openssl.m4 (gl_CRYPTO_CHECK): Only clear LIB_CRYPTO at
13988         init time, so that if early checks find crypto routines,
13989         while the last does not, then @LIB_CRYPTO@ is replaced correctly,
13990         avoiding link failures.
13992 2013-12-07  Paul Eggert  <eggert@cs.ucla.edu>
13994         md5, sha1, sha256, sha512: add gl_SET_CRYPTO_CHECK_DEFAULT
13995         This provides a new way to specify the default for
13996         gl_CRYPTO_CHECK, one that is reflected in the --help message.
13997         Emacs uses this, as well as the old way.
13998         This attempts to implement a suggestion by Pádraig Brady in
13999         <http://lists.gnu.org/r/coreutils/2013-12/msg00080.html>.
14000         * m4/gl-openssl.m4(gl_SET_CRYPTO_CHECK_DEFAULT): New macro.
14001         (gl_CRYPTO_CHECK): Use it.  Mention the default in --help output.
14003         md5, sha1, sha256, sha512: add 'auto', and a way to specify default
14004         * m4/gl-openssl.m4 (gl_CRYPTO_CHECK):
14005         Add support for a new option, --with-openssl=auto, which causes
14006         the library to be used if available and silently ignored if not.
14007         Add support to allow configure.ac to specify its own
14008         default, by setting with_openssl_default before invoking gl_INIT.
14010 2013-12-05  Paul Eggert  <eggert@cs.ucla.edu>
14012         open-tests: port to glibc with _FORTIFY_SOURCE and -O1
14013         Problem reported by Daiki Ueno in:
14014         http://lists.gnu.org/r/bug-gnulib/2013-06/msg00052.html
14015         * tests/test-open.h (__always_inline):
14016         New macro, if not already defined.
14017         (test_open): Use it.
14019 2013-12-04  Eric Blake  <eblake@redhat.com>
14021         include_next: minimize code duplication
14022         * modules/include_next (Depends-on): Add absolute-header.
14023         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Reuse
14024         gl_ABSOLUTE_HEADER_ONE instead of open-coding it.
14026 2013-12-04  Pádraig Brady  <P@draigBrady.com>
14028         getcwd: fix compile error in configure check
14029         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Include errno.h
14031 2013-12-04  Pádraig Brady  <P@draigBrady.com>
14033         regex: suppress core dumps from detection code
14034         * m4/regex.m4 (gl_REGEX): Catch the SIGABRT and convert to SIGTERM
14035         to suppress core dumps that may well occur on glibc systems.
14036         These core dumps might not be cleaned up automatically, or could
14037         trigger some system core dump handling logic.
14039 2013-12-03  Pádraig Brady  <P@draigBrady.com>
14041         md5, sha1, sha256, sha512: support mandating use of openssl
14042         * m4/gl-openssl.m4 (gl_crypto_check): Adjust the --with-openssl
14043         description, to list the now 3 separate options.  also don't
14044         mention the default=no, since this is implicit given the option
14045         is described as --with-openssl rather than --without-openssl.
14046         If projects change the default they're free to document that.
14047         with --with-openssl[=yes] we now error out when the specified
14048         hash algorithm is not available in libcrypto.
14050 2013-12-03  Ivailo  <xakepa10@gmail.com>
14052         test-xvasprintf: (trivial) fix to disable some -Wformat-security diags
14053         * tests/test-xvasprintf.c: Disable -Wformat-zero-length and
14054         -Wformat-nonliteral checks, as these edge cases are part of the test.
14056 2013-12-03  Eric Blake  <eblake@redhat.com>
14058         regex: avoid glibc deadlock during configure
14059         * m4/regex.m4 (gl_REGEX): Avoid recursive malloc deadlock when
14060         glibc bug 15078 in turn triggers bug 16159.
14061         Reported by Michal Privoznik.
14063 2013-12-02  Pádraig Brady  <P@draigBrady.com>
14065         md5, sha1, sha256, sha512: use openssl routines if available.
14066         --with-openssl the libcrypto md5, sha1, sha224, sha256, sha384, sha256
14067         routines will be used if available, requiring apps to link @LIB_CRYPTO@
14068         * lib/gl_openssl.h: Provide wrappers for specified openssl hash.
14069         * m4/gl-openssl.m4 (gl_CRYPTO_CHECK): New function to lookup libcrypto
14070         in the standard system location.
14071         * m4/sha1.m4: Call gl_CRYPTO_CHECK() for SHA1.
14072         * m4/sha256.m4: Likewise with SHA256.
14073         * m4/sha512.m4: Likewise with SHA512.
14074         * m4/md5.m4: Likewise with MD5.
14075         * m4/gc.m4: Ensure @LIB_CRYPTO@ set for tests.
14076         * lib/sha1.h: Include wrappers if HAVE_OPENSSL_SHA1.
14077         * lib/sha256.h: Likewise with SHA256.
14078         * lib/sha512.h: Likewise with SHA512.
14079         * lib/md5.h: Likewise with MD5.
14080         * lib/sha1.c: Exlude functionality if HAVE_OPENSSL_SHA1.
14081         * lib/sha256.c: Likewise with SHA256.
14082         * lib/sha512.c: Likewise with SHA512.
14083         * lib/md5.c: Likewise with MD5.
14084         * modules/crypto/sha1 (Link:): Add the new optional lib.
14085         (Depends-on:): Add dependency on extern-inline.
14086         * modules/crypto/sha256: Likewise.
14087         * modules/crypto/sha512: Likewise.
14088         * modules/crypto/md5: Likewise.
14089         * modules/crypto/sha1-tests: Reference the lib here too.
14090         * modules/crypto/md5-tests: Likewise.
14091         * modules/crypto/gc-des-tests: Likewise.
14092         * modules/crypto/gc-hmac-md5-tests: Likewise.
14093         * modules/crypto/gc-hmac-sha1-tests: Likewise.
14094         * modules/crypto/gc-hmac-sha256-tests: Likewise.
14095         * modules/crypto/gc-hmac-sha512-tests: Likewise.
14096         * modules/crypto/gc-md5-tests: Likewise.
14097         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
14098         * modules/crypto/gc-sha1-tests: Likewise.
14099         * modules/crypto/gc-tests: Likewise.
14100         * modules/crypto/hmac-md5-tests: Likewise.
14101         * modules/crypto/hmac-sha1-tests: Likewise.
14102         * modules/crypto/hmac-sha256-tests: Likewise.
14103         * modules/crypto/hmac-sha512-tests: Likewise.
14105 2013-11-29  RV1971  <rv1971@web.de>
14107         base64: (trivial) fix compilation regression on some compilers
14108         * lib/base64.c: Don't return the void function,
14109         instead split to a separate return statement.
14111 2013-11-28  Paul Eggert  <eggert@cs.ucla.edu>
14113         ignore-value: revert previous code change
14114         * lib/ignore-value.h (ignore_value): Use __extension__ and
14115         __typeof__ only for GCC 3.4 and later.  Reported by Eric Blake in
14116         <http://lists.gnu.org/r/bug-gnulib/2013-11/msg00102.html>.
14117         Change the comment to try to explain this better.
14119 2013-11-27  Pádraig Brady  <P@draigBrady.com>
14121         selinux-h: improve stub types and add more stub functions
14123         * lib/se-selinux.in.h: Change security_context_t to a typedef
14124         rather than a define, as it's a pointer type and so is better
14125         as a typedef to avoid issues declaring multiple variables
14126         with the comma operator.  Also add stub for string_to_security_class().
14127         * lib/se-context.in.h: Add stub functions for
14128         context_{type,range,role,user}_get().
14130 2013-11-27  Paul Eggert  <eggert@cs.ucla.edu>
14132         ignore-value: prefer GCC version back through 2.0
14133         The code didn't match the comments, so I did a bit of software
14134         archaeology.  GCC 2.0 seems to support __extension__ and
14135         __typeof__, so fix both code and comments to use 2.0.
14136         * lib/ignore-value.h (ignore_value): Use __extension__ and
14137         __typeof__ for GCC 2.0 through 3.3, too.
14139 2013-11-25  Mats Erik Andersson  <gnu@gisladisker.se>
14141         pty: Activate the signature wrapper of forkpty.
14142         The intended preprocessor macro HAVE_FORKPTY is
14143         never defined, yet `lib/forkpty.c' depends on it.
14145         * m4/pty.m4 (gl_FUNC_FORKPTY): At completed analysis,
14146         apply AC_DEFINE_UNQUOTED to HAVE_FORKPTY with value
14147         $HAVE_FORKPTY for access to wrapper in `lib/forkpty.c'.
14149 2013-11-18  Jim Meyering  <meyering@fb.com>
14150         and Paul Eggert  <eggert@cs.ucla.edu>
14152         quotearg: don't attempt to store 1 << 31 into an "int"
14153         * lib/quotearg.c (quotearg_buffer_restyled): Building coreutils with
14154         gcc's new -fsanitize=undefined and running its tests triggered some
14155         new test failures due to undefined behavior, all with this diagnostic:
14156           lib/quotearg.c:629:62: runtime error: left shift of 1 by 31 places \
14157             cannot be represented in type int
14158         Rather than shifting "1" left to form a mask, shift the bits right and
14159         simply use "1" as the mask.
14161 2013-11-21  Paul Eggert  <eggert@cs.ucla.edu>
14163         error: depend on stdio
14164         Problem reported by Nikos Mavrogiannopoulos in
14165         <http://lists.gnu.org/r/bug-gnulib/2013-11/msg00084.html>
14166         * modules/error (Depends-on): Add stdio.
14168 2013-11-18  Ben Pfaff  <blp@cs.stanford.edu>
14170         * doc/relocatable-maint.texi (Supporting Relocation): Improve
14171         wording.
14172         Reported by Reuben Thomas <rrt@sc3d.org>.
14174 2013-11-13  Paul Eggert  <eggert@cs.ucla.edu>
14176         * lib/getgroups.c (posix_getgroups, getgroups) [__APPLE__]:
14177         New function and macro, to work around _DARWIN_C_SOURCE problem.
14178         Reported by Jack Howarth in <http://bugs.gnu.org/14463>.
14180 2013-11-11  Pádraig Brady  <P@draigBrady.com>
14182         base64: provide a fast path for encoding well sized buffers
14183         Avoid conditionals in the base64 encoding loop,
14184         which was seen to give 60% better throughput.
14185         * lib/base64.c (base64_encode_fast): A new function to be called
14186         when we don't want to NUL terminate, and we have enough space
14187         in the output to encode the given input.
14188         (base64_encode): Call the _fast() version when appropriate.
14189         Also remove a redundant mask with 0x3F on the first encoded byte.
14191 2013-11-08  Paul Eggert  <eggert@cs.ucla.edu>
14193         extern-inline: port better to OS X 10.9
14194         * m4/extern-inline.m4: Omit serial number; this file doesn't use them.
14195         (gl_EXTERN_INLINE): Do not suppress the use of extern inline on
14196         OS X 10.9, except for g++ where the bug is still present.
14197         See <http://trac.macports.org/ticket/41033>.
14199 2013-11-08  Eric Blake  <eblake@redhat.com>
14201         fpending: fix regression on DragonFly BSD
14202         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for declaration.
14203         * lib/fpending.h (__fpending): Don't declare twice.
14204         Reported by GW in
14205         <https://lists.gnu.org/r/bug-m4/2013-11/msg00000.html>
14207 2013-11-05  Jim Meyering  <meyering@fb.com>
14209         hash: relax license to LGPLv2+, for libguestfs
14210         * modules/hash (License): Change from GPL to LGPLv2+.
14212 2013-11-03  Paul Eggert  <eggert@cs.ucla.edu>
14214         intprops: port to Oracle Studio c99
14215         * lib/intprops.h (_GL_HAVE___TYPEOF__) [__SUNPRO_C && __STDC__]:
14216         Define to 0, to avoid diagnostics when Oracle Studio is pedantic.
14218 2013-10-31  Paul Eggert  <eggert@cs.ucla.edu>
14220         obstack: pacify HP C
14221         * lib/obstack.h (obstack_free) [!__GNUC__]: Rewrite to avoid
14222         warning "conversion from pointer to smaller integer" from HP
14223         C-ANSI-C - cc version B9007AA/B3910B A.06.26.  It's safe to assume
14224         C89 or later nowadays, so cast to void instead of int.  Privately
14225         reported by H.Merijn Brand.  Also, change header to match glibc's,
14226         to make checking against glibc easier.
14228 2013-10-29  Jim Meyering  <meyering@fb.com>
14230         maint.mk: prefer gpgv2 over gpgv
14231         * top/maint.mk (gpgv): Use gpgv2 if present, else gpgv.
14232         (gpg_key_ID): Use $(gpgv), rather than hard-coding "gpgv".
14233         Reported by Gary Vaughan.
14235 2013-10-30  Paul Eggert  <eggert@cs.ucla.edu>
14237         isnan: port to VAX
14238         Reported by John Klos for NetBSD-5/VAX in
14239         <http://lists.gnu.org/r/bug-gnulib/2013-10/msg00133.html>.
14240         * lib/isnan.c (IEEE_FLOATING_POINT): New macro, stolen from Emacs.
14241         (FUNC): Use it.
14243 2013-10-28  Jim Meyering  <meyering@fb.com>
14245         gnulib-tool: protect against CDPATH
14246         * gnulib-tool: Many "cd" built-in functions print a directory name
14247         to stdout when CDPATH is set, e.g.,
14248           $ bash -c 'CDPATH=/; cd tmp'
14249           /tmp
14250         Unset it, when possible.  Prompted by a comment from Bruce Korb.
14252         maint.mk: restore functionality removed by recent change...
14253         Sunday's change, v0.0-8062-g6b24f60, may have appeared correct from
14254         the context of a shallow-cloned gnulib repository: "git describe"
14255         would fail in such a directory.  However, that change made it so
14256         the reported gnulib revision no longer includes the version number
14257         or a commit count, even when run from a full clone.
14258         * top/maint.mk (gnulib-version): Use the full "git describe"
14259         output when possible, e.g., the form above, rather than the
14260         abbreviated, no-tag, no-commit-count string, and fall back to
14261         using a 10-byte hash, rather than the default minimal-length
14262         hash prefix, since while the minimal-length one may be fine today,
14263         it is likely not to be unique for very long.
14265 2013-10-26  Jim Meyering  <meyering@fb.com>
14267         maint.mk: fix "release" target to build _version
14268         This fixes a bug in README-release whereby following the outlined
14269         steps, one would publish a tarball whose programs would report
14270         --version output not consistent with the package version number.
14271         This bug caused grep-2.15 to produce a grep program whose
14272         --version option made it print 2.14.56-1e3d rather than 2.15.
14273         * top/maint.mk (release): Making this target build "_version"
14274         ensures that the new version number is reflected in configure.
14276 2013-10-21  Ben Pfaff  <blp@cs.stanford.edu>
14278         install-reloc: Support multi-binary installation.
14279         * build-aux/install-reloc: Support installing multiple programs in
14280         one invocation, as done by Automake starting with commit
14281         4295fe33eb23f (Multi-file install for PROGRAMS.).  From Bruno
14282         Haible <bruno@clisp.org>, archived at
14283         http://lists.debian.org/debian-bsd/2012/05/msg00032.html.
14284         Reported by Sylvain <beuc@gnu.org>.
14286 2013-10-21  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
14288         selinux-h: Really build without selinux when library is missing.
14289         * m4/selinux-selinux-h.m4: When the selinux library is missing, really
14290         continue without selinux, as already told in the warning message.
14292 2013-10-21  Jim Meyering  <meyering@fb.com>
14294         regex: also remove dependency on HAVE_WCSCOLL
14295         * lib/regex_internal.h: Remove final vestige of the wcscoll dependency.
14297 2013-10-21  Reuben Thomas  <rrt@sc3d.org>
14299         xfreopen: Fix typo. s/frepoen/freopen/
14300         * lib/xfreopen.c: Fix description.
14301         * modules/xfreopen: Likewise.
14303 2013-10-21  Jim Meyering  <meyering@fb.com>
14305         regex: don't depend on wcscoll
14306         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wcscoll.
14307         It is no longer used.
14309 2013-10-20  Jim Meyering  <meyering@fb.com>
14311         error: add the printf attribute to a static function
14312         * lib/error.c (error_tail): Add the printf attribute, to placate
14313         gcc's -Werror=suggest-attribute=format option.
14315 2013-09-30  Jim Meyering  <meyering@fb.com>
14317         fpending, obstack, strerror-override: use pure+const function attrs
14318         * lib/fpending.h (__fpending): Declare with the "pure" attribute.
14319         * lib/obstack.c (_obstack_allocated_p): Likewise.
14320         * lib/obstack.h (_obstack_memory_used): Likewise.
14321         (_obstack_memory_used): Likewise.
14322         * lib/strerror-override.h (strerror_override): Declare with
14323         the "const" attribute.
14325 2013-10-18  Eric Blake  <eblake@redhat.com>
14327         extern-inline: make safe for -Wundef usage
14328         Reported by Vladimir 'phcoder' Serbinenko in
14329         https://lists.gnu.org/r/bug-gnulib/2013-10/msg00078.html
14330         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Port to older gcc.
14332 2013-10-16  Paul Eggert  <eggert@cs.ucla.edu>
14334         mkfifo-tests, etc.: allow HP-UX 11.11 bug
14335         Problem reported by Daniel Richard G. in
14336         <http://lists.gnu.org/r/bug-gnulib/2013-10/msg00068.html>.
14337         * doc/posix-functions/mkfifo.texi (mkfifo):
14338         * doc/posix-functions/mkfifoat.texi (mkfifoat):
14339         * doc/posix-functions/mknod.texi (mknod):
14340         * doc/posix-functions/mknodat.texi (mknodat):
14341         Document the HP-UX 11.11 bug.
14342         * tests/test-mkfifo.h (test_mkfifo):
14343         Allow the HP-UX 11.11 bug.
14345 2013-10-14  Paul Eggert  <eggert@cs.ucla.edu>
14347         acl: allow cross-compilation to Gentoo
14348         Problem reported by Gabriel Marcano in
14349         <http://lists.gnu.org/r/bug-gnulib/2013-10/msg00058.html>.
14350         * m4/acl.m4 (gl_ACL_GET_FILE): When cross-compiling,
14351         test only whether it links.
14353 2013-10-13  Paul Eggert  <eggert@cs.ucla.edu>
14355         mgetgroups: remove dependency on realloc-gnu
14356         The dependency violates the comment in realloc-gnu, which
14357         says that tests can't depend on realloc-gnu; some tests depend
14358         on mgetgroups, so mgetgroups can't depend on realloc-gnu.
14359         Problem reported by Daniel Richard G. in
14360         <http://lists.gnu.org/r/bug-gnulib/2013-10/msg00056.html>.
14361         * lib/mgetgroups.c (mgetgroups): Don't call realloc (NULL, 0).
14362         * modules/mgetgroups (Depends-on): Depend on realloc-posix,
14363         not realloc-gnu.
14365 2013-10-12  Paul Eggert  <eggert@cs.ucla.edu>
14367         regex-tests: port to HP-UX 11.11
14368         Problem reported by Daniel Richard G. in
14369         <http://lists.gnu.org/r/bug-gnulib/2013-10/msg00052.html>.
14370         * modules/regex-tests (test_regex_LDADD): Add LIBTHREAD, LIB_PTHREAD.
14372 2013-10-10  Paul Eggert  <eggert@cs.ucla.edu>
14374         verify: document some 'assume' pitfalls
14375         * doc/verify.texi (Compile-time Assertions):
14376         Mention that 'assume (E)' can sometimes slow things down.
14377         Use CHAR_MAX + 1, not UCHAR_MAX + 1.
14379 2013-10-10  Eric Blake  <eblake@redhat.com>
14381         strtoumax: fix typo in previous commit.
14382         * modules/strtoumax (Depends-on): Fix typo.
14383         * modules/strtoimax (Depends-on): Likewise.
14385 2013-10-10  Paul Eggert  <eggert@cs.ucla.edu>
14387         strtoumax: port to Solaris 8
14388         This problem was introduced in the recent HP-UX patch.
14389         Reported by Tom G. Christensen in
14390         <http://lists.gnu.org/r/bug-gnulib/2013-10/msg00037.html>.
14391         * modules/strtoumax (Depends-on): Test HAVE_STRTOUMAX
14392         and REPLACE_STRTOUMAX rather than ac_cv_func_strtoumax.
14394 2013-10-09  Paul Eggert  <eggert@cs.ucla.edu>
14396         strtoimax, strtoumax: port to HP-UX 11.11
14397         Problem reported by Daniel Richard G. in
14398         <http://lists.gnu.org/r/bug-gnulib/2013-10/msg00023.html>.
14399         * lib/inttypes.in.h (strtoumax): Replace strtoumax if
14400         REPLACE_STRTOUMAX, thus treating it consistently with strtoimax.
14401         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Add default for
14402         REPLACE_STRTOUMAX.
14403         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX):
14404         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX):
14405         Replace the function if defined as a macro but not as a function.
14406         * modules/inttypes-incomplete (inttypes.h): Substitute
14407         REPLACE_STRTOUMAX.
14408         * modules/strtoumax (configure.ac): Replace strtoumax if
14409         REPLACE_STRTOUMAX.
14411 2013-10-08  Paul Eggert  <eggert@cs.ucla.edu>
14413         strtoimax: port to HP-UX 11.11
14414         Problem reported by Daniel Richard G.
14415         * lib/strtoimax.c (Strtoimax, Strtol, Strtoll): New macros.
14416         (strtoimax, strtol, strtoll) [UNSIGNED]: Remove, since
14417         they might clash with inttypes.h.
14419 2013-10-06  Paul Eggert  <eggert@cs.ucla.edu>
14421         New module 'count-trailing-zeros'.
14422         * MODULES.html.sh: Mention it.
14423         * lib/count-trailing-zeros.c, lib/count-trailing-zeros.h:
14424         * m4/count-trailing-zeros.m4, modules/count-trailing-zeros:
14425         * modules/count-trailing-zeros-tests:
14426         * tests/test-count-trailing-zeros.c:
14427         New files.
14429         count-leading-zeros: port to MSC; support types wider than 64 bits
14430         The ideas behind the MSC port are stolen from Emacs.
14431         * lib/count-leading-zeros.h:
14432         Don't include verify.h: it's no longer needed, as types wider than
14433         64 bits are now supported.
14434         (COUNT_LEADING_ZEROS): New arg MSC_BUILTIN, for better
14435         performance with MSC.  All uses changed.  Do not assume that TYPE
14436         has at most 64 bits.
14437         (count_leading_zeros_32): Assume 0 < X < 2**32, for speed.
14438         All uses changed.  Fold the subtraction from 31 into the table.
14440         count-one-bits: port to MSC; support types wider than 64 bits
14441         The ideas behind the MSC port are stolen from Emacs.
14442         * lib/count-one-bits.c (popcount_support) [_MSC_VER]: New variable.
14443         * lib/count-one-bits.h: Include limits.h, for CHAR_BIT.
14444         Don't include verify.h: it's no longer needed, as types wider than
14445         64 bits are now supported.
14446         (COUNT_ONE_BITS_GENERIC): New macro.
14447         (popcount_supported) [_MSC_VER]: New inline function.
14448         (COUNT_ONE_BITS): Use it.  New arg MSC_BUILTIN, for better
14449         performance with MSC.  All uses changed.  Do not assume that TYPE
14450         has at most 64 bits.
14451         * modules/count-one-bits (Depends-on): Do not depend on 'verify'.
14453 2013-10-06  Andrew Borodin  <aborodin@vmail.ru>
14455         mountlist: fix resource leak with MOUNTED_INTERIX_STATVFS
14456         * lib/mountlist.c (read_file_system_list): fix leak of directory
14457         streams in case of #ifdef MOUNTED_INTERIX_STATVFS.
14459 2013-10-06  Paul Eggert  <eggert@cs.ucla.edu>
14461         tests: improve diagnostic when an assertion fails
14462         * tests/macros.h (ASSERT): Report the assertion that failed.
14464 2013-10-02  Paul Eggert  <eggert@cs.ucla.edu>
14466         verify: new macro 'assume'
14467         This is taken from Emacs, and should be generally useful.
14468         * doc/verify.texi (assume): Document it.
14469         * lib/verify.h (assume): New macro.
14470         (__has_builtin): Expand to 0 if not defined.
14472 2013-09-26  Eric Blake  <eblake@redhat.com>
14474         dup2, dup3: work around another cygwin crasher
14475         * m4/dup2.m4 (gl_FUNC_DUP2): Expose the bug.
14476         * m4/dup3.m4 (gl_FUNC_DUP3): Likewise.
14477         * tests/test-dup2.c (main): Likewise.
14478         * lib/dup2.c (rpl_dup2): Use setdtablesize to avoid it.
14479         * lib/dup3.c (dup3): Likewise.
14480         * doc/posix-functions/dup2.texi (dup2): Document it.
14481         * doc/glibc-functions/dup3.texi (dup3): Likewise.
14483         getdtablesize: work around cygwin issue
14484         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Detect problem.
14485         * modules/getdtablesize (configure.ac): Build replacement.
14486         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set up a witness.
14487         * modules/unistd (Makefile.am): Expose the witness.
14488         * lib/unistd.in.h (getdtablesize): Declare replacement.
14489         * lib/getdtablesize.c (rpl_getdtablesize): Work around it.
14490         * tests/test-getdtablesize.c (main): Test it.
14491         * doc/glibc-functions/getdtablesize.texi (getdtablesize): Document it.
14493 2013-09-25  Mats Erik Andersson  <gnu@gisladisker.se>
14495         pmccabe2html: escaping of special characters
14496         Escape all '<', '>', and '&' in HTML output.
14497         * build-aux/pmccabe2html (html_fnc): Call gsub()
14498         instead of sub() to capture all '<', '>', and '&'.
14499         Neither of '<' and '>' is special in a regexp,
14500         so first arguments to gsub() are corrected. Also,
14501         in replacement strings, ampersand must be escaped.
14502         Finally, '&' must be handled first, then '<' and '>'.
14504 2013-09-24  Eric Blake  <eblake@redhat.com>
14506         manywarnings: enable nicer gcc warning messages
14507         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Older gcc requires
14508         some -f options for optimal warnings.
14510 2013-09-21  Jim Meyering  <meyering@fb.com>
14512         timespec: use the new TIMESPEC_RESOLUTION in a few more places
14513         * lib/timespec-add.c (timespec_add): Also replace 999999999
14514         with TIMESPEC_RESOLUTION - 1.
14515         * lib/timespec-sub.c (timespec_sub): Likewise.
14517 2013-09-23  Paul Eggert  <eggert@cs.ucla.edu>
14519         warnings: port --enable-gcc-warnings to Solaris Studio 12.3
14520         Problem reported by Dagobert Michelsen via Eric Blake in
14521         <http://lists.gnu.org/r/bug-gnulib/2013-09/msg00052.html>.
14522         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): Use AC_LINK_IFELSE,
14523         not AC_COMPILE_IFELSE.
14525 2013-09-23  Eric Blake  <eblake@redhat.com>
14527         configmake: support new --runstatedir option
14528         * m4/configmake.m4 (gl_CONFIGMAKE_PREP): Substitute runstatedir
14529         even if autoconf was too old to provide the command line option.
14530         * modules/configmake (Makefile.am): Propagate it to .h file.
14532 2013-09-22  Paul Eggert  <eggert@cs.ucla.edu>
14534         ctype, string: depend on extern-inline
14535         This is needed to complete the recent OS X fixes.
14536         Also, fix related documentation as suggested by Eric Blake.
14537         * doc/posix-functions/isalnum.texi, doc/posix-functions/isalpha.texi:
14538         * doc/posix-functions/isascii.texi, doc/posix-functions/iscntrl.texi:
14539         * doc/posix-functions/isdigit.texi, doc/posix-functions/isgraph.texi:
14540         * doc/posix-functions/islower.texi, doc/posix-functions/isprint.texi:
14541         * doc/posix-functions/ispunct.texi, doc/posix-functions/isspace.texi:
14542         * doc/posix-functions/isupper.texi, doc/posix-functions/isxdigit.texi:
14543         * doc/posix-functions/toascii.texi, doc/posix-functions/tolower.texi:
14544         * doc/posix-functions/toupper.texi:
14545         List the 'ctype' gnulib module.
14546         * doc/posix-functions/strcat.texi, doc/posix-functions/strcpy.texi:
14547         * doc/posix-functions/strncpy.texi:
14548         List the 'string' gnulib module.
14549         * modules/memcpy, modules/memmove, modules/memset (Depends-on):
14550         Add string.
14551         * modules/ctype, modules/string (Depends-on): Add extern-inline.
14553 2013-09-19  Pádraig Brady  <P@draigBrady.com>
14555         userspec: support optional parameters to parse_user_spec()
14556         * lib/userspec.c (parse_user_spec): If the GID param is NULL,
14557         then avoid group processing and treat the full spec as a user.
14558         (parse_with_separator): Allow the USERNAME and GROUPNAME to
14559         be optional params (NULL), in which case they're ignored.
14561 2013-09-19  Paul Eggert  <eggert@cs.ucla.edu>
14563         timespec: new function make_timespec, and new constants
14564         * lib/timespec.h: Incorporate recent changes on the Emacs trunk.
14565         (TIMESPEC_RESOLUTION, LOG10_TIMESPEC_RESOLUTION): New constants.
14566         (make_timespec): New function.
14567         * lib/dtotimespec.c (dtotimespec):
14568         * lib/timespec-add.c (timespec_add):
14569         * lib/timespec-sub.c (timespec_sub):
14570         * lib/utimens.c (validate_timespec):
14571         * lib/utimensat.c (rpl_utimensat):
14572         Use these new constants and functions.
14574         stdio: OS X port of putc_unlocked + extern inline
14575         * lib/stdio.in.h (putc_unlocked): #undef on problematic Apple platforms.
14576         * doc/posix-functions/putc_unlocked.texi:
14577         * doc/posix-functions/putchar_unlocked.texi:
14578         Document this portability problem.
14580         signal: OS X port of sigaddset etc. + extern inline
14581         * lib/signal.in.h (sigaddset, sigdelset, sigemptyset, sigfillset)
14582         (sigismember): #undef on problematic Apple platforms.
14583         * doc/posix-functions/sigaddset.texi:
14584         * doc/posix-functions/sigdelset.texi:
14585         * doc/posix-functions/sigemptyset.texi:
14586         * doc/posix-functions/sigfillset.texi:
14587         * doc/posix-functions/sigismember.texi:
14588         Document this portability problem.
14590         extern-inline: do not always suppress extern inline on OS X
14591         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Suppress the use of
14592         extern inline on Apple only if the particular compile-time
14593         configuration is known to have the problem.
14594         (_GL_EXTERN_INLINE_APPLE_BUG): New private macro, to implement this.
14595         (_GL_EXTERN_INLINE_IN_USE): New macro, intended for use by
14596         other Gnulib modules.
14598         extern-inline: document fixes for ctype and wctype macros
14599         * doc/posix-functions/isalnum.texi, doc/posix-functions/isalpha.texi:
14600         * doc/posix-functions/isascii.texi, doc/posix-functions/isblank.texi:
14601         * doc/posix-functions/iscntrl.texi, doc/posix-functions/isdigit.texi:
14602         * doc/posix-functions/isgraph.texi, doc/posix-functions/islower.texi:
14603         * doc/posix-functions/isprint.texi, doc/posix-functions/ispunct.texi:
14604         * doc/posix-functions/isspace.texi, doc/posix-functions/isupper.texi:
14605         * doc/posix-functions/iswalnum.texi, doc/posix-functions/iswalpha.texi:
14606         * doc/posix-functions/iswcntrl.texi, doc/posix-functions/iswctype.texi:
14607         * doc/posix-functions/iswdigit.texi, doc/posix-functions/iswgraph.texi:
14608         * doc/posix-functions/iswlower.texi, doc/posix-functions/iswprint.texi:
14609         * doc/posix-functions/iswpunct.texi, doc/posix-functions/iswspace.texi:
14610         * doc/posix-functions/iswupper.texi, doc/posix-functions/iswxdigit.texi:
14611         * doc/posix-functions/isxdigit.texi, doc/posix-functions/toascii.texi:
14612         * doc/posix-functions/memcpy.texi, doc/posix-functions/memmove.texi:
14613         * doc/posix-functions/memset.texi, doc/posix-functions/stpcpy.texi:
14614         * doc/posix-functions/stpncpy.texi, doc/posix-functions/strcat.texi:
14615         * doc/posix-functions/strcpy.texi, doc/posix-functions/strncat.texi:
14616         * doc/posix-functions/strncpy.texi:
14617         * doc/posix-functions/tolower.texi, doc/posix-functions/toupper.texi:
14618         * doc/posix-functions/towlower.texi, doc/posix-functions/towupper.texi:
14619         Document that Gnulib fixes portability problems with these
14620         functions on OS X 10.8 and earlier when called from plain inline
14621         or extern inline functions.
14623 2013-09-17  Kevin Cernekee  <cernekee@gmail.com>
14625         fflush, freadahead, fseeko: Fix for Android
14626         Suggested by Bruno Haible in:
14627         <http://lists.gnu.org/r/bug-gnulib/2012-01/msg00306.html>
14628         * lib/stdio-impl.h: Use local __sfileext definition.
14630 2013-09-17  Mats Erik Andersson  <gnu@gisladisker.se>
14632         pmccabe2html: Portability to other awk versions.
14633         The functions systime() and strftime() are available
14634         in Gawk only.  Properly close two HTML-tags 'style'
14635         and 'span'.
14636         * build-aux/pmccabe2html (BEGIN): Store timing
14637         strings in EPOCH_TIME and CHRONOS_TIME.  Replace
14638         systime() in HTML_COMMENT.
14639         (html_header): Correctly close tag 'style'.
14640         (END): Replace strftime() by CHRONOS_TIME.  Close
14641         tag 'span' correctly, not as 'div'.
14643 2013-09-17  Mats Erik Andersson  <gnu@gisladisker.se>  (tiny change)
14645         getgroups: statement without effect
14646         * lib/getgroups.c (rpl_getgroups) [HAVE_GETGROUPS]:
14647         Change equality conditional to expected assignment.
14649 2013-09-09  Eric Blake  <eblake@redhat.com>
14651         glob: fix compilation
14652         * lib/glob.in.h (__THROW): Fix missing line in previous commit.
14654 2013-09-07  Eric Blake  <eblake@redhat.com>
14656         glob: fix build for platforms without __THROW
14657         * lib/glob.in.h (__THROW): Add definition again.
14659 2013-09-04  Anton Ovchinnikov  <revolver112@gmail.com>  (tiny change)
14661         regex-quote: fix buffer access out of bounds
14662         http://lists.gnu.org/r/bug-gnulib/2013-09/msg00001.html
14663         * lib/regex-quote.c (regex_quote_spec_pcre):
14664         Fix typo that resulted in an out-of-bounds read.
14666 2013-09-04  Eric Blake  <eblake@redhat.com>
14668         glob: avoid -Wattribute warnings on glibc
14669         * lib/glob.c (next_brace_sub, prefix_array, collated_compare): Use
14670         __THROWNL, not __THROW, on static functions.
14671         * lib/glob.in.h (__THROW): Adjust...
14672         (__THROWNL): ...accordingly.
14674 2013-08-28  Paul Eggert  <eggert@cs.ucla.edu>
14676         headers: check that _GL_INLINE_HEADER_BEGIN is defined
14677         Suggested by Bruce Korb in:
14678         http://lists.gnu.org/r/bug-gnulib/2013-08/msg00070.html
14679         * doc/extern-inline.texi (extern inline):
14680         Suggest checking that _GL_INLINE_HEADER_BEGIN is defined.
14681         * lib/acl-internal.h, lib/argp-fmtstream.h, lib/argp.h:
14682         * lib/binary-io.h, lib/bitrotate.h, lib/count-leading-zeros.h:
14683         * lib/count-one-bits.h, lib/eealloc.h, lib/execinfo.in.h:
14684         * lib/gethrxtime.h, lib/gl_list.h, lib/gl_oset.h, lib/gl_xlist.h:
14685         * lib/gl_xoset.h, lib/gl_xsublist.h, lib/glthread/cond.h:
14686         * lib/glthread/thread.h, lib/math.in.h, lib/mbchar.h, lib/mbfile.h:
14687         * lib/mbiter.h, lib/mbuiter.h, lib/openat.h, lib/pipe-filter-aux.h:
14688         * lib/priv-set.h, lib/pthread.in.h, lib/savewd.h, lib/se-context.in.h:
14689         * lib/se-selinux.in.h, lib/sig-handler.h, lib/stat-time.h:
14690         * lib/sys_socket.in.h, lib/timespec.h, lib/u64.h, lib/unistd.in.h:
14691         * lib/utimens.h, lib/wctype.in.h, lib/xalloc.h, lib/xsize.h:
14692         * lib/xtime.h:
14693         Check that _GL_INLINE_HEADER_BEGIN is defined.
14695 2013-08-29  Pádraig Brady  <P@draigBrady.com>
14697         bootstrap: remove the --version requirement from ancillary tools
14698         * build-aux/bootstrap (check_exists): A new refactored function to
14699         determine if a command exists.
14700         (find_tool): Use the new function which does not require the
14701         --version option to be supported.
14702         (check_versions): Use the new function.
14704 2013-08-26  Simon Josefsson  <simon@josefsson.org>
14706         gc: support HMAC-SHA256 and HMAC-SHA512.
14707         * lib/gc.h: Add gc_hmac_sha256 and gc_hmac_sha512.
14708         * lib/gc-libgcrypt.c (gc_hmac_sha256, gc_hmac_sha512): New
14709         functions.
14710         (gc_hmac_md5): Use symbolic constant.
14711         * lib/gc-gnulib.c: Include hmac.h for HMAC-SHA256/512 too.
14712         (gc_hmac_sha256, gc_hmac_sha512): New functions.
14713         * lib/hmac.h: Add hmac_sha256 and hmac_sha512 prototypes.
14714         * m4/sha256.m4: Protect against empty expansion.
14715         * m4/sha512.m4: Likewise.
14716         * lib/hmac-sha256.c: New file.
14717         * lib/hmac-sha512.c: Likewise.
14718         * m4/gc-hmac-sha256.m4: Likewise.
14719         * m4/gc-hmac-sha512.m4: Likewise.
14720         * m4/gc-sha256.m4: Likewise.
14721         * m4/gc-sha512.m4: Likewise.
14722         * modules/crypto/gc-hmac-sha256: Likewise.
14723         * modules/crypto/gc-hmac-sha256-tests: Likewise.
14724         * modules/crypto/gc-hmac-sha512: Likewise.
14725         * modules/crypto/gc-hmac-sha512-tests: Likewise.
14726         * modules/crypto/hmac-sha256: Likewise.
14727         * modules/crypto/hmac-sha256-tests: Likewise.
14728         * modules/crypto/hmac-sha512: Likewise.
14729         * modules/crypto/hmac-sha512-tests: Likewise.
14730         * tests/test-gc-hmac-sha256.c: Likewise.
14731         * tests/test-gc-hmac-sha512.c: Likewise
14732         * tests/test-hmac-sha256.c: Likewise.
14733         * tests/test-hmac-sha512.c: Likewise
14735 2013-08-24  Daiki Ueno  <ueno@gnu.org>
14737         * m4/intl.m4: Update from gettext-0.18.3.1, which fixes a misuse
14738         of AC_CHECK_DECLS.
14740 2013-08-23  Paul Eggert  <eggert@cs.ucla.edu>
14742         selinux-at: omit unnecessary include
14743         * lib/selinux-at.c: Don't include dosname.h; not needed, since
14744         this source file doesn't use its macros, and subsidiary files that
14745         use the macros already include it.
14747 2013-08-21  Eric Blake  <eblake@redhat.com>
14749         d-ino: avoid false negative on symlink
14750         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use lstat.
14751         Reported by Stephane Chazelas.
14753 2013-08-12  Mike Miller  <mtmiller@ieee.org>  (tiny change)
14755         bootstrap: port to OpenBSD sed
14756         * build-aux/bootstrap (insert_if_absent): Port to OpenBSD sed which
14757         does not interpret `-' as a file argument to mean stdin.
14759 2013-08-15  Eric Blake  <eblake@redhat.com>
14761         warnings: minor optimization
14762         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): Use fewer processes.
14764         warnings: check -Wfoo rather than -Wno-foo
14765         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): If name begins with
14766         -Wno-, test if the compiler recognizes the positive form instead.
14768 2013-08-15  Karl Berry  <karl@gnu.org>
14770         * config/srclist-update: add option "doclicense" to placate
14771         pulling *.texi files from Emacs.  Write terse usage
14772         documentation at the top.
14774 2013-08-13  Paul Eggert  <eggert@cs.ucla.edu>
14776         xvasprintf-tests: port to GCC with hardening flags
14777         * tests/test-xvasprintf.c (test_xasprintf): Pass another arg to
14778         xasprintf, to pacify GCC.  Reported by Santiago Vila in:
14779         http://lists.gnu.org/r/bug-diffutils/2013-08/msg00002.html
14781 2013-08-11  Paul Eggert  <eggert@cs.ucla.edu>
14783         fpending: port to recent Cygwin change to stdio_ext.h
14784         Reported by LRN in
14785         <http://lists.gnu.org/r/bug-gnulib/2013-08/msg00028.html>.
14786         * lib/fpending.h: Don't worry about HAVE_DECL___FPENDING;
14787         just declare __fpending unless it's a macro.
14788         A duplicate decl shouldn't hurt.
14789         * m4/fpending.m4 (gl_FUNC_FPENDING): Check that an __fpending
14790         call compiles and links, instead of separately checking for
14791         decl and lib function.
14792         * modules/fpending (configure-ac):
14793         Adjust to fpending.m4's renaming of shell variable.
14795 2013-08-10  Paul Eggert  <eggert@cs.ucla.edu>
14797         sys_time: port to OpenBSD
14798         * lib/sys_time.in.h: Simply delegate to the system's header
14799         in the BSDish cases as well.  Problem reported by Mike Miller in
14800         <http://lists.gnu.org/r/bug-gnulib/2013-08/msg00016.html>.
14801         * tests/test-sys_select.c, tests/test-sys_time.c (verify_tv_sec_type):
14802         Allow platforms like 64-bit OpenBSD where timeval's tv_sec is
14803         wider than time_t.
14805 2013-08-09  Pádraig Brady  <P@draigBrady.com>
14807         bootstrap: support checksum utils having -c but not --status
14808         * build-aux/bootstrap: Only look for sha1sum if updating po files.
14809         Add sha1 to the list of supported checksum utils since it's now
14810         supported through adjustments below.
14811         (update_po_files): Remove the use of --status
14812         in a way that will suppress all error messages, but since this is
14813         only used to minimize updates, it shouldn't cause an issue.
14814         Exit early if there is a problem updating the po file checksums.
14815         (find_tool): Remove the check for --version support as this
14816         is optional as per commit 86186b17.  Don't even check for the
14817         presence of the command as if that is needed, it's supported
14818         through configuring prerequisites in bootstrap.conf.
14819         Prompt that when a tool isn't found, one can define an environment
14820         variable to add to the hardcoded search list.
14822 2013-08-05  Jim Meyering  <meyering@fb.com>
14824         regex: port to non-glibc/lock-using systems
14825         Since 29-05-2013 commit, 55ba71f4, compilation on a non-glibc
14826         system with GNULIB_LOCK would fail due to absence of the
14827         included "glthread/lock.h".  This would affect any package
14828         for which the "lock" module is used only by the regex module,
14829         and not explicitly used.
14830         * m4/regex.m4 (gl_PREREQ_REGEX): Require gl_GLIBC21.
14831         * modules/regex (Depends-on) [!GLIBC && $ac_use_included_regex]:
14832         Add a dependency on the "lock" module.
14834 2013-07-20  Daiki Ueno  <ueno@gnu.org>
14836         localecharset: make locale_charset thread-safe on Mac OS X
14837         * lib/localcharset.c (locale_charset) [DARWIN7]: Use MB_CUR_MAX_L
14838         instead of MB_CUR_MAX.
14840 2013-07-20  Daiki Ueno  <ueno@gnu.org>
14842         gettext: update to version 0.18.3
14843         * m4/intl.m4, m4/po.m4: Update from gettext-0.18.3.  In particular,
14844         require AC_PROG_SED to allow user to specify custom sed command when
14845         generating en@quot PO file.
14847 2013-07-18  Werner Lemberg  <wl@gnu.org>  (tiny change)
14849         bootstrap: use correct source when copying build-aux files
14850         * build-aux/bootstrap (gnulib_extra_files): This variable is
14851         relative to upstream gnulib layout, not downstream.
14853 2013-07-17  Paul Eggert  <eggert@cs.ucla.edu>
14855         tmpdir: fix bug in VMS port
14856         * lib/tmpdir.c (path_search) [__VMS]: Never add slash.
14857         See Steven M. Schweda in
14858         <http://lists.gnu.org/r/bug-gnulib/2013-07/msg00026.html>.
14860 2013-07-15  Paul Eggert  <eggert@cs.ucla.edu>
14862         tmpdir: port to VMS, to // != /, and to long dirs
14863         * lib/tmpdir.c (__libc_secure_getenv) [!_LIBC]: Rename from
14864         __secure_getenv, so that we're more like the glibc version.
14865         All uses changed.
14866         (path_search): Don't put slash after directory if __VMS.
14867         Problem reported by Steven M. Schweda in
14868         <http://lists.gnu.org/r/bug-gnulib/2013-07/msg00019.html>.
14869         Simplify code to add slash; no need for a loop.
14870         Do not remove trailing slash from "//".
14871         Do not assume dlen <= INT_MAX.
14873 2013-07-09  Paul Eggert  <eggert@cs.ucla.edu>
14875         regex: port to --with-included-regex --enable-gcc-warnings non-threaded
14876         * lib/regex_internal.h (lock_fini, lock_lock): Rework to avoid
14877         gcc warnings in the non-threaded case.  Reported by Charlie Brown in
14878         <http://lists.gnu.org/r/bug-gnulib/2013-07/msg00015.html>.
14880         accept4, dup3, pipe2: port to Cygwin
14881         Problem reported for Emacs by Ken Brown in <http://bugs.gnu.org/14821>.
14882         * lib/accept4.c (accept4) [O_BINARY]:
14883         * lib/dup3.c (dup3) [O_BINARY]:
14884         * lib/pipe2.c (pipe2) [O_BINARY]:
14885         Use set_binary_mode, not setmode.
14886         * lib/pipe2.c [!GNULIB_BINARY_IO]: Include binary-io.h.
14887         * modules/binary-io (Depends-on): Remove module indicator.
14888         These last two bits undo the previous change to pipe2 and binary-io.
14890 2013-07-09  Pádraig Brady  <P@draigBrady.com>
14892         mountlist: add support for deallocating returned list entries
14893         * lib/mountlist.c (free_mount_entry): A new exported function
14894         to deallocate a mount list entry.
14895         (read_file_system_list): Refactor to use the new deallocation function.
14896         Suggested by Anton Ovchinnikov.
14898 2013-07-07  Paul Eggert  <eggert@cs.ucla.edu>
14900         stdalign, verify: port to FreeBSD 9.1, to C11, and to C++11
14901         Problem reported by Ulrich Mueller in <http://bugs.gnu.org/14812>.
14902         * lib/stdalign.in.h (_Alignas, _Alignof):
14903         Port to FreeBSD 9.1, and to C11 and C++11.
14904         (_Alignas): Also support ICC.
14905         * lib/verify.h (_Static_assert): Undef if <stddef.h> defines it.
14906         * m4/stdalign.m4 (gl_STDALIGN_H): Port to ICC and to C++11.
14908 2013-07-06  Paul Eggert  <eggert@cs.ucla.edu>
14910         fnmatch: don't goto over declaration
14911         * lib/fnmatch_loop.c (FCT): Hoist local up one level, to avoid
14912         undefined behavior for goto over a declaration.
14913         Problem reported by Charlie Brown in
14914         <http://lists.gnu.org/r/bug-gnulib/2013-07/msg00009.html>.
14916         pipe2: decouple from binary-io a bit
14917         This is for Emacs, which needs pipe2 but not binary-io.
14918         * lib/pipe2.c [!GNULIB_BINARY_IO]: Don't include binary-io.h.
14919         * modules/binary-io (Depends-on): Add module indicator.
14921 2013-07-03  Eric Blake  <eblake@redhat.com>
14923         mgetgroups: relax license to LGPLv2+
14924         * modules/getugroups (License): Change from GPLv3+.
14925         * modules/mgetgroups (License): Likewise.
14926         * modules/getgroups (License): Change from LGPLv3+.
14928         xalloc-oversized: relax license to LGPLv2+
14929         * modules/xalloc-oversized (License): Change from GPLv3+.
14931         nproc: relax license to LGPLv2+
14932         * modules/nproc (License): Change from LGPLv3+.
14934         bootstrap: honor --no-git
14935         * build-aux/bootstrap: Don't even try to use git when user is
14936         pointing to a static checkout.
14938 2013-06-23  Paul Eggert  <eggert@cs.ucla.edu>
14940         ignore-value: port to gcc -pedantic
14941         * lib/ignore-value.h (ignore_value):
14942         Port to gcc -pedantic, by using __extension__.
14943         Reindent as per usual gnulib style nowadays.
14944         Simplify GCC version check.
14946 2013-06-21  Paul Eggert  <eggert@cs.ucla.edu>
14948         extern-inline: port to gcc -std=c89
14949         * m4/extern-inline.m4 (gl_EXTERN_INLINE):
14950         Do not use __gnu_inline__ if pedantic and pre-C99.
14952 2013-06-18  Paul Eggert  <eggert@cs.ucla.edu>
14954         doc: document extern-inline
14955         * doc/extern-inline.texi: New file.
14956         * doc/gnulib.texi (alloca-opt): Include it.
14957         * m4/extern-inline.m4: Move some comments to documentation,
14958         and others closer to what they describe.
14960         doc: chatter less
14961         * doc/Makefile (NEWEST_GNULIB_TEXI_FILE): New macro.
14962         (updated-stamp): Use it.  This causes 'make' to output just
14963         one file name rather than zillions.
14965         fflush, fseeko: port to musl cross-compiles
14966         * lib/fseeko.c (fseeko): Assume that fflushing stdin works if
14967         on some implementation that (1) is not known to be buggy,
14968         (2) claims conformance to POSIX.1-2008 or later, and (3) is being
14969         cross-compiled to so we can't easily check for lack of
14970         conformance.  This is for cross-compiling to musl.
14971         Reported by Rich Felker in
14972         <http://lists.gnu.org/r/bug-gnulib/2013-06/msg00043.html>.
14973         * m4/fclose.m4 (gl_FUNC_FCLOSE):
14974         * m4/fflush.m4 (gl_FUNC_FFLUSH):
14975         * m4/fseeko.m4 (gl_FUNC_FSEEKO):
14976         Adjust to above change.
14977         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): Set gl_cv_func_fflush_stdin
14978         to 'cross', not to 'no', when cross-compiling.  AC_DEFINE
14979         FUNC_FFLUSH_STDIN to 1, 0, -1 if fflushing stdin is known to work,
14980         known not to work, or unknown.
14982 2013-06-15  Paul Eggert  <eggert@cs.ucla.edu>
14984         msvc-inval: port to mingw-w64
14985         * lib/msvc-inval.c (gl_msvc_invalid_parameter_handler):
14986         Use __cdecl, not cdecl, for mingw-w64.  Reported by LRN in
14987         <http://lists.gnu.org/r/bug-gnulib/2013-06/msg00039.html>.
14989 2013-06-11  Paul Eggert  <eggert@cs.ucla.edu>
14991         getcwd-lgpl: port to Tru64
14992         * lib/getcwd-lgpl.c: Include <stdlib.h>, for malloc etc.
14993         Problem reported by Steven M. Schweda in
14994         <http://lists.gnu.org/r/bug-gzip/2013-06/msg00010.html>.
14996         tests: port large-fd POSIX spawn tests to OS X
14997         Problem reported by Daiki Ueno in
14998         <http://lists.gnu.org/r/bug-gnulib/2013-06/msg00031.html>.
14999         * tests/test-posix_spawn_file_actions_addclose.c:
15000         * tests/test-posix_spawn_file_actions_adddup2.c:
15001         * tests/test-posix_spawn_file_actions_addopen.c:
15002         Include <limits.h>, for OPEN_MAX, if available.
15003         (big_fd): New static function.
15004         (main): Use it.
15006 2013-06-04  Bernhard Voelker  <mail@bernhard-voelker.de>
15008         tests/nap.h: use an adaptive delay to avoid ctime update issues
15009         The recent change in nap.h (5191133e) decreased the probability of lost
15010         races to about a third, however such problems could still be observed
15011         in virtual machines and openSUSE's OBS.
15012         Before, nap() detected the needed time once empirically and then used
15013         that delay (together with a small correction multiplier) in further
15014         calls.  This problem has been reported and discussed several times,
15015         including guesses about possible kernel issues:
15016         https://lists.gnu.org/r/bug-gnulib/2013-04/msg00071.html
15017         http://lists.gnu.org/r/coreutils/2012-03/msg00088.html
15018         https://lists.gnu.org/r/bug-gnulib/2011-11/msg00226.html
15019         http://bugs.gnu.org/12820
15020         https://lists.gnu.org/r/bug-gnulib/2010-11/msg00113.html
15021         https://lists.gnu.org/r/bug-gnulib/2009-11/msg00007.html
15022         Now, nap() avoids the race alltogether by verifying on a reference
15023         file whether a timestamp difference has happened.
15024         * tests/nap.h (nap_fd): Define file descriptor variable for the
15025         witness file.
15026         (nap_works): Change return value to bool.  Change passing
15027         the old file's status by value instead of by reference as this function
15028         does no longer update that timestamp; rename the function argument from
15029         st to old_st.  Remove the local variables cdiff and mdiff because that
15030         function now returns true/false instead of the precise delay.
15031         (guess_delay): Remove function.
15032         (clear_tmp_file): Add new function to close and unlink the witness file.
15033         (nap): Instead of re-using the delay which has been calculated during
15034         the first call, avoid the race by actually verifying that a timestamp
15035         difference can be observed on the current file system.  Use an adaptive
15036         approach for the delay to minimize execution time.  Assert that the
15037         maximum delay is <= ~2 seconds, more precisely sum(2^n) from 0 to 30
15038         = 2^31 - 1 = 2.1s.
15039         Use atexit to call clear_tmp_file when the process terminates.
15041 2013-06-02  Paul Eggert  <eggert@cs.ucla.edu>
15043         sig2str: port to C++
15044         * lib/sig2str.h (sig2str, str2sig): Declare as extern "C".
15045         Reported by Daniel J Sebald in
15046         <http://lists.gnu.org/r/bug-gnulib/2013-06/msg00000.html>.
15048 2013-05-30  Eric Blake  <eblake@redhat.com>
15050         docs: mention cygwin shortcoming in <sys/un.h>
15051         * doc/posix-headers/sys_un.texi (sys/un.h): Mention problem.
15053         vasnprintf: silence mingw compiler warning
15054         * lib/vasnprintf.c (VASNPRINTF): Avoid unused variable warning.
15056 2013-05-29  Paul Eggert  <eggert@cs.ucla.edu>
15058         c-ctype, regex, verify: port to gcc -std=c90 -pedantic
15059         Avoid constructions that are rejected by gcc -std=c90 -pedantic.
15060         This fixes a porting bug I recently reintroduced in regex, and
15061         some other instances that I discovered while testing the fix.
15062         * lib/c-ctype.h [__STRICT_ANSI__]: Avoid ({ ... }).
15063         * lib/regcomp.c (utf8_sb_map) [__STRICT_ANSI__]: Avoid [0 ... N] = E.
15064         * lib/regex_internal.h [!_LIBC && GNULIB_LOCK]: Do not use a macro
15065         with an empty argument if this is a pedantic pre-C99 GCC.
15066         * lib/verify.h: Do not use _Static_assert if this is a pedantic
15067         pre-C11 GCC.
15069         regex: adapt to locking regime instead of depending on pthread
15070         Instead of depending on pthread, adapt to whatever thread
15071         modules are in use.  Problem reported by Ludovic Courtès in
15072         <http://lists.gnu.org/r/bug-gnulib/2013-05/msg00082.html>
15073         and by Mats Erik Andersson in
15074         <http://lists.gnu.org/r/bug-gnulib/2013-05/msg00100.html>.
15075         * lib/regex_internal.h (lock_define, lock_init, lock_fini):
15076         Support either the 'lock' module, or the 'pthread' module, or
15077         no module.
15078         (lock_lock, lock_unlock): New macros.
15079         * lib/regexec.c (regexec, re_search_stub): Use the new macros.
15080         * modules/lock, modules/pthread (configure.ac): Add module indicator.
15081         * modules/regex (Depends-on): Remove pthread.
15083 2013-05-22  Eric Blake  <eblake@redhat.com>
15085         getgroups: document portability issues
15086         * doc/glibc-functions/initgroups.texi (initgroups): Mention
15087         multithread safety.
15088         * doc/posix-functions/getpwuid.texi (getpwuid): Likewise.
15089         * doc/posix-functions/getpwuid_r.texi (getpwuid_r): Likewise.
15090         * doc/glibc-functions/getgrouplist.texi (getgrouplist): Mention
15091         getugroups.
15092         * doc/posix-functions/getgroups.texi (getgroups): Mention
15093         multithread safety and mgetgroups.
15095 2013-05-22  Bernhard Voelker  <mail@bernhard-voelker.de>
15097         test-lchown, test-chown: also skip test if chown fails with EPERM
15098         * tests/test-lchown.h (test_lchown): Add EPERM to the condition to
15099         skip this test, to handle FAT file systems.
15100         * tests/test-chown.h (test_chown): Likewise.
15102 2013-05-19  Paul Eggert  <eggert@cs.ucla.edu>
15104         regex: fix dfa race in multithreaded uses
15105         Problem reported by Ludovic Courtès in
15106         <http://lists.gnu.org/r/bug-gnulib/2013-05/msg00058.html>.
15107         * lib/regex_internal.h (lock_define, lock_init, lock_fini):
15108         New macros.  All uses of __libc_lock_define, __libc_lock_init
15109         changed to use the first two of these.
15110         (__libc_lock_lock, __libc_lock_unlock): New macros, for
15111         non-glibc platforms.
15112         (struct re_dfa_t): Define the lock unconditionally.
15113         * lib/regexec.c (regexec, re_search_stub): Remove some now-incorrect
15114         '#ifdef _LIBC"s.
15115         * modules/regex (Depends-on): Add pthread, if we use the
15116         included regex.
15118         * lib/regcomp.c: Do actions that are not needed for glibc,
15119         but may be needed elsewhere.
15120         (regfree, re_compile_internal): Destroy the lock.
15121         (re_compile_internal): Check for lock-initialization failure.
15123         malloca: port to compilers that reject size-zero arrays
15124         This fixes a bug introduced in my previous patch.
15125         * lib/malloca.c (struct preliminary_header): Use an int
15126         rather than a character array of size int; that's simpler.
15127         (struct header): Remove, replacing with ...
15128         (union header): New type.  This avoids the need for declaring a
15129         character array of size zero, which is not allowed on some platforms.
15130         All uses changed.
15132 2013-05-18  Paul Eggert  <eggert@cs.ucla.edu>
15134         parse-datetime, tests: don't use "string" + int
15135         Recent versions of 'clang' complain about C source code that
15136         uses expressions of the form '"string literal" + integer',
15137         I guess on the theory that it's confusing for readers who are
15138         used to C++.  On those grounds I suppose it's OK to make this
15139         minor style change.
15140         * lib/parse-datetime.y (parse_datetime):
15141         * tests/test-fchdir.c (main):
15142         * tests/test-snprintf-posix.h (test_function):
15143         * tests/test-snprintf.c (main):
15144         * tests/test-vasnprintf-posix.c (test_function):
15145         * tests/test-vasnprintf.c (test_function):
15146         * tests/test-vsnprintf.c (main):
15147         * tests/unistdio/test-ulc-asnprintf1.h (test_function):
15148         Rewrite '"str" + E' to '&"str"[E]'.
15150 2013-05-17  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
15152         argmatch: port to C++
15153         * lib/argmatch.h [__cplusplus]: Add extern "C".
15155         argp: typo fix
15156         * lib/argp-help.c: Typo in comment.
15158 2013-05-15  Paul Eggert  <eggert@cs.ucla.edu>
15160         manywarnings: update for GCC 4.8.0
15161         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC):
15162         Add -Waggressive-loop-optimizations, -Wreturn-local-addr, which
15163         are new to GCC 4.8.  Remove -Wformat=2, -Wmissing-format-attribute,
15164         -Wmissing-noreturn, as they are duplicates of other warnings.
15165         Remove -Wunreachable-code, as it is removed in GCC 4.8 and
15166         was documented to be flaky in earlier versions of GCC.
15168         spawn-tests, sys_socket-tests, sys_wait-tests: port to clang
15169         * tests/test-spawn.c (main):
15170         * tests/test-sys_socket.c (main):
15171         * tests/test-sys_wait.c (main):
15172         Don't have a switch value that isn't covered by a case.
15174         getaddrinfo-tests: port --enable-gcc-warnings to clang
15175         * tests/test-getaddrinfo.c (simple):
15176         Avoid casts from looser to stricter-aligned pointers.
15178         thread: port --enable-gcc-warnings to clang
15179         * lib/glthread/thread.h [__clang__ && USE_POSIX_THREADS_WEAK]:
15180         Include <signal.h>, to pacify a warning about pthread_sigmask.
15182         stdio: use __REDIRECT for fwrite, fwrite_unlocked
15183         * lib/stdio.in.h (fwrite):
15184         When working around bug 11959, use __REDIRECT rather than '#define
15185         fwrite(...) ... fwrite (...) ...'.  This is a more-targeted way to
15186         fix the -Wunused-value issue with clang, and it works with GCC too.
15187         Problem with targeting reported by Eric Blake in
15188         <http://lists.gnu.org/r/bug-gnulib/2013-05/msg00067.html>.
15189         (fwrite_unlocked): Treat like fwrite.  I ran into this issue while
15190         debugging the fwrite issue.
15192         stdio: port --enable-gcc-warnings to clang
15193         * lib/stdio.in.h (fwrite) [__clang__]: Ignore -Wunused-value entirely,
15194         since the GCC workaround for fwrite does not pacify clang.
15196         sig2str: port --enable-gcc-warnings to clang
15197         * lib/sig2str.c (sig2str): Avoid warning about unused printf argument.
15199         obstack: port --enable-gcc-warnings to clang
15200         * lib/obstack.h (obstack_ptr_grow_fast, obstack_int_grow_fast):
15201         Avoid casts from looser to stricter-aligned pointers.
15203         memchr2: port --enable-gcc-warnings to clang
15204         * lib/memchr2.c (memchr2):
15205         Avoid casts from looser to stricter-aligned pointers.
15207         mbsstr: port --enable-gcc-warnings to clang
15208         * lib/mbsstr.c (knuth_morris_pratt_multibyte):
15209         Avoid casts from looser to stricter-aligned pointers.
15211         malloca: port --enable-gcc-warnings to clang
15212         * lib/malloca.c (struct header): New member 'magic', to avoid casts.
15213         (mmalloca): Avoid casts from looser to stricter-aligned pointers.
15215         inttostr: port --enable-gcc-warnings to clang
15216         * lib/anytostr.c [__clang__]: Ignore -Wtautological-compare.
15218         warnings: port to clang
15219         Problem reported by Daniel P. Berrange via Eric Blake in
15220         <http://lists.gnu.org/r/bug-gnulib/2013-05/msg00055.html>.
15221         * m4/warnings.m4 (gl_UNKNOWN_WARNINGS_ARE_ERRORS): New macro.
15222         (gl_WARN_ADD): Use it.
15224 2013-05-11  Jim Meyering  <meyering@fb.com>
15226         quotearg: do not read beyond end of buffer
15227         * lib/quotearg.c (quotearg_buffer_restyled): Do not read beyond the
15228         end of an ARG for which no length was specified.  With an N-byte
15229         quote string, (e.g., N is 3 in the fr_FR.UTF-8 locale), this function
15230         would read N-2 bytes beyond ARG's trailing NUL.  This was triggered
15231         via coreutils' misc/sort-debug-keys.sh test and detected by running
15232         the test against a binary compiled with gcc-4.8.0's -fsanitize=address.
15233         * tests/test-quotearg-simple.c (main): Add a test to trigger the bug.
15234         * modules/quotearg-simple-tests (Files): Add tests/zerosize-ptr.h.
15235         Introduced via the 2000-01-15 commit, c4b7f3f8, "Quote multibyte
15236         characters correctly."
15238 2013-05-11  Daiki Ueno  <ueno@gnu.org>
15240         lock: work around pthread recursive mutexes bug in Mac OS X 10.6
15241         * m4/lock.m4: Don't define HAVE_PTHREAD_MUTEX_RECURSIVE if the
15242         compilation target is Mac OS X 10.6.
15243         Problem reported by parafin and Andoni Morales in
15244         <http://savannah.gnu.org/bugs/?37844> and
15245         <http://lists.gnu.org/r/bug-gettext/2013-05/msg00007.html>.
15247 2013-05-11  Paul Eggert  <eggert@cs.ucla.edu>
15249         mkdir-p: remove assumptions about umask and mode
15250         * lib/mkdir-p.c (make_dir_parents): Do not assume that the current
15251         umask is 0, or that MODE is a subset of MODE_BITS.
15253 2013-05-10  Eric Blake  <eblake@redhat.com>
15255         maint.mk: catch more abuse of HAVE_DECL in syntax-check
15256         * top/maint.mk (sc_prohibit_defined_have_decl_tests): Relax regex.
15258 2013-05-10  Stefano Lattarini  <stefano.lattarini@gmail.com>
15260         deps: require Automake >= 1.9.6 in generated Makefile fragments
15262         That is the same minimal version required in the DEPENDENCIES file.
15263         Moreover, the old code generated a requirement of Automake >= 1.5,
15264         and that is an insanely outdated version.
15266         * gnulib-tool: Bump minimal version requirement in AUTOMAKE_OPTIONS.
15267         * tests/havelib/rpathlx/Makefile.am: Likewise.
15268         * tests/havelib/rpathly/Makefile.am: Likewise.
15269         * tests/havelib/rpathlyx/Makefile.am: Likewise.
15270         * tests/havelib/rpathlz/Makefile.am: Likewise.
15271         * tests/havelib/rpathlzyx/Makefile.am: Likewise.
15272         * tests/havelib/rpathx/Makefile.am: Likewise.
15273         * tests/havelib/rpathy/Makefile.am: Likewise.
15274         * tests/havelib/rpathz/Makefile.am: Likewise.
15276 2013-05-08  Eric Blake  <eblake@redhat.com>
15278         bootstrap: AC_INIT may have more than four parameters
15279         * build-aux/bootstrap (extract_package_name): Correctly extract
15280         non-empty tarname field.  Avoid range in regex.
15281         Based on a report by Sami Kerola <kerolasa@iki.fi>.
15283 2013-05-07  Paul Eggert  <eggert@cs.ucla.edu>
15285         qacl: port to MS-Windows port of GNU Emacs
15286         * lib/acl-errno-valid.c (acl_errno_valid) [ENOTSUP == ENOSYS]:
15287         Omit the duplicate ENOTSUP case.  Needed for the MS-Windows
15288         port of GNU Emacs.  Problem reported by Eli Zaretskii in
15289         <http://bugs.gnu.org/14295#14>.
15291 2013-05-07  Mike Frysinger  <vapier@gentoo.org>
15293         acl: include quote.h
15294         * lib/copy-acl.c: Include quote.h.
15295         * lib/set-acl.c: Likewise.
15297 2013-05-06  Mike Frysinger  <vapier@gentoo.org>
15299         fchownat, renameat, unlinkat: update statat dependencies
15300         These modules use statat and lstatat, not fstatat; so depend on
15301         the statat module, which was split out recently from fstatat.
15302         * modules/fchownat, modules/unlinkat: Change fstatat to statat.
15303         * modules/renameat: Likewise.  Also delete fstat.
15304         URL: http://bugs.gentoo.org/468790
15306 2013-05-04  Stefano Lattarini  <stefano.lattarini@gmail.com>
15308         Assume gnulib is checked out from Git, not CVS
15310         In fact, access to the gnulib repository through CVS has been
15311         disabled, or more precisely, got broken and was never restored; see:
15312         <http://lists.gnu.org/r/bug-gnulib/2013-05/msg00008.html>
15314         Note that support for CVS is not removed completely and unthinkingly
15315         by this change: only support for CVS checkouts of gnulib itself is
15316         removed.  For example, the 'bootstrap' script still cater to .cvsingore
15317         files and CVS directories, for the benefit of those poor gnulib clients
15318         still stuck with CVS.  Ditto for the 'gnulib-tool' script itself.
15320         * gnulib-tool: Simplify accordingly.
15321         * posix-modules: Likewise.
15322         * MODULES.html.sh: Likewise.
15323         * doc/gnulib.texi: No longer mention the decommissioned CVS gnulib
15324         repository.
15325         * doc/gnulib-intro.texi: Likewise.
15326         * doc/gnulib-readme.texi: Likewise.
15327         * doc/gnulib-tool.texi: In the examples and explanations, refer to a
15328         sample '.gitignore' file rather than a sample '.cvsignore'.
15329         * NEWS: Update.
15330         * m4/extensions.m4: While at it, remove a comment mistakenly referring
15331         to "CVS Autoconf" rather than "git Autoconf".
15333 2013-04-30  Paul Eggert  <eggert@cs.ucla.edu>
15335         utimensat-tests, etc.: try to fix some races
15336         Problem reported by Bernhard Voelker in
15337         <http://lists.gnu.org/r/bug-gnulib/2013-04/msg00071.html>.
15338         I don't know whether this patch fixes that race condition, but it
15339         fixes *some* race conditions, so it should be a win.
15340         * modules/chown-tests (Depends-on):
15341         * modules/fchownat-tests (Depends-on):
15342         * modules/fdutimensat-tests (Depends-on):
15343         * modules/futimens-tests (Depends-on):
15344         * modules/lchown-tests (Depends-on):
15345         * modules/stat-time-tests (Depends-on):
15346         * modules/utimens-tests (Depends-on):
15347         * modules/utimensat-tests (Depends-on):
15348         Depend on nanosleep, not usleep.
15349         * modules/chown-tests (test_chown_LDADD):
15350         * modules/lchown-tests (test_lchown_LDADD):
15351         * modules/stat-time-tests (test_stat_time_LDADD):
15352         New macro.
15353         * modules/fchownat-tests (test_fchownat_LDADD):
15354         * modules/fdutimensat-tests (test_fdutimensat_LDADD):
15355         * modules/futimens-tests (test_futimens_LDADD):
15356         * modules/utimens-tests (test_utimens_LDADD):
15357         * modules/utimensat-tests (test_utimensat_LDADD):
15358         Add $(LIB_NANOSLEEP).
15359         * modules/stat-time-tests (Files): Add tests/nap.h.
15360         * tests/nap.h: Include <limits.h>, for INT_MAX.
15361         (lt_mtime): Remove.
15362         (diff_timespec): New function.
15363         (get_stat): Rename from get_mtime.  All callers changed.
15364         (nap_works): Determine the needed delay by inspecting the
15365         file system's timestamp jumps; this should be more reliable.
15366         Look at both mtime and ctime, and take the maximum of the two jumps.
15367         (nap_works, guess_delay):
15368         Return a nanosecond count, not a microsecond count.
15369         All callers changed.
15370         (nap_works, nap): Use nanosleep, not usleep.  Check for nanosleep
15371         failure.
15372         (nap): Multiply the guess by 1.125, to accommodate the case where
15373         the file system's clock is a bit slower than nanosleep's clock.
15374         * tests/test-stat-time.c (BASE): New macro.
15375         Include nap.h.
15376         (nap): Remove; nap.h now defines this.  This removes a duplicate
15377         implementation of 'nap'.
15379         utimens, utimensat: work around Solaris UTIME_OMIT bug
15380         Solaris 11.1 and Solaris 10 have the same UTIME_OMIT bug that
15381         Linux kernel 2.6.32 does.  Work around it in the same way.
15382         * doc/posix-functions/futimens.texi (futimens):
15383         * doc/posix-functions/utimensat.texi (utimensat): Document the bug.
15384         * lib/utimens.c (fdutimens, lutimens):
15385         * lib/utimensat.c (rpl_utimensat): Work around the bug.
15387         gettext: now it's your responsibility to add -I$(top_builddir)/intl
15388         Formerly, it was your responsibility to do this for all Makefile.ams
15389         other than Gnulib's.  Now it's your responsibility to do it for
15390         Gnulib's Makefile.am, too.
15391         * NEWS: Document this.
15392         * modules/gettext (AM_CPPFLAGS): Don't append -$(top_builddir)/intl.
15394         acl: include errno.h to get errno
15395         Reported by Daiki Ueno in
15396         <http://lists.gnu.org/r/bug-gnulib/2013-04/msg00073.html>.
15397         * lib/copy-acl.c, lib/set-acl.c: Include errno.h.
15399 2013-04-29  Paul Eggert  <eggert@cs.ucla.edu>
15401         tests: don't assume getdtablesize () <= 10000000
15402         * modules/cloexec-tests:
15403         * modules/dup2-tests:
15404         * modules/dup3-tests:
15405         * modules/nonblocking-tests:
15406         * modules/posix_spawn_file_actions_addclose-tests:
15407         * modules/posix_spawn_file_actions_adddup2-tests:
15408         * modules/posix_spawn_file_actions_addopen-tests:
15409         * modules/unistd-safer-tests:
15410         Depend on the getdtablesize module.
15411         * tests/test-cloexec.c:
15412         * tests/test-dup-safer.c:
15413         * tests/test-dup2.c:
15414         * tests/test-dup3.c:
15415         * tests/test-fcntl.c:
15416         * tests/test-nonblocking.c:
15417         * tests/test-posix_spawn_file_actions_addclose.c:
15418         * tests/test-posix_spawn_file_actions_adddup2.c:
15419         * tests/test-posix_spawn_file_actions_addopen.c:
15420         Don't assume getdtablesize () <= 10000000.
15422 2013-04-28  Paul Eggert  <eggert@cs.ucla.edu>
15424         extern-inline: work around bug in Sun c99
15425         * m4/extern-inline.m4 (_GL_INLINE, _GL_EXTERN_INLINE):
15426         Work around bug in Sun C 5.12 c99's implementation of 'inline'.
15428 2013-04-27  Paul Eggert  <eggert@cs.ucla.edu>
15430         qacl: new module, broken out from the acl module
15431         This is for GNU Emacs, which wants the acl functions but does
15432         not want 'error' invoked when they fail.
15433         * lib/acl-internal.h: Do not include error.h, quote.h.
15434         (ENOSYS, ENOTSUP): Remove; no longer needed.
15435         (ACL_NOT_WELL_SUPPORTED): Remove; replaced by acl_errno_valid.
15436         * lib/acl.h: Include <stdbool.h>.
15437         (acl_errno_valid): New function.
15438         * lib/copy-acl.c, lib/set-acl.c: Include errno,h, not acl-internal.h.
15439         * lib/copy-acl.c (qcopy_acl): Move to lib/qcopy-acl.c.
15440         * lib/set-acl.c: Rename from lib/set-mode-acl.c.
15441         (chmod_or_fchmod, qset_acl): Move to lib/qset-acl.c.
15442         (ACL_INTERNAL_INLINE): Remove; no longer needed.
15443         * lib/file-has-acl.c (file_has_acl):
15444         * lib/qcopy-acl.c (qcopy_acl):
15445         * lib/qset-acl.c (qset_acl):
15446         Use acl_errno_valid instead of ACL_NOT_WELL_SUPPORTED.
15447         * modules/acl (Files): Move lib/acl.h, lib/acl-internal.h,
15448         lib/acl_entries.c, lib/set-mode-acl.c (renamed to lib/set-acl.c),
15449         lib/file-has-acl.c, m4/acl.m4 to qacl module.
15450         Add lib/set-acl.c.
15451         (Depends-on): Move extern-inline, fstat, sys_stat to qacl module.
15452         Add qacl.
15453         (configure.ac): Move gl_FUNC_ACL to qacl module.
15454         (lib_SOURCES): Remove file-has-acl.c (moved to qacl module).
15455         Rename set-mode-acl.c to set-acl.c.
15456         * lib/acl-errno-valid.c: New file.
15457         * lib/qcopy-acl.c: New file, moved from the old lib/copy-acl.c; the
15458         copy_acl function remains in copy-acl.c.
15459         * lib/qcopy-acl.c, lib/qset-acl.c: Do not include gettext.h.
15460         (_): Remove; not needed.
15461         * lib/qset-acl.c: New file, moved from the old lib/set-mode-acl.c; the
15462         set_acl function remains in set-acl.c (renamed from set-mode-acl.c).
15463         * modules/qacl: New file, moved from the old modules/acl.
15464         (Files, lib_SOURCES): Add acl-errno-valid.c, qcopy-acl.c, qset-acl.c.
15465         Remove set-mode-acl.c, copy-acl.c.
15466         (Depends-on): Remove error, gettext-h, quote.  Add stdbool.
15468         alignof, intprops, malloca: port better to IBM's C compiler
15469         * lib/alignof.h (alignof_type) [__IBM_ALIGNOF__]: Use __alignof__.
15470         * lib/intprops.h (_GL_HAVE___TYPEOF__) [__IBM_TYPEOF__]: Now 1.
15471         * lib/malloca.h (sa_alignof): [__IBM_ALIGNOF__]: Use __alignof__.
15473 2013-04-25  Daiki Ueno  <ueno@gnu.org>
15475         wctype-h: fix gettext link error on mingw
15476         Reported by Josue Andrade Gomes and Takayuki Tsunakawa in
15477         <https://lists.gnu.org/r/bug-gettext/2013-03/msg00086.html>.
15478         * lib/wctype.in.h [__MINGW32__]: Include <ctype.h> before defining
15479         rpl_towupper and rpl_towupper.
15481 2013-04-11  Dmitry V. Levin  <ldv@altlinux.org>
15483         regex-tests, regex: allow glibc re_search behavior
15484         * tests/test-regex.c (main): In test for glibc bug 15078, reformat
15485         re_search input data to make the multi-character collating element
15486         in it clearly visible, and treat re_search return code 0 as valid.
15487         * m4/regex.m4 (gl_REGEX): Likewise.
15489 2013-03-30  Paul Eggert  <eggert@cs.ucla.edu>
15491         stdalign: doc fix
15492         * doc/posix-headers/stdalign.texi (stdalign.h):
15493         Gnulib doesn't support '_Alignof expr'.
15495 2013-03-29  Paul Eggert  <eggert@cs.ucla.edu>
15497         stdalign: port to stricter ISO C11
15498         ISO C11 says that _Alignof's operand must be a parenthesized type.
15499         Problem reported by Eli Zaretskii in
15500         <http://lists.gnu.org/r/emacs-devel/2013-03/msg00960.html>.
15501         * doc/posix-headers/stdalign.texi (stdalign.h): Document this.
15502         * m4/stdalign.m4 (gl_STDALIGN_H): Don't use _Alignof (expr).
15504 2013-03-21  Paul Eggert  <eggert@cs.ucla.edu>
15506         sys_select, sys_time: port 2013-01-30 Solaris 2.6 fix to Cygwin
15507         Problem reported by Marco Atzeri in
15508         <http://lists.gnu.org/r/bug-gnulib/2013-03/msg00000.html>.
15509         * lib/sys_select.in.h [HAVE_SYS_SELECT_H && _CYGWIN_SYS_TIME_H]:
15510         Simply delegate to the system <sys/select.h> in this case too.
15511         Also, pay attention to _GL_SYS_SELECT_H_REDIRECT_FROM_SYS_TIME_H only
15512         if OSF/1, since otherwise Cygwin breaks, and it doesn't seem to
15513         be needed on Solaris either.
15514         * lib/sys_time.in.h [_CYGWIN_SYS_TIME_H]:
15515         Simply delegate to the system <sys/time.h> in this case.
15517 2013-03-19  Karl Berry  <karl@gnu.org>
15519         * build-aux/gnupload: check for erroneous (with gnupload) use of
15520         ftp-upload.gnu.org, tweak help.
15522 2013-03-19  Paul Eggert  <eggert@cs.ucla.edu>
15524         copy-file, rpmatch: fix problems found by cppcheck
15525         Reported by Arno Onken in
15526         <http://lists.gnu.org/r/bug-gnulib/2013-03/msg00069.html>.
15527         * lib/rpmatch.c (try): Fix memory leak.
15528         * lib/copy-file.c: Include "ignore-value.h".
15529         (qcopy_file_preserving): Ignore chown value.
15530         * modules/copy-file (Depends-on): Add ignore-value.
15532 2013-01-27  Jim Meyering  <jim@meyering.net>
15534         prefix-gnulib-mk: give better diagnostics
15535         * build-aux/prefix-gnulib-mk: Don't just "die".
15536         Give better diagnostics upon failure.
15538 2013-03-13  Paul Eggert  <eggert@cs.ucla.edu>
15540         putenv: port to Solaris 10
15541         * lib/putenv.c (_unsetenv, putenv): Use HAVE_DECL__PUTENV, not
15542         HAVE__PUTENV.  Solaris 10 has a _putenv that's not declared and
15543         is not what is wanted here.
15544         * m4/putenv.m4 (gl_PREREQ_PUTENV): Check for _putenv's
15545         declaration, not for its existence.
15547 2013-03-12  Paul Eggert  <eggert@cs.ucla.edu>
15549         mktime: fix configure typo
15550         * m4/mktime.m4 (gl_FUNC_MKTIME): Fix typo in previous change.
15552 2013-03-12  Eric Blake  <eblake@redhat.com>
15554         regex-tests: skip UTF-8 test on mingw
15555         * modules/regex-tests (Depends-on): Add localcharset.
15556         * tests/test-regex.c (main): Use it to skip test on mingw.
15558 2013-03-11  Eric Blake  <eblake@redhat.com>
15560         tests: make it easier to bypass alarm time in debugger
15561         * tests/test-file-has-acl.c (main): Allow gdb to override alarm.
15562         * tests/test-memmem.c (main): Likewise.
15563         * tests/test-passfd.c (main): Likewise.
15564         * tests/test-ptsname.c (main): Likewise.
15565         * tests/test-ptsname_r.c (main): Likewise.
15566         * tests/test-strcasestr.c (main): Likewise.
15567         * tests/test-strstr.c (main): Likewise.
15569         regex: port to mingw's recent addition of undeclared alarm
15570         * doc/posix-functions/alarm.texi (alarm): Document that alarm
15571         exists but still doesn't work in newer mingw.
15572         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Check for alarm declaration,
15573         not existence.  Ensure SIGALRM is not trapped.
15574         * m4/mktime.m4 (gl_FUNC_MKTIME): Likewise.
15575         * m4/regex.m4 (gl_REGEX): Likewise.
15576         * m4/remainderf.m4 (gl_FUNC_REMAINDERF_WORKS): Likewise.
15577         * tests/test-regex.c (main): Use correct probe for alarm.
15579         putenv: avoid compilation warning on mingw
15580         * lib/putenv.c (_unsetenv): Protect variable declaration.
15581         (putenv): Fix indentation.
15583 2013-03-11  Gary V. Vaughan  <gary@gnu.org>
15585         unistd: don't prevent Tru64 Unix from using gnulib strtod.
15586         * lib/unistd.in.h: be careful not to include un-needed system
15587         stdlib.h from here, because that prevents gnulib stdlib.h from
15588         defining rpl_strtod correctly.
15590 2013-03-09  Gary V. Vaughan  <gary@gnu.org>
15592         vasprintf-posix-tests: allow rounding 1.51 to 1, per the previous
15593         changesets, but for the 'precision 0' test.
15594         * tests/test-vasprintf-posix.c (test_function): Don't insist on
15595         round-to-even, since POSIX says rounding is implementation-defined
15596         and OS X 10.8.2 rounds 1.51 to 1 here.
15598         vasprintf-posix-tests: allow rounding 1.5 to 1, per the previous
15599         changeset.
15600         * tests/test-vasprintf-posix.c (test_function): Don't insist on
15601         round-to-even, since POSIX says rounding is implementation-defined
15602         and OS X 10.8.2 rounds 1.5 to 1 here.
15604 2013-03-08  Paul Eggert  <eggert@cs.ucla.edu>
15606         vasnprintf-posix-tests: allow rounding 1.5 to 1
15607         * tests/test-vasnprintf-posix.c (test_function): Don't insist on
15608         round-to-even, since POSIX says rounding is implementation-defined
15609         and OS X 10.8.2 rounds 1.5 to 1 here.  Reported by Gary V. Vaughan in
15610         <http://lists.gnu.org/r/bug-gnulib/2013-03/msg00019.html>.
15612         bootstrap: port to FreeBSD
15613         * build-aux/bootstrap (bootstrap_sync): Port sh -c usage to shells
15614         that treat '--' differently.  Reported by Mats Erik Andersson in
15615         <http://lists.gnu.org/r/bug-gnulib/2013-03/msg00012.html>.
15617 2013-03-08  Gary V. Vaughan  <gary@gnu.org>
15619         regex: rename remaining __attribute calls to __attribute__.
15620         2012-02-25 changed definition of __attribute, but left some uses
15621         unchanged, preventing compilation of regex module on most non-gcc
15622         environments.
15623         * lib/regcomp.c (re_set_fastmap, seek_collating_symbol_entry)
15624         (lookup_collation_sequence_value, build_range_exp)
15625         (build_collating_symbol): Set attributes with newly renamed
15626         __attribute__ decorator.
15627         * lib/regex_internal.c (re_string_peek_byte_case)
15628         (re_node_set_compare, re_node_set_contains): Likewise.
15629         * lib/regexec.c (acquire_init_state_context): Likewise.
15631 2013-03-06  Bruno Haible  <bruno@clisp.org>
15633         execute: Revert last change, but use a different condition.
15634         * lib/execute.c (nonintr_close, nonintr_open): Reintroduce, but only
15635         on Windows.
15637 2013-03-05  Eric Blake  <eblake@redhat.com>
15639         execute: drop dead code
15640         * lib/execute.c (nonintr_close, nonintr_open): Delete.
15642 2013-03-04  Paul Eggert  <eggert@cs.ucla.edu>
15644         non-recursive-gnulib-prefix-hack: port coreutils 8.21 to HP NonStop
15645         * m4/non-recursive-gnulib-prefix-hack.m4
15646         (gl_NON_RECURSIVE_GNULIB_PREFIX_HACK): Don't mess with ALLOCA.
15647         Problem reported for HP NonStop + coreutils 8.21 by Joachim Schmitz in
15648         <http://bugs.gnu.org/10305#237>.
15650 2013-03-04  Eric Blake  <eblake@redhat.com>
15652         test-getsockopt: avoid compiler warning
15653         * tests/test-getsockopt.c (includes): Ensure close is declared.
15655 2013-03-02  Bruno Haible  <bruno@clisp.org>
15657         sys_types: Avoid autoconf warning about gl_SYS_TYPES_H.
15658         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Define through AC_DEFUN_ONCE.
15660 2013-03-02  Bruno Haible  <bruno@clisp.org>
15662         gettext: Update to version 0.18.2.
15663         * m4/intl.m4, m4/po.m4: Update from gettext-0.18.2. In particular:
15664         2012-12-07  Stefano Lattarini  <stefano.lattarini@gmailcom>
15665                 * intl.m4, po.m4: Bump requirement in AC_PREREQ to 2.60.
15667 2013-02-25  Paul Eggert  <eggert@cs.ucla.edu>
15669         regex: merge patches from libc
15671         2013-02-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
15672         * lib/regex_internal.h (__attribute__): Rename from __attribute.
15673         All uses changed.
15674         (bitset_not, bitset_merge, bitset_mask, re_string_char_size_at)
15675         (re_string_wchar_at, re_string_elem_size_at):
15676         Mark function as possibly unused.
15678         2013-02-12  Andreas Schwab  <schwab@suse.de>  [BZ #11561]
15679         * lib/regcomp.c (parse_bracket_exp) [_LIBC]: When looking up collating
15680         elements compare against the byte sequence of it, not its name.
15682 2013-02-21  Paul Eggert  <eggert@cs.ucla.edu>
15684         putenv: port better to native Windows
15685         * lib/putenv.c [(_WIN32 || __WIN32__) && ! __CYGWIN__]:
15686         Define WIN32_LEAN_AND_MEAN and include <windows.h>.
15687         (_unsetenv): Use _putenv if available.
15688         (putenv): Temporarily set NAME=' ' rather than NAME='x' as that's
15689         a bit less likely to cause damage.
15690         (putenv) [(_WIN32 || __WIN32__) && ! __CYGWIN__]:
15691         Fix the wrong value with SetEnvironmentVariable.
15692         (putenv) [!HAVE__PUTENV]: Simplify and match the HAVE__PUTENV
15693         code better.
15695 2013-02-20  Paul Eggert  <eggert@cs.ucla.edu>
15697         regex: ignore old-style-definition warnings
15698         * lib/regex.c: Add pragma to ignore these warnings.
15699         Problem reported for GNU tar by Pavel Raiskup.
15701 2013-02-19  Paul Eggert  <eggert@cs.ucla.edu>
15703         getcwd: support coreutils better
15704         Like strtod, getcwd incorrectly referred to HAVE_RAW_DECL_GETCWD,
15705         but this might not be correct in coreutils, which disables
15706         the raw decl checks.  Problem reported by Nagendra in
15707         <http://bugs.gnu.org/10305#192>.
15708         * lib/getcwd.c (__getcwd): Do not depend on HAVE_RAW_DECL_GETCWD.
15709         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
15710         Test the getcwd function, not any macro, since getcwd.c wants the
15711         function.
15712         * m4/getcwd.m4 (gl_FUNC_GETCWD):
15713         Don't define HAVE_MINIMALLY_WORKING_GETCWD if the code doesn't
15714         compile, as might happen if there's a macro but no function.
15716         strtod: support coreutils better
15717         * lib/strtod.c (underlying_strtod): Just invoke the underlying strtod.
15718         HAVE_RAW_DECL_STRTOD might not be correct in coreutils, which
15719         disables the raw decl checks.  This assumes there is an underlying
15720         strtod, but that's a safe assumption these days.
15721         (HAVE_RAW_DECL_STRTOD): Remove; no longer used.
15723         mountlist: port to HP NonStop
15724         Reported by Joachim Schmitz in
15725         <http://lists.gnu.org/r/bug-gnulib/2013-02/msg00084.html>.
15726         * lib/mountlist.c (hasmntopt) [!HAVE_HASMNTOPT]: New function.
15727         (MNT_IGNORE) [MNTOPT_IGNORE]: Use it.
15729 2013-02-18  Paul Eggert  <eggert@cs.ucla.edu>
15731         extern-inline: avoid compilation error with HP-UX cc
15732         Reported by Richard Lloyd in
15733         <http://lists.gnu.org/r/bug-texinfo/2013-02/msg00030.html>.
15734         * m4/extern-inline.m4 (_GL_INLINE, _GL_EXTERN_INLINE):
15735         Suppress extern inline with HP-UX cc.  This should be safe,
15736         though it may hurt performance.  Perhaps someone with some HP-UX
15737         experience can come up with a higher-performance fix.
15739 2013-02-14  Paul Eggert  <eggert@cs.ucla.edu>
15741         putenv: fix heap corruption with mixed putenv/_putenv
15742         Problem reported by Michael Goffioul in
15743         <http://lists.gnu.org/r/bug-gnulib/2013-02/msg00061.html>.
15744         * lib/putenv.c (putenv) [HAVE__PUTENV]:
15745         Rely on _putenv to allocate the new environment.
15746         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
15747         * modules/putenv (configure.ac): Use it.
15749 2013-02-11  Paul Eggert  <eggert@cs.ucla.edu>
15751         unsetenv etc.: port to Solaris 11 + GNU Emacs
15752         * lib/canonicalize-lgpl.c, lib/getaddrinfo.c, lib/getdelim.c:
15753         * lib/glob.c, lib/random_r.c, lib/setenv.c, lib/tsearch.c:
15754         * lib/unsetenv.c (_GL_ARG_NONNULL): Define before including <config.h>.
15755         GNU Emacs's <config.h> includes <stdlib.h> (which is not a great
15756         idea but is too painful to fix right now), and without this gnulib
15757         change <stdlib.h> was defining _GL_ARG_NONNULL incorrectly when
15758         compiling unsetenv.c on Solaris 11.  Fix the problem for
15759         unsetenv.c, and fix other similar occurrences.
15761 2013-02-09  Paul Eggert  <eggert@cs.ucla.edu>
15763         secure_getenv: fix C++ declaration typo
15764         * lib/stdlib.in.h (secure_getenv): Fix typo with return type
15765         in _GL_CXXALIAS_SYS macro.  Reported by John W. Eaton in
15766         <http://lists.gnu.org/r/bug-gnulib/2013-02/msg00057.html>.
15768 2013-02-08  Paul Eggert  <eggert@cs.ucla.edu>
15770         careadlinkat: stop exporting careadlinkatcwd
15771         Only Emacs used it directly, and Emacs no longer needs it.
15772         * NEWS: Document this simplification.
15773         * lib/areadlink.c (careadlinkatcwd): Move here from careadlinkat.c,
15774         and make it static.  Include <stdlib.h>, for abort, and unistd.h,
15775         for readlink.
15776         * lib/careadlinkat.c (careadlinkatcwd): Move to areadlink.c.
15777         Don't include stdlib.h; no longer needed.
15778         * lib/careadlinkat.h (careadlinkatcwd): Remove decl.
15779         * lib/relocwrapper.c: Adjust comment to match new dependencies.
15780         * modules/areadlink (Depends-on): Add readlink.
15781         (Maintainer): Add self.
15782         * modules/careadlinkat (Depends-on): Remove readlink.
15784         extensions: port better to HP-UX
15785         This is merged from git Autoconf.
15786         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
15787         On hosts that need _XOPEN_SOURCE, define it when configuring, too,
15788         so that it's compatible with the value used when compiling.
15790         openpty: fix bug where HAVE_OPENPTY is mistakenly 1
15791         Problem reported by Mats Erik Andersson in
15792         <http://lists.gnu.org/r/bug-gnulib/2013-02/msg00051.html>.
15793         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when the
15794         openpty function exists, not merely when we intend to replace it.
15795         This corrects the 2013-01-31 patch, which mistakenly defined
15796         HAVE_OPENPTY even on hosts that lacked it.
15798 2013-02-07  Paul Eggert  <eggert@cs.ucla.edu>
15800         secure_getenv: fix include typo
15801         * lib/secure_getenv.c: Include config.h.  Somehow I forgot!
15803         secure_getenv: port better to FreeBSD and Solaris
15804         * lib/secure_getenv.c [!HAVE___SECURE_GETENV]:
15805         Include unistd.h if HAVE_ISSETUGID, otherwise define a dummy issetugid.
15806         (secure_getenv) [!HAVE___SECURE_GETENV]: Use getenv if not issetugid.
15807         This works better on BSDish platforms.
15808         * m4/secure_getenv.m4 (gl_PREREQ_SECURE_GETENV):
15809         Test for issetugid if __secure_getenv is missing.
15811 2013-02-06  Paul Eggert  <eggert@cs.ucla.edu>
15813         extensions: port better to MINIX 3, HP-UX, autoheader 2.62
15814         Some of these changes are merged in from git Autoconf.
15815         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
15816         When deciding whether to define _XOPEN_SOURCE, inspect the
15817         preprocessor macro __hpux instead of the more-heavyweight
15818         operation of requiring AC_CANONICAL_HOST.  Define _NETBSD_HOST on
15819         MINIX, for MINIX 3.  Use USE_SYSTEM_EXTENSIONS, not __EXTENSIONS__,
15820         as the key for __EXTENSIONS__.
15822         unistd: avoid namespace pollution on non-glibc systems
15823         * lib/unistd.in.h: #define __need_getopt before including <getopt.h>.
15824         This avoids namespace pollution on non-glibc systems, by causing
15825         gnulib unistd.h to behave more like glibc unistd.h.  I also hope
15826         that this fixes a bug on FreeBSD, reported by Mats Erik Andersson in
15827         <http://lists.gnu.org/r/bug-gnulib/2013-02/msg00027.html>.
15829 2013-02-04  Paul Eggert  <eggert@cs.ucla.edu>
15831         tmpdir: use secure_getenv
15832         * lib/tmpdir.c (__secure_getenv) [!LIBC]:
15833         Define to secure_getenv, not getenv.
15834         * m4/tmpdir.m4 (gt_TMPDIR): Don't check for __secure_getenv,
15835         as that's now secure_getenv's job.
15836         * modules/tmpdir (Depends-on): Add secure_getenv.
15838         tempname: use secure_getenv
15839         * lib/tempname.c (__secure_getenv) [!_LIBC]:
15840         Define to secure_getenv, not getenv.
15841         * modules/tempname (Depends-on):
15842         Add secure_getenv.
15844         secure_getenv: new module
15845         * MODULES.html.sh (Extra functions based on ANSI C 89):
15846         Add secure_getenv.
15847         * doc/glibc-functions/secure_getenv.texi: New file.
15848         * doc/gnulib.texi: Include it.
15849         * lib/secure_getenv.c, m4/secure_getenv.m4, modules/secure_getenv:
15850         New files.
15851         * lib/stdlib.in.h (secure_getenv): New decl.
15852         * m4/stdlib_h.m4 (gl_STDLIB_H, gl_STDLIB_H_DEFAULTS):
15853         * modules/stdlib (stdlib.h):
15854         Add secure_getenv checks.
15856 2013-02-03  Paul Eggert  <eggert@cs.ucla.edu>
15858         getcwd: break fdopendir + save_cwd recursive loop (Bug#13516)
15859         Reported for OS X 10.8.2 by Assaf Gordon in
15860         <http://bugs.gnu.org/13516>.
15861         * lib/getcwd.c (HAVE_OPENAT_SUPPORT): Do not define if
15862         !HAVE_OPENAT && !HAVE_FDOPENDIR.
15863         * m4/getcwd-abort-bug.m4: Reformat to match test-getcwd.c
15864         so that they can be kept in sync more easily.  Avoid PATH_MAX
15865         test on the Hurd.  Sync from test-getcwd.c for errno tests after
15866         mkdir or chdir failure.
15867         * tests/test-getcwd.c (HAVE_OPENAT_SUPPORT): New macro, from
15868         lib/getcwd.c.
15869         (test_abort_bug): Do not test for the deep directory bug unless we
15870         have openat support.  Avoid PATH_MAX test on the Hurd.
15872         regex-tests, regex: fix bug: memset undeclared
15873         * tests/test-regex.c: Don't include regex.h twice.  Include
15874         string.h, to declare memset.  Christensen's report also mentioned
15875         this issue.
15876         * m4/regex.m4 (gl_REGEX): Keep test program more in sync with
15877         test-regex.c, to avoid future problems like this.  Remove
15878         AC_INCLUDES_DEFAULT.  Include <string.h>.  Don't include <regex.h>
15879         twice.
15881         regex-tests: fix link errors on older Solaris
15882         These need to link with @LIBINTL@ to get libintl_gettext.
15883         Problem reported by Tom G. Christensen in
15884         <http://lists.gnu.org/r/bug-gnulib/2013-02/msg00003.html>.
15885         * modules/regex-tests (test_regex_LDADD): New macro.
15887 2013-01-31  Paul Eggert  <eggert@cs.ucla.edu>
15889         regex-tests: new module
15890         * modules/regex-tests, tests/test-regex.c: New files.
15892         regex: fix off-by-one error in configure test
15893         * m4/regex.m4 (gl_REGEX): Test should return 21, not 20.
15895 2013-01-31  Eric Blake  <eblake@redhat.com>
15897         regex: avoid infinite configure test
15898         * m4/regex.m4 (gl_REGEX): Add an alarm escape hatch.
15900 2013-01-31  Reuben Thomas  <rrt@sc3d.org>
15902         openpty: fix bug where HAVE_OPENPTY wasn't defined
15903         See the thread starting at:
15904         http://lists.gnu.org/r/bug-gnulib/2013-01/msg00185.html
15905         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when the
15906         openpty function exists, not merely when we intend to replace it.
15908 2013-01-30  Paul Eggert  <eggert@cs.ucla.edu>
15910         sys_time: port to Solaris 2.6
15911         There is a circularity problem on Solaris 2.6, where <time.h> includes
15912         <sys/time.h> for struct timespec.  The include nesting is gnulib
15913         <time.h>, system <time.h>, gnulib <sys/time.h>, system
15914         <sys/time.h>, gnulib <sys/types.h>, system <sys/types.h>, gnulib
15915         <sys/select.h>, gnulib <signal.h>, system <sys/signal.h>, system
15916         <sys/siginfo.h>; the last, innermost file needs struct
15917         timestruc_t, which is defined in <sys/time.h>, which has not been
15918         fully parsed.  Problem reported by Tom G. Christensen in
15919         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00113.html>.
15920         * lib/sys_select.in.h: Treat Solaris 2.6's problem with
15921         <sys/time.h> and <sys/types.h> like OSF/1's similar problem.
15922         * lib/sys_time.in.h: Redo to resemble sys_select.in.h, which
15923         uses split double-inclusion guards.
15925 2013-01-29  Paul Eggert  <eggert@cs.ucla.edu>
15927         regex: test for buffer overrun
15928         * m4/regex.m4 (gl_REGEX): Add test case, by Andreas Schwab,
15929         for the just-fixed regex bug.
15931 2013-01-29  Andreas Schwab  <schwab@suse.de>
15933         regex: fix buffer overrun in regexp matcher [BZ #15078]
15934         * lib/regexec.c (extend_buffers): Add parameter min_len.
15935         (check_matching): Pass minimum needed length.
15936         (clean_state_log_if_needed): Likewise.
15937         (get_subexp): Likewise.
15939 2013-01-28  Pádraig Brady  <P@draigBrady.com>
15941         mountlist: don't consider "devtmpfs" as dummy
15942         * lib/mountlist.c (ME_DUMMY_0): Remove "devtmpfs"
15943         as there is storage associcated with it.
15945 2013-01-27  Paul Eggert  <eggert@cs.ucla.edu>
15947         futimens-tests, utimens-tests: Depend on gettext.
15948         This works around a problem introduced in my 2013-01-12 patch,
15949         which added @LIBINTL@ to these modules.
15950         * modules/futimens-tests (Depends-on):
15951         * modules/utimens-tests (Depends-on): Add gettext.
15953 2013-01-26  Eric Blake  <eblake@redhat.com>
15955         test-getpeername: fix typo
15956         * tests/test-getpeername.c: Fix typo introduced in fd cleanup.
15958 2013-01-20  Bernhard Voelker  <mail@bernhard-voelker.de>
15960         bootstrap: remove the need for a sorted .gitignore file
15961         * build-aux/bootstrap (insert_sorted_if_absent): Adjust and
15962         rename to insert_if_absent(), so that we don't need or generate
15963         a sorted .gitignore file.  We do require a .gitignore with no
15964         existing duplicate entries and enforce that.
15965         (sort_patterns): Remove this function as we now use the simpler
15966         technigue of inserting blacklist entries at the top of the file,
15967         assuming gnulib won't be inserting !whitelist entries.
15969 2013-01-23  Paul Eggert  <eggert@cs.ucla.edu>
15971         readlinkat: don't depend on gl_FUNC_OPENAT
15972         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Don't require gl_FUNC_OPENAT.
15973         Perhaps a similar change needs to be made for linkat.m4, mkfifoat.m4,
15974         renameat.m4, symlinkat.m4; but one thing at a time.
15976         statat: new module, split out from fstatat
15977         GNU Emacs needs the POSIX-specified fstatat, but not the
15978         gnulib-specified statat and lstat.  Split the latter two into a
15979         new module 'statat'.
15980         * lib/openat.h: Depend on GNULIB_STATAT, not GNULIB_FSTATAT.
15981         * lib/openat.h, lib/statat.c (STATAT_INLINE):
15982         Rename from FSTATAT_INLINE. All uses changed.
15983         * modules/fstatat (Files): Remove lib/statat.c.
15984         (gl_MODULE_INDICATOR([fstatat])): Remove.
15985         (lib_SOURCES): Remove.
15986         (Maintainer): Add self.
15987         * modules/statat, modules/statat-tests, tests/test-statat.c: New files.
15988         * tests/test-fstatat.c (BASE): Don't define if already defined.
15989         (do_stat, do_lstat) [!TEST_STATAT]: Test fstatat instead.
15991 2013-01-22  Paul Eggert  <eggert@cs.ucla.edu>
15993         tests: don't assume fd 99 is closed
15994         * tests/test-accept.c, tests/test-accept4.c, tests/test-bind.c:
15995         * tests/test-close.c, tests/test-connect.c, tests/test-dprintf.c:
15996         * tests/test-dup.c, tests/test-dup2.c, tests/test-faccessat.c:
15997         * tests/test-fchdir.c, tests/test-fchmod.c, tests/test-fchmodat.c:
15998         * tests/test-fchown.c, tests/test-fchownat.c, tests/test-fclose.c:
15999         * tests/test-fdatasync.c, tests/test-fdopen.c, tests/test-fdopendir.c:
16000         * tests/test-fflush.c, tests/test-fgetc.c, tests/test-fputc.c:
16001         * tests/test-fread.c, tests/test-freopen.c, tests/test-fseeko4.c:
16002         * tests/test-fstat.c, tests/test-fstatat.c, tests/test-fsync.c:
16003         * tests/test-ftello4.c, tests/test-ftruncate.c, tests/test-futimens.h:
16004         * tests/test-fwrite.c, tests/test-getpeername.c:
16005         * tests/test-getsockname.c, tests/test-getsockopt.c:
16006         * tests/test-grantpt.c, tests/test-ioctl.c, tests/test-isatty.c:
16007         * tests/test-linkat.c, tests/test-listen.c, tests/test-lseek.c:
16008         * tests/test-mkdirat.c, tests/test-mkfifoat.c, tests/test-openat.c:
16009         * tests/test-pread.c, tests/test-pwrite.c, tests/test-read.c:
16010         * tests/test-readlinkat.c, tests/test-recv.c, tests/test-recvfrom.c:
16011         * tests/test-renameat.c, tests/test-select.h, tests/test-send.c:
16012         * tests/test-sendto.c, tests/test-setsockopt.c, tests/test-shutdown.c:
16013         * tests/test-symlinkat.c, tests/test-ttyname_r.c:
16014         * tests/test-unlinkat.c, tests/test-unlockpt.c:
16015         * tests/test-utimensat.c, tests/test-vdprintf.c, tests/test-write.c:
16016         Close file descriptor 99, instead of assuming it's already closed.
16018 2013-01-21  Paul Eggert  <eggert@cs.ucla.edu>
16020         stpncpy: port to OS X 10.8
16021         * lib/stpncpy.c (__stpncpy): Parenthesize name when defining function.
16022         Problem reported by Assaf Gordon in <http://bugs.gnu.org/13495>.
16024 2013-01-16  Paul Eggert  <eggert@cs.ucla.edu>
16026         unistd: port to recent mingw
16027         * lib/unistd.in.h: Remove special invocation convention for mingw,
16028         which breaks for the latest mingw version.  See John W. Eaton in
16029         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00100.html>.
16031         largefile: port better to Mac OS X 10.5
16032         This patch is backported from Autoconf git.
16033         * m4/largefile.m4 (AC_SYS_LARGEFILE): Use AC_DEFINE, not
16034         AH_VERBATIM, to define _DARWIN_USE_64_BIT_INODE, to avoid problems
16035         with ino_t size being different for configuration time versus
16036         build/run time.  Problem reported by PHO in
16037         <http://lists.gnu.org/r/bug-autoconf/2013-01/msg00040.html>.
16039 2013-01-15  Paul Eggert  <eggert@cs.ucla.edu>
16041         doc: clarify -Werror
16042         * doc/warnings.texi (warnings): -Werror is not always a bad idea;
16043         clarify that it's intended for developers, not for ordinary builds,
16044         and mention --enable-gcc-warnings as one possible use.
16046 2013-01-15  Andoni Morales Alastruey  <ylatuya@gmail.com>  (tiny change)
16048         stdint: fix build with Android's Bionic fox x86
16049         * lib/stdint.in.h: fix check to test if included-fixed/sys/types.h
16050         was already included as _SSIZE_T_DEFINED_ might also be defined
16051         in include/machine/_types.h, which is included by stdio.h
16053 2013-01-13  Paul Eggert  <eggert@cs.ucla.edu>
16055         net_if-tests: port to Solaris 7 + GCC 3.4.6
16056         Problem reported by Tom G. Christensen in
16057         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00091.html>.
16058         * tests/test-net_if.c (ni): Move to next the code that uses it,
16059         so that it's declared only if needed.
16061 2013-01-12  Paul Eggert  <eggert@cs.ucla.edu>
16063         net_if-tests: port to older Solaris
16064         Problem reported by Tom G. Christensen in
16065         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00086.html>.
16066         * modules/net_if-tests (NET_IF_LIB): New substitution.
16067         (test_net_if_LDADD): New makefile macro, which uses NET_IF_LIB.
16068         (HAVE_IF_NAMEINDEX): New C macro.
16069         * tests/test-net_if.c: Bypass most of the test if !HAVE_IF_NAMEINDEX.
16071         system-quote-tests: port to older Solaris
16072         Problem reported by Tom G. Christensen in
16073         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00086.html>.
16074         * tests/test-system-quote-child.c (fopen, fread): Undef.
16076         c-xvasprintf etc.: fix link errors on older Solaris
16077         These need to link with @LIBINTL@ to get libintl_gettext.
16078         Problem reported by Tom G. Christensen in
16079         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00086.html>.
16080         * modules/c-xvasprintf-tests (test_c_xvasprintf_LDADD):
16081         * modules/readtokens-tests (test_readtokens_LDADD): New macros.
16082         * modules/futimens-tests (test_futimens_LDADD):
16083         * modules/utimens-tests (test_utimens_LDADD): Add @LIBINTL@.
16085 2013-01-10  Paul Eggert  <eggert@cs.ucla.edu>
16087         locale: port to Solaris 2.6 and 7 + GNU gettext
16088         * lib/locale.in.h: Just include_next <locale.h> when
16089         being invoked recursively.  This prevents problems on Solaris 2.6 and 7
16090         when combining the localename module with GNU gettext 0.18.2.
16091         Problem reported by Tom G. Christensen in
16092         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00084.html>.
16094 2013-01-09  Paul Eggert  <eggert@cs.ucla.edu>
16096         stdlib: port to Solaris 2.6
16097         Also, the code worked on Solaris 7 through 9 only by accident.
16098         Problem reported by Tom G. Christensen in
16099         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00059.html>.
16100         * lib/stdlib.in.h: If __need_system_stdlib_h is defined,
16101         simply include the system stdlib.h.
16102         * lib/getopt.in.h (__need_system_stdlib_h):
16103         * lib/pthread.in.h (__need_system_stdlib_h):
16104         * lib/unistd.in.h (__need_system_stdlib_h) [!__GLIBC__]:
16105         Define when including <stdlib.h>, to avoid problems at least for
16106         the pthread case on Solaris 2.6 and 7.  These .h files can get by
16107         with the system stdlib.h.
16109 2013-01-06  Paul Eggert  <eggert@cs.ucla.edu>
16111         doc: update main copyright year
16112         * doc/gnulib.texi: Update copyright date.
16114         doc: improve ISO 8601 discussion
16115         * doc/parse-datetime.texi (Combined date and time of day items):
16116         Specify more carefully what formats are supported and what is
16117         done with excess precision.
16119 2013-01-05  Paul Eggert  <eggert@cs.ucla.edu>
16121         doc: avoid small caps
16122         * doc/parse-datetime.texi, doc/regex.texi: Don't use small caps;
16123         they're more trouble than they're worth.  Suggested by Karl Berry
16124         in <http://bugs.gnu.org/13360>.
16126         regex: conform to strict C
16127         * lib/regcomp.c (parse_bracket_exp): Add cast to conform to strict C.
16128         From Aharon Robbins.
16130         gnulib-tool: fix incompatibility with autopoint 0.18.2
16131         * gnulib-tool: Don't indent AM_GNU_GETTEXT_VERSION line.
16132         Problem reported by Tom G. Christensen in
16133         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00053.html>.
16135 2013-01-04  Paul Eggert  <eggert@cs.ucla.edu>
16137         fprintftime: bring back and reword fwrite comment
16138         * lib/strftime.c (cpy) [FPRINTFTIME]: Re-add reworded comment.
16140         stdio: remove now-unnecessary stdio.c
16141         Since stdio.in.h no longer uses inline functions, we no longer
16142         need to compile the extern versions.
16143         * lib/stdio.c: Remove.
16144         * modules/stdio (Files): Remove lib/stdio.c.
16145         (lib_SOURCES): Remove.
16147         unicodeio: depend on stdio, not ignore-value
16148         * lib/unicodeio.c: Do not include ignore-value.h.
16149         (fwrite_success_callback): Use plain fwrite, not ignore_value + fwrite.
16150         * modules/unicodeio (Depends-on): Depend on stdio, not ignore-value.
16152         fprintftime: depend on stdio, not ignore-value
16153         * lib/strftime.c [FPRINTFTIME]: Do not include ignore-value.h.
16154         (cpy) [FPRINTFTIME]: Use plain fwrite, not ignore_value of fwrite,
16155         since the stdio module arranges to silence that warning now.
16156         * modules/fprintftime (Depends-on): Depend on stdio, not ignore-value.
16158 2012-10-04  Simon Josefsson  <simon@josefsson.org>
16160         stdint-tests: Fix expanded-before-required-warning.
16161         * modules/stdint-tests (Depends-on): Use AC_REQUIRE.
16163 2013-01-03  Paul Eggert  <eggert@cs.ucla.edu>
16165         fwrite: silence __wur only for older glibc versions
16166         * lib/stdio.in.h (fwrite): Limit workaround to glibc 2.4 through 2.15.
16167         This will help us remove this workaround some time in the far future.
16169 2013-01-03  Eric Blake  <eblake@redhat.com>
16171         fwrite: silence __wur without using inline
16172         * lib/stdio.in.h (fwrite): Limit warn_unused_result workaround to
16173         just gcc, and in a way that avoids inline issues.
16174         * modules/stdio (Depends-on): Drop extern-inline.
16176 2013-01-03  Jim Meyering  <jim@meyering.net>
16178         update-copyright: avoid copyright notice date corruption
16179         Given a sequence of copyright year numbers in which the final
16180         one was a two-digit number that happened to be a substring of
16181         a preceding four-digit year number, we would mistakenly update
16182         the substring (from two- to four-digit) rather than the two-digit
16183         number at the end, which, combined with the addition of the current
16184         4-digit year number would yield two 5-digit year numbers, e.g.,
16185         here, it would convert the first "99" to "1999, 2013" rather than
16186         the final one:
16187           1991, 99
16188           11999, 20131, 1999
16189         * build-aux/update-copyright: Tighten a regexp.
16190         * tests/test-update-copyright.sh: Add a test case to trigger the bug.
16191         Reported by Joseph Myers in
16192         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/32281
16194 2013-01-01  Paul Eggert  <eggert@cs.ucla.edu>
16196         regex: omit needless signed-pointer casts
16197         * lib/regcomp.c (build_charclass, build_charclass_op):
16198         Use char *, not unsigned char *, for class name and extra.
16199         The char values are always nonnegative so there's no need to
16200         insist on unsigned char * here, and using char * removes the need
16201         for casts.  Reported by Aharon Robbins in
16202         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
16204         regex: support Gawk, which never uses alloca
16205         * lib/regex_internal.h [!_LIBC && !HAVE_ALLOCA]:
16206         Do not include in this case.  Gawk doesn't supply a substitute
16207         alloca.h and doesn't need one.
16209         regex: port __libc_lock_define usage to C89
16210         * lib/regex_internal.h (__libc_lock_define) [!_LIBC]: Remove.
16211         (struct re_dfa_t): Use #ifdef instead.  '__libc_lock_define (, lock)'
16212         does not conform to C89, as it has an empty macro argument.
16213         Reported by Aharon Robbins in
16214         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
16216 2013-01-01  Eric Blake  <eblake@redhat.com>
16218         maint: update all copyright year number ranges
16219         Run "make update-copyright".
16221         version-etc: bump copyright year reported in --version
16222         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2013.
16224 2012-12-31  Eric Blake  <eblake@redhat.com>
16226         sigprocmask-tests: skip test if pid is unexpectedly large
16227         * tests/test-sigprocmask.c (main): Add range check.
16229         git-version-gen: avoid test -z portability glitch
16230         * build-aux/git-version-gen: Prefer portable test spelling, since
16231         git-version-gen is run on more than just developer machines.
16233 2012-12-31  Peter Rosin  <peda@lysator.liu.se>  (tiny change)
16235         git-version-gen: add --fallback option to use if git is not present
16236         * build-aux/git-version-gen: Add support for the new option --fallback,
16237         which comes into play when there is no $tarball_version_file and
16238         git is not working.
16239         (scriptversion): Update.
16241         maint.mk: handle missing git with more grace
16242         * top/maint.mk (no-submodule-changes, public-submodule-commit):
16243         Quietly proceed if git is not present.
16245 2012-12-31  Eric Blake  <eblake@redhat.com>
16247         dup2: work around cygwin bug
16248         * m4/dup2.m4 (gl_FUNC_DUP2): Flush out cygwin core dump.
16249         * lib/dup2.c (rpl_dup2): Work around it.
16250         * doc/posix-functions/dup2.texi (dup2): Document it.
16252 2012-12-30  Paul Eggert  <eggert@cs.ucla.edu>
16254         regex: remove unnecessary dependency on localcharset.h
16255         * lib/regex_internal.h [!_LIBC]: Don't include localcharset.h;
16256         hasn't been needed for years.
16257         * modules/regex (Depends-on): Remove localcharset.
16259         regex: revert single-byte change
16260         * lib/regexec.c (check_node_accept_bytes): Revert previous change
16261         to this function.  This was alredy fixed in a different way, at
16262         bdb56bacd57070eced9998569ffe3f3c37ef5964 in the glibc git; see
16263         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=510219> and
16264         <http://sourceware.org/bugzilla/show_bug.cgi?id=9697>.
16266         regex: simplify based on Gawk version
16267         * lib/regex_internal.c (re_dfa_add_node): Simplify.
16268         Reported by Aharon Robbins in
16269         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
16271 2012-12-29  Paul Eggert  <eggert@cs.ucla.edu>
16273         regex: check that pattern char is single-byte
16274         Reported by Aharon Robbins in
16275         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
16276         * lib/regexec.c (check_node_accept_bytes):
16277         Return 0 if the pattern string has a multibyte character here.
16279         regex: implement rational ranges
16280         Reported by Aharon Robbins in
16281         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
16282         * lib/regcomp.c (build_range_exp) [!_LIBC]:
16283         * lib/regexec.c (check_node_accept_bytes) [!_LIBC]:
16284         Implement rational ranges.
16286         regex: avoid redefining __wctype
16287         Reported by Aharon Robbins in
16288         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
16289         * lib/regex_internal.h (__wctype, __iswctype) [!_LIBC]:
16290         #undef before defining.
16292         regex: port to hosts where malloc (0) == NULL
16293         Reported by Aharon Robbins in
16294         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
16295         * lib/regex_internal.c (re_node_set_alloc):
16296         Don't assume that malloc (0) yields nonnull.
16297         * lib/regex_internal.h (MALLOC_0_IS_NONNULL): New macro.
16298         * m4/regex.m4 (gl_PREREQ_REGEX): Require gl_EEMALLOC.
16299         * modules/regex (Files): Add m4/eealloc.m4.
16301         regex: port to C89
16302         Reported by Aharon Robbins in
16303         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
16304         * lib/regcomp.c (init_word_char): Declaration before statement.
16306         regex: merge glibc changes
16307         Also, copy the license wording from glibc.  This simplifies
16308         merging changes.  gnulib-tool will change the wording to GPL as
16309         appropriate, when importing it to other packages.  The only
16310         glibc change made since the last merge, which needs merging, is:
16311         2012-05-24 Andreas Schwab <schwab@linux-m68k.org>
16312         * lib/regex_internal.h (gettext): Remove use of INTUSE.
16314         * users.txt: Add Emacs.
16316         doc: omit mention of version when not needed
16317         * doc/gnulib-intro.texi (Portability and Application Code):
16318         * doc/gnulib.texi (Brief Overview, Legacy Function Substitutes):
16319         Don't mention particular dates or versions when not necessary, so
16320         that the documentation won't go out of date so quickly.
16322         * doc/intprops.texi (Integer Properties): Fix Texinfo typo.
16324 2012-12-28  Akim Demaille  <akim@lrde.epita.fr>
16326         bootstrap: pass --force to autoreconf.
16327         * build-aux/bootstrap (AUTORECONFFLAGS): New.
16328         Add "--force" so that Automake's ylwrap and other such tools
16329         be updated at each bootstrap invocation.
16330         Use it.
16332 2012-12-27  Paul Eggert  <eggert@cs.ucla.edu>
16334         argp: fix port of port new 'inline' approach to Sun C 5.12 + Solaris 10
16335         The earlier patch forgot to update one of the #if conditions, causing
16336         a problem on Debian testing i386 reported by Mats Erik Andersson
16337         <http://lists.gnu.org/r/bug-gnulib/2012-12/msg00124.html>.
16338         * lib/argp-fmtstream.h (__argp_fmtstream_putc, argp_fmtstream_putc)
16339         (__argp_fmtstream_puts, argp_fmtstream_puts)
16340         (__argp_fmtstream_write, argp_fmtstream_write)
16341         [!_LIBC && !__OPTIMIZE__]: Declare as ARGP_FS_EI, not as extern.
16343         * doc/gnulib-readme.texi: Minor fixups.
16344         (Portability guidelines): Modernize URLs.  Remove some repetition.
16345         (Indent with spaces not TABs): Reword to avoid too-long lines.
16346         Remove some '@ifset standalone' stuff that isn't used.
16348         * doc/gnulib-readme.texi (Portability guidelines):
16349         ctype.h, not ctime.h.
16351         Correct name of POSIX.1-2001.
16352         * doc/posix-functions/fgetc.texi (fgetc):
16353         * doc/posix-functions/fgets.texi (fgets):
16354         * doc/posix-functions/fread.texi (fread):
16355         * doc/posix-functions/fscanf.texi (fscanf):
16356         * doc/posix-functions/getc.texi (getc):
16357         * doc/posix-functions/getchar.texi (getchar):
16358         * doc/posix-functions/scanf.texi (scanf):
16359         POSIX.1-2001, not POSIX-2001.
16361         doc: move README into manual
16362         * README: Move contents to new file doc/gnulib-readme.texi.
16363         Replace with a one-line summary.
16364         * doc/gnulib.texi (Brief Overview): New section,
16365         with old intro preface.  Include gnulib-readme.texi for contents.
16366         (Philosophy): Rename from "Introduction", since this
16367         section no longer introduces the rest.  Write a new preface.
16368         * doc/gnulib-readme.texi: New file, with the old contents of
16369         README texinfo-ized.  This way, the README info appears
16370         in the online and printed manual.
16372 2012-12-25  Ben Pfaff  <blp@cs.stanford.edu>
16374         c-xvasprintf: Fix "implicit declaration of function" GCC warning.
16375         * lib/c-xvasprintf.c: Add missing #include "c-vasprintf.h", for
16376         c_vasprintf() prototype.
16378 2012-12-24  Ben Pfaff  <blp@cs.stanford.edu>
16380         c-vasprintf: Fix "empty declaration" warning reported by GCC.
16381         * lib/c-vasprintf.h: Remove stray semicolon.
16383 2012-12-23  Paul Eggert  <eggert@cs.ucla.edu>
16385         gettext: avoid obsolete macro AM_PROG_MKDIR_P
16386         It is obsolete and is planned to be removed from Automake 1.14; see
16387         <http://lists.gnu.org/r/automake/2012-12/msg00029.html>.
16388         * build-aux/po/Makefile.in.in (install-data, install-data-yes)
16389         (installdirs-data, installdirs-data-yes):
16390         Use $(MKDIR_P), not $(mkdir_p).
16391         * m4/intl.m4 (AM_INTL_SUBDIR):
16392         * m4/po.m4 (AM_PO_SUBDIRS):
16393         Require AC_PROG_MKDIR_P, not AM_PROG_MKDIR_P.
16395 2012-12-22  Paul Eggert  <eggert@cs.ucla.edu>
16397         argp: port new 'inline' approach to Sun C 5.12 + Solaris 10
16398         On this platform, we are not optimizing but we are using
16399         the substitute for extern inlines, so compile as if
16400         C99-style extern inline, or a substitute, is available.
16401         * lib/argp-fmtstream.h (argp_fmtstream_set_lmargin)
16402         (__argp_fmtstream_set_lmargin, argp_fmtstream_set_rmargin)
16403         (__argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin)
16404         (__argp_fmtstream_set_wmargin, argp_fmtstream_point)
16405         (__argp_fmtstream_point) [!_LIBC && !__OPTIMIZE__]:
16406         Declare as ARGP_FS_EI, not as extern.
16407         * lib/argp.h (argp_usage, __argp_usage, _option_is_short)
16408         (__option_is_short, _option_is_end, __option_is_end)
16409         [!_LIBC && __USE_EXTERN_INLINES]:
16410         Declare as ARGP_EI, not as extern.
16412 2012-12-21  Paul Eggert  <eggert@cs.ucla.edu>
16414         AC_PROG_MKDIR_P: port workaround to pre-2.62 Autoconf
16415         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P, AC_C_RESTRICT):
16416         Use m4_ifndef([AC_AUTOCONF_VERSION], ...), not
16417         m4_if(m4_version_compare(m4_defn([AC_AUTOCONF_VERSION]),[2.62]),[-1],
16418         ...), as the latter is fatal with older Autoconfs.
16419         Problem reported and fix suggested by Eric Blake in thread starting at
16420         <http://lists.gnu.org/r/bug-gnulib/2012-12/msg00097.html>.
16422 2012-12-20  Paul Eggert  <eggert@cs.ucla.edu>
16424         AC_PROG_MKDIR_P: don't workaround if not buggy
16425         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P):
16426         Define only for Autoconf versions before 2.62.
16427         (AC_C_RESTRICT): Use documented AC_AUTOCONF_VERSION, not
16428         undocumented m4_PACKAGE_VERSION, for consistency with the
16429         abovementioned change to AC_PROG_MKDIR_P.  This should suffice
16430         since we're checking for 2.62 or later, and AC_AUTOCONF_VERSION
16431         was introduced in 2.62.
16433 2012-12-15  Ben Pfaff  <blp@cs.stanford.edu>
16435         New 'c-*printf' modules for formatted output in C locale.
16437         New module 'c-vasnprintf'.
16438         * modules/c-vasnprintf: New file.
16439         * lib/c-vasnprintf.c: New file.
16440         * lib/c-vasnprintf.h: New file.
16442         New module 'c-snprintf'.
16443         * modules/c-snprintf: New file.
16444         * modules/c-snprintf-tests: New file.
16445         * lib/c-snprintf.c: New file.
16446         * lib/c-snprintf.h: New file.
16447         * tests/test-c-snprintf.c: New file.
16448         * tests/test-c-snprintf.sh: New file.
16450         New module 'c-vsnprintf'.
16451         * modules/c-vsnprintf: New file.
16452         * modules/c-vsnprintf-tests: New file.
16453         * lib/c-vsnprintf.c: New file.
16454         * lib/c-vsnprintf.h: New file.
16455         * tests/test-c-vsnprintf.c: New file.
16456         * tests/test-c-vsnprintf.sh: New file.
16458         New module 'c-vasprintf'.
16459         * modules/c-vasprintf: New file.
16460         * modules/c-vasprintf-tests: New file.
16461         * lib/c-asprintf.c: New file.
16462         * lib/c-vasprintf.c: New file.
16463         * lib/c-vasprintf.h: New file.
16464         * tests/test-c-vasprintf.c  +: New file.
16465         * tests/test-c-vasprintf.sh: New file.
16467         New module 'c-xvasprintf'.
16468         * modules/c-xvasprintf: New file.
16469         * modules/c-xvasprintf-tests: New file.
16470         * lib/c-xasprintf.c: New file.
16471         * lib/c-xvasprintf.c: New file.
16472         * lib/c-xvasprintf.h: New file.
16473         * tests/test-c-xvasprintf.c: New file.
16474         * tests/test-c-xvasprintf.sh: New file.
16476 2012-12-18  Paul Eggert  <eggert@cs.ucla.edu>
16478         argp: better 'inline'
16479         Use extern-inline module to declare extern inline functions.
16480         This avoids some bogus warning diagnostics.  Problem discovered
16481         when modifying GNU tar to use the manywarnings module.
16482         * lib/argp.h, lib/argp-xinl.c (ARGP_EI) [!_LIBC]:
16483         * lib/argp-fmtstream.h, lib/argp-fs-xinl.c (ARGP_FS_EI) [!_LIBC]:
16484         Define based on extern-inline.
16485         * modules/argp (Depends-on): Add extern-inline.
16487 2012-12-17  Paul Eggert  <eggert@cs.ucla.edu>
16489         filemode, sys_stat: Handle MPX files a la AIX.
16490         * lib/filemode.c (ftypelet): Report 'm' for MPX files.
16491         * lib/sys_stat.in.h (S_ISMPX): New macro.
16492         * tests/test-sys_stat.c: Add tests for MPX files.
16494 2012-12-16  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
16496         x-to-1: honor $PERL
16497         * build-aux/x-to-1.in: Run $HELP2MAN via $PERL so that the user gets
16498         a chance to use his preferred version of Perl.  This is typically
16499         required by Darwin users whose default /usr/bin/perl does not have all
16500         the libraries required by help2man, and who need to use their MacPorts
16501         installation of Perl instead.
16503 2012-12-16  Akim Demaille  <akim@lrde.epita.fr>
16505         gnu-web-doc-update: add all the new files, even in new directories
16506         See http://lists.gnu.org/r/bug-gnulib/2012-12/msg00057.html
16507         * build-aux/gnu-web-doc-update (--dry-run, $dryrun): New.
16508         Use it.
16509         (main): Don't use cvsutils to get the list of unknown files,
16510         just add all the existing files and directories.
16512 2012-12-16  Akim Demaille  <akim@lrde.epita.fr>
16514         gnu-web-doc-update: improve --help
16515         * build-aux/gnu-web-doc-update: Move comments into --help.
16517 2012-12-07  Eric Wong  <normalperson@yhbt.net>
16519         mountlist: recognize more "dummy" file systems
16520         * lib/mountlist.c (ME_DUMMY_0):
16521         Add these dummy FS names to the list:
16522         - "debugfs" virtual filesystem for kernel debugging
16523         - "devpts" PTY slave filesystem
16524         - "devtmpfs" device filesystem on top of tmpfs/ramfs
16525         - "fusectl" control filesystem for FUSE
16526         - "mqueue" enumerates POSIX message queues
16527         - "rpc_pipefs" kernel <-> userspace bridge for NFS
16528         - "sysfs" is for exporting kernel objects
16529         - "devfs" device filesystem for Linux 2.4 and FreeBSD
16531 2012-12-11  Paul Eggert  <eggert@cs.ucla.edu>
16533         extern-inline: avoid incompatibility with Darwin Libc
16534         * m4/extern-inline.m4 (_GL_INLINE, _GL_EXTERN_INLINE): Do not use
16535         extern inline if __APPLE__.  Use _GL_UNUSED in the non-inline branch.
16536         Problem reported by Akim Demaille in
16537         <http://lists.gnu.org/r/bug-gnulib/2012-12/msg00023.html>.
16539 2012-12-11  Simon Josefsson  <simon@josefsson.org>
16541         gnupload: Work with GnuPG using gpg-agent (for smartcards).
16542         * build-aux/gnupload: If GnuPG is configured to use gpg-agent,
16543         let it handle password prompting.
16545 2012-12-10  Eli Zaretskii  <eliz@gnu.org>
16547         canonicalize, canonicalize-lgpl: Microsoft Windows prefix fixes
16548         * lib/canonicalize.c (canonicalize_filename_mode):
16549         * lib/canonicalize-lgpl.c (__realpath): Recompute prefix_len after
16550         fetching the current directory.  Don't overrun the beginning of
16551         rpath if there's no slashes after the MS-Windows drive letter.
16553 2012-12-08  Stefano Lattarini  <stefano.lattarini@gmail.com>
16555         maint.mk: avoid extra forks
16556         * top/maint.mk (_cfg_mk): The GNU make manual documents that
16557         "$(wildcard FILE)" expands to empty if FILE doesn't exist.
16558         So use that instead of "$(shell test -f FILE && echo FILE)".
16560 2012-12-07  Paul Eggert  <eggert@cs.ucla.edu>
16562         vasnprintf: fix ASCII_ONLY typo
16563         * lib/unistdio/u8-vasnprintf.c (FCHAR_T_ONLY_ASCII):
16564         * lib/unistdio/u16-vasnprintf.c (FCHAR_T_ONLY_ASCII):
16565         * lib/unistdio/u32-vasnprintf.c (FCHAR_T_ONLY_ASCII):
16566         New macro, replacing ASCII_ONLY.  This fixes a typo.  See thread at
16567         <http://lists.gnu.org/r/bug-gnulib/2012-12/msg00021.html>.
16569 2012-12-05  Paul Eggert  <eggert@cs.ucla.edu>
16571         list, oset, xlist, xoset: fix extern inline issue with C99
16572         This was introduced by my recent changes for 'inline'.
16573         Problem reported for gettext by Daiki Ueno in
16574         <http://lists.gnu.org/r/bug-gnulib/2012-12/msg00000.html>.
16575         * lib/gl_list.h (gl_list_nx_create_empty, gl_list_create)
16576         (gl_list_nx_create, gl_list_size, gl_list_node_value)
16577         (gl_list_node_set_value, gl_list_node_nx_set_value, gl_list_next_node)
16578         (gl_list_previous_node, gl_list_get_at)
16579         (gl_list_nx_set_at, gl_list_search, gl_list_search_from)
16580         (gl_list_search_from_to, gl_list_indexof, gl_list_indexof_from)
16581         (gl_list_indexof_from_to, gl_list_nx_add_first, gl_list_nx_add_last)
16582         (gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at)
16583         (gl_list_remove_node, gl_list_remove_at, gl_list_remove, gl_list_free)
16584         (gl_list_iterator, gl_list_iterator_from_to, gl_list_iterator_next)
16585         (gl_list_iterator_free, gl_sortedlist_search)
16586         (gl_sortedlist_search_from_to, gl_sortedlist_indexof)
16587         (gl_sortedlist_indexof_from_to, gl_sortedlist_add, gl_sortedlist_nx_add)
16588         (gl_sortedlist_remove):
16589         * lib/gl_oset.h (go_oset_nx_create_empty, gl_oset_size, gl_oset_search)
16590         (gl_oset_search_atleast, gl_oset_nx_add, gl_oset_remove, gl_oset_free)
16591         (gl_oset_iterator, gl_oset_iterator_next, gl_oset_iterator_free):
16592         * lib/gl_xlist.h (gl_list_create_empty, gl_list_create)
16593         (gl_list_node_set_value, gl_list_set_at, gl_list_add_first)
16594         (gl_list_add_last, gl_list_add_before, gl_list_add_after)
16595         (gl_list_add_at, gl_sortedlist_add):
16596         * lib/gl_xoset.h (gl_oset_create_empty, gl_oset_add):
16597         Wrap these extern decls inside "#if 0", because they are implemented
16598         as inline functions, and extern inline is not what's wanted here.
16599         It would simplify these .h files to remove the extern decls entirely,
16600         although a downside would be less-clear separation between
16601         specification and implementation.
16603 2012-11-29  Paul Eggert  <eggert@cs.ucla.edu>
16605         sys_stat: no 'static inline'
16606         * lib/sys_stat.in.h (rpl_mkdir): Now static, not static inline.
16607         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Do not require AC_C_INLINE.
16609         extern-inline: no 'static inline'
16610         * m4/extern-inline.m4 (gl_EXTERN_INLINE):
16611         Do not require AC_C_INLINE.
16612         (_GL_INLINE, _GL_EXTERN_INLINE): Define as 'static', not as
16613         'static inline', for older compilers.
16615         snippet/warn-on-use: no 'static inline'
16616         * build-aux/snippet/warn-on-use.h:
16617         Remove unnecessary 'inline' in comment.
16619         rbtree-list, rbtreehash-list: no 'static inline'
16620         * lib/gl_anyrbtree_list2.h (rotate_left, rotate_right):
16621         * lib/gl_anytree_list2.h (node_at):
16622         * lib/gl_anytreehash_list1.h (hash_resize_after_add)
16623         (gl_oset_first, add_nodes_to_buckets):
16624         Now static, not static inline.
16626         regex: no 'static inline'
16627         * lib/regex_internal.c (calc_state_hash):
16628         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain)
16629         (bitset_empty, bitset_set_all, bitset_copy, bitset_not, bitset_merge)
16630         (bitset_mask, re_string_char_size_at, re_string_wchar_at):
16631         Now static, not static inline.
16632         (inline) [__GNUC__ < 3 && _LIBC]:
16633         Remove macro; no longer needed.
16635         xvasprintf: no 'static inline'
16636         * lib/xvasprintf.c (xstrcat):
16637         Now static, not static inline.
16638         * m4/xvasprintf.m4 (gl_XVASPRINTF):
16639         Do not require AC_C_INLINE.
16641         parse-datetime, parse-duration: no 'static inline'
16642         * lib/parse-datetime.y (to_uchar):
16643         * lib/parse-duration.c (str_const_to_ul, str_const_to_l)
16644         (scale_n_add):
16645         Now static, not static inline.
16646         * m4/parse-datetime.m4 (gl_PARSE_DATETIME):
16647         * modules/parse-duration (configure.ac):
16648         Do not require AC_C_INLINE.
16650         getaddrinfo: no 'static inline'
16651         * lib/getaddrinfo.c (validate_family):
16652         Now static, not static inline.
16653         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO):
16654         Do not require AC_C_INLINE.
16656         ftruncate, fts, lstat, openat, raise: no 'static inline'
16657         * lib/ftruncate.c (chsize_nothrow):
16658         * lib/fts.c (opendirat, diropen):
16659         * lib/lstat.c (orig_lstat):
16660         * lib/openat.c (orig_openat):
16661         * lib/raise.c (raise_nothrow):
16662         Now static, not static inline.
16663         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE):
16664         * m4/fts.m4 (gl_FUNC_FTS_CORE):
16665         * m4/lstat.m4 (gl_PREREQ_LSTAT):
16666         * m4/openat.m4 (gl_PREREQ_OPENAT):
16667         * m4/raise.m4 (gl_PREREQ_RAISE):
16668         Do not require AC_C_INLINE.
16670         fflush, stat: no 'static inline'
16671         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
16672         (clear_ungetc_buffer, disable_seek_optimization)
16673         (restore_seek_optimization, update_fpos_cache):
16674         * lib/stat.c (orig_stat):
16675         Now static, not static inline.
16676         * lib/fflush.c (disable_seek_optimization, restore_seek_optimization)
16677         (update_fpos_cache):
16678         Define only if ! (defined _IO_ftrylockfile || __GNU_LIBRARY__ == 1).
16679         * m4/fflush.m4 (gl_PREREQ_FFLUSH):
16680         * m4/stat.m4 (gl_PREREQ_STAT):
16681         Do not require AC_C_INLINE.
16683         error, filevercmp: no 'static inline'
16684         * lib/error.c (is_open, flush_stdout):
16685         * lib/filevercmp.c (order):
16686         Now static, not static inline.
16687         * m4/error.m4 (gl_PREREQ_ERROR):
16688         * modules/filevercmp (configure.ac):
16689         Do not require AC_C_INLINE.
16691         dup, execute, fatal-signal, etc.: no 'static inline'
16692         * lib/dup.c (dup_nothrow):
16693         * lib/execute.c (nonintr_close, nonintr_open):
16694         * lib/fatal-signal.c (uninstall_handlers, install_handlers):
16695         * lib/fopen.c (orig_fopen):
16696         * lib/freadseek.c (freadptrinc):
16697         * lib/freopen.c (orig_freopen):
16698         * lib/fstat.c (orig_fstat, fstat_nothrow):
16699         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit)
16700         (get_rusage_as_via_iterator):
16701         * lib/get-rusage-data.c (get_rusage_data_via_setrlimit):
16702         * lib/getdtablesize.c (_setmaxstdio_nothrow):
16703         * lib/isatty.c (_isatty_nothrow):
16704         * lib/open.c (orig_open):
16705         * lib/read.c (read_nothrow):
16706         * lib/sigprocmask.c (signal_nothrow):
16707         * lib/spawn-pipe.c (nonintr_close, nonintr_open):
16708         * lib/vasnprintf.c (MAX_ROOM_NEEDED):
16709         * lib/wait-process.c (unregister_slave_subprocess):
16710         * lib/write.c (write_nothrow):
16711         Now static, not static inline.
16712         * lib/spawn-pipe.c (nonintr_open): Define only if
16713         (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__.
16714         * m4/dup.m4 (gl_PREREQ_DUP):
16715         * m4/execute.m4 (gl_EXECUTE):
16716         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL):
16717         * m4/fopen.m4 (gl_PREREQ_FOPEN):
16718         * m4/freadseek.m4 (gl_FUNC_FREADSEEK):
16719         * m4/freopen.m4 (gl_PREREQ_FREOPEN):
16720         * m4/fstat.m4 (gl_PREREQ_FSTAT):
16721         * m4/getdtablesize.m4 (gl_PREREQ_GETDTABLESIZE):
16722         * m4/isatty.m4 (gl_PREREQ_ISATTY):
16723         * m4/open.m4 (gl_PREREQ_OPEN):
16724         * m4/read.m4 (gl_PREREQ_READ):
16725         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK):
16726         * m4/spawn-pipe.m4 (gl_SPAWN_PIPE):
16727         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF):
16728         * m4/wait-process.m4 (gl_WAIT_PROCESS):
16729         * m4/write.m4 (gl_PREREQ_WRITE):
16730         * modules/get-rusage-as, modules/get-rusage-data (configure.ac):
16731         Do not require AC_C_INLINE.
16733         c-strtod, memcoll, readutmp: no 'static inline'
16734         * lib/c-strtod.c (c_locale):
16735         * lib/memcoll.c (strcoll_loop):
16736         * lib/readutmp.c (desirable_utmp_entry):
16737         Now static, not static inline.
16738         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD):
16739         * m4/memcoll.m4 (gl_MEMCOLL):
16740         * m4/readutmp.m4 (gl_READUTMP):
16741         Do not require AC_C_INLINE.
16743         arctwo, md4, md5, sha1, sha256, sha512: no 'static inline'
16744         * lib/arctwo.c (to_uchar):
16745         * lib/md4.c (set_uint32):
16746         * lib/md5.c (set_uint32):
16747         * lib/sha1.c (set_uint32):
16748         * lib/sha256.c (set_uint32):
16749         * lib/sha512.c (set_uint64):
16750         Now static, not static inline.  This is a bit simpler, and doesn't
16751         affect performance with GCC and default optimization.
16752         * m4/arctwo.m4 (gl_ARCTWO):
16753         * m4/md4.m4 (gl_MD4):
16754         * m4/md5.m4 (gl_MD5):
16755         * m4/sha1.m4 (gl_SHA1):
16756         * m4/sha256.m4 (gl_SHA256):
16757         * m4/sha512.m4 (gl_SHA512):
16758         Do not require AC_C_INLINE.
16760         cond, lock, thread: better 'inline'
16761         * lib/glthread/cond.c, lib/glthread/cond.h (_GLTHREAD_COND_INLINE):
16762         * lib/glthread/thread.c, lib/glthread/thread.h (_GLTHREAD_THREAD_INLINE):
16763         New macros.  Use them instead of static inline, for header functions.
16764         * lib/glthread/cond.c (gl_waitqueue_init, gl_waitqueue_remove)
16765         (gl_waitqueue_notify_first, gl_waitqueue_notify_all):
16766         * lib/glthread/lock.c (gl_waitqueue_init)
16767         (gl_waitqueue_notify_first, gl_waitqueue_notify_all):
16768         * lib/glthread/thread.c (get_current_thread_handle):
16769         Change 'static inline' to 'inline'.
16770         * lib/glthread/cond.h, lib/glthread/thread.h:
16771         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
16772         * m4/cond.m4 (gl_COND):
16773         * m4/lock.m4 (gl_PREREQ_LOCK):
16774         * m4/thread.m4 (gl_THREAD):
16775         Do not require AC_C_INLINE.
16776         * modules/cond, modules/thread (Depends-on): Add extern-inline.
16778         chdir-long, cycle-check, savewd: better 'inline'
16779         * lib/chdir-long.c (cdb_init, cdb_fchdir, cdb_free)
16780         (find_non_slash):
16781         * lib/cycle-check.c (is_zero_or_power_of_two):
16782         * lib/savewd.c (savewd_delegating):
16783         Change 'static inline' to 'inline'.
16784         * lib/savewd.c, lib/savewd.h (SAVEWD_INLINE): New macro.
16785         Replace all remaining uses of 'static inline' with it.
16786         * lib/savewd.h:
16787         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
16788         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG):
16789         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
16790         * m4/savewd.m4 (gl_SAVEWD):
16791         Do not require AC_C_INLINE.
16792         * modules/savewd (Depends-on): Add extern-inline.
16794         base32, base64: no need for 'inline'
16795         * lib/base32.c (to_uchar, get_8, decode_8):
16796         * lib/base64.c (to_uchar, get_4, decode_4):
16797         Change 'static inline' to 'inline'.
16798         * m4/base32.m4 (gl_PREREQ_BASE32):
16799         * m4/base64.m4 (gl_PREREQ_BASE64):
16800         Do not require AC_C_INLINE.
16802         array-oset, linkedhash-list, rbtree-oset: no need for 'inline'
16803         * lib/gl_array_oset.c (gl_array_nx_add_at):
16804         (gl_array_remove_at):
16805         * lib/gl_linkedhash_list.c (hash_resize_after_add)
16806         (add_to_bucket, remove_from_bucket):
16807         * lib/gl_rbtree_oset.c (rotate_left, rotate_right):
16808         Change 'static inline' to 'static', as it's simpler to omit
16809         'inline' unless there's a significant performance advantage.
16811         list, oset, xlist, xoset, xsublist: simplify via extern inline
16812         * lib/gl_list.h, lib/gl_list.c (GL_LIST_INLINE):
16813         * lib/gl_oset.c, lib/gl_oset.h (GL_OSET_INLINE):
16814         * lib/gl_xlist.c, lib/gl_xlist.h (GL_XLIST_INLINE):
16815         * lib/gl_xoset.c, lib/gl_xoset.h (GL_XOSET_INLINE):
16816         * lib/gl_xsublist.c, lib/gl_xsublist.h (GL_XSUBLIST_INLINE):
16817         New macro.  Replace all uses of 'static inline' with it.
16818         [HAVE_INLINE]: Implement functions as *_INLINE functions,
16819         instead of as macros FOO that are defined to static inline
16820         functions FOO_inline.
16821         * lib/gl_list.c, lib/gl_oset.c, lib/gl_xlist.c, lib/gl_xoset.c:
16822         * lib/gl_xsublist.c:
16823         Reimplement from scratch, by defining the corresponding *_INLINE
16824         macro and including the corresponding .h file.  This is simpler.
16825         * modules/list, modules/oset, modules/xlist, modules/xoset:
16826         (Files): Remove m4/gl_list.m4.
16827         (configure.ac): Remove gl_LIST.
16828         * m4/gl_list.m4: Remove.
16829         * modules/list, modules/oset, modules/xlist, modules/xoset:
16830         * modules/xsublist:
16831         (Depends-on): Depend on extern-inline, not inline.
16833         xalloc: better 'inline'
16834         * lib/xmalloc.c, lib/xalloc.h (XALLOC_INLINE):
16835         New macro.  Replace all uses of 'static inline' with it.
16836         (static_inline): Remove.
16837         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
16838         Let 'extern inline' do the work automatically, instead of doing
16839         it by hand.
16840         * m4/xalloc.m4 (gl_PREREQ_XALLOC, gl_PREREQ_XMALLOC):
16841         Remove.  All uses removed.
16842         * modules/xalloc (Depends-on): Remove 'inline'.  Add 'extern-inline'.
16844         gethrxtime: better 'inline'
16845         * lib/xtime.c: New file.
16846         * lib/gethrxtime.c, lib/gethrxtime.h (GETHRXTIME_INLINE):
16847         * lib/xtime.h (XTIME_INCLUDE):
16848         New macros.  Replace all uses of 'static inline' with them.
16849         * lib/gethrxtime.c (gethrxtime): Define only if
16850         ! (HAVE_ARITHMETIC_HRTIME_T && HAVE_DECL_GETHRTIME), since
16851         this source file is now always compiled, because of the extern inline.
16852         * lib/gethrxtime.h, lib/xtime.h:
16853         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
16854         * m4/gethrxtime.m4 (gl_GETHRXTIME): Do not check for clock macros
16855         if gethrtime works, as they're not needed in that case.
16856         (gl_XTIME): Do not require AC_C_INLINE.
16857         (gl_PREREQ_GETHRXTIME): Remove; all uses removed, as it's always
16858         compiled now.  Move the check into gl_GETHRXTIME.
16859         * modules/gethrxtime (Files, lib_SOURCES): Add lib/xtime.c.
16860         (Depends-on): Add extern-inline.
16861         (configure.ac): gethrxtime is always compiled now.
16862         (lib_SOURCES): Add gethrxtime.c.
16864         wctype-h: better 'inline'
16865         * lib/wctype-h.c: New file.
16866         * lib/wctype.in.h (_GL_WCTYPE_INLINE):
16867         New macro.  Replace all uses of 'static inline' with it.
16868         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
16869         * m4/wctype_h.m4 (gl_WCTYPE_H): Do not require AC_C_INLINE.
16870         * modules/wctype-h (Files, lib_SOURCES): Add lib/wctype-h.c.
16871         (Depends-on): Add extern-inline.
16873         unistd: better 'inline'
16874         * lib/unistd.c: New file.
16875         * lib/unistd.in.h (_GL_UNISTD_INLINE):
16876         New macro.  Replace all uses of 'static inline' with it.
16877         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
16878         * m4/unistd_h.m4 (gl_UNISTD_H): Do not require AC_C_INLINE.
16879         * modules/unistd (Files, lib_SOURCES): Add lib/unistd.c.
16880         (Depends-on): Add extern-inline.
16882         sys_socket: better 'inline'
16883         * lib/sys_socket.c: New file.
16884         * lib/sys_socket.in.h (_GL_SYS_SOCKET_INLINE):
16885         New macro.  Replace all uses of 'static inline' with it.
16886         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
16887         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Do not require AC_C_INLINE.
16888         * modules/sys_socket (Files, lib_SOURCES): Add lib/sys_socket.c.
16889         (Depends-on): Add extern-inline.
16891         stdio: better 'inline'
16892         * lib/stdio.c: New file.
16893         * lib/stdio.in.h (_GL_STDIO_INLINE):
16894         New macro.  Replace all uses of 'static inline' with it.
16895         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
16896         * m4/stdio_h.m4 (gl_STDIO_H): Do not require AC_C_INLINE.
16897         * modules/stdio (Files, lib_SOURCES): Add lib/stdio.c.
16898         (Depends-on): Add extern-inline.
16900         sigaction: better 'inline'
16901         * lib/sig-handler.c: New file.
16902         * lib/sig-handler.h (SIG_HANDLER_INLINE):
16903         New macro.  Replace all uses of 'static inline' with it.
16904         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
16905         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): Do not require AC_C_INLINE.
16906         * modules/sigaction (Files, lib_SOURCES): Add lib/sig-handler.c.
16907         (Depends-on): Add extern-inline.
16909         selinux-h: better 'inline'
16910         * lib/se-context.c, lib/se-selinux.c: New files.
16911         * lib/getfilecon.c (map_to_failure): Omit 'inline' for static function.
16912         * lib/se-context.in.h (SE_CONTEXT_INLINE):
16913         New macro.  Replace all uses of 'static inline' with it.
16914         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
16915         * lib/se-selinux.in.h (SE_SELINUX_INLINE):
16916         New macro.  Replace all uses of 'static inline' with it.
16917         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
16918         * modules/selinux-h (Files, lib_SOURCES):
16919         Add lib/se-context.c, lib/se-selinux.c.
16920         (Depends-on): Add extern-inline.
16921         (configure.ac): Do not require AC_C_INLINE.
16923         pthread: better 'inline'
16924         * lib/pthread.c: New file.
16925         * lib/pthread.in.h (_GL_PTHREAD_INLINE):
16926         New macro.  Replace all uses of 'static inline' with it.
16927         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
16928         * m4/pthread.m4 (gl_PTHREAD_CHECK):
16929         Add AC_LIBOBJ([pthread]).  Do not require AC_C_INLINE.
16930         * modules/pthread (Files): Add lib/pthread.c.
16931         (Depends-on): Add extern-inline.
16933         math: better 'inline'
16934         * lib/math.c: New file.
16935         * lib/math.in.h (_GL_MATH_INLINE):
16936         New macro.  Replace all uses of 'static inline' with it.
16937         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
16938         * m4/math_h.m4 (gl_MATH_H):
16939         Do not require AC_C_INLINE.
16940         * modules/math (Files, lib_SOURCES):
16941         Add lib/math.c.
16942         (Depends-on): Add extern-inline.
16944         count-one-bits: better 'inline'
16945         * lib/count-one-bits.c: New file.
16946         * lib/count-one-bits.h (COUNT_ONE_BITS_INLINE):
16947         New macro.  Replace all uses of 'static inline' with it.
16948         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
16949         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS):
16950         Do not require AC_C_INLINE.
16951         * modules/count-one-bits (Files, lib_SOURCES):
16952         Add lib/count-one-bits.c.
16953         (Depends-on): Add extern-inline.
16955         count-leading-zeros: better 'inline'
16956         * lib/count-leading-zeros.c: New file.
16957         * lib/count-leading-zeros.h (COUNT_LEADING_ZEROS_INLINE):
16958         New macro.  Replace all uses of 'static inline' with it.
16959         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
16960         * m4/count-leading-zeros.m4 (gl_COUNT_LEADING_ZEROS):
16961         Do not require AC_C_INLINE.
16962         * modules/count-leading-zeros (Files, lib_SOURCES):
16963         Add lib/count-leading-zeros.c.
16964         (Depends-on): Add extern-inline.
16966         bitrotate: better 'inline'
16967         * lib/bitrotate.c: New file.
16968         * lib/bitrotate.h (BITROTATE_INLINE):
16969         New macros.
16970         Replace all uses of 'static inline' with them.
16971         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
16972         * modules/bitrotate (Files, lib_SOURCES): Add lib/bitrotate.c.
16973         (Depends-on): Add extern-inline.
16974         (configure.ac): Do not require AC_C_INLINE.
16976 2012-11-20  Theophile Ranquet  <ranquet@lrde.epita.fr>
16978         maint.mk: avoid gratuitous failure
16979         Reported by Stefano Lattarini in
16980         <http://lists.gnu.org/r/bug-bison/2012-11/msg00022.html>
16981         * top/maint.mk (public-submodule-commit): Quote more safely.
16983 2012-11-20  Eli Zaretskii  <eliz@gnu.org>
16985         canonicalize, canonicalize-lgpl: support MS-Windows file names
16986         See <http://lists.gnu.org/r/bug-gnulib/2012-11/msg00074.html>
16987         for test cases, which it'd be nice to add at some point.
16988         * lib/canonicalize.c, lib/canonicalize-lgpl.c: Include dosname.h.
16989         * lib/canonicalize.c (canonicalize_filename_mode):
16990         * lib/canonicalize-lgpl.c (__realpath):
16991         Use FILE_SYSTEM_PREFIX_LEN instead of assuming that the first
16992         slash is at the beginning of the file name.  Use ISSLASH, instead
16993         of a literal '/'.  Use IS_ABSOLUTE_FILE_NAME instead of comparing
16994         the first character with '/'.  Test for
16995         DOUBLE_SLASH_IS_DISTINCT_ROOT only if the file name does not begin
16996         with a drive letter.
16997         * lib/canonicalize.c (SLASHES): New macro.
16998         (canonicalize_filename_mode): Use SLASHES instead of a literal "/".
17000 2012-11-17  Dmitry V. Levin  <ldv@altlinux.org>
17002         fts: introduce FTS_VERBATIM
17003         * lib/fts_.h (FTS_VERBATIM): New bit flag.
17004         (FTS_OPTIONMASK, FTS_NAMEONLY, FTS_STOP): Adjust.
17005         * lib/fts.c (fts_open): Honor it.
17007 2012-11-09  Pádraig Brady  <P@draigBrady.com>
17009         getlogin-tests: allow errno == ENXIO
17010         * tests/test-getlogin.c (main): Skip tests if getlogin fails
17011         with errno == ENXIO (No controlling tty).
17012         getlogin_r-tests: Likewise. Also allow errno == ENOENT
17013         * tests/test-getlogin_r.c (main): Skip tests if getlogin_r fails
17014         with errno == ENOENT.  This was reported to happen in various
17015         situations on GNU/Linux.
17017 2012-11-09  Paul Eggert  <eggert@cs.ucla.edu>
17019         getlogin-tests: allow errno == ENOENT
17020         * tests/test-getlogin.c (main): Skip tests if getlogin fails
17021         with errno == ENOENT.  This happened to me on Ubuntu 12.04.1 x86,
17022         when running a test in an Emacs shell buffer.
17024 2012-11-08  Jim Meyering  <jim@meyering.net>
17026         tests/nap.h: avoid warning about unused variable
17027         * tests/nap.h (nap_works): Remove now-unused declaration of "result".
17029         prefix-gnulib-mk: avoid overzealous "lib/"-prefix addition
17030         * build-aux/prefix-gnulib-mk (prefix): Tighten a regexp to require
17031         white space before each of the special-cased file names, to avoid
17032         adding "lib/" after $(libdir)/.  Reported by Matias A. fonzo
17033         in http://bugs.gnu.org/12830.
17035 2012-11-08  Paul Eggert  <eggert@cs.ucla.edu>
17037         fcntl-h: default O_SEARCH, O_EXEC back to O_RDONLY
17038         O_PATH doesn't work with Linux kernel 3.6.5, as fchmod (fd, ...)
17039         fails with errno == EBADF when fd is opened with O_PATH.
17040         Reported by Jim Meyering in
17041         <http://lists.gnu.org/r/bug-gnulib/2012-11/msg00026.html>.
17042         * doc/posix-headers/fcntl.texi (fcntl.h): Document this.
17043         * lib/fcntl.in.h (O_EXEC, O_SEARCH) [O_PATH]: Default back to O_RDONLY.
17045 2012-11-07  Paul Eggert  <eggert@cs.ucla.edu>
17047         test-utimens: speed up by taking shorter naps
17048         * tests/nap.h (lt_mtime, get_mtime, nap_works, guess_delay):
17049         New functions.
17050         (nap): Use them, to do a better job of guessing the delay.
17051         On Fedora 17 with ext4 atop md atop hard disks, this made
17052         test-utimens run 10x faster, because the test napped for
17053         1 ms at a time rather than 20 ms.  Reported by Stefano Lattarini in
17054         <http://bugs.gnu.org/12820#11>.
17056 2012-11-07  Jim Meyering  <jim@meyering.net>
17058         mountlist.c: fix a compilation failure
17059         * lib/mountlist.c (read_file_system_list): Fix a compilation failure
17060         I introduced while transforming commit v0.0-7683-g613bcb6
17062 2012-11-05  Paul Eggert  <eggert@cs.ucla.edu>
17064         errno: port to LynxOS 178 2.2.2
17065         Problem reported by Joel Brobecker in
17066         <http://lists.gnu.org/r/bug-gnulib/2012-10/msg00088.html>.
17067         * doc/posix-headers/errno.texi (errno.h): Document this.
17068         * lib/errno.in.h (EILSEQ, GNULIB_defined_EILSEQ) [!EILSEQ]: New macros.
17069         * lib/strerror-override.c, lib/strerror-override.h (strerror_override):
17070         Supply a string for EILSEQ.
17071         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Check for EILSEQ.
17073 2012-11-05  Paul Eggert  <eggert@cs.ucla.edu>
17075         fcntl-h: default O_SEARCH, O_EXEC to O_PATH if available
17076         Linux kernel 2.6.39 introduced O_PATH (see
17077         <http://lwn.net/Articles/433854/>) and this is a better fallback
17078         for O_SEARCH and O_EXEC than O_RDONLY, if O_PATH is available.
17079         * doc/posix-headers/fcntl.texi (fcntl.h): Document this.
17080         * lib/fcntl.in.h (O_EXEC, O_SEARCH) [O_PATH]: Default to O_PATH.
17081         * lib/fcntl.in.h (O_ACCMODE):
17082         * tests/test-fcntl-h.c (main):
17083         Do not reject O_ACCMODE merely because it has more than the
17084         minimal number of bits, as POSIX allows extensions here.
17086 2012-11-04  Andrew Warshall  <warshall@99main.com>  (tiny change)
17088         mountlist: do not classify a bind-mounted dir entry as "dummy"
17089         * lib/mountlist.c (ME_DUMMY_0): Rename from ME_DUMMY, but omit
17090         the "none"-testing clause.
17091         (ME_DUMMY) [MOUNTED_GETMNTENT1]: New macro to encapsulate the
17092         exception for bind-mounted directories.
17094 2012-11-01  Akim Demaille  <akim@lrde.epita.fr>
17096         quote: provide a means to escape strings with nul characters
17097         * lib/quote.h, lib/quotearg.c (quote_mem, quote_n_mem): New functions.
17098         (quote, quote_n): Rename formal arguments for consistency with
17099         quotearg.
17101 2012-10-30  Paul Eggert  <eggert@cs.ucla.edu>
17103         test-raise: don't assume 199 is an invalid signal
17104         * tests/test-raise.c (main): Don't assume 199 is not a signal number.
17106         sh-quote-tests: port to Solaris 9
17107         * modules/sh-quote-tests (test_sh_quote_LDADD): Add @LIBINTL@.
17108         Problem reported by Dagobert Michelsen in
17109         <http://lists.gnu.org/r/bug-gnulib/2012-10/msg00114.html>.
17111 2012-10-28  Jim Meyering  <jim@meyering.net>
17113         maint.mk: rename a new configurable variable
17114         * top/maint.mk (_gl_translatable_string_re): Rename from
17115         translation-markers: _gl_ prefix to insulate from user Makefile code,
17116         and the _re suffix to inform that it's a regular expression.
17118 2012-10-26  Eric Blake  <eblake@redhat.com>
17120         maint.mk: let packages tweak sc_po_check pattern
17121         * top/maint.mk (sc_po_check): Add translation-markers, to allow
17122         finding files with other translation markers.
17124 2012-10-16  Paul Eggert  <eggert@cs.ucla.edu>
17126         euidaccess: speed up 'configure' on GNU hosts
17127         * m4/euidaccess.m4 (gl_FUNC_NONREENTRANT_EUIDACCESS):
17128         Check for setregid here, not in gl_PREREQ_EUIDACCESS, since
17129         it's needed only in this case.  Use AC_CHECK_DECLS, not
17130         AC_CHECK_DECLS_ONCE.
17131         (gl_PREREQ_EUIDACCESS): Do not use AC_CHECK_HEADERS_ONCE libgen.h
17132         or AC_REQUIRE for AC_FUNC_GETGROUPS.
17134         * lib/regexec.c (re_search_internal): Fix grammar in comment.
17136 2012-10-15  Paul Eggert  <eggert@cs.ucla.edu>
17138         fchmodat, fchownat, fstatat: port to non-inlining compilers
17139         Problem reported for FreeBSD 9 by Jim Meyering in
17140         <http://lists.gnu.org/r/bug-gnulib/2012-10/msg00070.html>.
17141         * lib/chmodat.c, lib/chownat.c, lib/statat.c:
17142         New files, which define FCHMODAT_INLINE etc.
17143         * lib/fchmodat.c (FCHMODAT_INLINE):
17144         * lib/fchownat.c (FCHOWNAT_INLINE):
17145         * lib/fstatat.c (FSTATAT_INLINE):
17146         Remove, as chmodat.c etc. now do this.
17147         * modules/fchmodat (Files): Add lib/chmodat.c.
17148         * modules/fchownat (Files): Add lib/chownat.c.
17149         * modules/fstatat (Files): Add lib/statat.c.
17151 2012-10-15  Jim Meyering  <jim@meyering.net>
17153         fchmodat.c, fchownat.c: compile-impeding typos
17154         * lib/fchmodat.c (FCHMODAT_INLINE): Fix typo: s/#include/#define/
17155         * lib/fchownat.c (FCHOWNAT_INLINE): Likewise.
17156         Introduced in commit v0.0-7636-gd202279.
17158 2012-10-15  Paul Eggert  <eggert@cs.ucla.edu>
17160         fcntl-h: support GNU flags like O_IGNORE_CTTY
17161         * doc/posix-headers/fcntl.texi (fcntl.h): Support O_IGNORE_CTTY,
17162         O_NOLINK, and O_NOTRANS.  These flags are nonzero on GNU/Hurd
17163         systems.  Discovered when using fcntl-h with GNU Emacs, which uses
17164         O_IGNORE_CTTY.  Fix misspelling of F_SETLKW.
17165         * lib/fcntl.in.h (O_IGNORE_CTTY, O_NOLINK, O_NOTRANS):
17166         Define to 0 if not already defined.
17167         * tests/test-fcntl-h.c: Test these new flags.
17169 2012-10-14  Paul Eggert  <eggert@cs.ucla.edu>
17171         faccessat, etc.: support AT_FDCWD-only use
17172         * lib/at-func.c: If GNULIB_SUPPORT_ONLY_AT_FDCWD, then support
17173         this function only if its first argument is AT_FDCWD.
17174         Emacs wants faccessat for AT_EACCESS but not for any first-arg
17175         values other than AT_FDCWD, so it doesn't want all the openat
17176         machinery with fchdir etc.
17177         * modules/faccessat, modules/fchmodat, modules/fchownat (Files):
17178         * modules/fstatat, modules/mkdirat, modules/openat (Files):
17179         * modules/unlinkat (Files):
17180         Remove lib/openat-priv.h, as at-internal supplies this file.
17181         Removing this file here allows us to support programs like Emacs
17182         that avoid at-internal.
17184         faccessat: speed up 'configure' on mainstream hosts
17185         * m4/faccessat.m4 (gl_PREREQ_FACCESSAT):
17186         Use AT_CHECK_FUNCS for 'access', not AC_CHECK_FUNCS_ONCE,
17187         since it's only on unusual platforms that we need to check for
17188         'access', and it's better not to slow 'configure' down on all
17189         platforms.
17191         faccessat: port to Solaris 10
17192         * lib/faccessat.c: Include <fcntl.h>, for AT_EACCESS.
17193         Needed on Solaris 10, which doesn't have AT_EACCESS,
17194         so we need the Gnulib fcntl.h, which defines it.
17196 2012-10-14  Pádraig Brady  <P@draigBrady.com>
17197         canonicalize: fix C89 compilation
17198         * lib/canonicalize.c (canonicalize_filename_mode): Swap order of
17199         declarations so C89 is supported.  Also remove the comment
17200         referencing memorty allocation as the suggested feature could
17201         not be implemented as suggested.
17202         Reported by Michael Goffioul.
17204 2012-10-12  Paul Eggert  <eggert@cs.ucla.edu>
17206         group-member: omit unnecessary dependencies
17207         This is for Emacs, which has its own allocator and where we
17208         don't want to use xalloc.
17209         * lib/group-member.c: Include xalloc-oversized.h, not xalloc.h,
17210         since we no longer use xmalloc.  Do not include stdbool.h, since
17211         the changes below happen to remove the only use of bool.
17212         (GROUPBUF_SIZE): New constant.
17213         (struct group_info): Remove n_groups member.  Add groupbuf member.
17214         This lets us get the groups without using malloc, usually.
17215         (free_group_info, get_group_info): Adjust to this.
17216         (get_group_info): Return the number of groups found, or -1 on error.
17217         Use plain malloc not xmalloc, and treat its failure as if there
17218         are no groups, as the user already loses in case of error.
17219         (group_member): Simplify, based on changes to get_group_info.
17220         * modules/group-member (Depends-on): Remove dependencies on
17221         xalloc and stdbool.  Add dependency on xalloc-oversized.
17223 2012-10-08  Alexandre Duret-Lutz  <adl@lrde.epita.fr>  (tiny change)
17225         gethrxtime: port to C++
17226         * lib/gethrxtime.h, lib/xtime.h [__cplusplus]: Add extern "C".
17228 2012-10-04  Paul Eggert  <eggert@cs.ucla.edu>
17230         ptsname: fix macro-name typo
17231         * lib/stdlib.in.h (ptsname): Fix misspelling of GNULIB_NAMESPACE.
17233 2012-10-03  Simon Josefsson  <simon@josefsson.org>
17235         inttostr: Relax license.
17236         * modules/inttostr (License): Change from LGPL to LGPLv2+.
17238 2012-10-03  Eric Blake  <eblake@redhat.com>
17240         ptsname_r: support ptys returned by FreeBSD posix_openpt
17241         * lib/ptsname_r.c (__ptsname_r): Don't munge name if it already
17242         lives in /dev/pts/.
17244 2012-10-02  Eric Blake  <eblake@redhat.com>
17246         pselect: reject invalid file descriptors
17247         * m4/pselect.m4 (gl_FUNC_PSELECT): Probe for FreeBSD bug.
17248         * lib/pselect.c (rpl_pselect) [!win32]: Work around it.
17249         * modules/pselect (Depends-on): Add dup2.
17250         * doc/posix-functions/pselect.texi (pselect): Document this.
17252         select: reject invalid file descriptors
17253         * m4/select.m4 (gl_FUNC_SELECT): Probe for FreeBSD bug.
17254         * lib/select.c (rpl_select) [!win32]: Work around it.
17255         * modules/select (Depends-on): Add dup2.
17256         * doc/posix-functions/select.texi (select): Document this.
17258         select: enhance test
17259         * tests/test-select.h (do_select_bad_nfd_nowait, test_bad_nfd):
17260         New functions.
17261         (test_function): Enhance test.
17262         (do_select_bad_fd): Avoid any stale errno values.
17264         ptsname: reject invalid file descriptors
17265         http://www.austingroupbugs.net/view.php?id=503
17266         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Probe for FreeBSD bug.
17267         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add new witness.
17268         * modules/stdlib (Makefile.am): Replace witness.
17269         * lib/stdlib.in.h (ptsname): Allow for replacement.
17270         * modules/ptsname (configure.ac): Trigger replacement.
17271         * doc/posix-functions/ptsname.texi (ptsname): Document this.
17273 2012-10-02:  Nikos Mavrogiannopoulos  <nmav@gnutls.org>  (tiny change)
17275         hash-pjw-bare: new module
17276         * lib/hash-pjw-bare.c: New file, very much like hash-pjw.c.
17277         * lib/hash-pjw-bare.h: Likewise.
17278         * modules/hash-pjw-bare: New file.
17279         * MODULES.html.sh (Misc): Add it.
17281 2012-10-02  Eric Blake  <eblake@redhat.com>
17283         manywarnings: cater to more gcc infelicities
17284         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add test for
17285         -Wuninitialized without -O.
17287 2012-10-01  Ed Maste  <emaste@freebsd.org>  (tiny change)
17289         select, poll tests: Make setsockopt invocation effective.
17290         * tests/test-poll.c (open_server_socket): Move setsockopt() call before
17291         the bind() call.
17292         * tests/test-select.h (open_server_socket): Likewise.
17294 2012-09-30  Paul Eggert  <eggert@cs.ucla.edu>
17296         sockets, sys_stat: restore AC_C_INLINE
17297         This undoes the 2012-09-22 patch.
17298         * m4/sockets.m4 (gl_SOCKETS):
17299         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H):
17300         Restore AC_C_INLINE, since MSVC requires __inline or _inline
17301         and does not support plain 'inline'.  Reported by Bruno Haible in
17302         <http://lists.gnu.org/r/bug-gnulib/2012-09/msg00183.html>.
17304 2012-09-30  Bruno Haible  <bruno@clisp.org>
17306         localeconv tests: Avoid test failure on OpenIndiana.
17307         * tests/test-localeconv.c (main): On OpenIndiana (a Solaris 11 variant)
17308         skip the 'grouping' and 'mon_grouping' tests.
17309         Reported by Jim Meyering.
17311 2012-09-30  Bruno Haible  <bruno@clisp.org>
17313         havelib: Follow libtool developments.
17314         * m4/lib-ld.m4: Rebase on libtool.m4 from libtool-2.4.
17315         Suggested by Simon Josefsson.
17317 2012-09-29  Jim Meyering  <meyering@redhat.com>
17319         fstatat.c: fix a compile-impeding typo
17320         * lib/fstatat.c (FSTATAT_INLINE): Fix typo: s/#include/#define/
17321         Introduced in commit v0.0-7636-gd202279.
17322         Mats Erik Andersson reported the resulting OpenBSD compilation failure.
17324 2012-09-28  Akim Demaille  <akim@lrde.epita.fr>
17326         extern-inline: provide a -Wundef safe config.h
17327         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Protect
17328         "#if __GNUC_STDC_INLINE__" with "defined __GNUC_STDC_INLINE__"
17329         to produce a -Wundef warning free config.h.
17331 2012-09-26  Paul Eggert  <eggert@cs.ucla.edu>
17333         hash-pjw: relax license to LGPLv2+
17334         * modules/hash-pjw (License): Relax, with consent of author.
17336 2012-09-25  Akim Demaille  <akim@lrde.epita.fr>
17338         maint.mk: fix strict vs. lazy variable issues with RELEASE
17339         * top/maint.mk (_equal): New function.
17340         (member_check): Strip the result to avoid spurious spaces.
17341         (url_dir_list): Do not use ifeq, which is strict, as it will
17342         require RELEASE_TYPE to be defined.
17343         (announcement_Cc_, announcement_mail_headers_): Likewise: instead
17344         of relying on ifeq, use $(release_type) to dispatch (lazily) onto...
17345         (announcement_Cc_alpha,announcement_mail_headers_alpha)
17346         (announcement_Cc_beta,announcement_mail_headers_beta)
17347         (announcement_Cc_stable,announcement_mail_headers_stable): these.
17348         (release): Do not depend on $(release-type), as it forces its
17349         evaluation.  Bounce to it.
17351 2012-09-25  Akim Demaille  <akim@lrde.epita.fr>
17353         maint.mk: formatting changes
17354         * top/maint.mk: Indent bodies of if's.
17356 2012-09-21  Akim Demaille  <akim@lrde.epita.fr>
17358         maint.mk: factor the validation of RELEASE_TYPE
17359         With help from Jim Meyering.
17360         http://lists.gnu.org/r/bug-gnulib/2012-09/msg00132.html
17361         * top/maint.mk (_empty, _sp): Move their definition earlier.
17362         (member-check, release-type): New.
17363         Use the latter instead of $(RELEASE_TYPE).
17364         Remove now useless local checks.
17366 2012-09-20  Akim Demaille  <akim@lrde.epita.fr>
17368         maint.mk: provide "make upload" to ease uploading
17369         See
17370         <http://lists.gnu.org/r/bug-gnulib/2012-08/msg00028.html>.
17371         Do not depend simply on the current $(VERSION), as there may have been
17372         new commits since the tarball generation.  Rather, rely on $(RELEASE),
17373         as "make release-commit" already does.
17375         For consistency, add "make release RELEASE='X.Y TYPE'" as an alias for
17376         "make TYPE".
17378         * top/maint.mk (upload_command, upload, release): New.
17379         (RELEASE_TYPE): If undefined, default to the second word of $(RELEASE).
17380         (VERSION): first word of $(RELEASE) is always right.
17381         (emit_upload_commands): Adjust.
17382         * top/README-release: Update.
17384 2012-09-20  Akim Demaille  <akim@lrde.epita.fr>
17386         maint.mk: silent rules
17387         With help from Stefano Lattarini.
17388         * top/maint.mk (writable-files): Use $(AM_V_GEN).
17389         (announcement): Use $(AM_V_at).
17391 2012-09-24  Paul Eggert  <eggert@cs.ucla.edu>
17393         localename: port gl_locale_name_thread_unsafe to FreeBSD
17394         * lib/localename.c (gl_locale_name_thread_unsafe): Port to FreeBSD,
17395         and use the simpler FreeBSD implementation on Mac OS X as well.
17396         Original idea suggested by Ed Maste in
17397         <http://lists.gnu.org/r/bug-gnulib/2012-09/msg00094.html>.
17399 2012-09-22  Paul Eggert  <eggert@cs.ucla.edu>
17401         binary-io, eealloc, mbfile, mbiter, mbutil, xsize: better 'inline'
17402         * lib/binary-io.c, lib/eealloc.c, lib/mbfile.c, lib/mbiter.c:
17403         * lib/mbuiter.c, lib/xsize.c: New files.
17404         * lib/binary-io.h (BINARY_IO_INLINE):
17405         * lib/eealloc.h (EEALLOC_INLINE):
17406         * lib/mbfile.h (MBFILE_INLINE):
17407         * lib/mbiter.h (MBITER_INLINE):
17408         * lib/mbuiter.h (MBUITER_INLINE):
17409         * lib/xsize.h (XSIZE_INLINE):
17410         New macros.
17411         Replace all uses of 'static inline' with them.
17412         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
17413         * m4/eealloc.m4 (gl_EEALLOC):
17414         * m4/mbfile.m4 (gl_MBFILE):
17415         * m4/mbiter.m4 (gl_MBITER):
17416         * m4/xsize.m4 (gl_XSIZE):
17417         Do not require AC_C_INLINE.
17418         * modules/binary-io (Files, lib_SOURCES): Add lib/binary-io.c
17419         * modules/eealloc (Files, lib_SOURCES): Add lib/eealloc.c.
17420         * modules/mbfile (Files, lib_SOURCES): Add lib/mbfile.c.
17421         * modules/mbiter (Files, lib_SOURCES): Add lib/mbiter.c.
17422         * modules/mbuiter (Files, lib_SOURCES): Add lib/mbuiter.c.
17423         * modules/xsize (Files, lib_SOURCES): Add lib/xsize.c.
17424         * modules/binary-io, modules/eealloc, modules/mbfile:
17425         * modules/mbiter, modules/mbuiter:
17426         (Depends-on): Add extern-inline.
17428         pipe-filter-gi, pipe-filter-ii: better use of 'inline'
17429         * lib/pipe-filter-aux.c: New file.
17430         * lib/pipe-filter-aux.h (PIPE_FILTER_AUX_INLINE): New macro.
17431         Replace all uses of 'static inline' with it.
17432         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
17433         * lib/pipe-filter-gi.c (filter_init, filter_cleanup)
17434         (filter_retcode): No real need for inline here.
17435         * modules/pipe-filter-gi, modules/pipe-filter-ii:
17436         (Files): Add lib/pipe-filter-aux.c.
17437         (Depends-on): Add extern-inline.
17438         (configure.ac): Do not require AC_C_INLINE.
17439         (lib_SOURCES): Add pipe-filter-aux.c.
17441         fdutimensat: omit unnecessary AC_C_INLINE
17442         * modules/fdutimensat (configure.ac): Remove AC_C_INLINE.
17444         fchmodat, fchownat, fstatat: use extern-inline
17445         * lib/fchmodat.c, lib/openat.h (FCHMODAT_INLINE):
17446         * lib/fchownat.c, lib/openat.h (FCHOWNAT_INLINE):
17447         * lib/fstatat.c, lib/openat.h (FSTATAT_INLINE):
17448         New macros.
17449         * lib/openat.h:
17450         Replace all uses of 'static inline' with them.
17451         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
17452         * modules/fchmodat, modules/fchownat, modules/fstatat:
17453         * modules/openat-h:
17454         (Depends-on):
17455         Add extern-inline.
17456         (configure.ac): Remove AC_C_INLINE.
17458         acl, mbchar, priv-set: use extern-inline
17459         * lib/set-mode-acl.c, lib/acl-internal.h (ACL_INTERNAL_INLINE):
17460         * lib/mbchar.c, lib/mbchar.h (MBCHAR_INLINE):
17461         * lib/priv-set.c, lib/priv-set.h (PRIV_SET_INLINE):
17462         New macros.
17463         * lib/acl-internal.h, lib/mbchar.h, lib/priv-set.h:
17464         Replace all uses of 'static inline' with it.
17465         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
17466         * m4/acl.m4 (gl_FUNC_ACL):
17467         * m4/mbchar.m4 (gl_MBCHAR):
17468         * m4/priv-set.m4 (gl_PRIV_SET):
17469         Remove AC_C_INLINE, since 'inline' is no longer used directly.
17470         * modules/acl, modules/mbchar, modules/priv-set (Depends-on):
17471         Add extern-inline.
17473         sockets, sys_stat: remove AC_C_INLINE in MSVC-only cases
17474         * m4/sockets.m4 (gl_SOCKETS):
17475         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H):
17476         Remove AC_C_INLINE.  Here, 'inline' is used only in MSVC
17477         environments where it's already guaranteed to work, so we needn't
17478         check for it at 'configure'-time.
17480         tls-tests: omit unnecessary 'inline'
17481         * tests/test-tls.c (perhaps_yield): No longer inline.
17482         Simplicity and portability trump efficiency in test cases.
17484         utimens-tests: avoid unnecessary 'inline'
17485         * modules/fdutimensat-tests (configure.ac):
17486         * modules/futimens-tests (configure.ac):
17487         * modules/utimens-tests (configure.ac):
17488         * modules/utimensat-tests (configure.ac):
17489         Remove AC_C_INLINE.
17490         * tests/test-utimens-common.h (ctime_compare):
17491         No longer inline.  Simplicity and portability trump efficiency here.
17493         misc: don't limit commentary to inline functions
17494         * lib/binary-io.h, lib/malloca.h, lib/safe-alloc.c:
17495         * lib/xalloc-oversized.h, lib/xsize.h:
17496         Contrast macros to functions in general, not just to inline functions,
17497         when the commentary does not apply only to inline functions.
17499 2012-09-20  Jim Meyering  <meyering@redhat.com>
17501         non-recursive-gnulib-prefix-hack: new module
17502         * build-aux/prefix-gnulib-mk: Copied from coreutils, derived from
17503         the file that originated in Bison.
17504         * m4/non-recursive-gnulib-prefix-hack.m4: Likewise, this code is
17505         largely copied from a snippet that resided in bison's configure.ac.
17506         * modules/non-recursive-gnulib-prefix-hack: New file.
17507         * MODULES.html.sh (Support for maintaining and releasing projects):
17508         Add it.
17510 2012-09-18  Jim Meyering  <meyering@redhat.com>
17512         maint.mk: generalize _gl_tight_scope for non-recursive make
17513         * top/maint.mk (_gl_tight_scope): Remove a hard-coded assumption
17514         that *.h would describe additional .h files in the directory
17515         specified by $(_gl_TS_dir).  I.e., add this...
17516         (_gl_TS_other_headers): New variable.
17518         maint.mk: exempt trailing blanks found in "binary" files
17519         * top/maint.mk (sc_trailing_blank): Filter out any matches found in
17520         "binary" files, as reported by grep.  Suggested by Richard W.M. Jones
17521         in http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
17523 2012-09-17  Jim Meyering  <meyering@redhat.com>
17525         maint.mk: sc_prohibit_path_max_allocation: don't FP for UNIX_PATH_MAX
17526         * top/maint.mk (sc_prohibit_path_max_allocation): Avoid false-positive
17527         match for symbols like UNIX_PATH_MAX. Reported by Richard W.M. Jones
17528         in http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
17530 2012-09-17  Jim Meyering  <meyering@redhat.com>
17532         maint.mk: teach sc_prohibit_magic_number_exit to accept 77
17533         * top/maint.mk (sc_prohibit_magic_number_exit): Do not complain about
17534         uses like "exit (77)".  "77" is automake's "skip this test" exit code.
17535         It is not in the same category as "exit (0)" or "exit (1)", and
17536         besides, I know of no symbolic name for that 77.  Reported by
17537         Richard W.M. Jones in
17538         http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
17540 2012-09-17  Jim Meyering  <meyering@redhat.com>
17542         maint.mk: relax sc_prohibit_strcmp, to avoid a false positive
17543         * top/maint.mk (sc_prohibit_strcmp): Relax regexp, so as to match
17544         all uses of #define, not just those that start in column 1.
17545         Richard W.M. Jones reported a false positive in
17546         http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
17548 2012-09-16  Paul Eggert  <eggert@cs.ucla.edu>
17550         localcharset: work around Mac OS X bug with UTF-8 and MB_CUR_MAX
17551         * lib/localcharset.c (locale_charset) [DARWIN7]:
17552         Return "ASCII" if the system reports "UTF-8" and MB_CUR_MAX <= 1,
17553         as these two values are incompatible.  Problem reported by Max Horn.
17554         For more discussion, please see
17555         <http://lists.gnu.org/r/bug-gnulib/2012-09/msg00061.html>.
17557         doc: document sticky-EOF issue
17558         * doc/posix-functions/fgetc.texi (fgetc):
17559         * doc/posix-functions/fgets.texi (fgets):
17560         * doc/posix-functions/fread.texi (fread):
17561         * doc/posix-functions/fscanf.texi (fscanf):
17562         * doc/posix-functions/getc.texi (getc):
17563         * doc/posix-functions/getchar.texi (getchar):
17564         * doc/posix-functions/scanf.texi (scanf):
17565         Mention that glibc and default Solaris do not conform to
17566         C99 and POSIX-2001 or later, with respect to how getchar
17567         etc. behave when feof reports nonzero.
17569 2012-09-13  Joachim Schmitz  <jojo@schmitz-digital.de>  (tiny change)
17571         poll: fix poll(0, NULL, msec)
17572         * lib/poll.c: don't exit early if NULL is the 1st arg to poll(),
17573         but nfd is 0.  In that case poll should behave like select.
17575 2012-09-13  Joachim Schmitz  <jojo@schmitz-digital.de>  (tiny change)
17576             Paolo Bonzini  <bonzini@gnu.org>
17578         poll: fix for systems that can't recv() on a non-socket
17579         * lib/poll.c: if recv returns ENOTSOCK, assume the descriptor
17580         is readable.  In this case POLLHUP will not be supported.
17581         * doc/posix-functions/poll.texi: Document this.
17583 2012-09-13  Paolo Bonzini  <bonzini@gnu.org>
17585         poll/select: document portability problems not fixed by Gnulib.
17586         * doc/posix-functions/poll.texi: poll does not work well on
17587         pipes under Windows.  It has the same limitations as select on
17588         BeOS.
17589         * doc/posix-functions/select.texi: select does not work well
17590         on pipes under Windows.
17592 2012-09-10  Paul Eggert  <eggert@cs.ucla.edu>
17594         fcntl-h: check for AIX 7.1 bug with O_NOFOLLOW and O_CREAT
17595         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Check for AIX 7.1 bug
17596         that caused a GNU tar test failure.  Problem reported by Jez Wain; see
17597         <http://lists.gnu.org/r/bug-tar/2012-07/msg00018.html>.
17599 2012-09-06  Eric Blake  <eblake@redhat.com>
17601         net_if: give more details about the bug being fixed
17602         * doc/posix-headers/net_if.texi: Add clarification.
17604 2012-09-05  Eric Blake  <eblake@redhat.com>
17606         net_if: new module
17607         * modules/net_if: New module, borrowing ideas from netinet_in.
17608         * m4/net_if_h.m4: New file.
17609         * lib/net_if.in.h: Likewise.
17610         * doc/posix-headers/net_if.texi (net/if.h): Document it.
17611         * MODULES.html.sh (lacking POSIX:2008): Likewise.
17612         * tests/test-net_if.c: Make function checks conditional.
17613         Reported by Jasper Lievisse Adriaanse <jasper@humppa.nl>.
17615 2012-09-05  Mats Erik Andersson  <gnu@gisladisker.se>  (tiny change)
17617         readutmp: fix non-portable UT_PID use
17618         * lib/readutmp.c (desirable_utmp_entry) <READ_UTMP_CHECK_PIDS>:
17619         Use `UT_PID (u) > 0' as absolute condition.
17621 2012-09-04  Jim Meyering  <meyering@redhat.com>
17623         fts: reduce two or more trailing spaces to just one, usually
17624         * lib/fts.c (fts_open): Upon initialization, if a name ends in two
17625         or more slashes, trim all but the final one.  But if a name consists
17626         solely of two slashes, don't modify it.  If it consists solely of
17627         three or more slashes, strip all but one.
17629         This is part of the solution to a minor problem with rm:
17630         it would print a bogus ELOOP diagnostic when failing to remove
17631         the slash-decorated name of a symlink-to-directory:
17633             $ mkdir d && ln -s d s && env rm -r s/
17634             rm: cannot remove 's': Too many levels of symbolic links
17636         With the change below and a trivial don't-trim-trailing-slashes
17637         adjustment to remove.c, it does this:
17639             $ env rm -r s/
17640             rm: cannot remove 's/': Not a directory
17642         Improved by: Eric Blake
17644         fts: when there is no risk of overlap, use memcpy, not memmove
17645         * lib/fts.c (fts_alloc): Fix unjustified memcopy: s/memmove/memcpy/
17647 2012-08-29  Paul Eggert  <eggert@cs.ucla.edu>
17649         stdbool: be more compatible with mixed C/C++ compiles
17650         * lib/stdbool.in.h (_Bool, true, false) [__cplusplus]:
17651         Define to bool, true, false, respectively, as GCC's builtin
17652         stdbool.h does.  Problem reported by Michael Goffioul in
17653         <http://lists.gnu.org/r/bug-gnulib/2012-08/msg00143.html>.
17655 2012-08-28  Jim Meyering  <meyering@redhat.com>
17657         revert last change: it was not needed
17658         * tests/test-vc-list-files-git.sh: There's already a test for
17659         a working git, just below.
17661 2012-08-28  Jim Meyering  <meyering@redhat.com>
17663         tests: test-vc-list-files-git.sh: skip if git is not available
17664         * tests/test-vc-list-files-git.sh: Skip this test when git is
17665         not available.
17667 2012-08-26  Bruno Haible  <bruno@clisp.org>
17669         gnulib-tool: Remove no-op option --no-changelog.
17670         * gnulib-tool (func_usage): Don't mention --no-changelog.
17671         (do_changelog): Remove variable.
17672         Reported by Dmitriy Selyutin <ghostman.sd@gmail.com>.
17674 2012-08-24  Paul Eggert  <eggert@cs.ucla.edu>
17676         doc: remove fdl-1.2.texi
17677         It is no longer used or maintained, and its use of @acronym
17678         is problematic.  See the thread containing
17679         <http://lists.gnu.org/r/bug-gnulib/2012-08/msg00134.html>.
17680         * config/srclist.txt: Remove doc/old-licenses/fdl-1.2.texi.
17681         * doc/old-licenses/fdl-1.2.texi: Remove.
17683         execinfo: port to FreeBSD
17684         * m4/execinfo.m4 (gl_EXECINFO_H): Set LIB_EXECINFO to -lexecinfo
17685         if needed, as in FreeBSD.  Reported by Bastien Roucariès in
17686         <http://lists.gnu.org/r/bug-gnulib/2012-08/msg00113.html>.
17687         * modules/execinfo (Link): Add $(LIB_EXECINFO).
17689 2012-08-23  Jim Meyering  <meyering@redhat.com>
17691         xstrtol.h: avoid "_Noreturn is not at beginning of declaration" warning
17692         * lib/xstrtol.h: Put "_Noreturn" before "void" in declaration,
17693         to placate gcc's -Wold-style-declaration.
17695 2012-08-24  Paul Eggert  <eggert@cs.ucla.edu>
17697         doc: do not use @acronym
17698         * doc/inet_ntoa.texi (inet_ntoa):
17699         * doc/parse-datetime.texi (Seconds since the Epoch)
17700         (Specifying time zone rules):
17701         * doc/posix-functions/inet_ntoa.texi (inet_ntoa):
17702         Don't use @acronym.  Problem reported by John Darlington in
17703         <http://lists.gnu.org/r/bug-gnulib/2012-08/msg00124.html>.
17705 2012-08-23  Paul Eggert  <eggert@cs.ucla.edu>
17707         stdnoreturn: port to newer GCCs
17708         * m4/stdnoreturn.m4 (gl_STDNORETURN_H): Avoid problems with
17709         bleeding-edge GCC that complains about 'int _Noreturn foo (void);'.
17710         Problem reported by Jim Meyering in
17711         <http://lists.gnu.org/r/bug-gnulib/2012-08/msg00121.html>.
17712         Also, rename the 'test' function to a void a clash with the
17713         already-supplied 'main' function; this fixes a bug that incorrectly
17714         rejected GCC 4.7.1's <stdnoreturn.h>.
17715         * doc/posix-headers/stdnoreturn.texi (stdnoreturn.h):
17716         Document GCC problem.
17718 2012-08-22  Reuben Thomas  <rrt@sc3d.org>
17720         pipe-filter: fix comment typo
17721         * lib/pipe-filter.h: Mention correct function.
17723 2012-08-22  Paul Eggert  <eggert@cs.ucla.edu>
17725         execinfo: new module
17726         This is for Emacs.  Currently, it provides a no-effect stub
17727         on all platforms where it does not already work.
17728         It already works on glibc-based systems, and on Solaris 11.
17729         * lib/execinfo.c, lib/execinfo.in.h, m4/execinfo.m4, modules/execinfo:
17730         New files.
17731         * doc/glibc-headers/execinfo.texi (execinfo.h):
17732         * MODULES.html.sh (Misc): Document it.
17734 2012-08-20  Paul Eggert  <eggert@cs.ucla.edu>
17736         extern-inline: support old GCC 'inline'
17737         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Use pre-C99 GCC 'inline'
17738         if available.  This applies to GCC versions 2.7 through 4.2, or
17739         when newer GCC is using -fgnu89-inline.  The goal is to address
17740         some of the performance issues mentioned by Bruno Haible in
17741         <http://lists.gnu.org/r/bug-gnulib/2012-08/msg00097.html>.
17743 2012-08-20  Eric Blake  <eblake@redhat.com>
17745         maint.mk: avoid redundant file name in message
17746         * top/maint.mk (sc_prohibit_strcmp, sc_unmarked_diagnostics)
17747         (sc_prohibit_defined_have_decl_tests, sc_const_long_option)
17748         (sc_makefile_path_separator_check): Remove bogus $(ME).
17750 2012-08-20  Mike Frysinger  <vapier@gentoo.org>
17752         timer-time: fix link order when static linking on glibc
17753         * m4/timer_time.m4 (LIB_TIMER_TIME): Add -lpthread
17754         _after_ -lrt so that it's significant.
17756 2012-08-19  Paul Eggert  <eggert@cs.ucla.edu>
17758         timespec: omit unnecessary AC_C_INLINE
17759         * m4/timespec.m4 (gl_TIMESPEC): Do not require AC_C_INLINE.
17761         stat-time: omit unnecessary AC_C_INLINE
17762         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
17763         Do not require AC_C_INLINE.
17765         ignore-value: omit unnecessary AC_C_INLINE
17766         * modules/ignore-value (configure.ac): Do not require AC_C_INLINE.
17768         sys_select: avoid 'static inline'
17769         * lib/sys_select.in.h (rpl_fd_isset): Now static, not static inline.
17771         mktime: avoid 'static inline'
17772         * lib/mktime.c (leapyear, ydhms_diff): Now static, not static inline.
17773         * m4/mktime.m4 (gl_PREREQ_MKTIME): Do not require AC_C_INLINE.
17775 2012-08-19  Bruno Haible  <bruno@clisp.org>
17777         gnulib-tool: Improve coding style.
17778         * gnulib-tool (func_emit_tests_Makefile_am): Set perhapsLT, like in
17779         func_emit_lib_Makefile_am.
17780         Reported and fix suggested by Dmitriy Selyutin <ghostman.sd@gmail.com>.
17782 2012-08-19  Bruno Haible  <bruno@clisp.org>
17784         gnulib-tool: Fix indentation.
17785         * gnulib-tool (func_import): Fix indentation.
17787 2012-08-19  Bruno Haible  <bruno@clisp.org>
17789         gnulib-tool: Remove old file names from .cvsignore, .gitignore.
17790         * gnulib-tool (func_update_ignorelist): Don't use 'join -v 1' command
17791         on the list of removed files.
17793 2012-08-17  Paul Eggert  <eggert@cs.ucla.edu>
17795         test-parse-datetime: avoid glibc leap-second glitch
17796         * tests/test-parse-datetime.c (main): Set TZ to US Eastern time
17797         with the 2012 rules.  Problem reported by Bruce Dubbs in
17798         <http://bugs.gnu.org/12206>.
17800 2012-08-14  Bruno Haible  <bruno@clisp.org>
17802         gnulib-tool: Fix indentation of generated gnulib-comp.m4 file.
17803         * gnulib-tool (func_emit_autoconf_snippet): Initialize indentation
17804         from argument.
17805         Reported and fix suggested by Dmitriy Selyutin <ghostman.sd@gmail.com>.
17807 2012-08-14  Eric Blake  <eblake@redhat.com>
17809         ldexp: relax license
17810         * modules/ldexp (License): Trivial relax, since the module only
17811         provides a permissively licensed m4 file.
17813 2012-08-13  Bruno Haible  <bruno@clisp.org>
17815         gnulib-tool: Fix persistence of --witness-c-macro option.
17816         * gnulib-tool (func_import): Fix typo in emit of gl_WITNESS_C_MACRO.
17817         Reported by Dmitriy Selyutin <ghostman.sd@gmail.com>.
17819 2012-08-11  Eric Blake  <eblake@redhat.com>
17821         count-leading-zeros: use a lookup table on non-gcc compilers
17822         * lib/count-leading-zeros.h (count_leading_zeros_32): Use an
17823         alternate implementation, suggested by Jim Meyering.
17825 2012-08-10  Eric Blake  <eblake@redhat.com>
17827         count-leading-zeros: new module
17828         * modules/count-leading-zeros: New module.
17829         * m4/count-leading-zeros.m4: New file.
17830         * lib/count-leading-zeros.h: Likewise.
17831         * modules/count-leading-zeros-tests: New test.
17832         * tests/test-count-leading-zeros.c: New file.
17833         * MODULES.html.sh (Integer arithmetic functions): Document it.
17835 2012-08-07  Simon Josefsson  <simon@josefsson.org>
17836             Jim Meyering  <meyering@redhat.com>
17838         maintainer-makefile: Fix syntax error with dash.
17839         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): Quote arguments.
17840         (sc_vulnerable_makefile_CVE-2012-3386): Likewise.
17842 2012-08-05  Jim Meyering  <meyering@redhat.com>
17844         extern-inline: also ignore -Wmissing-declarations
17845         * m4/extern-inline.m4: Also ignore -Wmissing-declarations,
17846         required with gcc-4.8.0-to-be.
17848         maint.mk: sc_prohibit_magic_number_exit: avoid new false positives
17849         * top/maint.mk (sc_prohibit_magic_number_exit): Also filter out matches
17850         for /error ?([^,]*)/.  This avoids false-positives for strings like
17851         "Unknown error (252)", introduced via commit v0.0-7538-g92875a6.
17853 2012-08-02  Stefano Lattarini  <stefano.lattarini@gmail.com>
17855         gnumakefile: better interaction with Automake-NG
17856         * modules/gnumakefile [Makefile.am]: The makefiles generated by
17857         Automake-NG always contain a definition of VPATH, even in non-VPATH
17858         builds (its value being simply '.' in that case).  So, in the
17859         'clean-GNUmakefile' rule, to determine whether running under a
17860         VPATH setup, compare '$(srcdir)' to '.' rather than checking whether
17861         '$(VPATH)' expands to the empty string.
17863 2012-08-02  Carlo de Falco  <carlo.defalco@polimi.it>  (tiny change)
17865         base64: Use extern C scope in header file, for C++.
17866         * lib/base64.h: Add C++ namespace protection.
17868 2012-08-02  Paul Eggert  <eggert@cs.ucla.edu>
17870         stat-time, timespec, u64: support naive out-of-dir builds
17871         * lib/stat-time.c, lib/timespec.c, lib/u64.c:
17872         Use '#include "foo.h"', not '#include <foo.h>', when including
17873         one's own interface.  This works better when configuring with
17874         out-of-directory builds, since packages need not add an
17875         otherwise-unnecessary -I$(topdir_src)/lib to DEFAULT_INCLUDES.
17877 2012-08-01  Paul Eggert  <eggert@cs.ucla.edu>
17879         utimens: use extern-inline
17880         * lib/utimens.c (_GL_UTIMENS_INLINE): Define when including utimens.h.
17881         * lib/utimens.h: Add copyright notice, since this is now large enough
17882         to copyright.  Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
17883         (_GL_UTIMENS_INLINE): New macro.  Use it instead of 'static inline'.
17884         * modules/utimens (Depends-on): Add extern-inline.
17886         u64: use extern-inline
17887         * lib/u64.c: New file.
17888         * lib/u64.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
17889         (_GL_U64_INLINE): New macro.  Use it instead of 'static inline'.
17890         * modules/u64 (Files): Add lib/u64.c.
17891         (Depends-on): Add extern-inline.
17892         (configure.ac): No need to require AC_C_INLINE, since extern-inline
17893         does that now.
17894         (lib_SOURCES): Add u64.c.
17896         timespec: use extern-inline
17897         * lib/timespec.c: New file.
17898         * lib/timespec.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
17899         (_GL_TIMESPEC_INLINE): New macro.  Use it instead of 'static inline'.
17900         * modules/timespec (Files): Add lib/timespec.c.
17901         (Depends-on): Add extern-inline.
17902         (lib_SOURCES): Add timespec.c.
17904         stat-time: use extern-inline
17905         * lib/stat-time.c: New file.
17906         * lib/stat-time.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
17907         (_GL_STAT_TIME_INLINE): New macro.  Use it instead of 'static inline'.
17908         * modules/stat-time (Files): Add lib/stat-time.c.
17909         (Depends-on): Add extern-inline.
17910         (lib_SOURCES): Add stat-time.c.
17912         extern-inline: new module
17913         * modules/extern-inline, m4/extern-inline.m4: New files.
17914         This is for better support of 'extern inline' a la ISO C99,
17915         with a portable alternative on compilers that do not support
17916         C99-style 'extern inline'.  Using 'extern inline' shrinks the size
17917         of the Emacs executable, when compiled with debugging disabled,
17918         which is a typical way that Emacs is built while developing.
17920 2012-08-01  Akim Demaille  <akim@lrde.epita.fr>
17922         maint.mk: a "release-commit" wrapper to do-release-commit-and-tag
17923         * build-aux/do-release-commit-and-tag: Move variable definitions
17924         together.
17925         ($branch): Instead of defaulting to "master", default to the current
17926         branch (as gnu-web-doc-update does).
17927         (help): Display the current values of the option arguments.
17928         * top/maint.mk (release-commit): New.
17929         * top/README-release: Simplify the corresponding step.
17931 2012-07-30  Eric Blake  <eblake@redhat.com>
17933         passfd: fix comment on recvfd
17934         * lib/passfd.c (recvfd): Fix comment.
17935         Reported by Jann Horn <jannhorn@googlemail.com>.
17937 2012-07-30  Jim Meyering  <meyering@redhat.com>
17939         maint.mk: avoid a sub-shell
17940         * top/maint.mk (release-prep): Remove unneeded sub-shell.
17942 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
17944         maint.mk: use silent-rules support from Automake
17945         * top/maint.mk (news-check, vc-diff-check, announcement)
17946         (no-submodule-changes, alpha beta stable, release-prep)
17947         (web-manual, update-copyright): Use $(AM_V_GEN) and $(AM_V_at).
17949 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
17951         maint.mk: provide a web-manual-update target
17952         * top/maint.mk: here.
17953         * top/README-release: Use it to simplify the web manual update step.
17955 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
17957         README-release: shorten the circuit to post a news
17958         * top/README-release: Point directly to the news submission form.
17960 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
17962         gnu-web-doc-update: fix --help
17963         * build-aux/gnu-web-doc-update: The information "top level" was written
17964         twice.
17966 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
17968         maint.mk: absolute VPATH issue
17969         * top/maint.mk (release-prep): Help Git find .git/.
17970         From Jim Meyering.
17972 2012-07-29  Akim Demaille  <akim@lrde.epita.fr>
17974         gitlog-to-changelog: fix previous change
17975         * build-aux/gitlog-to-changelog: Fix condition.
17976         Add missing ";".
17978 2012-07-29  Akim Demaille  <akim@lrde.epita.fr>
17980         gitlog-to-changelog: don't expect .git to be in $srcdir
17981         Reported by Bruno Haible.
17982         <http://lists.gnu.org/r/bug-gnulib/2012-07/msg00265.html>
17983         * build-aux/gitlog-to-changelog (&git_dir_option): New.
17984         Use it.
17986 2012-07-29  Akim Demaille  <akim@lrde.epita.fr>
17988         maint.mk: absolute VPATH build fix
17989         * top/maint.mk (gpg_key_ID): Help git find .git when, for instance,
17990         $(srcdir) is not a parent of $(builddir).
17992 2012-07-28  John Darrington  <john@darrington.wattle.id.au>
17994         clean-temp: Fix memory leak.
17995         * lib/clean-temp.c (cleanup_temp_dir): Free also the 'subdirs' and
17996         'files' members of tmpdir.
17998 2012-07-27  Jim Meyering  <meyering@redhat.com>
18000         maint.mk: new rule: refresh-gnulib-patches
18001         I noticed that 8 of coreutils' 9 gl/**/*.diff files were stale.
18002         Use this rule to refresh them.
18003         * top/maint.mk (refresh-gnulib-patches): New rule.
18005 2012-07-24  Bruno Haible  <bruno@clisp.org>
18007         gnulib-tool: Fix handling of inctests variable.
18008         * gnulib-tool: Canonicalize $inctests also in 'update' mode.
18009         Reported by Nick Bowler <nbowler@elliptictech.com>.
18011 2012-07-22  Bruno Haible  <bruno@clisp.org>
18013         getpass: Assume AC_CHECK_DECLS_ONCE invocation, like in getpass.m4.
18014         * lib/getpass.h: Assume HAVE_DECL_GETPASS is defined.
18015         * cfg.mk (exclude_file_name_regexp--sc_prohibit_defined_have_decl_tests):
18016         Remove exemption for getpass.h.
18017         Suggested by Eric Blake.
18019 2012-07-20  Eric Blake  <eblake@redhat.com>
18021         verify: document conflict with -Wnested-externs
18022         * lib/verify.h: Give hint about usage when gcc warnings are enabled.
18024         maint.mk: forbid exit(-1)
18025         * top/maint.mk (sc_prohibit_magic_number_exit): Detect negatives.
18027 2012-07-20  Paul Eggert  <eggert@cs.ucla.edu>
18029         fsusage: port back to Solaris
18030         * lib/fsusage.c (get_fs_usage): Fix busted logic causing compile-time
18031         error (fsd not declared) on Solaris 10.  Reported privately by
18032         Andrew Borodin.
18034 2012-07-19  Akim Demaille  <akim@lrde.epita.fr>
18036         gnu-web-doc-update: fix error messages
18037         * build-aux/gnu-web-doc-update: Don't pass $ME to die.
18039         gnu-web-doc-update: check the requirements.
18040         * build-aux/gnu-web-doc-update (find_tool): Import from bootstrap.
18041         ($CVS, $CVSU, $GIT, $RSYNC, $XARGS): New.
18042         * build-aux/bootstrap (find_tool): Comment change.
18044 2012-07-17  Akim Demaille  <akim@lrde.epita.fr>
18046         maint.mk: minor simplication.
18047         * top/maint.mk (_sc_excl): Use $(or...) instead of $(if...)
18048         for default values.
18050 2012-07-15  Akim Demaille  <akim@lrde.epita.fr>
18052         gitlog-to-changelog: VPATH build issues
18053         If builddir is not a subdirectory of srcdir, running git from it will
18054         fail.
18055         * build-aux/gitlog-to-changelog (--srcdir): New option.
18057 2012-07-15  Bruno Haible  <bruno@clisp.org>
18059         fpending: Assume AC_CHECK_DECLS_ONCE invocation, like in fpending.m4.
18060         * lib/fpending.h: Assume HAVE_DECL___FPENDING is defined.
18061         * cfg.mk (exclude_file_name_regexp--sc_prohibit_defined_have_decl_tests)
18062         Remove exemption for fpending.h.
18063         Suggested by Eric Blake.
18065 2012-07-15  Paul Eggert  <eggert@cs.ucla.edu>
18067         pthread_sigmask: fix bug on FreeBSD 9
18068         * lib/pthread_sigmask.c [PTHREAD_SIGMASK_INEFFECTIVE]:
18069         Include string.h.
18070         (pthread_sigmask) [PTHREAD_SIGMASK_INEFFECTIVE]:
18071         When calling pthread_sigmask (1729, NEW, OLD), specify non-null NEW;
18072         this avoids a bug on FreeBSD 9, where pthread_sigmask is effective
18073         but pthread_sigmask (1729, NULL, NULL) returns zero.
18074         See <http://bugs.gnu.org/11884>.
18075         Avoid the need to call pthread_sigmask (1729, ...) in most cases,
18076         by inspecting whether the main call changed the old mask.
18078 2012-07-15  Reuben Thomas  <rrt@sc3d.org>
18080         README-release: make it more legible
18081         * top/README-release: Improve typography slightly.
18083 2012-07-15  Jim Meyering  <meyering@redhat.com>
18085         maint: require that each sc_... command start with "@"
18086         * Makefile (sc_prohibit_sc_omitted_at): New rule so that
18087         "make sc_maint" helps us avoid this nit.
18089 2012-07-15  Jim Meyering  <meyering@redhat.com>
18091         maint.mk: add leading "@" to quiet new "make syntax-check" rule
18092         * top/maint.mk (sc_prohibit_defined_have_decl_tests): Add "@".
18094 2012-07-13  Eric Blake  <eblake@redhat.com>
18096         maint.mk: new syntax check for HAVE_DECL checks
18097         * top/maint.mk (sc_prohibit_defined_have_decl_tests): New rule.
18098         * cfg.mk
18099         (exclude_file_name_regexp--sc_prohibit_defined_have_decl_tests):
18100         Exempt some false positives.
18101         Based on a report by Karel Zak.
18103         argp: make HAVE_DECL usage consistent
18104         * lib/argp-parse.c (__argp_parse): Check contents of HAVE_DECL
18105         macros, not whether they are defined.
18106         * m4/argp.m4 (gl_ARGP): Always define HAVE_DECL_* macros, per
18107         convention with other declaration checks.
18108         Reported by Karel Zak, with suggestions from Paul Eggert.
18110         stat-time: relax license to LGPLv2+
18111         * modules/stat-time (License): Relax, with consent of all authors.
18113         strndup: fix m4 usage error
18114         * m4/strndup.m4 (gl_FUNC_STRNDUP): HAVE_DECL_STRNDUP is always
18115         defined, to either 0 or 1.
18116         Reported by Karel Zak.
18118 2012-07-11  Jim Meyering  <meyering@redhat.com>
18120         maint: enable the sc_avoid_if_before_free syntax-check rule
18121         * cfg.mk (local-checks-to-skip): Enable sc_avoid_if_before_free.
18122         (if_before_free_offenders_): Define.
18123         (if_before_free_basename_re_): Define.
18124         Exempt current files with useless if-before-free.
18126 2012-07-11  Paul Eggert  <eggert@cs.ucla.edu>
18128         gettext: do not assume '#define ... defined ...' behavior
18129         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS):
18130         Do not use '#define FOO ... defined BAR ...', as the C standard says
18131         it's not portable to expect that this works after macro expansion.
18132         Problem reported for gzip by Steven M. Schweda in
18133         <http://lists.gnu.org/r/bug-gzip/2012-07/msg00000.html>.
18135 2012-07-10  Paul Eggert  <eggert@cs.ucla.edu>
18137         getloadavg: clean out old Emacs and Autoconf cruft
18138         See Glenn Morris in <http://bugs.gnu.org/11905>.
18139         * lib/getloadavg.c: Include <config.h>, <stdbool.h> always.
18140         Include <sys/param.h> if HAVE_SYS_PARAM_H, not if unix or __unix.
18141         (LDAV_CVT): Remove no-longer-used LOAD_AVE_CVT hook.
18142         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Check for <sys/param.h>.
18144 2012-07-10  Akim Demaille  <akim@lrde.epita.fr>
18146         bootstrap: let warn be like tests/init.sh's warn_
18147         Reported by Jim Meyering.
18148         * build-aux/bootstrap (warn): Remove, replaced by...
18149         (warnf_, warn_): these.
18150         Adjust callers.
18151         Shorten messages that no longer fit in 80 columns.
18153 2012-07-09  Bruno Haible  <bruno@clisp.org>
18155         getopt: Simplify after Emacs changed.
18156         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Inline gl_GETOPT_IFELSE.
18157         (gl_GETOPT_IFELSE): Remove macro.
18159 2012-07-09  Jim Meyering  <meyering@redhat.com>
18161         maint.mk: add sc_vulnerable_makefile_CVE-2012-3386
18162         * top/maint.mk (sc_vulnerable_makefile_CVE-2012-3386): New rule.
18164         maint.mk: _sc_search_regexp, sc_vulnerable_makefile_CVE-2009-4029: fix
18165         Bugs in both of those conspired to make the
18166         sc_vulnerable_makefile_CVE-2009-4029 rule 99% useless.
18167         _sc_search_regexp's handling of non-empty $in_files would filter
18168         out any offending file names.  sc_vulnerable_makefile_CVE-2009-4029's
18169         choice of in_files value meant there would be no match in most
18170         projects, due to the presence of two or more Makefile.in files.
18171         * top/maint.mk (_sc_search_regexp) [in_vc_files,in_files]: Clarify.
18172         Fix a bug in how a non-empty $$in_files was processed:
18173         (sc_vulnerable_makefile_CVE-2009-4029): Fix erroneous use of in_files:
18174         in spite of the name, it's a regexp, not a list of file names.
18176 2012-07-09  Paul Eggert  <eggert@cs.ucla.edu>
18178         getloadavg, getopt: fix commentary re configure.in
18179         Autoconf is deprecating the name 'configure.in', so change it to
18180         to the new name 'configure.ac' in a couple of places.
18181         * lib/getloadavg.c: configure.in -> configure.ac, in comment.
18182         * m4/getopt.m4 (gl_GETOPT_IFELSE, gl_GETOPT_SUBSTITUTE_HEADER)
18183         (gl_PREREQ_GETOPT): Remove obsolete commentary re Emacs configure.in.
18184         Emacs has renamed it to configure.ac, and it no longer refers
18185         to these macros anyway.
18187         timespec: mark functions with const attributes
18188         * lib/timespec.h (timespec_add, timespec_sub, dtotimespec):
18189         Mark with _GL_ATTRIBUTE_CONST.
18191 2012-07-07  Ludovic Courtès  <ludo@gnu.org>
18193         canonicalize[-lgpl]: handle "guessing" values when cross-building
18194         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
18195         (gl_CANONICALIZE_LGPL): Check whether $gl_cv_func_realpath_works
18196         matches "*yes" instead of just "yes".  Regression introduced in commit
18197         e0bcf6626cde8dad4bfbdc4045c744f0cd8b9e24.
18199 2012-07-07  Ludovic Courtès  <ludo@gnu.org>
18200             Bruno Haible  <bruno@clisp.org>
18202         canonicalize: make the right guess when cross-compiling to GNU
18203         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Match also "gnu*" to
18204         determine whether cross-compiling to glibc systems, so as to
18205         include GNU/Hurd.
18207 2012-07-06  Paul Eggert  <eggert@cs.ucla.edu>
18209         timespec-sub: avoid duplicate include
18210         * lib/timespec-sub.c: Do not include <config.h> twice.
18211         Reported by Juanma Barranquero.
18213 2012-07-06  Akim Demaille  <akim@lrde.epita.fr>
18215         bootstrap: use a more consistent error reporting scheme
18216         * build-aux/bootstrap (warn, die): New.
18217         Use them.
18219 2012-07-05  Paul Eggert  <eggert@cs.ucla.edu>
18221         sys_time: allow too-wide tv_sec
18222         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Allow struct
18223         timeval even if tv_sec is wider than time_t.  This allows
18224         OpenBSD 5.1 amd64 and fixes an Emacs porting glitch with utimens.c,
18225         as without this patch gnulib replaces struct timeval
18226         and OpenBSD futimes therefore has a type mismatch.
18227         * doc/posix-headers/sys_time.texi: Mention this.
18229         pthread: check for both pthread_create and pthread_join
18230         * m4/pthread.m4 (gl_PTHREAD_CHECK): Revert previous change, but
18231         alter the check so that it tests for both pthread_create and
18232         pthread_join.  This should be more portable to hosts like OSF/1 5.1.
18233         Suggested by Bruno Haible and Richard Yao in
18234         <http://lists.gnu.org/r/bug-gnulib/2012-07/msg00048.html>.
18236         parse-datetime: doc tuneup
18237         * doc/parse-datetime.texi: Index "leap seconds" and fix minor
18238         spacing issues.
18240 2012-07-05  Akim Demaille  <akim@lrde.epita.fr>
18242         do-release-commit-and-tag: fix the previous commit
18243         * build-aux/do-release-commit-and-tag: Actually the test was right,
18244         but the comment and the error message were misleading.
18245         Fix comment, and improve error message.
18246         Perform check first, so that NEWS is not modified uselessly.
18248         do-release-commit-and-tag: fix typo
18249         * build-aux/do-release-commit-and-tag: Be sure that NEWS does
18250         _not_ start with a stub.
18252 2012-07-04  Paul Eggert  <eggert@cs.ucla.edu>
18254         pthread: check for pthread_create, not pthread_join
18255         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_create, not
18256         pthread_join.  On FreeBSD 9, pthread_create is in libpthread but
18257         pthread_join in libc.  I hope this removes the need for all the
18258         OSF/1 5.1 pthread_join business.  Reported by Richard Yao in
18259         <http://lists.gnu.org/r/bug-gnulib/2012-07/msg00042.html>.
18261 2012-07-04  Jim Meyering  <meyering@redhat.com>
18263         parse-datetime: fix failure to diagnose invalid input
18264         date -d "$(printf '\xb0')" would print 00:00:00 with today's date
18265         rather than diagnosing the invalid input.  Now it reports this:
18266         date: invalid date '\260'
18267         * lib/parse-datetime.y (to_uchar): Define.
18268         (yylex): Don't sign-extend "other" bytes.
18269         * m4/parse-datetime.m4: Require AC_C_INLINE for first use of "inline".
18270         Thanks to Bruno Haible for the patch to this file.
18271         * tests/test-parse-datetime.c (main): Add a test to trigger the bug.
18272         Peter Evans reported the bug in GNU date: http://bugs.gnu.org/11843
18274 2012-07-03  Jim Meyering  <meyering@redhat.com>
18276         bootstrap: do not require now-removed build-aux/missing
18277         Now that build-aux/missing is, er, missing, bootstrap would
18278         silently fail.
18279         * build-aux/bootstrap (gnulib_extra_files): Remove $build_aux/missing
18280         from the list, now that (since commit v0.0-7489-gd0f486f) the file is
18281         no longer part of gnulib.
18282         Diagnose the failure.
18284 2012-07-03  Paul Eggert  <eggert@cs.ucla.edu>
18286         alloca: add support for HP NonStop TNS/E native
18287         * lib/alloca.in.h (alloca): Support the new host.
18288         From a suggestion by Joachim Schmitz in
18289         <http://lists.gnu.org/r/bug-gnulib/2012-06/msg00355.html>.
18291 2012-07-02  Pádraig Brady  <P@draigBrady.com>
18293         fsusage: remove code not needed on non GNU/Linux systems.
18295         * lib/fsusage.c [STAT_STATVFS || STAT_STATVFS64]:
18296         Don't include headers no longer needed in this case.
18297         * lib/fsusage.c [STAT_STATVFS &&
18298         ! (__linux__ && (__GLIBC__||__UCLIBC__))]: Undefine
18299         STAT_STATFS2_FRSIZE to exclude code not used in this case.
18301 2012-07-02  Paul Eggert  <eggert@cs.ucla.edu>
18303         fsusage: include files needed for glibc 2.6 fallback
18304         * lib/fsusage.c [STAT_STATVFS || STAT_STATVFS64]:
18305         Include <sys/param.h>, <sys/mount.h>, <sys/vfs.h>
18306         as they are needed for the 2.6 < glibc/Linux < 2.6.36 fallback.
18307         Problem reported by Ludovic Courtès in
18308         <http://lists.gnu.org/r/bug-gnulib/2012-07/msg00005.html>.
18310         fsusage: avoid needless check on GNU/Linux
18311         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Omit STAT_STATFS3_OSF1 check
18312         on GNU/Linux systems, since it can't possibly work.
18314 2012-07-01  Bruno Haible  <bruno@clisp.org>
18316         log: Fix an autoconf >= 2.64 warning.
18317         * modules/log (configure.ac): Require, not invoke, gl_FUNC_LOG.
18318         Reported by Carlos O'Donell <carlos_odonell@mentor.com>.
18320 2012-06-28  Bruno Haible  <bruno@clisp.org>
18322         log10f: Fix possible configuration problem.
18323         * m4/log10f.m4 (gl_FUNC_LOG10F): Augment LIBS by $LOG10F_LIBM, not
18324         $LOGF_LIBM.
18325         Reported by Carlos O'Donell <carlos_odonell@mentor.com>.
18327 2012-06-28  Bruno Haible  <bruno@clisp.org>
18329         remove: No longer override on all platforms. Fixes bug from 2010-03-20.
18330         * m4/remove.m4 (gl_FUNC_REMOVE): Test gl_cv_func_unlink_honors_slashes,
18331         not gl_cv_func_unlink_works.
18332         Reported by Carlos O'Donell <carlos_odonell@mentor.com>.
18334 2012-06-27  Eric Blake  <eblake@redhat.com>
18336         config: drop scripts that automake says are not independent
18337         * config/srclist.txt: Drop elisp-comp, missing, and ylwrap.
18338         * build-aux/elisp-comp: Delete.
18339         * build-aux/missing: Likewise.
18340         * build-aux/ylwrap: Likewise.
18341         * modules/elisp-comp: Likewise.
18342         * MODULES.html.sh: Drop mention of elisp-comp.
18343         * NEWS: Mention this.
18345 2012-06-26  Paul Eggert  <eggert@cs.ucla.edu>
18347         root-uid: new module
18348         This is for portability to Tandem's NonStop Kernel.
18349         * lib/root-uid.h, modules/root-uid: New files.
18350         * lib/euidaccess.c, lib/pt_chown.c, lib/unlinkdir.c:
18351         * lib/write-any-file.c, tests/test-sethostname2.c:
18352         Include "root-uid.h".
18353         * lib/euidaccess.c (euidaccess):
18354         * lib/pt_chown.c (main):
18355         * lib/unlinkdir.c (cannot_unlink_dir):
18356         * lib/write-any-file.c (can_write_any_file):
18357         * m4/mknod.m4 (gl_FUNC_MKNOD):
18358         * tests/test-sethostname2.c (geteuid, main):
18359         Don't assume ROOT_UID == 0.
18360         * modules/euidaccess (Depends-on):
18361         * modules/pt_chown (Depends-on):
18362         * modules/sethostname-tests (Depends-on):
18363         * modules/unlinkdir (Depends-on):
18364         * modules/write-any-file (Depends-on):
18365         Add root-uid.
18367         regex: use locale-independent comparison for codeset name
18368         See Bruno Haible's comment in <http://bugs.gnu.org/10305#120>.
18369         * lib/regcomp.c (init_dfa): Use just ASCII case comparison
18370         for codeset name.
18371         * lib/regex_internal.h: Do not include <strings.h>, since we
18372         no longer use strcasecmp.
18373         * modules/regex (Depends-on): Remove strcase.
18375 2012-06-23  Bruno Haible  <bruno@clisp.org>
18377         getopt-posix: No longer guarantee that option processing is resettable.
18378         * doc/posix-functions/getopt.texi: Drop description of problem with
18379         internal state. Fix info about mingw and msvc9.
18380         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't require a resettable
18381         option processing by getopt(). Run three test programs instead of one.
18382         Simplify cross-compilation guess.
18383         * NEWS: Mention the change.
18384         Reported by Rich Felker <dalias@aerifal.cx>.
18386 2012-06-26  Bruno Haible  <bruno@clisp.org>
18388         argp, regex: Ensure strcasecmp gets declared.
18389         * lib/argp-help.c: Include <strings.h>.
18390         * lib/regex_internal.h: Likewise.
18391         Reported and suggested by Joachim Schmitz <jojo@schmitz-digital.de>.
18393 2012-06-24  Bruno Haible  <bruno@clisp.org>
18395         ptsname_r: Make it consistent with ptsname on AIX.
18396         * lib/ptsname_r.c (__ptsname_r): For AIX, use nearly the same
18397         implementation as for OSF/1.
18398         * tests/test-ptsname_r.c (main) [AIX]: Use the modern way of opening
18399         a pty master.
18401         ptsname_r: Make it consistent with ptsname on OSF/1.
18402         * lib/ptsname_r.c (__ptsname_r): Add a different implementation for
18403         OSF/1.
18405 2012-06-24  Bruno Haible  <bruno@clisp.org>
18407         ttyname_r: Fix result on OSF/1, Solaris.
18408         * lib/ttyname_r.c (ttyname_r): Produce a NUL-terminated result.
18410 2012-06-24  Bruno Haible  <bruno@clisp.org>
18412         ptsname_r: Add support for Solaris.
18413         * lib/ptsname_r.c (__ptsname_r): Add a different implementation for
18414         Solaris.
18416         ptsname_r: Fix test failure on native Windows.
18417         * modules/ptsname_r (Depends-on): Add isatty.
18419         ptsname_r: Fix test failures on IRIX, Solaris.
18420         * m4/ptsname_r.m4 (gl_PREREQ_PTSNAME_R): Test whether isatty sets
18421         errno when it fails. Define ISATTY_FAILS_WITHOUT_SETTING_ERRNO
18422         accordingly.
18423         * lib/ptsname_r.c: Include <fcntl.h>.
18424         (__ptsname_r): When isatty returned false, then on IRIX, Solaris
18425         set errno if fd is invalid.
18426         * tests/test-isatty.c (main): Update comments.
18428 2012-06-24  Bruno Haible  <bruno@clisp.org>
18430         ptsname test: Extend test.
18431         * tests/test-ptsname.c: Include <errno.h>.
18432         (main): Test behaviour with invalid file descriptor.
18434 2012-06-23  Paul Eggert  <eggert@cs.ucla.edu>
18436         time: fix obsolete comment
18437         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Remove obsolete
18438         reference to HAVE_STRUCT_TIMESPEC in comment.
18440 2012-06-23  Bruno Haible  <bruno@clisp.org>
18442         getopt-gnu: Handle suboptimal getopt_long's abbreviation handling.
18443         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): If getopt_long exists but
18444         does not handle abbreviated long options with equivalent
18445         disambiguations, set gl_replace_getopt to yes.
18446         * doc/posix-functions/getopt.texi: Mention the OpenBSD 5.0 problem.
18448 2012-06-22  Paul Eggert  <eggert@cs.ucla.edu>
18450         time_r: fix typo that always overrode localtime_r decl
18451         * m4/time_r.m4 (gl_TIME_R): Use AC_CHECK_DECLS, not
18452         AC_CHECK_DECLS_ONCE, since localtime_r is declared in <time.h>,
18453         not in a standard include.
18455 2012-06-22  Bruno Haible  <bruno@clisp.org>
18457         Write "Mac OS X" instead of "MacOS X".
18458         * README: Write "Mac OS X" instead of "MacOS X".
18459         * build-aux/bootstrap: Likewise.
18460         * build-aux/install-reloc: Likewise.
18461         * lib/acl-internal.h: Likewise.
18462         * lib/acl_entries.c: Likewise.
18463         * lib/argp-ba.c: Likewise.
18464         * lib/argp-pv.c: Likewise.
18465         * lib/config.charset: Likewise.
18466         * lib/copy-acl.c: Likewise.
18467         * lib/csharpexec.c: Likewise.
18468         * lib/euidaccess.c: Likewise.
18469         * lib/fbufmode.c: Likewise.
18470         * lib/fflush.c: Likewise.
18471         * lib/file-has-acl.c: Likewise.
18472         * lib/filemode.h: Likewise.
18473         * lib/fpurge.c: Likewise.
18474         * lib/freadable.c: Likewise.
18475         * lib/freadahead.c: Likewise.
18476         * lib/freading.c: Likewise.
18477         * lib/freadptr.c: Likewise.
18478         * lib/freadseek.c: Likewise.
18479         * lib/fseeko.c: Likewise.
18480         * lib/fseterr.c: Likewise.
18481         * lib/fsusage.c: Likewise.
18482         * lib/fwritable.c: Likewise.
18483         * lib/fwriting.c: Likewise.
18484         * lib/get-rusage-as.c: Likewise.
18485         * lib/get-rusage-data.c: Likewise.
18486         * lib/getdomainname.c: Likewise.
18487         * lib/idpriv-drop.c: Likewise.
18488         * lib/idpriv-droptemp.c: Likewise.
18489         * lib/localcharset.c: Likewise.
18490         * lib/locale.in.h: Likewise.
18491         * lib/localename.c: Likewise.
18492         * lib/mbsrtowcs-state.c: Likewise.
18493         * lib/nproc.c: Likewise.
18494         * lib/passfd.c: Likewise.
18495         * lib/posix_openpt.c: Likewise.
18496         * lib/printf-parse.c: Likewise.
18497         * lib/progreloc.c: Likewise.
18498         * lib/safe-read.h: Likewise.
18499         * lib/safe-write.h: Likewise.
18500         * lib/sched.in.h: Likewise.
18501         * lib/set-mode-acl.c: Likewise.
18502         * lib/signal.in.h: Likewise.
18503         * lib/stdint.in.h: Likewise.
18504         * lib/stdio-impl.h: Likewise.
18505         * lib/stdlib.in.h: Likewise.
18506         * lib/strtod.c: Likewise.
18507         * lib/sys_select.in.h: Likewise.
18508         * lib/tcgetsid.c: Likewise.
18509         * lib/unistd.in.h: Likewise.
18510         * lib/unlockpt.c: Likewise.
18511         * lib/vasnprintf.c: Likewise.
18512         * lib/vma-iter.c: Likewise.
18513         * lib/wcsrtombs-state.c: Likewise.
18514         * m4/acl.m4: Likewise.
18515         * m4/acosl.m4: Likewise.
18516         * m4/asinl.m4: Likewise.
18517         * m4/atanl.m4: Likewise.
18518         * m4/c-stack.m4: Likewise.
18519         * m4/cosl.m4: Likewise.
18520         * m4/expl.m4: Likewise.
18521         * m4/extensions.m4: Likewise.
18522         * m4/fdatasync.m4: Likewise.
18523         * m4/fmal.m4: Likewise.
18524         * m4/frexp.m4: Likewise.
18525         * m4/frexpf.m4: Likewise.
18526         * m4/frexpl.m4: Likewise.
18527         * m4/fsusage.m4: Likewise.
18528         * m4/getdomainname.m4: Likewise.
18529         * m4/getloadavg.m4: Likewise.
18530         * m4/getopt.m4: Likewise.
18531         * m4/gettext.m4: Likewise.
18532         * m4/gnulib-common.m4: Likewise.
18533         * m4/intdiv0.m4: Likewise.
18534         * m4/intlmacosx.m4: Likewise.
18535         * m4/largefile.m4: Likewise.
18536         * m4/ldexpl.m4: Likewise.
18537         * m4/link-follow.m4: Likewise.
18538         * m4/locale-ar.m4: Likewise.
18539         * m4/locale-fr.m4: Likewise.
18540         * m4/locale-ja.m4: Likewise.
18541         * m4/locale-tr.m4: Likewise.
18542         * m4/locale-zh.m4: Likewise.
18543         * m4/locale_h.m4: Likewise.
18544         * m4/lock.m4: Likewise.
18545         * m4/logl.m4: Likewise.
18546         * m4/mathfunc.m4: Likewise.
18547         * m4/minus-zero.m4: Likewise.
18548         * m4/mktime.m4: Likewise.
18549         * m4/mmap-anon.m4: Likewise.
18550         * m4/multiarch.m4: Likewise.
18551         * m4/nanosleep.m4: Likewise.
18552         * m4/nocrash.m4: Likewise.
18553         * m4/poll.m4: Likewise.
18554         * m4/printf-frexpl.m4: Likewise.
18555         * m4/printf.m4: Likewise.
18556         * m4/signbit.m4: Likewise.
18557         * m4/sinl.m4: Likewise.
18558         * m4/sqrtl.m4: Likewise.
18559         * m4/strerror_r.m4: Likewise.
18560         * m4/tanl.m4: Likewise.
18561         * m4/threadlib.m4: Likewise.
18562         * m4/ttyname_r.m4: Likewise.
18563         * m4/unlink.m4: Likewise.
18564         * m4/visibility.m4: Likewise.
18565         * m4/wcwidth.m4: Likewise.
18566         * tests/minus-zero.h: Likewise.
18567         * tests/test-alloca-opt.c: Likewise.
18568         * tests/test-copy-acl.sh: Likewise.
18569         * tests/test-copy-file.sh: Likewise.
18570         * tests/test-fdatasync.c: Likewise.
18571         * tests/test-file-has-acl.sh: Likewise.
18572         * tests/test-flock.c: Likewise.
18573         * tests/test-fsync.c: Likewise.
18574         * tests/test-localename.c: Likewise.
18575         * tests/test-malloca.c: Likewise.
18576         * tests/test-nonblocking-pipe.h: Likewise.
18577         * tests/test-nonblocking-socket.h: Likewise.
18578         * tests/test-openpty.c: Likewise.
18579         * tests/test-posix_openpt.c: Likewise.
18580         * tests/test-ptsname.c: Likewise.
18581         * tests/test-ptsname_r.c: Likewise.
18582         * tests/test-sameacls.c: Likewise.
18583         * tests/test-select.h: Likewise.
18584         * tests/test-set-mode-acl.sh: Likewise.
18585         * tests/test-snprintf-posix.h: Likewise.
18586         * tests/test-sprintf-posix.h: Likewise.
18587         * tests/test-strtod.c: Likewise.
18588         * tests/test-time.c: Likewise.
18589         * tests/test-vasnprintf-posix.c: Likewise.
18590         * tests/test-vasprintf-posix.c: Likewise.
18591         * doc/acl-resources.txt: Likewise.
18592         * doc/**/*.texi: Likewise.
18593         Reported by Max Horn <max@quendi.de>.
18595 2012-06-22  Bruno Haible  <bruno@clisp.org>
18597         grantpt: Relax requirement regarding invalid file descriptors.
18598         * lib/grantpt.c: Don't include <fcntl.h>.
18599         (grantpt): Don't verify the validity of the file descriptor.
18600         * modules/grantpt (Depends-on): Remove fcntl-h.
18601         * tests/test-grantpt.c (main): Allow grantpt to succeed for invalid
18602         file descriptors.
18603         * doc/posix-functions/grantpt.texi: Document more platforms on which
18604         grantpt succeeds for invalid file descriptors.
18605         Reported by Rich Felker <dalias@aerifal.cx>.
18607 2012-06-22  Bruno Haible  <bruno@clisp.org>
18609         fbufmode test: Don't test unportable behaviour.
18610         * tests/test-fbufmode.c (test_mode): New function, extracted from main.
18611         (main): Invoke it three times.
18612         Reported by Szabolcs Nagy <nsz@port70.net>
18613         and Rich Felker <dalias@aerifal.cx>.
18615 2012-06-21  Bruno Haible  <bruno@clisp.org>
18617         gnulib-tool: Refactor inctests variable.
18618         * gnulib-tool: Normalize inctests to 'true' or 'false', not ''.
18619         (func_modules_transitive_closure,
18620         func_modules_transitive_closure_separately,
18621         func_import, func_create_testdir): Update.
18623         gnulib-tool: --create-[mega]testdir, --[mega]test implies --with-tests.
18624         * gnulib-tool: Accept option --without-tests.
18625         (func_usage): Document --without-tests option. Rearrange.
18626         (inctests): Normalize according to the mode.
18627         * NEWS: Mention the change.
18628         Suggested by Simon Josefsson.
18630 2012-06-21  Bruce Korb  <bkorb@gnu.org>
18632         parse-duration test: Avoid spurious output.
18633         * tests/test-parse-duration.sh: Reindent with leading tabs.
18635 2012-06-21  Jim Meyering  <meyering@redhat.com>
18637         maint: disable the strncpy prohibition
18638         * cfg.mk: Do not prohibit strncpy here.
18640 2012-06-21  Bruno Haible  <bruno@clisp.org>
18642         nonblocking: Avoid compilation error on mingw64.
18643         * m4/stdio_h.m4 (gl_STDIO_H): Invoke gl_MODULE_INDICATOR for scanf,
18644         fscanf.
18645         * modules/vscanf (configure.ac): Invoke gl_MODULE_INDICATOR.
18646         * modules/vfscanf (configure.ac): Likewise.
18647         * lib/stdio-read.c (scanf, fscanf, vscanf, vfscanf): Enable function
18648         definition only if stdio.h has prepared it.
18649         Reported by Daniel P. Berrange <berrange@redhat.com>.
18651 2012-06-20  Bernd Jendrissek  <bernd.jendrissek@gmail.com>  (tiny change)
18653         gnulib-tool: Use readlink if it is available.
18654         * gnulib-tool (func_readlink): Choose function more appropriately.
18656 2012-06-21  Paul Eggert  <eggert@cs.ucla.edu>
18658         posixtm-tests: port to buggy compiler
18659         Problem reported by Simon Josefsson in
18660         <http://lists.gnu.org/r/bug-gnulib/2012-06/msg00246.html>.
18661         * modules/posixtm-tests (Depends-on): Add stdint.
18662         * tests/test-posixtm.c (struct posixtm_test.t_expected):
18663         Now of type int_least64_t, not int64_t, both because that's
18664         what INT64_C returns and because int_least64_t works even
18665         on 72-bit hosts.
18666         (T): Use INT64_C on constants outside the traditional int range,
18667         to work around compiler bug noted by Simon.
18669         mktime: fix integer overflow in 'configure'-time test
18670         * m4/mktime.m4 (gl_FUNC_MKTIME): Do not rely on undefined behavior
18671         after integer overflow.  Problem reported by Rich Felker in
18672         <http://lists.gnu.org/r/bug-gnulib/2012-06/msg00257.html>.
18673         Also, don't look for further instances of a bug if we've already
18674         found one instance; this helps 'configure' run faster.
18676 2012-06-20  John Darrington  <john@darrington.wattle.id.au>  (tiny change)
18678         tmpfile, clean-temp: Fix invocation of GetVersionEx.
18679         * lib/tmpfile.c (supports_delete_on_close): Initialize parameter for
18680         GetVersionEx correctly.
18681         * lib/clean-temp.c (supports_delete_on_close): Likewise.
18683 2012-06-20  Bruno Haible  <bruno@clisp.org>
18685         fdopen: Allow implementations that don't reject invalid fd arguments.
18686         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Let the test pass if fdopen(-1,...)
18687         succeeds.
18688         Reported by Rich Felker <dalias@aerifal.cx>.
18690 2012-06-20  Simon Josefsson  <simon@josefsson.org>
18692         * modules/parse-duration-tests (test_parse_duration_LDADD): Don't
18693         bring in LIBINTL.
18695 2012-06-20  Paul Eggert  <eggert@cs.ucla.edu>
18697         init.sh: do not rely on autoupated PWD
18698         This addresses symptoms of the problem reported by Nelson H.F. Beebe in
18699         <http://lists.gnu.org/r/bug-gzip/2012-06/msg00008.html>.
18700         Although Nelson's bug was not necessarily fixed by this patch,
18701         it seems wise to make the change for safety.
18702         * tests/init.sh (path_prepend_): Do not rely on PWD updating
18703         automagically after 'cd'; this is not reliable on older shells.
18704         (setup_): Fail if we cannot cd to temporary directory.
18706 2012-06-19  Bruno Haible  <bruno@clisp.org>
18708         stat, fstat: Avoid warnings on mingw64.
18709         * lib/stat.c (stat) [_GL_WINDOWS_64_BIT_ST_SIZE]: Undefine before
18710         redefining.
18711         * lib/fstat.c (stat, fstat) [_GL_WINDOWS_64_BIT_ST_SIZE]: Likewise.
18712         Reported by Daniel P. Berrange <berrange@redhat.com>.
18714 2012-06-19  Bruno Haible  <bruno@clisp.org>
18716         stdioext: Add support for musl libc.
18718         * m4/fbufmode.m4 (gl_FUNC_FBUFMODE): Test whether __fbufsize exists.
18719         * lib/fbufmode.c (fbufmode): Add conditional code for musl.
18721         * m4/fseterr.m4: New file.
18722         * lib/fseterr.h (fseterr): Define as an alias of __fseterr if that
18723         function exists.
18724         * modules/fseterr (Files): Add m4/fseterr.m4.
18725         (configure.ac): Invoke gl_FUNC_FSETERR. Compile fseterr.c if
18726         __fseterr does not exist.
18727         (Makefile.am): Remove fseterr.c from lib_SOURCES.
18729         * lib/freadable.h: Update comment.
18731         * lib/fwritable.h: Update comment.
18733         * lib/freading.h: Update comment.
18735         * lib/fwriting.h: Update comment.
18737         * m4/freadahead.m4: New file.
18738         * lib/freadahead.h (freadahead): Define as an alias of __freadahead if
18739         that function exists.
18740         * modules/freadahead (Files): Add m4/freadahead.m4.
18741         (configure.ac): Invoke gl_FUNC_FREADAHEAD. Compile freadahead.c if
18742         __freadahead does not exist.
18743         (Makefile.am): Remove freadahead.c from lib_SOURCES.
18745         * m4/freadptr.m4: New file.
18746         * lib/freadptr.h (freadptr): Define as an alias of __freadptr if that
18747         function exists.
18748         * modules/freadptr (Files): Add m4/freadptr.m4.
18749         (configure.ac): Invoke gl_FUNC_FREADPTR. Compile freadptr.c if
18750         __freadptr does not exist.
18751         (Makefile.am): Remove freadptr.c from lib_SOURCES.
18753         * m4/freadseek.m4: New file.
18754         * lib/freadseek.c (freadptrinc): Use __freadptrinc if that function
18755         exists.
18756         * modules/freadseek (Files): Add m4/freadseek.m4.
18757         (configure.ac): Invoke gl_FUNC_FREADSEEK.
18759         * lib/fpurge.c (fpurge): Update comment.
18761         Reported by and with help from Rich Felker <dalias@aerifal.cx>.
18763 2012-06-19  Bruno Haible  <bruno@clisp.org>
18765         *printf-posix: Put more info into config.log.
18766         * m4/printf.m4 (gl_PRINTF_ENOMEM): Emit conftest's error output and
18767         exit code into config.log.
18769 2012-06-19  Bruno Haible  <bruno@clisp.org>
18771         getopt-gnu: Fix exit code overflow in autoconf test.
18772         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Squash exit code values,
18773         to keep them below < 128.
18775 2012-06-17  Jim Meyering  <meyering@redhat.com>
18777         maint.mk: fix typo in code to derive GPG key at release time
18778         * top/maint.mk (gpg_key_ID): Fix typo: $3 -> $$3
18780 2012-06-17  Paul Eggert  <eggert@cs.ucla.edu>
18782         regex: avoid warning when pointers are not long
18783         * lib/regcomp.c (parse_dup_op, mark_opt_subexp): Cast between void *
18784         and uintptr_t, not long, for portability to hosts where pointers and
18785         long have different sizes.  Issue noted by Daniel P. Berrange in
18786         <http://lists.gnu.org/r/bug-gnulib/2012-06/msg00122.html>
18787         and fix suggested by Bruno Haible in
18788         <http://lists.gnu.org/r/bug-gnulib/2012-06/msg00128.html>.
18790 2012-06-17  Bruno Haible  <bruno@clisp.org>
18792         dummy: Relicense into the public domain.
18793         * modules/dummy (License): Set to "public domain".
18794         Suggested by Reuben Thomas.
18796 2012-06-12  Akim Demaille  <akim@lrde.epita.fr>
18798         announce-gen: VPATH issues
18799         * build-aux/announce-gen (--srcdir): New option, used to trim the
18800         $srcdir part of the path from $builddir to NEWS.
18801         * top/maint.mk (announcement): Adjust.
18803 2012-06-12  Akim Demaille  <akim@lrde.epita.fr>
18805         gnu-web-doc-update: VPATH builds
18806         * build-aux/gnu-web-doc-update (--builddir): New option.
18807         Revamp the handling of options.
18808         Prefer $(...) to `...`.
18809         Don't pass --tmpdir=. to mktemp, it is useless given that we specify
18810         the template, and it is GNU mktemp specific.
18811         Prefer set -e to long series of &&.
18812         Restore the initial git branch, not "master".
18813         Properly initialize submodules (don't rely only on bootstrap).
18814         Do not reconfigure blindly, use config.status.
18815         * top/README-release: Update instructions for gnu-web-doc-update.
18817 2012-06-11  Jim Meyering  <meyering@redhat.com>
18819         maint.mk: revert most of the previous change re "all these"
18820         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Remove that pair.
18821         For rationale, see the discussion at
18822         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30912
18824 2012-06-10  Karl Berry  <karl@gnu.org>
18826         * build-aux/gnupload: with --dry-run, do not ask for gpg pw.
18828         * build-aux/gnupload: implement --replace, ftp-upload protocol v1.2.
18830 2012-06-10  Bruce Korb  <bkorb@gnu.org>
18832         parse-duration: Relicense under LGPLv2+.
18833         * modules/parse-duration (License): Change to LGPLv2+.
18835 2012-06-10  Jim Meyering  <meyering@redhat.com>
18837         maint.mk: prohibit common grammar error: "all these"
18838         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Add "all these" to
18839         the list of prohibited word sequences.  It should be "all of these".
18840         * lib/tempname.c (__gen_tempname): Fix one of them.
18842 2012-06-07  Akim Demaille  <akim@lrde.epita.fr>
18844         do-release-commit-and-tag: support VPATH builds
18845         * build-aux/do-release-commit-and-tag: Prefer $(...) to `...`.
18846         (noteworthy): Defined earlier to factor its value.
18847         (noteworthy_stub): New.
18848         Use it to factor.
18849         (help_version): Split into...
18850         (help, version): these.
18851         Adjust the option processing part.
18852         Support "--option=value" in addition to "--option value".
18853         (builddir): New.
18854         (--builddir): New option.
18855         * top/README-release: Document this.
18856         Reword slightly so that the reader cannot understand that he
18857         has to do these steps before calling do-release-commit-and-tag.
18859 2012-06-07  Akim Demaille  <akim@lrde.epita.fr>
18861         readme-release: also require announce-gen and maintainer-makefile
18862         * modules/readme-release (Depends-on): here.
18863         * modules/announce-gen, modules/do-release-commit-and-tag,
18864         modules/gnu-web-doc-update, modules/maintainer-makefile
18865         (Description): Point to readme-release.
18867 2012-06-07  Akim Demaille  <akim@lrde.epita.fr>
18869         maint.mk: fix VPATH issues.
18870         * top/maint.mk (news-check): GNU Make understand $< very well.
18871         (release-prep): NEWS is in $(srcdir).
18873 2012-06-05  Akim Demaille  <akim@lrde.epita.fr>
18875         readme-release: require the promoted modules.
18876         * modules/readme-release (Depends-on): Add
18877         do-release-commit-and-tag, gnupload, and gnu-web-doc-update, used
18878         in this text.
18880 2012-05-21  Paolo Bonzini  <bonzini@gnu.org>
18881             Bruno Haible  <bruno@clisp.org>
18883         error, strerror-override: Support mingw64 from Fedora 17.
18884         * lib/errno.in.h (GNULIB_defined_ESTREAMS): Use a different indicator
18885         for ETXTBSY, ENODATA, ENOSR, ENOSTR, ETIME, EOTHER, compared to
18886         EINPROGRESS.
18887         * lib/strerror-override.h (strerror_override): Test it.
18888         * lib/strerror-override.c (strerror_override): Likewise.
18889         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also ETXTBSY.
18891 2012-05-21  Paolo Bonzini  <bonzini@gnu.org>
18892             Bruno Haible  <bruno@clisp.org>
18894         error, strerror-override: Support mingw64 from Fedora 17.
18895         * lib/errno.in.h (GNULIB_defined_ENOTRECOVERABLE): Use a different
18896         indicator for ENOTRECOVERABLE, compared to EOWNERDEAD.
18897         * lib/strerror-override.h (strerror_override): Test it.
18898         * lib/strerror-override.c (strerror_override): Likewise.
18900 2012-06-03  Bruno Haible  <bruno@clisp.org>
18902         error, strerror-override: Support new errno values from POSIX:2008.
18903         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also EOWNERDEAD and
18904         ENOTRECOVERABLE.
18905         * lib/errno.in.h (EOWNERDEAD, ENOTRECOVERABLE): Define on all
18906         platforms.
18907         * lib/strerror-override.c (strerror_override): Conditionalize the
18908         EOWNERDEAD, ENOTRECOVERABLE handling on GNULIB_defined_EOWNERDEAD.
18909         * lib/strerror-override.h (strerror_override): Declare also if
18910         GNULIB_defined_EOWNERDEAD is defined.
18911         * tests/test-errno.c (e130, e131): New variables.
18912         * doc/posix-headers/errno.texi: Mention the status for EOWNERDEAD,
18913         ENOTRECOVERABLE.
18914         Reported by Paolo Bonzini.
18916 2012-05-31  Jim Meyering  <meyering@redhat.com>
18918         savewd: add missing dependency on sys_wait module
18919         * modules/savewd (Depends-on): Add sys_wait, needed at least
18920         for MSVC.  Report and suggested change by Michael Goffioul.
18922 2012-05-29  Paul Eggert  <eggert@cs.ucla.edu>
18924         system-quote-tests: port to CentOS 5
18925         Problem reported by Tom G. Christensen in
18926         <http://lists.gnu.org/r/bug-gnulib/2012-05/msg00255.html>.
18927         * tests/test-system-quote-child.c (fclose, fprintf): Undef.
18929 2012-05-29  Jim Meyering  <meyering@redhat.com>
18931         maint: fix typos in comments and ChangeLog
18932         Culprits identified and fixed mostly automatically using these commands:
18933         git ls-files | misspellings -f - |grep -v '^ERROR:' |perl -pe \
18934         's/^(.*?)\[(\d+)\]: (\w+) -> "(.*?)"$/sed -i '\''${2}s!$3!$4!'\'' $1/'
18935         using http://github.com/lyda/misspell-check
18936         * ChangeLog: Fix typos.
18937         * doc/solaris-versions: Likewise.
18938         * lib/regexec.c (re_search_stub): Likewise.
18939         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
18941 2012-05-27  Paul Eggert  <eggert@cs.ucla.edu>
18943         manywarnings: remove duplicate -Wmultichar entry
18944         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Remove duplicate
18945         entry for -Wmultichar.  -Wno-multichar is in the GCC 4.7.0 manual,
18946         so keep the entry marked as documented.
18948 2012-05-27  Karl Berry  <karl@gnu.org>
18950         * config/srclist.txt (mktime.c): remove last libc sync,
18951         perhaps just temporarily.
18953 2012-05-26  Paul Eggert  <eggert@cs.ucla.edu>
18955         regex: don't assume uint64_t or uint32_t
18956         * lib/regcomp.c (init_word_char): Don't assume that the types
18957         uint64_t and uint32_t exist.  The C standard doesn't guarantee
18958         them, and on some 32-bit compilers there is no uint64_t.
18959         Problem reported by Gianluigi Tiesi in
18960         <http://lists.gnu.org/r/bug-gnulib/2012-03/msg00154.html>.
18962 2012-05-25  Jim Meyering  <meyering@redhat.com>
18964         maint.mk: add strncpy-prohibiting syntax-check rule
18965         * top/maint.mk (sc_prohibit_strncpy): New rule, from coreutils.
18967 2012-05-24  Jim Meyering  <meyering@redhat.com>
18969         maint.mk: compute $(gpg_key_ID) more portably
18970         * top/maint.mk (gpg_key_ID): Use awk in place of sed '{...;...;}'.
18971         That use of sed is not portable to some fringe systems.
18972         Reported by Paul Eggert in
18973         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30793/focus=30802
18975 2012-05-23  Paul Eggert  <eggert@cs.ucla.edu>
18977         mktime: sync from glibc
18978         * config/srclist.txt: Uncomment mktime.c.
18979         * lib/mktime.c: Sync from glibc master.  This incorporates 3 changes.
18980         First, indent with tabs, since glibc uses tabs and doesn't want to
18981         change and we'd rather be identical to glibc.  Also, two small
18982         coding changes:
18983         (isdst_differ): Use &&, not &, as && is the usual style.
18984         (__mktime_internal): Rename local var from abs_diff to approx_abs_diff
18985         for clarity.
18987 2012-05-23  Akim Demaille  <akim@lrde.epita.fr>
18989         announce-gen: du -h is more portable than du --human
18990         * build-aux/announce-gen (sizes): Invoke du with -h instead
18991         of --human.  Accept leading white space in its output.
18993 2012-05-23  Akim Demaille  <akim@lrde.epita.fr>
18995         announce-gen: Improve diagnostics.
18996         * build-aux/announce-gen: When parsing command line options,
18997         prefer "announce-gen: option --release-type requires an argument"
18998         to "Option release-type requires an argument".
19000 2012-05-23  Akim Demaille  <akim@lrde.epita.fr>
19002         maint.mk: gpg_key_ID: use sed more portably
19003         * top/maint.mk (gpg_key_ID): End sed block with a semicolon before
19004         the closing brace.
19005         (refresh-po): Fuse two sed invocations into one.
19007 2012-05-15  Akim Demaille  <akim@lrde.epita.fr>
19009         gitlog-to-changelog: support the log message format used in Bison.
19010         * build-aux/gitlog-to-changelog: Support --strip-tab and
19011         --strip-cherry-picked.
19013 2012-05-21  Paolo Bonzini  <bonzini@gnu.org>
19015         poll/select: prevent busy-waiting.  SwitchToThread() only gives away
19016         the rest of the current time slice to another thread in the current
19017         process. So if the thread that feeds the file decscriptor we're
19018         polling is not in the current process, we get busy-waiting.
19019         * lib/poll.c: Use SleepEx(1, TRUE) instead of SwitchToThread().
19020         Patch from Theodore Leblond.
19021         * lib/select.c: Split polling out of the loop that sets the output
19022         fd_sets.  Check for zero result and loop if the wait timeout is
19023         infinite.
19025 2012-05-21  Simon Josefsson  <simon@josefsson.org>
19027         select: Fix build error on IRIX 6.5.
19028         * lib/select.c: Include stddef.h for NULL.
19030 2012-05-21  Simon Josefsson  <simon@josefsson.org>
19032         gc: fix libgcrypt detection on older machines.
19033         * m4/gc.m4: Reject libgcrypt earlier than 1.4.4.  Collapse
19034         copyright years because the file has been distributed every year
19035         since it was created.
19037 2012-05-18  Paul Eggert  <eggert@cs.ucla.edu>
19039         crypto: fix bug in large buffer handling
19040         Problem reported by Serge Belyshev for glibc in
19041         <http://sourceware.org/bugzilla/show_bug.cgi?id=14090> and for gnulib in
19042         <http://lists.gnu.org/r/bug-gnulib/2012-05/msg00226.html>.
19043         * lib/md4.c (md4_process_block):
19044         * lib/md5.c (md5_process_block):
19045         * lib/sha1.c (sha1_process_block):
19046         * lib/sha256.c (sha256_process_block):
19047         Don't assume the buffer length is less than 2**32.
19048         * lib/sha512.c (sha512_process_block): Likewise.
19049         Here, the bug is present only in the rare case where the host does
19050         not support uint64_t or where size_t is wider than 64 bits.
19051         Use u64size to work around the problems.
19052         * lib/u64.h (u64size): New macro.
19054 2012-05-15  Pádraig Brady  <P@draigBrady.com>
19056         fsusage: fix block size returned on older Linux 2.6
19058         * lib/fsusage.c: Fall back to (struct statfs).f_frsize
19059         which is available since Linux 2.6.
19060         * m4/fsusage.m4 (STAT_STATFS2_FRSIZE): Always define
19061         when the member is available so it can be used as a fallback.
19062         * doc/posix-functions/statvfs.texi: Mention the hang issue
19063         on Linux < 2.6.36.
19065 2012-05-14  Paul Eggert  <eggert@cs.ucla.edu>
19067         bootstrap: suppress stderr chatter
19068         * build-aux/bootstrap (insert_sorted_if_absent, main program):
19069         Omit unnecessary chatter to stderr.  The main program chatter
19070         was there only inadvertantly.
19072         bootstrap: .gitignore files created by autopoint, libtool
19073         I ran into this problem when bootstrapping the latest diffutils.
19074         After './bootstrap', 'git status' reported lots of untracked files
19075         m4/codeset.m4, m4/gettext.m4, etc.  These files were created by
19076         autopoint and do not need to be version-controlled.
19077         * build-aux/bootstrap: Put into .gitignore the files that
19078         autopoint and libtool create, by keeping track of files that exist
19079         after but not before these programs are run.
19080         (version_controlled_file): Move up.  2nd arg is now full file
19081         name, not base name; this is more convenient.  Put CVS at the end,
19082         as it's now somewhat deprecated.
19084 2012-05-14  Jim Meyering  <meyering@redhat.com>
19086         ignore-value.h: remove unused _GL_ATTRIBUTE_DEPRECATED definition
19087         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Remove now-unused
19088         definition.  Reported by Bruno Haible.
19090 2012-05-13  Bruno Haible  <bruno@clisp.org>
19091             Paul Eggert  <eggert@cs.ucla.edu>
19093         binary-io: Define set_binary_mode function.
19094         * lib/binary-io.h (set_binary_mode): New function.
19095         (SET_BINARY): Define in terms of set_binary_mode.
19096         * modules/binary-io (configure.ac): Require AC_C_INLINE.
19097         * tests/test-binary-io.c (main): Accept an argument, and test either
19098         set_binary_mode or SET_BINARY depending on the argument.
19099         * tests/test-binary-io.sh: Invoke test-binary-io twice, with an
19100         argument. Clean up also t-bin-out0.tmp.
19102 2012-05-13  Stefano Lattarini  <stefano.lattarini@gmail.com>
19104         bootstrap: take advantage of POSIX shell features
19106         The 'bootstrap' script offered by Gnulib script already uses POSIX
19107         shell features (like $((...)) arithmetic expansions) that are not
19108         supported by legacy Bourne shells like Solaris 10 /bin/sh.  This
19109         means that bootstrap must already be run using a proper POSIX shell,
19110         which will thus provide more features, like ${var#pattern} parameter
19111         expansion or inversion of a command exit status with '!'.  We can
19112         thus use these features to improve the clarity and the performances
19113         of the bootstrap script.
19115         Suggested by Eric Blake.
19117         * build-aux/bootstrap: Prefer xpg4 parameter expansions over use
19118         of sed/expr plus command substitutions, to save some forks.  While
19119         we are at it, prefer the POSIX $(...) form of command substitution,
19120         rather than the legacy form `...` (since the former is visually
19121         clearer and interacts better with quoting), and prefer the idiom:
19122           "if ! CMD; then ACTION ..."
19123         over the idiom:
19124           "if CMD; then :; else ACTION ..."
19125         which was required by legacy Bourne shells not supporting '!'.
19127 2012-05-12  Bruno Haible  <bruno@clisp.org>
19129         system-quote: Add more comments.
19130         * lib/system-quote.h: Add more comments about wilcards and limitations.
19131         Suggested by Eli Zaretskii <eliz@gnu.org>.
19133         sh-quote, system-quote: Add comments about wildcards.
19134         * lib/sh-quote.h: Clarify what happens with wildcard characters.
19135         * lib/system-quote.h: Likewise.
19136         Reported by Eli Zaretskii <eliz@gnu.org>.
19138 2012-05-11  Paul Eggert  <eggert@cs.ucla.edu>
19140         fsusage: check for GNU/Linux statvfs problem dynamically
19141         * lib/fsusage.c [STAT_STATVFS && __linux__ && (__GLIBC__||__UCLIBC__)]:
19142         Define STAT_STATFS2_BSIZE too, since in this case the code now
19143         checks dynamically whether statvfs is reliable, falling back on
19144         Linux-style statfs otherwise.
19145         (statvfs_works): New function, for dynamically testing statvfs.
19146         (get_fs_usage) [STAT_STATVFS]: Use it.
19147         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Remove static check for
19148         statvfs on GNU/Linux hosts, since it's now done dynamically.
19150 2012-05-10  Bruno Haible  <bruno@clisp.org>
19152         system-quote, execute, spawn-pipe: Escape '?' on Windows.
19153         * lib/system-quote.c (SHELL_SPECIAL_CHARS, CMD_SPECIAL_CHARS): Add the
19154         '?' character.
19155         * lib/w32spawn.h (SHELL_SPECIAL_CHARS): Likewise.
19156         * tests/test-system-quote-main.c (check_all): Check also strings like
19157         "??????????".
19158         Reported by Eli Zaretskii <eliz@gnu.org>.
19160 2012-05-10  Paul Eggert  <eggert@cs.ucla.edu>
19162         _Noreturn: port config.h to gcc -Wundef
19163         * m4/gnulib-common.m4 (gl_COMMON_BODY): Check that __STDC_VERSION__ is
19164         defined before using it, for gcc -Wundef.  Reported by Akim Demaille in
19165         <http://lists.gnu.org/r/bug-gnulib/2012-05/msg00147.html>.
19167 2012-05-10  Bruno Haible  <bruno@clisp.org>
19169         system-quote: Refactor.
19170         * lib/system-quote.h (system_quote_copy): Fix comment.
19171         * lib/system-quote.c (windows_createprocess_quote, windows_cmd_quote):
19172         New functions, extracted from system_quote_copy.
19173         (system_quote_length, system_quote_copy): Use these functions.
19174         Reported by Paul Eggert.
19176 2012-05-08  Bruno Haible  <bruno@clisp.org>
19178         execute, spawn-pipe: Escape '*' characters in arguments on Windows.
19179         * lib/w32spawn.h (SHELL_SPECIAL_CHARS): Add the '*' character.
19181 2012-05-08  Bruno Haible  <bruno@clisp.org>
19183         Tests for module 'system-quote'.
19184         * modules/system-quote-tests: New file.
19185         * tests/test-system-quote.sh: New file.
19186         * tests/test-system-quote-main.c: New file.
19187         * tests/test-system-quote-child.c: New file.
19189         New module 'system-quote'.
19190         * lib/system-quote.h: New file.
19191         * lib/system-quote.c: New file.
19192         * modules/system-quote: New file.
19194 2012-05-08  Bruno Haible  <bruno@clisp.org>
19196         sh-quote: Make C++ safe and allow multiple inclusion.
19197         * lib/sh-quote.h: Add double-inclusion guard. For C++, wrap function
19198         declarations in extern "C".
19200 2012-05-08  Bruno Haible  <bruno@clisp.org>
19202         sh-quote tests: Make tests stricter.
19203         * tests/test-sh-quote.c (check_one): Check the return value of
19204         shell_quote_copy.
19205         (main): Check a string with a CR character. Check a string that
19206         contains UCHAR_MAX.
19208 2012-05-08  Akim Demaille  <akim@lrde.epita.fr>
19210         warnings.m4: provide a means to specify the program to compile.
19211         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): New, extracted from...
19212         (gl_WARN_ADD): here.
19213         Use gl_AS_VAR_APPEND.
19214         Support an argument to specify the program to compile.
19215         (gl_WARN_ADD): Accept an argument to specify the program to compile.
19216         AC_SUBST the WARN_CFLAGS when they are used.
19217         * modules/warnings (configure.ac): Don't AC_SUBST WARN_CFLAGS,
19218         leave this to gl_WARN_ADD.
19220 2012-05-08  Eric Blake  <eblake@redhat.com>
19222         doc: recommendations on gettext version
19223         * doc/gnulib-tool.texi (gettextize and autopoint): Document the
19224         choice between versions.
19225         * DEPENDENCIES (gettext): Cover both approaches.
19227 2012-05-08  Jim Meyering  <meyering@redhat.com>
19229         init.sh: explain why EXEEXT support uses aliases rather than functions
19230         * tests/init.sh: Add a comment.
19232         init.sh: don't let bash aliases interfere with tests
19233         * tests/init.sh: Undefine any pre-defined aliases if the selected shell
19234         is bash.  This avoids problems for those who alias standard commands to
19235         non-conforming uses, like those reported in http://bugs.gnu.org/11256.
19236         Suggested by Tim Mooney <Tim.Mooney@ndsu.edu>.
19238 2012-05-07  Paul Eggert  <eggert@cs.ucla.edu>
19240         stdint: be more consistent with glibc, SunOS libc
19241         * lib/stdint.in.h (gl_int_fast8_t, gl_uint_fast8_t)
19242         (gl_int_fast16_t, gl_uint_fast16_t)
19243         (gl_int_fast32_t, gl_uint_fast32_t)
19244         (INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX)
19245         (INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX)
19246         (INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
19247         Be consistent with glibc by default, and with SunOS 5.10 and later
19248         if __sun is defined.  This lessens the likelihood of clashes if
19249         code compiled for older hosts is combined with code compiled for
19250         newer ones.  Problem reported by Niels Möller in
19251         <http://lists.gnu.org/r/bug-gnulib/2012-05/msg00074.html>.
19253 2012-05-07  Eric Blake  <eblake@redhat.com>
19255         isatty: relax license to LGPLv2+
19256         * modules/isatty (License): Relax license.
19258 2012-05-06  Paul Eggert  <eggert@cs.ucla.edu>
19260         stat-size: comment fix
19261         * lib/stat-size.h: Remove obsolete comment about indenting.
19263 2012-05-06  Bruno Haible  <bruno@clisp.org>
19265         Tests for module 'sh-quote'.
19266         * modules/sh-quote-tests: New file.
19267         * tests/test-sh-quote.c: New file.
19269 2012-05-06  Bruno Haible  <bruno@clisp.org>
19271         sh-quote: Improve shell_quote_argv's signature.
19272         * lib/sh-quote.h (shell_quote_argv): Make argument array a 'const *'.
19273         * lib/sh-quote.c (shell_quote_argv): Likewise.
19275 2012-05-06  Paul Eggert  <eggert@cs.ucla.edu>
19277         stdint: document issues with int_fast8_t etc.
19278         * doc/posix-headers/stdint.texi (stdint.h): Say that other
19279         stdint.h substitutes may define these types differently.  See
19280         <http://lists.gnu.org/r/bug-gnulib/2012-05/msg00071.html>.
19282 2012-05-05  Bruno Haible  <bruno@clisp.org>
19284         nanosleep: Avoid guessing wrong when cross-compiling to Linux.
19285         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require AC_CANONICAL_HOST. When
19286         cross-compiling, set gl_cv_func_nanosleep to either 'guessing no'
19287         or 'guessing no (mishandles large arguments)'.
19289 2012-05-05  Bruno Haible  <bruno@clisp.org>
19291         link-follow: Avoid guessing wrong when cross-compiling to glibc/Linux.
19292         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Require
19293         AC_CANONICAL_HOST. When cross-compiling to a glibc/Linux platform,
19294         set gl_cv_func_link_follows_symlink to "guessing no".
19296 2012-05-05  Bruno Haible  <bruno@clisp.org>
19298         tzset: Avoid guessing wrong when cross-compiling to glibc systems.
19299         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require AC_CANONICAL_HOST. When
19300         cross-compiling to a glibc platform, set gl_cv_func_tzset_clobber to
19301         "guessing no".
19302         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Update.
19304 2012-05-05  Bruno Haible  <bruno@clisp.org>
19306         d-ino: Avoid guessing "no" when cross-compiling to glibc/Linux systems.
19307         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Require
19308         AC_CANONICAL_HOST. When cross-compiling to a glibc/Linux platform,
19309         set gl_cv_struct_dirent_d_ino to "guessing yes".
19311 2012-05-05  Bruno Haible  <bruno@clisp.org>
19313         fseeko-tests, ftello-tests: Avoid "guessing no" when cross-compiling.
19314         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Require AC_CANONICAL_HOST. When
19315         cross-compiling to a glibc platform, set gl_cv_func_ungetc_works to
19316         "guessing yes".
19318 2012-05-05  Bruno Haible  <bruno@clisp.org>
19320         signbit: Avoid "guessing no" when cross-compiling to glibc systems.
19321         * m4/signbit.m4 (gl_SIGNBIT): Require AC_CANONICAL_HOST. When cross-
19322         compiling to a glibc system, set gl_cv_func_signbit and
19323         gl_cv_func_signbit_gcc to "guessing yes".
19325 2012-05-05  Bruno Haible  <bruno@clisp.org>
19327         strerror: Avoid "guessing no" when cross-compiling to glibc systems.
19328         * m4/strerror.m4 (gl_FUNC_STRERROR): Require AC_CANONICAL_HOST. When
19329         cross-compiling to a glibc platform, set gl_cv_func_working_strerror
19330         to "guessing yes".
19331         (gl_FUNC_STRERROR_0): Require AC_CANONICAL_HOST. When cross-compiling
19332         to a glibc platform, set gl_cv_func_strerror_0_works to "guessing yes".
19334 2012-05-05  Bruno Haible  <bruno@clisp.org>
19336         canonicalize[-lgpl]: Avoid "guessing no" when cross-compiling to glibc.
19337         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Require
19338         AC_CANONICAL_HOST. When cross-compiling to a glibc system, set
19339         gl_cv_func_realpath_works to "guessing yes".
19341 2012-05-05  Bruno Haible  <bruno@clisp.org>
19343         gettimeofday: Avoid bad guess when cross-compiling to glibc systems.
19344         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Require
19345         AC_CANONICAL_HOST. When cross-compiling, guess no on glibc platforms.
19347 2012-05-04  Bruno Haible  <bruno@clisp.org>
19349         Tweak last commit.
19350         * m4/off_t.m4 (gl_TYPE_OFF_T): Tweak comments.
19351         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
19353 2012-05-04  Paul Eggert  <eggert@cs.ucla.edu>
19355         unistd_h: make it easier to avoid sys_types_h
19356         This is useful for Emacs, which has its own method of porting to
19357         Windows, and which therefore does not need the sys_types_h module.
19358         * m4/off_t.m4: New file, defining gl_TYPE_OFF_T, which contains
19359         code moved here from gl_SYS_TYPES_H.
19360         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Require it instead of
19361         using the code directly.
19362         * m4/unistd_h.m4 (gl_UNISTD_H): Require gl_TYPE_OFF_T, not
19363         gl_SYS_TYPES_H.
19364         * modules/sys_types (Files):
19365         * modules/unistd (Files): Add m4/off_t.m4.
19367 2012-05-03  Bruno Haible  <bruno@clisp.org>
19369         lstat: Avoid "guessing no" when cross-compiling to glibc systems.
19370         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): When cross-
19371         compiling, set gl_cv_func_lstat_dereferences_slashed_symlink to
19372         "guessing yes" or "guessing no".
19373         (gl_FUNC_LSTAT): Update.
19374         * m4/fstatat.m4 (gl_FUNC_FSTATAT): Update.
19375         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
19376         * m4/unlinkat.m4 (gl_FUNC_UNLINKAT): Update.
19378 2012-05-03  Bruno Haible  <bruno@clisp.org>
19380         *alloc-gnu, eealloc: Avoid "guessing no" when cross-compiling to glibc.
19381         * m4/malloc.m4 (_AC_FUNC_MALLOC_IF): Override in autoconf < 2.70.
19382         * m4/realloc.m4 (_AC_FUNC_REALLOC_IF): Override in autoconf < 2.70.
19383         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Require AC_CANONICAL_HOST. When
19384         cross-compiling, choose the first alternative on glibc systems.
19385         * modules/eealloc (Files): Add m4/malloc.m4, m4/realloc.m4.
19387 2012-05-03  Bruno Haible  <bruno@clisp.org>
19389         getgroups: Avoid "guessing no" when cross-compiling to glibc systems.
19390         * m4/getgroups.m4 (AC_FUNC_GETGROUPS): Override in autoconf < 2.70.
19391         (gl_FUNC_GETGROUPS): Adapt to change of ac_cv_func_getgroups_works.
19393 2012-05-03  Bruno Haible  <bruno@clisp.org>
19395         chown: Avoid "guessing no" when cross-compiling to glibc systems.
19396         * m4/chown.m4 (AC_FUNC_CHOWN): Override in autoconf < 2.70.
19398 2012-05-03  Bruno Haible  <bruno@clisp.org>
19400         Avoid "guessing no" guesses when cross-compiling to glibc systems.
19401         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Require AC_CANONICAL_HOST. When cross-
19402         compiling to glibc systems, set gl_cv_func_cbrtl_ieee to "guessing yes".
19403         * m4/ceil.m4 (gl_FUNC_CEIL): Require AC_CANONICAL_HOST. When cross-
19404         compiling to glibc systems, set gl_cv_func_ceil_ieee to "guessing yes".
19405         * m4/ceilf.m4 (gl_FUNC_CEILF): Require AC_CANONICAL_HOST. When cross-
19406         compiling to glibc systems, set gl_cv_func_ceilf_ieee to "guessing yes".
19407         * m4/ceill.m4 (gl_FUNC_CEILL): Require AC_CANONICAL_HOST. When cross-
19408         compiling to glibc systems, set gl_cv_func_ceill_ieee to "guessing yes".
19409         * m4/chown.m4 (gl_FUNC_CHOWN): Require AC_CANONICAL_HOST. When cross-
19410         compiling to glibc systems, set gl_cv_func_chown_slash_works,
19411         gl_cv_func_chown_ctime_works to "guessing yes".
19412         * m4/lchown.m4 (gl_FUNC_LCHOWN): Update.
19413         * m4/exp2l.m4 (gl_FUNC_EXP2L): Require AC_CANONICAL_HOST. When cross-
19414         compiling to glibc systems, set gl_cv_func_exp2l_ieee to "guessing yes".
19415         * m4/expm1.m4 (gl_FUNC_EXPM1): Require AC_CANONICAL_HOST. When cross-
19416         compiling to glibc systems, set gl_cv_func_expm1_ieee to "guessing yes".
19417         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require AC_CANONICAL_HOST. When cross-
19418         compiling to glibc systems, set gl_cv_func_open_directory_works to
19419         "guessing yes".
19420         * m4/fstat.m4 (gl_FUNC_FSTAT): Update.
19421         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Require AC_CANONICAL_HOST. When
19422         cross-compiling to glibc systems, set gl_cv_func_fdopendir_works to
19423         "guessing yes".
19424         * m4/floor.m4 (gl_FUNC_FLOOR): Require AC_CANONICAL_HOST. When cross-
19425         compiling to glibc systems, set gl_cv_func_floor_ieee to "guessing yes".
19426         * m4/floorf.m4 (gl_FUNC_FLOORF): Require AC_CANONICAL_HOST. When cross-
19427         compiling to glibc systems, set gl_cv_func_floorf_ieee to
19428         "guessing yes".
19429         * m4/fmod.m4 (gl_FUNC_FMOD): Require AC_CANONICAL_HOST. When cross-
19430         compiling to glibc systems, set gl_cv_func_fmod_ieee to "guessing yes".
19431         * m4/fmodf.m4 (gl_FUNC_FMODF): Require AC_CANONICAL_HOST. When cross-
19432         compiling to glibc systems, set gl_cv_func_fmodf_ieee to "guessing yes".
19433         * m4/fmodl.m4 (gl_FUNC_FMODL): Require AC_CANONICAL_HOST. When cross-
19434         compiling to glibc systems, set gl_cv_func_fmodl_ieee to "guessing yes".
19435         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Require AC_CANONICAL_HOST. When
19436         cross-compiling to glibc systems, set gl_cv_func_getgroups_works to
19437         "guessing yes".
19438         * m4/hypot.m4 (gl_FUNC_HYPOT): Require AC_CANONICAL_HOST. When cross-
19439         compiling to glibc systems, set gl_cv_func_hypot_ieee to "guessing yes".
19440         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Require AC_CANONICAL_HOST. When cross-
19441         compiling to glibc systems, set gl_cv_func_hypotf_ieee to
19442         "guessing yes".
19443         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Require AC_CANONICAL_HOST. When cross-
19444         compiling to glibc systems, set gl_cv_func_hypotl_ieee to
19445         "guessing yes".
19446         * m4/link.m4 (gl_FUNC_LINK): Require AC_CANONICAL_HOST. When cross-
19447         compiling to glibc systems, set gl_cv_func_link_works to "guessing yes".
19448         * m4/log.m4 (gl_FUNC_LOG): Require AC_CANONICAL_HOST. When cross-
19449         compiling to glibc systems, set gl_cv_func_log_ieee to "guessing yes".
19450         * m4/logf.m4 (gl_FUNC_LOGF): Require AC_CANONICAL_HOST. When cross-
19451         compiling to glibc systems, set gl_cv_func_logf_ieee to "guessing yes".
19452         * m4/log10.m4 (gl_FUNC_LOG10): Require AC_CANONICAL_HOST. When cross-
19453         compiling to glibc systems, set gl_cv_func_log10_ieee to "guessing yes".
19454         * m4/log10f.m4 (gl_FUNC_LOG10F): Require AC_CANONICAL_HOST. When cross-
19455         compiling to glibc systems, set gl_cv_func_log10f_ieee to
19456         "guessing yes".
19457         * m4/log1p.m4 (gl_FUNC_LOG1P): Require AC_CANONICAL_HOST. When cross-
19458         compiling to glibc systems, set gl_cv_func_log1p_ieee to "guessing yes".
19459         * m4/log1pf.m4 (gl_FUNC_LOG1PF): Require AC_CANONICAL_HOST. When cross-
19460         compiling to glibc systems, set gl_cv_func_log1pf_ieee to
19461         "guessing yes".
19462         * m4/log1pl.m4 (gl_FUNC_LOG1PL): Require AC_CANONICAL_HOST. When cross-
19463         compiling to glibc systems, set gl_cv_func_log1pl_ieee to
19464         "guessing yes".
19465         * m4/log2.m4 (gl_FUNC_LOG2): Require AC_CANONICAL_HOST. When cross-
19466         compiling to glibc systems, set gl_cv_func_log2_ieee to "guessing yes".
19467         * m4/log2f.m4 (gl_FUNC_LOG2F): Require AC_CANONICAL_HOST. When cross-
19468         compiling to glibc systems, set gl_cv_func_log2f_ieee to "guessing yes".
19469         * m4/mkdir.m4 (gl_FUNC_MKDIR): Require AC_CANONICAL_HOST. When cross-
19470         compiling to glibc systems, set gl_cv_func_mkdir_trailing_slash_works,
19471         gl_cv_func_mkdir_trailing_dot_works to "guessing yes".
19472         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Require AC_CANONICAL_HOST. When cross-
19473         compiling to glibc systems, set gl_cv_func_mkfifo_works to
19474         "guessing yes".
19475         * m4/mknod.m4 (gl_FUNC_MKNOD): Require AC_CANONICAL_HOST. When cross-
19476         compiling to glibc systems, set gl_cv_func_mknod_works to
19477         "guessing yes".
19478         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_CANONICAL_HOST. When
19479         cross-compiling to glibc systems, set gl_cv_func_working_mkstemp to
19480         "guessing yes".
19481         * m4/modf.m4 (gl_FUNC_MODF): Require AC_CANONICAL_HOST. When cross-
19482         compiling to glibc systems, set gl_cv_func_modf_ieee to "guessing yes".
19483         * m4/modff.m4 (gl_FUNC_MODFF): Require AC_CANONICAL_HOST. When cross-
19484         compiling to glibc systems, set gl_cv_func_modff_ieee to "guessing yes".
19485         * m4/modfl.m4 (gl_FUNC_MODFL): Require AC_CANONICAL_HOST. When cross-
19486         compiling to glibc systems, set gl_cv_func_modfl_ieee to "guessing yes".
19487         * m4/putenv.m4 (gl_FUNC_PUTENV): Require AC_CANONICAL_HOST. When cross-
19488         compiling to glibc systems, set gl_cv_func_svid_putenv to
19489         "guessing yes".
19490         * m4/readlink.m4 (gl_FUNC_READLINK): Require AC_CANONICAL_HOST. When
19491         cross-compiling to glibc systems, set gl_cv_func_readlink_works to
19492         "guessing yes".
19493         * m4/remainder.m4 (gl_FUNC_REMAINDER): Require AC_CANONICAL_HOST. When
19494         cross-compiling to glibc systems, set gl_cv_func_remainder_ieee to
19495         "guessing yes".
19496         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Require AC_CANONICAL_HOST.
19497         When cross-compiling to glibc systems, set gl_cv_func_remainderf_ieee
19498         to "guessing yes".
19499         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Require AC_CANONICAL_HOST.
19500         When cross-compiling to glibc systems, set gl_cv_func_remainderl_ieee
19501         to "guessing yes".
19502         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require AC_CANONICAL_HOST. When cross-
19503         compiling to glibc systems, set gl_cv_func_rmdir_works to
19504         "guessing yes".
19505         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. When cross-
19506         compiling to glibc systems, set gl_cv_func_unlink_honors_slashes,
19507         gl_cv_func_unlink_parent_fails to "guessing yes".
19508         * m4/remove.m4 (gl_FUNC_REMOVE): Update.
19509         * m4/rename.m4 (gl_FUNC_RENAME): Require AC_CANONICAL_HOST. When cross-
19510         compiling to glibc systems, set gl_cv_func_rename_slash_dst_works,
19511         gl_cv_func_rename_slash_src_works, gl_cv_func_rename_link_works,
19512         gl_cv_func_rename_dest_works to "guessing yes".
19513         * m4/round.m4 (gl_FUNC_ROUND): Require AC_CANONICAL_HOST. When cross-
19514         compiling to glibc systems, set gl_cv_func_round_ieee to "guessing yes".
19515         * m4/roundf.m4 (gl_FUNC_ROUNDF): Require AC_CANONICAL_HOST. When cross-
19516         compiling to glibc systems, set gl_cv_func_roundf_ieee to
19517         "guessing yes".
19518         * m4/roundl.m4 (gl_FUNC_ROUNDL): Require AC_CANONICAL_HOST. When cross-
19519         compiling to glibc systems, set gl_cv_func_roundl_ieee to
19520         "guessing yes".
19521         * m4/setenv.m4 (gl_FUNC_SETENV): Require AC_CANONICAL_HOST. When cross-
19522         compiling to glibc systems, set gl_cv_func_setenv_works to
19523         "guessing yes".
19524         (gl_FUNC_UNSETENV): Require AC_CANONICAL_HOST. When cross-
19525         compiling to glibc systems, set gl_cv_func_unsetenv_works to
19526         "guessing yes".
19527         * m4/sleep.m4 (gl_FUNC_SLEEP): Require AC_CANONICAL_HOST. When cross-
19528         compiling to glibc systems, set gl_cv_func_sleep_works to
19529         "guessing yes".
19530         * m4/stat.m4 (gl_FUNC_STAT): Require AC_CANONICAL_HOST. When cross-
19531         compiling to glibc systems, set gl_cv_func_stat_file_slash to
19532         "guessing yes".
19533         * m4/symlink.m4 (gl_FUNC_SYMLINK): Require AC_CANONICAL_HOST. When
19534         cross-compiling to glibc systems, set gl_cv_func_symlink_works to
19535         "guessing yes".
19536         * m4/trunc.m4 (gl_FUNC_TRUNC): Require AC_CANONICAL_HOST. When cross-
19537         compiling to glibc systems, set gl_cv_func_trunc_ieee to "guessing yes".
19538         * m4/truncf.m4 (gl_FUNC_TRUNCF): Require AC_CANONICAL_HOST. When cross-
19539         compiling to glibc systems, set gl_cv_func_truncf_ieee to
19540         "guessing yes".
19541         * m4/truncl.m4 (gl_FUNC_TRUNCL): Require AC_CANONICAL_HOST. When cross-
19542         compiling to glibc systems, set gl_cv_func_truncl_ieee to
19543         "guessing yes".
19544         * m4/usleep.m4 (gl_FUNC_USLEEP): Require AC_CANONICAL_HOST. When cross-
19545         compiling to glibc systems, set gl_cv_func_usleep_works to
19546         "guessing yes".
19547         * m4/utimens.m4 (gl_UTIMENS): Require AC_CANONICAL_HOST. When cross-
19548         compiling to glibc systems, set gl_cv_func_futimesat_works to
19549         "guessing yes".
19551 2012-05-03  Bruno Haible  <bruno@clisp.org>
19553         Say "guessing yes" or "guessing no" when cross-compiling.
19554         * m4/dup2.m4 (gl_FUNC_DUP2): When cross-compiling, set
19555         gl_cv_func_dup2_works to "guessing yes" or "guessing no".
19556         * m4/getdelim.m4 (gl_FUNC_GETDELIM): When cross-compiling, set
19557         gl_cv_func_working_getdelim to "guessing yes" or "guessing no".
19558         * m4/getline.m4 (gl_FUNC_GETLINE): When cross-compiling, set
19559         am_cv_func_working_getline to "guessing yes" or "guessing no".
19560         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, set
19561         gl_cv_func_memmem_works_always to "guessing yes" or "guessing no".
19562         (gl_FUNC_MEMMEM): When cross-compiling, set
19563         gl_cv_func_memmem_works_fast to "guessing yes" or "guessing no".
19564         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): When cross-compiling, set
19565         gl_cv_func_stpncpy to "guessing yes" or "guessing no".
19566         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): When cross-compiling,
19567         set gl_cv_func_strcasestr_works_always to "guessing yes" or
19568         "guessing no".
19569         (gl_FUNC_STRCASESTR): When cross-compiling, set
19570         gl_cv_func_strcasestr_linear to "guessing yes" or "guessing no".
19571         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): When cross-compiling, set
19572         gl_cv_func_strstr_works_always to "guessing yes" or "guessing no".
19573         (gl_FUNC_STRSTR): When cross-compiling, set
19574         gl_cv_func_strstr_linear to "guessing yes" or "guessing no".
19575         * m4/strtod.m4 (gl_FUNC_STRTOD): When cross-compiling, set
19576         gl_cv_func_strtod_works to "guessing yes" or "guessing no".
19577         * m4/wctype_h.m4 (gl_WCTYPE_H): When cross-compiling, set
19578         gl_cv_func_iswcntrl_works to "guessing yes" or "guessing no".
19580 2012-05-01  Bruno Haible  <bruno@clisp.org>
19582         relocatable-prog: Enable ELF ORIGIN trick also on GNU/kFreeBSD.
19583         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Treat kFreeBSD like Linux.
19584         * build-aux/reloc-ldflags: Likewise.
19585         Suggested by Steven Chamberlain <steven@pyro.eu.org>.
19587 2012-05-01  Bruno Haible  <bruno@clisp.org>
19589         gnulib-tool: Remove transitional code.
19590         * gnulib-tool: Don't warn about --import with 0 arguments any more.
19591         Reported by Dmitriy Selyutin <ghostman.sd@gmail.com>.
19593 2012-05-01  Bruno Haible  <bruno@clisp.org>
19595         getcwd: Fix misindentation.
19596         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Fix indentation.
19598 2012-04-29  Paul Eggert  <eggert@cs.ucla.edu>
19600         exclude: process exclude and include directives in order
19601         This restores the pre-2009 behavior, and is part of a fix of a
19602         grep bug reported by Quentin Arce in
19603         <http://lists.gnu.org/r/bug-grep/2012-04/msg00056.html>.
19604         * lib/exclude.c (struct exclude): Remove 'tail' member.
19605         (new_exclude_segment): Prepend the new segment instead of appending.
19606         Return void, since that's now more convenient.
19607         (file_pattern_matches): Renamed from excluded_file_pattern_p.
19608         (file_name_matches): Renamed from excluded_file_name_p.
19609         (file_pattern_matches, file_name_matches):
19610         Return true if the pattern matches, not if it excludes.
19611         All callers changed.
19612         (excluded_file_name): Process the list in reverse order;
19613         since the list is now reversed this restores the pre-2009 behavior.
19614         (add_exclude): Adjust to new reversed-order list.  Use local var
19615         rather than macro, for clarity.
19616         * tests/test-exclude7.sh: Adjust to corrected behavior.
19618         exclude: handle wildcards with FNM_NOESCAPE and with trailing \
19619         * lib/exclude.c (unescape_pattern): Don't worry about unescaped [;
19620         it's not possible here.  Handle the case of \ at end of pattern
19621         without dumping core.
19622         (add_exclude): Do not unescape the pattern if FNM_NOESCAPE is used.
19624         _Noreturn: future-proof non-GNU and non-MSVC compilers
19625         * build-aux/snippet/_Noreturn.h (_Noreturn):
19626         * m4/gnulib-common.m4 (gl_COMMON_BODY):
19627         Do not define _Noreturn if __STDC_VERSION__ indicates this is
19628         C11 or later.  This is more likely to work with random future C
19629         compilers that are neither GNUish nor MSVCish.  See Vincent Lefevre in
19630         <http://lists.gnu.org/r/bug-gnulib/2012-04/msg00195.html>.
19632         exclude: handle wildcards with FNM_EXTMATCH
19633         * lib/exclude.c (fnmatch_pattern_has_wildcards): Also treat '+(',
19634         '+@', '!(' as wildcards, if FNM_EXTMATCH.  Make it clear in a
19635         comment that "has wildcards" really means "has or may have
19636         wildcards".  Simplify by avoiding the need to call strcspn.
19638 2012-04-29  Bruno Haible  <bruno@clisp.org>
19640         gnulib-tool: Fix list of authors.
19641         * gnulib-tool (func_version): Add Paul Eggert to list of authors.
19643 2012-04-26  Stefano Lattarini  <stefano.lattarini@gmail.com>
19645         bootstrap: support Automake-NG in $buildreq
19646         * bootstrap (check_versions): Handle automake and aclocal from
19647         Automake-NG specially.  They can be specified as respectively
19648         the "automake-ng" and "aclocal-ng" requirements.
19650 2012-04-25  Eric Blake  <eblake@redhat.com>
19652         bootstrap: only force latest Makefile.in.in for gettext module
19653         * build-aux/bootstrap (with_gettext): Only install latest
19654         Makefile.in.in for projects requesting bleeding edge gettext.
19656 2012-04-22  Bruno Haible  <bruno@clisp.org>
19658         doc: Mention reason for replacement on glibc/Linux systems.
19659         * doc/posix-functions/dprintf.texi: Mention the problem with special
19660         'long double' values.
19661         * doc/posix-functions/fprintf.texi: Likewise.
19662         * doc/posix-functions/printf.texi: Likewise.
19663         * doc/posix-functions/snprintf.texi: Likewise.
19664         * doc/posix-functions/sprintf.texi: Likewise.
19665         * doc/posix-functions/vdprintf.texi: Likewise.
19666         * doc/posix-functions/vfprintf.texi: Likewise.
19667         * doc/posix-functions/vprintf.texi: Likewise.
19668         * doc/posix-functions/vsnprintf.texi: Likewise.
19669         * doc/posix-functions/vsprintf.texi: Likewise.
19670         * doc/posix-functions/fcntl.texi: Add glibc/Linux to the list of
19671         platforms with F_DUPFD_CLOEXEC problems.
19672         * doc/posix-functions/glob.texi: Mention which platforms are affected
19673         by the problem with symbolic links.
19674         * doc/posix-functions/linkat.texi: Mention the problem with
19675         AT_SYMLINK_FOLLOW on Linux.
19677 2012-04-22  Bruno Haible  <bruno@clisp.org>
19679         pwrite: Don't replace on all platforms.
19680         * m4/pwrite.m4 (gl_FUNC_PWRITE): Fix syntax error in test program.
19682 2012-04-22  Bruno Haible  <bruno@clisp.org>
19684         rint* tests: Avoid gcc warnings.
19685         * tests/test-rint.c (INFINITY, NAN): Undefine before redefining.
19686         * tests/test-rintf.c (INFINITY, NAN): Likewise.
19687         * tests/test-rintl.c (INFINITY, NAN): Likewise.
19689 2012-04-21  Bruno Haible  <bruno@clisp.org>
19691         users.txt: Update.
19692         * users.txt: Add freedink, wdiff. Update URLs for projects that have
19693         switched from CVS to git, bzr, or svn.
19695 2012-04-21  Bruno Haible  <bruno@clisp.org>
19697         Large File Support for native Windows platforms.
19699         * m4/largefile.m4 (gl_LARGEFILE): New macro.
19700         * modules/largefile (configure.ac): Require gl_LARGEFILE.
19702         * lib/sys_types.in.h (off_t) [WINDOWS_64_BIT_OFF_T]: Define to a 64-bit
19703         type.
19704         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Set WINDOWS_64_BIT_OFF_T.
19705         * modules/sys_types (Makefile.am): Substitute WINDOWS_64_BIT_OFF_T.
19706         * doc/posix-headers/sys_types.texi: Mention the effect of the
19707         'largefile' module.
19709         * lib/fcntl.in.h: Add comments about off_t.
19710         * modules/fcntl-h (Depends-on): Add sys_types.
19712         * lib/unistd.in.h [WINDOWS_64_BIT_OFF_T]: Include <sys/types.h>.
19713         (ftruncate): Replace it if REPLACE_FTRUNCATE is 1.
19714         * m4/unistd_h.m4 (gl_UNISTD_H): Require gl_SYS_TYPES_H.
19715         (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_FTRUNCATE.
19716         * modules/unistd (Depends-on): Add sys_types.
19717         (Makefile.am): Substitute WINDOWS_64_BIT_OFF_T, REPLACE_FTRUNCATE.
19719         * lib/lseek.c (rpl_lseek) [_GL_WINDOWS_64_BIT_OFF_T]: Use _lseeki64
19720         instead of lseek.
19721         * m4/lseek.m4 (gl_FUNC_LSEEK): Require gl_SYS_TYPES_H. Set
19722         REPLACE_LSEEK if WINDOWS_64_BIT_OFF_T is 1.
19723         * modules/lseek (Depends-on): Add sys_types.
19725         * lib/ftruncate.c: Put under GPLv3+. Include <windows.h>,
19726         msvc-nothrow.h.
19727         (SetFileSize): New function.
19728         (ftruncate) [_GL_WINDOWS_64_BIT_OFF_T]: New implementation.
19729         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Set REPLACE_FTRUNCATE on Windows
19730         if Large File Support is requested.
19731         * modules/ftruncate (configure.ac): Consider REPLACE_FTRUNCATE.
19732         (Depends-on): Add sys_types, msvc-nothrow. Update conditions.
19734         * lib/stdio.in.h: Add comments about off_t.
19735         * modules/stdio (Depends-on): Add sys_types.
19737         * lib/ftello.c [_GL_WINDOWS_64_BIT_OFF_T]: Use _ftelli64 or ftello64
19738         instead of ftello.
19739         * m4/ftello.m4 (gl_FUNC_FTELLO): Require gl_SYS_TYPES_H. Set
19740         REPLACE_FTELLO if WINDOWS_64_BIT_OFF_T is 1.
19741         (gl_PREREQ_FTELLO): New macro.
19742         * modules/ftello (Depends-on): Add sys_types.
19743         (configure.ac): Incoke gl_PREREQ_FTELLO.
19745         * lib/fseeko.c [_GL_WINDOWS_64_BIT_OFF_T]: Use _fseeki64 or fseeko64
19746         instead of fseeko.
19747         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require gl_SYS_TYPES_H. Set
19748         REPLACE_FSEEKO if WINDOWS_64_BIT_OFF_T is 1.
19749         (gl_PREREQ_FSEEKO): New macro.
19750         * modules/fseeko (Depends-on): Add sys_types.
19751         (configure.ac): Invoke gl_PREREQ_FSEEKO.
19753         * lib/sys_stat.in.h: Add comments about off_t.
19754         (stat, fstat) [WINDOWS_64_BIT_ST_SIZE]: Define to variants that use a
19755         64-bit integer for st_size in 'struct stat'.
19756         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Set WINDOWS_64_BIT_ST_SIZE.
19757         Define _GL_WINDOWS_64_BIT_ST_SIZE.
19758         * modules/sys_stat (Depends-on): Add sys_types.
19759         (Makefile.am): Substitute WINDOWS_64_BIT_ST_SIZE.
19761         * lib/stat.c (stat) [_GL_WINDOWS_64_BIT_ST_SIZE]: Define to _stati64
19762         instead of stat or _stat.
19764         * lib/fstat.c [_GL_WINDOWS_64_BIT_ST_SIZE]: Use _fstati64 and
19765         'struct _stati64' instead of fstat and 'struct stat'.
19766         * m4/fstat.m4 (gl_FUNC_FSTAT): Require gl_HEADER_SYS_STAT_H. Set
19767         REPLACE_FSTAT if WINDOWS_64_BIT_ST_SIZE is 1.
19769         Reported by Ray Satiro <raysatiro@yahoo.com>.
19771 2012-04-19  Eric Blake  <eblake@redhat.com>
19773         bootstrap: accommodate older libtool
19774         * build-aux/bootstrap (use_libtool): Cater to libtool 1.5.22.
19775         Reported by Daniel P. Berrange.
19777 2012-04-19  Jim Meyering  <meyering@redhat.com>
19779         announce-gen: avoid failure due to lack of Digest::SHA1
19780         Even with the preferred Digest::SHA available, this script
19781         would fail when the backup module, Digest::SHA1, was not installed.
19782         * build-aux/announce-gen: Quote the conditional use of "use".
19783         Reported by Reuben Thomas in:
19784         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30444
19786         bootstrap: don't let a user's CDPATH setting affect this script
19787         When CDPATH is set, cd will sometimes generate output.
19788         When "cd" is run in a subshell whose output matters, that
19789         surprising-to-some output can cause malfunction.
19790         Unsetting CDPATH turns off this shell "feature."
19791         * build-aux/bootstrap (CDPATH): Unset.
19792         Reported by Reuben Thomas in:
19793         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30435
19794         and inspired by his patch here:
19795         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30440
19797 2012-04-16  Akim Demaille  <akim@lrde.epita.fr>
19798         and Jim Meyering  <meyering@redhat.com>
19800         maint.mk: catch "see @xref{}" and similar
19801         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Also
19802         prohibit "See also @xref{", "Also see @pxref{", and similar.
19804 2012-04-16  Jim Meyering  <meyering@redhat.com>
19806         bootstrap: really use gnulib's po/Makefile.in.in
19807         * build-aux/bootstrap: Correct the source file name in previous change.
19808         Reported by Akim Demaille.
19810         configmake: correct minor inconsistency in Makefile rule
19811         * modules/configmake (Makefile.am): All other rules like this one
19812         run the final "mv -f ..." in the same backslash-continued command
19813         as the one that does everything else.  This one put the mv -f ...
19814         command on a separate, non-backslash-continued line.
19815         Make it like the others.
19817         bootstrap: use gnulib's po/Makefile.in.in, not the one from gettext
19818         * build-aux/bootstrap: Use gnulib's po/Makefile.in.in, not
19819         the one from gettext.  Reported by Akim Demaille.
19821 2012-04-16  Joel E. Denny  <joeldenny@joeldenny.org>
19823         Fix recursion of install-* into po directories.
19824         Bison's install-pdf bug reported by Hans Aberg at
19825         <http://lists.gnu.org/r/bug-bison/2011-05/msg00008.html>.
19826         * build-aux/po/Makefile.in.in (install-dvi, install-html)
19827         (install-info, install-pdf, install-ps): New targets.
19829 2012-04-16  Jim Meyering  <meyering@redhat.com>
19831         maint: avoid spurious "make sc_maint" failure
19832         * cfg.mk (exclude_file_name_regexp--sc_trailing_blank): Also
19833         exempt all *.class file names, for lib/javaversion.class.
19835 2012-04-15  Bruno Haible  <bruno@clisp.org>
19837         lseek: Make configure test independent of environment.
19838         * m4/lseek.m4 (gl_FUNC_LSEEK): Require AC_CANONICAL_HOST. On native
19839         Windows, we know that lseek() on pipes is broken; skip the runtime
19840         test.
19842 2012-04-14  Bruno Haible  <bruno@clisp.org>
19844         stat: Bypass buggy override in mingw64.
19845         * m4/stat.m4 (gl_FUNC_STAT): Update comments.
19846         * lib/stat.c (stat) [mingw64]: Define to _stat.
19847         * doc/posix-functions/stat.texi: Mention mingw64 bug.
19849 2012-04-14  Bruno Haible  <bruno@clisp.org>
19851         pathmax: Fix compilation error on MSVC 9.
19852         * modules/pathmax (Depends-on): Add unistd.
19854 2012-04-12  Paul Eggert  <eggert@cs.ucla.edu>
19856         README: document pointer comparison assumption
19857         * README (Portability guidelines): Document assumption about
19858         pointer comparisons, in response to a recent bug-gnulib comment by
19859         Jeffrey Kegler.
19861 2012-04-12  Bruno Haible  <bruno@clisp.org>
19863         Tests for module 'getrusage'.
19864         * modules/getrusage-tests: New file.
19865         * tests/test-getrusage.c: New file.
19867         New module 'getrusage'.
19868         * lib/sys_resource.in.h: Include arg-nonnull.h, c++defs.h,
19869         warn-on-use.h.
19870         (getrusage): New declaration.
19871         * lib/getrusage.c: New file.
19872         * m4/getrusage.m4: New file.
19873         * m4/sys_resource_h.m4 (gl_HEADER_SYS_RESOURCE): Test whether getrusage
19874         is declared.
19875         (gl_SYS_RESOURCE_H_DEFAULTS): Initialize GNULIB_GETRUSAGE,
19876         HAVE_GETRUSAGE.
19877         * modules/sys_resource (Depends-on): Add snippet/arg-nonnull,
19878         snippet/c++defs, snippet/warn-on-use.
19879         (Makefile.am): Update generation of sys/resource.h. Substitute
19880         GNULIB_GETRUSAGE, HAVE_GETRUSAGE.
19881         * modules/getrusage: New file.
19882         * doc/posix-functions/getrusage.texi: Mention the new module.
19884 2012-04-12  Bruno Haible  <bruno@clisp.org>
19886         Tests for module 'sys_resource'.
19887         * modules/sys_resource-tests: New file.
19888         * tests/test-sys_resource.c: New file.
19890         New module 'sys_resource'.
19891         * lib/sys_resource.in.h: New file.
19892         * m4/sys_resource_h.m4: New file.
19893         * modules/sys_resource: New file.
19894         * doc/posix-headers/sys_resource.texi: Mention the new module.
19896 2012-04-12  LRN  <lrn1986@gmail.com>  (tiny change)
19898         ioctl: Fix compilation error on mingw.
19899         * lib/ioctl.c: Include <windows.h>.
19900         Also reported by Ray Satiro <raysatiro@yahoo.com>.
19902 2012-04-04  Jim Meyering  <meyering@redhat.com>
19904         regex: correct #pragma guard expression
19905         * lib/regex.c: -Wsuggest-attribute=pure was introduced in gcc-4.6,
19906         not 4.3.  Correct its cpp guard expression.
19908 2012-04-04  Paul Eggert  <eggert@cs.ucla.edu>
19910         regex: remove unnecessary type punning
19911         Problem reported by Vladimir Serbinenko in
19912         <http://lists.gnu.org/r/bug-gnulib/2012-04/msg00006.html>.
19913         * lib/regex.h (struct re_pattern_buffer): Change the type of
19914         __REPB_PREFIX(buffer) from unsigned char * to struct re_dfa_t *.
19915         Fix comment to match code.
19916         * lib/regcomp.c (re_compile_fastmap, re_compile_fastmap_iter, regfree)
19917         (re_compile_internal, free_workarea_compile, analyze, lower_subexp)
19918         (parse, parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
19919         * lib/regexec.c (regexec, re_search_stub, re_search_internal)
19920         (set_regs):
19921         Omit no-longer-necessary casts.
19923 2012-04-03  Bruno Haible  <bruno@clisp.org>
19925         Tests for module 'ilogbl'.
19926         * modules/ilogbl-tests: New file.
19927         * tests/test-ilogbl.c: New file.
19929         New module 'ilogbl'.
19930         * lib/math.in.h (ilogbl): New declaration.
19931         * lib/ilogbl.c: New file.
19932         * m4/ilogbl.m4: New file.
19933         * m4/math_h.m4 (gl_MATH_H): Test whether ilogbl is declared.
19934         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGBL, HAVE_ILOGBL.
19935         * modules/math (Makefile.am): Substitute GNULIB_ILOGBL, HAVE_ILOGBL.
19936         Split sed invocation, to avoid the limit of 100 substitutions of
19937         HP-UX 'sed'.
19938         * modules/ilogbl: New file.
19939         * tests/test-math-c++.cc: Check the declaration of ilogbl.
19940         * doc/posix-functions/ilogbl.texi: Mention the new module.
19942 2012-04-03  Bruno Haible  <bruno@clisp.org>
19944         Tests for module 'ilogbf'.
19945         * modules/ilogbf-tests: New file.
19946         * tests/test-ilogbf.c: New file.
19948         New module 'ilogbf'.
19949         * lib/math.in.h (ilogbf): New declaration.
19950         * lib/ilogbf.c: New file.
19951         * m4/ilogbf.m4: New file.
19952         * m4/math_h.m4 (gl_MATH_H): Test whether ilogbf is declared.
19953         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGBF, HAVE_ILOGBF,
19954         REPLACE_ILOGBF.
19955         * modules/math (Makefile.am): Substitute GNULIB_ILOGBF, HAVE_ILOGBF,
19956         REPLACE_ILOGBF.
19957         * modules/ilogbf: New file.
19958         * tests/test-math-c++.cc: Check the declaration of ilogbf.
19959         * doc/posix-functions/ilogbf.texi: Mention the new module.
19961 2012-04-03  Bruno Haible  <bruno@clisp.org>
19963         Tests for module 'ilogb'.
19964         * modules/ilogb-tests: New file.
19965         * tests/test-ilogb.c: New file.
19966         * tests/test-ilogb.h: New file, based on tests/test-logb.h and
19967         tests/test-logb-ieee.h.
19969         New module 'ilogb'.
19970         * lib/math.in.h (ilogb): New declaration.
19971         * lib/ilogb.c: New file.
19972         * m4/ilogb.m4: New file.
19973         * m4/math_h.m4 (gl_MATH_H): Test whether ilogb is declared.
19974         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGB, HAVE_ILOGB,
19975         REPLACE_ILOGB.
19976         * modules/math (Makefile.am): Substitute GNULIB_ILOGB, HAVE_ILOGB,
19977         REPLACE_ILOGB.
19978         * modules/ilogb: New file.
19979         * tests/test-math-c++.cc: Check the declaration of ilogb.
19980         * doc/posix-functions/ilogb.texi: Mention the new module.
19982 2012-04-03  Bruno Haible  <bruno@clisp.org>
19984         math: Provide FP_ILOGB0 and FP_ILOGBNAN.
19985         * lib/math.in.h (FP_ILOGB0, FP_ILOGBNAN): Define fallback.
19986         * tests/test-math.c: Check that FP_ILOGB0, FP_ILOGBNAN are defined.
19987         (main): Check their values.
19988         * doc/posix-headers/math.texi: Mention the FP_ILOGB0, FP_ILOGBNAN
19989         problem.
19991 2012-04-03  Bruno Haible  <bruno@clisp.org>
19993         Tests for module 'logbl-ieee'.
19994         * modules/logbl-ieee-tests: New file.
19995         * tests/test-logbl-ieee.c: New file.
19997         New module 'logbl-ieee'.
19998         * modules/logbl-ieee: New file.
20000         Tests for module 'logb-ieee'.
20001         * modules/logb-ieee-tests: New file.
20002         * tests/test-logb-ieee.c: New file.
20004         New module 'logb-ieee'.
20005         * modules/logb-ieee: New file.
20007         Tests for module 'logbf-ieee'.
20008         * modules/logbf-ieee-tests: New file.
20009         * tests/test-logbf-ieee.c: New file.
20010         * tests/test-logb-ieee.h: New file.
20012         New module 'logbf-ieee'.
20013         * modules/logbf-ieee: New file.
20015 2012-04-03  Bruno Haible  <bruno@clisp.org>
20017         Tests for module 'logbl'.
20018         * modules/logbl-tests: New file.
20019         * tests/test-logbl.c: New file.
20021         New module 'logbl'.
20022         * lib/math.in.h (logbl): New declaration.
20023         * lib/logbl.c: New file.
20024         * m4/logbl.m4: New file.
20025         * m4/math_h.m4 (gl_MATH_H): Test whether logbl is declared.
20026         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGBL, HAVE_LOGBL,
20027         REPLACE_LOGBL.
20028         * modules/math (Makefile.am): Substitute GNULIB_LOGBL, HAVE_LOGBL,
20029         REPLACE_LOGBL.
20030         * modules/logbl: New file.
20031         * tests/test-math-c++.cc: Check the declaration of logbl.
20032         * doc/posix-functions/logbl.texi: Mention the new module.
20034 2012-04-02  Bruno Haible  <bruno@clisp.org>
20036         Tests for module 'logbf'.
20037         * modules/logbf-tests: New file.
20038         * tests/test-logbf.c: New file.
20040         New module 'logbf'.
20041         * lib/math.in.h (logbf): New declaration.
20042         * lib/logbf.c: New file.
20043         * m4/logbf.m4: New file.
20044         * m4/math_h.m4 (gl_MATH_H): Test whether logbf is declared.
20045         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGBF, HAVE_LOGBF,
20046         REPLACE_LOGBF.
20047         * modules/math (Makefile.am): Substitute GNULIB_LOGBF, HAVE_LOGBF,
20048         REPLACE_LOGBF.
20049         * modules/logbf: New file.
20050         * tests/test-math-c++.cc: Check the declaration of logbf.
20051         * doc/posix-functions/logbf.texi: Mention the new module.
20053 2012-04-02  Bruno Haible  <bruno@clisp.org>
20055         logb tests: More tests.
20056         * tests/test-logb.h: New file, based on tests/test-logb.c and
20057         tests/test-frexp.h.
20058         * tests/test-logb.c: Include minus-zero.h, test-logb.h.
20059         (main): Just invoke test_function.
20060         * modules/logb-tests (Files): Add tests/test-logb.h,
20061         tests/minus-zero.h, tests/randomd.c.
20062         (Makefile.am): Add randomd.c to test_logb_SOURCES.
20064         logb: Provide replacement and workarounds.
20065         * lib/math.in.h (logb): Ensure declaration. Replace if REPLACE_LOGB
20066         is 1.
20067         * lib/logb.c: New file.
20068         * m4/logb.m4 (gl_FUNC_LOGB_WORKS): New macro.
20069         (gl_FUNC_LOGB): Invoke it. Set HAVE_LOGB, REPLACE_LOGB.
20070         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGB.
20071         * modules/math (Makefile.am): Substitute REPLACE_LOGB.
20072         * modules/logb (Files): Add lib/logb.c.
20073         (Depends-on): Add isfinite, frexp, isnand.
20074         (configure.ac): Compile the replacement code logb.c if needed.
20075         * tests/test-math-c++.cc: Check the declaration of logb.
20076         * doc/posix-functions/logb.texi: Mention the replacement and the bug
20077         with subnormal numbers.
20079 2012-04-02  Bruno Haible  <bruno@clisp.org>
20081         log10* tests: Speed up.
20082         * tests/test-log10.h (test_function): Reduce amount of random numbers
20083         to test.
20085 2012-04-01  Bruno Haible  <bruno@clisp.org>
20087         logf-ieee: Fix test whether logf works.
20088         * m4/logf.m4 (gl_FUNC_LOGF): Fix typo in test program.
20090 2012-04-01  Bruno Haible  <bruno@clisp.org>
20092         log10l: Work around log10l-ieee test failure on IRIX 6.5.
20093         * lib/log10l.c: Include <float.h>
20094         (log10l): On IRIX, normalize the +Infinity value.
20095         * modules/log10l (Depends-on): Add 'float'.
20096         * doc/posix-functions/log10l.texi: Mention the IRIX problem with
20097         +Infinity.
20099         log10f-ieee: Work around test failure on NetBSD 5.1.
20100         * m4/log10f-ieee.m4: New file.
20101         * m4/log10f.m4 (gl_FUNC_LOG10F): If gl_FUNC_LOG10F_IEEE is present,
20102         test whether log10f works with a negative argument. Replace it if not.
20103         * lib/log10f.c (log10f): For negative arguments, return NaN.
20104         * modules/log10f-ieee (Files): Add m4/log10f-ieee.m4.
20105         (configure.ac): Invoke gl_FUNC_LOG10F_IEEE.
20106         * doc/posix-functions/log10f.texi: Mention the log10f-ieee module.
20108         log10f-ieee: Work around test failure on Solaris 9.
20109         * modules/log10f-ieee (Depends-on): Add log10-ieee.
20110         (configure.ac): Require gl_FUNC_LOG10F.
20112         log10-ieee: Work around test failure on NetBSD 5.1 and Solaris 11.
20113         * m4/log10-ieee.m4: New file.
20114         * m4/log10.m4 (gl_FUNC_LOG10): If gl_FUNC_LOG10_IEEE is present, test
20115         whether log10 works with a negative argument. Replace it if not.
20116         * lib/log10.c (log10): For negative arguments, return NaN.
20117         * modules/log10-ieee (Files): Add m4/log10-ieee.m4.
20118         (configure.ac): Invoke gl_FUNC_LOG10_IEEE.
20119         * doc/posix-functions/log10.texi: Mention the log10-ieee module.
20121         Tests for module 'log10l-ieee'.
20122         * modules/log10l-ieee-tests: New file.
20123         * tests/test-log10l-ieee.c: New file.
20125         New module 'log10l-ieee'.
20126         * modules/log10l-ieee: New file.
20128         Tests for module 'log10-ieee'.
20129         * modules/log10-ieee-tests: New file.
20130         * tests/test-log10-ieee.c: New file.
20132         New module 'log10-ieee'.
20133         * modules/log10-ieee: New file.
20135         Tests for module 'log10f-ieee'.
20136         * modules/log10f-ieee-tests: New file.
20137         * tests/test-log10f-ieee.c: New file.
20138         * tests/test-log10-ieee.h: New file.
20140         New module 'log10f-ieee'.
20141         * modules/log10f-ieee: New file.
20143 2012-04-01  Bruno Haible  <bruno@clisp.org>
20145         log10l: Work around AIX 5.1, IRIX 6.5, OSF/1 5.1 bug.
20146         * lib/math.in.h (log10l): Override if REPLACE_LOG10L is 1.
20147         * lib/log10l.c (log10l): If log10l exists, use it and provide just the
20148         workaround.
20149         * m4/log10l.m4 (gl_FUNC_LOG10L_WORKS): New macro.
20150         (gl_FUNC_LOG10L): Invoke it. Set REPLACE_LOG10L.
20151         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG10L.
20152         * modules/math (Makefile.am): Substitute REPLACE_LOG10L.
20153         * modules/log10l (configure.ac): Consider REPLACE_LOG10L.
20154         (Depends-on): Update conditions.
20155         * doc/posix-functions/log10l.texi: Mention the MSVC9, AIX 5.1,
20156         IRIX 6.5, OSF/1 5.1 problems.
20158 2012-04-01  Bruno Haible  <bruno@clisp.org>
20160         log10f: Work around OSF/1 5.1 bug.
20161         * lib/math.in.h (log10f): Override if REPLACE_LOG10F is 1.
20162         * lib/log10f.c (log10f): If logf exists, use it and provide just the
20163         workaround.
20164         * m4/log10f.m4 (gl_FUNC_LOG10F_WORKS): New macro.
20165         (gl_FUNC_LOG10F): Invoke it. Set REPLACE_LOG10F.
20166         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG10F.
20167         * modules/math (Makefile.am): Substitute REPLACE_LOG10F.
20168         * modules/log10f (configure.ac): Consider REPLACE_LOG10F.
20169         (Depends-on): Update conditions.
20170         * doc/posix-functions/log10f.texi: Mention the OSF/1 5.1 problem.
20172 2012-04-01  Bruno Haible  <bruno@clisp.org>
20174         log10: Work around OSF/1 5.1 bug.
20175         * lib/math.in.h (log10): New declaration.
20176         * lib/log10.c: New file.
20177         * m4/log10.m4 (gl_FUNC_LOG10_WORKS): New macro.
20178         (gl_FUNC_LOG10): Invoke it. Set REPLACE_LOG10.
20179         * m4/math_h.m4 (gl_MATH_H): Test whether log10 is declared.
20180         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10, REPLACE_LOG10.
20181         * modules/math (Makefile.am): Substitute GNULIB_LOG10, REPLACE_LOG10.
20182         * modules/log10 (Files): Add lib/log10.c.
20183         (Depends-on): Add math.
20184         (configure.ac): If REPLACE_LOG10 is 1, compile an override.
20185         * tests/test-math-c++.cc: Check the declaration of log10.
20186         * doc/posix-functions/log10.texi: Mention the OSF/1 5.1 problem.
20188 2012-03-31  Bruno Haible  <bruno@clisp.org>
20190         log10l tests: More tests.
20191         * modules/log10l-tests (Files): Add tests/test-log10l.h,
20192         tests/minus-zero.h, tests/randoml.c.
20193         (Makefile.am): Add randoml.c to test_log10l_SOURCES.
20194         * tests/test-log10l.c: Include <float.h>, minus-zero.h, test-log10l.h.
20195         (main): Invoke test_function.
20197         log10f tests: More tests.
20198         * modules/log10f-tests (Files): Add tests/test-log10.h,
20199         tests/minus-zero.h, tests/randomf.c.
20200         (Makefile.am): Add randomf.c to test_log10f_SOURCES.
20201         * tests/test-log10f.c: Include <float.h>, minus-zero.h, test-log10.h.
20202         (main): Invoke test_function.
20204         log10 tests: More tests.
20205         * tests/test-log10.h: New file.
20206         * modules/log10-tests (Files): Add tests/test-log10.h,
20207         tests/minus-zero.h, tests/randomd.c.
20208         (Makefile.am): Add randomd.c to test_log10_SOURCES.
20209         * tests/test-log10.c: Include <float.h>, minus-zero.h, test-log10.h.
20210         (main): Invoke test_function.
20212 2012-03-31  Simon Josefsson  <simon@josefsson.org>
20214         fflush: Fix syntax error.
20215         * lib/fflush.c: Include unused-parameter.h, needed for
20216         _GL_UNUSED_PARAMETER.
20217         * modules/fflush (Depends-on): Add snippet/unused-parameter.
20219 2012-03-30  Paul Eggert  <eggert@cs.ucla.edu>
20221         regex: pacify GCC when compiling GRUB
20222         * lib/regcomp.c (init_dfa): Make a pointer 'const', to avoid
20223         a diagnostic.  Reported by Vladimir Serbinenko in
20224         <http://lists.gnu.org/r/bug-gnulib/2012-03/msg00163.html>.
20226 2012-03-29  Eric Blake  <eblake@redhat.com>
20228         stdio: don't assume gets any more
20229         * m4/stdio_h.m4 (gl_STDIO_H, gl_STDIO_H_DEFAULTS): Drop gets
20230         support.
20231         * modules/stdio (Makefile.am): Likewise.
20232         * lib/stdio-read.c (gets): Likewise.
20233         * tests/test-stdio-c++.cc: Likewise.
20234         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix comment.
20235         * lib/stdio.in.h (gets): Make warning occur in more places.
20236         * doc/posix-functions/gets.texi (gets): Update documentation.
20237         Reported by Christer Solskogen.
20239         maint.mk: fix syntax checks without exclusions
20240         * top/maint.mk (_sc_search_regexp): Allow for empty variable.
20241         Reported by Daniel P. Berrange.
20243         strerror_r: avoid compiler warning
20244         * lib/strerror_r.c (strerror_r): Hoist extern declaration to top
20245         level.
20247         fflush: avoid compiler warning
20248         * lib/fflush.c (update_fpos_cache): Mark variables that are
20249         potentially unused.
20251 2012-03-25  Bruno Haible  <bruno@clisp.org>
20253         Tests for module 'localeconv'.
20254         * modules/localeconv-tests: New file.
20255         * tests/test-localeconv.c: New file.
20257         New module 'localeconv'.
20258         * lib/locale.in.h (localeconv): New declaration.
20259         * lib/localeconv.c: New file.
20260         * m4/localeconv.m4: New file.
20261         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_LOCALECONV,
20262         REPLACE_LOCALECONV.
20263         * modules/locale (Makefile.am): Substitute GNULIB_LOCALECONV,
20264         REPLACE_LOCALECONV.
20265         * modules/localeconv: New file.
20266         * modules/nl_langinfo (Depends-on): Add localeconv.
20267         * modules/human (Depends-on): Likewise.
20268         * doc/posix-functions/localeconv.texi: Mention the new module.
20270 2012-03-25  Bruno Haible  <bruno@clisp.org>
20272         locale: Provide a complete 'struct lconv'.
20273         * m4/locale_h.m4 (gl_LOCALE_H): Set REPLACE_STRUCT_LCONV to 1 if
20274         'struct lconv' does not contain int_p_cs_precedes.
20275         * tests/test-locale.c (main): Check that 'struct lconv' is complete.
20276         * doc/posix-headers/locale.texi: Update.
20278         locale: Provide a complete 'struct lconv' on Solaris 10, 11.
20279         * m4/locale_h.m4 (gl_LOCALE_H): On Solaris, define _LCONV_C99.
20280         * doc/posix-headers/locale.texi: Update.
20282         locale: Provide a working 'struct lconv'.
20283         * lib/locale.in.h (lconv): Override if REPLACE_STRUCT_LCONV is 1.
20284         * m4/locale_h.m4 (gl_LOCALE_H): Set REPLACE_STRUCT_LCONV to 1 if
20285         'struct lconv' does not even contain decimal_point.
20286         (gl_LOCALE_H_DEFAULTS): Initialize REPLACE_STRUCT_LCONV.
20287         * modules/locale (Makefile.am): Substitute REPLACE_STRUCT_LCONV.
20288         * tests/test-locale.c (main): Check that 'struct lconv' is complete.
20289         * doc/posix-headers/locale.texi: Mention the problems with
20290         'struct lconv'.
20291         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
20293 2012-03-24  Bruno Haible  <bruno@clisp.org>
20295         Enable common subexpression optimization in GCC.
20296         * lib/unitypes.in.h (_UC_ATTRIBUTE_CONST, _UC_ATTRIBUTE_PURE): New
20297         macros.
20298         * lib/unicase.in.h (uc_toupper, uc_tolower, uc_totitle): Declare with
20299         GCC attribute 'const'.
20300         (uc_locale_language): Declare with GCC attribute 'pure'.
20301         * lib/unicase/caseprop.h (uc_is_cased, uc_is_case_ignorable): Declare
20302         with GCC attribute 'const'.
20303         * lib/unictype.in.h (uc_is_general_category_withtable,
20304         uc_combining_class, uc_combining_class_name,
20305         uc_combining_class_long_name, uc_bidi_class_name,
20306         uc_bidi_category_name, uc_bidi_class_long_name, uc_bidi_class,
20307         uc_bidi_category, uc_is_bidi_class, uc_is_bidi_category,
20308         uc_decimal_value, uc_digit_value, uc_numeric_value,
20309         uc_joining_type_name, uc_joining_type_long_name, uc_joining_type,
20310         uc_joining_group_name, uc_joining_group, uc_is_property_*, uc_script,
20311         uc_block, uc_is_c_whitespace, uc_is_java_whitespace,
20312         uc_c_ident_category, uc_java_ident_category, uc_is_alnum, uc_is_alpha,
20313         uc_is_cntrl, uc_is_digit, uc_is_graph, uc_is_lower, uc_is_print,
20314         uc_is_punct, uc_is_space, uc_is_upper, uc_is_xdigit, uc_is_blank):
20315         Declare with GCC attribute 'const'.
20316         (uc_general_category_name, uc_general_category_long_name,
20317         uc_general_category_byname, uc_general_category,
20318         uc_is_general_category, uc_combining_class_byname,
20319         uc_bidi_class_byname, uc_bidi_category_byname, uc_joining_type_byname,
20320         uc_joining_group_byname, uc_script_byname, uc_is_script, uc_is_block):
20321         Declare with GCC attribute 'pure'.
20322         * lib/unigbrk.in.h (uc_graphemeclusterbreak_property,
20323         uc_is_grapheme_break, u8_grapheme_next, u16_grapheme_next,
20324         u32_grapheme_next, u8_grapheme_prev, u16_grapheme_prev,
20325         u32_grapheme_prev, lib/uniname.in.h (unicode_name_character): Declare
20326         with GCC attribute 'pure'.
20327         * lib/uninorm.in.h (uc_composition): Declare with GCC attribute
20328         'const'.
20329         (uninorm_decomposing_form): Declare with GCC attribute 'pure'.
20330         * lib/unistr.in.h (): Declare with GCC attribute 'const'.
20331         (u8_check, u16_check, u32_check, u8_mblen, u16_mblen, u32_mblen,
20332         u8_cmp, u16_cmp, u32_cmp, u8_cmp2, u16_cmp2, u32_cmp2, u8_chr, u16_chr,
20333         u32_chr, u8_mbsnlen, u16_mbsnlen, u32_mbsnlen, u8_strmblen,
20334         u16_strmblen, u32_strmblen, u8_strlen, u16_strlen, u32_strlen,
20335         u8_strnlen, u16_strnlen, u32_strnlen, u8_strcmp_gnu, u8_strcmp,
20336         u16_strcmp, u32_strcmp, u8_strncmp, u16_strncmp, u32_strncmp,
20337         u8_strchr, u16_strchr, u32_strchr, u8_strrchr, u16_strrchr,
20338         u32_strrchr, u8_strcspn, u16_strcspn, u32_strcspn, u8_strspn,
20339         u16_strspn, u32_strspn, u8_strpbrk, u16_strpbrk, u32_strpbrk,
20340         u8_strstr, u16_strstr, u32_strstr, u8_startswith, u16_startswith,
20341         u32_startswith, u8_endswith, u16_endswith, u32_endswith): Declare with
20342         GCC attribute 'pure'.
20343         * lib/uniwbrk.in.h (uc_wordbreak_property): Declare with GCC attribute
20344         'const'.
20345         * lib/uniwidth.in.h (uc_width): Simplify declaration.
20346         (u8_width, u16_width, u32_width, u8_strwidth, u16_strwidth,
20347         u32_strwidth): Declare with GCC attribute 'pure'.
20349         Enable common subexpression optimization in GCC.
20350         * lib/dirent.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
20351         (alphasort): Declare with GCC attribute 'pure'.
20352         * lib/stdlib.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
20353         (atoll): Declare with GCC attribute 'pure'.
20354         * lib/string.in.h (mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
20355         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
20356         mbsspn, strverscmp): Declare with GCC attribute 'pure'.
20357         * lib/wchar.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
20358         (btowc, wctob, wcwidth, wmemchr, wmemcmp, wcslen, wcsnlen, wcscmp,
20359         wcsncmp, wcscasecmp, wcsncasecmp, wcschr, wcsrchr, wcscspn, wcsspn,
20360         wcspbrk, wcsstr, wcswidth): Declare with GCC attribute 'pure'.
20362 2012-03-24  Bruno Haible  <bruno@clisp.org>
20364         gnulib-tool: Avoid unintended error output from 'cmp'.
20365         * gnulib-tool (func_add_file, func_update_file, func_import): Use
20366         "cmp -s", not "cmp > /dev/null".
20368 2012-03-23  Stefano Lattarini  <stefano.lattarini@gmail.com>
20370         gnulib-tool: fix imprecise comments w.r.t. an automake bug
20372         It's not just Automake versions < 1.9b that creates an empty
20373         pkgdatadir at installation time if pkgdata_DATA is specified
20374         to empty; modern automake versions do this as well, at least
20375         until automake 1.11.4 (not yet released at the moment of writing,
20376         but soon to appear).  That behaviour was generally considered a
20377         feature rather than a bug, at least until this discussion:
20378         <http://lists.gnu.org/r/automake/2012-03/msg00014.html>
20380         See also automake bugs #10997 and #11030.
20382         * gnulib-tool (func_emit_lib_Makefile_am): Adjust comments.  Add
20383         reference to relevant automake bug numbers.
20384         (func_emit_tests_Makefile_am): Likewise.
20386 2012-03-20  Reuben Thomas  <rrt@sc3d.org>
20388         announce-gen: use Digest::SHA when possible
20389         * build-aux/announce-gen: Use Digest::SHA when possible, falling
20390         back to Digest::SHA1 if necessary.
20392 2012-03-20  Jim Meyering  <meyering@redhat.com>
20394         tests: avoid gcc warnings about argv vs. const initializers
20395         * tests/test-posix_spawn1.c (main): Cast to "(char *)" to avoid two
20396         warnings about discarding 'const' qualifier from pointer target type.
20397         * tests/test-posix_spawn2.c (main): Likewise.
20399 2012-03-20  Reuben Thomas  <rrt@sc3d.org>
20401         README-release: simplify slightly
20402         * top/README-release: Run "git checkout master" only once.
20404 2012-03-15  Mark Wielaard  <mark@klomp.org>
20406         git-merge-changelog: add specific example on how to use with hg.
20407         * lib/git-merge-changelog.c: Add example on how to use in .hgrc.
20409 2012-03-18  Mark Wielaard  <mark@klomp.org>
20411         lib/git-merge-changelog.c (status): Report bugs to bug-gnulib@gnu.org.
20413 2012-03-18  Andreas Oberritter  <obi@opendreambox.org>
20415         git-version-gen: don't let "prefix" envvar cause trouble
20416         * build-aux/git-version-gen (prefix): Initialize properly,
20417         so as not to use a value specified via the environment.
20418         Details here: http://thread.gmane.org/gmane.comp.gnu.parted.bugs/10810
20420 2012-03-16  Paul Eggert  <eggert@cs.ucla.edu>
20422         regex: diagnose too-large repeat counts in EREs
20423         Previously, the code did not diagnose the too-large repeat count
20424         in EREs like 'b{1000000000}'; instead, it silently treated the ERE
20425         as if it were 'b\{1000000000}', which is unexpected.
20426         * lib/regcomp.c (parse_dup_op): Fail with REG_ESIZE if a repeat count
20427         is too large.  REG_ESIZE is used nowhere else, and the diagnostic
20428         is a reasonable one for this problem.  Another option would be to
20429         create a new REG_OVERFLOW error for repeat counts that are too large.
20430         (fetch_number): Return RE_DUP_MAX + 1, not REG_ERROR, if the repeat
20431         count is too large, so that the caller can distinguish the two cases.
20432         * lib/regex.h (_REG_ESIZE): Document that this is now a generic
20433         "Too large" return code, and that repeat counts are one example of this.
20435 2012-03-16  Paul Eggert  <eggert@cs.ucla.edu>
20437         doc: some glibc x32 integer width issues
20438         * doc/posix-headers/sys_types.texi (sys/types.h):
20439         * doc/posix-headers/time.texi (time.h):
20440         Mention that glibc x32 does not conform to POSIX in a couple of
20441         areas related to integer widths.
20443 2012-03-15  Bruno Haible  <bruno@clisp.org>
20445         fmal: Avoid test failure on OpenBSD 5.1/SPARC64.
20446         * lib/fma.c (VOLATILE): New macro.
20447         (FUNC): Use it to work around a GCC compiler bug.
20449 2012-03-13  Bruno Haible  <bruno@clisp.org>
20451         hypotl: Bypass broken implementation in OpenBSD 5.1/SPARC.
20452         * m4/hypotl.m4 (gl_FUNC_HYPOTL_WORKS): New macro.
20453         (gl_FUNC_HYPOTL): Invoke it. If the function does not work, set
20454         REPLACE_HYPOTL to 1.
20455         * doc/posix-functions/hypotl.texi: Mention the OpenBSD 5.1/SPARC bug.
20457 2012-03-13  Bruno Haible  <bruno@clisp.org>
20459         remainderl: Bypass broken implementation in OpenBSD 5.1/SPARC.
20460         * m4/remainderl.m4 (gl_FUNC_REMAINDERL_WORKS): New macro.
20461         (gl_FUNC_REMAINDERL): Invoke it. If the function does not work, set
20462         REPLACE_REMAINDERL to 1.
20463         * doc/posix-functions/remainderl.texi: Mention the OpenBSD 5.1/SPARC
20464         bug.
20466 2012-03-13  Bruno Haible  <bruno@clisp.org>
20468         sqrtl: Bypass broken implementation in OpenBSD 5.1/SPARC.
20469         * lib/math.in.h (sqrtl): Replace it if REPLACE_SQRTL is 1.
20470         * m4/sqrtl.m4 (gl_FUNC_SQRTL_WORKS): New macro.
20471         (gl_FUNC_SQRTL): Invoke it. Set REPLACE_SQRTL to 1 if sqrtl() produces
20472         too big rounding errors.
20473         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_SQRTL.
20474         * modules/math (Makefile.am): Substitute REPLACE_SQRTL.
20475         * modules/sqrtl (configure.ac): Consider REPLACE_SQRTL.
20476         (Depends-on): Update conditions.
20477         * tests/test-sqrtl.c (my_ldexpl): New function.
20478         (main): Add test of a particular value.
20479         * doc/posix-functions/sqrtl.texi: Mention the OpenBSD 5.1/SPARC bug.
20481 2012-03-13  Pádraig Brady  <P@draigBrady.com>
20483         doc: Update timer_* platform portability notes.
20484         * doc/posix-functions/timer_create.texi: Add platforms (OpenBSD 4.9)
20485         that always return ENOSYS.
20486         * doc/posix-functions/timer_delete.texi: Likewise.
20487         * doc/posix-functions/timer_gettime.texi: Likewise.
20488         * doc/posix-functions/timer_settime.texi: Likewise.
20490 2012-03-13  Bruno Haible  <bruno@clisp.org>
20492         cbrtl: Bypass broken implementation in OpenBSD 5.1/SPARC.
20493         * m4/cbrtl.m4 (gl_FUNC_CBRTL_WORKS): New macro.
20494         (gl_FUNC_CBRTL): Invoke it. If the function does not work, set
20495         REPLACE_CBRTL to 1.
20496         * doc/posix-functions/cbrtl.texi: Mention the OpenBSD 5.1/SPARC bug.
20498 2012-03-13  Bruno Haible  <bruno@clisp.org>
20500         remainderl: Avoid compilation error on AIX >= 5.2.
20501         * lib/math.in.h (remainderl): Undefine macro from the system header.
20503 2012-03-13  Bruno Haible  <bruno@clisp.org>
20505         Avoid compilation errors with MSVC option -fp:strict.
20506         * lib/cbrt.c: Use MSVC specific pragma fenv_access.
20507         * lib/cbrtf.c: Likewise.
20508         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
20510 2012-03-12  Bruno Haible  <bruno@clisp.org>
20512         uninorm: Don't crash in out-of-memory conditions.
20513         * lib/uninorm/u-normalize-internal.h (FUNC): Handle malloc() failure
20514         gracefully.
20515         * lib/uninorm/uninorm-filter.c (uninorm_filter_write): Likewise.
20516         Based on a report and patch by Stephen Gallagher <sgallagh@redhat.com>.
20518 2012-03-13  Akim Demaille  <akim@lrde.epita.fr>
20520         quote: fix syntax-check
20521         * top/maint.mk (sc_prohibit_quote_without_use): quote.h
20522         also exports quote_quoting_options.
20524 2012-03-12  Simon Josefsson  <simon@josefsson.org>
20526         Collapse list of copyright years to ranges.  See
20527         <https://lists.gnu.org/r/bug-gnulib/2012-03/msg00051.html>.
20528         * build-aux/bootstrap.conf, build-aux/csharpcomp.sh.in,
20529         build-aux/csharpexec.sh.in, build-aux/gnupload,
20530         build-aux/install-reloc, build-aux/javacomp.sh.in,
20531         build-aux/javaexec.sh.in, build-aux/ldd.sh.in,
20532         build-aux/move-if-change, build-aux/reloc-ldflags,
20533         build-aux/relocatable.sh.in, build-aux/x-to-1.in: Fix copyright.
20535 2012-03-11  Bruno Haible  <bruno@clisp.org>
20537         log2f-ieee: Work around test failure on NetBSD 5.1 and Solaris 10.
20538         * m4/log2f-ieee.m4: New file.
20539         * m4/log2f.m4 (gl_FUNC_LOG2F): If gl_FUNC_LOG2F_IEEE is present, test
20540         whether log2f works with a minus zero argument. Replace it if not.
20541         * modules/log2f-ieee (Files): Add m4/log2f-ieee.m4.
20542         (Depends-on): Add log2-ieee.
20543         (configure.ac): Invoke gl_FUNC_LOG2F_IEEE.
20544         * doc/posix-functions/log2f.texi: Mention the log2f-ieee module.
20546         log2-ieee: Work around test failure on NetBSD 5.1 and Solaris 10.
20547         * m4/log2-ieee.m4: New file.
20548         * m4/log2.m4 (gl_FUNC_LOG2): If gl_FUNC_LOG2_IEEE is present, test
20549         whether log2 works with a minus zero argument. Replace it if not.
20550         * modules/log2-ieee (Files): Add m4/log2-ieee.m4.
20551         (configure.ac): Invoke gl_FUNC_LOG2_IEEE.
20552         * doc/posix-functions/log2.texi: Mention the log2-ieee module.
20554         Tests for module 'log2l-ieee'.
20555         * modules/log2l-ieee-tests: New file.
20556         * tests/test-log2l-ieee.c: New file.
20558         New module 'log2l-ieee'.
20559         * modules/log2l-ieee: New file.
20561         Tests for module 'log2-ieee'.
20562         * modules/log2-ieee-tests: New file.
20563         * tests/test-log2-ieee.c: New file.
20565         New module 'log2-ieee'.
20566         * modules/log2-ieee: New file.
20568         Tests for module 'log2f-ieee'.
20569         * modules/log2f-ieee-tests: New file.
20570         * tests/test-log2f-ieee.c: New file.
20571         * tests/test-log2-ieee.h: New file.
20573         New module 'log2f-ieee'.
20574         * modules/log2f-ieee: New file.
20576 2012-03-11  Bruno Haible  <bruno@clisp.org>
20578         Tests for module 'log2l'.
20579         * modules/log2l-tests: New file.
20580         * tests/test-log2l.c: New file.
20582         New module 'log2l'.
20583         * lib/math.in.h (log2l): New declaration.
20584         * lib/log2l.c: New file.
20585         * m4/log2l.m4: New file.
20586         * m4/math_h.m4 (gl_MATH_H): Test whether log2l is declared.
20587         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2L, HAVE_DECL_LOG2L,
20588         REPLACE_LOG2L.
20589         * modules/math (Makefile.am): Substitute GNULIB_LOG2L, HAVE_DECL_LOG2L,
20590         REPLACE_LOG2L.
20591         * modules/log2l: New file.
20592         * tests/test-math-c++.cc: Check the declaration of log2l.
20593         * doc/posix-functions/log2l.texi: Mention the new module and the IRIX
20594         and OSF/1 problems.
20596 2012-03-11  Bruno Haible  <bruno@clisp.org>
20598         Tests for module 'log2f'.
20599         * modules/log2f-tests: New file.
20600         * tests/test-log2f.c: New file.
20602         New module 'log2f'.
20603         * lib/math.in.h (log2f): New declaration.
20604         * lib/log2f.c: New file.
20605         * m4/log2f.m4: New file.
20606         * m4/math_h.m4 (gl_MATH_H): Test whether log2f is declared.
20607         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2F, HAVE_DECL_LOG2F,
20608         REPLACE_LOG2F.
20609         * modules/math (Makefile.am): Substitute GNULIB_LOG2F, HAVE_DECL_LOG2F,
20610         REPLACE_LOG2F.
20611         * modules/log2f: New file.
20612         * tests/test-math-c++.cc: Check the declaration of log2f.
20613         * doc/posix-functions/log2f.texi: Mention the new module and the IRIX
20614         and OSF/1 and Cygwin problems.
20616 2012-03-11  Bruno Haible  <bruno@clisp.org>
20618         Tests for module 'log2'.
20619         * modules/log2-tests: New file.
20620         * tests/test-log2.c: New file.
20621         * tests/test-log2.h: New file.
20623         New module 'log2'.
20624         * lib/math.in.h (log2): New declaration.
20625         * lib/log2.c: New file.
20626         * m4/log2.m4: New file.
20627         * m4/math_h.m4 (gl_MATH_H): Test whether log2 is declared.
20628         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2, HAVE_DECL_LOG2,
20629         REPLACE_LOG2.
20630         * modules/math (Makefile.am): Substitute GNULIB_LOG2, HAVE_DECL_LOG2,
20631         REPLACE_LOG2.
20632         * modules/log2: New file.
20633         * tests/test-math-c++.cc: Check the declaration of log2.
20634         * doc/posix-functions/log2.texi: Mention the new module and the IRIX
20635         and OSF/1 and Cygwin problems.
20637 2012-03-11  Bruno Haible  <bruno@clisp.org>
20639         exp2* tests: More tests.
20640         * tests/test-exp2.h (test_function): Test all integral arguments that
20641         don't need to overflow or denormalized numbers.
20642         * tests/test-exp2.c (MAX_EXP, MIN_EXP): New macros.
20643         * tests/test-exp2f.c (MAX_EXP, MIN_EXP): Likewise.
20644         * tests/test-exp2l.c (MAX_EXP, MIN_EXP): Likewise.
20646 2012-03-10  Bruno Haible  <bruno@clisp.org>
20648         log1pl-ieee: Work around test failure on AIX 7.1.
20649         * modules/log1pl-ieee (Depends-on): Add log1p-ieee.
20651         log1pl-ieee: Work around test failure on IRIX 6.5.
20652         * m4/log1pl-ieee.m4: New file.
20653         * m4/log1pl.m4 (gl_FUNC_LOG1PL): If gl_FUNC_LOG1PL_IEEE is present,
20654         test whether log1pl works with a minus zero argument. Replace it if
20655         not.
20656         * lib/math.in.h (log1pl): Override if REPLACE_LOG1PL is 1.
20657         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG1PL.
20658         * modules/math (Makefile.am): Substitute REPLACE_LOG1PL.
20659         * modules/log1pl (configure.ac): Consider REPLACE_LOG1PL.
20660         (Depends-on): Update conditions.
20661         * modules/log1pl-ieee (Files): Add m4/log1p-ieee.m4, m4/minus-zero.m4,
20662         m4/signbit.m4.
20663         (configure.ac): Invoke gl_FUNC_LOG1PL_IEEE.
20664         * doc/posix-functions/log1pl.texi: Mention the log1pl-ieee module.
20666         log1pf-ieee: Work around test failure on OpenBSD 4.9 and AIX 7.1.
20667         * m4/log1pf-ieee.m4: New file.
20668         * m4/log1pf.m4 (gl_FUNC_LOG1PF): If gl_FUNC_LOG1PF_IEEE is present,
20669         test whether log1pf works with a minus zero argument. Replace it if
20670         not.
20671         * modules/log1pf-ieee (Files): Add m4/log1pf-ieee.m4, m4/minus-zero.m4,
20672         m4/signbit.m4.
20673         (configure.ac): Invoke gl_FUNC_LOG1PF_IEEE.
20674         * doc/posix-functions/log1pf.texi: Mention the log1pf-ieee module.
20676         log1pf-ieee: Work around test failure on AIX 5.1 and HP-UX 11.
20677         * modules/log1pf-ieee (Depends-on): Add log1p-ieee.
20678         (configure.ac): Require gl_FUNC_LOG1PF.
20680         log1p-ieee: Work around test failure on AIX 7.1 and HP-UX 11.
20681         * m4/log1p-ieee.m4: New file.
20682         * m4/log1p.m4 (gl_FUNC_LOG1P): If gl_FUNC_LOG1P_IEEE is present, test
20683         whether log1p works with a minus zero argument. Replace it if not.
20684         * lib/math.in.h (log1p): Override if REPLACE_LOG1P is 1.
20685         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG1P.
20686         * modules/math (Makefile.am): Substitute REPLACE_LOG1P.
20687         * modules/log1p (configure.ac): Consider REPLACE_LOG1P.
20688         (Depends-on): Update conditions.
20689         * modules/log1p-ieee (Files): Add m4/log1p-ieee.m4, m4/minus-zero.m4,
20690         m4/signbit.m4.
20691         (configure.ac): Invoke gl_FUNC_LOG1P_IEEE.
20692         * doc/posix-functions/log1p.texi: Mention the log1p-ieee module.
20694         Tests for module 'log1pl-ieee'.
20695         * modules/log1pl-ieee-tests: New file.
20696         * tests/test-log1pl-ieee.c: New file.
20698         New module 'log1pl-ieee'.
20699         * modules/log1pl-ieee: New file.
20701         Tests for module 'log1p-ieee'.
20702         * modules/log1p-ieee-tests: New file.
20703         * tests/test-log1p-ieee.c: New file.
20705         New module 'log1p-ieee'.
20706         * modules/log1p-ieee: New file.
20708         Tests for module 'log1pf-ieee'.
20709         * modules/log1pf-ieee-tests: New file.
20710         * tests/test-log1pf-ieee.c: New file.
20711         * tests/test-log1p-ieee.h: New file.
20713         New module 'log1pf-ieee'.
20714         * modules/log1pf-ieee: New file.
20716 2012-03-10  Bruno Haible  <bruno@clisp.org>
20718         Tests for module 'log1pl'.
20719         * modules/log1pl-tests: New file.
20720         * tests/test-log1pl.c: New file.
20722         New module 'log1pl'.
20723         * lib/math.in.h (log1pl): New declaration.
20724         * lib/log1pl.c: New file.
20725         * m4/log1pl.m4: New file.
20726         * m4/math_h.m4 (gl_MATH_H): Test whether log1pl is declared.
20727         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1PL, HAVE_LOG1PL.
20728         * modules/math (Makefile.am): Substitute GNULIB_LOG1PL, HAVE_LOG1PL.
20729         * modules/log1pl: New file.
20730         * tests/test-math-c++.cc: Check the declaration of log1pl.
20731         * doc/posix-functions/log1pl.texi: Mention the new module.
20733 2012-03-10  Bruno Haible  <bruno@clisp.org>
20735         Tests for module 'log1pf'.
20736         * modules/log1pf-tests: New file.
20737         * tests/test-log1pf.c: New file.
20739         New module 'log1pf'.
20740         * lib/math.in.h (log1pf): New declaration.
20741         * lib/log1pf.c: New file.
20742         * m4/log1pf.m4: New file.
20743         * m4/math_h.m4 (gl_MATH_H): Test whether log1pf is declared.
20744         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1PF, HAVE_LOG1PF,
20745         REPLACE_LOG1PF.
20746         * modules/math (Makefile.am): Substitute GNULIB_LOG1PF, HAVE_LOG1PF,
20747         REPLACE_LOG1PF.
20748         * modules/log1pf: New file.
20749         * tests/test-math-c++.cc: Check the declaration of log1pf.
20750         * doc/posix-functions/log1pf.texi: Mention the new module.
20752 2012-03-10  Bruno Haible  <bruno@clisp.org>
20754         log1p tests: More tests.
20755         * tests/test-log1p.h: New file.
20756         * modules/log1p-tests (Files): Add tests/test-log1p.h, tests/randomd.c.
20757         (Makefile.am): Add randomd.c to test_log1p_SOURCES.
20758         * tests/test-log1p.c: Include <float.h> and test-log1p.h.
20759         (main): Invoke test_function.
20761         log1p: Provide replacement for Minix and MSVC.
20762         * lib/math.in.h (log1p): New declaration.
20763         * lib/log1p.c: New file.
20764         * m4/log1p.m4: New file.
20765         * m4/math_h.m4 (gl_MATH_H): Test whether log1p is declared.
20766         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1P, HAVE_LOG1P.
20767         * modules/math (Makefile.am): Substitute GNULIB_LOG1P, HAVE_LOG1P.
20768         * modules/log1p (Files): Add lib/log1p.c, m4/log1p.m4.
20769         (Depends-on): Add math, isnand, log, round.
20770         (configure.ac): Invoke gl_FUNC_LOG1P. Arrange to compile replacement if
20771         HAVE_LOG1P is 0.
20772         * tests/test-math-c++.cc: Check the declaration of log1p.
20773         * doc/posix-functions/log1p.texi: Mention the replacement.
20775 2012-03-10  Bruno Haible  <bruno@clisp.org>
20777         math tests: Small simplification.
20778         * tests/test-exp.h (test_function): Use the same err_bound for
20779         'double' on platforms with sizeof (long double) == sizeof (double)
20780         than on platforms with sizeof (long double) > sizeof (double).
20781         * tests/test-exp2.h (test_function): Likewise.
20782         * tests/test-expm1.h (test_function): Likewise.
20783         * tests/test-log.h (test_function): Likewise.
20785 2012-03-10  Bruno Haible  <bruno@clisp.org>
20787         Fix some comments.
20788         * lib/expl.c: Fix an ambiguous comment.
20789         * lib/expm1.c: Likewise.
20790         * lib/expm1l.c: Likewise.
20791         * lib/exp2.c: Likewise.
20792         * lib/exp2l.c: Likewise.
20794 2012-03-10  Paul Eggert  <eggert@cs.ucla.edu>
20796         regex: allow inclusion of <regex.h> before <limits.h>
20797         Without this patch, portable programs had to include <limits.h> before
20798         <regex.h> if they wanted a consistent value for RE_DUP_MAX.
20799         I ran into this problem with a test version of GNU grep on Solaris 8.
20800         * lib/regex.h: Include <limits.h> if _REGEX_INCLUDE_LIMITS_H.
20801         This is done conditionally so that this change can be merged
20802         back to glibc.
20803         * m4/regex.m4 (gl_REGEX): Define _REGEX_INCLUDE_LIMITS_H if
20804         using the included regex.
20806         fts: depend on fdopendir
20807         * modules/fts (Depends-on): Depend on fdopendir.  This is needed
20808         on Solaris 8, at least, since it lacks fdopendir.  Evidently the
20809         problem was introduced when fdopendir was split out.
20811 2012-03-10  Bruno Haible  <bruno@clisp.org>
20813         Remove unused variables.
20814         * m4/fmodf.m4 (gl_FUNC_FMODF): Remove unused variable 'i'.
20815         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
20817 2012-03-10  Bruno Haible  <bruno@clisp.org>
20819         isnanf-nolibm: Fix last commit.
20820         * lib/isnanf-nolibm.h [IRIX]: Don't include <ieeefp.h>. Declare isnanf.
20822         isnanf-nolibm: Make it work on IRIX 6.5 with cc.
20823         * lib/isnanf-nolibm.h [IRIX]: Include <ieeefp.h>.
20825 2012-03-10  Bruno Haible  <bruno@clisp.org>
20827         logf-ieee: Work around test failure on NetBSD 5.1.
20828         * m4/logf-ieee.m4: New file.
20829         * m4/logf.m4 (gl_FUNC_LOGF): If gl_FUNC_LOGF_IEEE is present, test
20830         whether logf works with a negative argument. Replace it if not.
20831         * lib/logf.c (logf): For negative arguments, return NaN.
20832         * modules/logf-ieee (Files): Add m4/logf-ieee.m4.
20833         (configure.ac): Invoke gl_FUNC_LOGF_IEEE.
20834         * doc/posix-functions/logf.texi: Mention the logf-ieee module.
20836         logf-ieee: Work around test failure on Solaris 9.
20837         * modules/logf-ieee (Depends-on): Add log-ieee.
20838         (configure.ac): Require gl_FUNC_LOGF.
20840         log-ieee: Work around test failure on NetBSD 5.1 and Solaris 11.
20841         * m4/log-ieee.m4: New file.
20842         * m4/log.m4 (gl_FUNC_LOG): If gl_FUNC_LOG_IEEE is present, test whether
20843         log works with a negative argument. Replace it if not.
20844         * lib/log.c (log): For negative arguments, return NaN.
20845         * modules/log-ieee (Files): Add m4/log-ieee.m4.
20846         (configure.ac): Invoke gl_FUNC_LOG_IEEE.
20847         * doc/posix-functions/log.texi: Mention the log-ieee module.
20849         Tests for module 'logl-ieee'.
20850         * modules/logl-ieee-tests: New file.
20851         * tests/test-logl-ieee.c: New file.
20853         New module 'logl-ieee'.
20854         * modules/logl-ieee: New file.
20856         Tests for module 'log-ieee'.
20857         * modules/log-ieee-tests: New file.
20858         * tests/test-log-ieee.c: New file.
20860         New module 'log-ieee'.
20861         * modules/log-ieee: New file.
20863         Tests for module 'logf-ieee'.
20864         * modules/logf-ieee-tests: New file.
20865         * tests/test-logf-ieee.c: New file.
20866         * tests/test-log-ieee.h: New file.
20868         New module 'logf-ieee'.
20869         * modules/logf-ieee: New file.
20871 2012-03-10  Bruno Haible  <bruno@clisp.org>
20873         log: Fix bug introduced on 2012-03-09.
20874         * m4/log.m4 (gl_FUNC_LOG): Require gl_MATH_H_DEFAULTS.
20876 2012-03-10  Pádraig Brady  <P@draigBrady.com>
20878         timer-time: link explicitly with pthreads on glibc
20879         * m4/timer_time.m4 (LIB_TIMER_TIME): Add -lpthread
20880         to support static linking, when newer glibc is
20881         detected, as that contains pthread emulation of
20882         POSIX timer functions where required.
20883         * modules/timer-time: Depend on threadlib to
20884         pull in the appropriate library to link.
20886 2012-03-10  Bruno Haible  <bruno@clisp.org>
20888         log* tests: More tests.
20889         * tests/test-log.h: New file.
20890         * tests/test-log.c: Include <float.h>, minus-zero.h, test-log.h.
20891         (main): Invoke test_function.
20892         * tests/test-logf.c: Include <float.h>, minus-zero.h, test-log.h.
20893         (main): Invoke test_function.
20894         * tests/test-logl.c: Include <float.h>, minus-zero.h, test-log.h.
20895         (main): Invoke test_function.
20896         * modules/log-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
20897         tests/randomd.c.
20898         (Makefile.am): Add randomd.c to test_log_SOURCES.
20899         * modules/logf-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
20900         tests/randomf.c.
20901         (Makefile.am): Add randomf.c to test_logf_SOURCES.
20902         * modules/logl-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
20903         tests/randoml.c.
20904         (Depends-on): Add 'float'.
20905         (Makefile.am): Add randoml.c to test_logl_SOURCES.
20907 2012-03-09  Bruno Haible  <bruno@clisp.org>
20909         logl: Work around OSF/1 5.1 bug.
20910         * lib/math.in.h (logl): Override if REPLACE_LOGL is 1.
20911         * lib/logl.c (logl): If logl exists, use it and provide just the
20912         workaround.
20913         * m4/logl.m4 (gl_FUNC_LOGL_WORKS): New macro.
20914         (gl_FUNC_LOGL): Invoke it. Set REPLACE_LOGL.
20915         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGL.
20916         * modules/math (Makefile.am): Substitute REPLACE_LOGL.
20917         * modules/logl (configure.ac): Consider REPLACE_LOGL.
20918         (Depends-on): Update conditions.
20919         * doc/posix-functions/logl.texi: Mention the OSF/1 5.1 problem.
20921 2012-03-09  Bruno Haible  <bruno@clisp.org>
20923         logf: Work around OSF/1 5.1 bug.
20924         * lib/math.in.h (logf): Override if REPLACE_LOGF is 1.
20925         * lib/logf.c (logf): If logf exists, use it and provide just the
20926         workaround.
20927         * m4/logf.m4 (gl_FUNC_LOGF_WORKS): New macro.
20928         (gl_FUNC_LOGF): Invoke it. Set REPLACE_LOGF.
20929         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGF.
20930         * modules/math (Makefile.am): Substitute REPLACE_LOGF.
20931         * modules/logf (configure.ac): Consider REPLACE_LOGF.
20932         (Depends-on): Update conditions.
20933         * doc/posix-functions/logf.texi: Mention the OSF/1 5.1 problem.
20935 2012-03-09  Bruno Haible  <bruno@clisp.org>
20937         log: Work around OSF/1 5.1 bug.
20938         * lib/math.in.h (log): New declaration.
20939         * lib/log.c: New file.
20940         * m4/log.m4 (gl_FUNC_LOG_WORKS): New macro.
20941         (gl_FUNC_LOG): Invoke it. Set REPLACE_LOG.
20942         * m4/math_h.m4 (gl_MATH_H): Test whether log is declared.
20943         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG, REPLACE_LOG.
20944         * modules/math (Makefile.am): Substitute GNULIB_LOG, REPLACE_LOG.
20945         * modules/log (Files): Add lib/log.c.
20946         (Depends-on): Add math.
20947         (configure.ac): If REPLACE_LOG is 1, compile an override.
20948         * tests/test-math-c++.cc: Check the declaration of log.
20949         * doc/posix-functions/log.texi: Mention the OSF/1 5.1 problem.
20951 2012-03-09  Jim Meyering  <meyering@redhat.com>
20953         readtokens.c: adjust wording in a comment
20954         * lib/readtokens.c: Insert omitted "that" in a comment.
20956 2012-03-08  Paul Eggert  <eggert@cs.ucla.edu>
20958         modechange: add notations +40, 00440, etc.
20959         * lib/modechange.c (mode_compile): Support new notations
20960         +40, -40, =440, 00440.  See <http://debbugs.gnu.org/8391>.
20962 2012-03-08  Bruno Haible  <bruno@clisp.org>
20964         exp2l-ieee: Work around test failure on OpenBSD 4.9 and IRIX 6.5.
20965         * m4/exp2l-ieee.m4: New file.
20966         * m4/exp2l.m4 (gl_FUNC_EXP2L): If gl_FUNC_EXP2L_IEEE is present,
20967         test whether exp2l works with a NaN argument and with a negative
20968         infinity argument. Replace it if not.
20969         * lib/math.in.h (exp2l): Override if REPLACE_EXP2L is 1.
20970         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXP2L.
20971         * modules/math (Makefile.am): Substitute REPLACE_EXP2L.
20972         * modules/exp2l (configure.ac): Consider REPLACE_EXP2L.
20973         (Depends-on): Update conditions.
20974         * modules/exp2l-ieee (Files): Add m4/exp2l-ieee.m4.
20975         (configure.ac): Invoke gl_FUNC_EXP2L_IEEE.
20976         * doc/posix-functions/exp2l.texi: Mention the exp2l-ieee module.
20978         Tests for module 'exp2l-ieee'.
20979         * modules/exp2l-ieee-tests: New file.
20980         * tests/test-exp2l-ieee.c: New file.
20982         New module 'exp2l-ieee'.
20983         * modules/exp2l-ieee: New file.
20985         Tests for module 'exp2-ieee'.
20986         * modules/exp2-ieee-tests: New file.
20987         * tests/test-exp2-ieee.c: New file.
20989         New module 'exp2-ieee'.
20990         * modules/exp2-ieee: New file.
20992         Tests for module 'exp2f-ieee'.
20993         * modules/exp2f-ieee-tests: New file.
20994         * tests/test-exp2f-ieee.c: New file.
20995         * tests/test-exp2-ieee.h: New file.
20997         New module 'exp2f-ieee'.
20998         * modules/exp2f-ieee: New file.
21000 2012-03-08  Bruno Haible  <bruno@clisp.org>
21002         Tests for module 'exp2l'.
21003         * modules/exp2l-tests: New file.
21004         * tests/test-exp2l.c: New file.
21006         New module 'exp2l'.
21007         * lib/math.in.h (exp2l): New declaration.
21008         * lib/exp2l.c: New file.
21009         * lib/expl-table.c: New file, extracted from lib/expl.c.
21010         * lib/expl.c (gl_expl_table): New declaration.
21011         (expl): Remove expl_table. Update reference.
21012         * m4/exp2l.m4: New file.
21013         * m4/math_h.m4 (gl_MATH_H): Test whether exp2l is declared.
21014         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2L, HAVE_DECL_EXP2L.
21015         * modules/math (Makefile.am): Substitute GNULIB_EXP2L, HAVE_DECL_EXP2L.
21016         * modules/exp2l: New file.
21017         * modules/expl (Files): Add lib/expl-table.c.
21018         (configure.ac): Compile also expl-table.c.
21019         * tests/test-math-c++.cc: Check the declaration of exp2l.
21020         * doc/posix-functions/exp2l.texi: Mention the new module and the IRIX
21021         problem.
21023 2012-03-08  Bruno Haible  <bruno@clisp.org>
21025         Tests for module 'exp2f'.
21026         * modules/exp2f-tests: New file.
21027         * tests/test-exp2f.c: New file.
21029         New module 'exp2f'.
21030         * lib/math.in.h (exp2f): New declaration.
21031         * lib/exp2f.c: New file.
21032         * m4/exp2f.m4: New file.
21033         * m4/math_h.m4 (gl_MATH_H): Test whether exp2f is declared.
21034         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2F, HAVE_DECL_EXP2F.
21035         * modules/math (Makefile.am): Substitute GNULIB_EXP2F, HAVE_DECL_EXP2F.
21036         * modules/exp2f: New file.
21037         * tests/test-math-c++.cc: Check the declaration of exp2f.
21038         * doc/posix-functions/exp2f.texi: Mention the new module and the
21039         IRIX problem.
21041 2012-03-08  Bruno Haible  <bruno@clisp.org>
21043         Tests for module 'exp2'.
21044         * modules/exp2-tests: New file.
21045         * tests/test-exp2.c: New file.
21046         * tests/test-exp2.h: New file.
21048         New module 'exp2'.
21049         * lib/math.in.h (exp2): New declaration.
21050         * lib/exp2.c: New file.
21051         * m4/exp2.m4: New file.
21052         * m4/math_h.m4 (gl_MATH_H): Test whether exp2 is declared.
21053         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2, HAVE_DECL_EXP2,
21054         REPLACE_EXP2.
21055         * modules/math (Makefile.am): Substitute GNULIB_EXP2, HAVE_DECL_EXP2,
21056         REPLACE_EXP2.
21057         * modules/exp2: New file.
21058         * tests/test-math-c++.cc: Check the declaration of exp2.
21059         * doc/posix-functions/exp2.texi: Mention the new module and the IRIX
21060         and OpenBSD problems.
21062 2012-03-08  Paul Eggert  <eggert@cs.ucla.edu>
21064         savedir: fix comment typo
21065         * lib/savedir.c (savedirstream): Fix typo in comment.
21067 2012-03-08  Bruno Haible  <bruno@clisp.org>
21069         test-readtokens.c: use const; remove unwarranted cast
21070         * tests/test-readtokens.c: Declare delim to be const, to avoid a cast.
21072 2012-03-08  Bruno Haible  <bruno@clisp.org>
21074         fmal: Avoid compilation error on AIX.
21075         * lib/math.in.h (fmal): Undefine macro before declaration. Needed on
21076         AIX 5.2..7.1.
21078 2012-03-08  Bruno Haible  <bruno@clisp.org>
21080         fma, fmaf, fmal: Override undeclared system functions on IRIX 6.5.
21081         * m4/fma.m4 (gl_FUNC_FMA): If fma() exists but is not declared,
21082         arrange to set REPLACE_FMA=1, not HAVE_FMA=0.
21083         * m4/fmaf.m4 (gl_FUNC_FMAF): If fmaf() exists but is not declared,
21084         arrange to set REPLACE_FMAF=1, not HAVE_FMAF=0.
21085         * m4/fmal.m4 (gl_FUNC_FMAL): If fmal() exists but is not declared,
21086         arrange to set REPLACE_FMAL=1, not HAVE_FMAL=0.
21088 2012-03-08  Bruno Haible  <bruno@clisp.org>
21090         remainderf: Override buggy system function on IRIX 6.5.
21091         * m4/remainderf.m4 (gl_FUNC_REMAINDERF_WORKS): New macro.
21092         (gl_FUNC_REMAINDERF): Invoke it. Don't assume remainderf() is declared
21093         when it exists.
21094         * doc/posix-functions/remainderf.texi: Mention the IRIX problems.
21096 2012-03-08  Jim Meyering  <meyering@redhat.com>
21098         test-readtokens.c: avoid const-related compilation warnings
21099         * tests/test-readtokens.c: Avoid const-related compilation warnings.
21101 2012-03-07  Jim Meyering  <meyering@redhat.com>
21102             Bruno Haible  <bruno@clisp.org>
21104         frexp-nolibm, frexpl-nolibm tests: Fix bug introduced on 2012-03-03.
21105         * modules/frexp-nolibm-tests (Files): Add tests/test-frexp.h,
21106         tests/randomd.c.
21107         (Makefile.am): Add randomd.c to test_frexp_nolibm_SOURCES.
21108         * modules/frexpl-nolibm-tests (Files): Add tests/test-frexp.h,
21109         tests/randoml.c.
21110         (Makefile.am): Add randoml.c to test_frexpl_nolibm_SOURCES.
21112 2012-03-07  Bruno Haible  <bruno@clisp.org>
21114         expm1l: Avoid compilation error on AIX.
21115         * lib/math.in.h (expm1l): Undefine macro before declaration. Needed on
21116         AIX 5.2..7.1.
21118 2012-03-07  Bruno Haible  <bruno@clisp.org>
21120         expm1l: Don't override undeclared system function on IRIX 6.5.
21121         * lib/math.in.h (expm1l): Test HAVE_DECL_EXPM1L, not HAVE_EXPM1L.
21122         * m4/expm1l.m4 (gl_FUNC_EXPM1L): Don't assume expm1l() is declared when
21123         it exists. Set HAVE_DECL_EXPM1L.
21124         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_EXPM1L, not
21125         HAVE_EXPM1L.
21126         * modules/math (Makefile.am): Substitute HAVE_DECL_EXPM1L, not
21127         HAVE_EXPM1L.
21128         * doc/posix-functions/expm1l.texi: Mention missing declaration problem.
21130 2012-03-07  Bruno Haible  <bruno@clisp.org>
21132         remainderl: Don't override undeclared system function on IRIX 6.5.
21133         * lib/math.in.h (remainderl): Test HAVE_DECL_REMAINDERL, not
21134         HAVE_REMAINDERL.
21135         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Don't assume remainderl() is
21136         declared when it exists. Set HAVE_DECL_REMAINDERL.
21137         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_REMAINDERL,
21138         not HAVE_REMAINDERL.
21139         * modules/math (Makefile.am): Substitute HAVE_DECL_REMAINDERL, not
21140         HAVE_REMAINDERL.
21141         * doc/posix-functions/remainderl.texi: Mention missing declaration
21142         problem.
21144 2012-03-07  Bruno Haible  <bruno@clisp.org>
21146         rintf: Don't override undeclared system function on IRIX 6.5.
21147         * lib/math.in.h (rintf): Test HAVE_DECL_RINTF, not HAVE_RINTF.
21148         * m4/rintf.m4 (gl_FUNC_RINTF): Don't assume rintf() is declared when it
21149         exists. Set HAVE_DECL_RINTF.
21150         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_RINTF, not
21151         HAVE_RINTF.
21152         * modules/math (Makefile.am): Substitute HAVE_DECL_RINTF, not
21153         HAVE_RINTF.
21154         * doc/posix-functions/rintf.texi: Mention missing declaration problem.
21156 2012-03-07  Bruno Haible  <bruno@clisp.org>
21158         roundl: Avoid compilation error on AIX.
21159         * lib/math.in.h (roundl): Undefine macro before declaration. Needed on
21160         AIX 5.2..7.1.
21162 2012-03-07  Bruno Haible  <bruno@clisp.org>
21164         roundl: Don't override undeclared system function on IRIX 6.5.
21165         * m4/roundl.m4 (gl_FUNC_ROUNDL): Search for roundl() in the libraries
21166         also when it is not declared. Set HAVE_ROUNDL. For replacement code,
21167         test HAVE_ROUNDL, not HAVE_DECL_ROUNDL.
21168         * modules/roundl (configure.ac): For replacement code, test
21169         HAVE_ROUNDL, not HAVE_DECL_ROUNDL.
21170         (Depends-on): Update conditions.
21171         * doc/posix-functions/roundl.texi: Mention the IRIX problem.
21173 2012-03-07  Bruno Haible  <bruno@clisp.org>
21175         roundf: Don't override undeclared system function on IRIX 6.5.
21176         * m4/roundf.m4 (gl_FUNC_ROUNDF): Search for roundf() in the libraries
21177         also when it is not declared. Set HAVE_ROUNDF. For replacement code,
21178         test HAVE_ROUNDF, not HAVE_DECL_ROUNDF.
21179         * modules/roundf (configure.ac): For replacement code, test
21180         HAVE_ROUNDF, not HAVE_DECL_ROUNDF.
21181         (Depends-on): Update conditions.
21182         * modules/roundf-ieee (Depends-on): Update conditions.
21183         * doc/posix-functions/roundf.texi: Mention the IRIX problem.
21185 2012-03-07  Bruno Haible  <bruno@clisp.org>
21187         round: Don't override undeclared system function on IRIX 6.5.
21188         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Accept an optional third
21189         argument.
21190         * m4/round.m4 (gl_FUNC_ROUND): Search for round() in the libraries
21191         also when it is not declared. Set HAVE_ROUND. For replacement code,
21192         test HAVE_ROUND, not HAVE_DECL_ROUND.
21193         * modules/round (configure.ac): For replacement code, test HAVE_ROUND,
21194         not HAVE_DECL_ROUND.
21195         (Depends-on): Update conditions.
21196         * modules/round-ieee (Depends-on): Update conditions.
21197         * doc/posix-functions/round.texi: Mention the IRIX problem.
21199 2012-03-07  Bruno Haible  <bruno@clisp.org>
21201         copysignf: Don't override undeclared system function on IRIX 6.5.
21202         * lib/math.in.h (copysignf): Test HAVE_DECL_COPYSIGNF, not
21203         HAVE_COPYSIGNF.
21204         * m4/copysignf.m4 (gl_FUNC_COPYSIGNF): Don't assume copysignf() is
21205         declared when it exists. Set HAVE_DECL_COPYSIGNF.
21206         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_COPYSIGNF,
21207         not HAVE_COPYSIGNF.
21208         * modules/math (Makefile.am): Substitute HAVE_DECL_COPYSIGNF, not
21209         HAVE_COPYSIGNF.
21210         * doc/posix-functions/copysignf.texi: Mention missing declaration
21211         problem.
21213 2012-03-07  Jim Meyering  <meyering@redhat.com>
21215         readtokens: add tests
21216         * modules/readtokens-tests: New file.
21217         * tests/test-readtokens.c: New file.
21219 2012-03-07  Jim Meyering  <meyering@redhat.com>
21221         quotearg: the module must now include quote.h
21222         With commit v0.0-7133-g6417476, quotearg.c includes "quote.h".
21223         So must the module.
21224         * modules/quotearg (Files): Add quote.h.
21226 2012-03-06  Paul Eggert  <eggert@cs.ucla.edu>
21228         readtokens: avoid core dumps with unusual calling patterns
21229         Reported by Xu Zhongxing in <http://debbugs.gnu.org/10953>.
21230         * lib/readtokens.c: Include limits.h.
21231         (word, bits_per_word, get_nth_bit, set_nth_bit): New.
21232         (readtoken): Don't cache the delimiters; the cache code was buggy
21233         if !delim && saved_delim, or if the new n_delim differs from the old.
21234         Also, it wasn't thread-safe.
21236 2012-03-07  Bruno Haible  <bruno@clisp.org>
21238         quote: Adhere to common module description layout.
21239         * modules/quote (Makefile.am): Add back empty section.
21241 2012-03-06  Akim Demaille  <demaille@gostai.com>
21243         quote: fuse into quotearg
21244         This patch is made for the benefit of Bison.
21245         quote does not leave the choice of the quoting style to the user.
21246         quoting_style provides poor customizability, yet quoting_options,
21247         which is very rich, is hidden inside quotearg.c.  So in order to
21248         allow quote customization, move its implementation to quotearg.c.
21249         * lib/quote.c: Remove.
21250         * modules/quote: Adjust.
21251         * lib/quotearg.c (quoting_options_from_style): Fix a compiler
21252         warning: provide all the members of literal structs.
21253         (quote_quoting_options): New.
21254         (quote, quote_n): Import implementation from quote.c.
21255         * lib/quote.h: Import the comments from quote.c.
21256         (quote_quoting_options): New.
21258 2012-03-06  Bruno Haible  <bruno@clisp.org>
21260         Tests for module 'expm1l-ieee'.
21261         * modules/expm1l-ieee-tests: New file.
21262         * tests/test-expm1l-ieee.c: New file.
21264         New module 'expm1l-ieee'.
21265         * modules/expm1l-ieee: New file.
21267         Tests for module 'expm1f-ieee'.
21268         * modules/expm1f-ieee-tests: New file.
21269         * tests/test-expm1f-ieee.c: New file.
21271         New module 'expm1f-ieee'.
21272         * modules/expm1f-ieee: New file.
21274         Tests for module 'expm1-ieee'.
21275         * modules/expm1-ieee-tests: New file.
21276         * tests/test-expm1-ieee.c: New file.
21277         * tests/test-expm1-ieee.h: New file.
21279         New module 'expm1-ieee'.
21280         * modules/expm1-ieee: New file.
21281         * m4/expm1-ieee.m4: New file.
21282         * m4/expm1.m4 (gl_FUNC_EXPM1): If gl_FUNC_EXPM1_IEEE is present, test
21283         whether expm1 works with a minus zero argument. Replace it if not.
21284         * lib/math.in.h (expm1): Override if REPLACE_EXPM1 is 1.
21285         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPM1.
21286         * modules/math (Makefile.am): Substitute REPLACE_EXPM1.
21287         * modules/expm1 (configure.ac): Consider REPLACE_EXPM1.
21288         (Depends-on): Update conditions.
21289         * doc/posix-functions/expm1.texi: Mention the expm1-ieee module and the
21290         AIX problem.
21292 2012-03-06  Bruno Haible  <bruno@clisp.org>
21294         Work around expm1f bug on IRIX 6.5.
21295         * lib/math.in.h (expm1f): Override if REPLACE_EXPM1F is 1.
21296         * m4/expm1f.m4 (gl_FUNC_EXPM1F_WORKS): New macro.
21297         (gl_FUNC_EXPM1F): Invoke it. Set REPLACE_EXPM1F to 1 if expm1f() does
21298         not work.
21299         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPM1F.
21300         * modules/math (Makefile.am): Substitute REPLACE_EXPM1F.
21301         * modules/expm1f (configure.ac): Consider REPLACE_EXPM1F.
21302         (Depends-on): Update conditions.
21303         * doc/posix-functions/expm1f.texi: Mention the IRIX 6.5 bug.
21305 2012-03-06  Bruno Haible  <bruno@clisp.org>
21307         Tests for module 'expm1l'.
21308         * modules/expm1l-tests: New file.
21309         * tests/test-expm1l.c: New file.
21311         New module 'expm1l'.
21312         * lib/math.in.h (expm1l): New declaration.
21313         * lib/expm1l.c: New file.
21314         * m4/expm1l.m4: New file.
21315         * m4/math_h.m4 (gl_MATH_H): Test whether expm1l is declared.
21316         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1L, HAVE_EXPM1L.
21317         * modules/math (Makefile.am): Substitute GNULIB_EXPM1L, HAVE_EXPM1L.
21318         * modules/expm1l: New file.
21319         * tests/test-math-c++.cc: Check the declaration of expm1l.
21320         * doc/posix-functions/expm1l.texi: Mention the new module.
21322 2012-03-06  Bruno Haible  <bruno@clisp.org>
21324         Tests for module 'expm1f'.
21325         * modules/expm1f-tests: New file.
21326         * tests/test-expm1f.c: New file.
21328         New module 'expm1f'.
21329         * lib/math.in.h (expm1f): New declaration.
21330         * lib/expm1f.c: New file.
21331         * m4/expm1f.m4: New file.
21332         * m4/math_h.m4 (gl_MATH_H): Test whether expm1f is declared.
21333         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1F, HAVE_EXPM1F.
21334         * modules/math (Makefile.am): Substitute GNULIB_EXPM1F, HAVE_EXPM1F.
21335         * modules/expm1f: New file.
21336         * tests/test-math-c++.cc: Check the declaration of expm1f.
21337         * doc/posix-functions/expm1f.texi: Mention the new module.
21339 2012-03-06  Bruno Haible  <bruno@clisp.org>
21341         Tests for module 'expm1'.
21342         * modules/expm1-tests: New file.
21343         * tests/test-expm1.c: New file.
21344         * tests/test-expm1.h: New file.
21346         New module 'expm1'.
21347         * lib/math.in.h (expm1): New declaration.
21348         * lib/expm1.c: New file.
21349         * m4/expm1.m4: New file.
21350         * m4/math_h.m4 (gl_MATH_H): Test whether expm1 is declared.
21351         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1, HAVE_EXPM1.
21352         * modules/math (Makefile.am): Substitute GNULIB_EXPM1, HAVE_EXPM1.
21353         * modules/expm1: New file.
21354         * tests/test-math-c++.cc: Check the declaration of expm1.
21355         * doc/posix-functions/expm1.texi: Mention the new module.
21357 2012-03-06  Bruno Haible  <bruno@clisp.org>
21359         math: Ensure declarations of math functions.
21360         * modules/acosf (Depends-on): Add 'extensions'.
21361         * modules/asinf (Depends-on): Likewise.
21362         * modules/atan2f (Depends-on): Likewise.
21363         * modules/atanf (Depends-on): Likewise.
21364         * modules/cbrt (Depends-on): Likewise.
21365         * modules/cbrtf (Depends-on): Likewise.
21366         * modules/cbrtl (Depends-on): Likewise.
21367         * modules/copysignf (Depends-on): Likewise.
21368         * modules/copysignl (Depends-on): Likewise.
21369         * modules/cosf (Depends-on): Likewise.
21370         * modules/coshf (Depends-on): Likewise.
21371         * modules/expf (Depends-on): Likewise.
21372         * modules/fabsf (Depends-on): Likewise.
21373         * modules/fabsl (Depends-on): Likewise.
21374         * modules/fmaf (Depends-on): Likewise.
21375         * modules/fmal (Depends-on): Likewise.
21376         * modules/fmodf (Depends-on): Likewise.
21377         * modules/fmodl (Depends-on): Likewise.
21378         * modules/frexpf (Depends-on): Likewise.
21379         * modules/frexpl (Depends-on): Likewise.
21380         * modules/hypot (Depends-on): Likewise.
21381         * modules/hypotf (Depends-on): Likewise.
21382         * modules/hypotl (Depends-on): Likewise.
21383         * modules/ldexpf (Depends-on): Likewise.
21384         * modules/ldexpl (Depends-on): Likewise.
21385         * modules/log10f (Depends-on): Likewise.
21386         * modules/log10l (Depends-on): Likewise.
21387         * modules/log1p (Depends-on): Likewise.
21388         * modules/logb (Depends-on): Likewise.
21389         * modules/logf (Depends-on): Likewise.
21390         * modules/modff (Depends-on): Likewise.
21391         * modules/modfl (Depends-on): Likewise.
21392         * modules/powf (Depends-on): Likewise.
21393         * modules/remainderf (Depends-on): Likewise.
21394         * modules/remainderl (Depends-on): Likewise.
21395         * modules/rintf (Depends-on): Likewise.
21396         * modules/rintl (Depends-on): Likewise.
21397         * modules/sinf (Depends-on): Likewise.
21398         * modules/sinhf (Depends-on): Likewise.
21399         * modules/sqrtf (Depends-on): Likewise.
21400         * modules/tanf (Depends-on): Likewise.
21401         * modules/tanhf (Depends-on): Likewise.
21402         * m4/acosf.m4 (gl_FUNC_ACOSF): Require gl_USE_SYSTEM_EXTENSIONS.
21403         * m4/asinf.m4 (gl_FUNC_ASINF): Likewise.
21404         * m4/atan2f.m4 (gl_FUNC_ATAN2F): Likewise.
21405         * m4/atanf.m4 (gl_FUNC_ATANF): Likewise.
21406         * m4/cbrt.m4 (gl_FUNC_CBRT): Likewise.
21407         * m4/cbrtf.m4 (gl_FUNC_CBRTF): Likewise.
21408         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Likewise.
21409         * m4/copysignf.m4 (gl_FUNC_COPYSIGNF): Likewise.
21410         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Likewise.
21411         * m4/cosf.m4 (gl_FUNC_COSF): Likewise.
21412         * m4/coshf.m4 (gl_FUNC_COSHF): Likewise.
21413         * m4/expf.m4 (gl_FUNC_EXPF): Likewise.
21414         * m4/fabsf.m4 (gl_FUNC_FABSF): Likewise.
21415         * m4/fabsl.m4 (gl_FUNC_FABSL): Likewise.
21416         * m4/fmaf.m4 (gl_FUNC_FMAF): Likewise.
21417         * m4/fmal.m4 (gl_FUNC_FMAL): Likewise.
21418         * m4/fmodf.m4 (gl_FUNC_FMODF): Likewise.
21419         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
21420         * m4/frexpf.m4 (gl_FUNC_FREXPF): Likewise.
21421         * m4/frexpl.m4 (gl_FUNC_FREXPL): Likewise.
21422         * m4/hypot.m4 (gl_FUNC_HYPOT): Likewise.
21423         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Likewise.
21424         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Likewise.
21425         * m4/ldexpf.m4 (gl_FUNC_LDEXPF): Likewise.
21426         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
21427         * m4/log10f.m4 (gl_FUNC_LOG10F): Likewise.
21428         * m4/log10l.m4 (gl_FUNC_LOF10L): Likewise.
21429         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
21430         * m4/logf.m4 (gl_FUNC_LOGF): Likewise.
21431         * m4/modff.m4 (gl_FUNC_MODFF): Likewise.
21432         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
21433         * m4/powf.m4 (gl_FUNC_POWF): Likewise.
21434         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
21435         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
21436         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
21437         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
21438         * m4/sinf.m4 (gl_FUNC_SINF): Likewise.
21439         * m4/sinhf.m4 (gl_FUNC_SINHF): Likewise.
21440         * m4/sqrtf.m4 (gl_FUNC_SQRTF): Likewise.
21441         * m4/tanf.m4 (gl_FUNC_TANF): Likewise.
21442         * m4/tanhf.m4 (gl_FUNC_TANHF): Likewise.
21444 2012-03-06  Bruno Haible  <bruno@clisp.org>
21446         math: Update module names in warnings.
21447         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
21448         tanl): Use specific module name in warn-on-use warning.
21450 2012-03-06  Bruno Haible  <bruno@clisp.org>
21452         expl: Simplify computation.
21453         * lib/expl.c (expl): Simplify computation of exp_y. Fix comment.
21455 2012-03-05  Bruno Haible  <bruno@clisp.org>
21457         exp* tests: More tests.
21458         * tests/test-exp.h: New file.
21459         * tests/test-exp.c: Include <float.h> and test-exp.h.
21460         (main): Invoke test_function.
21461         * tests/test-expf.c: Include <float.h> and test-exp.h.
21462         (main): Invoke test_function.
21463         * tests/test-expl.c: Include <float.h> and test-exp.h.
21464         (main): Invoke test_function.
21465         * modules/exp-tests (Files): Add tests/test-exp.h, tests/randomd.c.
21466         (Makefile.am): Add randomd.c to test_exp_SOURCES.
21467         * modules/expf-tests (Files): Add tests/test-exp.h, tests/randomf.c.
21468         (Makefile.am): Add randomf.c to test_expf_SOURCES.
21469         * modules/expl-tests (Files): Add tests/test-exp.h, tests/randoml.c.
21470         (Depends-on): Add 'float'.
21471         (Makefile.am): Add randoml.c to test_expl_SOURCES.
21473         expl: Fix precision of computed result.
21474         * lib/expl.c: Completely rewritten.
21475         * modules/expl (Depends-on): Add isnanl, roundl, ldexpl. Remove floorl.
21476         (Maintainer): Add me.
21477         * m4/expl.m4 (gl_FUNC_EXPL): Update computation of EXPL_LIBM.
21479 2012-03-05  Bruno Haible  <bruno@clisp.org>
21481         cbrt* tests: More tests.
21482         * tests/test-cbrt.h: New file.
21483         * tests/test-cbrt.c: Include <float.h> and test-cbrt.h.
21484         (main): Invoke test_function.
21485         * tests/test-cbrtf.c: Include <float.h> and test-cbrt.h.
21486         (main): Invoke test_function.
21487         * tests/test-cbrtl.c: Include <float.h> and test-cbrt.h.
21488         (main): Invoke test_function.
21489         * modules/cbrt-tests (Files): Add tests/test-cbrt.h, tests/randomd.c.
21490         (Makefile.am): Add randomd.c to test_cbrt_SOURCES.
21491         * modules/cbrtf-tests (Files): Add tests/test-cbrt.h, tests/randomf.c.
21492         (Makefile.am): Add randomf.c to test_cbrtf_SOURCES.
21493         * modules/cbrtl-tests (Files): Add tests/test-cbrt.h, tests/randoml.c.
21494         (Depends-on): Add 'float'.
21495         (Makefile.am): Add randoml.c to test_cbrtl_SOURCES.
21497 2012-03-05  Bruno Haible  <bruno@clisp.org>
21499         hypot* tests: More tests.
21500         * tests/test-hypot.h: New file, partially extracted from
21501         tests/test-hypotl.c.
21502         * tests/test-hypot.c: Include test-hypot.h.
21503         (main): Invoke test_function.
21504         * tests/test-hypotf.c: Include test-hypot.h.
21505         (main): Invoke test_function.
21506         * tests/test-hypotl.c: Include fpucw.h and test-hypot.h.
21507         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING and test_function.
21508         * modules/hypot-tests (Files): Add tests/test-hypot.h, tests/randomd.c.
21509         (Makefile.am): Add randomd.c to test_hypot_SOURCES.
21510         * modules/hypotf-tests (Files): Add tests/test-hypot.h,
21511         tests/randomf.c.
21512         (Makefile.am): Add randomf.c to test_hypotf_SOURCES.
21513         * modules/hypotl-tests (Files): Add tests/test-hypot.h,
21514         tests/randoml.c.
21515         (Depends-on): Add 'fpucw', 'float'.
21516         (Makefile.am): Add randoml.c to test_hypotl_SOURCES.
21518 2012-03-05  Bruno Haible  <bruno@clisp.org>
21520         fpucw: Doc about FreeBSD.
21521         * lib/fpucw.h: Mention FreeBSD in comments.
21523 2012-03-04  Bruno Haible  <bruno@clisp.org>
21525         sqrt* tests: More tests.
21526         * tests/test-sqrt.h: New file.
21527         * tests/test-sqrt.c: Include <float.h> and test-sqrt.h.
21528         (main): Invoke test_function.
21529         * tests/test-sqrtf.c: Include <float.h> and test-sqrt.h.
21530         (main): Invoke test_function.
21531         * tests/test-sqrtl.c: Include <float.h> and test-sqrt.h.
21532         (main): Invoke test_function.
21533         * modules/sqrt-tests (Files): Add tests/test-sqrt.h, tests/randomd.c.
21534         (Makefile.am): Add randomd.c to test_sqrt_SOURCES.
21535         * modules/sqrtf-tests (Files): Add tests/test-sqrt.h, tests/randomf.c.
21536         (Makefile.am): Add randomf.c to test_sqrtf_SOURCES.
21537         * modules/sqrtl-tests (Files): Add tests/test-sqrt.h, tests/randoml.c.
21538         (Depends-on): Add 'float'.
21539         (Makefile.am): Add randoml.c to test_sqrtl_SOURCES.
21541 2012-03-04  Bruno Haible  <bruno@clisp.org>
21543         remainder* tests: More tests.
21544         * tests/test-remainder.h: New file, based on tests/test-fmod.h.
21545         * tests/test-remainder.c: Include <float.h> and test-remainder.h.
21546         (main): Invoke test_function.
21547         * tests/test-remainderf.c: Include <float.h> and test-remainder.h.
21548         (main): Invoke test_function.
21549         * tests/test-remainderl.c: Include <float.h> and test-remainder.h.
21550         (main): Invoke test_function.
21551         * modules/remainder-tests (Files): Add tests/test-remainder.h,
21552         tests/randomd.c.
21553         (Makefile.am): Add randomd.c to test_remainder_SOURCES.
21554         * modules/remainderf-tests (Files): Add tests/test-remainder.h,
21555         tests/randomf.c.
21556         (Makefile.am): Add randomf.c to test_remainderf_SOURCES.
21557         * modules/remainderl-tests (Files): Add tests/test-remainder.h,
21558         tests/randoml.c.
21559         (Depends-on): Add 'float'.
21560         (Makefile.am): Add randoml.c to test_remainderl_SOURCES.
21562 2012-03-04  Bruno Haible  <bruno@clisp.org>
21564         remainder, remainderf, remainderl: Fix computation for large quotients.
21565         * lib/remainder.c: Completely rewritten.
21566         * lib/remainderf.c (remainderf): Use implementation of remainder.c with
21567         USE_FLOAT.
21568         * lib/remainderl.c (remainderl): Use implementation of remainder.c with
21569         USE_LONG_DOUBLE.
21570         * modules/remainder (Depends-on): Add isfinite, signbit, fabs, fmod,
21571         isnand, isinf. Remove round, fma.
21572         * modules/remainderf (Files): Add lib/remainder.c.
21573         (Depends-on): Add isfinite, signbit, fabsf, fmodf, isnanf, isinf.
21574         Remove roundf, fmaf.
21575         * modules/remainderl (Files): Add lib/remainder.c.
21576         (Depends-on): Add float, isfinite, signbit, fabsl, fmodl, isnanl,
21577         isinf. Remove roundl, fmal.
21578         * m4/remainder.m4 (gl_FUNC_REMAINDER): Update computation of
21579         REMAINDER_LIBM.
21580         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Update computation of
21581         REMAINDERF_LIBM.
21582         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Update computation of
21583         REMAINDERL_LIBM.
21585 2012-03-04  Bruno Haible  <bruno@clisp.org>
21587         fmod* tests: More tests.
21588         * tests/test-fmod.h (my_ldexp): New function.
21589         (test_function): Reduce amount of random numbers to test. Add tests
21590         of very large quotients x / y.
21591         * tests/test-fmod.c (MAX_EXP): New macro.
21592         * tests/test-fmodf.c (MAX_EXP): Likewise.
21593         * tests/test-fmodl.c (MAX_EXP): Likewise.
21595 2012-03-04  Bruno Haible  <bruno@clisp.org>
21597         fmod, fmodl: Fix computation for large quotients x / y.
21598         * lib/fmod.c: Completely rewritten.
21599         * lib/fmodl.c (fmodl): Use implementation of fmod.c with
21600         USE_LONG_DOUBLE.
21601         * modules/fmod (Depends-on): Add isfinite, signbit, fabs, frexp, ldexp,
21602         isnand. Remove fma.
21603         * modules/fmodl (Files): Add lib/fmod.c.
21604         (Depends-on): Add float, isfinite, signbit, fabsl,
21605         frexpl, ldexpl, isnanl. Remove fma.
21606         * m4/fmod.m4 (gl_FUNC_FMOD): Update computation of FMOD_LIBM.
21607         * m4/fmodl.m4 (gl_FUNC_FMODL): Update computation of FMODL_LIBM.
21609 2012-03-03  Bruno Haible  <bruno@clisp.org>
21611         fmod* tests: More tests.
21612         * tests/test-fmod.h: New file.
21613         * tests/test-fmod.c: Include <float.h> and test-fmod.h.
21614         (main): Invoke test_function.
21615         * tests/test-fmodf.c: Include <float.h> and test-fmod.h.
21616         (main): Invoke test_function.
21617         * tests/test-fmodl.c: Include <float.h> and test-fmod.h.
21618         (main): Invoke test_function.
21619         * modules/fmod-tests (Files): Add tests/test-fmod.h, tests/randomd.c.
21620         (Makefile.am): Add randomd.c to test_fmod_SOURCES.
21621         * modules/fmodf-tests (Files): Add tests/test-fmod.h, tests/randomf.c.
21622         (Makefile.am): Add randomf.c to test_fmodf_SOURCES.
21623         * modules/fmodl-tests (Files): Add tests/test-fmod.h, tests/randoml.c.
21624         (Depends-on): Add 'float'.
21625         (Makefile.am): Add randoml.c to test_fmodl_SOURCES.
21627 2012-03-03  Bruno Haible  <bruno@clisp.org>
21629         rint* tests: More tests.
21630         * tests/test-rint.h: New file, partially extracted from
21631         tests/test-rintl.c.
21632         * tests/test-rint.c: Include test-rint.h.
21633         (main): Invoke test_function.
21634         * tests/test-rintf.c: Include test-rint.h.
21635         (main): Invoke test_function.
21636         * tests/test-rintl.c: Include test-rint.h.
21637         (main): Invoke test_function.
21638         * modules/rint-tests (Files): Add tests/test-rint.h, tests/randomd.c.
21639         (Makefile.am): Add randomd.c to test_rint_SOURCES.
21640         * modules/rintf-tests (Files): Add tests/test-rint.h, tests/randomf.c.
21641         (Makefile.am): Add randomf.c to test_rintf_SOURCES.
21642         * modules/rintl-tests (Files): Add tests/test-rint.h, tests/randoml.c.
21643         (Makefile.am): Add randoml.c to test_rintl_SOURCES.
21645 2012-03-03  Bruno Haible  <bruno@clisp.org>
21647         modf* tests: More tests.
21648         * tests/test-modf.h: New file.
21649         * tests/test-modf.c: Include <float.h> and test-modf.h.
21650         (main): Invoke test_function.
21651         * tests/test-modff.c: Include <float.h> and test-modf.h.
21652         (main): Invoke test_function.
21653         * tests/test-modfl.c: Include <float.h> and test-modf.h.
21654         (main): Invoke test_function.
21655         * modules/modf-tests (Files): Add tests/test-modf.h, tests/randomd.c.
21656         (Makefile.am): Add randomd.c to test_modf_SOURCES.
21657         * modules/modff-tests (Files): Add tests/test-modf.h, tests/randomf.c.
21658         (Makefile.am): Add randomf.c to test_modff_SOURCES.
21659         * modules/modfl-tests (Files): Add tests/test-modf.h, tests/randoml.c.
21660         (Depends-on): Add 'float'.
21661         (Makefile.am): Add randoml.c to test_modfl_SOURCES.
21663 2012-03-03  Bruno Haible  <bruno@clisp.org>
21665         fabs* tests: More tests.
21666         * tests/test-fabs.h: New file, partially extracted from
21667         tests/test-fabsl.c.
21668         * tests/test-fabs.c (RANDOM): New macro.
21669         * tests/test-fabsf.c (RANDOM): New macro.
21670         * tests/test-fabsl.c (RANDOM): New macro.
21671         * modules/fabs-tests (Files): Add tests/randomd.c.
21672         (Makefile.am): Add randomd.c to test_fabs_SOURCES.
21673         * modules/fabsf-tests (Files): Add tests/randomf.c.
21674         (Makefile.am): Add randomf.c to test_fabsf_SOURCES.
21675         * modules/fabsl-tests (Files): Add tests/randoml.c.
21676         (Makefile.am): Add randoml.c to test_fabsl_SOURCES.
21678 2012-03-03  Bruno Haible  <bruno@clisp.org>
21680         ldexp* tests: More tests.
21681         * tests/test-ldexp.h (test_function): Add some pseudo-randomized tests.
21682         * tests/test-ldexp.c (RANDOM): New macro.
21683         * tests/test-ldexpf.c (RANDOM): New macro.
21684         * tests/test-ldexpl.c (RANDOM): New macro.
21685         * modules/ldexp-tests (Files): Add tests/randomd.c.
21686         (Makefile.am): Add randomd.c to test_ldexp_SOURCES.
21687         * modules/ldexpf-tests (Files): Add tests/randomf.c.
21688         (Makefile.am): Add randomf.c to test_ldexpf_SOURCES.
21689         * modules/ldexpl-tests (Files): Add tests/randoml.c.
21690         (Makefile.am): Add randoml.c to test_ldexpl_SOURCES.
21692 2012-03-03  Bruno Haible  <bruno@clisp.org>
21694         frexp* tests: More tests.
21695         * tests/test-frexp.h (test_function): Add some pseudo-randomized tests.
21696         * tests/test-frexp.c (RANDOM): New macro.
21697         * tests/test-frexpf.c (RANDOM): New macro.
21698         * tests/test-frexpl.c (RANDOM): New macro.
21699         * modules/frexp-tests (Files): Add tests/randomd.c.
21700         (Makefile.am): Add randomd.c to test_frexp_SOURCES.
21701         * modules/frexpf-tests (Files): Add tests/randomf.c.
21702         (Makefile.am): Add randomf.c to test_frexpf_SOURCES.
21703         * modules/frexpl-tests (Files): Add tests/randoml.c.
21704         (Makefile.am): Add randoml.c to test_frexpl_SOURCES.
21706 2012-03-03  Bruno Haible  <bruno@clisp.org>
21708         Support for pseudo-random numbers in tests.
21709         * tests/randomf.c: New file.
21710         * tests/randomd.c: New file.
21711         * tests/randoml.c: New file.
21712         * tests/macros.h (randomf, randomd, randoml): New declarations.
21714 2012-03-03  Bruno Haible  <bruno@clisp.org>
21716         frexp* tests: Refactor.
21717         * tests/test-frexp.h: New file, extracted from tests/test-frexpl.c.
21718         * tests/test-frexp.c: Include and use it.
21719         * tests/test-frexpf.c: Likewise.
21720         * tests/test-frexpl.c: Likewise.
21721         * modules/frexp-tests (Files): Add tests/test-frexp.h.
21722         * modules/frexpf-tests (Files): Likewise.
21723         * modules/frexpl-tests (Files): Likewise.
21725 2012-03-02  Jim Meyering  <meyering@redhat.com>
21727         maint: don't specify XZ_OPT=-9ev in dist-related rule
21728         Using xz's -9 option is warranted only if you have a very large
21729         tarball (see xz's documentation for the sizes vs. presets), and
21730         requires 64MiB of memory at decompression time.
21731         * top/maint.mk (alpha beta stable): Don't specify XZ_OPT=-9ev.
21732         Automake's default of just "-e" is fine.  Override on a
21733         per-package basis by setting XZ_OPT e.g., in cfg.mk.
21735 2012-03-01  Eric Blake  <eblake@redhat.com>
21737         maint.mk: allow announcement for non-gnulib project
21738         * maint.mk (announcement): Skip gnulib version if not used.
21740 2012-03-01  Jim Meyering  <meyering@redhat.com>
21742         maint.mk: avoid spurious failure of _sc_search_regexp-using tests
21743         * top/maint.mk: Initialize _sc_search_regexp parameters, so that
21744         envvar settings cannot interfere.  Otherwise, setting envvars like
21745         prohibit=foo require=bar, etc. would cause spurious test failures.
21747 2012-03-01  Eric Blake  <eblake@redhat.com>
21749         maint.mk: add per-line exclusions to prohibitions
21750         * maint.mk (_sc_search_regexp): Add $exclude parameter.
21751         (sc_prohibit_strcmp, sc_unmarked_diagnostics)
21752         (sc_const_long_option): Use it.
21754 2012-03-01  Bruno Haible  <bruno@clisp.org>
21756         Tests for module 'expl-ieee'.
21757         * modules/expl-ieee-tests: New file.
21758         * tests/test-expl-ieee.c: New file.
21760         New module 'expl-ieee'.
21761         * modules/expl-ieee: New file.
21763         Tests for module 'exp-ieee'.
21764         * modules/exp-ieee-tests: New file.
21765         * tests/test-exp-ieee.c: New file.
21767         New module 'exp-ieee'.
21768         * modules/exp-ieee: New file.
21770         Tests for module 'expf-ieee'.
21771         * modules/expf-ieee-tests: New file.
21772         * tests/test-expf-ieee.c: New file.
21773         * tests/test-exp-ieee.h: New file.
21775         New module 'expf-ieee'.
21776         * modules/expf-ieee: New file.
21778 2012-02-29  Bruno Haible  <bruno@clisp.org>
21780         cbrtl-ieee: Work around test failure on IRIX 6.5.
21781         * m4/cbrtl-ieee.m4: New file.
21782         * m4/cbrtl.m4 (gl_FUNC_CBRTL): If gl_FUNC_CBRTL_IEEE is present,
21783         test whether cbrtl works with a minus zero argument. Replace it if not.
21784         * lib/math.in.h (cbrtl): Override if REPLACE_CBRTL is 1.
21785         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_CBRTL.
21786         * modules/math (Makefile.am): Substitute REPLACE_CBRTL.
21787         * modules/cbrtl (configure.ac): Consider REPLACE_CBRTL.
21788         (Depends-on): Update conditions.
21789         * modules/cbrtl-ieee (Files): Add m4/cbrtl-ieee.m4, m4/minus-zero.m4,
21790         m4/signbit.m4.
21791         (configure.ac): Invoke gl_FUNC_CBRTL_IEEE.
21792         * lib/cbrtl.c (cbrtl) [IRIX]: Avoid an unnecessary addition.
21793         * doc/posix-functions/cbrtl.texi: Mention the cbrtl-ieee module.
21795         Tests for module 'cbrtl-ieee'.
21796         * modules/cbrtl-ieee-tests: New file.
21797         * tests/test-cbrtl-ieee.c: New file.
21799         New module 'cbrtl-ieee'.
21800         * modules/cbrtl-ieee: New file.
21802         Tests for module 'cbrt-ieee'.
21803         * modules/cbrt-ieee-tests: New file.
21804         * tests/test-cbrt-ieee.c: New file.
21806         New module 'cbrt-ieee'.
21807         * modules/cbrt-ieee: New file.
21809         Tests for module 'cbrtf-ieee'.
21810         * modules/cbrtf-ieee-tests: New file.
21811         * tests/test-cbrtf-ieee.c: New file.
21812         * tests/test-cbrt-ieee.h: New file.
21814         New module 'cbrtf-ieee'.
21815         * modules/cbrtf-ieee: New file.
21817 2012-02-29  Bruno Haible  <bruno@clisp.org>
21819         cbrtf: Work around bug in IRIX 6.5 system function.
21820         * lib/math.in.h (cbrtf): Override if REPLACE_CBRTF is 1.
21821         * m4/cbrtf.m4 (gl_FUNC_CBRTF_WORKS): New macro.
21822         (gl_FUNC_CBRTF): Invoke it. Set REPLACE_CBRTF to 1 if cbrtf() does not
21823         work.
21824         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_CBRTF.
21825         * modules/math (Makefile.am): Substitute REPLACE_CBRTF.
21826         * modules/cbrtf (configure.ac): Consider REPLACE_CBRTF.
21827         (Depends-on): Update conditions.
21828         * doc/posix-functions/cbrtf.texi: Mention the IRIX 6.5 problem.
21830 2012-02-29  Bruno Haible  <bruno@clisp.org>
21832         Tests for module 'cbrtl'.
21833         * modules/cbrtl-tests: New file.
21834         * tests/test-cbrtl.c: New file.
21836         New module 'cbrtl'.
21837         * lib/math.in.h (cbrtl): New declaration.
21838         * lib/cbrtl.c: New file.
21839         * m4/cbrtl.m4: New file.
21840         * m4/math_h.m4 (gl_MATH_H): Test whether cbrtl is declared.
21841         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRTL, HAVE_CBRTL,
21842         HAVE_DECL_CBRTL.
21843         * modules/math (Makefile.am): Substitute GNULIB_CBRTL, HAVE_CBRTL,
21844         HAVE_DECL_CBRTL.
21845         * modules/cbrtl: New file.
21846         * tests/test-math-c++.cc: Check the declaration of cbrtl.
21847         * doc/posix-functions/cbrtl.texi: Mention the new module.
21849 2012-02-29  Bruno Haible  <bruno@clisp.org>
21851         Tests for module 'cbrtf'.
21852         * modules/cbrtf-tests: New file.
21853         * tests/test-cbrtf.c: New file.
21855         New module 'cbrtf'.
21856         * lib/math.in.h (cbrtf): New declaration.
21857         * lib/cbrtf.c: New file.
21858         * m4/cbrtf.m4: New file.
21859         * m4/math_h.m4 (gl_MATH_H): Test whether cbrtf is declared.
21860         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRTF, HAVE_CBRTF,
21861         HAVE_DECL_CBRTF.
21862         * modules/math (Makefile.am): Substitute GNULIB_CBRTF, HAVE_CBRTF,
21863         HAVE_DECL_CBRTF.
21864         * modules/cbrtf: New file.
21865         * tests/test-math-c++.cc: Check the declaration of cbrtf.
21866         * doc/posix-functions/cbrtf.texi: Mention the new module.
21868 2012-02-29  Bruno Haible  <bruno@clisp.org>
21870         cbrt: Provide replacement on MSVC and Minix.
21871         * lib/math.in.h (cbrt): New declaration.
21872         * lib/cbrt.c: New file.
21873         * m4/cbrt.m4: New file.
21874         * m4/math_h.m4 (gl_MATH_H): Test whether cbrt is declared.
21875         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRT, HAVE_CBRT.
21876         * modules/math (Makefile.am): Substitute GNULIB_CBRT, HAVE_CBRT.
21877         * modules/cbrt (Files): Add lib/cbrt.c, m4/cbrt.m4.
21878         (Depends-on): Add dependencies.
21879         (configure.ac): Arrange to compile replacement if HAVE_CBRT is 0.
21880         * tests/test-math-c++.cc: Check the declaration of cbrt.
21881         * doc/posix-functions/cbrt.texi: Mention that the module provides a
21882         replacement.
21884 2012-02-29  Bruno Haible  <bruno@clisp.org>
21886         hypotl-ieee: Work around test failure on OSF/1 and native Windows.
21887         * m4/hypotl-ieee.m4: New file.
21888         * m4/hypotl.m4 (gl_FUNC_HYPOTL): If gl_FUNC_HYPOTL_IEEE is present,
21889         test whether hypotl works with mixed NaN and Infinity arguments.
21890         Replace it if not.
21891         * lib/math.in.h (hypotl): Override if REPLACE_HYPOTL is 1.
21892         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_HYPOTL.
21893         * modules/math (Makefile.am): Substitute REPLACE_HYPOTL.
21894         * modules/hypotl (configure.ac): Consider REPLACE_HYPOTL.
21895         (Depends-on): Update conditions.
21896         * modules/hypotl-ieee (Files): Add m4/hypotl-ieee.m4.
21897         (Depends-on): Add hypot-ieee.
21898         (configure.ac): Invoke gl_FUNC_HYPOTL_IEEE.
21899         * doc/posix-functions/hypotl.texi: Mention the hypotl-ieee module.
21901         hypotf-ieee: Work around test failure on OSF/1 and native Windows.
21902         * m4/hypotf-ieee.m4: New file.
21903         * m4/hypotf.m4 (gl_FUNC_HYPOTF): If gl_FUNC_HYPOTF_IEEE is present,
21904         test whether hypotf works with mixed NaN and Infinity arguments.
21905         Replace it if not.
21906         * modules/hypotf-ieee (Files): Add m4/hypotf-ieee.m4.
21907         (Depends-on): Add hypot-ieee.
21908         (configure.ac): Invoke gl_FUNC_HYPOTF_IEEE.
21909         * doc/posix-functions/hypotf.texi: Mention the hypotf-ieee module.
21911         hypot-ieee: Work around test failure on OSF/1 and native Windows.
21912         * lib/math.in.h (hypot): New declaration.
21913         * lib/hypot.c: New file.
21914         * m4/hypot-ieee.m4: New file.
21915         * m4/hypot.m4 (gl_FUNC_HYPOT): If gl_FUNC_HYPOT_IEEE is present, test
21916         whether hypot works with mixed NaN and Infinity arguments. Replace it
21917         if not.
21918         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOT,
21919         REPLACE_HYPOT.
21920         * modules/math (Makefile.am): Substitute GNULIB_HYPOT, REPLACE_HYPOT.
21921         * modules/hypot (Files): Add lib/hypot.c.
21922         (Depends-on): Add dependencies.
21923         (configure.ac): Arrange to compile replacement if REPLACE_HYPOT is 1.
21924         * modules/hypot-ieee (Files): Add m4/hypot-ieee.m4.
21925         (configure.ac): Invoke gl_FUNC_HYPOT_IEEE.
21926         * tests/test-math-c++.cc: Check the declaration of hypot.
21927         * doc/posix-functions/hypot.texi: Mention the hypot-ieee module.
21929         Tests for module 'hypotl-ieee'.
21930         * modules/hypotl-ieee-tests: New file.
21931         * tests/test-hypotl-ieee.c: New file.
21933         New module 'hypotl-ieee'.
21934         * modules/hypotl-ieee: New file.
21936         Tests for module 'hypot-ieee'.
21937         * modules/hypot-ieee-tests: New file.
21938         * tests/test-hypot-ieee.c: New file.
21940         New module 'hypot-ieee'.
21941         * modules/hypot-ieee: New file.
21943         Tests for module 'hypotf-ieee'.
21944         * modules/hypotf-ieee-tests: New file.
21945         * tests/test-hypotf-ieee.c: New file.
21946         * tests/test-hypot-ieee.h: New file.
21948         New module 'hypotf-ieee'.
21949         * modules/hypotf-ieee: New file.
21951 2012-02-29  Bruno Haible  <bruno@clisp.org>
21953         Remove unused variables.
21954         * m4/fmod.m4 (gl_FUNC_FMOD): Remove unused variable 'i'.
21955         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
21956         * m4/remainder.m4 (gl_FUNC_REMAINDER): Likewise.
21957         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
21959 2012-02-29  Eric Blake  <eblake@redhat.com>
21961         termios: fix pid_t always, not just for tcgetsid
21962         * doc/posix-headers/termios.texi (termios.h): Mention problem.
21963         * lib/termios.in.h (include): Ensure pid_t on all platforms, not
21964         just when building tcgetsid.
21966 2012-02-29  Bruno Haible  <bruno@clisp.org>
21968         Tests for module 'hypotl'.
21969         * modules/hypotl-tests: New file.
21970         * tests/test-hypotl.c: New file.
21972         New module 'hypotl'.
21973         * lib/math.in.h (hypotl): New declaration.
21974         * lib/hypotl.c: New file.
21975         * m4/hypotl.m4: New file.
21976         * m4/math_h.m4 (gl_MATH_H): Test whether hypotf is declared.
21977         (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOTL, HAVE_HYPOTL.
21978         * modules/math (Makefile.am): Substitute GNULIB_HYPOTL, HAVE_HYPOTL.
21979         * modules/hypotl: New file.
21980         * tests/test-math-c++.cc: Check the hypotl declaration.
21981         * doc/posix-functions/hypotl.texi: Mention the new module.
21983 2012-02-29  Eric Blake  <eblake@redhat.com>
21985         tcgetsid: fix cygwin header bug
21986         * lib/termios.in.h (includes) [Cygwin]: Ensure pid_t is defined.
21988         docs: update cygwin progress
21989         * doc/posix-functions/llround.texi (llround): Added in cygwin
21990         1.7.8.
21991         * doc/posix-functions/llroundf.texi (llroundf): Likewise.
21992         * doc/glibc-functions/program_invocation_name.texi
21993         (program_invocation_name): Likewise.
21994         * doc/glibc-functions/program_invocation_short_name.texi
21995         (program_invocation_short_name): Likewise.
21996         * doc/glibc-functions/madvise.texi (madvise): Likewise.
21997         * doc/glibc-functions/pthread_yield.texi (pthread_yield):
21998         Likewise.
21999         * doc/posix-functions/pthread_spin_destroy.texi
22000         (pthread_spin_destroy): Added in cygwin 1.7.10.
22001         * doc/posix-functions/pthread_spin_init.texi (pthread_spin_init):
22002         Likewise.
22003         * doc/posix-functions/pthread_spin_lock.texi (pthread_spin_lock):
22004         Likewise.
22005         * doc/posix-functions/pthread_spin_trylock.texi
22006         (pthread_spin_trylock): Likewise.
22007         * doc/posix-functions/pthread_spin_unlock.texi
22008         (pthread_spin_unlock): Likewise.
22009         * doc/posix-functions/pthread_setschedprio.texi
22010         (pthread_setschedprio): Likewise.
22011         * doc/posix-functions/pthread_attr_getstack.texi
22012         (pthread_attr_getstack): Likewise.
22013         * doc/pastposix-functions/pthread_attr_getstackaddr.texi
22014         (pthread_attr_getstackaddr): Likewise.
22015         * doc/glibc-functions/pthread_getattr_np.texi
22016         (pthread_getattr_np): Likewise.
22017         * doc/glibc-functions/sys_siglist.texi (sys_siglist): Likewise.
22018         * doc/glibc-functions/sysinfo.texi (sysinfo): Likewise.
22019         * doc/posix-functions/clock_settime.texi (clock_settime):
22020         Likewise.
22021         * doc/posix-functions/pthread_attr_getguardsize.texi
22022         (pthread_attr_getguardsize): Likewise.
22023         * doc/posix-functions/pthread_attr_setguardsize.texi
22024         (pthread_attr_setguardsize): Likewise.
22025         * doc/posix-functions/pthread_attr_setstack.texi
22026         (pthread_attr_setstack): Likewise.
22027         * doc/pastposix-functions/pthread_attr_setstackaddr.texi
22028         (pthread_attr_setstackaddr): Likewise.
22029         * doc/posix-functions/clock_getcpuclockid.texi
22030         (clock_getcpuclockid): Likewise.
22031         * doc/posix-functions/pthread_getcpuclockid.texi
22032         (pthread_getcpuclockid): Likewise.
22033         * doc/glibc-functions/error.texi (error): Likewise.
22034         * doc/glibc-functions/error_at_line.texi (error_at_line):
22035         Likewise.
22036         * doc/glibc-functions/error_message_count.texi
22037         (error_message_count): Likewise.
22038         * doc/glibc-functions/error_one_per_line.texi
22039         (error_one_per_line): Likewise.
22040         * doc/glibc-functions/error_print_progname.texi
22041         (error_print_progname): Likewise.
22042         * doc/posix-functions/pthread_condattr_getclock.texi
22043         (pthread_condattr_getclock): Likewise.
22044         * doc/posix-functions/pthread_condattr_setclock.texi
22045         (pthread_condattr_setclock): Likewise.
22046         * doc/posix-functions/clock_nanosleep.texi (clock_nanosleep):
22047         Likewise.
22048         * doc/glibc-functions/getgrouplist.texi (getgrouplist): Likewise.
22049         * doc/glibc-functions/getpt.texi (getpt): Likewise.
22050         * doc/glibc-functions/get_current_dir_name.texi
22051         (get_current_dir_name): Likewise.
22052         * doc/glibc-functions/pthread_sigqueue.texi (pthread_sigqueue):
22053         Likewise.
22054         * doc/posix-functions/tcgetsid.texi (tcgetsid): Likewise, but with
22055         wrong return type.
22056         * doc/glibc-functions/scandirat.texi (scandirat): Added in cygwin
22057         1.7.11.
22059 2012-02-29  Bruno Haible  <bruno@clisp.org>
22061         Tests for module 'hypotf'.
22062         * modules/hypotf-tests: New file.
22063         * tests/test-hypotf.c: New file.
22065         New module 'hypotf'.
22066         * lib/math.in.h (hypotf): New declaration.
22067         * lib/hypotf.c: New file.
22068         * m4/hypotf.m4: New file.
22069         * m4/math_h.m4 (gl_MATH_H): Test whether hypotf is declared.
22070         (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOTF, HAVE_HYPOTF,
22071         REPLACE_HYPOTF.
22072         * modules/math (Makefile.am): Substitute GNULIB_HYPOTF, HAVE_HYPOTF,
22073         REPLACE_HYPOTF.
22074         * modules/hypotf: New file.
22075         * tests/test-math-c++.cc: Check the hypotf declaration.
22076         * doc/posix-functions/hypotf.texi: Mention the new module.
22078         hypot: Prepare for hypotf module.
22079         * m4/hypot.m4: New file.
22080         * modules/hypot (Files): Add m4/hypot.m4.
22081         (configure.ac): Invoke gl_FUNC_HYPOT.
22083 2012-02-29  Bruno Haible  <bruno@clisp.org>
22085         hypot tests: More tests.
22086         * tests/test-hypot.c: Include <float.h>.
22087         (main): Add tests about overflow and underflow.
22089 2012-02-29  Bruno Haible  <bruno@clisp.org>
22091         math code: Add comments.
22092         * lib/acosl.c: Add comment about related glibc source files.
22093         * lib/asinl.c: Likewise.
22094         * lib/atanl.c: Likewise.
22095         * lib/expl.c: Likewise.
22096         * lib/logl.c: Likewise.
22097         * lib/sincosl.c: Likewise.
22098         * lib/sinl.c: Likewise.
22099         * lib/tanl.c: Likewise.
22100         * lib/trigl.c: Likewise.
22101         * lib/cosl.c: Likewise. Fix comments.
22103 2012-02-28  Bruno Haible  <bruno@clisp.org>
22105         math: Ensure HUGE_VAL, HUGE_VALF, HUGE_VALL are defined.
22106         * lib/math.in.h (HUGE_VAL, HUGE_VALF, HUGE_VALL): Define fallbacks.
22107         * tests/test-math.c: Include macros.h. Check that HUGE_VAL, HUGE_VALF,
22108         HUGE_VALL are defined.
22109         (numeric_equald): Renamed from numeric_equal.
22110         (numeric_equalf, numeric_equall): New functions.
22111         (main): Check also HUGE_VALF, HUGE_VALL.
22112         * modules/math-tests (Files): Add tests/macros.h.
22113         * doc/posix-headers/math.texi: Document the problems with HUGE_VALF and
22114         HUGE_VALL.
22116 2012-02-28  Bruno Haible  <bruno@clisp.org>
22118         doc: Move ISO C11 feature notes into POSIX chapters.
22119         * doc/posix-functions/aligned_alloc.texi: Renamed from
22120         doc/glibc-functions/aligned_alloc.texi.
22121         * doc/posix-functions/quick_exit.texi: Renamed from
22122         doc/glibc-functions/quick_exit.texi.
22123         * doc/posix-headers/uchar.texi: Renamed from
22124         doc/glibc-headers/uchar.texi.
22125         * doc/posix-functions/c16rtomb.texi: Renamed from
22126         doc/glibc-functions/c16rtomb.texi.
22127         * doc/posix-functions/c32rtomb.texi: Renamed from
22128         doc/glibc-functions/c32rtomb.texi.
22129         * doc/posix-functions/mbrtoc16.texi: Renamed from
22130         doc/glibc-functions/mbrtoc16.texi.
22131         * doc/posix-functions/mbrtoc32.texi: Renamed from
22132         doc/glibc-functions/mbrtoc32.texi.
22133         * doc/gnulib.texi: Update.
22134         (Glibc uchar.h): Remove section.
22135         Suggested by Eric Blake.
22137 2012-02-29  Paul Eggert  <eggert@cs.ucla.edu>
22139         stdnoreturn: port to MSVC better
22140         MSVC standard headers use __declspec(noreturn), so #define noreturn
22141         to empty on that platform.  Reported by Bruno Haible in
22142         <http://lists.gnu.org/r/bug-gnulib/2012-02/msg00152.html>.
22143         * lib/stdnoreturn.in.h (noreturn): Define to empty on MSVC.
22144         * doc/posix-headers/stdnoreturn.texi (stdnoreturn.h): Document this.
22146 2012-02-28  Bruno Haible  <bruno@clisp.org>
22148         doc: Mention new glibc headers and functions.
22149         * doc/glibc-headers/uchar.texi: New file.
22150         * doc/glibc-functions/aligned_alloc.texi: New file.
22151         * doc/glibc-functions/c16rtomb.texi: New file.
22152         * doc/glibc-functions/c32rtomb.texi: New file.
22153         * doc/glibc-functions/clock_adjtime.texi: New file.
22154         * doc/glibc-functions/fanotify_init.texi: New file.
22155         * doc/glibc-functions/fanotify_mark.texi: New file.
22156         * doc/glibc-functions/inet6_opt_append.texi: New file.
22157         * doc/glibc-functions/inet6_opt_find.texi: New file.
22158         * doc/glibc-functions/inet6_opt_finish.texi: New file.
22159         * doc/glibc-functions/inet6_opt_get_val.texi: New file.
22160         * doc/glibc-functions/inet6_opt_init.texi: New file.
22161         * doc/glibc-functions/inet6_opt_next.texi: New file.
22162         * doc/glibc-functions/inet6_opt_set_val.texi: New file.
22163         * doc/glibc-functions/inet6_rth_add.texi: New file.
22164         * doc/glibc-functions/inet6_rth_getaddr.texi: New file.
22165         * doc/glibc-functions/inet6_rth_init.texi: New file.
22166         * doc/glibc-functions/inet6_rth_reverse.texi: New file.
22167         * doc/glibc-functions/inet6_rth_segments.texi: New file.
22168         * doc/glibc-functions/inet6_rth_space.texi: New file.
22169         * doc/glibc-functions/login.texi: New file.
22170         * doc/glibc-functions/mbrtoc16.texi: New file.
22171         * doc/glibc-functions/mbrtoc32.texi: New file.
22172         * doc/glibc-functions/name_to_handle_at.texi: New file.
22173         * doc/glibc-functions/ntp_gettimex.texi: New file.
22174         * doc/glibc-functions/open_by_handle_at.texi: New file.
22175         * doc/glibc-functions/prlimit.texi: New file.
22176         * doc/glibc-functions/process_vm_readv.texi: New file.
22177         * doc/glibc-functions/process_vm_writev.texi: New file.
22178         * doc/glibc-functions/recvmmsg.texi: New file.
22179         * doc/glibc-functions/scandirat.texi: New file.
22180         * doc/glibc-functions/sendmmsg.texi: New file.
22181         * doc/glibc-functions/setns.texi: New file.
22182         * doc/glibc-functions/timespec_get.texi: New file.
22183         * doc/gnulib.texi: Include them.
22184         (Glibc sys/fanotify.h, Glibc sys/resource.h, Glibc uchar.h): New
22185         sections.
22186         Reported by Eric Blake.
22188 2012-02-28  Bruno Haible  <bruno@clisp.org>
22190         Avoid compilation errors with MSVC option -fp:strict.
22191         * lib/floor.c: Use MSVC specific pragma fenv_access.
22192         * lib/ceil.c: Likewise.
22193         * lib/trunc.c: Likewise.
22194         * lib/round.c: Likewise.
22195         * lib/rint.c: Likewise.
22196         * lib/fma.c: Likewise.
22197         * lib/integer_length.c: Likewise.
22198         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
22199         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
22200         * tests/test-floor2.c: Likewise.
22201         * tests/test-floorf2.c: Likewise.
22202         * tests/test-ceil2.c: Likewise.
22203         * tests/test-ceilf2.c: Likewise.
22204         * tests/test-trunc2.c: Likewise.
22205         * tests/test-truncf2.c: Likewise.
22206         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
22208 2012-02-27  Bruno Haible  <bruno@clisp.org>
22210         Tests for module 'sqrtl-ieee'.
22211         * modules/sqrtl-ieee-tests: New file.
22212         * tests/test-sqrtl-ieee.c: New file.
22214         New module 'sqrtl-ieee'.
22215         * modules/sqrtl-ieee: New file.
22217         Tests for module 'sqrt-ieee'.
22218         * modules/sqrt-ieee-tests: New file.
22219         * tests/test-sqrt-ieee.c: New file.
22221         New module 'sqrt-ieee'.
22222         * modules/sqrt-ieee: New file.
22224         Tests for module 'sqrtf-ieee'.
22225         * modules/sqrtf-ieee-tests: New file.
22226         * tests/test-sqrtf-ieee.c: New file.
22227         * tests/test-sqrt-ieee.h: New file.
22229         New module 'sqrtf-ieee'.
22230         * modules/sqrtf-ieee: New file.
22232 2012-02-27  Bruno Haible  <bruno@clisp.org>
22234         remainderl-ieee: Work around test failure on OSF/1.
22235         * m4/remainderl-ieee.m4: New file.
22236         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): If gl_FUNC_REMAINDERL_IEEE is
22237         present, test whether remainderl works with a zero second argument.
22238         Replace it if not.
22239         * lib/math.in.h (remainderl): Override if REPLACE_REMAINDERL is 1.
22240         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDERL.
22241         * modules/math (Makefile.am): Substitute REPLACE_REMAINDERL.
22242         * modules/remainderl (configure.ac): Consider REPLACE_REMAINDERL.
22243         (Depends-on): Update conditions.
22244         * modules/remainderl-ieee (Files): Add m4/remainderl-ieee.m4.
22245         (Depends-on): Add remainder-ieee.
22246         (configure.ac): Invoke gl_FUNC_REMAINDERL_IEEE.
22247         * doc/posix-functions/remainderl.texi: Mention the remainderl-ieee
22248         module.
22250         remainderf-ieee: Work around test failure on OSF/1.
22251         * m4/remainderf-ieee.m4: New file.
22252         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): If gl_FUNC_REMAINDERF_IEEE is
22253         present, test whether remainderf works with a zero second argument.
22254         Replace it if not.
22255         * lib/math.in.h (remainderf): Override if REPLACE_REMAINDERF is 1.
22256         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDERF.
22257         * modules/math (Makefile.am): Substitute REPLACE_REMAINDERF.
22258         * modules/remainderf (configure.ac): Consider REPLACE_REMAINDERF.
22259         (Depends-on): Update conditions.
22260         * modules/remainderf-ieee (Files): Add m4/remainderf-ieee.m4.
22261         (Depends-on): Add remainder-ieee.
22262         (configure.ac): Invoke gl_FUNC_REMAINDERF_IEEE.
22263         * doc/posix-functions/remainderf.texi: Mention the remainderf-ieee
22264         module.
22266         remainder-ieee: Work around test failure on OSF/1.
22267         * m4/remainder-ieee.m4: New file.
22268         * m4/remainder.m4 (gl_FUNC_REMAINDER): If gl_FUNC_REMAINDER_IEEE is
22269         present, test whether remainder works with a zero second argument.
22270         Replace it if not.
22271         * lib/math.in.h (remainder): Override if REPLACE_REMAINDER is 1.
22272         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDER.
22273         * modules/math (Makefile.am): Substitute REPLACE_REMAINDER.
22274         * modules/remainder (configure.ac): Consider REPLACE_REMAINDER.
22275         (Depends-on): Update dependencies.
22276         * modules/remainder-ieee (Files): Add m4/remainder-ieee.m4.
22277         (configure.ac): Invoke gl_FUNC_REMAINDER_IEEE.
22278         * doc/posix-functions/remainder.texi: Mention the remainder-ieee module.
22280         Tests for module 'remainderl-ieee'.
22281         * modules/remainderl-ieee-tests: New file.
22282         * tests/test-remainderl-ieee.c: New file.
22284         New module 'remainderl-ieee'.
22285         * modules/remainderl-ieee: New file.
22287         Tests for module 'remainder-ieee'.
22288         * modules/remainder-ieee-tests: New file.
22289         * tests/test-remainder-ieee.c: New file.
22291         New module 'remainder-ieee'.
22292         * modules/remainder-ieee: New file.
22294         Tests for module 'remainderf-ieee'.
22295         * modules/remainderf-ieee-tests: New file.
22296         * tests/test-remainderf-ieee.c: New file.
22297         * tests/test-remainder-ieee.h: New file.
22299         New module 'remainderf-ieee'.
22300         * modules/remainderf-ieee: New file.
22302 2012-02-27  Bruno Haible  <bruno@clisp.org>
22304         modff, modfl: Fix configure syntax error.
22305         * m4/modff.m4 (gl_FUNC_MODFF): Insert ':' command in 'if'.
22306         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
22308 2012-02-27  Bruno Haible  <bruno@clisp.org>
22310         fmodl-ieee: Work around test failures on OSF/1, MSVC 9.
22311         * m4/fmodl-ieee.m4: New file.
22312         * m4/fmodl.m4 (gl_FUNC_FMODL): If gl_FUNC_FMODL_IEEE is present, test
22313         whether fmodl works with zero arguments. Replace it if not.
22314         * modules/fmodl-ieee (Files): Add m4/fmodl-ieee.m4.
22315         (Depends-on): Add fmod-ieee.
22316         (configure.ac): Invoke gl_FUNC_FMODL_IEEE.
22317         * doc/posix-functions/fmodl.texi: Mention the fmodl-ieee module.
22319         fmodf-ieee: Work around test failure on OSF/1.
22320         * m4/fmodf-ieee.m4: New file.
22321         * m4/fmodf.m4 (gl_FUNC_FMODF): If gl_FUNC_FMODF_IEEE is present, test
22322         whether fmodf works with zero arguments. Replace it if not.
22323         * lib/math.in.h (fmodf): Override if REPLACE_FMODF is 1.
22324         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FMODF.
22325         * modules/math (Makefile.am): Substitute REPLACE_FMODF.
22326         * modules/fmodf (configure.ac): Consider REPLACE_FMODF.
22327         (Depends-on): Update dependencies.
22328         * modules/fmodf-ieee (Files): Add m4/fmodf-ieee.m4.
22329         (configure.ac): Invoke gl_FUNC_FMODF_IEEE.
22330         * doc/posix-functions/fmodf.texi: Mention the problem on OSF/1.
22332         fmodf-ieee: Work around test failure on MSVC 9.
22333         * modules/fmodf-ieee (Depends-on): Add fmod-ieee.
22334         * doc/posix-functions/fmodf.texi: Mention the fmodf-ieee module.
22336         fmod-ieee: Work around test failures on OSF/1, mingw.
22337         * m4/fmod-ieee.m4: New file.
22338         * m4/fmod.m4 (gl_FUNC_FMOD): If gl_FUNC_FMOD_IEEE is present, test
22339         whether fmod works with zero arguments. Replace it if not.
22340         * lib/math.in.h (fmod): New declaration.
22341         * lib/fmod.c: New file.
22342         * m4/math_h.m4 (gl_MATH_H): Test whether fmod is declared.
22343         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMOD, REPLACE_FMOD.
22344         * modules/math (Makefile.am): Substitute GNULIB_FMOD, REPLACE_FMOD.
22345         * modules/fmod (Files): Add lib/fmod.c.
22346         (Depends-on): Add math, isinf, trunc, fma.
22347         (configure.ac): Arrange to compile lib/fmod.c if needed.
22348         * modules/fmod-ieee (Files): Add m4/fmod-ieee.m4, m4/minus-zero.m4,
22349         m4/signbit.m4.
22350         (configure.ac): Invoke gl_FUNC_FMOD_IEEE.
22351         * tests/test-math-c++.cc: Check the declaration of fmod.
22352         * doc/posix-functions/fmod.texi: Mention the fmod-ieee module.
22354         fmodl-ieee: Fix test failures.
22355         * lib/fmodl.c (fmodl): Treat Inf specially.
22356         * modules/fmodl (Depends-on): Add isinf.
22358         Tests for module 'fmodl-ieee'.
22359         * modules/fmodl-ieee-tests: New file.
22360         * tests/test-fmodl-ieee.c: New file.
22362         New module 'fmodl-ieee'.
22363         * modules/fmodl-ieee: New file.
22365         Tests for module 'fmod-ieee'.
22366         * modules/fmod-ieee-tests: New file.
22367         * tests/test-fmod-ieee.c: New file.
22369         New module 'fmod-ieee'.
22370         * modules/fmod-ieee: New file.
22372         Tests for module 'fmodf-ieee'.
22373         * modules/fmodf-ieee-tests: New file.
22374         * tests/test-fmodf-ieee.c: New file.
22375         * tests/test-fmod-ieee.h: New file.
22377         New module 'fmodf-ieee'.
22378         * modules/fmodf-ieee: New file.
22380 2012-02-27  Bruno Haible  <bruno@clisp.org>
22382         Tests for module 'rintl-ieee'.
22383         * modules/rintl-ieee-tests: New file.
22384         * tests/test-rintl-ieee.c: New file.
22386         New module 'rintl-ieee'.
22387         * modules/rintl-ieee: New file.
22389         Tests for module 'rint-ieee'.
22390         * modules/rint-ieee-tests: New file.
22391         * tests/test-rint-ieee.c: New file.
22393         New module 'rint-ieee'.
22394         * modules/rint-ieee: New file.
22396         Tests for module 'rintf-ieee'.
22397         * modules/rintf-ieee-tests: New file.
22398         * tests/test-rintf-ieee.c: New file.
22399         * tests/test-rint-ieee.h: New file.
22401         New module 'rintf-ieee'.
22402         * modules/rintf-ieee: New file.
22404 2012-02-26  Paul Eggert  <eggert@cs.ucla.edu>
22406         regex: re_search etc. should return -2 when memory exhausted
22407         This bug was uncovered when testing 'grep'.  Without the fix,
22408         re_search and friends return -1 when memory is exhausted, but -1
22409         means no match, and this causes grep to falsely report no-match
22410         instead of memory-exhaustion.  See
22411         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=13762>.
22412         * lib/regexec.c (re_search_stub): Return -2 (not -1) if there is
22413         trouble; this can occur if re_search_internal ran out of memory.
22415 2012-02-26  Bruno Haible  <bruno@clisp.org>
22417         modfl-ieee: Work around test failures on IRIX, OSF/1, mingw.
22418         * m4/modfl-ieee.m4: New file.
22419         * m4/modfl.m4 (gl_FUNC_MODFL): If gl_FUNC_MODFL_IEEE is present, test
22420         whether modfl works with Inf. Replace it if not.
22421         * lib/math.in.h (modfl): Override if REPLACE_MODFF is 1.
22422         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_MODFL.
22423         * modules/math (Makefile.am): Substitute REPLACE_MODFL.
22424         * modules/modfl (configure.ac): Consider REPLACE_MODFL.
22425         (Depends-on): Update dependencies.
22426         * modules/modfl-ieee (Files): Add m4/modfl-ieee.m4, m4/minus-zero.m4,
22427         m4/signbit.m4.
22428         (configure.ac): Invoke gl_FUNC_MODFL_IEEE.
22429         * doc/posix-functions/modfl.texi: Mention the modfl-ieee module.
22431         modfl-ieee: Fix dependencies.
22432         * modules/modfl-ieee (Depends-on): Add modf-ieee.
22434         modfl-ieee: Fix test failures.
22435         * lib/modfl.c (modfl): Treat NaN and Inf specially.
22436         * modules/modfl (Depends-on): Add isfinite, isinf.
22438         modff-ieee: Work around test failures on *BSD, IRIX, OSF/1, etc.
22439         * m4/modff-ieee.m4: New file.
22440         * m4/modff.m4 (gl_FUNC_MODFF): If gl_FUNC_MODFF_IEEE is present, test
22441         whether modff works with NaN and Inf. Replace it if not.
22442         * lib/math.in.h (modff): Override if REPLACE_MODFF is 1.
22443         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_MODFF.
22444         * modules/math (Makefile.am): Substitute REPLACE_MODFF.
22445         * modules/modff (configure.ac): Consider REPLACE_MODFF.
22446         (Depends-on): Update dependencies.
22447         * modules/modff-ieee (Files): Add m4/modff-ieee.m4, m4/minus-zero.m4,
22448         m4/signbit.m4.
22449         (Depends-on): Add modf-ieee.
22450         (configure.ac): Invoke gl_FUNC_MODFF_IEEE.
22451         * doc/posix-functions/modff.texi: Mention the modff-ieee module.
22453         modf-ieee: Work around test failures on *BSD, IRIX, OSF/1, Cygwin.
22454         * m4/modf-ieee.m4: New file.
22455         * m4/modf.m4 (gl_FUNC_MODF): If gl_FUNC_MODF_IEEE is present, test
22456         whether modf works with NaN and Inf. Replace it if not.
22457         * lib/math.in.h (modf): New declaration.
22458         * lib/modf.c: New file.
22459         * m4/math_h.m4 (gl_MATH_H): Test whether modf is declared.
22460         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODF, REPLACE_MODF.
22461         * modules/math (Makefile.am): Substitute GNULIB_MODF, REPLACE_MODF.
22462         * modules/modf (Files): Add lib/modf.c.
22463         (Depends-on): Add math, isfinite, trunc, isinf.
22464         (configure.ac): Addrange to compile lib/modf.c if needed.
22465         * modules/modf-ieee (Files): Add m4/modf-ieee.m4, m4/minus-zero.m4,
22466         m4/signbit.m4.
22467         (configure.ac): Invoke gl_FUNC_MODF_IEEE.
22468         * tests/test-math-c++.cc: Check the declaration of modf.
22469         * doc/posix-functions/modf.texi: Mention the modf-ieee module.
22471         Tests for module 'modfl-ieee'.
22472         * modules/modfl-ieee-tests: New file.
22473         * tests/test-modfl-ieee.c: New file.
22475         New module 'modfl-ieee'.
22476         * modules/modfl-ieee: New file.
22478         Tests for module 'modf-ieee'.
22479         * modules/modf-ieee-tests: New file.
22480         * tests/test-modf-ieee.c: New file.
22482         New module 'modf-ieee'.
22483         * modules/modf-ieee: New file.
22485         Tests for module 'modff-ieee'.
22486         * modules/modff-ieee-tests: New file.
22487         * tests/test-modff-ieee.c: New file.
22488         * tests/test-modf-ieee.h: New file.
22490         New module 'modff-ieee'.
22491         * modules/modff-ieee: New file.
22493 2012-02-26  Bruno Haible  <bruno@clisp.org>
22495         Tests for module 'fabsl-ieee'.
22496         * modules/fabsl-ieee-tests: New file.
22497         * tests/test-fabsl-ieee.c: New file.
22499         New module 'fabsl-ieee'.
22500         * modules/fabsl-ieee: New file.
22502         Tests for module 'fabs-ieee'.
22503         * modules/fabs-ieee-tests: New file.
22504         * tests/test-fabs-ieee.c: New file.
22506         New module 'fabs-ieee'.
22507         * modules/fabs-ieee: New file.
22509         Tests for module 'fabsf-ieee'.
22510         * modules/fabsf-ieee-tests: New file.
22511         * tests/test-fabsf-ieee.c: New file.
22512         * tests/test-fabs-ieee.h: New file.
22514         New module 'fabsf-ieee'.
22515         * modules/fabsf-ieee: New file.
22517 2012-02-26  Bruno Haible  <bruno@clisp.org>
22519         Tests for module 'fmal-ieee'.
22520         * modules/fmal-ieee-tests: New file.
22521         * tests/test-fmal-ieee.c: New file.
22523         New module 'fmal-ieee'.
22524         * modules/fmal-ieee: New file.
22526         Tests for module 'fma-ieee'.
22527         * modules/fma-ieee-tests: New file.
22528         * tests/test-fma-ieee.c: New file.
22530         New module 'fma-ieee'.
22531         * modules/fma-ieee: New file.
22533         Tests for module 'fmaf-ieee'.
22534         * modules/fmaf-ieee-tests: New file.
22535         * tests/test-fmaf-ieee.c: New file.
22536         * tests/test-fma-ieee.h: New file.
22538         New module 'fmaf-ieee'.
22539         * modules/fmaf-ieee: New file.
22541 2012-02-26  Bruno Haible  <bruno@clisp.org>
22543         Tests for module 'ldexpl-ieee'.
22544         * modules/ldexpl-ieee-tests: New file.
22545         * tests/test-ldexpl-ieee.c: New file.
22547         New module 'ldexpl-ieee'.
22548         * modules/ldexpl-ieee: New file.
22550         Tests for module 'ldexp-ieee'.
22551         * modules/ldexp-ieee-tests: New file.
22552         * tests/test-ldexp-ieee.c: New file.
22554         New module 'ldexp-ieee'.
22555         * modules/ldexp-ieee: New file.
22557         Tests for module 'ldexpf-ieee'.
22558         * modules/ldexpf-ieee-tests: New file.
22559         * tests/test-ldexpf-ieee.c: New file.
22560         * tests/test-ldexp-ieee.h: New file.
22562         New module 'ldexpf-ieee'.
22563         * modules/ldexpf-ieee: New file.
22565 2012-02-26  Bruno Haible  <bruno@clisp.org>
22567         Refactor frexp*-ieee tests.
22568         * tests/test-frexp-ieee.h: New file.
22569         * tests/test-frexpf-ieee.c: Include test-frexp-ieee.h.
22570         (main): Just call test_function.
22571         * tests/test-frexp-ieee.c: Include test-frexp-ieee.h.
22572         (main): Just call test_function.
22573         * tests/test-frexpl-ieee.c: Include test-frexp-ieee.h.
22574         (main): Just call test_function.
22575         * modules/frexpf-ieee-tests (Files): Add tests/test-frexp-ieee.h.
22576         * modules/frexp-ieee-tests (Files): Likewise.
22577         * modules/frexpl-ieee-tests (Files): Likewise.
22579         Tests for module 'frexpl-ieee'.
22580         * modules/frexpl-ieee-tests: New file.
22581         * tests/test-frexpl-ieee.c: New file.
22583         New module 'frexpl-ieee'.
22584         * modules/frexpl-ieee: New file.
22586         Tests for module 'frexp-ieee'.
22587         * modules/frexp-ieee-tests: New file.
22588         * tests/test-frexp-ieee.c: New file.
22590         New module 'frexp-ieee'.
22591         * modules/frexp-ieee: New file.
22593         Tests for module 'frexpf-ieee'.
22594         * modules/frexpf-ieee-tests: New file.
22595         * tests/test-frexpf-ieee.c: New file.
22597         New module 'frexpf-ieee'.
22598         * modules/frexpf-ieee: New file.
22600 2012-02-26  Bruno Haible  <bruno@clisp.org>
22602         roundl-ieee tests: More tests.
22603         * tests/test-roundl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
22604         (main): Add tests for [MX] shaded specification in POSIX.
22605         * modules/roundl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
22606         (Depends-on): Add isnanl-nolibm.
22608         round-ieee tests: More tests.
22609         * tests/test-round-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
22610         (main): Add tests for [MX] shaded specification in POSIX.
22611         * modules/round-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
22612         (Depends-on): Add isnand-nolibm.
22614         roundf-ieee tests: More tests.
22615         * tests/test-roundf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
22616         (main): Add tests for [MX] shaded specification in POSIX.
22617         * modules/roundf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
22618         (Depends-on): Add isnanf-nolibm.
22620         truncl-ieee tests: More tests.
22621         * tests/test-truncl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
22622         (main): Add tests for [MX] shaded specification in POSIX.
22623         * modules/truncl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
22624         (Depends-on): Add isnanl-nolibm.
22626         trunc-ieee tests: More tests.
22627         * tests/test-trunc-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
22628         (main): Add tests for [MX] shaded specification in POSIX.
22629         * modules/trunc-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
22630         (Depends-on): Add isnand-nolibm.
22632         truncf-ieee tests: More tests.
22633         * tests/test-truncf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
22634         (main): Add tests for [MX] shaded specification in POSIX.
22635         * modules/truncf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
22636         (Depends-on): Add isnanf-nolibm.
22638         ceill-ieee tests: More tests.
22639         * tests/test-ceill-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
22640         (main): Add tests for [MX] shaded specification in POSIX.
22641         * modules/ceill-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
22642         (Depends-on): Add isnanl-nolibm.
22644         ceil-ieee tests: More tests.
22645         * tests/test-ceil-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
22646         (main): Add tests for [MX] shaded specification in POSIX.
22647         * modules/ceil-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
22648         (Depends-on): Add isnand-nolibm.
22650         ceilf-ieee tests: More tests.
22651         * tests/test-ceilf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
22652         (main): Add tests for [MX] shaded specification in POSIX.
22653         * modules/ceilf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
22654         (Depends-on): Add isnanf-nolibm.
22656         floorl-ieee tests: More tests.
22657         * tests/test-floorl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
22658         (main): Add tests for [MX] shaded specification in POSIX.
22659         * modules/floorl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
22660         (Depends-on): Add isnanl-nolibm.
22662         floor-ieee tests: More tests.
22663         * tests/test-floor-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
22664         (main): Add tests for [MX] shaded specification in POSIX.
22665         * modules/floor-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
22666         (Depends-on): Add isnand-nolibm.
22668         floorf-ieee tests: More tests.
22669         * tests/test-floorf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
22670         (main): Add tests for [MX] shaded specification in POSIX.
22671         * modules/floorf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
22672         (Depends-on): Add isnanf-nolibm.
22674 2012-02-26  Bruno Haible  <bruno@clisp.org>
22676         fpieee: More comments.
22677         * m4/fpieee.m4 (gl_FP_IEEE): Add more comments.
22679 2012-02-25  Bruno Haible  <bruno@clisp.org>
22681         Tests for module 'log10l'.
22682         * modules/log10l-tests: New file.
22683         * tests/test-log10l.c: New file.
22684         * tests/test-math-c++.cc: Check the declaration of log10l.
22686         New module 'log10l'.
22687         * lib/math.in.h (log10l): New declaration.
22688         * lib/log10l.c: New file.
22689         * m4/log10l.m4: New file.
22690         * modules/log10l: New file.
22691         * m4/math_h.m4 (gl_MATH_H): Test whether log10l is declared.
22692         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10L, HAVE_LOG10L,
22693         HAVE_DECL_LOG10L.
22694         * modules/math (Makefile.am): Substitute GNULIB_LOG10L, HAVE_LOG10L,
22695         HAVE_DECL_LOG10L.
22696         * doc/posix-functions/log10l.texi: Mention the new module.
22698 2012-02-25  Bruno Haible  <bruno@clisp.org>
22700         fmodl, remainder*: Avoid wrong results due to rounding errors.
22701         * lib/fmodl.c (fmodl): Correct the result if it is not within the
22702         expected bounds.
22703         * lib/remainderf.c (remainderf): Likewise.
22704         * lib/remainder.c (remainder): Likewise.
22705         * lib/remainderl.c (remainderl): Likewise.
22707 2012-02-25  Bruno Haible  <bruno@clisp.org>
22709         Tests for module 'remainderl'.
22710         * modules/remainderl-tests: New file.
22711         * tests/test-remainderl.c: New file.
22712         * tests/test-math-c++.cc: Check the declaration of remainderl.
22714         New module 'remainderl'.
22715         * lib/math.in.h (remainderl): New declaration.
22716         * lib/remainderl.c: New file.
22717         * m4/remainderl.m4: New file.
22718         * modules/remainderl: New file.
22719         * m4/math_h.m4 (gl_MATH_H): Test whether remainderl is declared.
22720         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDERL, HAVE_REMAINDERL.
22721         * modules/math (Makefile.am): Substitute GNULIB_REMAINDERL,
22722         HAVE_REMAINDERL.
22723         * doc/posix-functions/remainderl.texi: Mention the new module.
22725 2012-02-25  Bruno Haible  <bruno@clisp.org>
22727         Tests for module 'remainderf'.
22728         * modules/remainderf-tests: New file.
22729         * tests/test-remainderf.c: New file.
22730         * tests/test-math-c++.cc: Check the declaration of remainderf.
22732         New module 'remainderf'.
22733         * lib/math.in.h (remainderf): New declaration.
22734         * lib/remainderf.c: New file.
22735         * m4/remainderf.m4: New file.
22736         * modules/remainderf: New file.
22737         * m4/math_h.m4 (gl_MATH_H): Test whether remainderf is declared.
22738         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDERF, HAVE_REMAINDERF.
22739         * modules/math (Makefile.am): Substitute GNULIB_REMAINDERF,
22740         HAVE_REMAINDERF.
22741         * doc/posix-functions/remainderf.texi: Mention the new module.
22743 2012-02-25  Bruno Haible  <bruno@clisp.org>
22745         remainder: Support for MSVC.
22746         * lib/math.in.h (remainder): New declaration.
22747         * lib/remainder.c: New file.
22748         * m4/remainder.m4: New file.
22749         * modules/remainder (Files): Add lib/remainder.c, m4/remainder.m4.
22750         (Depends-on): Add math, round, fma.
22751         (configure.ac): Use results of gl_FUNC_REMAINDER.
22752         * m4/math_h.m4 (gl_MATH_H): Test whether remainder is declared.
22753         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDER, HAVE_REMAINDER,
22754         HAVE_DECL_REMAINDER.
22755         * modules/math (Makefile.am): Substitute GNULIB_REMAINDER,
22756         HAVE_REMAINDER, HAVE_DECL_REMAINDER.
22757         * tests/test-math-c++.cc: Check the declaration of remainder.
22758         * doc/posix-functions/remainder.texi: Mention that the MSVC and IRIX 5
22759         problems are fixed.
22761 2012-02-25  Bruno Haible  <bruno@clisp.org>
22763         Tests for module 'fmodl'.
22764         * modules/fmodl-tests: New file.
22765         * tests/test-fmodl.c: New file.
22766         * tests/test-math-c++.cc: Check the declaration of fmodl.
22768         New module 'fmodl'.
22769         * lib/math.in.h (fmodl): New declaration.
22770         * lib/fmodl.c: New file.
22771         * m4/fmodl.m4: New file.
22772         * m4/math_h.m4 (gl_MATH_H): Test whether fmodl is declared.
22773         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODL, HAVE_FMODL,
22774         REPLACE_FMODL.
22775         * modules/math (Makefile.am): Substitute GNULIB_FMODL, HAVE_FMODL,
22776         REPLACE_FMODL.
22777         * modules/fmodl: New file.
22778         * doc/posix-functions/fmodl.texi: Mention the new module.
22780 2012-02-25  Bruno Haible  <bruno@clisp.org>
22782         Tests for module 'modfl'.
22783         * modules/modfl-tests: New file.
22784         * tests/test-modfl.c: New file.
22785         * tests/test-math-c++.cc: Check the declaration of modfl.
22787         New module 'modfl'.
22788         * lib/math.in.h (modfl): New declaration.
22789         * lib/modfl.c: New file.
22790         * m4/modfl.m4: New file.
22791         * m4/math_h.m4 (gl_MATH_H): Test whether modfl is declared.
22792         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFL, HAVE_MODFL.
22793         * modules/math (Makefile.am): Substitute GNULIB_MODFL, HAVE_MODFL.
22794         * modules/modfl: New file.
22795         * doc/posix-functions/modfl.texi: Mention the new module.
22797 2012-02-25  Bruno Haible  <bruno@clisp.org>
22799         Tests for module 'fabsl'.
22800         * modules/fabsl-tests: New file.
22801         * tests/test-fabsl.c: New file.
22802         * tests/test-math-c++.cc: Check the declaration of fabsl.
22804         New module 'fabsl'.
22805         * lib/math.in.h (fabsl): New declaration.
22806         * lib/fabsl.c: New file.
22807         * m4/fabsl.m4: New file.
22808         * m4/math_h.m4 (gl_MATH_H): Test whether fabsl is declared.
22809         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSL, HAVE_FABSL,
22810         REPLACE_FABSL.
22811         * modules/math (Makefile.am): Substitute GNULIB_FABSL, HAVE_FABSL,
22812         REPLACE_FABSL.
22813         * modules/fabsl: New file.
22814         * doc/posix-functions/fabsl.texi: Mention the new module.
22816 2012-02-25  Bruno Haible  <bruno@clisp.org>
22818         fabs tests: More tests.
22819         * tests/test-fabs.c: Include <string.h>, minus-zero.h.
22820         (zero): New variable.
22821         (main): Add tests for signed zero.
22822         * modules/fabs-tests (Files): Add tests/minus-zero.h.
22824         fabsf tests: More tests.
22825         * tests/test-fabsf.c: Include <string.h>, minus-zero.h.
22826         (zero): New variable.
22827         (main): Add tests for signed zero.
22828         * modules/fabsf-tests (Files): Add tests/minus-zero.h.
22830 2012-02-24  Bruno Haible  <bruno@clisp.org>
22832         atanl: Provide function definition on MSVC.
22833         * m4/atanl.m4 (gl_FUNC_ATANL): Test also whether atanl can be used as a
22834         function pointer.
22835         * lib/math.in.h (atanl): Undefine if it does not exist as a function.
22837 2012-02-24  Bruno Haible  <bruno@clisp.org>
22839         acosl: Provide function definition on MSVC.
22840         * m4/acosl.m4 (gl_FUNC_ACOSL): Test also whether acosl can be used as a
22841         function pointer.
22842         * lib/math.in.h (acosl): Undefine if it does not exist as a function.
22844 2012-02-24  Bruno Haible  <bruno@clisp.org>
22846         asinl: Provide function definition on MSVC.
22847         * m4/asinl.m4 (gl_FUNC_ASINL): Test also whether asinl can be used as a
22848         function pointer.
22849         * lib/math.in.h (asinl): Undefine if it does not exist as a function.
22851 2012-02-24  Bruno Haible  <bruno@clisp.org>
22853         tanl: Provide function definition on MSVC.
22854         * m4/tanl.m4 (gl_FUNC_TANL): Test also whether tanl can be used as a
22855         function pointer.
22856         * lib/math.in.h (tanl): Undefine if it does not exist as a function.
22858 2012-02-24  Bruno Haible  <bruno@clisp.org>
22860         cosl: Provide function definition on MSVC.
22861         * m4/cosl.m4 (gl_FUNC_COSL): Test also whether cosl can be used as a
22862         function pointer.
22863         * lib/math.in.h (cosl): Undefine if it does not exist as a function.
22865 2012-02-24  Bruno Haible  <bruno@clisp.org>
22867         sinl: Provide function definition on MSVC.
22868         * m4/sinl.m4 (gl_FUNC_SINL): Test also whether sinl can be used as a
22869         function pointer.
22870         * lib/math.in.h (sinl): Undefine if it does not exist as a function.
22872 2012-02-24  Bruno Haible  <bruno@clisp.org>
22874         logl: Provide function definition on MSVC.
22875         * m4/logl.m4 (gl_FUNC_LOGL): Test also whether logl can be used as a
22876         function pointer.
22877         * lib/math.in.h (logl): Undefine if it does not exist as a function.
22879 2012-02-24  Bruno Haible  <bruno@clisp.org>
22881         expl: Provide function definition on MSVC.
22882         * m4/expl.m4 (gl_FUNC_EXPL): Test also whether expl can be used as a
22883         function pointer.
22884         * lib/math.in.h (expl): Undefine if it does not exist as a function.
22886 2012-02-24  Bruno Haible  <bruno@clisp.org>
22888         sqrtl: Provide function definition on MSVC.
22889         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Test also whether sqrtl can be used as
22890         a function pointer.
22891         * lib/math.in.h (sqrtl): Undefine if it does not exist as a function.
22893 2012-02-24  Bruno Haible  <bruno@clisp.org>
22895         ceill: Provide function definition on MSVC.
22896         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Test also whether ceill can be
22897         used as a function pointer.
22898         * lib/math.in.h (ceill): Undefine if it is not declared as a function.
22900 2012-02-24  Bruno Haible  <bruno@clisp.org>
22902         floorl: Provide function definition on MSVC.
22903         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Test also whether floorl can be
22904         used as a function pointer.
22905         * lib/math.in.h (floorl): Undefine if it is not declared as a function.
22907 2012-02-24  Bruno Haible  <bruno@clisp.org>
22909         ceilf: Provide function definition on MSVC.
22910         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Test also whether ceilf can be
22911         used as a function pointer.
22912         * lib/math.in.h (ceilf): Undefine if it is not declared as a function.
22914 2012-02-24  Bruno Haible  <bruno@clisp.org>
22916         floorf: Provide function definition on MSVC.
22917         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Test also whether floorf can be
22918         used as a function pointer.
22919         * lib/math.in.h (floorf): Undefine if it is not declared as a function.
22921 2012-02-24  Paul Eggert  <eggert@cs.ucla.edu>
22923         stdnoreturn: new module
22924         This implements a replacement for C11's <stdnoreturn.h>.
22925         * doc/gnulib.texi (Header File Substitutes): Add stdnoreturn.
22926         * doc/posix-headers/stdnoreturn.texi, lib/stdnoreturn.in.h:
22927         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
22928         * tests/test-stdnoreturn.c: New files.
22930 2012-02-24  Stanislav Brabec  <sbrabec@suse.cz>  (tiny change)
22932         regex: fix false multibyte matches in some regular expressions
22933         See <http://sourceware.org/bugzilla/show_bug.cgi?id=13637>
22934         and <http://sourceware.org/ml/libc-alpha/2012-02/msg00521.html>.
22935         * lib/regex_internal.c (re_string_skip_chars):
22936         Fix miscomputation of remain_len that may cause incomplete
22937         multi-byte character and false match.
22939 2012-02-24  Jim Meyering  <meyering@redhat.com>
22941         maint.mk: tell sc_prohibit_strcmp to ding "0 == strcmp (...)", too
22942         * top/maint.mk (sc_prohibit_strcmp): Also prohibit uses of strcmp
22943         uses with "==" *before* the call, e.g., 0 == strcmp (...)
22944         Remove now-unnecessary str''cmp obfuscation.
22945         Suggested by Akim Demaille.
22947 2012-02-24  Bruno Haible  <bruno@clisp.org>
22949         streq: Rename macro.
22950         * lib/streq.h (STREQ_OPT): Renamed from STREQ.
22951         * NEWS: Mention the change.
22952         * lib/mbrtowc.c (mbrtowc): Update.
22953         * lib/uniwidth/cjk.h (is_cjk_encoding): Update.
22954         * lib/wcwidth.c (wcwidth): Update.
22955         Suggested by Akim Demaille and Jim Meyering.
22957 2012-02-20  Paul Eggert  <eggert@cs.ucla.edu>
22959         regex: fix typo in definition of MIN
22960         * lib/regex_internal.h (MIN): Fix typo.  Problem reported by Thomas
22961         Schwinge in <http://sourceware.org/bugzilla/show_bug.cgi?id=11638#c4>.
22963 2012-02-19  Paul Eggert  <eggert@cs.ucla.edu>
22964             Bruno Haible  <bruno@clisp.org>
22966         acl: Don't use ACL_CNT and similar ops, since they are unreliable.
22967         * lib/file-has-acl.c (file_has_acl) [HP-UX, NonStop Kernel]: Read the
22968         entries into a stack-allocated buffer directly.
22969         * lib/copy-acl.c (qcopy_acl) [HP-UX, NonStop Kernel]: Likewise.
22971 2012-02-19  Paul Eggert  <eggert@cs.ucla.edu>
22972             Bruno Haible  <bruno@clisp.org>
22974         acl: Don't use GETACLCNT and similar ops, since they are unreliable.
22976          - There were several instances of this pattern:
22978              for (;;) {
22979                n = acl (f, GETACLCNT, 0, NULL);
22980                [ allocate an array A of size N ]
22981                if (acl (f, GETACL, n, a) == n)
22982                  break;
22983              }
22985            This loop might never terminate if some other process is constantly
22986            manipulating the file's ACL.  The loop should be rewritten to
22987            terminate.
22989          - The acl (... GETACLNT ...) call is merely an optimization; its value
22990            is merely a hint as to how big to make the array.  A better
22991            optimization is to avoid the acl (... GETACLNT ...)  call entirely,
22992            and just guess a reasonably-big size, growing the size and trying
22993            again if it's not large enough.  This guarantees termination, and
22994            saves a system call.
22996         * lib/acl-internal.h: Include <limits.h>.
22997         (MIN, SIZE_MAX): New macros.
22998         * lib/file-has-acl.c (file_has_acl) [Solaris]: Read the entries into
22999         a stack-allocated buffer, and use malloc if it does not fit. Don't
23000         use GETACLCNT.
23001         * lib/set-mode-acl.c (qset_acl) [Solaris]: Likewise.
23003 2012-02-19  Bruno Haible  <bruno@clisp.org>
23005         acl: Fix endless loop on Solaris with vxfs.
23006         * lib/file-has-acl.c (file_has_acl) [Solaris]: Treat a failing
23007         acl()/facl() call for ACE_GETACL like a failing call for ACE_GETACLCNT.
23008         * lib/set-mode-acl.c (qset_acl) [Solaris]: Likewise.
23009         * lib/copy-acl.c (qcopy_acl)[Solaris]: Likewise.
23010         * tests/test-sameacls.c (main)[Solaris]: Likewise.
23011         Reported by Bill Jones in
23012         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=10639>, via Paul Eggert.
23014 2012-02-19  Bruno Haible  <bruno@clisp.org>
23016         acl: Fix copy-acl test failure on Solaris 11.0.
23017         * lib/file-has-acl.c (NEW_ACE_WRITEA_DATA): New macro.
23018         (acl_ace_nontrivial): Relax the restrictions on access_masks[] so
23019         that this function returns 0 in some more cases.
23021 2012-02-19  Bruno Haible  <bruno@clisp.org>
23023         acl: Update doc references.
23024         * doc/acl-resources.txt: Update links to Solaris documentation.
23026 2012-02-19  Bruno Haible  <bruno@clisp.org>
23028         Fix test failure in many locales on Solaris 11.
23029         * tests/test-pipe-filter-gi1.c (main): Don't use range expression in
23030         'tr' arguments.
23031         * tests/test-pipe-filter-ii1.c (main): Likewise.
23032         * build-aux/bootstrap (check_versions): Run 'tr' command with range
23033         expressions in the C locale.
23034         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
23035         * m4/host-os.m4 (gl_HOST_OS): Likewise.
23037 2012-02-19  Bruno Haible  <bruno@clisp.org>
23039         gnulib-tool: Improve usage message.
23040         * gnulib-tool (func_usage): Move doc of --help and --version to the
23041         section "Operation modes".
23043 2012-02-18  Reuben Thomas  <rrt@sc3d.org>
23045         README-release: make it easier to execute commands
23046         * top/README-release: break commands out on to separate lines.
23048 2012-02-16  Stefano Lattarini  <stefano.lattarini@gmail.com>
23050         GNUmakefile: simplify detection of unconfigured trees
23051         * top/GNUmakefile: Use $(wildcard) instead of $(shell) to determine
23052         whether the tree make is being run from is already configured or
23053         not.  Related simplifications.
23055 2012-02-13  Simon Josefsson  <simon@josefsson.org>
23057         * gnulib-tool (func_usage): Document --help and --version.
23059 2012-02-11  Jim Meyering  <meyering@redhat.com>
23061         bootstrap: don't exit 0 upon gnulib-tool failure
23062         * build-aux/bootstrap (gnulib_tool): If gnulib-tool fails, exit with
23063         its exit status, not 0.
23065 2011-12-19  Reuben Thomas  <rrt@sc3d.org>
23067         README-release: various improvements
23068         * top/README-release: Give a command to push changes for the
23069         release.  Add "distcheck" to list of other pre-release checks.
23070         Fix instance of "make stable" which should be "make TYPE".
23072 2012-02-09  Paul Eggert  <eggert@cs.ucla.edu>
23074         maint: replace FSF snail-mail addresses with URLs
23075         * config/argz.mk, lib/accept4.c, lib/alignof.h, lib/alloca.in.h:
23076         * lib/alphasort.c, lib/arcfour.c, lib/arcfour.h, lib/arctwo.c:
23077         * lib/arctwo.h, lib/argz.c, lib/arpa_inet.in.h, lib/asnprintf.c:
23078         * lib/asprintf.c, lib/assert.in.h, lib/base32.c, lib/base32.h:
23079         * lib/base64.c, lib/base64.h, lib/c-ctype.c, lib/c-ctype.h:
23080         * lib/c-strcase.h, lib/c-strcasecmp.c, lib/c-strncasecmp.c:
23081         * lib/check-version.c, lib/check-version.h, lib/config.charset:
23082         * lib/ctype.in.h, lib/des.c, lib/des.h, lib/dup3.c, lib/errno.in.h:
23083         * lib/float+.h, lib/fnmatch.c, lib/fnmatch.in.h, lib/fnmatch_loop.c:
23084         * lib/fseeko.c, lib/gai_strerror.c, lib/gc-gnulib.c:
23085         * lib/gc-libgcrypt.c, lib/gc-pbkdf2-sha1.c, lib/gc.h:
23086         * lib/getaddrinfo.c, lib/getdelim.c, lib/getfilecon.c, lib/getline.c:
23087         * lib/getlogin_r.c, lib/getpass.c, lib/getpass.h, lib/gettext.h:
23088         * lib/gettimeofday.c, lib/glob.in.h, lib/glthread/cond.c:
23089         * lib/glthread/cond.h, lib/glthread/lock.c, lib/glthread/lock.h:
23090         * lib/glthread/thread.c, lib/glthread/thread.h:
23091         * lib/glthread/threadlib.c, lib/glthread/yield.h, lib/hmac-md5.c:
23092         * lib/hmac-sha1.c, lib/hmac.h, lib/iconv.c, lib/iconv.in.h:
23093         * lib/iconv_close.c, lib/iconv_open.c, lib/inet_ntop.c, lib/isfinite.c:
23094         * lib/isinf.c, lib/iswblank.c, lib/langinfo.in.h, lib/link.c:
23095         * lib/localcharset.c, lib/localcharset.h, lib/lseek.c, lib/malloc.c:
23096         * lib/malloca.c, lib/malloca.h, lib/md2.c, lib/md2.h, lib/md4.c:
23097         * lib/md4.h, lib/md5.c, lib/md5.h, lib/memmem.c, lib/mempcpy.c:
23098         * lib/memset.c, lib/memxor.c, lib/memxor.h, lib/minmax.h, lib/mktime.c:
23099         * lib/msvc-inval.c, lib/msvc-inval.h, lib/msvc-nothrow.c:
23100         * lib/msvc-nothrow.h, lib/netdb.in.h, lib/netinet_in.in.h, lib/nproc.c:
23101         * lib/nproc.h, lib/obstack_printf.c, lib/pathmax.h, lib/pipe.c:
23102         * lib/pipe2.c, lib/poll.c, lib/poll.in.h, lib/printf-args.c:
23103         * lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h:
23104         * lib/pselect.c, lib/pthread.in.h, lib/pty-private.h, lib/pty.in.h:
23105         * lib/read-file.c, lib/read-file.h, lib/ref-add.sin, lib/ref-del.sin:
23106         * lib/regcomp.c, lib/regex.c, lib/regex.h, lib/regex_internal.c:
23107         * lib/regex_internal.h, lib/regexec.c, lib/rijndael-alg-fst.c:
23108         * lib/rijndael-alg-fst.h, lib/rijndael-api-fst.c:
23109         * lib/rijndael-api-fst.h, lib/rint.c, lib/rintf.c, lib/rintl.c:
23110         * lib/round.c, lib/roundf.c, lib/roundl.c, lib/scandir.c, lib/select.c:
23111         * lib/sha1.c, lib/sha1.h, lib/size_max.h, lib/snprintf.c:
23112         * lib/stdalign.in.h, lib/stdarg.in.h, lib/stdbool.in.h:
23113         * lib/stddef.in.h, lib/stdint.in.h, lib/stdio.in.h, lib/str-kmp.h:
23114         * lib/str-two-way.h, lib/strcasecmp.c, lib/strcasestr.c, lib/strdup.c:
23115         * lib/striconv.c, lib/striconv.h, lib/string.in.h, lib/strings.in.h:
23116         * lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c, lib/strpbrk.c:
23117         * lib/strptime.c, lib/strsep.c, lib/strstr.c, lib/strverscmp.c:
23118         * lib/sys_file.in.h, lib/sys_ioctl.in.h, lib/sys_select.in.h:
23119         * lib/sys_socket.in.h, lib/sys_stat.in.h, lib/sys_time.in.h:
23120         * lib/sys_times.in.h, lib/sys_types.in.h, lib/sys_uio.in.h:
23121         * lib/sys_utsname.in.h, lib/sys_wait.in.h, lib/tcgetsid.c:
23122         * lib/termios.in.h, lib/time.in.h, lib/time_r.c, lib/timegm.c:
23123         * lib/times.c, lib/unictype/3level.h, lib/unictype/3levelbit.h:
23124         * lib/unistd.in.h, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c:
23125         * lib/vsnprintf.c, lib/waitpid.c, lib/wchar.in.h, lib/wctype.in.h:
23126         * lib/xsize.h, tests/test-closein.c, tests/test-des.c:
23127         * tests/test-fclose.c, tests/test-fgetc.c, tests/test-filevercmp.c:
23128         * tests/test-fputc.c, tests/test-fread.c, tests/test-fwrite.c:
23129         * tests/test-gc-arcfour.c, tests/test-gc-arctwo.c, tests/test-gc-des.c:
23130         * tests/test-gc-hmac-md5.c, tests/test-gc-hmac-sha1.c:
23131         * tests/test-gc-md2.c, tests/test-gc-md4.c, tests/test-gc-md5.c:
23132         * tests/test-gc-pbkdf2-sha1.c, tests/test-gc-rijndael.c:
23133         * tests/test-gc-sha1.c, tests/test-gc.c, tests/test-getdelim.c:
23134         * tests/test-getline.c, tests/test-getndelim2.c, tests/test-md2.c:
23135         * tests/test-md4.c, tests/test-parse-datetime.c, tests/test-perror.c:
23136         * tests/test-perror2.c, tests/test-pipe.c, tests/test-pipe2.c:
23137         * tests/test-poll.c, tests/test-quotearg-simple.c:
23138         * tests/test-quotearg.c, tests/test-quotearg.h:
23139         * tests/test-round-ieee.c, tests/test-round1.c:
23140         * tests/test-roundf-ieee.c, tests/test-roundf1.c:
23141         * tests/test-roundl-ieee.c, tests/test-roundl.c:
23142         * tests/test-safe-alloc.c, tests/test-sigpipe.c:
23143         * tests/test-spawn-pipe-child.c, tests/test-spawn-pipe-main.c:
23144         * tests/test-strerror.c, tests/test-strerror_r.c:
23145         * tests/test-strsignal.c, tests/test-strverscmp.c:
23146         * tests/test-xmemdup0.c:
23147         Replace FSF snail mail addresses with URLs, as per GNU coding
23148         standards.  See glibc bug
23149         <http://sourceware.org/bugzilla/show_bug.cgi?id=13673>.
23151 2011-12-22  Reuben Thomas  <rrt@sc3d.org>
23153         README-release: capitalize a word and split a line
23154         * top/README-release: Fix punctuation and spacing.
23156 2012-02-08  Akim Demaille  <demaille@gostai.com>
23158         fatal-signal: use C prototypes (with explicit void).
23159         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
23160         (init_fatal_signal_set, block_fatal_signals): Fix signatures.
23162 2012-02-07  Paul Eggert  <eggert@cs.ucla.edu>
23164         regex: spelling fix
23165         * lib/regexec.c: spelling fix
23167         regex: rely on stdint.h for SIZE_MAX
23168         * lib/regex_internal.h (SIZE_MAX): Remove; stdint.h supplies this now.
23170 2012-02-07  Paul Eggert  <eggert@cs.ucla.edu>
23172         regex: merge glibc changes
23174         * lib/regcomp.c (init_dfa): Tighten overflow checks to test
23175         for IDX_MAX too, since IDX_MAX can be much less than SIZE_MAX.
23176         (init_word_char): Work even if bitset words are not exactly 32 or
23177         64 bits wide.  Don't assume there are no padding bits.
23178         * lib/regex.c [_LIBC]: Do not include <config.h>.
23179         [!_LIBC]: Add pragmas to ignore -Wsuggest-attributes=pure
23180         and -Wtype-limits.
23181         * lib/regex.h (__USE_GNU): Renamed from __USE_GNU_REGEX, to avoid
23182         needless disagreement with glibc.  All uses changed.  Define it to
23183         1 only if _GNU_SOURCE, to match glibc.
23184         (_REG_RM_NAME): Remove; no longer needed, since the names in
23185         question are now all protected by __USE_GNU.
23186         (_REG_RE_NAME): Remove; replaced by glibc's __REPB_PREFIX.
23187         (REG_TRANSLATE_TYPE): Remove; replaced by glibc's __RE_TRANSLATE_TYPE.
23188         * lib/regex_internal.h (MIN): New macro.
23190         2012-01-03 Ulrich Drepper <drepper@gmail.com>
23191         * lib/regcomp.c (init_word_char): Optimize regex a bit.
23193         2011-12-30 Jakub Jelinek <jakub@redhat.com>
23194         * lib/regex_internal.c (re_string_fetch_byte_case):
23195         Fix up regcomp/regexec.  The problem is that parse_bracket_symbol
23196         is miscompiled, and it turns out it is because of an incorrect
23197         attribute on re_string_fetch_byte_case.  Unlike
23198         re_string_peek_byte_case, this one is really not pure, it modifies
23199         memory (increments pstr->cur_idx), and with the pure attribute GCC
23200         assumed it doesn't and it cached the presumed value of
23201         regexp->cur_idx in a variable across the
23202          for (;; ++i)
23203            {
23204              if (i >= BRACKET_NAME_BUF_SIZE)
23205                return REG_EBRACK;
23206              if (token->type == OP_OPEN_CHAR_CLASS)
23207                ch = re_string_fetch_byte_case (regexp);
23208              else
23209                ch = re_string_fetch_byte (regexp);
23210              if (re_string_eoi(regexp))
23211                return REG_EBRACK;
23212              if (ch == delim && re_string_peek_byte (regexp, 0) == ']')
23213                break;
23214              elem->opr.name[i] = ch;
23215            }
23217         2011-11-29 Andreas Schwab <schwab@redhat.com>
23218         * lib/regcomp.c (build_equiv_class):
23219         Fix access after end of search string in regex matcher.
23221         2011-11-12 Ulrich Drepper <drepper@redhat.com>
23222         * lib/regex_internal.c, lib/regex_internal.h: Fix warnings in regex.
23224         2011-10-12 Ulrich Drepper <drepper@redhat.com>
23225         * lib/regcomp.c (parse_branch): One more regex memory leak fixed.
23227         2011-10-11 Ulrich Drepper <drepper@redhat.com>
23228         * lib/regcomp.c (parse_branch, parse_sub_exp):
23229         More regex memory leak fixes and tests.
23230         (parse_sub_exp, parse_bracket_exp):
23231         Fix memory leak for some invalid regular expressions.
23233         2011-05-28 Ulrich Drepper <drepper@gmail.com>
23234         * lib/regex_internal.c, lib/regexec.c:
23235         Fix unnecessary overallocation due to incomplete character.  When
23236         incomplete characters are found at the end of a string the code
23237         ran amok and allocated lots of memory.  Stricter limits are now in
23238         place.
23240         2011-05-20 Reuben Thomas <rrt@sc3d.org>
23241         * lib/regex.h: Update documentation.
23243         2011-05-16 Aharon Robbins <arnold@skeeve.com>
23244         * lib/regex.h: Update RE_SYNTAX*_AWK constants.
23246         2010-05-05 Andreas Schwab <schwab@redhat.com>
23247         * lib/regexec.c (find_collation_sequence_value):
23248         Fix lookup of collation sequence value during regexp matching.
23250         2010-01-22 Ulrich Drepper <drepper@redhat.com>
23251         * lib/regex_internal.c (re_dfa_add_node): Extend overflow detection.
23253         2008-01-16 Ulrich Drepper <drepper@redhat.com>
23254         * lib/regex.h: Cleanup namespace.
23256         2007-11-26 Ulrich Drepper <drepper@redhat.com>
23257         * lib/regex.h (REG_ENOSYS): Define REG_ENOSYS also for __USE_XOPEN2K.
23259         2007-08-26 Ulrich Drepper <drepper@redhat.com>
23260         * lib/regex_internal.h: Prevent some declarations and definitions
23261         to be seen when used in tests.
23263         2005-05-06 Ulrich Drepper <drepper@redhat.com>
23264         * lib/regex_internal.h: Include bits/libc-lock.h or define dummy
23265         __libc_lock_* macros if not _LIBC.
23266         (struct re_dfa_t): Add lock.
23268 2012-02-07  Eric Blake  <eblake@redhat.com>
23270         maint.mk: also prohibit lower-case @var@
23271         * top/maint.mk (sc_makefile_at_at_check): Enhance check to cover
23272         lower case, like @top_srcdir@.
23274 2012-02-04  Eric Blake  <eblake@redhat.com>
23276         canonicalize: avoid uninitialized memory use
23277         * lib/canonicalize-lgpl.c (__realpath): Avoid possibility of
23278         random '/' left in dest.
23279         * lib/canonicalize.c (canonicalize_filename_mode): Likewise.
23281 2012-02-04  Bruno Haible  <bruno@clisp.org>
23283         isatty: Fix test failure of ptsname_r on native Windows.
23284         * lib/isatty.c (_isatty_nothrow): Upon exception, return 0, not -1,
23285         and don't set errno.
23286         (isatty): Test first whether fd is valid. Set errno when returning 0.
23288 2012-02-04  Bruno Haible  <bruno@clisp.org>
23290         spawn-pipe tests: Fix a NULL program name in a diagnostic.
23291         * tests/test-spawn-pipe-main.c: Include progname.h.
23292         (main): Invoke set_program_name.
23293         * modules/spawn-pipe-tests (Depends-on): Add progname.
23295         nonblocking-socket tests: Fix a NULL program name in a diagnostic.
23296         * tests/test-nonblocking-socket-main.c: Include progname.h.
23297         (main): Invoke set_program_name.
23298         * modules/nonblocking-socket-tests (Depends-on): Add progname.
23300         nonblocking-pipe tests: Fix a NULL program name in a diagnostic.
23301         * tests/test-nonblocking-pipe-main.c: Include progname.h.
23302         (main): Invoke set_program_name.
23303         * modules/nonblocking-pipe-tests (Depends-on): Add progname.
23305 2012-02-04  Eric Blake  <eblake@redhat.com>
23307         canonicalize-lgpl: fix // handling
23308         * lib/canonicalize-lgpl.c (__realpath): Don't convert /// to //.
23310         canonicalize: fix // handling
23311         * lib/canonicalize.c (canonicalize_filename_mode): Don't convert
23312         /// to //, since only // is special.
23314 2012-02-04  Bruno Haible  <bruno@clisp.org>
23316         ioctl: Fix test failure on native Windows.
23317         * lib/ioctl.c: Include msvc-nothrow.h.
23318         (primary_ioctl): If fd is not a valid handle, set errno to EBADF.
23320 2012-02-04  Bruno Haible  <bruno@clisp.org>
23322         fsync: Avoid test failure on native Windows.
23323         * lib/fsync.c (fsync) [Windows]: Don't fail if the handle is merely
23324         read-only.
23326 2012-02-04  Bruno Haible  <bruno@clisp.org>
23328         sys_select: Avoid syntax error on OpenBSD 5.0.
23329         * lib/sys_select.in.h [OpenBSD]: When /usr/include/pthread.h is
23330         currently being included, just include the system's <sys/select.h>.
23332 2012-02-04  Bruno Haible  <bruno@clisp.org>
23334         sys_select: Avoid syntax error on OpenBSD 5.0.
23335         * lib/sys_select.in.h: Include <signal.h> only after the include_next
23336         <sys/select.h>, not before.
23337         Reported by Jiri B <jirib@devio.us>.
23339 2012-02-04  Bruno Haible  <bruno@clisp.org>
23341         get-rusage-as, get-rusage-data tests: Avoid test failure with gcc-4.7.
23342         * tests/test-get-rusage-as.c (main): Assign the malloc() results to
23343         global variables.
23344         * tests/test-get-rusage-data.c (main): Likewise.
23345         Reported by Jim Meyering.
23347 2012-02-04  Bruno Haible  <bruno@clisp.org>
23349         stdioext: Fix last commit.
23350         * lib/fwritable.c [EPLAN9]: Include <fcntl.h>.
23352 2012-02-03  Bruno Haible  <bruno@clisp.org>
23354         stdioext: Add tentative support for Plan9.
23355         * lib/stdio-impl.h: Include <errno.h>.
23356         * lib/fseterr.c (fseterr) [EPLAN9]: Add conditional code.
23357         * lib/freadable.c (freadable): Likewise.
23358         * lib/fwritable.c (fwritable): Likewise.
23359         * lib/fbufmode.c (fbufmode): Likewise.
23360         * lib/freading.c (freading): Likewise.
23361         * lib/fwriting.c (fwriting): Likewise.
23362         * lib/freadptr.c (freadptr): Likewise.
23363         * lib/freadseek.c (freadptrinc): Likewise.
23364         * lib/freadahead.c (freadahead): Likewise.
23365         * lib/fpurge.c (fpurge): Likewise.
23366         * lib/fseeko.c (rpl_fseeko): Likewise.
23367         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Plan9.
23368         Reported by Jens Staal <staal1978@gmail.com>.
23370 2012-02-02  Jim Meyering  <meyering@redhat.com>
23372         file-has-acl: suppress a warning from gcc -Wsuggest-attribute=const
23373         * lib/file-has-acl.c (file_has_acl): This function (for some #ifdefs)
23374         would evoke a new gcc warning.  Given all of the #ifdefs, it is better
23375         not even to try to add the attribute.  Instead, add a pragma to suppress
23376         the suggestion/warning.
23378 2012-01-31  Karl Berry  <karl@gnu.org>
23380         setstate doc: typo.
23381         * doc/posix-functions/setstate.texi (setstate): { not (.
23383 2012-01-31  Bruno Haible  <bruno@clisp.org>
23385         popen: Make more robust on Windows.
23386         * lib/popen.c: On native Windows, use the _popen based code even if
23387         HAVE_POPEN is set.
23388         * doc/posix-functions/popen.texi: Mention necessity of COMSPEC
23389         environment variable on native Windows.
23391 2012-01-30  Bruno Haible  <bruno@clisp.org>
23393         pclose: Fix typo.
23394         * lib/stdio.in.h (pclose): Fix typo in warning message.
23396 2012-01-30  Bruno Haible  <bruno@clisp.org>
23398         doc about getlogin_r, setstate.
23399         * doc/posix-functions/getlogin_r.texi: List the incompatible
23400         declaration problem under "not fixed by gnulib".
23401         * doc/posix-functions/setstate.texi: Mention incompatible declaration
23402         problem on Solaris 11 and other platforms.
23404 2012-01-30  Chuanchang Jia  <chuanchang.jia@gmail.com>  (tiny change)
23405             Bruno Haible  <bruno@clisp.org>
23407         poll tests: Make test more robust.
23408         * tests/test-poll.c: Include macros.h.
23409         (test_accept_first, test_pair, test_socket_pair, test_pipe): Verify
23410         return value of various I/O operations.
23411         * modules/poll-tests (Files): Add tests/macros.h.
23413 2012-01-30  Bruno Haible  <bruno@clisp.org>
23415         sys_stat: Fix support for mingw64 and MSVC.
23416         * lib/sys_stat.in.h (stat) [AIX]: Don't redefine 'stat' if the system
23417         header files already do it.
23418         (stat) [mingw, msvc]: Redefine the symbol to which stat is defined, not
23419         stat itself.
23420         Reported by Marc-André Lureau <marcandre.lureau@redhat.com>.
23422 2012-01-30  Bruno Haible  <bruno@clisp.org>
23424         wcwidth: Work around bug in UTF-8 locale on OpenBSD 5.0.
23425         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test also wcwidth of U+05B0.
23426         * doc/posix-functions/wcwidth.texi: Mention the OpenBSD 5.0 bug.
23428 2012-01-29  Bruno Haible  <bruno@clisp.org>
23430         quotearg: Fix test failure on MacOS X 10.5.
23431         * tests/test-quotearg-simple.c: Include localcharset.h.
23432         (main): If the locale encoding is not ASCII, bypass the tests of
23433         locale_quoting_style and clocale_quoting_style.
23434         * modules/quotearg-tests (Depends-on): Add 'localcharset'.
23436 2012-01-29  Jim Meyering  <meyering@redhat.com>
23438         maint.mk: sc_prohibit_canonicalize_without_use: avoid false positive
23439         * top/maint.mk (sc_prohibit_canonicalize_without_use): Also
23440         detect uses of canonicalize_file_name.
23442 2012-01-28  Bruno Haible  <bruno@clisp.org>
23444         test-framework-sh: Fix test failure with AIX 7.1 diff.
23445         * tests/init.sh (compare_): Don't use 'diff -u' if it inserts a space
23446         in column 1, like 'diff -c' does.
23447         * tests/test-init.sh (test_compare): Don't repeat the test from init.sh
23448         whether 'diff -u' is used. Instead, test whether the output contains
23449         some '@' character.
23451 2012-01-28  Paul Eggert  <eggert@cs.ucla.edu>
23453         strtoimax: eliminate need for stdint.h, inttypes.h checks
23454         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't use
23455         gl_AC_HEADER_STDINT_H or gl_AC_HEADER_INTTYPES_H.  This reduces
23456         the prerequisites for a recently-introduced strtoimax test.
23457         I guess this might cause strtoimax to be replaced when not
23458         strictly necessary on older hosts, but this shouldn't introduce
23459         any bugs and it should make Emacs 'configure' faster on typical
23460         modern hosts.  Problem discovered when importing the latest gnulib
23461         to an Emacs test version.
23462         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4.
23464 2012-01-28  Bruno Haible  <bruno@clisp.org>
23466         sys_time: Override 'struct timeval' on some native Windows platforms.
23467         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Test whether tv_sec
23468         has the right type. Set REPLACE_STRUCT_TIMEVAL if not.
23469         (gl_HEADER_SYS_TIME_H_DEFAULTS): Initialize REPLACE_STRUCT_TIMEVAL.
23470         * lib/sys_time.in.h: Include <winsock2.h> also when 'struct timeval'
23471         needs to be overridden.
23472         (timeval): Override if REPLACE_STRUCT_TIMEVAL is set.
23473         * modules/sys_time (Makefile.am): Substitute REPLACE_STRUCT_TIMEVAL.
23474         * tests/test-sys_select.c: Check that the tv_sec member has the same
23475         size as a 'time_t'.
23476         * tests/test-sys_time.c: Likewise.
23477         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): If REPLACE_STRUCT_TIMEVAL
23478         is set, set also REPLACE_GETTIMEOFDAY.
23479         * lib/gettimeofday.c (gettimeofday): If 'struct timeval' is overridden,
23480         convert the resulting 'struct timeval' before returning.
23481         * lib/select.c: Include <sys/time.h>.
23482         (select, timeval): Undefine at the right place.
23483         * modules/select (Depends-on): Add sys_time.
23484         * doc/posix-headers/sys_time.texi: Mention the problem with tv_sec on
23485         some Windows platforms.
23486         Reported by Marc-André Lureau <marcandre.lureau@redhat.com>.
23488 2012-01-28  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
23490         accept4, fcntl, socket modules: Avoid warnings on x86_64 mingw64.
23491         * lib/accept4.c (accept4): Use intptr_t to convert handle pointer to
23492         an integer.
23493         * lib/fcntl.c (dupfd): Likewise.
23494         * lib/w32sock.h (SOCKET_TO_FD): Likewise.
23496 2012-01-28  Bruno Haible  <bruno@clisp.org>
23498         fcntl: Avoid compilation error on native Windows.
23499         * modules/fcntl (Depends-on): Add 'close'.
23501 2012-01-28  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
23503         select, poll, isatty: Avoid warnings on x86_64 mingw64.
23504         * lib/select.c (IsConsoleHandle): Use intptr_t to convert handle
23505         pointer to an integer.
23506         * lib/poll.c (IsConsoleHandle): Likewise.
23507         * lib/isatty.c (IsConsoleHandle): Likewise.
23509 2012-01-28  Jim Meyering  <meyering@redhat.com>
23511         doc: clarify README-release
23512         * top/README-release: Clarify: you should make a point to have
23513         the latest stable versions of build tools in your PATH, and the
23514         reference to buildreq is solely for its list of tool names, not
23515         for its minimal-functional version numbers.
23516         Prompted by discussion with Reuben Thomas and Gary V. Vaughan.
23518         maint.mk: use more readable (yet functionally equivalent) quoting
23519         It is common to quote a single quote in a single quoted string like
23520         this:  '...'\''...'.  Unless you know the idiom, that looks like
23521         gibberish, so prefer to double-quote the string when possible.
23522         Then you can use a more readable, lone single quote: "...'..."
23523         * top/maint.mk (sc_cast_of_argument_to_free): Quoting like this
23524         "don't" is more readable than the equivalent 'don'\''t'.
23525         (sc_cast_of_x_alloc_return_value): Likewise.
23526         (sc_cast_of_alloca_return_value): Likewise.
23527         (sc_makefile_path_separator_check): Similar: use ":" in '...',
23528         rather than '\'':'\''.
23530 2012-01-27  Paul Eggert  <eggert@cs.ucla.edu>
23532         stdalign: relax _Alignof and tighten _Alignas test
23533         * m4/stdalign.m4 (gl_STDALIGN_H): Relax the _Alignof test,
23534         as it was too strict: alignof must divide offsetof, but it need
23535         not equal offsetof.  Inspired by Joseph S. Myers's comment
23536         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52023#c10>.
23537         Conversely, tighten the _Alignas test a bit, as the resulting
23538         alignment must be exactly 8.
23540 2012-01-27  Bruno Haible  <bruno@clisp.org>
23542         stdalign: Document the last change.
23543         * doc/posix-headers/stdalign.texi: Mention GCC bug 52023.
23545 2012-01-27  Paul Eggert  <eggert@cs.ucla.edu>
23547         stdalign: check that alignof and offsetof are consistent
23548         * m4/stdalign.m4 (gl_STDALIGN_H): Check for GCC bug 52023.
23549         Problem reported for gnulib by Richard W.M. Jones in
23550         <http://lists.gnu.org/r/bug-gnulib/2012-01/msg00340.html>.
23552 2012-01-27  Jim Meyering  <meyering@redhat.com>
23554         update-copyright: accept new option: UPDATE_COPYRIGHT_USE_INTERVALS=2
23555         * build-aux/update-copyright: When UPDATE_COPYRIGHT_USE_INTERVALS=2,
23556         convert a sequence with gaps to the minimal containing range.
23557         For example, convert 2000, 2004-2007, 2009 to 2000-2009.
23558         * tests/test-update-copyright.sh: Test for this.
23559         The FSF confirmed it is ok to do this, assuming there is at
23560         least one significant change per year in the affected range:
23561         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29554/focus=29860
23563 2012-01-26  Bruno Haible  <bruno@clisp.org>
23565         pipe2: refine doc about thread-safety
23566         * doc/glibc-functions/pipe2.texi: Clarify the extent of the
23567         multithread-safety problem.
23568         * doc/glibc-functions/accept4.texi: Likewise.
23570 2012-01-26  Bruno Haible  <bruno@clisp.org>
23572         posix_spawn_file_actions_addopen: Fix 2012-01-08 commit.
23573         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN):
23574         In the test program, include <fcntl.h>, for O_RDONLY.
23576 2012-01-26  Eric Blake  <eblake@redhat.com>
23578         pipe2: document lack of thread-safety in replacement
23579         * doc/glibc-functions/pipe2.texi (pipe2): Mention thread safety
23580         issue in replacement.
23581         * doc/glibc-functions/accept4.texi (accept4): Likewise.
23582         Based on a report by Eric Wong.
23584 2012-01-24  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
23585             Bruno Haible  <bruno@clisp.org>
23587         malloca: Avoid warnings on x86_64 mingw64.
23588         * lib/malloca.c: Include <stdint.h>.
23589         (mmalloca, freea): Use uintptr_t to convert pointers to integers.
23590         * modules/malloca (Depends-on): Add stdint.
23591         * modules/relocatable-prog-wrapper (Depends-on): Likewise.
23593 2012-01-25  Paul Eggert  <eggert@cs.ucla.edu>
23595         obstack: remove __STDC__ conditionals
23596         * lib/obstack.h: Remove __STDC__ conditionals, as suggested by Joseph
23597         S. Myers in <http://cygwin.com/ml/libc-alpha/2012-01/msg00104.html>.
23598         This leaves lib/localcharset.c, m4/iconv.m4, and a confusing comment in
23599         m4/include_next.m4 as the only gnulib-maintained places that still
23600         refer to __STDC__.
23602 2012-01-24  Bruno Haible  <bruno@clisp.org>
23604         havelib: Modern quoting.
23605         * build-aux/config.rpath: Quote 'like this', not `like this', as per
23606         the recent change to the GNU coding standards.
23608 2012-01-24  Bruno Haible  <bruno@clisp.org>
23610         stdint: Improve support for Android.
23611         * lib/stdint.in.h: Test __ANDROID__, not __BIONIC__.
23612         Reported by Simon Josefsson <simon@josefsson.org>.
23614 2012-01-23  Paul Eggert  <eggert@cs.ucla.edu>
23616         doc: omit trailing empty lines from INSTALL etc.
23617         * doc/Makefile (INSTALL): Omit trailing empty lines.
23618         (INSTALL.ISO, INSTALL.UTF-8): Build from INSTALL, so that these also
23619         omit trailing empty lines.  This simplifies the build procedure.
23621 2012-01-23  Jim Meyering  <meyering@redhat.com>
23623         tests: avoid spurious warnings about gl_sockets_startup
23624         Fedora rawhide's gcc version 4.7.0 20120119 with -Wunused-value
23625         would warn about every use of "gl_sockets_startup (SOCKETS_1_1);"
23626         reporting a "statement with no effect".
23627         * tests/test-accept.c (main): Mark as "(void)".
23628         * tests/test-accept4.c (main): Likewise.
23629         * tests/test-bind.c (main): Likewise.
23630         * tests/test-connect.c (main): Likewise.
23631         * tests/test-getpeername.c (main): Likewise.
23632         * tests/test-getsockname.c (main): Likewise.
23633         * tests/test-getsockopt.c (main): Likewise.
23634         * tests/test-listen.c (main): Likewise.
23635         * tests/test-recv.c (main): Likewise.
23636         * tests/test-recvfrom.c (main): Likewise.
23637         * tests/test-send.c (main): Likewise.
23638         * tests/test-sendto.c (main): Likewise.
23639         * tests/test-setsockopt.c (main): Likewise.
23640         * tests/test-shutdown.c (main): Likewise.
23642 2012-01-21  Bruno Haible  <bruno@clisp.org>
23644         locale-fr.m4: Fix for Android.
23645         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Avoid compilation
23646         failure of the test program on Bionic libc.
23648 2012-01-21  Jim Meyering  <meyering@redhat.com>
23650         bootstrap: fail when bootstrap_post_import_hook fails
23651         Otherwise, it's far too easy to miss diagnostics emitted
23652         between gnulib-tool's output and that of running configure.
23653         * build-aux/bootstrap: Fail when bootstrap_post_import_hook fails.
23655 2012-01-17  Jim Meyering  <meyering@redhat.com>
23657         maint: enable sc_trailing_blank
23658         * build-aux/pmccabe.css: Remove trailing blanks.
23659         * doc/acl-cygwin.txt: Likewise.
23660         * doc/gnu-oids.texi: Likewise
23661         * cfg.mk: Enable sc_trailing_blank.
23662         Exempt build-aux/texinfo.tex and doc/Copyright/assign.future.manual.
23664 2012-01-17  Jim Meyering  <meyering@redhat.com>
23666         maint: enable sc_prohibit_openat_without_use
23667         * cfg.mk: Enable sc_prohibit_openat_without_use.
23668         Exempt lib/selinux-at.c.
23670 2012-01-17  Jim Meyering  <meyering@redhat.com>
23672         maint: enable sc_prohibit_cloexec_without_use
23673         * cfg.mk: Enable sc_prohibit_cloexec_without_use.
23674         * lib/dup-safer-flag.c: Don't include "cloexec.h".  Not needed.
23676 2012-01-17  Jim Meyering  <meyering@redhat.com>
23678         maint: enable sc_prohibit_intprops_without_use
23679         * cfg.mk: Enable sc_prohibit_intprops_without_use
23680         * tests/test-nanosleep.c: Don't include "intprops.h".  Not needed.
23682 2012-01-17  Jim Meyering  <meyering@redhat.com>
23684         maint: enable sc_prohibit_hash_pjw_without_use
23685         * cfg.mk: Enable sc_prohibit_hash_pjw_without_use.
23686         * top/maint.mk (sc_prohibit_hash_pjw_without_use): Adjust regexp
23687         to match any use of \<hash_pjw\>, i.e., not necessarily with a
23688         following " (".
23690 2012-01-17  Jim Meyering  <meyering@redhat.com>
23692         maint: enable double-word-prohibiting rule
23693         * cfg.mk (local-checks-to-skip): Enable sc_prohibit_doubled_word.
23694         Exempt three files.
23696 2012-01-17  Jim Meyering  <meyering@redhat.com>
23698         maint: remove empty lines at EOF, but excluding modules/*
23699         Apply syntax rules at home as well as abroad.  Most changes
23700         were induced by running this:
23701           make srcdir=. _build-aux=build-aux -f top/maint.mk \
23702             sc_prohibit_empty_lines_at_EOF | grep -v modules/ \
23703             | xargs perl -pi -0777 -e 's/\n\n+$/\n/'
23704         * cfg.mk (local-checks-to-skip): Enable sc_prohibit_empty_lines_at_EOF.
23705         Exempt modules/* and two binary files.
23706         Also exempt doc/INSTALL*, per request from Bruno Haible.
23707         * doc/regexprops-generic.texi: *Add* a newline at EOF.  There was none.
23708         * doc/Copyright/assign.translation.manual: Remove empty lines at EOF.
23709         * doc/Copyright/request-assign.future: Likewise.
23710         * doc/Copyright/request-disclaim.changes: Likewise.
23711         * doc/INSTALL: Likewise.
23712         * doc/INSTALL.ISO: Likewise.
23713         * doc/INSTALL.UTF-8: Likewise.
23714         * doc/acl-cygwin.txt: Likewise.
23715         * doc/acl-resources.txt: Likewise.
23716         * doc/fdl-1.2.texi: Likewise.
23717         * doc/fdl-1.3.texi: Likewise.
23718         * doc/fdl.texi: Likewise.
23719         * lib/argp-pin.c: Likewise.
23720         * lib/round.c: Likewise.
23721         * lib/unicase/u16-totitle.c: Likewise.
23722         * lib/unictype/block_test.c: Likewise.
23723         * lib/uninorm/canonical-decomposition.c: Likewise.
23724         * m4/README: Likewise.
23725         * m4/relocatable-lib.m4: Likewise.
23726         * tests/test-isnand-nolibm.c: Likewise.
23727         * tests/test-isnand.c: Likewise.
23728         * tests/uninorm/NormalizationTest.txt: Likewise.
23730 2012-01-17  Jim Meyering  <meyering@redhat.com>
23732         maint: add framework to run syntax-check rules against gnulib sources
23733         * cfg.mk: New file, to disable all currently-failing tests.
23734         We'll enable them one by one, as they are made to pass.
23735         * Makefile (sc_maint): New rule.
23737 2012-01-21  Bruno Haible  <bruno@clisp.org>
23739         stdint: Add support for Android.
23740         * lib/stdint.in.h: When included from Bionic <sys/types.h>, just
23741         include the system's <stdint.h>.
23742         Reported by Simon Josefsson <simon@josefsson.org>.
23744 2012-01-19  Jim Meyering  <meyering@redhat.com>
23746         bootstrap: add bootstrap_post_import_hook
23747         Bison does still need something like the gnulib_mk_hook whose
23748         invocation I had to remove along with slurp in commit 767ccd40.
23749         Technically, we could get along without it, but doing so would
23750         have required living with a warning and a mandatory post-bootstrap
23751         automake rerun.
23752         * build-aux/bootstrap (gnulib_mk_hook): Remove definition, too.
23753         (bootstrap_post_import_hook): New function.
23754         Invoke it after gnulib-tool --import and before autoreconf.
23756 2012-01-18  Jim Meyering  <meyering@redhat.com>
23758         gitlog-to-changelog: don't use "no_"-prefixed variable name
23759         * build-aux/gitlog-to-changelog (main): Use getopt's "!" attribute
23760         to enable both --cluster and --no-cluster.  Change variable name,
23761         s/\$no_cluster/$cluster/, and reverse usage to match.
23763         gitlog-to-changelog: use "||", not "or" in expressions
23764         * build-aux/gitlog-to-changelog (main): Use "||", not "or" in
23765         expressions.
23767 2012-01-17  Joel E. Denny  <joeldenny@joeldenny.org>
23769         gitlog-to-changelog: new option --no-cluster
23770         * build-aux/gitlog-to-changelog: New option --no-cluster, disables
23771         clustering of adjacent commit messages.
23773 2012-01-17  Jim Meyering  <meyering@redhat.com>
23775         maint: spell file systems with two words, not one
23776         * m4/ls-mntd-fs.m4 (MOUNTED_INTERIX_STATVFS): Spell file systems with
23777         two words, not one.
23779 2012-01-16  Jim Meyering  <meyering@redhat.com>
23781         bootstrap: add a FIXME comment to ensure we eventually remove the hack
23782         * build-aux/bootstrap (gnulib_tool_options): Add comment.
23784 2012-01-16  Eric Blake  <eblake@redhat.com>
23786         bootstrap: cater to autoconf 2.59
23787         * build-aux/bootstrap (AUTORECONF): Work even when --no-recursive
23788         is not available.
23790         bootstrap: properly check for libtool
23791         * build-aux/bootstrap (libtoolize): Also run libtool when older
23792         usage is detected.
23794 2012-01-15  Bruno Haible  <bruno@clisp.org>
23796         Improve support for MSVC 9.
23797         * lib/unistd.in.h: Include <io.h> when needed to avoid redefinition
23798         clashes on MSVC.
23799         * lib/fcntl.in.h: Likewise.
23800         * lib/stdlib.in.h: Likewise.
23801         * lib/sys_stat.in.h: Likewise.
23803 2011-01-15  Stefano Lattarini  <stefano.lattarini@gmail.com>
23805         gnupload: we hold the master copy of this script now
23806         For motivation and more information, see:
23807         <http://lists.gnu.org/r/bug-gnulib/2012-01/msg00222.html>
23808         * build-aux/gnupload: Make it clear in the heading comments that the
23809         master copy of this file is maintained by gnulib.  Since we are at
23810         it, bump its copyright year and ...
23811         ($scriptversion): ... the date in its version.
23812         ($usage): Patches and bug reports should be sent to the gnulib list,
23813         not the automake one.
23814         * config/srclist.txt: Don't try to sync 'gnupload' from automake
23815         anymore.
23817 2012-01-15  Bruno Haible  <bruno@clisp.org>
23819         Fix module 'random'.
23820         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether random, srandom,
23821         initstate, setstate are declared.
23823 2012-01-14  Bruno Haible  <bruno@clisp.org>
23825         Tests for module 'random'.
23826         * modules/random-tests: New file.
23827         * tests/test-random.c: New file, based on tests/test-random_r.c.
23829         New module 'random'.
23830         * lib/stdlib.in.h (random, srandom, initstate, setstate): New
23831         declarations.
23832         * lib/random.c: New file, based on glibc/stdlib/random.c.
23833         * m4/random.m4: New file.
23834         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RANDOM,
23835         HAVE_RANDOM.
23836         * modules/stdlib (Makefile.am): Substitute GNULIB_RANDOM, HAVE_RANDOM.
23837         * modules/random: New file.
23838         * config/srclist.txt: Add an entry for random.c.
23839         * doc/posix-functions/random.texi: Mention the 'random' module.
23840         * doc/posix-functions/initstate.texi: Likewise.
23841         * doc/posix-functions/setstate.texi: Likewise.
23842         * doc/posix-functions/srandom.texi: Likewise.
23844 2012-01-12  Bruno Haible  <bruno@clisp.org>
23846         random_r: Use common idioms.
23847         * lib/random_r.c: Include <stdlib.h> first.
23849         random_r: Override incompatible API on AIX, OSF/1.
23850         * lib/stdlib.in.h (random_r, srandom_r, initstate_r, setstate_r):
23851         Override the system function if REPLACE_RANDOM_R is 1.
23852         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Require AC_CANONICAL_HOST. On AIX
23853         and OSF/1, set REPLACE_RANDOM_R.
23854         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_RANDOM_R.
23855         * modules/stdlib (Makefile.am): Substitute REPLACE_RANDOM_R.
23856         * modules/random_r (configure.ac): Test REPLACE_RANDOM_R.
23857         * doc/glibc-functions/initstate_r.texi: Mention the AIX, OSF/1 problem.
23858         * doc/glibc-functions/random_r.texi: Likewise.
23859         * doc/glibc-functions/setstate_r.texi: Likewise.
23861         random_r: Support for MSVC 9.
23862         * lib/random_r.c: Include stdint.h, not inttypes.h.
23864 2012-01-12  Eric Blake  <eblake@redhat.com>
23866         inet_ntop: guard extra work by IF_LINT
23867         * lib/inet_ntop.c (inet_ntop6): Mark spurious initialization, for
23868         better code generation when not checking for warnings.
23869         Suggested by Paul Eggert and Jim Meyering.
23871         strptime: fix regression on mingw
23872         * lib/strptime.c (__strptime_internal) [!_LIBC && !HAVE_TM_GMTOFF]:
23873         Fix regression.  Reported by Bruno Haible.
23875 2012-01-11  Reuben Thomas  <rrt@sc3d.org>
23876             Bruno Haible  <bruno@clisp.org>
23878         copy-file: add error-code-returning variant.
23879         * lib/copy-file.h (GL_COPY_ERR_*): New enumeration items.
23880         (qcopy_file_preserving): New declaration.
23881         * lib/copy-file.c (qcopy_file_preserving): Renamed from
23882         copy_file_preserving. Change return type to 'int'. Don't emit an error
23883         message here.
23884         (copy_file_preserving): New function.
23885         * tests/test-copy-file.c: Include <stdlib.h>.
23886         (main): Test qcopy_file_preserving if the environment variable
23887         NO_STDERR_OUTPUT is set.
23888         * tests/test-copy-file-1.sh: Invoke test-copy-file.sh a second time,
23889         with NO_STDERR_OUTPUT
23890         * tests/test-copy-file-2.sh: Likewise.
23892 2012-01-10  Bruno Haible  <bruno@clisp.org>
23894         copy-file: Use 'quote' module consistently.
23895         * lib/copy-file.c (copy_file_preserving): Use quote().
23897         copy-file: Refactor.
23898         * lib/copy-file.c: Include quote.h.
23899         (copy_file_preserving): Call qcopy_acl instead of copy_acl. Emit error
23900         message here.
23901         * modules/copy-file (Depends-on): Add quote.
23903         acl: Export qcopy_acl.
23904         * lib/acl.h (qcopy_acl): New declaration.
23905         * lib/copy-acl.c (qcopy_acl): Make non-static.
23907         acl: Rename a local variable.
23908         * lib/set-mode-acl.c (set_acl): Use same variable name as in copy_acl.
23910         acl: Align return values of copy_acl and qcopy_acl.
23911         * lib/copy-acl.c (copy_acl): Return the same value as qcopy_acl,
23912         maybe < -1.
23914 2012-01-11  Eric Blake  <eblake@redhat.com>
23916         strptime: silence gcc warnings
23917         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT],
23918         [!_LIBC && !HAVE_TM_GMTOFF]: Avoid unused variables.
23919         Reported by Daniel P. Berrange.
23921         inet_ntop: silence gcc warning
23922         * lib/inet_ntop.c (inet_ntop6): Initialize best.base.
23923         Reported by Daniel P. Berrange.
23925 2012-01-11  Dmitry V. Levin  <ldv@altlinux.org>
23927         getloadavg test: skip the test on GNU/Linux without /proc mounted
23928         GNU libc implements getloadavg(3) on Linux by parsing /proc/loadavg
23929         file.  When /proc is not mounted, it always fails with ENOENT.
23930         * tests/test-getloadavg.c (main): Treat ENOENT return code from
23931         getloadavg(3) the same way as ENOSYS and ENOTSUP.
23933 2012-01-10  Bruno Haible  <bruno@clisp.org>
23935         regex: Avoid link error on MSVC 9.
23936         * modules/regex (Depends-on): Add wctype.
23938 2012-01-10  Bruno Haible  <bruno@clisp.org>
23940         doc: Mention --with-tests option.
23941         * gnulib-tool (func_usage): Suggest --with-tests for --test etc.
23942         * doc/gnulib.texi (Extra tests modules): Mention the need to pass
23943         --with-tests.
23944         Reported by Reuben Thomas.
23946 2012-01-10  Reuben Thomas  <rrt@sc3d.org>
23948         users.txt: order package names lexicographically.
23949         * users.txt: Order package names lexicographically.
23951 2012-01-10  Jim Meyering  <meyering@redhat.com>
23953         maint.mk: fix description in comment
23954         * top/maint.mk (require_exactly_one_NL_at_EOF_): Fix comment.
23956         ignore-value: remove deprecated ignore_ptr function
23957         * lib/ignore-value.h (ignore_ptr): Remove deprecated function.
23958         * NEWS: Note this.
23960 2012-01-09  Jim Meyering  <meyering@redhat.com>
23962         test-init.sh: avoid a subshell
23963         * tests/test-init.sh: Remove protective subshell.
23964         Suggested by Bernhard Voelker.  While a subshell is normally
23965         required to protect against older shells (Solaris, FreeBSD) that
23966         warn about a missing program before performing redirection, the
23967         shell-selection tests performed by init.sh probably exclude any
23968         offending shell.
23970 2012-01-08  Bruno Haible  <bruno@clisp.org>
23972         setlocale tests: Avoid test failure on Solaris 11.0.
23973         * tests/test-setlocale2.sh: Use 'env' to set the LC_ALL environment
23974         variable.
23976 2012-01-08  Bruno Haible  <bruno@clisp.org>
23978         posix_spawn_file_actions_addopen: Work around Solaris 11.0 bug.
23979         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
23980         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN.
23981         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN): New
23982         macro.
23983         * lib/spawn.in.h (posix_spawn_file_actions_addopen): Test
23984         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN, not REPLACE_POSIX_SPAWN.
23985         * lib/spawn_faction_addopen.c: Add workaround implementation if
23986         HAVE_WORKING_POSIX_SPAWN.
23987         * modules/spawn (Makefile): Substitute
23988         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN.
23989         * modules/posix_spawn_file_actions_addopen (configure.ac): Invoke
23990         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN. Test
23991         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN, not REPLACE_POSIX_SPAWN.
23992         (Depends-on): Update conditions.
23993         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
23994         the Solaris 11 bug.
23996 2012-01-08  Bruno Haible  <bruno@clisp.org>
23998         posix_spawn_file_actions_adddup2: Work around Solaris 11.0 bug.
23999         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
24000         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2.
24001         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2): New
24002         macro.
24003         * lib/spawn.in.h (posix_spawn_file_actions_adddup2): Test
24004         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2, not REPLACE_POSIX_SPAWN.
24005         * lib/spawn_faction_adddup2.c: Add workaround implementation if
24006         HAVE_WORKING_POSIX_SPAWN.
24007         * modules/spawn (Makefile): Substitute
24008         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2.
24009         * modules/posix_spawn_file_actions_adddup2 (configure.ac): Invoke
24010         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2. Test
24011         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2, not REPLACE_POSIX_SPAWN.
24012         (Depends-on): Update conditions.
24013         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
24014         the Solaris 11 bug.
24016 2012-01-08  Bruno Haible  <bruno@clisp.org>
24018         posix_spawn_file_actions_addclose: Work around Solaris 11.0 bug.
24019         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
24020         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE.
24021         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Define
24022         HAVE_WORKING_POSIX_SPAWN.
24023         (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE): New macro.
24024         * lib/spawn.in.h (posix_spawn_file_actions_addclose): Test
24025         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE, not REPLACE_POSIX_SPAWN.
24026         * lib/spawn_faction_addclose.c: Add workaround implementation if
24027         HAVE_WORKING_POSIX_SPAWN.
24028         * modules/spawn (Makefile): Substitute
24029         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE.
24030         * modules/posix_spawn_file_actions_addclose (configure.ac): Invoke
24031         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE. Test
24032         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE, not REPLACE_POSIX_SPAWN.
24033         (Depends-on): Update conditions.
24034         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
24035         the Solaris 11 bug.
24037 2012-01-08  Bruno Haible  <bruno@clisp.org>
24039         doc: Update for Solaris 11.0.
24040         * doc/*/*.texi: Mention Solaris 11.0 where appropriate.
24041         * m4/printf.m4: Update comments.
24043 2012-01-08  Bruno Haible  <bruno@clisp.org>
24045         mktime: Avoid compilation error on Solaris 11.
24046         * lib/mktime.c (WRAPV): Define to 0 on all non-glibc systems.
24048 2012-01-08  Bruno Haible  <bruno@clisp.org>
24050         doc: Small fix.
24051         * doc/posix-headers/nl_types.texi: Correct platforms list.
24053 2012-01-08  Simon Josefsson  <simon@josefsson.org>
24055         Add lgpl-3.0 module.
24056         * MODULES.html.sh (Support for building documentation): Add
24057         lgpl-3.0.
24058         * modules/lgpl-3.0: New file.
24060 2012-01-08  Jim Meyering  <meyering@redhat.com>
24062         select.c: indent with spaces, not TABs
24063         * lib/select.c (windows_poll_handle): Indent with spaces, not TABs.
24065 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
24067         quotearg: do not use grave accent for left quote
24068         * lib/quotearg.c (gettext_quote): Map "`" to "'" for
24069         locale_quoting_style.
24070         (quotearg_buffer_restyled): Fix example.
24071         * tests/test-quotearg-simple.c (results_g): Adjust test vectors.
24073 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
24075         quotearg: fall back to Unicode single quotes in UTF-8, GB-18030 locales
24076         Most programs do not have translation catalogs for English and much
24077         less separate catalogs for British and American English.  Drop the
24078         suggestion to translators about these two, and provide it
24079         automatically for Unicode locales.  Like most programs, even those
24080         using American English, we use single quotation marks.  This conflicts
24081         with the American typographic convention, but works better when you
24082         cite the entire error message within double quotes.  It also tries not
24083         to clash with established practice and with what non-gnulib programs
24084         will usually do.
24085         * lib/quotearg.c (gettext_quote): Hard-code U+2018 and U+2019 when
24086         using an UTF-8 or GB-18030 locale.  The list of other locales with
24087         quotes was provided by Bruno Haible.
24088         (quotearg_buffer_restyled): Adjust instructions to translators.
24089         * lib/quotearg.h (locale_quoting_style): Do not put an example in the
24090         text, since this would be wrong when using Unicode.
24091         * modules/quotearg: Depend on c-strcaseeq.
24093 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
24095         quotearg: fix Wikipedia link
24096         * lib/quotearg.c (quotearg_buffer_restyled): Fix link to Wikipedia.
24098 2012-01-07  Simon Josefsson  <simon@josefsson.org>
24100         Fix for mingw with MSVC9.
24101         * m4/ld-version-script.m4: Check that compiler rejects version
24102         scripts with syntax errors.  Reported by Bruno Haible
24103         <bruno@clisp.org>.
24105 2012-01-06  Bruno Haible  <bruno@clisp.org>
24107         Talk about "native Windows API", not "Woe32".
24108         * lib/accept4.c: Update comments to mention native Windows.
24109         * lib/execute.c: Likewise.
24110         * lib/fatal-signal.c: Likewise.
24111         * lib/localcharset.c: Likewise.
24112         * lib/nanosleep.c: Likewise.
24113         * lib/nl_langinfo.c: Likewise.
24114         * lib/pclose.c: Likewise.
24115         * lib/pipe-filter-gi.c: Likewise.
24116         * lib/pipe-filter-ii.c: Likewise.
24117         * lib/pipe.c: Likewise.
24118         * lib/pipe2.c: Likewise.
24119         * lib/popen.c: Likewise.
24120         * lib/progreloc.c: Likewise.
24121         * lib/relocatable.c: Likewise.
24122         * lib/sigaction.c: Likewise.
24123         * lib/sigprocmask.c: Likewise.
24124         * lib/spawn-pipe.h: Likewise.
24125         * lib/spawn-pipe.c: Likewise.
24126         * lib/spawni.c: Likewise.
24127         * lib/stat-time.h: Likewise.
24128         * lib/w32spawn.h: Likewise.
24129         * tests/test-isatty.c: Likewise.
24130         * lib/config.charset: More comments.
24131         * doc/gnulib-intro.texi: Mention native Windows.
24132         * doc/posix-functions/_Exit_C99.texi: Likewise.
24133         * doc/posix-headers/fcntl.texi: Likewise.
24135 2012-01-06  Guillem Jover  <guillem@hadrons.org>  (tiny change)
24137         argp: Avoid crash if translator uses % characters in a translation.
24138         * lib/argp-parse.c (argp_version_parser): Use a "%s" format string.
24139         Reported by Mats Erik Andersson <gnu@gisladisker.se>.
24141 2012-01-06  Paul Eggert  <eggert@cs.ucla.edu>
24143         doc: C11 and C++11 are now official
24144         * doc/posix-headers/assert.texi, doc/posix-headers/stdalign.texi:
24145         * doc/verify.texi, stdalign.in.h, verify.h, m4/gnulib-common.m4:
24146         * m4/stdalign.m4, modules/assert-h, modules/snippet/_Noreturn:
24147         * modules/stdalign:
24148         Replace references to draft C1X to C11, and to draft C++0X to C++11.
24150 2012-01-06  Bruno Haible  <bruno@clisp.org>
24152         uc-is-grapheme-break tests: Tweak.
24153         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Fix an error
24154         message.
24156 2012-01-06  Bruno Haible  <bruno@clisp.org>
24158         test-init.sh: correct the test for diff -u
24159         * tests/test-init.sh: Also redirect stdout to /dev/null.
24161 2012-01-05  Paul Eggert  <eggert@cs.ucla.edu>
24163         Use ', not `, for quoting output.
24164         * build-aux/announce-gen (usage, sizes, print_news_deltas)
24165         (print_changelog_deltas, get_tool_versions, main program):
24166         * build-aux/git-version-gen:
24167         * build-aux/gitlog-to-changelog (usage, parse_amend_file):
24168         * build-aux/move-if-change (help):
24169         * build-aux/useless-if-before-free (usage, main program):
24170         * check-module (parse_module_file, usage)
24171         (find_included_lib_files, check_module):
24172         * lib/argmatch.c (main) [TEST]:
24173         * lib/argp-help.c (_help):
24174         * lib/getopt1.c (main) [TEST]:
24175         * lib/git-merge-changelog.c (usage):
24176         * lib/xstrtol-error.c (xstrtol_error):
24177         * m4/alloca.m4 (_AC_LIBOBJ_ALLOCA):
24178         * m4/argz.m4 (gl_FUNC_ARGZ):
24179         * m4/bison.m4 (gl_BISON):
24180         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU):
24181         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
24182         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
24183         * m4/fpending.m4 (gl_PREREQ_FPENDING):
24184         * m4/gc-random.m4 (gl_GC_RANDOM):
24185         * m4/intl.m4 (gt_CHECK_DECL):
24186         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK):
24187         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT)
24188         (AC_TYPE_UNSIGNED_LONG_LONG_INT):
24189         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS):
24190         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK):
24191         * m4/onceonly.m4 (AC_CHECK_FUNCS_ONCE):
24192         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION):
24193         * tests/test-dirname.c (main):
24194         * tests/test-getpass.c (main):
24195         * tests/test-iconvme.c (main):
24196         * tests/test-parse-datetime.c (LOG):
24197         * tests/test-xstrtoimax.sh:
24198         * tests/test-xstrtol.sh:
24199         * tests/test-xstrtoll.sh:
24200         * tests/test-xstrtoumax.sh:
24201         * tests/unigbrk/test-uc-is-grapheme-break.c (main):
24202         * top/GNUmakefile (abort-due-to-no-makefile):
24203         Quote 'like this', not `like this', as per the recent change to
24204         the GNU coding standards.
24206 2012-01-05  Bruno Haible  <bruno@clisp.org>
24208         strtoimax: Don't force a replacement on systems where intmax_t is int.
24209         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Use a different test if
24210         'intmax_t' is not larger than 'int'.
24211         Reported by Pádraig Brady <P@draigBrady.com>.
24213 2012-01-05  Bruno Haible  <bruno@clisp.org>
24215         doc: Mention NetBSD bugs.
24216         * doc/posix-functions/*printf.texi: Mention a NetBSD 5.1 bug.
24217         * doc/posix-functions/nl_langinfo.texi: Mention another NetBSD 5.1 bug.
24219 2012-01-05  Bruno Haible  <bruno@clisp.org>
24221         strtoumax tests: Enhance tests.
24222         * tests/test-strtoumax.c (main): Add tests for large values.
24224 2012-01-05  Bruno Haible  <bruno@clisp.org>
24226         strtoimax: Work around AIX 5.1 bug.
24227         * lib/inttypes.in.h (strtoimax): Allow overriding the system's
24228         definition.
24229         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Check against the AIX 5.1 bug.
24230         Set HAVE_STRTOIMAX.
24231         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Initialize
24232         REPLACE_STRTOIMAX.
24233         * modules/inttypes-incomplete (Makefile.am): Substitute
24234         REPLACE_STRTOIMAX.
24235         * modules/strtoimax (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
24236         (configure.ac): Test HAVE_STRTOIMAX, REPLACE_STRTOIMAX.
24237         (Depends-on): Update conditions.
24238         * tests/test-strtoimax.c (main): Add tests for large values.
24239         * doc/posix-functions/strtoimax.texi: Mention the AIX 5.1 bug.
24241 2012-01-05  Bruno Haible  <bruno@clisp.org>
24243         inttypes: Modernize.
24244         * lib/inttypes.in.h (strtoimax, strtoumax): Use the C++ safe idioms.
24245         * modules/inttypes-incomplete (Depends-on): Add snippet/c++defs.
24246         (Makefile.am): Update inttypes.h rule.
24248 2012-01-05  Jim Meyering  <meyering@redhat.com>
24250         init.sh: don't waste a subshell just to redirect stderr
24251         * tests/init.sh: In testing for diff -u and diff -c, use a
24252         stderr-redirecting exec inside `...` rather than a subshell.
24254         test-init.sh: avoid failure on HP-UX 11.00
24255         * tests/test-init.sh: Skip "diff -u"-comparing step when compare
24256         resolves to diff -c or cmp.  Reported by Bruno Haible.
24258 2012-01-05  Bruno Haible  <bruno@clisp.org>
24260         Tests for module 'strtoull'.
24261         * modules/strtoull-tests: New file.
24262         * tests/test-strtoull.c: New file, based on tests/test-strtoumax.c.
24264 2012-01-05  Bruno Haible  <bruno@clisp.org>
24266         Tests for module 'strtoll'.
24267         * modules/strtoll-tests: New file.
24268         * tests/test-strtoll.c: New file, based on tests/test-strtoimax.c.
24270 2012-01-05  Bruno Haible  <bruno@clisp.org>
24272         Tests for module 'strtoul'.
24273         * modules/strtoul-tests: New file.
24274         * tests/test-strtoul.c: New file, based on tests/test-strtoumax.c.
24276 2012-01-05  Bruno Haible  <bruno@clisp.org>
24278         Tests for module 'strtol'.
24279         * modules/strtol-tests: New file.
24280         * tests/test-strtol.c: New file, based on tests/test-strtoimax.c.
24282 2012-01-04  Jim Meyering  <meyering@redhat.com>
24284         test-init.sh: accommodate Solaris 5.10's different diff -u output
24285         * tests/test-init.sh: Also exempt @@ lines from the comparison
24286         of diff output, since Solaris 5.10 and GNU diff formats differ.
24287         Reported by Stefano Lattarini.
24289 2012-01-04  Paul Eggert  <eggert@cs.ucla.edu>
24291         test-posixtm: don't assume signed integer wraparound
24292         * tests/test-posixtm.c (main): Don't assume wraparound semantics
24293         after signed integer overflow.  Inspired by (though it may not
24294         fix) Bruno Haible's bug report in
24295         <http://lists.gnu.org/r/bug-gnulib/2012-01/msg00066.html>.
24297         Spell out "Windows 9x" and "Windows XP".
24298         * lib/poll.c, lib/select.c: In comments, replace "Win9x" with
24299         "Windows 9x" and "WinXP" with "Windows XP".
24301 2012-01-04  Jim Meyering  <meyering@redhat.com>
24303         test-vc-list-files-cvs.sh: remove obsolete comment
24304         * tests/test-vc-list-files-cvs.sh: Remove obsolete comment about
24305         double exit.  Now that's all encapsulated via skip_ and Exit.
24307 2012-01-04  Bruno Haible  <bruno@clisp.org>
24309         Talk about "native Windows API", not "Win32".
24310         * lib/classpath.c: Update comments to mention native Windows.
24311         * lib/csharpexec.c: Likewise.
24312         * lib/dup2.c: Likewise.
24313         * lib/error.c: Likewise.
24314         * lib/fcntl.c: Likewise.
24315         * lib/filename.h: Likewise.
24316         * lib/findprog.c: Likewise.
24317         * lib/get-rusage-as.c: Likewise.
24318         * lib/get-rusage-data.c: Likewise.
24319         * lib/getpagesize.c: Likewise.
24320         * lib/javaexec.c: Likewise.
24321         * lib/msvc-inval.c: Likewise.
24322         * lib/msvc-nothrow.c: Likewise.
24323         * lib/nanosleep.c: Likewise.
24324         * lib/nonblocking.c: Likewise.
24325         * lib/printf-parse.c: Likewise.
24326         * lib/setlocale.c: Likewise.
24327         * lib/sigaction.c: Likewise.
24328         * lib/strerror_r.c: Likewise.
24329         * lib/tmpdir.c: Likewise.
24330         * lib/vasnprintf.c: Likewise.
24331         * lib/w32spawn.h: Likewise.
24332         * lib/waitpid.c: Likewise.
24333         * lib/stdio.in.h (fdopen, fopen, freopen): Likewise.
24334         * m4/locale-ar.m4: Likewise.
24335         * m4/locale-fr.m4: Likewise.
24336         * m4/locale-ja.m4: Likewise.
24337         * m4/locale-tr.m4: Likewise.
24338         * m4/locale-zh.m4: Likewise.
24339         * m4/printf.m4: Likewise.
24340         * tests/test-cloexec.c: Likewise.
24341         * tests/test-copy-acl.sh: Likewise.
24342         * tests/test-copy-file.sh: Likewise.
24343         * tests/test-file-has-acl.sh: Likewise.
24344         * tests/test-set-mode-acl.sh: Likewise.
24345         * tests/test-dup-safer.c: Likewise.
24346         * tests/test-dup2.c: Likewise.
24347         * tests/test-dup3.c: Likewise.
24348         * tests/test-fcntl.c: Likewise.
24349         * tests/test-nonblocking-pipe.h: Likewise.
24350         * tests/test-nonblocking-socket.h: Likewise.
24351         * tests/test-pipe.c: Likewise.
24352         * tests/test-pipe2.c: Likewise.
24353         * tests/test-spawn-pipe-child.c: Likewise.
24354         * doc/acl-resources.txt: Likewise.
24355         * lib/getaddrinfo.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
24356         * tests/test-poll.c (WINDOWS_NATIVE): Likewise.
24357         * tests/test-select.h (WINDOWS_NATIVE): Likewise.
24358         * lib/localcharset.c: Update comments to mention native Windows.
24359         (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
24360         * lib/localename.c: Likewise.
24361         * lib/progreloc.c: Likewise.
24362         * lib/relocatable.c: Likewise.
24363         * lib/poll.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
24364         (windows_compute_revents): Renamed from win32_compute_revents.
24365         (windows_compute_revents_socket): Renamed from
24366         win32_compute_revents_socket.
24367         * lib/select.c: Update comments to mention native Windows.
24368         (windows_poll_handle): Renamed from win32_poll_handle.
24369         * m4/threadlib.m4: Update comments to mention native Windows.
24370         (gl_THREADLIB_EARLY_BODY, gl_THREADLIB_BODY): Expect
24371         --enable-threads=windows instead of --enable-threads=win32. Set
24372         USE_WINDOWS_THREADS, not USE_WIN32_THREADS.
24373         * lib/glthread/lock.h: Update comments to mention native Windows.
24374         (USE_WINDOWS_THREADS): Renamed from USE_WIN32_THREADS.
24375         * lib/glthread/lock.c (USE_WINDOWS_THREADS): Renamed from
24376         USE_WIN32_THREADS.
24377         * lib/glthread/cond.h (USE_WINDOWS_THREADS): Likewise.
24378         * lib/glthread/cond.c (USE_WINDOWS_THREADS): Likewise.
24379         * lib/glthread/thread.h (USE_WINDOWS_THREADS): Likewise.
24380         * lib/glthread/thread.c (USE_WINDOWS_THREADS): Likewise.
24381         * lib/glthread/tls.h (USE_WINDOWS_THREADS): Likewise.
24382         * lib/glthread/tls.c (USE_WINDOWS_THREADS): Likewise.
24383         * lib/glthread/yield.h (USE_WINDOWS_THREADS): Likewise.
24384         * tests/test-cond.c (USE_WINDOWS_THREADS): Likewise.
24385         * tests/test-thread_create.c (USE_WINDOWS_THREADS): Likewise.
24386         * tests/test-lock.c (USE_WINDOWS_THREADS): Likewise.
24387         (TEST_WINDOWS_THREADS): Renamed from TEST_WIN32_THREADS.
24388         * tests/test-tls.c: Likewise.
24389         Rationale:
24390         Microsoft renamed the "Win32 API" to "Windows API", as it is available
24391         on both 32-bit and 64-bit Windows systems.
24392         But in gnulib, we treat Cygwin like a Unix platform, therefore the main
24393         line of distinction is between "native Windows" on one side and Unix/
24394         POSIX systems on the other side. More details in
24395         <https://lists.gnu.org/r/bug-gnulib/2012-01/msg00027.html>.
24396         Suggested by Paul Eggert.
24398 2012-01-03  Bruno Haible  <bruno@clisp.org>
24400         isatty: Support for MSVC 9.
24401         * doc/posix-functions/isatty.texi: Mention the MSVC problem.
24402         * lib/isatty.c: Include <errno.h>, msvc-inval.h.
24403         (_isatty_nothrow): New function.
24404         (isatty): Use it instead of _isatty.
24405         (IsConsoleHandle): Add comment, from Paolo Bonzini.
24406         * lib/poll.c (IsConsoleHandle): Likewise.
24407         * lib/select.c (IsConsoleHandle): Likewise.
24408         * m4/isatty.m4 (gl_FUNC_ISATTY): Fix comment. Reported by Eli Zaretskii.
24409         (gl_PREREQ_ISATTY): New macro.
24410         * modules/isatty (Depends-on): Add msvc-inval.
24411         (configure.ac): Invoke gl_PREREQ_ISATTY.
24413 2012-01-03  Jim Meyering  <meyering@redhat.com>
24415         maint.mk: remove temporary transition aid from over 1.5 years ago
24416         * top/maint.mk (_prohibit_regexp): Remove definition whose sole
24417         purpose was to aid in the transition (avoiding silent malfunction)
24418         from that old name to the new _sc_search_regexp.  This shim was
24419         added by commit 219c504b.
24421         init.sh: do not try to accommodate compare arguments starting with "-"
24422         * tests/init.sh (compare_dev_null_): Do not try to accommodate
24423         compare arguments that start with "-".  Besides, we do not worry
24424         about this when invoking diff or cmp; why start now with sed?
24425         Using "--" to separate options from argument would trigger sed
24426         failure in at least Solaris 7, HP-UX 11.00, IRIX 6.5, FreeBSD 6.4,
24427         OpenBSD 4.9 and NetBSD 5.1.  Reported by Bruno Haible.
24429 2012-01-02  Bruno Haible  <bruno@clisp.org>
24431         Enhance tests for module 'isatty'.
24432         * modules/isatty-tests (Depends-on): Add pipe-posix.
24433         * tests/test-isatty.c: Include <fcntl.h>.
24434         (DEV_NULL): New macro.
24435         (main): Test the resut of isatty() also on regular files, pipes, and
24436         /dev/null.
24438         New module 'isatty'.
24439         * lib/unistd.in.h (isatty): New declaration.
24440         * lib/isatty.c: New file, based on an idea of
24441         Bastien Roucariès <roucaries.bastien@gmail.com>.
24442         * m4/isatty.m4: New file.
24443         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether isatty is declared.
24444         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ISATTY, REPLACE_ISATTY.
24445         * modules/unistd (Makefile.am): Substitute GNULIB_ISATTY,
24446         REPLACE_ISATTY.
24447         * modules/isatty: New file.
24448         * doc/posix-functions/isatty.texi: Mention the new module.
24449         Suggested by Paolo Bonzini.
24451 2012-01-02  Bruno Haible  <bruno@clisp.org>
24453         canonicalize: Tweak 2011-12-29 commit.
24454         * lib/canonicalize.c (canonicalize_filename_mode): Fix typo in comment.
24455         * lib/canonicalize.h (canonicalize_filename_mode): Update specification.
24457 2012-01-02  Jim Meyering  <meyering@redhat.com>
24459         gitlog-to-changelog: describe input syntax in --help output
24460         * build-aux/gitlog-to-changelog (usage) [SPECIAL SYNTAX]: New section.
24462         gitlog-to-changelog: fix typo in --help: show backslash before email @
24463         * build-aux/gitlog-to-changelog (usage): An "@" was backslash-escaped
24464         in sources, but not in actual output.
24466 2011-12-30  Jim Meyering  <meyering@redhat.com>
24468         gitlog-to-changelog: don't malfunction when name contains %-directive
24469         * build-aux/gitlog-to-changelog (main): Don't let a %-directive
24470         in a name string cause trouble.  E.g., with a user name of "%s",
24471         gitlog-to-changelog would fail with "Missing argument in sprintf at..."
24473 2011-12-30  Gary V. Vaughan  <gary@gnu.org>
24475         gitlog-to-changelog: Copyright-paperwork-exempt: yes == (tiny change)
24476         * build-aux/gitlog-to-changelog (main): Map the string, at beginning
24477         of line in a git commit log, "Copyright-paperwork-exempt: yes", to
24478         the "  (tiny change)" notation that is appended to the standard
24479         ChangeLog "date  name  email" header line.
24481 2012-01-01  Jim Meyering  <meyering@redhat.com>
24483         test-framework-sh: init.sh: fix "make dist" failure
24484         When using gnulib-tool's --with-tests option and any module that
24485         depends on test-framework-sh, "make dist" would fail due to the
24486         lack of init.sh *in lib/*.  The EXTRA_DIST += init.sh is required
24487         in the gltests directory, and not in the gllib/ directory.
24488         One way to work around that is to move the EXTRA_DIST += init.sh
24489         from the primary module to the -tests one:
24490         * modules/test-framework-sh-tests (EXTRA_DIST): Add init.sh here, ...
24491         * modules/test-framework-sh (Makefile.am): ...not here.
24492         Reported by Tom G. Christensen in
24493         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29519
24495         version-etc: update copyright year reported by --version
24496         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2012.
24498 2011-12-31  Pádraig Brady  <P@draigBrady.com>
24500         canonicalize: only stat() if required
24501         * lib/canonicalize.c (canonicalize_filename_mode):
24502         Avoid calling l?stat() when both CAN_MISSING,
24503         and CAN_NOLINKS are set, as we neither need
24504         to resolve symlinks or test component existence.
24506 2011-12-31  Paul Eggert  <eggert@cs.ucla.edu>
24508         doc: cover st_ino issues once; add OpenVMS etc.
24509         * doc/posix-functions/stat.texi (stat):
24510         * doc/posix-functions/lstat.texi (lstat):
24511         * doc/posix-functions/fstatat.texi (fstatat):
24512         * doc/posix-functions/fstat.texi (fstat):
24513         Move general 'struct stat' stuff to sys_stat.texi,
24514         leaving behind a pointer.
24515         * doc/posix-headers/sys_stat.texi (sys/stat.h):
24516         Merge duplicate info about 'struct stat' problems into here.
24517         Mention issues with OpenVMS, GNU/Linux NFS, NetApp, ClearCase,
24518         and suggest partial workarounds.
24520         same-inode: port to OpenVMS
24521         * lib/same-inode.h (SAME_INODE): Port to OpenVMS by checking all
24522         three st_ino values.
24524 2011-12-30  Pádraig Brady  <P@draigBrady.com>
24526         canonicalize: fix references to stat() and lstat()
24527         * lib/canonicalize.c (canonicalize_filename_mode):
24528         Ensure references always resolve to a replacement
24529         function if required (even via a macro).
24531 2011-12-30  Jim Meyering  <meyering@redhat.com>
24533         gitlog-to-changelog: remove a little duplication
24534         * build-aux/gitlog-to-changelog (main): Grep @lines once,
24535         rather than twice.
24537 2011-12-29  Pádraig Brady  <P@draigBrady.com>
24539         canonicalize: add support for not resolving symlinks
24540         * lib/canonicalize.h: Add the CAN_NOLINKS flag to
24541         indicate we don't want to follow symlinks.  Also
24542         provide CAN_MODE_MASK to aid setting these existing
24543         mutually exclusive values.
24544         * lib/canonicalize.c (canonicalize_filename_mode):
24545         Extract the flags from can_mode parameter, which
24546         are currently just used to select between stat()
24547         and lstat().  Also ensure that mutually exclusive
24548         values are flagged immediately as invalid.
24549         * tests/test-canonicalize.c: Verify symlinks are
24550         not followed, and that invalid flag combinations
24551         are diagnosed.
24553 2011-12-25  Jim Meyering  <meyering@redhat.com>
24555         gitlog-to-changelog: do not clump multi-paragraph entries
24556         Identical header lines (date,name,email+coauthors) are suppressed,
24557         thus putting all entries with those same characteristics under
24558         a single header.  However, when a log entry consists of two or
24559         more paragraphs, it may not be clear where it starts and ends.
24560         This change makes it so that such an entry is always separated
24561         from others by a header line, even when that header would
24562         otherwise be suppressed.
24563         * build-aux/gitlog-to-changelog: Implement the above.
24564         Inspired by a related request from Stefano Lattarini in
24565         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29456
24567 2011-12-25  Paul Eggert  <eggert@cs.ucla.edu>
24569         announce-gen: fix `cmd' typo in diagnostic
24570         * build-aux/announce-gen (print_changelog_deltas): Fix typo in
24571         diagnostic: a missing '$' meant that the command was not output.
24573 2011-12-23  Jim Meyering  <meyering@redhat.com>
24575         test-framework-sh: distribute init.sh
24576         * modules/test-framework-sh (EXTRA_DIST): Append init.sh.
24577         Otherwise, "make -C gnulib-tests check" (at least in grep) would
24578         fail due to the lack of init.sh.
24580         maint: remove explicit Files: tests/init.sh; depend on test-framework-sh
24581         * modules/atexit-tests: Rather than listing tests/init.sh,
24582         now that there's a module for it, simply depend on that new module.
24583         * modules/closein-tests: Likewise.
24584         * modules/exclude-tests: Likewise.
24585         * modules/getcwd-tests: Likewise.
24586         * modules/perror-tests: Likewise.
24587         * modules/pread-tests: Likewise.
24588         * modules/pwrite-tests: Likewise.
24589         * modules/vc-list-files-tests: Likewise.
24590         * modules/verify-tests: Likewise.
24591         * modules/xalloc-die-tests: Likewise.
24592         * modules/xstrtoimax-tests: Likewise.
24593         * modules/xstrtol-tests: Likewise.
24594         * modules/xstrtoll-tests: Likewise.
24595         * modules/xstrtoumax-tests: Likewise.
24596         * modules/yesno-tests: Likewise.
24598 2011-12-22  Jim Meyering  <meyering@redhat.com>
24600         test-framework-sh: add minimal tests of init.sh's compare function
24601         * modules/test-framework-sh-tests: New file.
24602         * tests/test-init.sh: New file.
24604         test-framework-sh: new module
24605         * modules/test-framework-sh: New file.
24606         * MODULES.html.sh (Support for maintaining and releasing projects):
24607         List it.
24609         init.sh: do not emit simulated diff output to stderr
24610         * tests/init.sh (compare_dev_null_): Print to stdout, not stderr.
24612 2011-12-22  Reuben Thomas  <rrt@sc3d.org>
24614         .gitignore: ignore gnulib.dvi and regex.info
24615         * doc/.gitignore:add gnulib.dvi and regex.info
24617 2011-12-22  Jim Meyering  <meyering@redhat.com>
24619         init.sh: correct previous change
24620         * tests/init.sh (compare): My previous change was wrong.
24621         Don't clobber "$?".  Spotted by Stefano Lattarini and Pádraig Brady.
24623         init.sh: avoid unwarranted test failure when using "set -e"
24624         * tests/init.sh (compare): Ignore nonzero exit from compare_dev_null_.
24625         Otherwise, in a test script that uses "set -e" (like many in vc-dwim)
24626         a use like "compare exp out" would get evoke an unconditional failure.
24628 2011-12-21  Alfred M. Szmidt  <ams@gnu.org>
24630         bootstrap: fix it to honor $ACLOCAL_FLAGS once again
24631         The 2011-12-17 change, commit 767ccd40, replaced a manual invocation
24632         of aclocal that used explicit $ACLOCAL_FLAGS with an invocation of
24633         autoreconf that did not.
24634         * build-aux/bootstrap: Use $ACLOCAL_FLAGS when invoking autoreconf.
24635         Reported by Mats Erik Andersson <gnu@gisladisker.se>.
24637 2011-12-17  Jim Meyering  <meyering@redhat.com>
24639         bootstrap: remove some now-unneeded code
24640         This script arose back when gnulib-tool was young.
24641         Since then, it has seen improvements that render much of this
24642         script unnecessary.  In particular, it can now make symlinks
24643         to the files it uses.  Also, I no longer see as much value in
24644         marking files as read-only via comments.
24645         If you relied on the symlink-creation feature of the preceding
24646         version of this script, you can get most of that functionality
24647         by adding the --symlink option to the definition of
24648         gnulib_tool_option_extras in your bootstrap.conf file.
24649         * build-aux/bootstrap (AUTOPOINT, AUTORECONF): Factor out definitions.
24650         Run autopoint and libtoolize *before* gnulib-tool.
24651         After it, run an abbreviated autoreconf, rather than a loop around
24652         all tools.
24653         (slirp, bt_mark_as_generated): Remove functions.
24655 2011-12-18  Paul Eggert  <eggert@cs.ucla.edu>
24657         ftoastr: fix typo
24658         * lib/ftoastr.h: Fix misspelling in comment.
24660 2011-12-18  Reuben Thomas  <rrt@sc3d.org>
24662         * top/README-release: fix punctuation.
24664 2011-12-17  Jim Meyering  <meyering@redhat.com>
24666         bootstrap: correct the recent buildreq change
24667         The 2011-12-07 commit, 39f5f1e4, omitted some '*'s, and thus
24668         had no effect.
24669         * build-aux/bootstrap (buildreq): Bracket each search term with
24670         "*...*", so that the shell "case" statement works as intended.
24671         Add comments.
24673 2011-12-17  Bernhard Voelker  <mail@bernhard-voelker.de>
24675         build: let bootstrap resort to wget when downloading .po files
24676         * build-aux/bootstrap (download_po_files): Fallback to wget when
24677         downloading the .po files via rsync fails.  This is necessary to
24678         bootstrap from behind a strict firewall.
24680 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
24682         stdint: don't assume C++11 when compiling with g++
24683         Problem reported for glibc 2.14 and g++ by Alexander V. Lukyanov in
24684         <http://lists.gnu.org/r/bug-gnulib/2011-12/msg00099.html>.
24685         * m4/stdint.m4 (gl_STDINT_H): Don't go to extra work to make it
24686         work also in C++ before C++11, as that improperly inhibits
24687         generating a substitute stdint.h for that case.
24689 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
24691         alloca: protect comment from gnulib-tool
24692         * lib/alloca.c: Change "GCC version 2" to "GCC 2" in comment, so
24693         that gnulib-tool doesn't think it's a license, and munge it to
24694         say "GCC version 3".
24696 2011-12-15  Ludovic Courtès  <ludo@gnu.org>  (tiny change)
24698         localcharset: Use an absolute path in TESTS_ENVIRONMENT.
24699         * modules/localcharset (LOCALCHARSET_TESTS_ENVIRONMENT): Use
24700         $(abs_top_builddir) instead of $(top_builddir).
24702 2011-12-14  Alex Nelson  <ajnelson@cs.ucsc.edu>  (tiny change)
24704         strftime-tests: also test nanoseconds
24705         * tests/test-strftime.c (T): Add a test of %N.
24707 2011-12-13  Paul Eggert  <eggert@cs.ucla.edu>
24709         inttypes, stdint: add C++11 support
24710         C++11 says there's no need to define __STDC_CONSTANT_MACROS etc.
24711         when including inttypes.h and stdint.h.  Support this change to
24712         the standard.
24713         * doc/posix-headers/inttypes.texi (inttypes.h):
24714         * doc/posix-headers/stdint.texi (stdint.h): Document this.
24715         * lib/inttypes.in.h (__STDC_FORMAT_MACROS) [! __cplusplus]:
24716         Define if not defined already, for the benefit of pre-C++11 hosts.
24717         Define the standard format macros (e.g., PRId8) always.
24718         * lib/stdint.in.h (__STDC_CONSTANT_MACROS, __STDC_LIMIT_MACROS):
24719         Likewise, if __cpluspus.  Define the standard constant and limit
24720         macros (e.g., INT8_C, INT8_MAX) always.
24721         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Do not define
24722         GL_TRIGGER_STDC_LIMIT_MACROS or __STDC_LIMIT_MACROS; no longer needed.
24723         * m4/stdint.m4 (gl_STDINT_H): Update comments about these macros.
24724         * tests/test-inttypes.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS)
24725         (__STDC_FORMAT_MACROS): Do not define, since we assume C++11 API now.
24726         * tests/test-stdint.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS):
24727         Likewise.
24729 2011-12-12  Paul Eggert  <eggert@cs.ucla.edu>
24731         nonblocking tests: Fix test failure on Linux/PPC.
24732         Suggested by Prerna Saxena in
24733         <http://lists.gnu.org/r/bug-gnulib/2011-12/msg00080.html>.
24734         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/PPC64]:
24735         Set to 1100000.
24737 2011-12-12  Jim Meyering  <meyering@redhat.com>
24739         argmatch: don't hard-code `' when listing valid option arguments
24740         * lib/argmatch.c (argmatch_valid): Don't hard-code `%s'.  Instead,
24741         use the quote function to add quotes.  Use fputs rather than
24742         fprintf for the format string with no format directive.
24744 2011-12-07  Eric Blake  <eblake@redhat.com>
24746         bootstrap: detect tools required by gnulib-tool
24747         * build-aux/bootstrap (buildreq): Provide minimum implicit
24748         dependencies.
24749         * DEPENDENCIES: Mention patch as a prereq.
24751 2011-12-04  Bruno Haible  <bruno@clisp.org>
24753         sethostname: Port to Windows platforms.
24754         * lib/sethostname.c: Provide an alternate implementation for Windows
24755         platforms.
24756         * tests/test-sethostname2.c (geteuid): Redefine on Cygwin.
24757         (main): Skip the test if sethostname() fails with EPERM. On Windows
24758         platforms, don't check the result of gethostname().
24760 2011-12-04  Bruno Haible  <bruno@clisp.org>
24761             Jim Meyering  <meyering@redhat.com>
24763         tests: Avoid spurious error message on platforms without mktemp program.
24764         * tests/init.sh (mktempd_): Run mktemp in a subcommand.
24766 2011-12-04  Bruno Haible  <bruno@clisp.org>
24768         sethostname: Fix documentation.
24769         * doc/glibc-functions/sethostname.texi: Move the Solaris problem to the
24770         "not fixed" section.
24772 2011-12-03  Bruno Haible  <bruno@clisp.org>
24774         gnulib-tool: Verify that the License field is present and non-empty.
24775         * gnulib-tool (func_get_license_raw): New function, extracted from
24776         func_get_license.
24777         (func_get_license): Use it. Warn if the module is not a test module and
24778         has no license.
24779         Suggested by Jim Meyering.
24781 2011-12-03  Bruno Haible  <bruno@clisp.org>
24783         sethostname tests: Fix link error on mingw.
24784         * tests/test-sethostname1.c: New file, extracted from
24785         tests/test-sethostname.c.
24786         * tests/test-sethostname2.c: New file, extracted from
24787         tests/test-sethostname.c.
24788         * tests/test-sethostname.c: Remove file.
24789         * modules/sethostname-tests (Files): Add tests/test-sethostname1.c,
24790         tests/test-sethostname2.c. Remove tests/test-sethostname.c.
24791         (Depends-on): Add gethostname.
24792         (Makefile.am): Compile both test-sethostname1 and test-sethostname2.
24793         Link the latter with $(GETHOSTNAME_LIB).
24795         sethostname tests: Fix compilation error on mingw.
24796         * tests/test-sethostname.c: Don't include <sys/types.h>.
24797         (geteuid): Use a dummy value without uid_t.
24798         * modules/sethostname-tests (Depends-on): Remove sys_types.
24800         sethostname tests: Avoid a gcc warning.
24801         * tests/test-sethostname.c (main): Remove an unused variable.
24803         Tweak last commit.
24804         * modules/sethostname-tests (Files): Sort by decreasing importance.
24805         (configure.ac): Check for geteuid.
24806         * tests/test-sethostname.c (main): Emit error messages to stderr. Skip
24807         the test when there's nothing to test. Drop an unnecessary cast.
24808         Improve an error message. Verify that the final sethostname() call
24809         succeeds.
24811 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
24813         Add a test suite for the sethostname module.
24814         * modules/sethostname-tests: New file.  A test program
24815         for the sethostname module.
24816         * tests/test-sethostname.c: Likewise.
24818 2011-12-03  Bruno Haible  <bruno@clisp.org>
24820         Tweak last commit.
24821         * lib/unistd.in.h (sethostname): Keep declarations in alphabetic order.
24822         Fix preprocessor directives indentation. Fix typos.
24823         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Keep alphabetic order.
24824         * modules/unistd (Makefile): Likewise.
24826 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
24828         Integrate the sethostname module into unistd.
24829         * lib/unistd.in.h: Integrate the SETHOSTNAME preprocessor handling
24830         into the unistd.h header.
24831         * m4/unistd_h.m4: Setup the autoconf handling for the SETHOSTNAME
24832         preprocessor directives.
24833         * modules/unistd: Setup the Makefile substitutions of the
24834         SETHOSTNAME preprocessor directives.
24836 2011-12-03  Bruno Haible  <bruno@clisp.org>
24838         Tweak last commit.
24839         * lib/sethostname.c: Don't include <string.h>.
24840         (sethostname): No need to copy the argument string to the stack. Don't
24841         call clearerr. Preserve errno when fprintf failed.
24842         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): Comment about HOST_NAME_MAX.
24843         Don't invoke AC_REPLACE_FUNCS.
24844         * modules/sethostname (Link): Remove empty section.
24845         * doc/glibc-functions/sethostname.texi: Gnulib does not fix the ENOSYS
24846         failure problem.
24848 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
24850         New module 'sethostname'.
24851         * lib/sethostname.c (sethostname): New file.  Provide sethostname
24852         for systems that lack it.
24853         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): New file.  Detection of
24854         sethostname declaration and function.
24855         * modules/sethostname: New file.  Define the sethostname module.
24857 2011-12-03  Bruno Haible  <bruno@clisp.org>
24859         Tweak last commit.
24860         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Trim blank line.
24862 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
24864         Split the HOST_NAME_MAX detection into a separate m4 macro.
24865         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Make this a separate
24866         macro so it can be used by the pending sethostname module.
24868 2011-12-03  Bruno Haible  <bruno@clisp.org>
24870         Fix module descriptions syntax.
24871         * modules/argv-iter (License): Fix syntax.
24872         * modules/di-set (License): Likewise.
24873         * modules/ino-map (License): Likewise.
24874         Reported by Stefano Lattarini <stefano.lattarini@gmail.com>.
24876 2011-12-02  Paul Eggert  <eggert@cs.ucla.edu>
24878         stdalign: port to Clang 3.0
24879         Problem reported by Simon Josefsson in
24880         <http://lists.gnu.org/r/bug-gnulib/2011-12/msg00005.html>.
24881         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Clang 3.0,
24882         which has <stdalign.h> but which does not define alignof.
24883         * m4/stdalign.m4 (gl_STDALIGN_H): Check for Clang 3.0's problem.
24885 2011-12-01  Eric Blake  <eblake@redhat.com>
24887         mktempd: silence dd usage
24888         * build-aux/mktempd (rand_bytes): Silence dd.
24890 2011-11-30  Simon Josefsson  <simon@josefsson.org>
24892         manywarnings: Don't mention gcc version in docstring.
24893         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Doc fix.  Suggested by
24894         Jim Meyering <meyering@redhat.com>.
24896 2011-11-30  Jim Meyering  <meyering@redhat.com>
24898         hash: mark a few floating point constants with "f" suffix
24899         * lib/hash.c (DEFAULT_GROWTH_THRESHOLD, DEFAULT_GROWTH_FACTOR)
24900         (DEFAULT_SHRINK_THRESHOLD, DEFAULT_SHRINK_FACTOR): Mark literal
24901         floating point constants with "f", since they're destined to be
24902         saved/used as "float"s.
24904 2011-11-29  Paolo Bonzini  <bonzini@gnu.org>
24906         float tests: Correct and re-enable assertion about LDBL_MIN_EXP.
24907         * tests/test-float.c (test_long_double): Correct and re-enable the
24908         assertion about LDBL_MIN_EXP that was disabled on 2011-08-31.
24910 2011-11-29  Matthew Wala  <wala1@illinois.edu>  (tiny change)
24912         Avoid subtracting two pointers that don't point into the same block.
24913         * lib/argp-help.c (hol_append): Reorder pointer subtractions so that
24914         only pointers into the same memory block are subtracted. We cannot
24915         assume that sizeof (ptrdiff_t) == sizeof (void *).
24917 2011-11-29  Eric Blake  <eblake@redhat.com>
24919         maint.mk: add syntax check for use of compare from init.sh
24920         * top/maint.mk (sc_prohibit_reversed_compare_failure): New rule,
24921         moved here from coreutils.
24923         manywarnings: drop -Wunsuffixed-float-constants
24924         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): C99 does not allow
24925         '1.0D', which is the only way to silence this warning for 'double'.
24927 2011-11-29  Jim Meyering  <meyering@redhat.com>
24929         hash: mark compute_bucket_size with the pure attribute
24930         * lib/hash.c (compute_bucket_size): Use _GL_ATTRIBUTE_PURE.
24932         quotearg, propername: correct pragma guard expression
24933         * lib/quotearg.c: Enable pragma for gcc-4.6 and newer, not 4.3 and newer.
24934         * lib/propername.c: Likewise.  Reported by Bernhard Voelker.
24936 2011-11-28  Jim Meyering  <meyering@redhat.com>
24938         propername: do not mark proper_name with the const attribute
24939         * lib/propername.h (proper_name): Do *not* mark as _GL_ATTRIBUTE_CONST,
24940         since it examines data pointed to by its parameter.
24941         * lib/propername.c (proper_name): Instead, add a pragma to suppress
24942         the suggestion from -Wsuggest-attribute=const.
24944         propername: mark one more function as const
24945         * lib/propername.h (proper_name): Mark as _GL_ATTRIBUTE_CONST.
24947 2011-11-27  Jim Meyering  <meyering@redhat.com>
24949         mark functions with const and pure attributes
24951         Mark functions per suggestions from gcc-4.6 when using these options:
24952         -Wsuggest-attribute=pure -Wsuggest-attribute=const.
24953         Use gnulib's _GL_ATTRIBUTE_PURE and _GL_ATTRIBUTE_CONST macros.
24954         Follow these guidelines: when possible, apply the attribute to
24955         an extern declaration, not to its definition.  Apply it to the
24956         definition only when the definition is static.
24957         * lib/argmatch.h (argmatch, argmatch_to_argument): Mark.
24958         * lib/argv-iter.h (argv_iter_n_args): Likewise.
24959         * lib/base64.h (isbase64): Likewise.
24960         * lib/basename-lgpl.c (last_component, base_len): Likewise.
24961         * lib/c-ctype.h (c_isascii, c_isalnum, c_isalpha): Likewise.
24962         (c_isblank, c_iscntrl, c_isdigit, c_islower, c_isgraph): Likewise.
24963         (c_isprint, c_ispunct, c_isspace, c_isupper, c_isxdigit): Likewise.
24964         (c_tolower, c_toupper): Likewise.
24965         * lib/c-strcase.h (c_strcasecmp, c_strncasecmp): Likewise.
24966         * lib/chdir-long.c (find_non_slash): Likewise.
24967         * lib/dirname.h (base_len, dir_len, last_component): Likewise.
24968         * lib/exclude.h (fnmatch_pattern_has_wildcards): Likewise.
24969         * lib/file-type.h (file_type): Likewise.
24970         * lib/filenamecat-lgpl.c (longest_relative_suffix): Likewise.
24971         * lib/filevercmp.c (verrevcmp): Likewise.
24972         * lib/freadahead.h (freadahead): Likewise.
24973         * lib/fts.c (fts_maxarglen): Likewise.
24974         * lib/hash-pjw.h (hash_pjw): Likewise.
24975         * lib/hash-triple.h (triple_hash_no_name, triple_compare_ino_str):
24976         * lib/hash.c (is_prime, next_prime): Likewise.
24977         * lib/hash.c (hash_get_n_buckets, hash_get_n_buckets_used): Likewise.
24978         (hash_get_n_entries, hash_get_max_bucket_length): Likewise.
24979         (hash_table_ok, hash_get_first, hash_string): Likewise.
24980         (compute_bucket_size): Likewise.
24981         * lib/i-ring.h (i_ring_empty): Likewise.
24982         * lib/isnan.c (isnanl): Likewise.
24983         * lib/math.h (isnanl, rpl_isnanl): Likewise.
24984         * lib/memcasecmp.h (memcasecmp): Likewise.
24985         * lib/memchr2.h (memchr2): Likewise.
24986         * lib/memcmp2.h (memcmp2): Likewise.
24987         * lib/parse-datetime.y (lookup_zone): Likewise.
24988         * lib/sockets.h (gl_sockets_startup, gl_sockets_cleanup)
24989         [!WINDOWS_SOCKETS]: Likewise.
24990         * lib/strnlen1.h (strnlen1): Likewise.
24991         * lib/uniwidth.in.h (uc_width): Likewise.
24992         * lib/quotearg.c: Add pragma to avoid unwarranted suggestion from
24993         gcc's -Wsuggest-attribute=pure for quoting_options_from_style.
24994         (quoting_options_from_style): Add a comment.
24995         * lib/propername.h (proper_name): Add a comment.
24997 2011-11-27  Bruno Haible  <bruno@clisp.org>
24999         Remove unused macros from !_LIBC code in glibc-borrowed files.
25000         * lib/fnmatch.c (STRCOLL): Remove macro.
25001         * lib/fnmatch_loop.c (STRCOLL): Remove undef.
25002         * lib/glob.c (__stat, __readdir64): Remove macros.
25003         * lib/tempname.c (__open64, __xstat64): Remove macros.
25004         Suggested by Paul Eggert.
25006 2011-11-27  Bruno Haible  <bruno@clisp.org>
25008         getcwd: Fix link error on MSVC 9.
25009         * modules/getcwd (Depends-on): Add readdir, rewinddir.
25011 2011-11-27  Bruno Haible  <bruno@clisp.org>
25013         Don't set REPLACE_FOO to 1 if HAVE_FOO is 0.
25014         * m4/opendir.m4 (gl_FUNC_OPENDIR): Don't set REPLACE_OPENDIR to 1 if
25015         HAVE_OPENDIR is 0.
25016         * m4/closedir.m4 (gl_FUNC_CLOSEDIR): Don't set REPLACE_CLOSEDIR to 1 if
25017         HAVE_CLOSEDIR is 0.
25018         * m4/dup2.m4 (gl_FUNC_DUP2): Don't set REPLACE_DUP2 to 1 if HAVE_DUP2
25019         is 0.
25020         * m4/dup3.m4 (gl_FUNC_DUP3): Update comments.
25022 2011-11-27  Bruno Haible  <bruno@clisp.org>
25024         getcwd: Fix bug from 2011-08-17.
25025         * m4/getcwd.m4 (gl_FUNC_GETCWD): Set REPLACE_GETCWD to 1 only on
25026         platforms that need it.
25027         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Consider a return
25028         code of 4 to be a failure, not a success. This ensures that
25029         REPLACE_GETCWD becomes 1 on OpenBSD 4.9 and NetBSD 5.1.
25031 2011-11-27  Bruno Haible  <bruno@clisp.org>
25033         binary-io tests: Avoid test failure on mingw when libtool is used.
25034         * tests/test-binary-io.c (main): Don't remove t-bin-out2.tmp here.
25035         Don't verify the size of t-bin-out1.tmp here.
25036         * tests/test-binary-io.sh: Verify it here.
25037         Reported by Simon Josefsson.
25039 2011-11-26  Bruno Haible  <bruno@clisp.org>
25041         Fix conflict between two instantiations of module 'unistd'.
25042         * gnulib-tool (func_emit_autoconf_snippet): Substitute
25043         ${include_guard_prefix} also in the autoconf snippet.
25044         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Don't set GNULIB_UNISTD_H_GETOPT.
25045         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Don't initialize
25046         GNULIB_UNISTD_H_GETOPT.
25047         * modules/getopt-posix (configure.ac): Set the
25048         GNULIB_${gl_include_guard_prefix}_UNISTD_H_GETOPT variable.
25049         * modules/getopt-gnu (configure.ac): Likewise.
25050         * modules/unistd (Makefile.am): Change the substitution value of
25051         GNULIB_UNISTD_H_GETOPT to depend on the include guard prefix.
25052         Reported by Simon Josefsson.
25054 2011-11-25  Bruno Haible  <bruno@clisp.org>
25056         pagealign_alloc: Doc and comments.
25057         * doc/posix-functions/posix_memalign.texi: Refer to the pagealign_alloc
25058         module.
25059         * lib/pagealign_alloc.c (pagealign_alloc): Add comment.
25061 2011-11-25  Jim Meyering  <meyering@redhat.com>
25063         test-update-copyright.sh: avoid false-positive failure
25064         * tests/test-update-copyright.sh: Use $TMP.? (not $TMP.*), to work
25065         around false positive failure on Cygwin/Windows.  The latter was
25066         matching erroneously-created files with names like
25067         update-copyright.test-ex.4.bak.  Reported by Simon Josefsson.
25069 2011-11-25  Simon Josefsson  <simon@josefsson.org>
25071         valgrind-tests.m4: Avoid breakage if valgrind on bash fails.
25072         * m4/valgrind-tests.m4: Check that the parameters that will be
25073         used works, not just a subset of them.  Reported by Bruno Haible
25074         <bruno@clisp.org>.
25076 2011-11-24  Jim Meyering  <meyering@redhat.com>
25078         test-stdalign.c: comment out long double tests
25079         * tests/test-stdalign.c: Don't try to reduce alignment of long double
25080         variables.  That provokes errors like this from gcc-4.7.0 20111124:
25081         error: '_Alignas' specifiers cannot reduce alignment of \
25082         'static_longdouble_alignas'.
25084 2011-11-22  Jim Meyering  <meyering@redhat.com>
25086         init.sh: make "compare /dev/null FILE" output more readable
25087         * tests/init.sh (compare_): Document the preferred order of arguments.
25088         (emit_diff_u_header_): New function.
25089         (compare_dev_null_): Emit a simulated diff, rather than just the
25090         contents of the unexpected file.  Suggestion from Bruno Haible.
25092 2011-11-21  Jim Meyering  <meyering@redhat.com>
25093             Eric Blake  <eblake@redhat.com>
25095         init.sh: work around OSF/1 5.1's mishandling of /dev/null
25096         * tests/init.sh: Make our compare function slightly more portable.
25097         Reported by Bruno Haible in
25098         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/4020
25100 2011-11-21  Simon Josefsson  <simon@josefsson.org>
25102         * m4/gnulib-common.m4 (_Noreturn): Check that _MSC_VER is defined
25103         before using it, in code that ends up in config.h.
25105 2011-11-20  Bruno Haible  <bruno@clisp.org>
25107         getcwd: Work around getcwd bug on AIX 5..7.
25108         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Require
25109         AC_CANONICAL_HOST. Assign exit code 31 to the bug seen on AIX 5.1..7.1.
25110         Use a different value for gl_cv_func_getcwd_path_max. Move the
25111         definition of HAVE_PARTLY_WORKING_GETCWD from here...
25112         * m4/getcwd.m4 (gl_FUNC_GETCWD): ... to here. Invoke
25113         gl_FUNC_GETCWD_PATH_MAX also when $gl_cv_func_getcwd_null is 'no'.
25114         Define HAVE_MINIMALLY_WORKING_GETCWD.
25115         * lib/getcwd.c (__getcwd): Don't use the system's getcwd on platforms
25116         where it is not even minimally working, that is, on AIX.
25117         * tests/test-getcwd.c (test_long_name): Distinguish the same cases as
25118         m4/getcwd-path-max.m4.
25119         (main): Update exit code computation.
25120         * doc/posix-functions/getcwd.texi: Mention list of platforms where
25121         getcwd does not handle long file names.
25123 2011-11-20  Bruno Haible  <bruno@clisp.org>
25125         getcwd: Fix bug from 2009-09-10.
25126         * m4/getcwd.m4 (gl_FUNC_GETCWD): Treat "guessing yes" like "yes", not
25127         like "no".
25129 2011-11-20  Simon Josefsson  <simon@josefsson.org>
25131         * m4/manywarnings.m4: Add more warnings from gcc 4.6.2.
25133 2011-11-20  Bruno Haible  <bruno@clisp.org>
25135         fma tests: Avoid shadowing local variables.
25136         * tests/test-fma2.h (test_function): Reduce scope of x, y, z, result,
25137         expected.
25139 2011-11-20  Bruno Haible  <bruno@clisp.org>
25141         copysignf tests: Fix.
25142         * tests/test-copysignf.c: Fix signature check.
25144 2011-11-20  Bruno Haible  <bruno@clisp.org>
25146         fma: Remove unused code.
25147         * lib/fma.c (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): Remove
25148         unused macros.
25150 2011-11-20  Bruno Haible  <bruno@clisp.org>
25152         sethostname: Fix doc about AIX.
25153         * doc/glibc-functions/sethostname.texi: Drop mention that AIX 5.1 lacks
25154         sethostname; it has it.
25156         sethostname: Mention more portability problems.
25157         * doc/glibc-functions/sethostname.texi: Mention the missing declaration
25158         problem.
25159         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
25161 2011-11-19  Bruno Haible  <bruno@clisp.org>
25163         Depend on module fcntl-h when AT_FDCWD is used.
25164         * modules/utimens (Depends-on): Add fcntl-h.
25165         * modules/areadlinkat (Depends-on): Likewise.
25166         * modules/areadlinkat-with-size (Depends-on): Likewise.
25167         * modules/faccessat (Depends-on): Likewise.
25168         * modules/fchmodat (Depends-on): Likewise.
25169         * modules/fchownat (Depends-on): Likewise.
25170         * modules/getcwd (Depends-on): Likewise.
25171         * modules/mkdirat (Depends-on): Likewise.
25172         * modules/mkfifoat (Depends-on): Likewise.
25173         * modules/readlinkat (Depends-on): Likewise.
25174         * modules/symlinkat (Depends-on): Likewise.
25175         * modules/dup2-tests (Depends-on): Likewise.
25176         * modules/fdutimensat-tests (Depends-on): Likewise.
25177         * modules/futimens-tests (Depends-on): Likewise.
25179 2011-11-19  Bruno Haible  <bruno@clisp.org>
25181         euidaccess: Update a comment.
25182         * lib/euidaccess.c: Update comment about platforms with faccessat.
25184 2011-11-19  Bruno Haible  <bruno@clisp.org>
25186         openat: Fix file list.
25187         * modules/openat (Files): Remove lib/at-func.c.
25189 2011-11-19  Bruno Haible  <bruno@clisp.org>
25191         fstatat: Simplify.
25192         * lib/fstatat.c (AT_FUNC_NAME): Define as fstatat. On platforms where
25193         gnulib should define rpl_fstatat, there is a
25194         "#define fstatat rpl_fstatat" in <sys/stat.h>.
25196 2011-11-19  Bruno Haible  <bruno@clisp.org>
25198         Ensure 'inline' can be used in tests/test-utimens-common.h.
25199         * modules/fdutimensat-tests (configure.ac): Require AC_C_INLINE.
25200         * modules/futimens-tests (configure.ac): Likewise.
25201         * modules/utimens-tests (configure.ac): Likewise.
25202         * modules/utimensat-tests (configure.ac): Likewise.
25204 2011-11-19  Simon Josefsson  <simon@josefsson.org>
25206         * lib/hash.c (hash_insert): Use hash_insert_if_absent,
25207         not hash_insert0.
25208         (hash_insert_if_absent): Doc fix.
25210 2011-11-19  Simon Josefsson  <simon@josefsson.org>
25212         * m4/readline.m4 (gl_FUNC_READLINE): Check for readline/history.h.
25214 2011-11-18  Paul Eggert  <eggert@cs.ucla.edu>
25216         test-getcwd: disambiguate exit status
25217         * tests/test-getcwd.c (test_long_name): Return 0..7.
25218         (main): Exit with an unambiguous exit status.  The old
25219         code yielded a mysterious mixture of two failure codes.
25221         fstatat: fix configuration bug on mingw, OpenBSD 4, Solaris 8
25222         * lib/fstatat.c (AT_FUNC_NAME): Use HAVE_FSTAT, not
25223         HAVE_WORKING_FSTATAT_ZERO_FLAG, to decide whether to define
25224         rpl_fstatat or fstatat.  This should fix the other problem
25225         reported by Kai Habel in
25226         <http://lists.gnu.org/r/bug-gnulib/2011-11/msg00237.html>.
25227         A similar problem was reported for OpenBSD 4.6 by Mats Erik Andersson
25228         <http://lists.gnu.org/r/bug-gnulib/2011-11/msg00239.html>
25229         and I reproduced it on a Solaris 8 host we still have in production.
25231 2011-11-18  Jim Meyering  <meyering@redhat.com>
25233         hash: deprecate poorly-named hash_insert0: use hash_insert_if_absent
25234         * lib/hash.c (hash_insert_if_absent): Rename from hash_insert0.
25235         Add a sentence to the comment.
25236         (hash_insert0): New function that simply calls hash_insert_if_absent.
25237         * lib/hash.h (hash_insert_if_absent): Declare it.
25238         (hash_insert0): Add deprecation attribute.
25239         (_GL_ATTRIBUTE_DEPRECATED): Define.
25240         * lib/di-set.c (di_set_insert): Use hash_insert_if_absent,
25241         not hash_insert0.
25242         * NEWS: Mention it, even though it's not really an incompatible change.
25244 2011-11-18  Dagobert Michelsen  <dam@opencsw.org>  (tiny change)
25246         openat: avoid compilation failure due to lack of <errno.h> inclusion
25247         * lib/openat.c: Include <errno.h>.
25249 2011-11-17  Paul Eggert  <eggert@cs.ucla.edu>
25251         * modules/getcwd (Depends-on): Add fdopendir.
25252         This fixes one of the two problems reported by Kai Habel in
25253         <http://lists.gnu.org/r/bug-gnulib/2011-11/msg00237.html>.
25255         modules/crypto/gc-*: simplify dependencies and fix stdalign.h bug
25256         stdalign problem reported by Ian Beckwith in
25257         <http://lists.gnu.org/r/bug-gnulib/2011-11/msg00238.html>.
25258         * modules/crypto/gc-arcfour (Depends-on):
25259         Depend conditionally on crypto/arcfour.
25260         * modules/crypto/gc-arctwo (Depends-on):
25261         Depend conditionally on crypto/arctwo.
25262         * modules/crypto/gc-des (Depends-on):
25263         Depend conditionally on crypto/des.
25264         * modules/crypto/gc-hmac-md5 (Depends-on):
25265         Depend conditionally on crypto/hmac-md5.
25266         * modules/crypto/gc-hmac-sha1 (Depends-on):
25267         Depend conditionally on crypto/hmac-sha1.
25268         * modules/crypto/gc-md2 (Depends-on): Remove stdint, minmax.
25269         * modules/crypto/gc-md4 (Depends-on):
25270         Depend conditionally on crypto/md4.
25271         * modules/crypto/gc-md5 (Depends-on):
25272         Depend conditionally on crypto/md5.
25273         * modules/crypto/gc-rijndael (Depends-on):
25274         Depend conditionally on crypto/rijndael.
25275         * modules/crypto/gc-sha1 (Depends-on):
25276         Depend conditionally on crypto/sha1.
25277         * modules/crypto/gc-arcfour:
25278         * modules/crypto/gc-arctwo:
25279         * modules/crypto/gc-des:
25280         * modules/crypto/gc-hmac-md5:
25281         * modules/crypto/gc-hmac-sha1:
25282         * modules/crypto/gc-md2:
25283         * modules/crypto/gc-md4:
25284         * modules/crypto/gc-md5:
25285         * modules/crypto/gc-rijndael:
25286         * modules/crypto/gc-sha1:
25287         (Files, Depends-on, configure.ac): Remove now-unnecessary stuff,
25288         now that the conditional dependencies do the work for us.
25290 2011-11-17  Jim Meyering  <meyering@redhat.com>
25292         tests: factor st_ctime-comparison out of two headers
25293         * tests/test-utimens-common.h (ctime_compare): Define.
25294         * tests/test-futimens.h (test_futimens): Replace open-coded equivalent.
25295         * tests/test-lutimens.h (test_lutimens): Likewise.
25296         * tests/test-utimens.h (test_utimens): Likewise.
25298         test-getcwd: don't leave behind a confdir3/ directory upon interrupt
25299         Invoke the test program via an init.sh-using wrapper.
25300         * tests/test-getcwd.sh: New file.
25301         * modules/getcwd-tests (Files): Add it.
25302         (Makefile.am) [TESTS]: Invoke the shell script wrapper.
25304 2011-11-01  Gary V. Vaughan  <gary@gnu.org>
25306         gitlog-to-changelog: support multi-author commits.
25307         The FSF cares about keeping track of all authors of patches to its
25308         projects, but Git doesn't provide obvious support for multi-author
25309         changesets. Consensus seems to be forming around the use of extra
25310         Signed-off-by inspired lines in the log message formatted as
25311         `Co-authored-by: A U Thor <email@example.com>' for round-tripping
25312         multi-author commits between version control systems.
25313         * gitlog-to-changelog: Extract `Co-authored-by:' lines from the git
25314         log message and output in standard ChangeLog multi-author format.
25315         Reported by Peter Rosin <peda@lysator.liu.se>
25317 2011-11-15  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
25318             Bruno Haible  <bruno@clisp.org>
25320         Fix some modules' file list.
25321         * modules/fstatat (Files): Add m4/lstat.m4.
25322         * modules/openat (Files): Likewise.
25323         * modules/unlinkat (Files): Likewise.
25325 2011-11-15  Gary V. Vaughan  <gary@gnu.org>
25327         maint.mk: fix tight-scope.mk generation in VPATH builds.
25328         * top/maint.mk (tight-scope.mk): Make sure to prefix file
25329         reference with $(srcdir) so that the file is found correctly even
25330         when running `make syntax-check' in a VPATH build.
25332 2011-11-13  Bruno Haible  <bruno@clisp.org>
25333             Jim Meyering  <meyering@redhat.com>
25335         Silence successful tests that use 'compare' on AIX, HP-UX, Solaris.
25336         * tests/init.sh (compare): Remove "No differences encountered" or
25337         synonymous output from the 'diff' program.
25339 2011-11-13  Bruno Haible  <bruno@clisp.org>
25341         Makefile: Tweak indentation.
25342         * Makefile: Use tab as first character in every line that contains rule
25343         commands.
25345 2011-11-13  Bruno Haible  <bruno@clisp.org>
25347         Syntax check for copyright statements.
25348         * check-copyright: New file.
25349         * Makefile (sc_check_copyright): New rule.
25351 2011-11-13  Simon Josefsson  <simon@josefsson.org>
25353         * build-aux/git-version-gen: Add --prefix to configure the tag
25354         match string.
25356 2011-11-13  Simon Josefsson  <simon@josefsson.org>
25358         * build-aux/git-version-gen: Add --help and --version.
25360 2011-11-12  Jim Meyering  <meyering@redhat.com>
25362         revamp the other test-exclude?.sh scripts to use init.sh, too
25363         * tests/test-exclude1.sh: Use init.sh.
25364         * tests/test-exclude2.sh: Likewise.
25365         * tests/test-exclude3.sh: Likewise.
25366         * tests/test-exclude4.sh: Likewise.
25367         * tests/test-exclude5.sh: Likewise.
25368         * tests/test-exclude6.sh: Likewise.
25369         * tests/test-exclude7.sh: Likewise.
25370         * tests/test-exclude8.sh: Likewise.
25371         * modules/exclude-tests (Files): List init.sh.
25373         test-exclude2.sh, test-exclude5.sh: fail if test-exclude fails
25374         These shell scripts ignored failure of the binary test-exclude,
25375         so making the latter return 77 didn't cause them to be skipped.
25376         * tests/test-exclude5.sh: Exit with test-exclude's error status
25377         when that program fails.  Revamp to use init.sh.
25378         * tests/test-exclude2.sh: Likewise.
25380         test-exclude: fix a typo
25381         * tests/test-exclude.c (main): Test for "leading_dir", not "leading-dir".
25383 2011-11-11  Bruno Haible  <bruno@clisp.org>
25385         obstack: Fix compilation error on MSVC 9.
25386         * lib/obstack.c (print_and_abort): Declare with _Noreturn specifier.
25388 2011-11-11  Jim Meyering  <meyering@redhat.com>
25390         test-exclude: skip tests rather than failing on deficient systems
25391         * tests/test-exclude.c (main): Skip tests that use FNM_CASEFOLD
25392         and FNM_LEADING_DIR on systems that lack the definitions.  This affects
25393         at least Solaris 9.  Reported and diagnosed by Dagobert Michelsen in
25394         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/3947/focus=3950
25396 2011-11-10  Bruno Haible  <bruno@clisp.org>
25398         ptsname_r test: Avoid gcc warning on glibc systems.
25399         * tests/test-ptsname_r.c (null_ptr): New function.
25400         (test_errors): Use it.
25402 2011-11-10  Bruno Haible  <bruno@clisp.org>
25404         ptsname_r: Avoid compilation error on OSF/1 5.1.
25405         * lib/stdlib.in.h (ptsname_r): Override if REPLACE_PTSNAME_R is 1.
25406         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_PTSNAME_R.
25407         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): Set REPLACE_PTSNAME_R if the
25408         function is not declared or incompatibly declared.
25409         * modules/stdlib (Makefile.am): Substitute REPLACE_PTSNAME_R.
25410         * modules/ptsname_r (Depends-on, configure.ac): Update.
25411         * doc/glibc-functions/ptsname_r.texi: Mention the OSF/1 problems.
25413 2011-11-10  Bruno Haible  <bruno@clisp.org>
25415         fstatat: Make cross-compilation guess succeed everywhere except on AIX.
25416         * m4/fstatat.m4 (gl_FUNC_FSTATAT): Require AC_CANONICAL_HOST.
25417         When cross-compiling, guess yes on all platforms except AIX.
25418         Reported by Ludovic Courtès <ludo@gnu.org>.
25420 2011-11-09  Bruno Haible  <bruno@clisp.org>
25422         ptsname_r tests: Fix bugs.
25423         * tests/test-ptsname_r.c (test_errors): Change return type to 'void'.
25424         Fix ptsname_r calls. Reduce loop rounds to a reasonable amount.
25426 2011-11-09  Paul Eggert  <eggert@cs.ucla.edu>
25428         fstatat: work with cross-compilation
25429         Problem reported by Ludovic Courtès in
25430         <http://lists.gnu.org/r/bug-gnulib/2011-11/msg00136.html>.
25431         * m4/fstatat.m4 (gl_FUNC_FSTATAT): When cross-compiling, report
25432         "cross-compiling" and assume the bug is present.  Replace
25433         FSTATAT_ZERO_FLAG_BROKEN with HAVE_WORKING_FSTATAT_ZERO_FLAG with
25434         an inverted sense, to be more conservative about our assumptions.
25435         * lib/fstatat.c (rpl_fstatat): Adjust to renamed macro.
25437 2011-11-09  Bruno Haible  <bruno@clisp.org>
25439         Improve MODULES.html output.
25440         * modules/mkfifoat (Description): Use the word "function".
25441         * modules/readlinkat (Description): Likewise.
25442         * modules/symlinkat (Description): Likewise.
25444 2011-11-09  Eric Blake  <eblake@redhat.com>
25446         ptsname_r-tests: new test module
25447         * modules/ptsname_r-tests: New module.
25448         * tests/test-ptsname_r.c: New file.
25450         ptsname_r: new module
25451         * modules/ptsname_r: New module.
25452         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): New file.
25453         * lib/ptsname.c (__ptsname_r): Split...
25454         * lib/ptsname_r.c: ...into new file.
25455         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
25456         (gl_STDLIB_H_DEFAULTS): Set witness defaults.
25457         * modules/stdlib (Makefile.am): Substitute witnesses.
25458         * lib/stdlib.in.h (ptsname_r): Declare it.
25459         * doc/glibc-functions/ptsname_r.texi (ptsname_r): Document it.
25460         * MODULES.html.sh (Misc): Likewise.
25461         * modules/ptsname (Depends-on): Alter dependency.
25462         * doc/posix-functions/ptsname.texi (ptsname): Mention new module.
25464 2011-11-09  Jim Meyering  <meyering@redhat.com>
25466         announce-gen: be more concise when there's only one URL+tarball
25467         * build-aux/announce-gen (get_tool_versions): When you distribute
25468         only one type of tarball, combine the first two "Here are..."
25469         sections and make the key-checking grammar independent of
25470         how many tarballs there are.
25472 2011-11-09  Eric Blake  <eblake@redhat.com>
25474         openpty: provide a stub on mingw
25475         * lib/pty.in.h (includes): Provide forward declarations.
25476         * lib/openpty.c (openpty) [mingw]: Provide ENOSYS stub.
25478         raise: fix mingw handling of SIGPIPE
25479         * lib/sigprocmask.c (_gl_raise_SIGPIPE): Provide a return value.
25481 2011-11-08  Bruno Haible  <bruno@clisp.org>
25483         More conditional dependencies.
25484         * modules/faccessat (Depends-on): Add conditions.
25485         * modules/fchmodat (Depends-on): Likewise.
25486         * modules/fchownat (Depends-on): Likewise.
25487         * modules/fstatat (Depends-on): Likewise.
25488         * modules/mkfifoat (Depends-on): Likewise.
25489         * modules/readlinkat (Depends-on): Likewise.
25490         * modules/symlinkat (Depends-on): Likewise.
25491         * modules/unlinkat (Depends-on): Likewise.
25492         * modules/utimensat (Depends-on): Likewise.
25493         * modules/mkdirat (Depends-on): Add sys_stat. Add conditions.
25494         * modules/linkat (Depends-on): Refine the conditions.
25495         * modules/renameat (Depends-on): Likewise.
25497 2011-11-08  Bruno Haible  <bruno@clisp.org>
25499         faccessat: Move AC_LIBOBJ invocation to module description.
25500         * m4/faccessat.m4 (gl_PREREQ_FACCESSAT): New macro.
25501         (gl_FUNC_FACESSAT): Don't test for access() here. Move AC_LIBOBJ
25502         invocation from here...
25503         * modules/faccessat (configure.ac): ... to here. Invoke
25504         gl_PREREQ_FACCESSAT.
25506 2011-11-08  Bruno Haible  <bruno@clisp.org>
25508         faccessat: Simplify autoconf macro.
25509         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Don't require gl_FUNC_OPENAT,
25510         gl_FUNC_EUIDACCESS.
25512 2011-11-08  Bruno Haible  <bruno@clisp.org>
25514         renameat: Fix dependencies.
25515         * modules/renameat (Depends-on): Add stdbool.
25517 2011-11-08  Bruno Haible  <bruno@clisp.org>
25519         mkfifoat: Fix module description.
25520         * modules/mkfifoat (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR,
25521         not gl_UNISTD_MODULE_INDICATOR.
25523 2011-11-08  Bruno Haible  <bruno@clisp.org>
25525         fstatat: Remove unused dependency.
25526         * modules/fstatat (Depends-on): Remove fstat.
25528 2011-11-08  Simon Josefsson  <simon@josefsson.org>
25530         GNUmakefile: behave when Makefile is missing.
25531         * top/GNUmakefile: Always initialize _build-aux and _autoreconf.
25533 2011-11-08  Bruno Haible  <bruno@clisp.org>
25535         openat: Conditionalize dependencies.
25536         * lib/openat.c: Reduce the scope of some #includes.
25537         * modules/openat (Depends-on): Add conditions.
25539 2011-11-07  Jim Meyering  <meyering@redhat.com>
25541         maint.mk: extract GPG key ID without using a temporary file
25542         * top/maint.mk (gpg_key_ID): Extract GPG key ID from signed tag, but
25543         without using a temporary file.  Based on a suggestion from Werner Koch
25544         in http://thread.gmane.org/gmane.comp.encryption.gpg.devel/16496
25546 2011-11-07  Eric Blake  <eblake@redhat.com>
25548         grantpt: fix typo
25549         * lib/stdlib.in.h (grantpt): Check correct function.
25551         maint.mk: silence new syntax check
25552         * top/maint.mk (sc_prohibit_dirent_without_use): Add missing @.
25554 2011-11-06  Bruno Haible  <bruno@clisp.org>
25556         Doc about floating-point and math API.
25557         * doc/posix-headers/float.texi: Mention problem with FLT_ROUNDS.
25558         * doc/posix-headers/math.texi: Mention problem with math_errhandling.
25560 2011-11-06  Bruno Haible  <bruno@clisp.org>
25562         stdalign tests: Skip the test when compiled by Sun C.
25563         * tests/test-stdalign.c (main): Skip the test on Sun C.
25565 2011-11-06  Bruno Haible  <bruno@clisp.org>
25567         ansi-c++-opt: Complete the 2011-06-05 change.
25568         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is found but
25569         does not support namespaces, set the variable to "no", not to ":".
25571 2011-11-06  Paul Eggert  <eggert@cs.ucla.edu>
25573         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Sun review ID.
25575 2011-11-06  Bruno Haible  <bruno@clisp.org>
25577         copysignl: Fix result for zero argument on HP-UX 11 with HP C.
25578         * lib/copysignl.c (compute_minus_zerol) [HP-UX]: New function.
25579         (minus_zerol) [HP-UX]: New macro.
25580         (unary_minus) [HP-UX]: New function.
25581         (copysignl) [HP-UX]: Use unary_minus function.
25583 2011-11-06  Bruno Haible  <bruno@clisp.org>
25585         ldexp, ldexpf, ldexpl: Enhance tests.
25586         * tests/test-ldexp.h: New file, combining code from tests/test-ldexp.c
25587         and tests/test-ldexpl.c.
25588         * tests/test-ldexpl.c: (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO,
25589         LDEXP, MIN_EXP, MAX_EXP): New macros.
25590         Include test-ldexp.h.
25591         (main): Just call test_function.
25592         * tests/test-ldexp.c: Include float.h, isnand-nolibm.h, minus-zero.h,
25593         infinity.h, nan.h.
25594         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
25595         MAX_EXP): New macros.
25596         Include test-ldexp.h.
25597         (x, y): Remove variables.
25598         (main): Just call test_function.
25599         * tests/test-ldexpf.c: Include float.h, isnanf-nolibm.h, minus-zero.h,
25600         infinity.h, nan.h.
25601         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
25602         MAX_EXP): New macros.
25603         Include test-ldexp.h.
25604         (x, y): Remove variables.
25605         (main): Just call test_function.
25606         * modules/ldexpl-tests (Files): Add tests/test-ldexp.h.
25607         * modules/ldexp-tests (Files): Add tests/test-ldexp.h,
25608         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
25609         (Depends-on): Add isnand-nolibm, signbit, float.
25610         * modules/ldexpf-tests (Files): Add tests/test-ldexp.h,
25611         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
25612         (Depends-on): Add isnanf-nolibm, signbit, float.
25614 2011-11-06  Bruno Haible  <bruno@clisp.org>
25616         math tests: Cosmetics.
25617         * tests/test-math-c++.cc: Reorder declarations.
25619 2011-11-05  Bruno Haible  <bruno@clisp.org>
25621         fma*: Simplify test.
25622         * tests/test-fma2.h (FORGIVE_GLIBC_BUG): Remove macro.
25623         (test_function): Remove all if (FORGIVE_GLIBC_BUG) statements.
25625         Tests for module 'fmal'.
25626         * modules/fmal-tests: New file.
25627         * tests/test-fmal1.c: New file.
25628         * tests/test-fmal2.c: New file.
25630         New module 'fmal'.
25631         * lib/math.in.h (fmal): New declaration.
25632         * lib/fmal.c: New file.
25633         * m4/fmal.m4: New file.
25634         * m4/math_h.m4 (gl_MATH_H): Test whethern fmal is declared.
25635         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAL, HAVE_FMAL, REPLACE_FMAL.
25636         * modules/math (Makefile.am): Substitute GNULIB_FMAL, HAVE_FMAL,
25637         REPLACE_FMAL.
25638         * modules/fmal: New file.
25639         * doc/posix-functions/fmal.texi: Mention the new module and the various
25640         bugs.
25642         Tests for module 'fmaf'.
25643         * modules/fmaf-tests: New file.
25644         * tests/test-fmaf1.c: New file.
25645         * tests/test-fmaf2.c: New file.
25647         New module 'fmaf'.
25648         * lib/math.in.h (fmaf): New declaration.
25649         * lib/fmaf.c: New file.
25650         * m4/fmaf.m4: New file.
25651         * m4/math_h.m4 (gl_MATH_H): Test whethern fmaf is declared.
25652         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAF, HAVE_FMAF, REPLACE_FMAF.
25653         * modules/math (Makefile.am): Substitute GNULIB_FMAF, HAVE_FMAF,
25654         REPLACE_FMAF.
25655         * modules/fmaf: New file.
25656         * doc/posix-functions/fmaf.texi: Mention the new module and the various
25657         bugs.
25659         Tests for module 'fma'.
25660         * modules/fma-tests: New file.
25661         * tests/test-fma1.c: New file.
25662         * tests/test-fma1.h: New file.
25663         * tests/test-fma2.c: New file.
25664         * tests/test-fma2.h: New file.
25666         New module 'fma'.
25667         * lib/math.in.h (fma): New declaration.
25668         * lib/fma.c: New file.
25669         * m4/fma.m4: New file.
25670         * m4/fegetround.m4: New file.
25671         * m4/math_h.m4 (gl_MATH_H): Test whethern fma is declared.
25672         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMA, HAVE_FMA, REPLACE_FMA.
25673         * modules/math (Makefile.am): Substitute GNULIB_FMA, HAVE_FMA,
25674         REPLACE_FMA.
25675         * modules/fma: New file.
25676         * doc/posix-functions/fma.texi: Mention the new module and the various
25677         bugs.
25679         Extend gl_MATHFUNC.
25680         * m4/mathfunc.m4 (gl_MATHFUNC): Accept an 4th parameter of INCLUDES.
25681         Support 'void' as argument type.
25682         * m4/rint.m4 (gl_FUNC_RINT): Update gl_MATHFUNC invocation.
25684 2011-11-05  Jim Meyering  <meyering@redhat.com>
25686         maint.mk: also prohibit inclusion of dirent.h without use
25687         * top/maint.mk (sc_prohibit_dirent_without_use): New rule.
25689 2011-11-05  Bruno Haible  <bruno@clisp.org>
25691         ldexpl tests: Avoid test failure on MSVC 9.
25692         * tests/test-ldexpl.c (main): Use a temporary variable for the expected
25693         value. Needed in order to enforce the conversion from a value greater
25694         than LDBL_MAX to Infinity.
25696 2011-11-05  Bruno Haible  <bruno@clisp.org>
25698         New modules 'at-internal', 'openat-h', split off from module 'openat'.
25699         * modules/at-internal: New file, extracted from modules/openat.
25700         * modules/openat-h: New file.
25701         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_OPENAT. Don't
25702         invoke gl_PREREQ_OPENAT and gl_MODULE_INDICATOR.
25703         * modules/openat (Description): Add reference to POSIX function.
25704         (Files): Remove lib/openat.h, lib/openat-proc.c.
25705         (Depends-on): Add at-internal, openat-h. Remove fdopendir, gettext-h,
25706         intprops, unistd.
25707         (configure.ac): Remove AC_LIBOBJ of openat-proc. Invoke
25708         gl_PREREQ_OPENAT, gl_MODULE_INDICATOR here. Invoke
25709         gl_FCNTL_MODULE_INDICATOR.
25710         (Include): Remove unistd.h, openat.h.
25711         * modules/areadlinkat (Files): Add lib/at-func.c.
25712         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
25713         openat-die, openat-h, save-cwd.
25714         * modules/areadlinkat-with-size (Files): Add lib/at-func.c.
25715         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
25716         openat-die, openat-h, save-cwd, unistd.
25717         * modules/faccessat (Files): Add lib/at-func.c, lib/openat-priv.h.
25718         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
25719         openat-h, save-cwd. Remove fcntl-h, openat.
25720         * modules/fchmodat (Files): Remove lib/openat.h.
25721         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
25722         openat, stdbool, unistd.
25723         * modules/fchownat (Files): Remove lib/openat.h.
25724         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
25725         openat, stdbool, sys_stat.
25726         * modules/fdopendir (Files): Remove lib/openat-priv.h,
25727         lib/openat-proc.c.
25728         (Depends-on): Add at-internal.
25729         (condigure.ac): Remove AC_LIBOBJ of openat-proc.
25730         * modules/fstatat (Files): Remove lib/openat.h.
25731         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
25732         stdbool, unistd.
25733         * modules/fts (Depends-on): Add openat-h.
25734         * modules/linkat (Depends-on): Add at-internal, openat-h. Remove
25735         openat.
25736         * modules/mkdirat (Files): Remove lib/openat.h.
25737         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
25738         openat, stdbool, sys_stat.
25739         * modules/mkfifoat (Files): Add lib/at-func.c.
25740         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
25741         openat-h, save-cwd. Remove fcntl-h, openat.
25742         * modules/openat-die (Depends-on): Add openat-h. Remove openat.
25743         * modules/readlinkat (Files): Add lib/at-func.c.
25744         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
25745         openat-h, save-cwd. Remove fcntl-h, openat.
25746         * modules/renameat (Depends-on): Add at-internal, openat-h. Remove
25747         openat.
25748         * modules/selinux-at (Files): Add lib/at-func.c.
25749         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
25750         fcntl-h, openat-die, openat-h, save-cwd, unistd. Remove openat.
25751         * modules/symlinkat (Files): Add lib/at-func.c.
25752         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
25753         openat-h, save-cwd. Remove fcntl-h, openat.
25754         * modules/unlinkat (Files): Remove lib/openat.h.
25755         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
25756         stdbool.
25757         * modules/utimensat (Files): Add lib/at-func.c.
25758         (Depends-on): Add at-internal, dosname, errno, fchdir, fcntl-h,
25759         openat-die, openat-h, save-cwd.
25760         * modules/fchownat-tests (Depends-on): Add openat-h. Remove openat.
25761         * modules/fdutimensat-tests (Depends-on): Add openat.
25762         * modules/fstatat-tests (Depends-on): Add openat-h.
25763         * modules/readlinkat-tests (Depends-on): Add openat.
25764         * modules/symlinkat-tests (Depends-on): Add openat.
25766 2011-11-05  Bruno Haible  <bruno@clisp.org>
25768         openat: Include <stdbool.h>.
25769         * lib/openat.c: Include <stdbool.h>.
25771 2011-11-04  Bruno Haible  <bruno@clisp.org>
25773         fchownat, renameat, unlinkat: Fix dependencies.
25774         * modules/fchownat (Depends-on): Add fstatat.
25775         * modules/renameat (Depends-on): Likewise.
25776         * modules/unlinkat (Depends-on): Likewise.
25778 2011-11-04  Paul Eggert  <eggert@cs.ucla.edu>
25780         openat: remove direct dependency on dirent
25781         * lib/openat.h: Don't include <dirent.h>; it's no longer needed,
25782         and hasn't been needed ever since fdopendir was split into its own
25783         module on 2009-08-31.
25784         * modules/openat (Depends-on): Remove dirent.
25786 2011-11-04  Bruno Haible  <bruno@clisp.org>
25788         renameat: Optimize code size.
25789         * modules/renameat (configure.ac): Don't compile at-func2.c if
25790         REPLACE_RENAMEAT is 1.
25792 2011-11-04  Bruno Haible  <bruno@clisp.org>
25794         openat tests: Fix file list.
25795         * modules/openat-tests (Files): Add tests/test-open.h.
25797 2011-11-04  Bruno Haible  <bruno@clisp.org>
25799         openat, fchmodat, fchownat, linkat, renameat: Fix dependencies.
25800         * modules/fchmodat (Depends-on): Add openat-die.
25801         * modules/fchownat (Depends-on): Likewise.
25802         * modules/linkat (Depends-on): Likewise.
25803         * modules/renameat (Depends-on): Likewise.
25804         * modules/openat (Depends-on): Add dirent.
25806 2011-11-04  Jim Meyering  <meyering@redhat.com>
25808         at-func*.c: fix comments
25809         * lib/at-func2.c: Correct/improve first-line comment.
25810         * lib/at-func.c: Correct grammar in first-line comment.
25812 2011-11-04  Bruno Haible  <bruno@clisp.org>
25814         New module 'mkdirat', split off from module 'openat'.
25815         * m4/mkdirat.m4: New file. extracted from m4/openat.m4.
25816         * m4/openat.m4 (gl_FUNC_OPENAT): Don't require gl_SYS_STAT_H_DEFAULTS.
25817         Don't test for mkdirat. Don't set GNULIB_MKDIRAT, HAVE_MKDIRAT.
25818         * modules/mkdirat: New file, extracted from modules/openat.
25819         * modules/openat (Files): Remove lib/mkdirat.c.
25820         (Depends-on): Remove mkdir.
25821         (configure.ac): Remove AC_LIBOBJ of mkdirat.
25822         (Include): Remove <sys/stat.h>.
25823         * modules/mkdirat-tests: New file, extracted from modules/openat-tests.
25824         * modules/openat-tests (Files): Remove tests/test-mkdirat.c,
25825         tests/test-mkdir.h.
25826         (Depends-on): Remove ignore-value.
25827         (Makefile.am): Remove rules for test-mkdirat.
25828         * doc/posix-functions/mkdirat.texi: Mention module 'mkdirat' instead
25829         of module 'openat'.
25830         * NEWS: Mention the change.
25832 2011-11-04  Bruno Haible  <bruno@clisp.org>
25834         closedir: Avoid warning on mingw.
25835         * lib/closedir.c: Include <unistd.h>.
25837 2011-11-04  Bruno Haible  <bruno@clisp.org>
25839         New module 'fstatat', split off from module 'openat'.
25840         * lib/openat.h (statat, lstatat): Enable only if GNULIB_FSTATAT is
25841         defined.
25842         * m4/fstatat.m4: New file. extracted from m4/openat.m4.
25843         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FSTATAT. Don't invoke
25844         gl_FUNC_FSTATAT.
25845         (gl_FUNC_FSTATAT): Moved to m4/fstatat.m4.
25846         * modules/fstatat: New file, extracted from modules/openat.
25847         * modules/openat (Files): Remove lib/fstatat.c.
25848         (Depends-on): Remove lstat.
25849         (configure.ac): Remove AC_LIBOBJ of fstatat.
25850         * modules/fstatat-tests: New file, extracted from modules/openat-tests.
25851         * modules/openat-tests (Files): Remove tests/test-fstatat.c,
25852         tests/test-lstat.h, tests/test-stat.h.
25853         (Depends-on): Remove getcwd-lgpl.
25854         (Makefile.am): Remove rules for test-fstatat.
25855         * doc/posix-functions/fstatat.texi: Mention module 'fstatat' instead
25856         of module 'openat'.
25857         * NEWS: Mention the change.
25858         * modules/getcwd (Depends-on): Add fstatat.
25859         * modules/linkat (Depends-on): Likewise.
25860         * modules/mkfifoat-tests (Depends-on): Likewise.
25861         * modules/utimensat (Depends-on): Add fstatat. Remove openat.
25863 2011-11-03  Bruno Haible  <bruno@clisp.org>
25865         New module 'unlinkat', split off from module 'openat'.
25866         * m4/unlinkat.m4: New file, extracted from m4/openat.m4.
25867         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_UNLINKAT,
25868         REPLACE_UNLINKAT, HAVE_UNLINKAT. Don't test for unlinkat.
25869         * modules/unlinkat: New file, extracted from modules/openat. Correct
25870         the dependency conditions.
25871         * modules/openat (Files): Remove lib/unlinkat.c.
25872         (Depends-on): Remove rmdir, unlink.
25873         (configure.ac): Remove AC_LIBOBJ of unlinkat.
25874         * modules/unlinkat-tests: New file, extracted from modules/openat-tests.
25875         * modules/openat-tests (Files): Remove tests/test-unlinkat.c,
25876         tests/test-rmdir.h, tests/test-unlink.h.
25877         (Depends-on): Remove unlinkdir.
25878         (Makefile.am): Remove rules for test-unlinkat.
25879         * doc/posix-functions/unlinkat.texi: Mention module 'unlinkat' instead
25880         of module 'openat'.
25881         * NEWS: Mention the change.
25882         * modules/linkat-tests (Depends-on): Add unlinkat.
25883         * modules/mkfifoat-tests (Depends-on): Likewise.
25884         * modules/readlinkat-tests (Depends-on): Likewise.
25886 2011-11-02  Bruno Haible  <bruno@clisp.org>
25888         New module 'fchmodat', split off from module 'openat'.
25889         * lib/openat.h (chmodat, lchmodat): Enable only if GNULIB_FCHMODAT is
25890         defined.
25891         * m4/fchmodat.m4: New file, extracted from m4/openat.m4.
25892         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHMODAT. Don't test
25893         for fchmodat, lchmod. Don't set HAVE_FCHMODAT.
25894         * modules/fchmodat: New file, extracted from modules/openat.
25895         * modules/openat (Files): Remove lib/fchmodat.c.
25896         (configure.ac): Remove AC_LIBOBJ of fchmodat.
25897         * modules/fchmodat-tests: New file, extracted from modules/openat-tests.
25898         * modules/openat-tests (Files): Remove tests/test-fchmodat.c.
25899         (Makefile.am): Remove rules for test-fchmodat.
25900         * doc/posix-functions/fchmodat.texi: Mention module 'fchmodat' instead
25901         of module 'openat'.
25902         * NEWS: Mention the change.
25904 2011-11-02  Jim Meyering  <meyering@redhat.com>
25906         putenv: indent #definition of "environ" to placate cppi
25907         * lib/putenv.c (environ): Make indentation reflect cpp nesting.
25909         gitlog-to-changelog: provide a ChangeLog-repair mechanism
25910         Git logs are often treated as immutable, because editing them
25911         changes the SHA1 checksums of all descendants.  Thus, errors in
25912         git logs tend to stay there forever.  However, when we generate
25913         a ChangeLog file -- typically for distribution -- from that git log,
25914         we can actually make corrections in the generated file.  The key
25915         lies in recording in machine-readable/applicable form the desired
25916         corrections.  See --help for description and an example.
25917         * build-aux/gitlog-to-changelog (parse_amend_file): New function.
25918         (usage): Describe it; alphabetize option descriptions.
25919         (main): Honor the new option, carefully.
25921 2011-11-01  Jim Meyering  <meyering@redhat.com>
25923         gitlog-to-changelog: avoid an infloop
25924         * build-aux/gitlog-to-changelog: Don't infloop for a commit log
25925         that ends up being empty.
25927 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
25929         * MODULES.html.sh: Fix sed-script shell quoting and locale issues.
25930         (func_module): Replace foo=` ... sed -e COMPLICATED ... ` with
25931         bar=COMPLICATED; foo=` ... sed -e "$bar" ... ` when COMPLICATED
25932         contains (possibly-quoted) backslashes.  This should avoid
25933         all-too-common shell bugs if COMPLICATED contains backslashes in
25934         the "wrong" places.  Reported by David Evans in
25935         <http://lists.gnu.org/r/bug-gnulib/2011-11/msg00013.html>.
25936         When 'sed' uses character ranges like A-Z, invoke it in the C locale,
25937         because we want ASCII ranges.  Is there some reason we don't use
25938         the C locale everywhere in this script?
25939         (func_module, top level): Avoid unwanted pathname expansion when
25940         $repo_url_prefix or $repo_url_suffix_repl contain shell
25941         metacharacters like '?' and '*'.
25943 2011-11-01  Bruno Haible  <bruno@clisp.org>
25945         fchownat: Improve description.
25946         * modules/fchownat (Description): Add link to function.
25948 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
25950         * tests/test-stdalign.c (TEST_ALIGNMENT): Shrink back to 8.
25951         mingw supports alignments only up to 8 (!).  Reported by Bruno Haible in
25952         <http://lists.gnu.org/r/bug-gnulib/2011-11/msg00006.html>.
25953         * doc/posix-headers/stdalign.texi (stdalign.h): Document this.
25955 2011-11-01  Bruno Haible  <bruno@clisp.org>
25957         alignof: Avoid collision with stdalign module.
25958         * lib/alignof.h (alignof): Remove macro.
25959         * NEWS: Mention the change.
25960         Reported by Paul Eggert.
25962 2011-11-01  Bruno Haible  <bruno@clisp.org>
25964         New module 'fchownat', split off from module 'openat'.
25965         * lib/openat.h (chownat, lchownat): Enable only if GNULIB_FCHOWNAT is
25966         defined.
25967         * m4/fchownat.m4: New file, extracted from m4/openat.m4.
25968         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHOWNAT. Don't
25969         invoke gl_FUNC_FCHOWNAT.
25970         (gl_FUNC_FCHOWNAT_DEREF_BUG, gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG,
25971         gl_FUNC_FCHOWNAT): Moved to m4/fchownat.m4.
25972         * modules/fchownat: New file, extracted from modules/openat.
25973         * modules/openat (Files): Remove lib/fchownat.c.
25974         (Depends-on): Remove lchown.
25975         (configure.ac): Remove AC_LIBOBJ of fchownat.
25976         * modules/fchownat-tests: New file, extracted from modules/openat-tests.
25977         * modules/openat-tests (Files): Remove tests/test-fchownat.c,
25978         tests/test-chown.h, tests/test-lchown.h, tests/nap.h.
25979         (Depends-on): Remove mgetgroups, usleep, stat-time.
25980         (configure.ac): Remove test for getegid.
25981         (Makefile.am): Remove rules for test-fchownat.
25982         * doc/posix-functions/fchownat.texi: Mention module 'fchownat' instead
25983         of module 'openat'.
25984         * NEWS: Mention the change.
25986 2011-10-31  Paul Eggert  <eggert@cs.ucla.edu>
25988         stdalign: port better to MSVC and to Sun C 5.11
25989         This fixes some of the problems reported by Bruno Haible in
25990         <http://lists.gnu.org/r/bug-gnulib/2011-10/msg00300.html>.
25991         * doc/posix-headers/stdalign.texi (stdalign.h): Document more
25992         shortcomings of MSVC and of Sun C 5.11.
25993         * lib/stdalign.in.h (_Alignas): Omit bogus extra parenthesis
25994         around __declspec arg.
25995         * modules/stdalign-tests (Files): Add tests/macros.h.
25996         * tests/test-stdalign.c: Do not include <stdlib.h>; no longer needed.
25997         Include macros.h, for ASSERT.
25998         (DECLARE_ALIGNED): Remove.
25999         (TEST_ALIGNMENT): Define to 16 if alignment is supported (more likely
26000         to catch bug), and to 1 if not (simplifies the rest of the code).
26001         (CHECK_STATIC): Always declare the alignment test vars; that's simpler.
26002         (CHECK_AUTO): Remove.
26003         (CHECK_ALIGNED): Check only the alignment of the static vars,
26004         since auto var alignment isn't supported by Sun C 5.11.
26005         (CHECK_TYPES): Remove.  All uses replaced by inline code, so that
26006         ASSERT failures are easier to diagnose.
26008 2011-10-31  Bruno Haible  <bruno@clisp.org>
26010         doc about some IRIX 5.3 problems.
26011         * doc/posix-functions/getpwnam_r.texi: Mention incompatible declaration
26012         on IRIX 5.3.
26013         * doc/posix-headers/poll.texi: Mention missing nfds_t on IRIX 5.3.
26014         * doc/posix-functions/ptsname.texi: Mention missing declaration on IRIX
26015         5.3.
26016         * doc/posix-functions/grantpt.texi: Likewise.
26017         * doc/posix-functions/unlockpt.texi: Likewise.
26018         * doc/posix-functions/lgamma.texi: Likewise.
26019         * doc/posix-functions/nextafter.texi: Likewise.
26020         * doc/posix-functions/remainder.texi: Likewise.
26021         * doc/posix-functions/select.texi: Mention misplaced declaration on
26022         IRIX 5.3.
26023         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
26025 2011-10-31  Dmitry V. Levin  <ldv@altlinux.org>
26027         gitlog-to-changelog: fix git-log invocation.
26028         git-log mishandles date strings before 1970-01-01 UTC, and there is
26029         no use to specify --since=1970-01-01 by default anyway.
26030         * build-aux/gitlog-to-changelog: By default, when no --since option
26031         was given, do not specify explicit --since option to git-log.
26033 2011-10-30  Dmitry V. Levin  <ldv@altlinux.org>
26035         gitlog-to-changelog: new option --append-dot.
26036         * build-aux/gitlog-to-changelog: New option --append-dot, makes the
26037         first non-blank line of each commit message terminated with a dot.
26039 2011-10-30  Bruno Haible  <bruno@clisp.org>
26041         ffsl, ffsll: Avoid compilation error due to 'restrict'.
26042         * lib/ffsl.h: Include <config.h>.
26043         Suggested by Tom G. Christensen <tgc@jupiterrise.com>.
26045 2011-10-30  Jim Meyering  <meyering@redhat.com>
26047         GNUmakefile: reenable "make syntax-check" for most projects
26048         Since Friday's commit 05e2d798, "maint.mk: don't maintain a second
26049         build-aux variable", "syntax-check" would do nothing but succeed with
26050         the "No version control files detected..." diagnostic (unless you
26051         happened to override _build-aux via cfg.mk).
26052         * top/GNUmakefile (_autoreconf, _build-aux): Move default definitions
26053         to precede inclusion of maint.mk.  Otherwise, these variables would
26054         be used undefined in any project that does not override the default.
26056 2011-10-29  Dmitry V. Levin  <ldv@altlinux.org>
26058         gitlog-to-changelog: treat a message with only blank lines as empty.
26059         * build-aux/gitlog-to-changelog: Move the code that removes leading and
26060         trailing blank lines before the code that issues a warning about an
26061         empty commit message.
26063 2011-10-30  Jim Meyering  <meyering@redhat.com>
26065         test-parse-datetime.c: avoid new DST-related false positive test failure
26066         * tests/test-parse-datetime.c (gmt_offset): Determine the "gmt_offset"
26067         based on the time/date we'll convert, not the current time.
26068         Otherwise, the moment we cross a DST boundary like today's in
26069         Europe, (CEST to CET), that offset ends up being one hour off.
26071 2011-10-27  Bruno Haible  <bruno@clisp.org>
26073         fstat: Tweak documentation.
26074         * modules/fstat (Description): More precise description.
26076 2011-10-27  Bruno Haible  <bruno@clisp.org>
26078         Update documentation regarding 'largefile' module.
26079         * doc/posix-functions/fstat.texi: Tweak wording.
26080         * doc/posix-functions/opendir.texi: Mention that the module fixes the
26081         problems with huge directories and/or small ino_t types.
26082         * doc/posix-functions/readdir.texi: Likewise.
26083         * doc/posix-functions/rewinddir.texi: Likewise.
26085 2011-10-28  Gary V. Vaughan  <gary@gnu.org>
26087         maint.mk: don't maintain a second build-aux variable.
26088         * maint.mk (build_aux): Removed.  The maintainer-makefile module
26089         depends on GNUmakefile, which already maintains a cfg.mk
26090         overridable $(_build-aux) for projects with a non-standard
26091         build-aux directory location, although without the $(srcdir)
26092         prefix.  Use that variable consistently instead of introducing a
26093         second one.  Adjust all call sites.
26095 2011-10-27  Paul Eggert  <eggert@cs.ucla.edu>
26097         Add stdalign module and use it in other modules.
26098         This is based on a previous proposal by Bruno Haible
26099         <https://lists.gnu.org/r/bug-gnulib/2011-07/msg00226.html>.
26101         stdalign: new module
26102         * doc/posix-headers/stdalign.texi, lib/stdalign.in.h, m4/stdalign.m4:
26103         * modules/stdalign: New files.
26104         * MODULES.html.sh (c1x_core_properties): Add stdalign.
26105         * doc/gnulib.texi (Header File Substitutes): Add stdalign.
26107         stdalign-tests: new module
26108         * modules/stdalign-tests, tests/test-stdalign.c: New files.
26110         argp: use stdalign
26111         * lib/argp-parse.c: Include <stdalign.h>.
26112         (alignof): Remove.
26113         * modules/argp (Depends-on): Add stdalign.
26115         crypto libraries: use stdalign
26116         * lib/md4.c, lib/md5.c, lib/sha1.c, lib/sha256.c, lib/sha512.c:
26117         Include <stdalign.h> and <stdint.h>.  Do not include <stddef.h>.
26118         Do not include <stdlib.h> twice, in md4.c.
26119         (UNALIGNED_P): Simplify by using alignof.  Use uintptr_t, not size_t,
26120         because we are accessing a pointer's bit-pattern, not a size.
26121         * modules/crypto/gc-md4 (Depends-on): Add stdalign.
26122         * modules/crypto/gc-md5, modules/crypto/gc-sha1, modules/crypto/md4:
26123         * modules/crypto/md5, modules/crypto/sha1, modules/crypto/sha256:
26124         * modules/crypto/sha512: Likewise.
26126         sys_socket: use stdalign, not alignof
26127         * lib/sys_socket.in.h: Include <stdalign.h> instead of <alignof.h>.
26128         * modules/sys_socket (Depends-on): Depend on stdalign, not alignof.
26130 2011-10-27  Bruno Haible  <bruno@clisp.org>
26132         raise test: Avoid a test failure on Linux/MIPS.
26133         * tests/test-raise.c (main): Try raising signal 199, not 99. Needed
26134         because 99 is a valid signal on Linux/MIPS.
26136 2011-10-27  Bruno Haible  <bruno@clisp.org>
26138         nonblocking tests: Fix test failure on Linux/MIPS.
26139         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/MIPS]:
26140         Set to 270000.
26142 2011-10-27  Bruno Haible  <bruno@clisp.org>
26144         utimensat: Work around problem on Linux/hppa.
26145         * lib/utimensat.c (rpl_utimensat) [Linux/hppa]: Reject invalid tv_nsec
26146         values.
26147         * doc/posix-functions/utimensat.texi: Mention the problem on Linux/hppa.
26149 2011-10-25  Jim Meyering  <meyering@redhat.com>
26151         maint.mk: fix a bug in sc_prohibit_stddef_without_use
26152         * top/maint.mk (sc_prohibit_stddef_without_use): Don't require / *\(/
26153         after symbols like NULL, size_t, etc.
26154         Reported by Alfred M. Szmidt.
26156         maint.mk: exempt ENODATA from a syntax-check rule
26157         * top/maint.mk (gl_extract_significant_defines_): Also exempt ENODATA
26158         from the sc_prohibit_always-defined_macros syntax-check rule.
26159         Add a comment.  See this for more details:
26160         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739/focus=28795
26162 2011-10-23  Jim Meyering  <meyering@redhat.com>
26164         fts: close parent dir FD before returning from post-traversal fts_read
26165         The problem: the fts-using "mkdir -p A/B; rm -rf A" would attempt to
26166         unlink A, even though an FD open on A remained.  This is suboptimal
26167         (holding a file descriptor open longer than needed), but otherwise not
26168         a problem on Unix-like kernels.  However, on Cygwin with certain Novell
26169         file systems, (see http://cygwin.com/ml/cygwin/2011-10/msg00365.html),
26170         that represents a real problem: it causes the removal of A to fail
26171         with e.g., "rm: cannot remove `A': Device or resource busy"
26173         fts visits each directory twice and keeps a cache (fts_fd_ring) of
26174         directory file descriptors.  After completing the final, FTS_DP,
26175         visit of a directory, RESTORE_INITIAL_CWD intended to clear the FD
26176         cache, but then proceeded to add a new FD to it via the subsequent
26177         FCHDIR (which calls cwd_advance_fd and i_ring_push).  Before, the
26178         final file descriptor would be closed only via fts_close's call to
26179         fd_ring_clear.  Now, it is usually closed earlier, via the final
26180         FTS_DP-returning fts_read call.
26181         * lib/fts.c (restore_initial_cwd): New function, converted from
26182         the macro.  Call fd_ring_clear *after* FCHDIR, not before it.
26183         Update callers.
26184         Reported by Franz Sirl via the above URL, with analysis by Eric Blake
26185         in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739
26187 2011-10-23  Gary V. Vaughan  <gary@gnu.org>
26188             Bruno Haible  <bruno@clisp.org>
26189             Jim Meyering  <jim@meyering.net>
26191         readme-release: improve safety of release prep instructions.
26192         * README-release: Don't git pull all branches when only master
26193         is needed for the release process.
26194         Run make maintainer-clean before changing trees and merging.
26195         Don't try to run ./configure right after git pull in case files
26196         that influence the bootstrap process have changed, move the
26197         ./configure step to after running ./bootstrap.
26198         Don't bootstrap "one last time"... it's the first time!
26200 2011-10-22  Bruno Haible  <bruno@clisp.org>
26202         errno, strerror-override: Support for MSVC 10.
26203         * lib/errno.in.h (GNULIB_defined_ETXTBSY): Remove macro.
26204         (ENOMSG, EIDRM, ENOLINK, EPROTO, EBADMSG, EOVERFLOW, ENOTSUP,
26205         ENETRESET, ECONNABORTED, ECANCELED, EINPROGRESS, EALREADY, ENOTSOCK,
26206         EDESTADDRREQ, EMSGSIZE, EPROTOTYPE, ENOPROTOOPT, EPROTONOSUPPORT,
26207         EOPNOTSUPP, EAFNOSUPPORT, EADDRINUSE, EADDRNOTAVAIL, ENETDOWN,
26208         ENETUNREACH, ECONNRESET, ENOBUFS, EISCONN, ENOTCONN, ETIMEDOUT,
26209         ECONNREFUSED, ELOOP, EHOSTUNREACH, EWOULDBLOCK, ETXTBSY) [Win32]:
26210         Assign values compatible with MSVC 10.
26211         (ENODATA, ENOSR, ENOSTR, ENOTRECOVERABLE, EOWNERDEAD, ETIME, EOTHER):
26212         New macros.
26213         (GNULIB_defined_EWINSOCK): New macro.
26214         * lib/strerror-override.c (strerror_override): Update accordingly.
26215         * lib/strerror-override.h: Likewise.
26216         * lib/w32sock.h (set_winsock_errno): Map those WSA* values that are no
26217         longer equal to the corresponding errno value.
26218         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
26220 2011-10-22  Bruno Haible  <bruno@clisp.org>
26222         perror: Recognize when test program crashes.
26223         * m4/perror.m4 (gl_FUNC_PERROR): If the test program crashes due to
26224         strerror, set gl_cv_func_perror_works to no.
26225         Reported by Daniel Richard G. <skunk@iskunk.org>.
26227         perror: Fix indentation.
26228         * m4/perror.m4 (gl_FUNC_PERROR): Fix indentation.
26230 2011-10-22  Bruno Haible  <bruno@clisp.org>
26232         isfinite, isinf, isnan, signbit: Don't define as a macro in C++.
26233         * lib/math.in.h (_GL_MATH_CXX_REAL_FLOATING_DECL_1,
26234         _GL_MATH_CXX_REAL_FLOATING_DECL_2): nEW MACROS.
26235         (isfinite, isinf, isnan, signbit): In C++, define as overloaded
26236         functions, not as a macro.
26237         * tests/test-math-c++.cc (REAL_FLOATING_CHECK, OVERLOADED_CHECK): New
26238         macros.
26239         (isfinite, isinf, isnan, signbit): Check overloaded functions and
26240         absence of macro.
26241         Suggested by Eric Blake.
26242         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
26244 2011-10-21  Bruno Haible  <bruno@clisp.org>
26246         relocatable-prog-wrapper: Don't leave object files behind.
26247         * build-aux/install-reloc: Re-synchronize list of .o files to be
26248         removed with list of compilation units.
26250 2011-10-20  Bruno Haible  <bruno@clisp.org>
26252         openpty, posix_openpt: Remove code duplication.
26253         * lib/posix_openpt.c: Add comments about platforms, from lib/openpty.c.
26254         * lib/openpty.c: Include <stdlib.h>.
26255         (openpty): Use posix_openpt on all platforms except IRIX.
26256         * modules/openpty (Depends-on): Add posix_openpt. Add conditions.
26258 2011-10-20  Bruno Haible  <bruno@clisp.org>
26260         unlockpt: Detect invalid argument.
26261         * lib/unlockpt.c: Include <fcntl.h>.
26262         (unlockpt): Check whether fd is valid, using fcntl().
26263         * modules/unlockpt (Depends-on): Add fcntl-h.
26265 2011-10-20  Bruno Haible  <bruno@clisp.org>
26267         openpty: Avoid compilation error on AIX 6.1.
26268         * lib/pty.in.h [AIX]: Include <sys/ioctl.h>, for 'struct winsize'.
26270 2011-10-20  Bruno Haible  <bruno@clisp.org>
26272         posix_openpt: Support for OpenBSD.
26273         * lib/posix_openpt.c [OpenBSD]: Include <sys/ioctl.h>, <sys/tty.h>.
26274         (posix_openpt) [OpenBSD]: New code.
26275         * lib/grantpt.c: Include <fcntl.h>.
26276         (grantpt) [OpenBSD]: Only test whether fd is valid, nothing else.
26277         * modules/grantpt (Depends-on): Add fcntl-h.
26279 2011-10-20  Bruno Haible  <bruno@clisp.org>
26281         posix_openpt test: Coding style.
26282         * tests/test-posix_openpt.c: Use GNU coding style.
26284 2011-10-20  Bruno Haible  <bruno@clisp.org>
26286         grantpt: Support --avoid=pt_chown.
26287         * modules/grantpt (Files): Add lib/pty-private.h.
26289 2011-10-20  Bruno Haible  <bruno@clisp.org>
26291         posix_openpt: Fix autoconf macro.
26292         * m4/posix_openpt.m4 (gl_FUNC_POSIX_OPENPT): Fix variable name. Remove
26293         unneeded check for _getpty.
26295 2011-10-20  Bruno Haible  <bruno@clisp.org>
26297         openpty: Update comments.
26298         * lib/openpty.c: Add comments about Minix.
26300 2011-10-19  Eric Blake  <eblake@redhat.com>
26302         openpty: relax license
26303         * modules/openpty (License): Change from LGPLv3+ to LGPLv2+.
26305         pt_chown: use configmake to simplify build
26306         * modules/pt_chown (Makefile.am): Drop line guaranteed by configmake.
26308         ptsname and others: relax license
26309         * modules/grantpt (License): Change from LGPLv3+ to LGPLv2+.
26310         * modules/unlockpt (License): Likewise.
26311         * modules/pt_chown (License): Likewise.
26312         * modules/ptsname (License): Likewise.
26313         * modules/ttyname_r (License): Likewise.
26315 2011-10-19  Jim Meyering  <meyering@redhat.com>
26317         posix_openpt: remove spurious #endif
26318         * lib/posix_openpt.c (posix_openpt): Remove spurious #endif.
26320 2011-10-19  Gary V. Vaughan  <gary@gnu.org>
26322         maint.mk: Respect $(build_aux) in web-manual rule.
26323         * top/maint.mk (web-manual): Find gen-announce script in user's
26324         $(build_aux) directory instead of hard-coding 'build-aux'.
26326 2011-10-19  Bruno Haible  <bruno@clisp.org>
26328         posix_openpt: Fix compilation error.
26329         * lib/posix_openpt.c (posix_openpt): Renamed from posix_openpty.
26330         * doc/posix-functions/posix_openpt.texi: Mention ENOENT error code.
26331         Mention the openpty module as an alternative.
26333 2011-10-19  Bruno Haible  <bruno@clisp.org>
26335         Support for old NeXTstep 3.3 frexp().
26336         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Check for alarm. Limit the
26337         execution time of the test to 5 seconds.
26338         Reported by Daniel Richard G. <skunk@iskunk.org>.
26340 2011-10-19  Bruno Haible  <bruno@clisp.org>
26342         Support for old NeXTstep 3.3 sed.
26343         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): In the sed address
26344         part, use /.../, not \|...|. Escape periods in the header file name.
26345         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
26346         Reported by Daniel Richard G. <skunk@iskunk.org>.
26348 2011-10-18  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
26350         Support for old NeXTstep 3.3 gcc.
26351         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Write
26352         'defined __STRICT_ANSI__', not '__STRICT_ANSI__'.
26353         * lib/math.in.h (_GL_NUM_UINT_WORDS etc.): Likewise.
26354         * lib/spawn.in.h (_Restrict_arr_): Likewise.
26355         * lib/regex.h (_Restrict_arr_): Likewise.
26356         * lib/regex_internal.h (re_token_t): Likewise.
26357         * lib/regexec.c (check_node_accept_bytes): Likewise.
26358         * tests/test-printf-posix.c (func1, func2, func3, func4): Likewise.
26360 2011-10-18  Eric Blake  <eblake@redhat.com>
26362         posix_openpt: new module
26363         * modules/posix_openpt: New module.
26364         * m4/posix_openpt.m4: New file.
26365         * lib/posix_openpt.c: Likewise.
26366         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
26367         (gl_STDLIB_H_DEFAULTS): Set defaults.
26368         * modules/stdlib (Makefile.am): Substitute macros.
26369         * lib/stdlib.in.h (posix_openpt): Declare.
26370         * MODULES.html.sh (systems lacking POSIX:2008): Document it.
26371         * doc/posix-functions/posix_openpt.texi (posix_openpt): Likewise.
26372         * modules/posix_openpt-tests: New test module.
26373         * tests/test-posix_openpt.c: New test.
26375 2011-10-15  Bruno Haible  <bruno@clisp.org>
26377         xstrtoll: Fix compilation failure.
26378         * lib/xstrtol.c (ULLONG_MAX, LLONG_MAX, LLONG_MIN): New macros, taken
26379         from lib/strtol.c.
26380         * doc/posix-headers/limits.texi: Mention missing numerical limits on
26381         some platforms.
26382         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
26384 2011-10-15  Bruno Haible  <bruno@clisp.org>
26386         vasnprintf: Optimize bit search operation.
26387         * lib/vasnprintf.c (divide): Use optimizations from integer_length.c.
26388         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require
26389         gl_DOUBLE_EXPONENT_LOCATION.
26390         * modules/vasnprintf (Files): Add m4/exponentd.m4.
26391         * modules/unistdio/u8-vasnprintf (Files): Likewise.
26392         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
26393         * modules/unistdio/u16-vasnprintf (Files): Likewise.
26394         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
26395         * modules/unistdio/u32-vasnprintf (Files): Likewise.
26396         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
26397         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
26398         * m4/isnand.m4 (gl_PREREQ_ISNAND): Use AC_REQUIRE.
26400 2011-10-15  Bruno Haible  <bruno@clisp.org>
26402         vasnprintf: Fix comments.
26403         * lib/vasnprintf.c (decode_long_double, decode_double): Fix comments.
26405 2011-10-14  Bruno Haible  <bruno@clisp.org>
26407         Tests for module 'integer_length_ll'.
26408         * modules/integer_length_ll-tests: New file.
26409         * tests/test-integer_length_ll.c: New file.
26411         New module 'integer_length_ll'.
26412         * lib/integer_length_ll.c: New file.
26413         * modules/integer_length_ll: New file.
26415 2011-10-14  Bruno Haible  <bruno@clisp.org>
26417         Tests for module 'integer_length_l'.
26418         * modules/integer_length_l-tests: New file.
26419         * tests/test-integer_length_l.c: New file.
26421         New module 'integer_length_l'.
26422         * lib/integer_length_l.c: New file.
26423         * modules/integer_length_l: New file.
26425 2011-10-14  Bruno Haible  <bruno@clisp.org>
26427         Tests for module 'integer_length'.
26428         * modules/integer_length-tests: New file.
26429         * tests/test-integer_length.c: New file.
26431         New module 'integer_length'.
26432         * lib/integer_length.h: New file.
26433         * lib/integer_length.c: New file.
26434         * modules/integer_length: New file.
26436 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
26438         popen: Fix dependency conditions.
26439         * modules/popen (Depends-on, configure.ac): Fix shell syntax error.
26441 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
26443         perror: Fix autoconf test.
26444         * m4/perror.m4 (gl_FUNC_PERROR): In the test program, include
26445         <stdlib.h> and <string.h>.
26447 2011-10-14  Bruno Haible  <bruno@clisp.org>
26449         ffsl: Optimize on 64-bit platforms.
26450         * lib/ffsl.h (FUNC): Omit a test from the last loop round. Do loop
26451         unrolling.
26453 2011-10-13  Bruno Haible  <bruno@clisp.org>
26455         ffsl: Optimize on 32-bit platforms.
26456         * lib/ffsl.h (FUNC): If TYPE has the same representation as 'int', just
26457         use ffs() without a loop.
26459         ffsl, ffsll: Optimize for GCC.
26460         * lib/ffsl.h (FUNC): Use GCC_BUILTIN if defined.
26461         * lib/ffsl.c (GCC_BUILTIN): New macro.
26462         * lib/ffsll.c (GCC_BUILTIN): Likewise.
26464 2011-10-13  Bruno Haible  <bruno@clisp.org>
26466         ffs, bcopy, memset: Support symbol renaming via config.h.
26467         * lib/ffs.c: Include <config.h>.
26468         * lib/bcopy.c: Likewise.
26469         * lib/memset.c: Likewise.
26471 2011-10-10  Bruno Haible  <bruno@clisp.org>
26473         atanl: Simplify for platforms where 'long double' == 'double'.
26474         * lib/atanl.c (atanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
26475         alternative implementation.
26476         * m4/atanl.m4 (gl_FUNC_ATANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
26477         Determine ATANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
26478         * modules/atanl (Depends-on): Add atan. Update conditions.
26480 2011-10-10  Bruno Haible  <bruno@clisp.org>
26482         acosl: Simplify for platforms where 'long double' == 'double'.
26483         * lib/acosl.c (acosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
26484         alternative implementation.
26485         * m4/acosl.m4 (gl_FUNC_ACOSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
26486         Determine ACOSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
26487         * modules/acosl (Depends-on): Add acos. Update conditions.
26489 2011-10-10  Bruno Haible  <bruno@clisp.org>
26491         asinl: Simplify for platforms where 'long double' == 'double'.
26492         * lib/asinl.c (asinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
26493         alternative implementation.
26494         * m4/asinl.m4 (gl_FUNC_ASINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
26495         Determine ASINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
26496         * modules/asinl (Depends-on): Add asin. Update conditions.
26498 2011-10-10  Bruno Haible  <bruno@clisp.org>
26500         tanl: Simplify for platforms where 'long double' == 'double'.
26501         * lib/tanl.c (tanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
26502         implementation.
26503         * m4/tanl.m4 (gl_FUNC_TANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
26504         Determine TANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
26505         * modules/tanl (Depends-on): Add tan. Update conditions.
26506         (configure.ac): Don't compile trigl.c if
26507         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
26509 2011-10-10  Bruno Haible  <bruno@clisp.org>
26511         cosl: Simplify for platforms where 'long double' == 'double'.
26512         * lib/cosl.c (cosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
26513         implementation.
26514         * m4/cosl.m4 (gl_FUNC_COSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
26515         Determine COSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
26516         * modules/cosl (Depends-on): Add cos. Update conditions.
26517         (configure.ac): Don't compile sincosl.c and trigl.c if
26518         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
26520 2011-10-10  Bruno Haible  <bruno@clisp.org>
26522         sinl: Simplify for platforms where 'long double' == 'double'.
26523         * lib/sinl.c (sinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
26524         implementation.
26525         * m4/sinl.m4 (gl_FUNC_SINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
26526         Determine SINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
26527         * modules/sinl (Depends-on): Add sin. Update conditions.
26528         (configure.ac): Don't compile sincosl.c and trigl.c if
26529         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
26531 2011-10-10  Bruno Haible  <bruno@clisp.org>
26533         logl: Simplify for platforms where 'long double' == 'double'.
26534         * lib/logl.c (logl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
26535         implementation.
26536         * m4/logl.m4 (gl_FUNC_LOGL): Require gl_LONG_DOUBLE_VS_DOUBLE.
26537         Determine LOGL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
26538         * modules/logl (Depends-on): Add log. Update conditions.
26540 2011-10-10  Bruno Haible  <bruno@clisp.org>
26542         expl: Simplify for platforms where 'long double' == 'double'.
26543         * lib/expl.c (expl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
26544         implementation.
26545         * m4/expl.m4 (gl_FUNC_EXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
26546         Determine EXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
26547         * modules/expl (Depends-on): Add exp. Update conditions.
26549 2011-10-10  Bruno Haible  <bruno@clisp.org>
26551         sqrtl: Simplify for platforms where 'long double' == 'double'.
26552         * lib/sqrtl.c (sqrtl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
26553         alternative implementation.
26554         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
26555         Determine SQRTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
26556         * modules/sqrtl (Depends-on): Update conditions.
26558 2011-10-10  Bruno Haible  <bruno@clisp.org>
26560         ldexpl: Simplify for platforms where 'long double' == 'double'.
26561         * lib/ldexpl.c (ldexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
26562         alternative implementation.
26563         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
26564         Determine LDEXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
26565         * modules/ldexpl (Depends-on): Add ldexp. Update conditions.
26567 2011-10-10  Tom G. Christensen  <tgc@jupiterrise.com>  (tiny change)
26569         ffsll: set correct witness
26570         * modules/ffsll (configure.ac): Fix typo.
26572 2011-10-10  Bruno Haible  <bruno@clisp.org>
26574         printf-frexpl: Simplify for platforms where 'long double' == 'double'.
26575         * lib/printf-frexpl.c: Include <config.h>.
26576         (printf_frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
26577         * lib/printf-frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a
26578         second time.
26579         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Require
26580         gl_LONG_DOUBLE_VS_DOUBLE.
26581         * modules/printf-frexpl (Depends-on): Add printf-frexp. Update
26582         conditions.
26584 2011-10-10  Bruno Haible  <bruno@clisp.org>
26586         frexpl: Simplify for platforms where 'long double' == 'double'.
26587         * lib/frexpl.c: Include <config.h>.
26588         (frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
26589         * lib/frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
26590         time.
26591         * m4/frexpl.m4 (gl_FUNC_FREXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
26592         Determine FREXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
26593         (gl_FUNC_FREXPL_NO_LIBM): Require gl_LONG_DOUBLE_VS_DOUBLE.
26594         * modules/frexpl (Depends-on): Add frexp. Update conditions.
26595         * modules/frexpl-nolibm (Depends-on): Add frexp-nolibm. Update
26596         conditions.
26598 2011-10-10  Jim Meyering  <meyering@redhat.com>
26600         test-renameat: don't leave behind a temporary file
26601         * tests/test-renameat.c (main): Don't forget to remove a temporary file.
26602           ERROR: files left in build directory after distclean:
26603           ./gltests/test-renameat.too
26604           make[1]: *** [distcleancheck] Error 1
26605         Reported by Tom G. Christensen.
26607 2011-10-09  Bruno Haible  <bruno@clisp.org>
26609         rint: Determine RINT_LIBM correctly on AIX 7.
26610         * m4/mathfunc.m4 (gl_MATHFUNC): Try to invoke the function also
26611         directly, not only through a function pointer. Also accept an optional
26612         4th argument with extra code.
26613         * m4/rint.m4 (gl_FUNC_RINT): Pass an extra code that gets turned into a
26614         rintf() call by gcc when optimizing.
26616         mathfunc.m4: Refactor.
26617         * m4/mathfunc.m4 (gl_MATHFUNC): Assign the argument list to a temporary
26618         m4 variable.
26620 2011-10-09  Bruno Haible  <bruno@clisp.org>
26622         rintl: Simplify for platforms where 'long double' == 'double'.
26623         * lib/rintl.c: Include <config.h>.
26624         (rintl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
26625         * lib/rint.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
26626         time.
26627         * m4/rintl.m4 (gl_FUNC_RINTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
26628         Determine RINTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
26629         * modules/rintl (Depends-on): Add rint. Update conditions.
26631 2011-10-09  Bruno Haible  <bruno@clisp.org>
26633         roundl: Simplify for platforms where 'long double' == 'double'.
26634         * lib/roundl.c: Include <config.h>.
26635         (roundl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
26636         * lib/round.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
26637         time.
26638         * m4/roundl.m4 (gl_FUNC_ROUNDL): Require gl_LONG_DOUBLE_VS_DOUBLE.
26639         Determine ROUNDL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
26640         * modules/roundl (Depends-on): Add round. Update conditions.
26642 2011-10-09  Bruno Haible  <bruno@clisp.org>
26644         truncl: Simplify for platforms where 'long double' == 'double'.
26645         * lib/truncl.c: Include <config.h>.
26646         (truncl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
26647         * lib/trunc.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
26648         time.
26649         * m4/truncl.m4 (gl_FUNC_TRUNCL): Require gl_LONG_DOUBLE_VS_DOUBLE.
26650         Determine TRUNCL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
26651         * modules/truncl (Depends-on): Add trunc. Update conditions.
26653 2011-10-09  Bruno Haible  <bruno@clisp.org>
26655         ceill: Simplify for platforms where 'long double' == 'double'.
26656         * lib/ceill.c: Include <config.h>.
26657         (ceill) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
26658         * lib/ceil.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
26659         time.
26660         * m4/ceill.m4 (gl_FUNC_CEILL): Require gl_LONG_DOUBLE_VS_DOUBLE.
26661         Determine CEILL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
26662         * modules/ceill (Depends-on): Add ceil. Update conditions.
26664 2011-10-09  Bruno Haible  <bruno@clisp.org>
26666         floorl: Simplify for platforms where 'long double' == 'double'.
26667         * lib/floorl.c: Include <config.h>.
26668         (floorl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
26669         * lib/floor.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
26670         time.
26671         * m4/floorl.m4 (gl_FUNC_FLOORL): Require gl_LONG_DOUBLE_VS_DOUBLE.
26672         Determine FLOORL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
26673         * modules/floorl (Depends-on): Add floor. Update conditions.
26675 2011-10-09  Bruno Haible  <bruno@clisp.org>
26677         rint: Fix ordering constraints.
26678         * m4/rint.m4 (gl_FUNC_RINT): Require gl_MATH_H_DEFAULTS.
26679         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
26680         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
26682 2011-10-09  Bruno Haible  <bruno@clisp.org>
26684         copysignl: Simplify for platforms where 'long double' == 'double'.
26685         * lib/copysignl.c (copysignl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
26686         alternative.
26687         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Require gl_LONG_DOUBLE_VS_DOUBLE.
26688         Determine COPYSIGNL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
26689         * modules/copysignl (Depends-on): Add copysign. Update conditions.
26691 2011-10-09  Bruno Haible  <bruno@clisp.org>
26693         Tests for module 'rintl'.
26694         * modules/rintl-tests: New file.
26695         * tests/test-rintl.c: New file.
26697         New module 'rintl'.
26698         * lib/math.in.h (rintl): New declaration.
26699         * lib/rintl.c: New file.
26700         * m4/rintl.m4: New file.
26701         * m4/math_h.m4 (gl_MATH_H): Test whether rintl is declared.
26702         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTL, HAVE_RINTL.
26703         * modules/math (Makefile.am): Substitute GNULIB_RINTL, HAVE_RINTL.
26704         * modules/rintl: New file.
26705         * tests/test-math-c++.cc: Check the declaration of rintl.
26706         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
26707         $(RINTL_LIBM). Needed on IRIX 6.5 with cc.
26708         * doc/posix-functions/rintl.texi: Mention the new module.
26710 2011-10-09  Bruno Haible  <bruno@clisp.org>
26712         Tests for module 'rintf'.
26713         * modules/rintf-tests: New file.
26714         * tests/test-rintf.c: New file.
26716         New module 'rintf'.
26717         * lib/math.in.h (rintf): New declaration.
26718         * lib/rintf.c: New file.
26719         * m4/rintf.m4: New file.
26720         * m4/math_h.m4 (gl_MATH_H): Test whether rintf is declared.
26721         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTF, HAVE_RINTF.
26722         * modules/math (Makefile.am): Substitute GNULIB_RINTF, HAVE_RINTF.
26723         * modules/rintf: New file.
26724         * tests/test-math-c++.cc: Check the declaration of rintf.
26725         * doc/posix-functions/rintf.texi: Mention the new module.
26727 2011-10-09  Bruno Haible  <bruno@clisp.org>
26729         rint: Support for MSVC.
26730         * lib/math.in.h (rint): New declaration.
26731         * lib/rint.c: New file.
26732         * m4/rint.m4: New file.
26733         * m4/math_h.m4 (gl_MATH_H): Test whether rint is declared.
26734         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINT, HAVE_RINT.
26735         * modules/math (Makefile.am): Substitute GNULIB_RINT, HAVE_RINT.
26736         * modules/rint (Description): Fix.
26737         (Files): Add lib/rint.c, m4/rint.m4.
26738         (Depends-on): Add math.
26739         (configure.ac): Invoke gl_FUNC_RINT, AC_LIBOBJ,
26740         gl_MATH_MODULE_INDICATOR.
26741         * tests/test-math-c++.cc: Check the declaration of rint.
26742         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
26743         $(RINT_LIBM). Needed on IRIX 6.5 with cc.
26744         * doc/posix-functions/rint.texi: Mention the replacement provided by
26745         the module.
26747         rint tests: More tests.
26748         * tests/test-rint.c: Include <float.h>, <stdio.h>, isnand-nolibm.h,
26749         minus-zero.h, infinity.h, nan.h.
26750         (main): Skip the test if the current rounding mode is not standard. Add
26751         tests for negative numbers, minus zero, infinity, NaN.
26752         * modules/rint-tests (Files): Add tests/minus-zero.h, tests/infinity.h,
26753         tests/nan.h.
26754         (Depends-on): Add isnand-nolibm.
26756 2011-10-09  Bruno Haible  <bruno@clisp.org>
26758         Tests for module 'copysignl'.
26759         * modules/copysignl-tests: New file.
26760         * tests/test-copysignl.c: New file.
26762         New module 'copysignl'.
26763         * lib/math.in.h (copysignl): New declaration.
26764         * lib/copysignl.c: New file.
26765         * m4/copysignl.m4: New file.
26766         * m4/math_h.m4 (gl_MATH_H): Test whether copysignl is declared.
26767         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNL, HAVE_COPYSIGNL.
26768         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNL,
26769         HAVE_COPYSIGNL.
26770         * modules/copysignl: New file.
26771         * tests/test-math-c++.cc: Check the declaration of copysignl.
26772         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
26773         $(COPYSIGNL_LIBM). Needed on IRIX 6.5 with cc.
26774         * doc/posix-functions/copysignl.texi: Mention the new module.
26776 2011-10-09  Bruno Haible  <bruno@clisp.org>
26778         Tests for module 'copysignf'.
26779         * modules/copysignf-tests: New file.
26780         * tests/test-copysignf.c: New file.
26782         New module 'copysignf'.
26783         * lib/math.in.h (copysignf): New declaration.
26784         * lib/copysignf.c: New file.
26785         * m4/copysignf.m4: New file.
26786         * m4/math_h.m4 (gl_MATH_H): Test whether copysignf is declared.
26787         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNF, HAVE_COPYSIGNF.
26788         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNF,
26789         HAVE_COPYSIGNF.
26790         * modules/copysignf: New file.
26791         * tests/test-math-c++.cc: Check the declaration of copysignf.
26792         * doc/posix-functions/copysignf.texi: Mention the new module.
26794 2011-10-09  Bruno Haible  <bruno@clisp.org>
26796         Ensure that HAVE_* variables are set to 1 before they are set to 0.
26797         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Require gl_DIRENT_H_DEFAULTS.
26798         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS.
26799         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
26800         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Require
26801         gl_SIGNAL_H_DEFAULTS.
26803 2011-10-09  Bruno Haible  <bruno@clisp.org>
26805         poll: Make macro safer.
26806         * m4/poll.m4 (gl_FUNC_POLL): Complain if, after invoking gl_POLL_H,
26807         ac_cv_header_poll_h is not set.
26809 2011-10-09  Bruno Haible  <bruno@clisp.org>
26811         copysign: Provide replacement.
26812         * lib/math.in.h (copysign): New declaration.
26813         * lib/copysign.c: New file.
26814         * m4/copysign.m4: New file.
26815         * m4/math_h.m4 (gl_MATH_H): Test whether copysign is declared.
26816         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGN, HAVE_COPYSIGN.
26817         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGN,
26818         HAVE_COPYSIGN.
26819         * modules/copysign (Description): Clarify.
26820         (Files): Add lib/copysign.c, m4/copysign.m4.
26821         (Depends-on): Add math, signbit.
26822         (configure.ac): Invoke gl_FUNC_COPYSIGN, AC_LIBOBJ,
26823         gl_MATH_MODULE_INDICATOR.
26824         * tests/test-math-c++.cc: Check the declaration of copysign.
26825         * doc/posix-functions/copysign.texi: Mention the effects of the module
26826         on Minix and MSVC.
26828 2011-10-09  Bruno Haible  <bruno@clisp.org>
26830         isinf: Ensure macro on AIX 5.1.
26831         * m4/isinf.m4 (gl_ISINF): Also test whether isinf is defined as a
26832         macro.
26833         * doc/posix-functions/isinf.texi: Mention also AIX 5.1 as deficient.
26835 2011-10-09  Bruno Haible  <bruno@clisp.org>
26837         *printf-posix tests: Fix for platforms where 'long double' == 'double'.
26838         * modules/snprintf-posix-tests (configure.ac): Require
26839         gl_LONG_DOUBLE_VS_DOUBLE.
26840         * modules/sprintf-posix-tests (configure.ac): Likewise.
26841         * modules/vasnprintf-posix-tests (configure.ac): Likewise.
26842         * modules/vasprintf-posix-tests (configure.ac): Likewise.
26843         * modules/vsnprintf-posix-tests (configure.ac): Likewise.
26844         * modules/vsprintf-posix-tests (configure.ac): Likewise.
26845         * tests/test-snprintf-posix.h (test_function): Avoid 80-bit long double
26846         tests on platforms where 'long double' is the same as 'double'.
26847         * tests/test-sprintf-posix.h (test_function): Likewise.
26848         * tests/test-vasnprintf-posix.c (test_function): Likewise.
26849         * tests/test-vasprintf-posix.c (test_function): Likewise.
26851         *printf: Fix for platforms where 'long double' == 'double'.
26852         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
26853         gl_LONG_DOUBLE_VS_DOUBLE. Don't blindly assume 80-bit 'long double'.
26854         * modules/dprintf-posix (Files): Add m4/math_h.m4.
26855         * modules/fprintf-posix (Files): Likewise.
26856         * modules/obstack-printf-posix (Files): Likewise.
26857         * modules/snprintf-posix (Files): Likewise.
26858         * modules/sprintf-posix (Files): Likewise.
26859         * modules/vasnprintf (Files): Likewise.
26860         * modules/vasnprintf-posix (Files): Likewise.
26861         * modules/vasprintf-posix (Files): Likewise.
26862         * modules/vdprintf-posix (Files): Likewise.
26863         * modules/vfprintf-posix (Files): Likewise.
26864         * modules/vsnprintf-posix (Files): Likewise.
26865         * modules/vsprintf-posix (Files): Likewise.
26866         * modules/unistdio/u8-vasnprintf (Files): Likewise.
26867         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
26868         * modules/unistdio/u16-vasnprintf (Files): Likewise.
26869         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
26870         * modules/unistdio/u32-vasnprintf (Files): Likewise.
26871         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
26872         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
26874         isnanl[-nolibm]: Fix for platforms where 'long double' == 'double'.
26875         * lib/isnan.c (rpl_isnanl): Don't blindly assume 80-bit 'long double'.
26876         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
26877         (gl_FUNC_ISNANL_WORKS): Likewise. Don't blindly assume 80-bit
26878         'long double'.
26879         * modules/isnanl-nolibm (Files): Add m4/math_h.m4.
26881         isinf: Fix for platforms where 'long double' == 'double'.
26882         * m4/isinf.m4 (gl_ISINFL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
26883         Don't blindly assume 80-bit 'long double'.
26885         isfinite: Fix for platforms where 'long double' == 'double'.
26886         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
26887         Don't blindly assume 80-bit 'long double'.
26889         isfinite, isinf, isnan tests: Avoid syntax error on MSVC 9.
26890         * m4/math_h.m4 (gl_LONG_DOUBLE_VS_DOUBLE): New macro.
26891         * modules/isfinite-tests (configure.ac): Require
26892         gl_LONG_DOUBLE_VS_DOUBLE.
26893         * modules/isinf-tests (configure.ac): Likewise.
26894         * modules/isnan-tests (configure.ac): Likewise.
26895         * modules/isnanl-tests (configure.ac): Likewise.
26896         * modules/isnanl-nolibm-tests (configure.ac): Likewise.
26897         * tests/test-isfinite.c (test_isfinitel): Avoid 80-bit long double
26898         tests on platforms where 'long double' is the same as 'double'.
26899         * tests/test-isinf.c (test_isinfl): Likewise.
26900         * tests/test-isnan.c (test_long_double): Likewise.
26901         * tests/test-isnanl.h (main): Likewise.
26903 2011-10-08  Bruno Haible  <bruno@clisp.org>
26905         Tests for module 'tanhf'.
26906         * modules/tanhf-tests: New file.
26907         * tests/test-tanhf.c: New file.
26909         New module 'tanhf'.
26910         * lib/math.in.h (tanhf): New declaration.
26911         * lib/tanhf.c: New file.
26912         * m4/tanhf.m4: New file.
26913         * m4/math_h.m4 (gl_MATH_H): Test whether tanhf is declared.
26914         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANHF, HAVE_TANHF.
26915         * modules/math (Makefile.am): Substitute GNULIB_TANHF, HAVE_TANHF.
26916         * modules/tanhf: New file.
26917         * tests/test-math-c++.cc: Check the declaration of tanhf.
26918         * doc/posix-functions/tanhf.texi: Mention the new module.
26920         tanh: Use a .m4 file.
26921         * m4/tanh.m4: New file.
26922         * modules/tanh (Files): Add it.
26923         (configure.ac): Just invoke gl_FUNC_TANH.
26925 2011-10-08  Bruno Haible  <bruno@clisp.org>
26927         Tests for module 'coshf'.
26928         * modules/coshf-tests: New file.
26929         * tests/test-coshf.c: New file.
26931         New module 'coshf'.
26932         * lib/math.in.h (coshf): New declaration.
26933         * lib/coshf.c: New file.
26934         * m4/coshf.m4: New file.
26935         * m4/math_h.m4 (gl_MATH_H): Test whether coshf is declared.
26936         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSHF, HAVE_COSHF.
26937         * modules/math (Makefile.am): Substitute GNULIB_COSHF, HAVE_COSHF.
26938         * modules/coshf: New file.
26939         * tests/test-math-c++.cc: Check the declaration of coshf.
26940         * doc/posix-functions/coshf.texi: Mention the new module.
26942         cosh: Use a .m4 file.
26943         * m4/cosh.m4: New file.
26944         * modules/cosh (Files): Add it.
26945         (configure.ac): Just invoke gl_FUNC_COSH.
26947 2011-10-08  Bruno Haible  <bruno@clisp.org>
26949         Tests for module 'sinhf'.
26950         * modules/sinhf-tests: New file.
26951         * tests/test-sinhf.c: New file.
26953         New module 'sinhf'.
26954         * lib/math.in.h (sinhf): New declaration.
26955         * lib/sinhf.c: New file.
26956         * m4/sinhf.m4: New file.
26957         * m4/math_h.m4 (gl_MATH_H): Test whether sinhf is declared.
26958         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINHF, HAVE_SINHF.
26959         * modules/math (Makefile.am): Substitute GNULIB_SINHF, HAVE_SINHF.
26960         * modules/sinhf: New file.
26961         * tests/test-math-c++.cc: Check the declaration of sinhf.
26962         * doc/posix-functions/sinhf.texi: Mention the new module.
26964         sinh: Use a .m4 file.
26965         * m4/sinh.m4: New file.
26966         * modules/sinh (Files): Add it.
26967         (configure.ac): Just invoke gl_FUNC_SINH.
26969 2011-10-08  Bruno Haible  <bruno@clisp.org>
26971         Tests for module 'atan2f'.
26972         * modules/atan2f-tests: New file.
26973         * tests/test-atan2f.c: New file.
26975         New module 'atan2f'.
26976         * lib/math.in.h (atan2f): New declaration.
26977         * lib/atan2f.c: New file.
26978         * m4/atan2f.m4: New file.
26979         * m4/math_h.m4 (gl_MATH_H): Test whether atan2f is declared.
26980         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATAN2F, HAVE_ATAN2F.
26981         * modules/math (Makefile.am): Substitute GNULIB_ATAN2F, HAVE_ATAN2F.
26982         * modules/atan2f: New file.
26983         * tests/test-math-c++.cc: Check the declaration of atan2f.
26984         * doc/posix-functions/atan2f.texi: Mention the new module.
26986         atan2: Use a .m4 file.
26987         * m4/atan2.m4: New file.
26988         * modules/atan2 (Files): Add it.
26989         (configure.ac): Just invoke gl_FUNC_ATAN2.
26991 2011-10-08  Bruno Haible  <bruno@clisp.org>
26993         Tests for module 'atanf'.
26994         * modules/atanf-tests: New file.
26995         * tests/test-atanf.c: New file.
26997         New module 'atanf'.
26998         * lib/math.in.h (atanf): New declaration.
26999         * lib/atanf.c: New file.
27000         * m4/atanf.m4: New file.
27001         * m4/math_h.m4 (gl_MATH_H): Test whether atanf is declared.
27002         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATANF, HAVE_ATANF.
27003         * modules/math (Makefile.am): Substitute GNULIB_ATANF, HAVE_ATANF.
27004         * modules/atanf: New file.
27005         * tests/test-math-c++.cc: Check the declaration of atanf.
27006         * doc/posix-functions/atanf.texi: Mention the new module.
27008         atan: Use a .m4 file.
27009         * m4/atan.m4: New file.
27010         * modules/atan (Files): Add it.
27011         (configure.ac): Just invoke gl_FUNC_ATAN.
27013 2011-10-08  Bruno Haible  <bruno@clisp.org>
27015         Tests for module 'acosf'.
27016         * modules/acosf-tests: New file.
27017         * tests/test-acosf.c: New file.
27019         New module 'acosf'.
27020         * lib/math.in.h (acosf): New declaration.
27021         * lib/acosf.c: New file.
27022         * m4/acosf.m4: New file.
27023         * m4/math_h.m4 (gl_MATH_H): Test whether acosf is declared.
27024         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ACOSF, HAVE_ACOSF.
27025         * modules/math (Makefile.am): Substitute GNULIB_ACOSF, HAVE_ACOSF.
27026         * modules/acosf: New file.
27027         * tests/test-math-c++.cc: Check the declaration of acosf.
27028         * doc/posix-functions/acosf.texi: Mention the new module.
27030         acos: Use a .m4 file.
27031         * m4/acos.m4: New file.
27032         * modules/acos (Files): Add it.
27033         (configure.ac): Just invoke gl_FUNC_ACOS.
27035 2011-10-08  Bruno Haible  <bruno@clisp.org>
27037         Tests for module 'asinf'.
27038         * modules/asinf-tests: New file.
27039         * tests/test-asinf.c: New file.
27041         New module 'asinf'.
27042         * lib/math.in.h (asinf): New declaration.
27043         * lib/asinf.c: New file.
27044         * m4/asinf.m4: New file.
27045         * m4/math_h.m4 (gl_MATH_H): Test whether asinf is declared.
27046         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ASINF, HAVE_ASINF.
27047         * modules/math (Makefile.am): Substitute GNULIB_ASINF, HAVE_ASINF.
27048         * modules/asinf: New file.
27049         * tests/test-math-c++.cc: Check the declaration of asinf.
27050         * doc/posix-functions/asinf.texi: Mention the new module.
27052         asin: Use a .m4 file.
27053         * m4/asin.m4: New file.
27054         * modules/asin (Files): Add it.
27055         (configure.ac): Just invoke gl_FUNC_ASIN.
27057 2011-10-08  Bruno Haible  <bruno@clisp.org>
27059         Tests for module 'tanf'.
27060         * modules/tanf-tests: New file.
27061         * tests/test-tanf.c: New file.
27063         New module 'tanf'.
27064         * lib/math.in.h (tanf): New declaration.
27065         * lib/tanf.c: New file.
27066         * m4/tanf.m4: New file.
27067         * m4/math_h.m4 (gl_MATH_H): Test whether tanf is declared.
27068         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANF, HAVE_TANF.
27069         * modules/math (Makefile.am): Substitute GNULIB_TANF, HAVE_TANF.
27070         * modules/tanf: New file.
27071         * tests/test-math-c++.cc: Check the declaration of tanf.
27072         * doc/posix-functions/tanf.texi: Mention the new module.
27074         tan: Use a .m4 file.
27075         * m4/tan.m4: New file.
27076         * modules/tan (Files): Add it.
27077         (configure.ac): Just invoke gl_FUNC_TAN.
27079 2011-10-08  Bruno Haible  <bruno@clisp.org>
27081         Tests for module 'cosf'.
27082         * modules/cosf-tests: New file.
27083         * tests/test-cosf.c: New file.
27085         New module 'cosf'.
27086         * lib/math.in.h (cosf): New declaration.
27087         * lib/cosf.c: New file.
27088         * m4/cosf.m4: New file.
27089         * m4/math_h.m4 (gl_MATH_H): Test whether cosf is declared.
27090         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSF, HAVE_COSF.
27091         * modules/math (Makefile.am): Substitute GNULIB_COSF, HAVE_COSF.
27092         * modules/cosf: New file.
27093         * tests/test-math-c++.cc: Check the declaration of cosf.
27094         * doc/posix-functions/cosf.texi: Mention the new module.
27096         cos: Use a .m4 file.
27097         * m4/cos.m4: New file.
27098         * modules/cos (Files): Add it.
27099         (configure.ac): Just invoke gl_FUNC_COS.
27101 2011-10-08  Bruno Haible  <bruno@clisp.org>
27103         Tests for module 'sinf'.
27104         * modules/sinf-tests: New file.
27105         * tests/test-sinf.c: New file.
27107         New module 'sinf'.
27108         * lib/math.in.h (sinf): New declaration.
27109         * lib/sinf.c: New file.
27110         * m4/sinf.m4: New file.
27111         * m4/math_h.m4 (gl_MATH_H): Test whether sinf is declared.
27112         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINF, HAVE_SINF.
27113         * modules/math (Makefile.am): Substitute GNULIB_SINF, HAVE_SINF.
27114         * modules/sinf: New file.
27115         * tests/test-math-c++.cc: Check the declaration of sinf.
27116         * doc/posix-functions/sinf.texi: Mention the new module.
27118         sin: Use a .m4 file.
27119         * m4/sin.m4: New file.
27120         * modules/sin (Files): Add it.
27121         (configure.ac): Just invoke gl_FUNC_SIN.
27123 2011-10-08  Bruno Haible  <bruno@clisp.org>
27125         Tests for module 'powf'.
27126         * modules/powf-tests: New file.
27127         * tests/test-powf.c: New file.
27129         New module 'powf'.
27130         * lib/math.in.h (powf): New declaration.
27131         * lib/powf.c: New file.
27132         * m4/powf.m4: New file.
27133         * m4/math_h.m4 (gl_MATH_H): Test whether powf is declared.
27134         (gl_MATH_H_DEFAULTS): Initialize GNULIB_POWF, HAVE_POWF.
27135         * modules/math (Makefile.am): Substitute GNULIB_POWF, HAVE_POWF.
27136         * modules/powf: New file.
27137         * tests/test-math-c++.cc: Check the declaration of powf.
27138         * doc/posix-functions/powf.texi: Mention the new module.
27140         pow: Use a .m4 file.
27141         * m4/pow.m4: New file.
27142         * modules/pow (Files): Add it.
27143         (configure.ac): Just invoke gl_FUNC_POW.
27145 2011-10-08  Bruno Haible  <bruno@clisp.org>
27147         Tests for module 'log10f'.
27148         * modules/log10f-tests: New file.
27149         * tests/test-log10f.c: New file.
27151         New module 'log10f'.
27152         * lib/math.in.h (log10f): New declaration.
27153         * lib/log10f.c: New file.
27154         * m4/log10f.m4: New file.
27155         * m4/math_h.m4 (gl_MATH_H): Test whether log10f is declared.
27156         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10F, HAVE_LOG10F.
27157         * modules/math (Makefile.am): Substitute GNULIB_LOG10F, HAVE_LOG10F.
27158         * modules/log10f: New file.
27159         * tests/test-math-c++.cc: Check the declaration of log10f.
27160         * doc/posix-functions/log10f.texi: Mention the new module.
27162         log10: Use a .m4 file.
27163         * m4/log10.m4: New file.
27164         * modules/log10 (Files): Add it.
27165         (configure.ac): Just invoke gl_FUNC_LOG10.
27167 2011-10-08  Bruno Haible  <bruno@clisp.org>
27169         Tests for module 'logf'.
27170         * modules/logf-tests: New file.
27171         * tests/test-logf.c: New file.
27173         New module 'logf'.
27174         * lib/math.in.h (logf): New declaration.
27175         * lib/logf.c: New file.
27176         * m4/logf.m4: New file.
27177         * m4/math_h.m4 (gl_MATH_H): Test whether logf is declared.
27178         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGF, HAVE_LOGF.
27179         * modules/math (Makefile.am): Substitute GNULIB_LOGF, HAVE_LOGF.
27180         * modules/logf: New file.
27181         * tests/test-math-c++.cc: Check the declaration of logf.
27182         * doc/posix-functions/logf.texi: Mention the new module.
27184         log: Use a .m4 file.
27185         * m4/log.m4: New file.
27186         * modules/log (Files): Add it.
27187         (configure.ac): Just invoke gl_FUNC_LOG.
27189 2011-10-08  Bruno Haible  <bruno@clisp.org>
27191         Tests for module 'expf'.
27192         * modules/expf-tests: New file.
27193         * tests/test-expf.c: New file.
27195         New module 'expf'.
27196         * lib/math.in.h (expf): New declaration.
27197         * lib/expf.c: New file.
27198         * m4/expf.m4: New file.
27199         * m4/math_h.m4 (gl_MATH_H): Test whether expf is declared.
27200         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPF, HAVE_EXPF.
27201         * modules/math (Makefile.am): Substitute GNULIB_EXPF, HAVE_EXPF.
27202         * modules/expf: New file.
27203         * tests/test-math-c++.cc: Check the declaration of expf.
27204         * doc/posix-functions/expf.texi: Mention the new module.
27206         exp: Use a .m4 file.
27207         * m4/exp.m4: New file.
27208         * modules/exp (Files): Add it.
27209         (configure.ac): Just invoke gl_FUNC_EXP.
27211 2011-10-08  Bruno Haible  <bruno@clisp.org>
27213         Tests for module 'sqrtf'.
27214         * modules/sqrtf-tests: New file.
27215         * tests/test-sqrtf.c: New file.
27217         New module 'sqrtf'.
27218         * lib/math.in.h (sqrtf): New declaration.
27219         * lib/sqrtf.c: New file.
27220         * m4/sqrtf.m4: New file.
27221         * m4/math_h.m4 (gl_MATH_H): Test whether sqrtf is declared.
27222         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SQRTF, HAVE_SQRTF.
27223         * modules/math (Makefile.am): Substitute GNULIB_SQRTF, HAVE_SQRTF.
27224         * modules/sqrtf: New file.
27225         * tests/test-math-c++.cc: Check the declaration of sqrtf.
27226         * doc/posix-functions/sqrtf.texi: Mention the new module.
27228 2011-10-08  Bruno Haible  <bruno@clisp.org>
27230         Tests: Avoid link failures w.r.t. libintl.
27231         * modules/faccessat-tests (Makefile.am): Link test-faccessat against
27232         $(LIBINTL).
27233         * modules/fchdir-tests (Makefile.am): Link test-fchdir against
27234         $(LIBINTL).
27235         * modules/getcwd-lgpl-tests (Makefile.am): Link test-getcwd-lgpl
27236         against $(LIBINTL).
27237         * modules/getcwd-tests (Makefile.am): Link test-getcwd against
27238         $(LIBINTL).
27239         * modules/openat-tests (Makefile.am): Link test-fchmodat against
27240         $(LIBINTL).
27241         * modules/stat-tests (Makefile.am): Link test-stat against $(LIBINTL).
27243 2011-10-08  Bruno Haible  <bruno@clisp.org>
27245         pow tests: Defeat compiler optimizations.
27246         * tests/test-pow.c (main): Assign arguments to x and y before use.
27248 2011-10-08  Bruno Haible  <bruno@clisp.org>
27250         gnulib-tool: Improve last commit.
27251         * gnulib-tool (func_modules_transitive_closure): Simplify code.
27252         (func_emit_autoconf_snippets): Instead of invoking func_acceptable,
27253         ignore dependencies that are not among the modules list.
27255 2011-10-07  Paul Eggert  <eggert@cs.ucla.edu>
27257         gnulib-tool: don't follow dependencies to avoided modules
27258         This fixes a bug that is related to the previous one.
27259         * gnulib-tool (func_modules_transitive_closure)
27260         (func_emit_autoconf_snippets):
27261         Check whether a dependency is acceptable before using it.
27262         (--extract-dependencies): Report an error if --avoid is also used,
27263         since this combination of options is not yet supported.
27265         gnulib-tool: fix typo that broke Emacs on powerpc-apple-darwin9.8.0.
27266         Problem reported by Peter Dyballa in
27267         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=9696>.
27268         * gnulib-tool (func_emit_autoconf_snippets): Quote with "", not '',
27269         when echoing "$condition".
27271 2011-10-07  Bruno Haible  <bruno@clisp.org>
27273         Fix documentation about math functions on MacOS X.
27274         * doc/posix-functions/exp2.texi: Don't say the function is missing on
27275         MacOS X 10.5.
27276         * doc/posix-functions/fdim.texi: Likewise.
27277         * doc/posix-functions/feclearexcept.texi: Likewise.
27278         * doc/posix-functions/fegetenv.texi: Likewise.
27279         * doc/posix-functions/fegetround.texi: Likewise.
27280         * doc/posix-functions/feholdexcept.texi: Likewise.
27281         * doc/posix-functions/feraiseexcept.texi: Likewise.
27282         * doc/posix-functions/fesetenv.texi: Likewise.
27283         * doc/posix-functions/fesetround.texi: Likewise.
27284         * doc/posix-functions/fetestexcept.texi: Likewise.
27285         * doc/posix-functions/feupdateenv.texi: Likewise.
27286         * doc/posix-functions/fmax.texi: Likewise.
27287         * doc/posix-functions/fmin.texi: Likewise.
27288         * doc/posix-functions/log2.texi: Likewise.
27289         * doc/posix-functions/modff.texi: Likewise.
27290         * doc/posix-functions/nan.texi: Likewise.
27291         * doc/posix-functions/nanf.texi: Likewise.
27292         * doc/posix-functions/nextafterf.texi: Likewise.
27293         * doc/posix-functions/remquo.texi: Likewise.
27295 2011-10-07  Bruno Haible  <bruno@clisp.org>
27297         modff: Drop assumption about library that defines modff.
27298         * m4/modff.m4 (gl_FUNC_MODFF): Use gl_MATHFUNC macro instead of
27299         AC_CHECK_FUNCS.
27300         * modules/modff (Files): Add m4/mathfunc.m4.
27302 2011-10-07  Bernhard Voelker  <mail@bernhard-voelker.de>
27304         raise tests: Avoid a GCC warning.
27305         * tests/test-raise.c (handler): Use _Noreturn.
27307 2011-10-07  Bruno Haible  <bruno@clisp.org>
27309         Tests for module 'ldexpf'.
27310         * modules/ldexpf-tests: New file.
27311         * tests/test-ldexpf.c: New file.
27313         New module 'ldexpf'.
27314         * lib/math.in.h (ldexpf): New declaration.
27315         * lib/ldexpf.c: New file.
27316         * m4/ldexpf.m4: New file.
27317         * m4/math_h.m4 (gl_MATH_H): Test whether ldexpf is declared.
27318         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LDEXPF, HAVE_LDEXPF.
27319         * modules/math (Makefile.am): Substitute GNULIB_LDEXPF, HAVE_LDEXPF.
27320         * modules/ldexpf: New file.
27321         * tests/test-math-c++.cc: Check the declaration of ldexpf.
27322         * doc/posix-functions/ldexpf.texi: Mention the new module.
27324 2011-10-06  Bruno Haible  <bruno@clisp.org>
27326         frexpf: Work around problems on IRIX and mingw.
27327         * lib/math.in.h (frexpf): Consider also REPLACE_FREXPF.
27328         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPF.
27329         * m4/frexpf.m4 (gl_FUNC_FREXPF_WORKS): New macro.
27330         (gl_FUNC_FREXPF): Invoke it. Set REPLACE_FREXPF.
27331         * modules/frexpf (Depends-on, configure.ac): Consider REPLACE_FREXPF.
27332         * modules/math (Makefile.am): Substitute REPLACE_FREXPF.
27333         * doc/posix-functions/frexpf.texi: Mention the IRIX and mingw problems.
27335 2011-10-06  Bruno Haible  <bruno@clisp.org>
27337         fabsf: Drop assumption about library that defines fabsf.
27338         * m4/fabsf.m4 (gl_FUNC_FABSF): Use gl_MATHFUNC macro instead of
27339         AC_CHECK_FUNCS.
27340         * modules/fabsf (Files): Add m4/mathfunc.m4.
27342 2011-10-06  Bruno Haible  <bruno@clisp.org>
27344         frexpf: Drop assumption about library that defines frexpf.
27345         * m4/mathfunc.m4 (gl_MATHFUNC): Support also the argument types
27346         'int *', 'float *', 'long double *', 'float', 'long double'.
27347         * m4/frexpf.m4 (gl_FUNC_FREXPF): Use gl_MATHFUNC macro instead of
27348         AC_CHECK_FUNCS.
27349         * modules/frexpf (Files): Add m4/mathfunc.m4.
27351         Tests for module 'frexpf'.
27352         * modules/frexpf-tests: New file.
27353         * tests/test-frexpf.c: New file.
27355         New module 'frexpf'.
27356         * lib/math.in.h (frexpf): New declaration.
27357         * lib/frexpf.c: New file.
27358         * m4/frexpf.m4: New file.
27359         * m4/math_h.m4 (gl_MATH_H): Test whether frexpf is declared.
27360         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPF, HAVE_FREXPF.
27361         * modules/math (Makefile.am): Substitute GNULIB_FREXPF, HAVE_FREXPF.
27362         * modules/frexpf: New file.
27363         * tests/test-math-c++.cc: Check the declaration of frexpf.
27364         * doc/posix-functions/frexpf.texi: Mention the new module.
27366 2011-10-06  Bruno Haible  <bruno@clisp.org>
27368         math: Sort function declarations of math.in.h.
27369         * lib/math.in.h (frexp, logb): Move declarations.
27371 2011-10-05  Bruno Haible  <bruno@clisp.org>
27373         Tests for module 'modff'.
27374         * modules/modff-tests: New file.
27375         * tests/test-modff.c: New file.
27377         New module 'modff'.
27378         * lib/math.in.h (modff): New declaration.
27379         * lib/modff.c: New file.
27380         * m4/modff.m4: New file.
27381         * m4/math_h.m4 (gl_MATH_H): Test whether modff is declared.
27382         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFF, HAVE_MODFF.
27383         * modules/math (Makefile.am): Substitute GNULIB_MODFF, HAVE_MODFF.
27384         * modules/modff: New file.
27385         * tests/test-math-c++.cc: Check the declaration of modff.
27386         * doc/posix-functions/modff.texi: Mention the new module.
27388         modf tests: Make test sharper.
27389         * tests/test-modf.c (main): Strengthen upper bound.
27391         modf: Use a .m4 file.
27392         * m4/modf.m4: New file.
27393         * modules/modf (Files): Add it.
27394         (configure.ac): Just invoke gl_FUNC_MODF.
27396 2011-10-05  Bruno Haible  <bruno@clisp.org>
27398         Tests for module 'fmodf'.
27399         * modules/fmodf-tests: New file.
27400         * tests/test-fmodf.c: New file.
27402         New module 'fmodf'.
27403         * lib/math.in.h (fmodf): New declaration.
27404         * lib/fmodf.c: New file.
27405         * m4/fmodf.m4: New file.
27406         * m4/math_h.m4 (gl_MATH_H): Test whether fmodf is declared.
27407         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODF, HAVE_FMODF.
27408         * modules/math (Makefile.am): Substitute GNULIB_FMODF, HAVE_FMODF.
27409         * modules/fmodf: New file.
27410         * tests/test-math-c++.cc: Check the declaration of fmodf.
27411         * doc/posix-functions/fmodf.texi: Mention the new module.
27413         fmod: Use a .m4 file.
27414         * m4/fmod.m4: New file.
27415         * modules/fmod (Files): Add it.
27416         (configure.ac): Just invoke gl_FUNC_FMOD.
27418 2011-10-05  Bruno Haible  <bruno@clisp.org>
27420         Tests for module 'fabsf'.
27421         * modules/fabsf-tests: New file.
27422         * tests/test-fabsf.c: New file.
27424         New module 'fabsf'.
27425         * lib/math.in.h (fabsf): New declaration.
27426         * lib/fabsf.c: New file.
27427         * m4/fabsf.m4: New file.
27428         * m4/math_h.m4 (gl_MATH_H): Test whether fabsf is declared.
27429         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSF, HAVE_FABSF.
27430         * modules/math (Makefile.am): Substitute GNULIB_FABSF, HAVE_FABSF.
27431         * modules/fabsf: New file.
27432         * tests/test-math-c++.cc: Check the declaration of fabsf.
27433         * doc/posix-functions/fabsf.texi: Mention the new module.
27435         fabs: Use a .m4 file.
27436         * m4/fabs.m4: New file.
27437         * modules/fabs (Files): Add it.
27438         (configure.ac): Just invoke gl_FUNC_FABS.
27440 2011-10-05  Jim Meyering  <meyering@redhat.com>
27442         file-has-acl: revert both recent changes, 80af92af and 95f7c57f
27443         * lib/file-has-acl.c: While the 2011-10-03 change does fix the
27444         ls -lL regression introduced in coreutils-8.12, it does so at the
27445         cost of an additional stat call in the common case.  Besides, now
27446         that the kernel change that prompted commit 95f7c57f has been reverted
27447         (see https://bugzilla.redhat.com/show_bug.cgi?id=720325#c24)
27448         we have no use for commit 95f7c57f, "file-has-acl: use
27449         acl_extended_file_nofollow if available".
27451 2011-10-03  Kamil Dudka  <kdudka@redhat.com>
27453         file-has-acl: revert unintended change in behavior of ls -L
27454         * lib/file-has-acl.c (acl_extended_file_wrap): New function,
27455         derived from...
27456         (file_has_acl): ...code here.  Call it.
27457         This problem was introduced with 2011-07-22 commit 95f7c57f,
27458         "file-has-acl: use acl_extended_file_nofollow if available".
27459         See http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28538
27461 2011-10-03  Bruno Haible  <bruno@clisp.org>
27463         poll: Avoid link errors on MSVC.
27464         * m4/poll.m4 (gl_FUNC_POLL): Determine LIB_POLL.
27465         * modules/poll (Depends-on): Add sockets.
27466         (Link): New section.
27467         * NEWS: Mention the change.
27468         * modules/poll-tests (Makefile.am): Link test-poll against $(LIB_POLL).
27469         * modules/poll-h-c++-tests (Makefile.am): Link test-poll-h-c++ against
27470         $(LIB_POLL) instead of $(LIBSOCKET).
27472 2011-10-03  Bruno Haible  <bruno@clisp.org>
27474         sys_select tests: Fix link error on MSVC 9.
27475         * modules/sys_select-c++-tests (Makefile.am): Link test-sys_select-c++
27476         with $(LIB_SELECT) instead of $(LIBSOCKET).
27478 2011-10-03  Bruno Haible  <bruno@clisp.org>
27480         sys_select: Fix compilation error on mingw.
27481         * lib/sys_select.in.h: On native Windows, include <io.h>.
27483 2011-10-03  Bruno Haible  <bruno@clisp.org>
27485         wmemset: Support for MSVC.
27486         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Use a small test program to test
27487         whether wmemset() exists.
27489 2011-10-03  Bruno Haible  <bruno@clisp.org>
27491         wmemmove: Support for MSVC.
27492         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Use a small test program to test
27493         whether wmemmove() exists.
27495 2011-10-03  Bruno Haible  <bruno@clisp.org>
27497         wmemcpy: Support for MSVC.
27498         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Use a small test program to test
27499         whether wmemcpy() exists.
27501 2011-10-03  Bruno Haible  <bruno@clisp.org>
27503         wmemcmp: Support for MSVC.
27504         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Use a small test program to test
27505         whether wmemcmp() exists.
27507 2011-10-03  Bruno Haible  <bruno@clisp.org>
27509         wmemchr: Support for MSVC.
27510         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Use a small test program to test
27511         whether wmemchr() exists.
27513 2011-10-03  Bruno Haible  <bruno@clisp.org>
27515         glthread/*, strsignal: Support for MSVC.
27516         * lib/glthread/cond.h: Define WIN32_LEAN_AND_MEAN, so as to avoid
27517         including <winsock.h> on MSVC 9.
27518         * lib/glthread/lock.h: Likewise.
27519         * lib/glthread/thread.h: Likewise.
27520         * lib/glthread/tls.h: Likewise.
27521         * lib/glthread/yield.h: Likewise.
27522         * lib/strsignal.c: Include <string.h> first. Don't include <unistd.h>
27523         if HAVE_UNISTD_H is false.
27524         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Test for <unistd.h>.
27526 2011-10-03  Bruno Haible  <bruno@clisp.org>
27528         nonblocking tests: Fix test failure on OpenBSD/SPARC64.
27529         * tests/test-nonblocking-socket.h (SOCKET_DATA_BLOCK_SIZE) [OpenBSD]:
27530         Set to 100000.
27532 2011-10-03  Bruno Haible  <bruno@clisp.org>
27534         acl: Fix specification.
27535         * lib/file-has-acl.c (file_has_acl): Fix specification.
27537 2011-10-03  Bruno Haible  <bruno@clisp.org>
27539         relocatable-lib[-lgpl]: Avoid expensive /proc access on Linux, Cygwin.
27540         * lib/relocatable.c (ENABLE_COSTLY_RELOCATABLE): New macro.
27541         (compute_curr_prefix, shared_library_fullname,
27542         find_shared_library_fullname, get_shared_library_fullname, relocate):
27543         Use it together with PIC && INSTALLDIR.
27544         Reported by <jojelino@gmail.com>
27545         via Charles Wilson <cygwin@cwilson.fastmail.fm>.
27547 2011-10-01  Jim Meyering  <meyering@redhat.com>
27549         maint.mk: adjust a release-related rule not to require use of gzip
27550         * top/maint.mk (writable-files): Don't hard-code use of .tar.gz.
27551         Instead, check each file in $(DIST_ARCHIVES).  This is better for
27552         projects that build only .tar.xz files.  Also fix an erroneous test.
27554         test-linkat: don't leave behind a temporary file
27555         * tests/test-linkat.c (main): Don't forget to remove a temporary file.
27556         Otherwise, coreutils' "make distcheck" would fail with this:
27557           Only in /c/cu/tests/torture/coreutils/test/\
27558             coreutils-8.13.22-d5caf.old/gnulib-tests: test-linkat.too
27559           make[2]: *** [my-distcheck] Error 1
27561         float, math: add omitted file
27562         * lib/itold.c: Add file, required for yesterday's float change.
27564 2011-10-01  Bruno Haible  <bruno@clisp.org>
27566         isinf: Fix for OpenBSD/x86.
27567         * m4/isinf.m4 (gl_ISINFL_WORKS): Also test the behaviour of isinf on
27568         pseudo-NaNs, pseudo-Infinities, and other non-IEEE values.
27569         * doc/posix-functions/isinf.texi: Mention the problem on OpenBSD/x86.
27571 2011-10-01  Bruno Haible  <bruno@clisp.org>
27573         isfinite: Fix syntax error in configure test.
27574         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Fix syntax error.
27576         isfinite: Fix typo.
27577         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): When cross-compiling, set
27578         gl_cv_func_isfinitel_works, not gl_cv_func_isnanl_works.
27580 2011-10-01  Bruno Haible  <bruno@clisp.org>
27582         nonblocking tests: Fix test failure on Linux/IA-64.
27583         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/IA-64]:
27584         Set to 270000.
27586 2011-10-01  Bruno Haible  <bruno@clisp.org>
27588         mkfifoat tests: Fix a test failure on mingw.
27589         * tests/test-mkfifoat.c (main): Allow mkfifoat or test_mknodat to fail
27590         with error ENOSYS.
27592 2011-09-30  Bruno Haible  <bruno@clisp.org>
27594         float, math: Fix 'int' to 'long double' conversion on Linux/SPARC64.
27595         * m4/float_h.m4 (gl_FLOAT_H): Test conversion from 'int' to
27596         'long double'. Set REPLACE_ITOLD.
27597         * lib/float.in.h (_Qp_itoq, _gl_float_fix_itold): New declarations.
27598         * lib/math.in.h (_Qp_itoq, _gl_math_fix_itold): New declarations.
27599         * lib/itold.c: New file.
27600         * modules/float (Files): Add lib/itold.c.
27601         (configure.ac): When REPLACE_ITOLD is 1, arrange to compile itold.c.
27602         (Makefile.am): Substitute REPLACE_ITOLD.
27603         * modules/math (Depends-on): Add float.
27604         (Makefile.am): Substitute REPLACE_ITOLD.
27605         * doc/posix-headers/float.texi: Mention problem on Linux/SPARC64.
27606         * doc/posix-headers/math.texi: Likewise.
27607         * doc/posix-functions/logl.texi: Likewise.
27609 2011-09-30  Bruno Haible  <bruno@clisp.org>
27611         nonblocking tests: Fix test failure on Linux/SPARC (32-bit and 64-bit).
27612         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/SPARC]:
27613         Set to 140000.
27615 2011-09-30  Bruno Haible  <bruno@clisp.org>
27617         gnulib-tool: Improve suggestion where to put gl_EARLY invocation.
27618         * gnulib-tool (func_import): If the configure.ac has an AC_PROG_CC_STDC
27619         invocation, say "right after AC_PROG_CC_STDC", not "right after
27620         AC_PROG_CC".
27621         Reported by Gary V. Vaughan <gary@gnu.org>.
27623 2011-09-30  Bruno Haible  <bruno@clisp.org>
27625         Centralize C99 requirement.
27626         * m4/gnulib-common.m4 (gl_PROG_CC_C99): New macro.
27627         * modules/stdarg (configure.ac-early): Invoke it instead of
27628         AC_PROG_CC_STDC.
27629         Reported by Gary V. Vaughan and Paul Eggert.
27631 2011-09-29  Bruno Haible  <bruno@clisp.org>
27633         float: Fix LDBL_MAX value on Linux/PowerPC.
27634         * m4/float_h.m4 (gl_FLOAT_H): Set FLOAT_H and REPLACE_FLOAT_LDBL also
27635         on Linux/PowerPC.
27636         * lib/float.in.h (LDBL_MAX): Redefine also on Linux/PowerPC.
27637         * lib/float.c (gl_LDBL_MAX): Also define on Linux/PowerPC.
27638         * doc/posix-headers/float.texi: Mention Linux/PowerPC as an affected
27639         platform.
27640         Reported by Andreas Metzler <ametzler@downhill.at.eu.org>.
27642 2011-09-29  Bruno Haible  <bruno@clisp.org>
27644         doc: Improve doc about gl_EARLY.
27645         * doc/gnulib-tool.texi (Initial import): Mention where to place an
27646         AC_PROG_CC_STDC invocation.
27647         Reported by Gary V. Vaughan <gary@gnu.org>.
27649 2011-09-28  Bruno Haible  <bruno@clisp.org>
27651         fgetc, fputc, fread, fwrite tests: Fix link error.
27652         * tests/test-fgetc.c (main): Don't invoke gl_msvc_inval_ensure_handler
27653         on non-MSVC platforms.
27654         * tests/test-fputc.c (main): Likewise.
27655         * tests/test-fread.c (main): Likewise.
27656         * tests/test-fwrite.c (main): Likewise.
27657         Reported by Jim Meyering.
27659 2011-09-27  Bruno Haible  <bruno@clisp.org>
27661         fputc, fwrite tests: Avoid test failure on MSVC.
27662         * tests/test-fgetc.c: Include msvc-inval.h.
27663         (main): Invoke gl_msvc_inval_ensure_handler.
27664         * tests/test-fputc.c: Include msvc-inval.h.
27665         (main): Invoke gl_msvc_inval_ensure_handler.
27666         * tests/test-fread.c: Include msvc-inval.h.
27667         (main): Invoke gl_msvc_inval_ensure_handler.
27668         * tests/test-fwrite.c: Include msvc-inval.h.
27669         (main): Invoke gl_msvc_inval_ensure_handler.
27670         * modules/fgetc-tests (Depends-on): Add msvc-inval.
27671         * modules/fputc-tests (Depends-on): Likewise.
27672         * modules/fread-tests (Depends-on): Likewise.
27673         * modules/fwrite-tests (Depends-on): Likewise.
27675 2011-09-27  Bruno Haible  <bruno@clisp.org>
27677         raise: Fix double declaration with modules 'sigprocmask' and 'sigpipe'.
27678         * lib/signal.in.h (GNULIB_defined_signal_blocking): New macro.
27679         (raise): Remove older, duplicated declaration.
27680         (_gl_raise_SIGPIPE): New declaration.
27681         * lib/sigprocmask.c (_gl_raise_SIGPIPE): New function.
27682         (rpl_raise): Remove function.
27683         * lib/raise.c (rpl_raise, raise): Merge into a single function. Handle
27684         a gnulib-defined SIGPIPE here.
27685         * m4/raise.m4 (gl_FUNC_RAISE): Set REPLACE_RAISE also if the module
27686         'sigprocmask' has detected missing signal-blocking and the module
27687         'sigpipe' is enabled.
27688         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
27690 2011-09-26  Gijs van Tulder  <gvtulder@gmail.com>
27692         base64-tests: avoid memory leak
27693         * tests/test-base64.c (main): Plug memory leak.
27695         base32: new module
27696         * modules/base32: New module.
27697         * lib/base32.c: New file.
27698         * lib/base32.h: Likewise.
27699         * m4/base32.m4: Likewise.
27700         * modules/base32-tests: New test.
27701         * tests/test-base32.c: Likewise.
27702         * MODULES.html.sh (Misc): Mention it.
27704 2011-09-26  Paul Eggert  <eggert@cs.ucla.edu>
27706         gnulib: use more-standard license notice wording
27707         * gnulib-tool (func_emit_copyright_notice): When emitting a
27708         license notice into a file, use the standard wording as suggested
27709         by the current information for GNU maintainers, except say "file"
27710         rather than "program".  The new wording gives a license version
27711         number, which addresses an issue raised by Glenn Morris in
27712         <http://lists.gnu.org/r/bug-gnulib/2011-09/msg00397.html>.
27713         * m4/onceonly.m4: Use that same wording here, too.
27715         dup2: minor simplification
27716         * m4/dup2.m4 (gl_PREREQ_DUP2): Don't require AC_C_INLINE,
27717         as lib/dup2.c no longer uses 'inline'.
27719 2011-09-25  Bruno Haible  <bruno@clisp.org>
27721         strings: Fix compilation error on MSVC.
27722         * lib/strings.in.h: Include <stddef.h> for size_t.
27724 2011-09-25  Bruno Haible  <bruno@clisp.org>
27726         fflush et al.: Document limitation on MSVC.
27727         * doc/posix-functions/fflush.texi: Document possible crash in handling
27728         mode other than DEFAULT_HANDLING.
27729         * doc/posix-functions/fgetc.texi: Likewise.
27730         * doc/posix-functions/fputc.texi: Likewise.
27731         * doc/posix-functions/fread.texi: Likewise.
27732         * doc/posix-functions/fwrite.texi: Likewise.
27734 2011-09-25  Bruno Haible  <bruno@clisp.org>
27736         msvc-inval: Allow three invalid parameter handling modes.
27737         * lib/msvc-inval.h: Don't include <stdlib.h> here.
27738         (DEFAULT_HANDLING, HAIRY_LIBRARY_HANDLING, SANE_LIBRARY_HANDLING): New
27739         macros.
27740         (gl_msvc_inval_ensure_handler, TRY_MSVC_INVAL, CATCH_MSVC_INVAL,
27741         DONE_MSVC_INVAL): Implement DEFAULT_HANDLING. Treat
27742         SANE_LIBRARY_HANDLING as a no-op.
27743         * lib/msvc-inval.c: Treat SANE_LIBRARY_HANDLING as a no-op. Include
27744         <stdlib.h>.
27745         (gl_msvc_invalid_parameter_handler): Implement DEFAULT_HANDLING.
27747 2011-09-25  Bruno Haible  <bruno@clisp.org>
27749         msvc-inval: Make handler multithread-safe.
27750         * lib/msvc-inval.h (struct gl_msvc_inval_per_thread): New type.
27751         (gl_msvc_inval_restart, gl_msvc_inval_restart_valid): Remove
27752         declarations.
27753         (gl_msvc_inval_current): New declaration.
27754         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
27755         Operate on the structure returned by gl_msvc_inval_current().
27756         * lib/msvc-inval.c (gl_msvc_inval_restart, gl_msvc_inval_restart_valid):
27757         Remove varaiables.
27758         (tls_index, tls_initialized): New variables.
27759         (not_per_thread): New variable.
27760         (gl_msvc_inval_current): New function.
27761         (gl_msvc_invalid_parameter_handler) [!_MSC_VER]: Use the structure
27762         returned by gl_msvc_inval_current().
27764 2011-09-25  Bruno Haible  <bruno@clisp.org>
27766         msvc-inval: Install handler globally.
27767         * lib/msvc-inval.h (STATUS_GNULIB_INVALID_PARAMETER): Define also for
27768         !_MSC_VER.
27769         (gl_msvc_invalid_parameter_handler): Remove declaration.
27770         (gl_msvc_inval_restart_valid, gl_msvc_inval_ensure_handler): New
27771         declarations.
27772         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
27773         Install the handler globally, don't uninstall it.
27774         * lib/msvc-inval.c (gl_msvc_inval_restart_valid): New variable.
27775         (gl_msvc_invalid_parameter_handler): Make static. If the restart is not
27776         currently valid, call RaiseException instead.
27777         (gl_msvc_inval_initialized, gl_msvc_inval_ensure_handler): Define also
27778         for !_MSC_VER.
27780 2011-09-25  Bruno Haible  <bruno@clisp.org>
27782         strerror_r-posix: Fix for MSVC 9.
27783         * lib/strerror_r.c (local_snprintf): New function.
27784         (snprintf): Define to local_snprintf, not to _snprintf.
27786 2011-09-25  Bruno Haible  <bruno@clisp.org>
27788         ftruncate: Support for MSVC 9.
27789         * lib/ftruncate.c: Include errno.h, msvc-inval.h.
27790         (chsize_nothrow): New function.
27791         (chsize): Redefine as a macro.
27792         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): Require AC_C_INLINE.
27793         * modules/ftruncate (Depends-on): Add msvc-inval.
27795 2011-09-25  Bruno Haible  <bruno@clisp.org>
27797         New module 'fstat'.
27798         * lib/sys_stat.in.h (fstat): Declare only if GNULIB_FSTAT is set.
27799         * lib/fstat.c: New file, based on a piece of lib/fchdir.c.
27800         * lib/fchdir.c (rpl_fstat): Remove function.
27801         * m4/fstat.m4: New file.
27802         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_FSTAT.
27803         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Test whether fstat is
27804         declared.
27805         (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_FSTAT.
27806         * modules/sys_stat (Makefile.am): Substitute GNULIB_FSTAT.
27807         * modules/fstat: New file.
27808         * modules/sys_stat-tests (Depends-on): Remove fstat-tests.
27809         * tests/test-sys_stat-c++.cc (fstat): Check only if GNULIB_TEST_FSTAT
27810         is set.
27811         * doc/posix-functions/fstat.texi: Mention the new module and the
27812         problem on MSVC.
27813         * NEWS: Mention the change.
27814         * modules/acl (Depends-on): Add fstat.
27815         * modules/chdir-safer (Depends-on): Likewise.
27816         * modules/chown (Depends-on): Likewise.
27817         * modules/copy-file (Depends-on): Likewise.
27818         * modules/fchdir (Depends-on): Likewise.
27819         * modules/fdopendir (Depends-on): Likewise.
27820         * modules/fopen (Depends-on): Likewise.
27821         * modules/fts (Depends-on): Likewise.
27822         * modules/getcwd (Depends-on): Likewise.
27823         * modules/isapipe (Depends-on): Likewise.
27824         * modules/linkat (Depends-on): Likewise.
27825         * modules/lseek (Depends-on): Likewise.
27826         * modules/mkdir-p (Depends-on): Likewise.
27827         * modules/open (Depends-on): Likewise.
27828         * modules/openat (Depends-on): Likewise.
27829         * modules/read-file (Depends-on): Likewise.
27830         * modules/renameat (Depends-on): Likewise.
27831         * modules/utimens (Depends-on): Likewise.
27833 2011-09-25  Bruno Haible  <bruno@clisp.org>
27835         linkat: Fix compilation on MSVC 9.
27836         * lib/linkat.c: Don't include <stdint.h>.
27838 2011-09-25  Bruno Haible  <bruno@clisp.org>
27840         fclose: Support for MSVC 9.
27841         * lib/fclose.c: Include msvc-inval.h.
27842         (fclose_nothrow): New function.
27843         (rpl_fclose): Use it.
27844         * modules/fclose (Depends-on): Add msvc-inval.
27845         * doc/posix-functions/fclose.texi: Mention the problem on MSVC.
27847 2011-09-24  Paul Eggert  <eggert@cs.ucla.edu>
27849         dup2: minor simplifications
27850         * lib/dup2.c (ms_windows_dup2): Omit 'inline' as it's not clear
27851         that it's a performance win.
27852         (rpl_dup2): Change "if !((defined _WIN32 || defined __WIN32__) &&
27853         ! defined __CYGWIN__)" to "ifdef F_GETFL".
27855 2011-09-24  Jim Meyering  <meyering@redhat.com>
27857         test-futimens: avoid a warning from gcc -Wshadow
27858         * tests/test-futimens.h (test_futimens): Rename inner local, s/fd/fd0/
27859         to avoid a shadowing warning.
27861 2011-09-24  Bruno Haible  <bruno@clisp.org>
27863         fdopen: Support for MSVC 9.
27864         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Set REPLACE_FDOPEN also if
27865         HAVE_MSVC_INVALID_PARAMETER_HANDLER is 1.
27866         * lib/fdopen.c: Include msvc-inval.h.
27867         (fdopen_nothrow): New function.
27868         (rpl_fdopen): Use it.
27869         * modules/fdopen (Depends-on): Add msvc-inval.
27870         * modules/fclose-tests (Depends-on): Add fdopen.
27871         * modules/fflush-tests (Depends-on): Likewise.
27872         * modules/fgetc-tests (Depends-on): Likewise.
27873         * modules/fputc-tests (Depends-on): Likewise.
27874         * modules/fread-tests (Depends-on): Likewise.
27875         * modules/freopen-tests (Depends-on): Likewise.
27876         * modules/fseeko-tests (Depends-on): Likewise.
27877         * modules/ftello-tests (Depends-on): Likewise.
27878         * modules/fwrite-tests  (Depends-on): Likewise.
27879         * doc/posix-functions/fdopen.texi: Mention the problem on MSVC.
27881 2011-09-24  Bruno Haible  <bruno@clisp.org>
27883         fgetc, fputc, fread, fwrite tests: Avoid compilation error on MSVC.
27884         * modules/fgetc-tests (Depends-on): Add unistd.
27885         * modules/fputc-tests (Depends-on): Likewise.
27886         * modules/fread-tests (Depends-on): Likewise.
27887         * modules/fwrite-tests (Depends-on): Likewise.
27889 2011-09-24  Bruno Haible  <bruno@clisp.org>
27891         dup: Simplify autoconf test.
27892         * m4/dup.m4 (gl_FUNC_DUP): Don't run a test program. Instead, just rely
27893         on gl_MSVC_INVAL's result.
27895 2011-09-24  Bruno Haible  <bruno@clisp.org>
27897         Tests for function fwrite().
27898         * modules/fwrite-tests: New file.
27899         * tests/test-fwrite.c: New file.
27900         * modules/stdio-tests (Depends-on): Add fwrite-tests.
27902         Tests for function fread().
27903         * modules/fread-tests: New file.
27904         * tests/test-fread.c: New file.
27905         * modules/stdio-tests (Depends-on): Add fread-tests.
27907         Activate fputc tests.
27908         * modules/stdio-tests (Depends-on): Add fputc-tests.
27910         Enhance fgetc, fputc tests.
27911         * tests/test-fgetc.c (main): Also test the stream's error indicator.
27912         * tests/test-fputc.c (main): Likewise.
27914 2011-09-24  Bruno Haible  <bruno@clisp.org>
27916         write: Support for MSVC 9.
27917         * lib/unistd.in.h (write): Replace also when GNULIB_UNISTD_H_NONBLOCKING
27918         is not 1.
27919         * lib/write.c (write_nothrow): New function.
27920         (rpl_write): Define also when GNULIB_NONBLOCKING or GNULIB_SIGPIPE is
27921         not 1. Use write_nothrow.
27922         * m4/write.m4 (gl_FUNC_WRITE): Replace read if the platform has an
27923         invalid parameter handler.
27924         (gl_PREREQ_WRITE): New macro.
27925         * modules/write (Depends-on): Add msvc-inval.
27926         (configure.ac): Invoke gl_PREREQ_WRITE.
27927         * doc/posix-functions/write.texi: Mention the problem on MSVC.
27929 2011-09-24  Bruno Haible  <bruno@clisp.org>
27931         read: Fix last commit.
27932         * lib/read.c (read_nothrow): Change return type to 'ssize_t'.
27934 2011-09-24  Bruno Haible  <bruno@clisp.org>
27936         dup2: Fix last commit.
27937         * lib/dup2.c: Restore comments. Treat Cygwin like Unix.
27938         (rpl_dup2): Disable fcntl workaround on native Windows.
27940         sigprocmask: Make code safer.
27941         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' before the code
27942         section that changes macro definitions for this compilation unit.
27944 2011-09-23  Paul Eggert  <eggert@cs.ucla.edu>
27946         dup2: clarify by coalescing Windows-specific material
27947         * lib/dup2.c: Move '#include "msvc-inval.h"' and '#include
27948         "msvc-nothrow.h"' to the Windows-specific section, so that the
27949         Emacs source need not contain these include files.
27950         (ms_windows_dup2): Rename from dup2_nothrow, and move all the
27951         Windows-specific fixes into this function rather than just the
27952         nothrow fix, as this shortens and clarifies the code.  Always
27953         define as a function, as that's a bit cleaner than having it be
27954         sometimes a function and sometimes a macro.
27955         (rpl_dup2): Move the Windows-specific stuff out of here and into
27956         ms_windows_dup2.  Don't protect the Haiku-related fix with
27957         "#if !defined __linux__", as the same code also works around
27958         a Linux kernel bug, and it doesn't add any system calls on any
27959         platform.  Add comment about FreeBSD 6.1.
27961         sigprocmask: move #include directive
27962         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' to the
27963         Windows-specific section, so that the Emacs source need not
27964         contain msvc-inval.h.
27966 2011-09-23  Bruno Haible  <bruno@clisp.org>
27968         read: Support for MSVC 9.
27969         * lib/unistd.in.h (read): Replace also when GNULIB_UNISTD_H_NONBLOCKING
27970         is not 1.
27971         * lib/read.c (read_nothrow): New function.
27972         (rpl_read): Define also when GNULIB_NONBLOCKING is not 1. Use
27973         read_nothrow.
27974         * m4/read.m4 (gl_FUNC_READ): Replace read if the platform has an
27975         invalid parameter handler.
27976         (gl_PREREQ_READ): New macro.
27977         * modules/read (Depends-on): Add msvc-inval.
27978         (configure.ac): Invoke gl_PREREQ_READ.
27979         * doc/posix-functions/read.texi: Mention the problem on MSVC.
27981 2011-09-23  Bruno Haible  <bruno@clisp.org>
27983         close: Support for MSVC 9.
27984         * lib/close.c: Include <errno.h>, msvc-inval.h.
27985         (close_nothrow): New function.
27986         (rpl_close): Use it.
27987         * m4/close.m4 (gl_FUNC_CLOSE): Replace close if the platform has an
27988         invalid parameter handler.
27989         * modules/close (Depends-on): Add msvc-inval.
27990         * modules/dup2-tests (Depends-on): Add close.
27991         * modules/dup3-tests (Depends-on): Likewise.
27992         * modules/fcntl-tests (Depends-on): Likewise.
27993         * modules/spawn-pipe-tests (Depends-on): Likewise.
27994         * modules/unistd-safer-tests (Depends-on): Likewise.
27995         * doc/posix-functions/close.texi: Mention the problem on MSVC.
27997 2011-09-23  Bruno Haible  <bruno@clisp.org>
27999         New module 'dup'.
28000         * lib/unistd.in.h (dup): Declare only if the 'dup' module is in use.
28001         Allow replacement.
28002         * lib/dup.c: New file.
28003         * lib/fchdir.c (rpl_dup): Remove function.
28004         * m4/dup.m4: New file.
28005         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_DUP here.
28006         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether 'dup' is declared.
28007         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP.
28008         * modules/unistd (Makefile.am): Substitute GNULIB_DUP.
28009         * modules/dup: New file.
28010         * tests/test-unistd-c++.cc: Check the signature of 'dup' only if the
28011         'dup' module is in use.
28012         * modules/fdopendir (Depends-on): Add dup.
28013         * modules/fdutimensat-tests (Depends-on): Likewise.
28014         * modules/fts (Depends-on): Likewise.
28015         * modules/futimens-tests (Depends-on): Likewise.
28016         * modules/posix_spawnp-tests (Depends-on): Likewise.
28017         * modules/unistd-safer-tests (Depends-on): Likewise.
28018         * modules/utimens-tests (Depends-on): Likewise.
28019         * doc/posix-functions/dup.texi: Mention the new module and the problem
28020         on MSVC.
28022 2011-09-23  Bruno Haible  <bruno@clisp.org>
28024         getdtablesize: Support for MSVC 9.
28025         * lib/getdtablesize.c: Include msvc-inval.h.
28026         (_setmaxstdio_nothrow): New function.
28027         (_setmaxstdio): Redefine it.
28028         * m4/getdtablesize.m4 (gl_PREREQ_GETDTABLESIZE): New macro.
28029         * modules/getdtablesize (Depends-on): Add msvc-inval.
28030         (configure.ac): Invoke gl_PREREQ_GETDTABLESIZE.
28032 2011-09-23  Bruno Haible  <bruno@clisp.org>
28034         signal-h: Rename from signal.
28035         * modules/signal-h: Renamed from modules/signal.
28036         * modules/pthread_sigmask (Depends-on): Update.
28037         * modules/raise (Depends-on): Likewise.
28038         * modules/sigaction (Depends-on): Likewise.
28039         * modules/sigpipe (Depends-on): Likewise.
28040         * modules/sigprocmask (Depends-on): Likewise.
28041         * modules/sys_select (Depends-on): Likewise.
28042         * modules/signal-h-tests: Renamed from modules/signal-tests.
28043         (Files, Depends-on, Makefile.am): Update.
28044         * tests/test-signal-h.c: Renamed from tests/test-signal.c.
28045         * modules/signal-h-c++-tests: Renamed from modules/signal-c++-tests.
28046         (Files, Makefile.am): Update.
28047         * tests/test-signal-h-c++.cc: Renamed from tests/test-signal-c++.cc.
28048         * tests/test-signal-h-c++2.cc: Renamed from tests/test-signal-c++2.cc.
28049         * modules/signal: New placeholder file.
28050         * MODULES.html.sh (Support for systems lacking POSIX:2008): Update.
28051         * doc/posix-headers/signal.texi: Update.
28052         * NEWS: Mention the change.
28054 2011-09-23  Bruno Haible  <bruno@clisp.org>
28056         sigprocmask: Avoid crashes through signal() on MSVC 9.
28057         * lib/sigprocmask.c: Include msvc-inval.h.
28058         (signal_nothrow): New function.
28059         (signal): Redefine it.
28060         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Require AC_C_INLINE.
28061         * modules/sigprocmask (Depends-on): Add msvc-inval.
28062         * doc/posix-functions/signal.texi: Mention the problem on MSVC.
28064 2011-09-23  Bruno Haible  <bruno@clisp.org>
28066         Tests for module 'raise'.
28067         * modules/raise-tests: New file.
28068         * tests/test-raise.c: New file.
28070         raise: Support for MSVC.
28071         * lib/signal.in.h (raise): New declaration.
28072         * lib/raise.c (raise_nothrow, rpl_raise): New alternate implementation
28073         for native Windows platforms.
28074         * m4/raise.m4: New file.
28075         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize GNULIB_RAISE,
28076         HAVE_RAISE, REPLACE_RAISE.
28077         * modules/signal (Makefile.am): Substitute GNULIB_RAISE, HAVE_RAISE,
28078         REPLACE_RAISE.
28079         * modules/raise (Status, Notice): Remove fields.
28080         (Files): Add m4/raise.m4.
28081         (Depends-on): Add signal, msvc-inval.
28082         (configure.ac): Use the common idioms.
28083         (Maintainer): Add me.
28084         * tests/test-signal-c++.cc: Check the signature of raise.
28085         * doc/posix-functions/raise.texi: Mention the problem on MSVC.
28087 2011-09-23  Bruno Haible  <bruno@clisp.org>
28089         pipe2: Fix compilation on pre-C99 compilers.
28090         * lib/pipe2.c (pipe2): Surround verify(...) declaration with braces.
28092 2011-09-23  Bruno Haible  <bruno@clisp.org>
28094         New module 'msvc-nothrow'. Makes _get_osfhandle safe on MSVC 9.
28095         * lib/msvc-nothrow.h: New file.
28096         * lib/msvc-nothrow.c: New file.
28097         * m4/msvc-nothrow.m4: New file.
28098         * modules/msvc-nothrow: New file.
28099         * lib/dup2.c: Include msvc-nothrow.h.
28100         (rpl_dup2): No need to protect _get_osfhandle call here.
28101         * lib/accept4.c: Include msvc-nothrow.h.
28102         * lib/error.c: Likewise.
28103         * lib/fcntl.c: Likewise.
28104         * lib/lseek.c: Likewise.
28105         * lib/nonblocking.c: Likewise.
28106         * lib/poll.c: Likewise.
28107         * lib/read.c: Likewise.
28108         * lib/select.c: Likewise.
28109         * lib/sockets.h: Likewise.
28110         * lib/sockets.c: Likewise.
28111         * lib/stdio-read.c: Likewise.
28112         * lib/stdio-write.c: Likewise.
28113         * lib/write.c: Likewise.
28114         * lib/w32sock.h: Likewise.
28115         * lib/w32spawn.h: Likewise.
28116         * lib/flock.c: Include msvc-nothrow.h instead of <io.h>.
28117         * lib/fsync.c: Likewise.
28118         * lib/isapipe.c: Likewise.
28119         * modules/dup2 (Depends-on): Add msvc-nothrow.
28120         * modules/accept4 (Depends-on): Likewise.
28121         * modules/error (Depends-on): Likewise.
28122         * modules/fcntl (Depends-on): Likewise.
28123         * modules/lseek (Depends-on): Likewise.
28124         * modules/nonblocking (Depends-on): Likewise.
28125         * modules/poll (Depends-on): Likewise.
28126         * modules/read (Depends-on): Likewise.
28127         * modules/select (Depends-on): Likewise.
28128         * modules/sockets (Depends-on): Likewise.
28129         * modules/sigpipe (Depends-on): Likewise.
28130         * modules/write (Depends-on): Likewise.
28131         * modules/accept (Depends-on): Likewise.
28132         * modules/bind (Depends-on): Likewise.
28133         * modules/connect (Depends-on): Likewise.
28134         * modules/gethostname (Depends-on): Likewise.
28135         * modules/getpeername (Depends-on): Likewise.
28136         * modules/getsockname (Depends-on): Likewise.
28137         * modules/getsockopt (Depends-on): Likewise.
28138         * modules/ioctl (Depends-on): Likewise.
28139         * modules/listen (Depends-on): Likewise.
28140         * modules/recv (Depends-on): Likewise.
28141         * modules/recvfrom (Depends-on): Likewise.
28142         * modules/send (Depends-on): Likewise.
28143         * modules/sendto (Depends-on): Likewise.
28144         * modules/setsockopt (Depends-on): Likewise.
28145         * modules/shutdown (Depends-on): Likewise.
28146         * modules/socket (Depends-on): Likewise.
28147         * modules/execute (Depends-on): Likewise.
28148         * modules/spawn-pipe (Depends-on): Likewise.
28149         * modules/flock (Depends-on): Likewise.
28150         * modules/fsync (Depends-on): Likewise.
28151         * modules/isapipe (Depends-on): Likewise.
28152         * tests/test-cloexec.c: Include msvc-nothrow.h.
28153         * tests/test-dup-safer.c: Likewise.
28154         * tests/test-dup2.c: Likewise.
28155         * tests/test-dup3.c: Likewise.
28156         * tests/test-fcntl.c: Likewise.
28157         * tests/test-pipe.c: Likewise.
28158         * tests/test-pipe2.c: Likewise.
28159         * modules/cloexec-tests (Depends-on): Add msvc-nothrow.
28160         * modules/unistd-safer-tests (Depends-on): Likewise.
28161         * modules/dup2-tests (Depends-on): Likewise.
28162         * modules/dup3-tests (Depends-on): Likewise.
28163         * modules/fcntl-tests (Depends-on): Likewise.
28164         * modules/pipe-posix-tests (Depends-on): Likewise.
28165         * modules/pipe2-tests (Depends-on): Likewise.
28167 2011-09-23  Bruno Haible  <bruno@clisp.org>
28169         dup2: Make code more maintainable.
28170         * lib/dup2.c (dup2_nothrow): New function, extracted from rpl_dup2.
28171         (rpl_dup2): Use it.
28172         * m4/dup2.m4 (gl_PREREQ_DUP2): New macro.
28173         * modules/dup2 (configure.ac): Invoke it.
28174         Reported by Paul Eggert.
28176 2011-09-23  Bruno Haible  <bruno@clisp.org>
28178         msvc-inval: Fix compilation error.
28179         * lib/msvc-inval.h: Include <excpt.h>.
28181 2011-09-23  Bruno Haible  <bruno@clisp.org>
28183         mkdir: Tweak for MSVC 9.
28184         * lib/sys_stat.in.h: Update comments.
28185         * doc/posix-functions/mkdir.texi: Mention problem on MSVC 9.
28187         Tests for module 'chdir'.
28188         * modules/chdir-tests: New file.
28189         * tests/test-chdir.c: New file.
28191         New module 'chdir'.
28192         * modules/chdir: New file.
28193         * lib/unistd.in.h: Include <io.h>, <direct.h> also for chdir.
28194         (chdir): New declaration.
28195         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether chdir is declared.
28196         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CHDIR.
28197         * modules/unistd (Makefile.am): Substitute GNULIB_CHDIR.
28198         * tests/test-unistd-c++.cc: Check signature of chdir.
28199         * doc/posix-functions/chdir.texi: Mention problem on native Windows.
28200         * modules/chdir-long (Depends-on): Add chdir.
28201         * modules/fchdir (Depends-on): Likewise.
28202         * modules/rename (Depends-on): Likewise.
28203         * modules/savewd (Depends-on): Likewise.
28205         rmdir: Support for mingw, MSVC 9.
28206         * lib/unistd.in.h: Include <io.h> and <direct.h> also for rmdir.
28207         * doc/posix-functions/getcwd.texi: Mention problem on native Windows.
28209         getcwd: Tweak for MSVC 9.
28210         * lib/unistd.in.h: Update comments.
28211         * doc/posix-functions/getcwd.texi: Mention problem on MSVC 9.
28213 2011-09-22  Bruno Haible  <bruno@clisp.org>
28215         strerror_r-posix: Avoid a link error on MSVC.
28216         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Check for snprintf.
28217         * lib/strerror_r.c (snprintf): Define to _snprintf if it doesn't exist.
28219 2011-09-22  Bruno Haible  <bruno@clisp.org>
28221         select: Avoid link errors on MSVC.
28222         * m4/select.m4 (gl_FUNC_SELECT): Determine LIB_SELECT.
28223         * modules/select (Link): Replace $(LIBSOCKET) with $(LIB_SELECT).
28224         * modules/pselect (Link): Likewise.
28225         * NEWS: Mention the change.
28226         * modules/select-tests (Makefile.am): Link test-select, test-select-fd,
28227         test-select-stdin against $(LIB_SELECT).
28228         * modules/pselect-tests (Makefile.am): Link test-pselect against
28229         $(LIB_SELECT).
28231 2011-09-22  Bruno Haible  <bruno@clisp.org>
28233         select: Avoid compilation error on MSVC.
28234         * lib/select.c: Don't include <stdbool.h>.
28236 2011-09-21  Bruno Haible  <bruno@clisp.org>
28238         Consolidate all uses of PATH_MAX in *.m4 files.
28239         * m4/pathmax.m4 (gl_PATHMAX_SNIPPET, gl_PATHMAX_SNIPPET_PREREQ): New
28240         macros.
28241         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Use gl_PATHMAX_SNIPPET_PREREQ
28242         and gl_PATHMAX_SNIPPET.
28243         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
28244         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
28245         * modules/chdir-long (Files): Add m4/pathmax.m4.
28246         * modules/getcwd (Files): Likewise.
28248 2011-09-21  Bruno Haible  <bruno@clisp.org>
28250         ftruncate: Un-deprecate, concentrate on Win32 support.
28251         * modules/ftruncate (Status, Notice): Remove sections.
28252         (Depends-on): Add largefile.
28253         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Drop failure message on
28254         non-mingw platforms.
28255         * lib/ftruncate.c: Remove code for the older platforms. For Win32,
28256         include <io.h>.
28257         * modules/perror-tests (Depends-on): Add ftruncate.
28258         * doc/posix-functions/ftruncate.texi: Mention the MSVC problem and the
28259         'ftruncate' module.
28261 2011-09-21  Bruno Haible  <bruno@clisp.org>
28263         Add dependencies to new dirent related modules.
28264         * modules/opendir (Depends-on): Add closedir.
28265         * modules/getcwd (Depends-on): Add opendir, closedir.
28266         * modules/dirent-safer-tests (Depends-on): Likewise.
28267         * modules/fdopendir-tests (Depends-on): Likewise.
28268         * modules/rename-tests (Depends-on): Add opendir, readdir, closedir.
28269         * modules/renameat-tests (Depends-on): Likewise.
28271 2011-09-21  Bruno Haible  <bruno@clisp.org>
28273         opendir: Avoid compilation error on mingw.
28274         * lib/opendir.c: Include <stddef.h> always. Include <unistd.h> as well.
28275         * modules/opendir (Depends-on): Add unistd.
28277 2011-09-21  Bruno Haible  <bruno@clisp.org>
28279         ftruncate tests: Avoid a test failure on mingw.
28280         * tests/test-ftruncate.c (main): Allow a failure with EACCES.
28282 2011-09-21  Bruno Haible  <bruno@clisp.org>
28284         select tests: Avoid test failures on OSF/1 5.1 and mingw.
28285         * tests/test-select.h (test_bad_fd): Disable all tests on OSF/1 and
28286         native Windows.
28288 2011-09-21  Bruno Haible  <bruno@clisp.org>
28290         New module 'fdopen'.
28291         * lib/stdio.in.h (fdopen): New declaration.
28292         * lib/fdopen.c: New file.
28293         * m4/fdopen.m4: New file.
28294         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FDOPEN,
28295         REPLACE_FDOPEN.
28296         * modules/stdio (Makefile.am): Substitute GNULIB_FDOPEN,
28297         REPLACE_FDOPEN.
28298         * modules/fdopen: New file.
28299         * modules/stdio-tests (Depends-on): Remove fdopen-tests.
28300         * tests/test-stdio-c++.cc: Check signature of fdopen.
28301         * doc/posix-functions/fdopen.texi: Mention the new module.
28303 2011-09-21  Bruno Haible  <bruno@clisp.org>
28305         unlockpt tests: Avoid test failure on NetBSD 5.1.
28306         * tests/test-unlockpt.c (main): Skip the EBADF tests on NetBSD.
28307         * doc/posix-functions/unlockpt.texi: Mention the bug on NetBSD.
28309 2011-09-21  Bruno Haible  <bruno@clisp.org>
28311         getlogin, getlogin_r tests: Avoid test failure on Linux/SPARC.
28312         * tests/test-getlogin.c (main): Allow a failure with EINVAL.
28313         * tests/test-getlogin_r.c (main): Likewise.
28315 2011-09-20  Bruno Haible  <bruno@clisp.org>
28317         time tests: Don't require pid_t.
28318         * doc/posix-headers/time.texi: Revert last change.
28319         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Revert last change.
28320         * tests/test-time.c: Comment out the check for pid_t.
28322 2011-09-20  Bruno Haible  <bruno@clisp.org>
28324         fsync tests: Avoid a test failure on mingw.
28325         * tests/test-fsync.c (main): Allow a failure with EIO.
28327 2011-09-20  Bruno Haible  <bruno@clisp.org>
28329         euidaccess: Update comments.
28330         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Update comments.
28332 2011-09-20  Bruno Haible  <bruno@clisp.org>
28334         Ensure EBADF returns for socket functions on mingw.
28335         * lib/accept.c (rpl_accept): Fail with error EBADF if the file
28336         descriptor is invalid.
28337         * lib/bind.c (rpl_bind): Likewise.
28338         * lib/connect.c (rpl_connect): Likewise.
28339         * lib/getpeername.c (rpl_getpeername): Likewise.
28340         * lib/getsockname.c (rpl_getsockname): Likewise.
28341         * lib/getsockopt.c (rpl_getsockopt): Likewise.
28342         * lib/listen.c (rpl_listen): Likewise.
28343         * lib/recv.c (rpl_recv): Likewise.
28344         * lib/recvfrom.c (rpl_recvfrom): Likewise.
28345         * lib/send.c (rpl_send): Likewise.
28346         * lib/sendto.c (rpl_sendto): Likewise.
28347         * lib/setsockopt.c (rpl_setsockopt): Likewise.
28348         * lib/shutdown.c (rpl_shutdown): Likewise.
28350 2011-09-20  Bruno Haible  <bruno@clisp.org>
28352         select tests: EBADF tests.
28353         * tests/test-select.h (do_select_bad_fd, do_select_bad_fd_nowait,
28354         test_bad_fd): New functions.
28355         (test_function): Invoke also test_bad_fd.
28357 2011-09-20  Bruno Haible  <bruno@clisp.org>
28359         Tests for module 'posix_spawn_file_actions_addopen.
28360         * modules/posix_spawn_file_actions_addopen-tests: New file.
28361         * tests/test-posix_spawn_file_actions_addopen.c: New file.
28363         Tests for module 'posix_spawn_file_actions_adddup2'.
28364         * modules/posix_spawn_file_actions_adddup2-tests: New file.
28365         * tests/test-posix_spawn_file_actions_adddup2.c: New file.
28367         Tests for module 'posix_spawn_file_actions_addclose'.
28368         * modules/posix_spawn_file_actions_addclose-tests: New file.
28369         * tests/test-posix_spawn_file_actions_addclose.c: New file.
28371 2011-09-20  Bruno Haible  <bruno@clisp.org>
28373         Tests for module 'unlockpt'.
28374         * modules/unlockpt-tests: New file.
28375         * tests/test-unlockpt.c: New file.
28376         * doc/posix-functions/unlockpt.texi: Mention the Cygwin 1.7 problem.
28378         Tests for module 'grantpt'.
28379         * modules/grantpt-tests: New file.
28380         * tests/test-grantpt.c: New file.
28381         * doc/posix-functions/grantpt.texi: Mention the Cygwin 1.7 problem.
28383 2011-09-20  Bruno Haible  <bruno@clisp.org>
28385         freopen tests: EBADF tests.
28386         * tests/test-freopen.c: Include errno.h, unistd.h.
28387         (main): Add tests for EBADF, commented out for the moment.
28389         fclose tests: EBADF tests.
28390         * tests/test-fclose.c (main): Add tests for EBADF.
28392         fflush tests: EBADF tests.
28393         * tests/test-fflush.c: Include errno.h, macros.h.
28394         (main): Add tests for EBADF.
28396         ftello tests: EBADF tests.
28397         * tests/test-ftello4.sh: New file.
28398         * tests/test-ftello4.c: New file.
28399         * modules/ftello-tests (Files): Add them.
28400         (Makefile.am): Arrange to compile test-ftello4 and run test-ftello4.sh.
28402         fseeko tests: EBADF tests.
28403         * tests/test-fseeko4.sh: New file.
28404         * tests/test-fseeko4.c: New file.
28405         * modules/fseeko-tests (Files): Add them.
28406         (Makefile.am): Arrange to compile test-fseeko4 and run test-fseeko4.sh.
28408         Tests for function fputc().
28409         * modules/fputc-tests: New file.
28410         * tests/test-fputc.c: New file.
28411         * modules/stdio-tests (Depends-on): Add fputc-tests.
28413         Tests for function fgetc().
28414         * modules/fgetc-tests: New file.
28415         * tests/test-fgetc.c: New file.
28416         * modules/stdio-tests (Depends-on): Add fgetc-tests.
28418         Tests for function fdopen().
28419         * modules/fdopen-tests: New file.
28420         * tests/test-fdopen.c: New file.
28421         * modules/stdio-tests (Depends-on): Add fdopen-tests.
28423         Tests for module 'vdprintf'.
28424         * modules/vdprintf-tests: New file.
28425         * tests/test-vdprintf.c: New file.
28427         Tests for module 'dprintf'.
28428         * modules/dprintf-tests: New file.
28429         * tests/test-dprintf.c: New file.
28431 2011-09-20  Bruno Haible  <bruno@clisp.org>
28433         Tests for module 'ioctl'.
28434         * modules/ioctl-tests: New file.
28435         * tests/test-ioctl.c: New file.
28437 2011-09-20  Bruno Haible  <bruno@clisp.org>
28439         fcntl tests: EBADF tests.
28440         * tests/test-fcntl.c (main): Add more tests for EBADF.
28442 2011-09-20  Bruno Haible  <bruno@clisp.org>
28444         utimensat tests: EBADF tests.
28445         * tests/test-utimensat.c (main): Add tests for EBADF.
28447         renameat tests: EBADF tests.
28448         * tests/test-renameat.c (main): Add tests for EBADF.
28450         mkfifoat tests: EBADF tests.
28451         * tests/test-mkfifoat.c (main): Add tests for EBADF.
28453         readlinkat tests: EBADF tests.
28454         * tests/test-readlinkat.c (main): Add tests for EBADF.
28456         symlinkat tests: EBADF tests.
28457         * tests/test-symlinkat.c (main): Add tests for EBADF.
28459         linkat tests: EBADF tests.
28460         * tests/test-linkat.c (main): Add tests for EBADF.
28462         Tests for module 'faccessat'.
28463         * modules/faccessat-tests: New file.
28464         * tests/test-faccessat.c: New file.
28466         fdopendir tests: EBADF tests.
28467         * tests/test-fdopendir.c (main): Add more tests for EBADF.
28469         openat tests: EBADF tests.
28470         * tests/test-fchownat.c (main): Add tests for EBADF.
28471         * tests/test-fstatat.c (main): Likewise.
28472         * tests/test-mkdirat.c (main): Likewise.
28473         * tests/test-openat.c (main): Likewise.
28474         * tests/test-unlinkat.c (main): Likewise.
28475         * tests/test-fchmodat.c: New file.
28476         * modules/openat-tests (Files): Add tests/test-fchmodat.c.
28477         (Makefile.am): Also run 'test-fchmodat'.
28479 2011-09-20  Bruno Haible  <bruno@clisp.org>
28481         utimens, futimens, fdutimensat tests: EBADF tests.
28482         * tests/test-futimens.h (test_futimens): Add more tests for EBADF.
28484         Tests for function fstat().
28485         * modules/fstat-tests: New file.
28486         * tests/test-fstat.c: New file.
28487         * modules/sys_stat-tests (Depends-on): Add fstat-tests.
28489 2011-09-20  Bruno Haible  <bruno@clisp.org>
28491         test-ttyname_r tests: EBADF tests.
28492         * tests/test-ttyname_r.c (main): Add tests for EBADF.
28494         Tests for module 'isatty'.
28495         * modules/isatty-tests: New file.
28496         * tests/test-isatty.c: New file.
28498         Tests for module 'write'.
28499         * modules/write-tests: New file.
28500         * tests/test-write.c: New file.
28502         Tests for module 'read'.
28503         * modules/read-tests: New file.
28504         * tests/test-read.c: New file.
28506         pwrite tests: EBADF tests.
28507         * tests/test-pwrite.c (main): Add tests for EBADF.
28509         pread tests: EBADF tests.
28510         * tests/test-pread.c (main): Add tests for EBADF.
28512         lseek tests: EBADF tests.
28513         * tests/test-lseek.c (main): Add more tests for EBADF.
28515         Tests for module 'ftruncate'.
28516         * modules/ftruncate-tests: New file.
28517         * tests/test-ftruncate.sh: New file.
28518         * tests/test-ftruncate.c: New file.
28520         fsync tests: EBADF tests.
28521         * tests/test-fsync.c (main): Add more tests for EBADF.
28523         fdatasync tests: EBADF tests.
28524         * tests/test-fdatasync.c (main): Add more tests for EBADF.
28526         Tests for module 'fchown'.
28527         * modules/fchown-tests: New file.
28528         * tests/test-fchown.c: New file.
28530         Tests for module 'fchmod'.
28531         * modules/fchmod-tests: New file.
28532         * tests/test-fchmod.c: New file.
28534         fchdir tests: EBADF tests.
28535         * tests/test-fchdir.c (main): Add more tests for EBADF.
28537         dup2 tests: EBADF tests.
28538         * tests/test-dup2.c (main): Add more tests for EBADF.
28540         Tests for module 'dup'.
28541         * modules/dup-tests: New file.
28542         * tests/test-dup.c: New file.
28544         Tests for module 'close'.
28545         * modules/close-tests: New file.
28546         * tests/test-close.c: New file.
28548 2011-09-20  Bruno Haible  <bruno@clisp.org>
28550         Tests for module 'shutdown'.
28551         * modules/shutdown-tests: New file.
28552         * tests/test-shutdown.c: New file.
28554         Tests for module 'setsockopt'.
28555         * modules/setsockopt-tests: New file.
28556         * tests/test-setsockopt.c: New file.
28558         Tests for module 'sendto'.
28559         * modules/sendto-tests: New file.
28560         * tests/test-sendto.c: New file.
28562         Tests for module 'send'.
28563         * modules/send-tests: New file.
28564         * tests/test-send.c: New file.
28566         Tests for module 'recvfrom'.
28567         * modules/recvfrom-tests: New file.
28568         * tests/test-recvfrom.c: New file.
28570         Tests for module 'recv'.
28571         * modules/recv-tests: New file.
28572         * tests/test-recv.c: New file.
28574         Tests for module 'listen'.
28575         * modules/listen-tests: New file.
28576         * tests/test-listen.c: New file.
28578         Tests for module 'getsockopt'.
28579         * modules/getsockopt-tests: New file.
28580         * tests/test-getsockopt.c: New file.
28582         Tests for module 'getsockname'.
28583         * modules/getsockname-tests: New file.
28584         * tests/test-getsockname.c: New file.
28586         Tests for module 'getpeername'.
28587         * modules/getpeername-tests: New file.
28588         * tests/test-getpeername.c: New file.
28590         Tests for module 'connect'.
28591         * modules/connect-tests: New file.
28592         * tests/test-connect.c: New file.
28594         Tests for module 'bind'.
28595         * modules/bind-tests: New file.
28596         * tests/test-bind.c: New file.
28598         accept4 tests: Fix for native Windows.
28599         * tests/test-accept4.c: Include sockets.h.
28600         (main): Invoke gl_sockets_startup.
28601         * modules/accept4-tests (Depends-on): Add sockets.
28603         accept tests: Fix for native Windows.
28604         * tests/test-accept.c: Include sockets.h.
28605         (main): Invoke gl_sockets_startup.
28606         * modules/accept-tests (Depends-on): Add sockets.
28608 2011-09-19  Bruno Haible  <bruno@clisp.org>
28610         msvc-inval: Require a semicolon after DONE_MSVC_INVAL.
28611         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Wrap in a
28612         do...while(0).
28613         * lib/dup2.c (rpl_dup2): Add a semicolon after DONE_MSVC_INVAL.
28614         Suggested by Paul Eggert.
28616 2011-09-19  Bruno Haible  <bruno@clisp.org>
28618         sched: Ensure pid_t is defined.
28619         * m4/sched_h.m4 (gl_SCHED_H): Arrange to override <sched.h> if it does
28620         not define pid_t.
28621         * lib/sched.in.h: Include <sys/types.h>.
28622         * doc/posix-headers/sched.texi: Mention the pid_t problem.
28623         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
28625 2011-09-19  Bruno Haible  <bruno@clisp.org>
28627         msvc-inval: Ensure the entire expansion is a single statement.
28628         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Add an extra pair
28629         of braces.
28631 2011-09-19  Jim Meyering  <meyering@redhat.com>
28633         tests: use printf, not echo in init.sh's warn_ function
28634         * tests/init.sh (warn_): Use printf, not echo.  The latter would
28635         misbehave when given strings containing a backslash or starting
28636         with e.g., -n.  James Youngman suggested setting IFS.
28638 2011-09-19  Eric Blake  <eblake@redhat.com>
28640         futimens: enhance test
28641         * tests/test-futimens.h (test_futimens): Also check for EBADF on
28642         closed non-negative fd.
28644         date: accept 'hence' as opposite of 'ago'
28645         * lib/parse-datetime.y (relative_time_table): Add 'hence'.
28646         * tests/test-parse-datetime.c (main): Enhance test.
28647         Suggested by Jesse Wilson.
28649 2011-09-19  Jim Meyering  <meyering@redhat.com>
28651         getcwd: don't fail in a deep directory on a system without openat
28652         Before this change, getcwd would fail when called from a directory
28653         of depth PATH_MAX / 3 or greater.  That was due to the fact that
28654         the non-openat implementation used "..", "../..", "../../..", etc.
28655         to access ancestor directories.  With too many, that string would
28656         be longer than PATH_MAX.
28657         * lib/getcwd.c (HAVE_OPENAT_SUPPORT): Define also when we are
28658         using gnulib's openat replacement.
28659         * m4/openat.m4: Set GNULIB_OPENAT, so getcwd.c knows when
28660         we're using the replacement function.
28662 2011-09-14  Martin von Gagern  <Martin.vGagern@gmx.net>
28664         maint.mk: avoid warnings from perl about missing files
28665         * top/maint.mk (def_sym_regex): Ignore files listed in
28666         $(gl_other_headers_) that do not exist, say because a project
28667         does not use a corresponding module.
28669 2011-09-18  Paul Eggert  <eggert@cs.ucla.edu>
28671         stat: use pathmax.h only if needed
28672         * lib/stat.c: Include pathmax.h only if REPLACE_FUNC_STAT_DIR.
28673         This is better for Emacs, which does not have a mingw port and
28674         therefore can avoid the pathmax module.
28676         utimens: remove dependency on dup2
28677         * lib/utimens.c (fdutimens): Don't invoke dup2; it's not needed
28678         to work around the Linux kernel bug.
28679         * modules/utimens (Depends-on): Remove dup2.
28681 2011-09-18  Bruno Haible  <bruno@clisp.org>
28683         inet_ntop, inet_pton: Look for it also in libresolv.
28684         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): If the function was not found in
28685         libnsl, search for it in libresolv.
28686         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
28687         Needed on Solaris 7.
28689 2011-09-18  Bruno Haible  <bruno@clisp.org>
28691         accept, accept4 tests: Avoid link error on Solaris.
28692         * modules/accept-tests (Makefile.am): Link test-accept against
28693         $(LIBSOCKET).
28694         * modules/accept4-tests (Makefile.am): Link test-accept4 against
28695         $(LIBSOCKET).
28697         accept4: Avoid link error on Solaris.
28698         * modules/accept4 (Link): New section.
28700         socket functions: Avoid link errors on Solaris.
28701         * modules/accept (Depends-on): Add socketlib.
28702         (Link): New section.
28703         * modules/bind (Depends-on): Add socketlib.
28704         (Link): New section.
28705         * modules/connect (Depends-on): Add socketlib.
28706         (Link): New section.
28707         * modules/getpeername (Depends-on): Add socketlib.
28708         (Link): New section.
28709         * modules/getsockname (Depends-on): Add socketlib.
28710         (Link): New section.
28711         * modules/getsockopt (Depends-on): Add socketlib.
28712         (Link): New section.
28713         * modules/listen (Depends-on): Add socketlib.
28714         (Link): New section.
28715         * modules/recv (Depends-on): Add socketlib.
28716         (Link): New section.
28717         * modules/recvfrom (Depends-on): Add socketlib.
28718         (Link): New section.
28719         * modules/send (Depends-on): Add socketlib.
28720         (Link): New section.
28721         * modules/sendto (Depends-on): Add socketlib.
28722         (Link): New section.
28723         * modules/setsockopt (Depends-on): Add socketlib.
28724         (Link): New section.
28725         * modules/shutdown (Depends-on): Add socketlib.
28726         (Link): New section.
28727         * modules/socket (Depends-on): Add socketlib.
28728         (Link): New section.
28730 2011-09-18  Bruno Haible  <bruno@clisp.org>
28732         ptsname tests: Let the test fail rather than hang (e.g. on AIX 5.1).
28733         * tests/test-ptsname.c (main): Terminate the test if it takes longer
28734         than 5 seconds.
28735         * modules/ptsname-tests (configure.ac): Test for alarm.
28737 2011-09-18  Bruno Haible  <bruno@clisp.org>
28739         posix_spawn_file_actions_add*: Fix module dependencies.
28740         * modules/posix_spawn_file_actions_addclose (Dependencies): Add
28741         posix_spawn_file_actions_init.
28742         * modules/posix_spawn_file_actions_adddup2 (Dependencies): Likewise.
28743         * modules/posix_spawn_file_actions_addopen (Dependencies): Likewise.
28745 2011-09-18  Bruno Haible  <bruno@clisp.org>
28747         rename, renameat tests: Avoid test failures on FreeBSD 6.4.
28748         * tests/test-rename.h (test_rename): Allow error code EEXIST.
28749         * tests/test-renameat.c (main): Likewise.
28751 2011-09-18  Bruno Haible  <bruno@clisp.org>
28753         Tests for module 'accept4'.
28754         * modules/accept4-tests: New file.
28755         * tests/test-accept4.c: New file.
28757 2011-09-18  Bruno Haible  <bruno@clisp.org>
28759         Tests for module 'accept'.
28760         * modules/accept-tests: New file.
28761         * tests/test-accept.c: New file.
28763 2011-09-18  Bruno Haible  <bruno@clisp.org>
28765         dup2: Support for MSVC.
28766         * lib/dup2.c: Include msvc-inval.h.
28767         (rpl_dup2): Handle invalid parameter notifications during dup2 and
28768         _get_osfhandle calls.
28769         * modules/dup2 (Depends-on): Add msvc-inval.
28770         * doc/posix-functions/dup2.texi: Mention problem on MSVC.
28772         New module 'msvc-inval'.
28773         * lib/msvc-inval.h: New file.
28774         * lib/msvc-inval.c: New file.
28775         * m4/msvc-inval.m4: New file.
28776         * modules/msvc-inval: New file.
28778 2011-09-17  Bruno Haible  <bruno@clisp.org>
28780         Tests for module 'pclose'.
28781         * modules/pclose-tests: New file.
28783         New module 'pclose'.
28784         * lib/stdio.in.h (pclose): New declaration.
28785         * lib/pclose.c: New file.
28786         * m4/pclose.m4: New file.
28787         * m4/stdio_h.m4 (gl_STDIO_H): Test whether pclose is declared.
28788         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PCLOSE, HAVE_PCLOSE.
28789         * modules/stdio (Makefile.am): Substitute GNULIB_PCLOSE, HAVE_PCLOSE.
28790         * modules/pclose: New file.
28791         * modules/popen-tests (Depends-on): Add pclose.
28792         * modules/popen-safer-tests (Depends-on): Likewise.
28793         * doc/posix-functions/pclose.texi: Mention the new module.
28795 2011-09-17  Bruno Haible  <bruno@clisp.org>
28797         popen: Support for MSVC.
28798         * lib/stdio.in.h (popen): Declare it if the system lacks this function.
28799         * lib/popen.c (popen): Provide alternate definition for native Windows.
28800         * m4/popen.m4 (gl_FUNC_POPEN): Test if popen exists. Set HAVE_POPEN.
28801         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_POPEN.
28802         * modules/popen (Depends-on, configure.ac): Update condition.
28803         * modules/stdio (Makefile.am): Substitute HAVE_POPEN.
28804         * doc/posix-functions/popen.texi: Mention that the MSVC problem is
28805         fixed.
28807 2011-09-17  Bruno Haible  <bruno@clisp.org>
28809         isnanl, isnand, isnanf: Work around MSVC bug.
28810         * lib/isnan.c (FUNC): Use alternate ways of computing NaN and Infinity.
28812 2011-09-17  Bruno Haible  <bruno@clisp.org>
28814         sys_socket tests: Fix recent mistake.
28815         * tests/test-sys_socket.c (t1): Avoid collision of identifiers.
28817 2011-09-17  Bruno Haible  <bruno@clisp.org>
28819         putenv: Support for MSVC.
28820         * modules/putenv (Depends-on): Add environ.
28821         * lib/putenv.c (environ): Disable declaration.
28822         * lib/unistd.in.h: Update comment.
28824 2011-09-17  Bruno Haible  <bruno@clisp.org>
28826         math: Avoid macro redefinition warnings on MSVC.
28827         * lib/math.in.h (ceilf, ceill, floorf, floorl, frexpl, ldexpl):
28828         Undefine before redefining.
28830 2011-09-17  Bruno Haible  <bruno@clisp.org>
28832         doc: Mention functions which are declared as macros.
28833         * doc/posix-functions/*[fl].texi: Mention that some functions are
28834         defined as macros with arguments only.
28836 2011-09-17  Bruno Haible  <bruno@clisp.org>
28838         Add dependencies to new dirent related modules.
28839         * modules/backupfile (Depends-on): Add opendir, readdir, closedir.
28840         * modules/fts (Depends-on): Likewise.
28841         * modules/glob (Depends-on): Likewise.
28842         * modules/savedir (Depends-on): Likewise.
28843         * modules/scandir (Depends-on): Likewise.
28844         * modules/dirent-safer (Depends-on): Add opendir, closedir.
28845         * modules/fdopendir (Depends-on): Add opendir.
28847 2011-09-17  Bruno Haible  <bruno@clisp.org>
28849         inet_pton: Support for MSVC on Windows Vista or newer.
28850         * lib/arpa_inet.in.h (inet_pton): Also consider REPLACE_INET_PTON.
28851         * lib/inet_pton.c (rpl_inet_pton): Use a simple wrapper if
28852         HAVE_DECL_INET_PTON is defined.
28853         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Invoke gl_PREREQ_SYS_H_WINSOCK2.
28854         On platforms with <winsock2.h>, test whether inet_pton is declared in
28855         <ws2tcpip.h>. If so, arrange to replace it.
28856         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
28857         REPLACE_INET_PTON.
28858         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_PTON.
28859         * modules/inet_pton (Files): Add m4/sys_socket_h.m4.
28860         (Depends-on, configure.ac): Update condition.
28861         * doc/posix-functions/inet_pton.texi: Mention the MSVC problem.
28863 2011-09-17  Bruno Haible  <bruno@clisp.org>
28865         inet_ntop: Support for MSVC on Windows Vista or newer.
28866         * lib/arpa_inet.in.h (inet_ntop): Also consider REPLACE_INET_NTOP.
28867         * lib/inet_ntop.c (rpl_inet_ntop): Use a simple wrapper if
28868         HAVE_DECL_INET_NTOP is defined.
28869         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Invoke gl_PREREQ_SYS_H_WINSOCK2.
28870         On platforms with <winsock2.h>, test whether inet_ntop is declared in
28871         <ws2tcpip.h>. If so, arrange to replace it.
28872         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
28873         REPLACE_INET_NTOP.
28874         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_NTOP.
28875         * modules/inet_ntop (Files): Add m4/sys_socket_h.m4.
28876         (Depends-on, configure.ac): Update condition.
28877         * doc/posix-functions/inet_ntop.texi: Mention the MSVC problem.
28879 2011-09-16  Eric Blake  <eblake@redhat.com>
28881         test-fsync: yet another enhancement
28882         * tests/test-fsync.c (main): Also test behavior on read-only text
28883         file.
28885 2011-09-16  Bruno Haible  <bruno@clisp.org>
28887         Enhance fsync, fdatasync tests.
28888         * tests/test-fsync.c (main): Test both STDIN_FILENO and STDOUT_FILENO.
28889         * tests/test-fdatasync.c (main): Likewise.
28891 2011-09-16  Bruno Haible  <bruno@clisp.org>
28893         Support for MSVC compiler: Ensure mode_t gets defined.
28894         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_MODE_T.
28895         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
28896         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
28897         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Likewise.
28898         * tests/test-fcntl-h.c: Check that mode_t is defined.
28899         * tests/test-sys_stat.c: Likewise.
28900         * tests/test-sys_types.c: Likewise.
28901         * doc/posix-headers/fcntl.texi: Mention the missing mode_t problem.
28902         * doc/posix-headers/sys_stat.texi: Likewise.
28903         * doc/posix-headers/sys_types.texi: Likewise.
28905 2011-09-16  Bruno Haible  <bruno@clisp.org>
28907         sys_stat: Support for MSVC.
28908         * lib/sys_stat.in.h (S_IFIFO): Define to _S_IFIFO if that exists.
28909         * tests/test-sys_stat.c: Don't assume that S_IFBLK exists.
28910         * doc/posix-headers/sys_stat.texi: Mention missing S_IFIFO, S_IFBLK on
28911         MSVC.
28913 2011-09-16  Bruno Haible  <bruno@clisp.org>
28915         Support for MSVC compiler: Ensure off_t gets defined.
28916         * lib/unistd.in.h: Include <sys/types.h>.
28917         * tests/test-fcntl-h.c: Check that off_t is defined.
28918         * tests/test-sys_stat.c: Likewise.
28919         * tests/test-sys_types.c: Likewise.
28921 2011-09-16  Eric Blake  <eblake@redhat.com>
28923         fdatasync: port to Solaris
28924         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Set LIB_FDATASYNC.
28925         * modules/fdatasync (Link): Document it.
28926         * modules/fdatasync-tests (test_fdatasync_LDADD): Link with it.
28928         fdatasync: port to MacOS X 10.7
28929         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Check for present but not
28930         declared.
28931         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Another default.
28932         * modules/unistd (Makefile.am): Substitute it.
28933         * lib/unistd.in.h (fdatasync): Declare on MacOS.
28934         * doc/posix-functions/fdatasync.texi (fdatasync): Document it.
28936         fdatasync: minor improvements
28937         * modules/fdatasync (Depends-on): Add condition for fsync.
28938         * lib/fdatasync.c (fdatasync): Add comment.
28939         * tests/test-unistd-c++.cc: Test fdatasync.
28941         unistd: update refs to newer POSIX
28942         * lib/unistd.in.h: Prefer POSIX 2008 over 2001.
28943         Suggested by Bruno Haible.
28945         fdatasync: new module
28946         * modules/fsync (Description): Document difference to fdatasync.
28947         * modules/fdatasync: New module.
28948         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): New file.
28949         * lib/fdatasync.c (fdatasync): Likewise.
28950         * m4/unistd_h.m4 (gl_UNISTD_H, gl_UNISTD_H_DEFAULTS): Set up
28951         defaults.
28952         * modules/unistd (Makefile.am): Set witnesses.
28953         * lib/unistd.in.h (fdatasync): Declare.
28954         * MODULES.html.sh: Document it.
28955         * doc/posix-functions/fdatasync.texi (fdatasync): Likewise.
28956         * modules/fdatasync-tests: New test.
28957         * tests/test-fdatasync.c: Likewise.
28959 2011-09-16  Eric Blake  <eblake@redhat.com>
28961         test-fsync: enhance tests
28962         * modules/fsync-tests (Depends-on): Add errno, for mingw.
28963         * tests/test-fsync.c (main): Enhance test.
28965 2011-09-15  Bruno Haible  <bruno@clisp.org>
28967         Support for MSVC compiler: Ensure ssize_t gets defined.
28968         * doc/posix-headers/sys_types.texi: Mention the missing ssize_t problem.
28969         * doc/posix-headers/stdio.texi: Likewise.
28970         * modules/stdio (Depends-on): Add ssize_t.
28971         * modules/sys_socket (Depends-on): Likewise.
28972         * modules/sys_types (Depends-on): Likewise.
28973         * modules/sys_uio (Depends-on): Likewise.
28974         * modules/unistd (Depends-on): Likewise.
28975         * tests/test-sys_socket.c: Check that size_t and ssize_t are defined.
28976         * tests/test-sys_types.c: Check that ssize_t is defined.
28978 2011-09-14  Bruno Haible  <bruno@clisp.org>
28980         Avoid using #, the m4 comment starter character, near brackets.
28981         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Use |, not #, as
28982         delimiter character in sed expressions.
28983         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
28984         Suggested by Eric Blake.
28986         Properly quote AC_CHECK_DECLS' 4th argument.
28987         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Double-quote AC_CHECK_DECLS' 4th
28988         argument.
28989         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
28990         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
28991         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
28992         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
28993         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
28994         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): Likewise.
28995         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Likewise.
28996         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Likewise.
28997         * m4/gethrxtime.m4 (gl_GETHRXTIME): Likewise.
28998         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
28999         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Likewise.
29000         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
29001         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
29002         * m4/isinf.m4 (gl_ISINF): Likewise.
29003         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
29004         * m4/readutmp.m4 (gl_READUTMP): Likewise.
29005         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
29006         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
29007         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
29008         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
29009         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
29010         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
29011         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Likewise.
29012         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
29013         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
29014         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
29015         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Likewise.
29016         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
29017         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
29018         Reported by Eric Blake.
29020         Properly quote AC_CHECK_DECL's 4th argument.
29021         * m4/acosl.m4 (gl_FUNC_ACOSL): Double-quote AC_CHECK_DECL's 4th
29022         argument.
29023         * m4/argp.m4 (gl_ARGP): Likewise.
29024         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
29025         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
29026         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
29027         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
29028         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Likewise.
29029         * m4/getloadavg.m4 (gl_GETLOADAVG): Likewise.
29030         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
29031         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
29032         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
29033         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
29034         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
29035         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
29036         Reported by Eric Blake.
29038 2011-09-14  Eric Blake  <eblake@redhat.com>
29040         opendir: avoid compile warning
29041         * lib/opendir.c (includes): Always include errno.h.
29042         Reported by Tatsuro MATSUOKA.
29044 2011-09-14  Jim Meyering  <meyering@redhat.com>
29046         maint.mk: sc_tight_scope: propagate failure from sub-make
29047         * top/maint.mk (sc_tight_scope): Actually initialize and use $fail.
29048         Reported by Martin von Gagern.
29050 2011-09-13  Bruno Haible  <bruno@clisp.org>
29052         tempname: Support for MSVC.
29053         * doc/posix-headers/fcntl.texi: Document the problem with O_ACCMODE on
29054         MSVC.
29055         * modules/tempname (Depends-on): Add fcntl-h.
29057 2011-09-13  Bruno Haible  <bruno@clisp.org>
29059         sys_time: Support for MSVC.
29060         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Invoke
29061         gl_PREREQ_SYS_H_WINSOCK2. When testing for 'struct timeval', also
29062         include <winsock2.h>.
29063         * lib/sys_time.in.h: On MSVC, include <winsock2.h> and hide its
29064         function declarations that collide with POSIX.
29065         * modules/sys_time (Files): Add m4/sys_socket_h.m4.
29066         (Makefile.am): Substitute HAVE_WINSOCK2_H.
29068 2011-09-13  Bruno Haible  <bruno@clisp.org>
29070         stat: Support for MSVC.
29071         * lib/stat.c: Include pathmax.h.
29072         * modules/stat (Depends-on): Add pathmax.
29074         pathmax: Support for native Windows.
29075         * lib/pathmax.h (PATH_MAX): Define to 260 on native Windows.
29077 2011-09-12  Bruno Haible  <bruno@clisp.org>
29079         New modules 'opendir', 'readdir', 'rewinddir', 'closedir'.
29080         * lib/dirent.in.h (struct dirent): New type.
29081         (DT_UNKNOWN, DT_FIFO, DT_CHR, DT_DIR, DT_BLK, DT_REG, DT_LNK, DT_SOCK,
29082         DT_WHT): New macros.
29083         (DIR): New type.
29084         (opendir, closedir): Declare only if the module 'opendir' is enabled.
29085         (readdir, rewinddir): New declarations.
29086         * lib/dirent-private.h: New file.
29087         * lib/opendir.c: New file.
29088         * lib/readdir.c: New file.
29089         * lib/rewinddir.c: New file.
29090         * lib/closedir.c: New file.
29091         * lib/fchdir.c (rpl_closedir, rpl_opendir): Remove functions.
29092         * m4/opendir.m4: New file.
29093         * m4/readdir.m4: New file.
29094         * m4/rewinddir.m4: New file.
29095         * m4/closedir.m4: New file.
29096         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_OPENDIR,
29097         REPLACE_CLOSEDIR here.
29098         * m4/dirent_h.m4 (gl_DIRENT_H): Also check whether closedir, opendir,
29099         readdir, rewinddir are declared.
29100         (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_OPENDIR, GNULIB_READDIR,
29101         GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR, HAVE_READDIR,
29102         HAVE_REWINDDIR, HAVE_CLOSEDIR.
29103         * modules/dirent (Makefile.am): Substitute GNULIB_OPENDIR,
29104         GNULIB_READDIR, GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR,
29105         HAVE_READDIR, HAVE_REWINDDIR, HAVE_CLOSEDIR.
29106         * modules/opendir: New file.
29107         * modules/readdir: New file.
29108         * modules/rewinddir: New file.
29109         * modules/closedir: New file.
29110         * doc/posix-functions/opendir.texi: Mention the 'opendir' module.
29111         * doc/posix-functions/readdir.texi: Mention the 'readdir' module.
29112         * doc/posix-functions/rewinddir.texi: Mention the 'rewinddir' module.
29113         * doc/posix-functions/closedir.texi: Mention the 'closedir' module.
29114         * NEWS: Mention the 'fchdir' change.
29116 2011-09-11  Bruno Haible  <bruno@clisp.org>
29118         asm-underscore.m4: Support for MSVC.
29119         * m4/asm-underscore.m4 (gl_C_ASM): New macro.
29120         (gl_ASM_SYMBOL_PREFIX): Require it. Use its results.
29122 2011-09-11  Reuben Thomas  <rrt@sc3d.org>
29124         Doc about crypt functions.
29125         * doc/posix-functions/crypt.texi: Expand range of glibc versions
29126         needing for _GNU_SOURCE to get crypt.
29127         * doc/posix-functions/encrypt.texi: Likewise.
29128         * doc/posix-functions/setkey.texi: Likewise.
29130 2011-09-11  Bruno Haible  <bruno@clisp.org>
29132         doc: Update regarding MSVC 9.
29133         * doc/gnulib-intro.texi (Target Platforms): Classify MSVC as "rarely
29134         tested".
29135         * doc/posix-functions/*.texi: Update with info about MSVC 9.
29136         * doc/posix-headers/*.texi: Likewise.
29137         * doc/pastposix-functions/*.texi: Likewise.
29138         * doc/glibc-functions/*.texi: Likewise.
29139         * doc/glibc-headers/*.texi: Likewise.
29141 2011-09-11  Bruno Haible  <bruno@clisp.org>
29143         unistd et al.: Don't assume <unistd.h> exists.
29144         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Don't include <unistd.h> if it
29145         does not exist.
29146         * m4/environ.m4 (gl_ENVIRON): Don't include <unistd.h> if it does not
29147         exist. But include <stdlib.h>.
29148         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): If <unistd.h> does not exist,
29149         include <io.h> and <stdlib.h> instead. Don't test symbolink links if
29150         symlink() does not exist.
29151         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): If <unistd.h> does not exist,
29152         include <io.h> instead.
29153         * m4/free.m4 (gl_FUNC_FREE): Assume free(NULL) works on native Windows.
29154         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): If <unistd.h> does not exist,
29155         include <direct.h> instead.
29156         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
29157         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
29158         * m4/lseek.m4 (gl_FUNC_LSEEK): If <unistd.h> does not exist, include
29159         <io.h> instead.
29160         * m4/rename.m4 (gl_FUNC_RENAME): Assume rename() manages hard links
29161         correctly if the system does not have hard links.
29162         * m4/rmdir.m4 (gl_FUNC_RMDIR): If <unistd.h> does not exist, include
29163         <direct.h> instead.
29164         * m4/unistd_h.m4 (gl_UNISTD_H): If <unistd.h> does not exist, bypass
29165         it when looking for function declarations.
29166         * m4/unlink.m4 (gl_FUNC_UNLINK): If <unistd.h> does not exist, include
29167         <direct.h> and <io.h> instead.
29168         * doc/posix-headers/unistd.texi: More details about MSVC problem.
29170 2011-09-11  Bruno Haible  <bruno@clisp.org>
29172         strcase: Support for MSVC.
29173         * modules/strcase (Status, Notice): Remove obsoletion mark.
29174         * doc/posix-functions/strcasecmp.texi: Mention MSVC problem.
29175         * doc/posix-functions/strncasecmp.texi: Likewise.
29177         strings: Don't assume <strings.h> exists.
29178         * lib/strings.in.h: Include <strings.h> only if HAVE_STRINGS_H is 1.
29179         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Set HAVE_STRINGS_H.
29180         * modules/strings (Makefile.am): Substitute HAVE_STRINGS_H.
29181         * doc/posix-headers/strings.texi: Mention the MSVC problem.
29183 2011-09-11  Bruno Haible  <bruno@clisp.org>
29185         dirent: Don't assume <dirent.h> exists.
29186         * lib/dirent.in.h: Include <dirent.h> only if HAVE_DIRENT_H is 1.
29187         * m4/dirent_h.m4 (gl_DIRENT_H): Set HAVE_DIRENT_H.
29188         * modules/dirent (Makefile.am): Substitute HAVE_DIRENT_H.
29189         * doc/posix-headers/dirent.texi: Mention the MSVC problem.
29191 2011-09-11  Bruno Haible  <bruno@clisp.org>
29193         Fix wint_t on MSVC.
29194         * lib/wchar.in.h (wint_t): On MSVC, override it.
29195         * lib/wctype.in.h (wint_t): Likewise.
29196         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Override BITSIZEOF_WINT_T on
29197         MSVC.
29198         * doc/posix-headers/wchar.texi: Mention the problem with wint_t on MSVC.
29199         * doc/posix-headers/wctype.texi: Likewise.
29201 2011-09-11  Bruno Haible  <bruno@clisp.org>
29203         sys_types: Fix typo.
29204         * lib/sys_types.in.h: Fix typo in comment.
29205         Reported by Paul Eggert.
29207         Support for MSVC compiler: Ensure size_t gets defined.
29208         * modules/strings (Depends-on): Add 'sys_types'.
29209         * modules/sys_uio (Depends-on): Likewise.
29210         * lib/sys_uio.in.h: Update comment.
29212         C++ tests for module 'sys_types'.
29213         * modules/sys_types-c++-tests: New file.
29214         * tests/test-sys_types-c++.cc: New file.
29216         Tests for module 'sys_types'.
29217         * modules/sys_types-tests: New file.
29218         * tests/test-sys_types.c: New file.
29220         New module 'sys_types'.
29221         * lib/sys_types.in.h: New file.
29222         * m4/sys_types_h.m4: New file.
29223         * modules/sys_types: New file.
29224         * doc/posix-headers/sys_types.texi: Mention the new module and the
29225         size_t problem on MSVC 9.
29227 2011-09-11  Bruno Haible  <bruno@clisp.org>
29229         Support for MSVC compiler: Avoid division by a literal 0.
29230         * lib/math.in.h (NAN): Define through a function call also on MSVC.
29231         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Divide by 'zero' instead of 0.0.
29232         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_DIRECTIVE_A,
29233         gl_PRINTF_DIRECTIVE_F, gl_PRINTF_FLAG_ZERO): Likewise.
29234         (gl_PRINTF_INFINITE_LONG_DOUBLE): Divide by 'zeroL' instead of 0.0L.
29235         * tests/infinity.h: New file.
29236         * tests/nan.h (NaNf, NaNd, NaNl): Define through a function call also
29237         on MSVC.
29238         * tests/test-ceilf1.c: Include infinity.h.
29239         (main): Use Infinityf.
29240         * tests/test-ceil1.c: Include infinity.h.
29241         (main): Use Infinityd.
29242         * tests/test-ceill.c: Include infinity.h.
29243         (main): Use Infinityl.
29244         * tests/test-dprintf-posix.c: Include infinity.h.
29245         (test_function): Use Infinityd.
29246         * tests/test-floorf1.c: Include infinity.h.
29247         (main): Use Infinityf.
29248         * tests/test-floor1.c: Include infinity.h.
29249         (main): Use Infinityd.
29250         * tests/test-floorl.c: Include infinity.h.
29251         (main): Use Infinityl.
29252         * tests/test-fprintf-posix.c: Include infinity.h.
29253         (test_function): Use Infinityd.
29254         * tests/test-frexp.c: Include infinity.h.
29255         (main): Use Infinityd.
29256         * tests/test-frexpl.c: Include infinity.h.
29257         (main): Use Infinityl.
29258         * tests/test-isfinite.c: Include infinity.h.
29259         (test_isfinitef): Use Infinityf.
29260         (test_isfinited): Use Infinityd.
29261         (test_isfinitel): Use Infinityl.
29262         * tests/test-isinf.c: Include infinity.h.
29263         (test_isinff): Use Infinityf.
29264         (test_isinfd): Use Infinityd.
29265         (test_isinfl): Use Infinityl.
29266         * tests/test-isnan.c: Include infinity.h.
29267         (test_float): Use Infinityf.
29268         (test_double): Use Infinityd.
29269         (test_long_double): Use Infinityl.
29270         * tests/test-isnanf.h: Include infinity.h.
29271         (main): Use Infinityf.
29272         * tests/test-isnand.h: Include infinity.h.
29273         (main): Use Infinityd.
29274         * tests/test-isnanl.h: Include infinity.h.
29275         (main): Use Infinityl.
29276         * tests/test-ldexpl.c: Include infinity.h.
29277         (main): Use Infinityl.
29278         * tests/test-printf-posix.h: Include infinity.h.
29279         (test_function): Use Infinityd.
29280         * tests/test-roundf1.c: Include infinity.h.
29281         (main): Use Infinityf.
29282         * tests/test-round1.c: Include infinity.h.
29283         (main): Use Infinityd.
29284         * tests/test-roundl.c: Include infinity.h.
29285         (main): Use Infinityl.
29286         * tests/test-signbit.c: Include infinity.h.
29287         (test_signbitf): Use Infinityf.
29288         (test_signbitd): Use Infinityd.
29289         (test_signbitl): Use Infinityl.
29290         * tests/test-snprintf-posix.h: Include infinity.h.
29291         (test_function): Use Infinityd, Infinityl.
29292         * tests/test-sprintf-posix.h: Include infinity.h.
29293         (test_function): Use Infinityd, Infinityl.
29294         * tests/test-truncf1.c: Include infinity.h.
29295         (main): Use Infinityf.
29296         * tests/test-trunc1.c: Include infinity.h.
29297         (main): Use Infinityd.
29298         * tests/test-truncl.c: Include infinity.h.
29299         (main): Use Infinityl.
29300         * tests/test-vasnprintf-posix.c: Include infinity.h.
29301         (test_function): Use Infinityd, Infinityl.
29302         * tests/test-vasprintf-posix.c: Include infinity.h.
29303         (test_function): Use Infinityd, Infinityl.
29304         * modules/ceilf-tests (Files): Add tests/infinity.h.
29305         * modules/ceil-tests (Files): Likewise.
29306         * modules/ceill-tests (Files): Likewise.
29307         * modules/dprintf-posix-tests (Files): Likewise.
29308         * modules/floorf-tests (Files): Likewise.
29309         * modules/floor-tests (Files): Likewise.
29310         * modules/floorl-tests (Files): Likewise.
29311         * modules/fprintf-posix-tests (Files): Likewise.
29312         * modules/frexp-tests (Files): Likewise.
29313         * modules/frexp-nolibm-tests (Files): Likewise.
29314         * modules/frexpl-tests (Files): Likewise.
29315         * modules/frexpl-nolibm-tests (Files): Likewise.
29316         * modules/isfinite-tests (Files): Likewise.
29317         * modules/isinf-tests (Files): Likewise.
29318         * modules/isnan-tests (Files): Likewise.
29319         * modules/isnanf-tests (Files): Likewise.
29320         * modules/isnanf-nolibm-tests (Files): Likewise.
29321         * modules/isnand-tests (Files): Likewise.
29322         * modules/isnand-nolibm-tests (Files): Likewise.
29323         * modules/isnanl-tests (Files): Likewise.
29324         * modules/isnanl-nolibm-tests (Files): Likewise.
29325         * modules/ldexpl-tests (Files): Likewise.
29326         * modules/printf-posix-tests (Files): Likewise.
29327         * modules/roundf-tests (Files): Likewise.
29328         * modules/round-tests (Files): Likewise.
29329         * modules/roundl-tests (Files): Likewise.
29330         * modules/signbit-tests (Files): Likewise.
29331         * modules/snprintf-posix-tests (Files): Likewise.
29332         * modules/sprintf-posix-tests (Files): Likewise.
29333         * modules/truncf-tests (Files): Likewise.
29334         * modules/trunc-tests (Files): Likewise.
29335         * modules/truncl-tests (Files): Likewise.
29336         * modules/vasnprintf-posix-tests (Files): Likewise.
29337         * modules/vasprintf-posix-tests (Files): Likewise.
29338         * modules/vdprintf-posix-tests (Files): Likewise.
29339         * modules/vfprintf-posix-tests (Files): Likewise.
29340         * modules/vprintf-posix-tests (Files): Likewise.
29341         * modules/vsnprintf-posix-tests (Files): Likewise.
29342         * modules/vsprintf-posix-tests (Files): Likewise.
29343         * modules/xprintf-posix-tests (Files): Likewise.
29345 2011-09-11  Bruno Haible  <bruno@clisp.org>
29347         Ensure pid_t gets defined.
29348         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_PID_T.
29349         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
29350         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
29351         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
29352         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
29353         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
29354         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
29355         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
29356         * tests/test-fcntl-h.c: Check that pid_t is defined.
29357         * tests/test-sched.c: Likewise.
29358         * tests/test-termios.c: Likewise.
29359         * tests/test-time.c: Likewise.
29360         * doc/posix-headers/fcntl.texi: Mention lack of pid_t on MSVC platform.
29361         * doc/posix-headers/signal.texi: Likewise.
29362         * doc/posix-headers/sys_types.texi: Likewise.
29363         * doc/posix-headers/time.texi: Likewise.
29365 2011-09-11  Bruno Haible  <bruno@clisp.org>
29367         acl: Fix compilation on Solaris 10 (older version).
29368         * lib/file-has-acl.c (acl_ace_nontrivial): Use NEW_ACE_EVERYONE instead
29369         of ACE_EVERYONE.
29370         * lib/set-mode-acl.c (qset_acl): Likewise.
29371         Reported by Christian Jullien <eligis@orange.fr>.
29373 2011-09-10  Bruno Haible  <bruno@clisp.org>
29375         iconv, unsetenv: Add support for MSVC compiler.
29376         * m4/iconv.m4 (AM_ICONV): Use ISO C declaration syntax on MSVC.
29377         * m4/setenv.m4 (gl_FUNC_UNSETENV): Drop support for K&R C compilers.
29379 2011-09-10  Bruno Haible  <bruno@clisp.org>
29381         *printf: Add support for MSVC compiler.
29382         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N): On MSVC, install a handler that
29383         handles the exception caused by the %n directive. When cross-compiling,
29384         guess no on native Windows.
29385         (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
29386         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1): When snprintf is missing,
29387         emulate it through vsnprintf.
29388         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Update comment.
29389         * doc/posix-functions/dprintf.texi: Update documentation regarding
29390         MSVC 9.
29391         * doc/posix-functions/fprintf.texi: Likewise.
29392         * doc/posix-functions/printf.texi: Likewise.
29393         * doc/posix-functions/snprintf.texi: Likewise.
29394         * doc/posix-functions/sprintf.texi: Likewise.
29395         * doc/posix-functions/swprintf.texi: Likewise.
29396         * doc/posix-functions/vdprintf.texi: Likewise.
29397         * doc/posix-functions/vfprintf.texi: Likewise.
29398         * doc/posix-functions/vprintf.texi: Likewise.
29399         * doc/posix-functions/vsnprintf.texi: Likewise.
29400         * doc/posix-functions/vsprintf.texi: Likewise.
29401         * doc/glibc-functions/asprintf.texi: Likewise.
29402         * doc/glibc-functions/obstack_printf.texi: Likewise.
29403         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
29404         * doc/glibc-functions/vasprintf.texi: Likewise.
29406 2011-09-10  Bruno Haible  <bruno@clisp.org>
29408         nocrash: Add support for native Windows.
29409         * m4/nocrash.m4 (GL_NOCRASH): Avoid a crash also on native Windows.
29411 2011-09-10  Michael Goffioul  <michael.goffioul@gmail.com>  (tiny change)
29412             Bruno Haible  <bruno@clisp.org>
29414         absolute-header, include-next: Add support for MSVC compiler.
29415         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Require
29416         AC_CANONICAL_HOST. On native Windows, recognize also backslash as
29417         directory separator in #line directives.
29418         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): On native Windows,
29419         recognize also backslash as directory separator in #line directives.
29421 2011-09-08  Jim Meyering  <meyering@redhat.com>
29423         maint.mk: mark the post-release commit log with "maint: " prefix
29424         * top/maint.mk (emit-commit-log): Add "maint: " prefix to the
29425         one-line commit-log summary.
29427 2011-09-08  Reuben Thomas  <rrt@sc3d.org>
29428             Bruno Haible  <bruno@clisp.org>
29430         Doc about crypt functions.
29431         * doc/posix-functions/crypt.texi: Mention need for _GNU_SOURCE on glibc
29432         systems.
29433         * doc/posix-functions/encrypt.texi: Likewise.
29434         * doc/posix-functions/setkey.texi: Likewise.
29436 2011-09-08  Simon Josefsson  <simon@josefsson.org>
29438         * lib/gc.h: Fix copyright header.
29440 2011-09-07  Bruno Haible  <bruno@clisp.org>
29442         pthread: Determine $(LIB_PTHREAD) correctly on OSF/1 5.1.
29443         * m4/pthread.m4 (gl_PTHREAD_CHECK): Use AC_CACHE_CHECK and
29444         AC_LINK_IFELSE instead of AC_SEARCH_LIBS.
29446 2011-09-07  Bruno Haible  <bruno@clisp.org>
29448         openat: Work around compilation error with OSF/1 5.1 DTK cc.
29449         * lib/fopen.c: Use different syntax for include of <stdio.h>.
29450         * lib/freopen.c: Likewise.
29451         * lib/fstatat.c: Use different syntax for include of <sys/stat.h>.
29452         * lib/lstat.c: Likewise.
29453         * lib/stat.c: Likewise.
29454         * lib/open.c: Use different syntax for include of <fcntl.h>.
29455         * lib/openat.c: Include fcntl.h again, explicitly.
29457 2011-09-04  J.T. Conklin  <jtc@acorntoolworks.com>
29459         parse-datetime: document the newly accepted format
29460         * doc/parse-datetime.texi (Combined date and time of day items):
29461         New section.
29463 2011-09-06  Bruno Haible  <bruno@clisp.org>
29465         acl: Fix a test failure on newer Solaris 10 with ZFS.
29466         * tests/test-sameacls.c (main): Interpret acl GETACLCNT failure with
29467         ENOSYS as no ACL.
29468         Reported by Jim Meyering.
29470 2011-09-06  Bruno Haible  <bruno@clisp.org>
29472         acl: Update for AIX >= 5.3 with NFS.
29473         * lib/file-has-acl.c (file_has_acl): Interpret aclx_get failure with
29474         ENOSYS as no ACL.
29476         acl: Fix a test failure on AIX >= 5.3 with NFS.
29477         * tests/test-sameacls.c (main): Interpret aclx_get failure with ENOSYS
29478         as no ACL.
29480 2011-09-06  Bruno Haible  <bruno@clisp.org>
29482         acl: Fix a test failure on IRIX 6.5 with NFS.
29483         * lib/acl-internal.h (MODE_INSIDE_ACL): Define to 0 on IRIX.
29484         * lib/set-mode-acl.c (qset_acl): Test !HAVE_ACL_TYPE_EXTENDED instead
29485         of MODE_INSIDE_ACL. If !MODE_INSIDE_ACL, do a chmod_or_fchmod always.
29486         * lib/copy-acl.c (qcopy_acl): Likewise.
29488 2011-09-05  Paul Eggert  <eggert@cs.ucla.edu>
29490         openat: port to AIX 7.1 with large files
29491         AIX 7.1 does a "#define openat open64at" if large files are in use,
29492         so we can't simply #undef openat.  Use the orig_openat trick (similar
29493         to orig_open in lib/open.c) to work around the problem.  Problem
29494         reported by Kevin Brott for GNU tar, in the thread containing
29495         <http://lists.gnu.org/r/bug-tar/2011-09/msg00032.html>.
29496         * lib/openat.c (__need_system_fcntl_h): Define first.
29497         Include <fcntl.h> and <sys/types.h> before undefining.
29498         (orig_openat) [HAVE_OPENAT]: New inline function.
29499         (openat) [HAVE_OPENAT]: Do not undef.
29500         (rpl_openat): Use orig_openat, not openat.
29502 2011-09-05  Joachim Schmitz  <schmitz@hp.com>  (tiny change)
29503             Bruno Haible  <bruno@clisp.org>
29505         acl: Avoid errors on NonStop Kernel.
29506         * lib/file-has-acl.c (file_has_acl) [NonStop Kernel]: Ignore ENOSYS and
29507         ENOTSUP errors.
29509 2011-09-05  Bruno Haible  <bruno@clisp.org>
29511         acl: Clean up Solaris code.
29512         * lib/acl-internal.h: Remove no-op #if.
29513         * lib/file-has-acl.c: Likewise.
29514         * lib/set-mode-acl.c (qset_acl): Remove unused Solaris code.
29515         * lib/copy-acl.c (qcopy_acl): Likewise.
29517 2011-09-05  Bruno Haible  <bruno@clisp.org>
29519         acl: Fix a bug with NFSv4 ACLs on Solaris 10 (newer version) in
29520         binaries built on the original Solaris 10.
29521         * lib/file-has-acl.c (file_has_acl): ACLs with 4..6 ACEs can be
29522         trivial.
29524 2011-09-05  Bruno Haible  <bruno@clisp.org>
29526         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
29527         * lib/acl-internal.h (acl_nontrivial): Declare also on newer Solaris
29528         10.
29529         * lib/file-has-acl.c (acl_nontrivial): Define also on newer Solaris 10.
29530         (acl_ace_nontrivial): Likewise. Recognize the trivial ACLs with 6 ACEs.
29531         * lib/copy-acl.c (qcopy_acl): On newer Solaris 10, use acl or facl
29532         instead of acl_get, facl_get, acl_set, facl_set.
29534 2011-09-05  Bruno Haible  <bruno@clisp.org>
29536         copy-file: Try unit tests on more file systems.
29537         * tests/test-copy-file-1.sh: New file.
29538         * tests/test-copy-file-2.sh: New file.
29539         * modules/copy-file-tests (Files): Add them.
29540         (Makefile.am): Add them to TESTS.
29542         acl: Try unit tests on more file systems.
29543         * tests/test-file-has-acl-1.sh: New file.
29544         * tests/test-file-has-acl-2.sh: New file.
29545         * tests/test-set-mode-acl-1.sh: New file.
29546         * tests/test-set-mode-acl-2.sh: New file.
29547         * tests/test-copy-acl-1.sh: New file.
29548         * tests/test-copy-acl-2.sh: New file.
29549         * modules/acl-tests (Files): Add them.
29550         (Makefile.am): Add them to TESTS.
29552 2011-09-04  Bruno Haible  <bruno@clisp.org>
29554         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
29555         * lib/acl-internal.h (ACE_*, NEW_ACE_*): Define also on newer Solaris
29556         10.
29557         (OLD_ALLOW, OLD_DENY): New macros.
29558         (NEW_ACE_ACCESS_ALLOWED_ACE_TYPE): Renamed from
29559         ACE_ACCESS_ALLOWED_ACE_TYPE.
29560         (NEW_ACE_ACCESS_DENIED_ACE_TYPE): Renamed from
29561         ACE_ACCESS_DENIED_ACE_TYPE.
29562         (OLD_ACE_OWNER, OLD_ACE_GROUP, OLD_ACE_OTHER): New macros.
29563         (NEW_ACE_EXECUTE): Fix value.
29564         (NEW_ACE_APPEND_DATA, NEW_ACE_READ_NAMED_ATTRS,
29565         NEW_ACE_WRITE_NAMED_ATTRS, NEW_ACE_DELETE_CHILD,
29566         NEW_ACE_READ_ATTRIBUTES, NEW_ACE_WRITE_ATTRIBUTES, NEW_ACE_DELETE,
29567         NEW_ACE_READ_ACL, NEW_ACE_WRITE_ACL, NEW_ACE_WRITE_OWNER,
29568         NEW_ACE_SYNCHRONIZE): New macros.
29569         * lib/set-mode-acl.c (qset_acl): On newer Solaris 10, use acl or facl
29570         instead of acl_fromtext, acl_set, facl_set.
29571         Fixes a coreutils/tests/cp/perm failure.
29573 2011-09-03  Paul Eggert  <eggert@cs.ucla.edu>
29575         openat: test for fstatat (..., 0) bug
29576         Further testing with tar suggests that fstatat (..., 0)
29577         does not work in general, on AIX 7.1; see
29578         <http://lists.gnu.org/r/bug-tar/2011-09/msg00023.html>.
29579         So, give up entirely on AIX 7.1's fstatat, and fall back on our
29580         replacement fstatat (which is what older AIX releases were using
29581         anyway).
29582         * lib/fstatat.c (fstatat) [HAVE_FSTATAT]: Do not undef.  The only
29583         use is now changed to orig_fstatat.  This was probably the right
29584         thing to do anyway.
29585         (FSTATAT_AT_FDCWD_0_BROKEN): Remove; no longer used.
29586         (rpl_fstatat) [FSTATAT_ZERO_FLAG_BROKEN]: Remove.
29587         (rpl_fstatat): Simplify, assuming !FSTATAT_ZERO_FLAG_BROKEN.
29588         (AT_FUNC_NAME) [FSTATAT_ZERO_FLAG_BROKEN]: Now rpl_fstatat.
29589         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for the more-general bug
29590         and define FSTATAT_ZERO_FLAG_BROKEN, not FSTATAT_AT_FDCWD_0_BROKEN,
29591         if the bug is found.
29593         openat: test for fstatat (AT_FDCWD, ..., 0) bug
29594         This tests for another fstatat bug on AIX 7.1:
29595         fstatat (AT_FDCWD, ..., 0) does not work.  See
29596         <http://lists.gnu.org/r/bug-tar/2011-09/msg00015.html>.
29597         * lib/fstatat.c (FSTATAT_AT_FDCWD_0_BROKEN)
29598         (LSTAT_FOLLOWS_SLASHED_SYMLINK): Default to 0.
29599         (rpl_fstatat): Adjust so that it works around either (or both)
29600         bugs if present.
29601         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for this fstatat bug.
29603 2011-09-03  Karl Berry  <karl@gnu.org>
29605         * doc/regex.texi (Character Class Operators): Avoid literal ":"
29606         in index entries.
29608 2011-09-02  Bruno Haible  <bruno@clisp.org>
29610         Allow the user to override the choice of AR, ARFLAGS, RANLIB.
29611         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Don't override the given
29612         values of AR, ARFLAGS, RANLIB.
29613         Reported by John W. Eaton <jwe@gnu.org> for Octave.
29615 2011-09-02  Bruno Haible  <bruno@clisp.org>
29617         Find 'ar' program that fits with --host argument.
29618         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Use AC_CHECK_TOOL.
29620 2011-09-02  Bruno Haible  <bruno@clisp.org>
29622         tests: init.sh: Support any non-GNU diff.
29623         * tests/init.sh (compare): If "diff -c" is supported but "diff -u" is
29624         not, use "diff -c". Useful on AIX 6.1, HP-UX 11.31, OSF/1 5.1,
29625         Solaris 8.
29627 2011-09-02  Bruno Haible  <bruno@clisp.org>
29629         tests: init.sh: work also with any non-GNU diff that supports -u
29630         * tests/init.sh: Relax check for diff -u support.
29631         Rather than checking for GNU diff via --version, simply check
29632         for support for -u itself.  Useful at least on OpenBSD 4.9,
29633         AIX 7.1, IRIX 6.5, and Solaris 10.
29635 2011-09-01  Bruno Haible  <bruno@clisp.org>
29637         strtoimax, strtoumax: Document problem on HP-UX 11.
29638         * doc/posix-functions/strtoimax.texi: Mention HP-UX 11.11 problem.
29639         * doc/posix-functions/strtoumax.texi: Likewise.
29641 2011-09-01  Bruno Haible  <bruno@clisp.org>
29643         strtoumax: Avoid link error on OSF/1 with DTK cc.
29644         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Always test whether strtoumax is
29645         defined as a function.
29646         * modules/strtoumax (Depends-on, configure.ac): Test only whether
29647         strtoumax is defined, not whether it is declared.
29649 2011-09-01  Bruno Haible  <bruno@clisp.org>
29651         strtoimax: Avoid link error on OSF/1 with DTK cc.
29652         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Always test whether strtoimax is
29653         defined as a function.
29654         * modules/strtoimax (Depends-on, configure.ac): Test only whether
29655         strtoimax is defined, not whether it is declared.
29657 2011-09-01  Bruno Haible  <bruno@clisp.org>
29659         imaxdiv: Avoid link error on OSF/1 with DTK cc.
29660         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Also test whether imaxdiv is defined
29661         as a function.
29662         * modules/imaxdiv (configure.ac): Test whether imaxdiv is defined, not
29663         whether it is declared.
29665 2011-09-01  Bruno Haible  <bruno@clisp.org>
29667         imaxabs: Avoid link error on OSF/1 with DTK cc.
29668         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Also test whether imaxabs is defined
29669         as a function.
29670         * modules/imaxabs (configure.ac): Test whether imaxabs is defined, not
29671         whether it is declared.
29673 2011-09-01  Bruno Haible  <bruno@clisp.org>
29675         Tests for module 'strtoumax'.
29676         * modules/strtoumax-tests: New file.
29677         * tests/test-strtoumax.c: New file.
29679         Tests for module 'strtoimax'.
29680         * modules/strtoimax-tests: New file.
29681         * tests/test-strtoimax.c: New file.
29683         Tests for module 'imaxdiv'.
29684         * modules/imaxdiv-tests: New file.
29685         * tests/test-imaxdiv.c: New file.
29687         Tests for module 'imaxabs'.
29688         * modules/imaxabs-tests: New file.
29689         * tests/test-imaxabs.c: New file.
29691 2011-09-01  Bruno Haible  <bruno@clisp.org>
29693         pthread: Determine $(LIB_PTHREAD) correctly on IRIX 6.5.
29694         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_join, not
29695         pthread_create.
29697 2011-09-01  Paul Eggert  <eggert@cs.ucla.edu>
29699         openat: work around AIX 7.1 fstatat issue
29700         This should fix the problem that was not properly fixed
29701         in the previous change, dated 2011-08-30.
29702         * lib/fstatat.c: Include <sys/stat.h> twice, the first with
29703         __need_system_stat_h defined.
29704         (orig_fstatat) [HAVE_FSTATAT]: New function.
29705         (rpl_fstatat): Go back to the old way of doing things,
29706         except call orig_fstatat instead of fstatat.
29707         * m4/openat.m4 (gl_FUNC_FSTATAT): Remove unnecessary check for openat.
29708         Remove unnecessary check whether fstatat fills in st_size etc.
29710 2011-09-01  Bruno Haible  <bruno@clisp.org>
29712         sys_select: Avoid a syntax error regarding timespec_t on IRIX 6.5.
29713         * lib/sys_select.in.h [__sgi]: When included from <sys/bsd_types.h>,
29714         just include the system's header.
29716 2011-08-31  Jim Meyering  <meyering@redhat.com>
29718         tests: avoid spurious assertion failure in test-float.c on ppc64
29719         * tests/test-float.c (test_long_double): Comment out an assertion,
29720         LDBL_MIN_EXP <= DBL_MIN_EXP, that is failing at least on PowerPC-64
29721         with gcc-4.4.4.
29723         maint: indent with spaces, not TABs
29724         I need to get in the habit of running gnulib's "make check".
29725         Both of these would have been caught.
29726         * m4/largefile.m4: Indent with spaces, not TABs.
29727         * lib/parse-datetime.y (iso_8601_time): Likewise.
29728         Spotted by Pádraig Brady.
29730         test-parse-datetime.c: accommodate a relatively strict gcc warning
29731         * tests/test-parse-datetime.c (gmt_offset): Declare function "static",
29732         to avoid a warning from gcc's -Werror=missing-declarations.
29733         Insert a few spaces-before-funcall-parenthesis.
29735 2011-08-17  J.T. Conklin  <jtc@acorntoolworks.com>
29737         parse-datetime: accept ISO 8601 date and time rep with "T" separator
29738         The parser now accepts ISO 8601 date-time strings with "T" as the
29739         separator.  It has long parsed dates like "2004-02-29 16:21:42"
29740         with a space between the date and time strings.  Now it also parses
29741         "2004-02-29T16:21:42" and fractional-second and time-zone-annotated
29742         variants like "2004-02-29T16:21:42.333-07:00"
29743         * lib/parse-datetime.y: Parse ISO 8601 extended date and time
29744         of day representation using the 'T' separator character.
29745         * doc/parse-datetime.texi (General date syntax): replace use of
29746         deprecated --iso-8601 option with --rfc-3339 in example of date
29747         command output formats that can be parsed.
29748         * tests/test-parse-datetime.c (tm_diff): New function, taken from
29749         lib/parse-datetime.y.
29750         (gmt_offset): New function.
29751         (main): Add additional test cases to validate ISO8601 extended
29752         date and time of day parsing.
29754 2011-08-31  Bruno Haible  <bruno@clisp.org>
29756         freopen: Documentation.
29757         * doc/posix-functions/freopen.texi: Document the bug with the NULL file
29758         name.
29759         Reported by Claudio Bley <claudio.bley@gmail.com>.
29761 2011-08-31  Claudio Bley  <claudio.bley@gmail.com>  (tiny change)
29763         freopen: Don't crash if the filename argument is NULL.
29764         * lib/freopen.c (rpl_freopen): Don't compare the filename if it is
29765         NULL.
29767 2011-08-30  Paul Eggert  <eggert@cs.ucla.edu>
29769         openat: work around AIX 7.1 fstatat bug
29770         Problem reported by Kevin Brott for GNU tar, in the thread containing
29771         <http://lists.gnu.org/r/bug-tar/2011-08/msg00015.html>.
29772         * lib/fstatat.c (rpl_fstatat): Do not invoke underlying fstatat if
29773         FSTATAT_ST_SIZE_ETC_BROKEN.
29774         (fstatat) [FSTATAT_ST_SIZE_ETC_BROKEN && HAVE_FSTATAT]: #define to
29775         rpl_fstatat.
29776         * m4/openat.m4 (gl_FUNC_FSTATAT): New macro, with the fstatat-relevant
29777         part of gl_FUNC_OPENAT.  Also, check for the AIX 7.1 bug, and use
29778         AC_CHECK_FUNCS_ONCE for fstatat.
29779         (gl_FUNC_OPENAT): Use it.  Use AC_CHECK_FUNCS_ONCE for
29780         fchmodat, mkdirat, openat and unlinkat.
29782 2011-08-30  Bruno Haible  <bruno@clisp.org>
29784         Avoid endless recursions if config.h includes some header files.
29785         * lib/fopen.c (__need_FILE): Define already before including config.h.
29786         * lib/freopen.c (__need_FILE): Likewise.
29787         * lib/open.c (__need_system_fcntl_h): Likewise.
29788         * lib/stat.c (__need_system_sys_stat_h): Likewise.
29789         * lib/lstat.c (__need_system_sys_stat_h): Likewise.
29790         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
29792 2011-08-25  Karl Berry  <karl@gnu.org>
29794         * config/srclist.txt (ylwrap): new try.
29795         * build-aux/ylwrap: new file.
29797 2011-08-23  Bruno Haible  <bruno@clisp.org>
29799         tmpdir: Use a good default directory on native Windows.
29800         * lib/tmpdir.c: Include <windows.h>, pathmax.h.
29801         (P_tmpdir): Default to _P_tmpdir on native Windows.
29802         (path_search): On native Windows, try the value returned by GetTempPath
29803         before trying P_tmpdir.
29804         * modules/tmpdir (Depends-on): Add pathmax.
29805         Suggested by John Darrington <john@darrington.wattle.id.au>.
29807 2011-08-20  Reuben Thomas  <rrt@sc3d.org>
29809         doc: fix typo in README-release
29810         * top/README-release: Capitalize first word of a sentence.
29812 2011-08-19  Jim Meyering  <meyering@redhat.com>
29814         fts: do not exhaust memory when processing million-entry directories
29815         Before this change, traversing (via rm -rf, find, du, etc.) an N-entry
29816         directory would require about 256*N bytes of memory.  Thus, it was
29817         easy to construct a directory too large to be processed by any of
29818         those tools.  With this change, fts' maximum memory utilization is
29819         now limited to around 30MB.
29820         * lib/fts.c (FTS_MAX_READDIR_ENTRIES): Define.
29821         (fts_read): When we've processed the final entry (i.e., when
29822         ->fts_link is NULL) and fts_dirp is non-NULL, call fts_build
29823         using the parent entry to read any remaining entries.  Dispatch
29824         depending on what fts_build returns:
29825         - NULL+stop, aka failure: stop
29826         - NULL otherwise: move up in the dir hierarchy
29827         - non-NULL: handle this new entry
29828         (fts_build): Declare and use new local, continue_readdir.
29829         Prepare to be called from fts_read, when the entries
29830         from a partially-read directory have just been exhausted.
29831         In that case, we'll skip the opendir and instead use the parent's
29832         fts_dirp and derive dir_fd from that.
29833         Finally, in the readdir loop, if we read max_entries entries,
29834         exit the loop ensuring *not* to call closedir.  This is required
29835         so that fts_dirp can be reused on a subsequent call.
29836         Prompted by Ben England's report of memory exhaustion in find
29837         and rm -rf vs. NFS: https://bugzilla.redhat.com/719749.
29839         maint: fts: move decl of `dp' down into while loop; split a long line
29840         * lib/fts.c (fts_build): No semantic change.
29842         fts: add/use new struct member, fts_dirp
29843         We are about to use this to manage any directory with
29844         too many entries to read all of them into memory at once.
29845         To do that, we'll need to save the DIR* pointer in each
29846         affected FTSENT struct.
29847         * lib/fts_.h: Include <dirent.h>.
29848         (struct FTSENT) [fts_dirp]: New member.
29849         * lib/fts.c (closedir_and_clear): Define.
29850         Use it in place of closedir so that we are sure to
29851         clear the new fts_dirp member when done with it.
29852         (fts_alloc): Initialize the new member.
29853         (fts_lfree): Free, if needed.
29855         maint: fts: give __opendir2 a new parameter and rename
29856         * lib/fts.c (__opendir2): Give it a new parameter, Pdir_fd, rather
29857         than surreptitiously using sole caller's "dir_fd".
29858         (fts_opendir): Rename from __opendir2.
29860         maint: fts.c: remove __opendir2's now-unused parameter, oflag
29861         * lib/fts.c (__opendir2): Remove unused parameter, oflag.
29863         maint: fts.c: correct off-by-one indentation
29864         * lib/fts.c (fts_build): Correct indentation, change style
29865         of a couple of block comments, and bracing style.
29867         maint: fts.c: move __opendir2 #define "up" out of function body
29868         * lib/fts.c (__opendir2): Move "up".  No semantic change.
29870         maint: fts.c: remove #if-0'd FTS_WHITEOUT code
29871         * lib/fts.c: Remove #if-0'd FTS_WHITEOUT code.  It's been #if-0'd
29872         out for a long time and besides was useful only on BSD systems.
29874 2011-08-18  Paul Eggert  <eggert@cs.ucla.edu>
29876         regex: port to Stratus OpenVOS
29877         * lib/regex_internal.h (internal_function) [!_LIBC]: Simply
29878         define to empty, rather than attempting nonportable optimizations.
29879         Problem reported by Paul Green in:
29880         http://lists.gnu.org/r/bug-diffutils/2011-08/msg00047.html
29881         and fix suggested by Eric Blake in:
29882         http://lists.gnu.org/r/bug-gnulib/2011-08/msg00143.html
29884 2011-08-17  Eric Blake  <eblake@redhat.com>
29886         getcwd: fix test failures on mingw
29887         * lib/getcwd.c (__getcwd): Early exit for ERANGE.
29888         * tests/test-getcwd.c (test_abort_bug, test_long_name): Don't fail
29889         test if long directory cannot be created, and allow mingw errno.
29891         getcwd-lgpl: fix m4 to match relaxed test for BSD
29892         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Relax probe.
29893         (gl_FUNC_GETCWD_SIGNATURE): New macro.
29894         (gl_FUNC_GETCWD_LGPL, gl_FUNC_GETCWD): Use it.
29895         * doc/posix-functions/getcwd.texi (getcwd): Tweak mentions of
29896         signature problem.
29898         getcwd: fix compilation on mingw64
29899         * lib/unistd.in.h (includes) [mingw]: Include <direct.h> for
29900         getcwd.
29901         Reported by Marc-André Lureau.
29903         pipe2: silence compiler warning
29904         * lib/pipe2.c (pipe2): Hide label if it is not used.
29906 2011-08-15  Ben Pfaff  <blp@cs.stanford.edu>
29908         relocatable-prog: fix link error
29909         * modules/relocatable-prog (configure.ac) [RELOCATABLE]: Also
29910         invoke AC_LIBOBJ([relocatable]).  This invocation was previously
29911         in the gl_RELOCATABLE_LIBRARY macro.  That invocation was moved
29912         into modules/relocatable-lib without noticing that
29913         modules/relocatable-prog also invokes gl_RELOCATABLE_LIBRARY and
29914         also needs to build relocatable.c.
29916 2011-08-12  Paul Eggert  <eggert@cs.ucla.edu>
29918         getaddrinfo: fix sh typo in gai_strerrorA decl checking
29919         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix typo in the generated
29920         shell code: it contained a 'break' that was not in a loop.
29921         Apparently the macro assumed that AC_CHECK_DECLS is implemenented
29922         via a shell-language loop; this may have been true in old Autoconf
29923         versions, but it's not true in Autoconf 2.68.  I found this bug
29924         when testing coreutils git on Solaris 8, whose shell complains
29925         about the syntax error.
29927 2011-08-12  Simon Josefsson  <simon@josefsson.org>
29929         * lib/base64.c: Fix comment to reference RFC 4648.
29930         Suggested by Bruno Haible <bruno@clisp.org> and Gijs van Tulder
29931         <gvtulder@gmail.com>.
29933 2011-08-11  Paul Eggert  <eggert@cs.ucla.edu>
29935         * build-aux/bootstrap (slurp): Remove obsolescent gettext.m4 patch.
29937         po/Makefile.in.in: fix make -q problem
29938         * build-aux/po/Makefile.in.in (check-macro-version): Remove this
29939         rule, since there's no file named 'check-macro-version' and its
29940         use as a file breaks make -q.
29941         (all): Don't depend on check-macro-version.
29942         (CHECK_MACRO_VERSION): New macro.
29943         (stamp-po): Use it.
29945         configmake: fix make -q problem
29946         * modules/configmake (configmake.h): Update configmake.h's time stamp
29947         even if the file does not change.  Otherwise, 'make -q' fails.
29948         Problem reported by Simon Josefsson in
29949         <http://lists.gnu.org/r/bug-gnulib/2011-08/msg00088.html>.
29951 2011-08-11  Jim Meyering  <meyering@redhat.com>
29953         git-version-gen: correct the advice in a comment
29954         * build-aux/git-version-gen: Correct comment.
29955         Don't recommend to list .tarball-version in .gitignore.
29957 2011-08-10  Paul Eggert  <eggert@cs.ucla.edu>
29959         base64: fix off-by-one buffer size bug
29960         Problem and (trivial) fix reported by Gijs van Tulder in
29961         <http://lists.gnu.org/r/bug-gnulib/2011-08/msg00083.html>.
29962         * lib/base64.c (base64_decode_alloc_ctx): Allocate one more byte.
29963         * tests/test-base64.c (main): Catch the bug.
29965 2011-08-10  Eric Blake  <eblake@redhat.com>
29967         closein: correct comments
29968         * lib/closein.c (close_stdin): Improve comments.
29970 2011-08-09  Bruno Haible  <bruno@clisp.org>
29972         More tests for 'fseeko'.
29973         * tests/test-fseeko3.c: New file, from Eric Blake.
29974         * tests/test-fseeko3.sh: New file.
29975         * modules/fseeko-tests (Files): Add them.
29976         (TESTS): Add test-fseeko3.sh.
29977         (check_PROGRAMS): Add test-fseeko3.
29979 2011-08-09  Eric Blake  <eblake@redhat.com>
29981         fseeko: remove unneeded hack
29982         * lib/fseeko.c (fseeko): Don't special-case SEEK_END.
29984         fseeko: fix bug on glibc
29985         * lib/fseeko.c (fseeko): Set stream offset to match fd offset.
29986         Reported by John W. Eaton.
29988 2011-08-08  Bruno Haible  <bruno@clisp.org>
29990         unictype/base: Fix interoperability with preinstalled libunistring.
29991         * modules/unictype/base (configure.ac): Bump minimum version to 0.9.4.
29992         Reported by Simon Josefsson.
29994 2011-08-08  Bruno Haible  <bruno@clisp.org>
29996         iswblank: Detect declaration correctly.
29997         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Use correct headers in
29998         AC_CHECK_DECLS invocation.
30000 2011-08-08  Bruno Haible  <bruno@clisp.org>
30002         tcgetsid: Detect declaration correctly.
30003         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Use correct headers in
30004         AC_CHECK_DECLS invocation.
30005         Reported by Simon Josefsson.
30007 2011-08-08  Eric Blake  <eblake@redhat.com>
30009         largefile: fix typo that regressed large file support
30010         * modules/largefile (configure.ac-early): Fix section name.
30012 2011-08-06  Karl Berry  <karl@gnu.org>
30014         * MODULES.html.sh (func_all_files): _Noreturn is no longer
30015         a separate module.
30017 2011-08-05  Simon Josefsson  <simon@josefsson.org>
30019         openat: Fix warnings and commens when building unlinkat.c on Hurd.
30020         * lib/unlinkat.c: Mention Hurd in comments.  Include stdlib.h to
30021         get prototype for free.
30023 2011-08-04  Bruno Haible  <bruno@clisp.org>
30025         Tests for module 'pathmax'.
30026         * modules/pathmax-tests: New file.
30027         * tests/test-pathmax.c: New file.
30029         canonicalize-lgpl: Support larger filenames on the Hurd.
30030         * lib/canonicalize-lgpl.c (__realpath): Bump path_max fallback to 8192.
30031         Reported by Paul Eggert.
30033         pathmax: Leave PATH_MAX undefined on the Hurd, and a constant otherwise.
30034         * lib/pathmax.h (PATH_MAX): Leave it undefined on GNU/Hurd.
30035         * lib/chdir-long.h: Include pathmax.h.
30036         * lib/clean-temp.c (PATH_MAX): Remove code that is done by pathmax.h.
30037         * lib/getcwd.c: Include pathmax.h instead of <limits.h>.
30038         (PATH_MAX): Remove code that is done by pathmax.h.
30039         * lib/canonicalize.c (PATH_MAX): Provide a fallback value.
30040         * lib/tmpfile.c: Add a comment.
30041         * m4/pathmax.m4 (gl_PATHMAX): Don't test for pathconf.
30042         * modules/chdir-long (Depends-on): Add pathmax.
30043         * modules/getcwd (Depends-on): Add pathmax.
30044         * tests/test-getcwd.c (test_abort_bug): Avoid syntax error when PATH_MAX
30045         is not defined.
30046         * doc/posix-headers/limits.texi: Mention the pathmax module.
30047         * NEWS: Mention the change.
30049 2011-08-02  Bruno Haible  <bruno@clisp.org>
30051         pthread_sigmask: Actually use results of gl_THREADLIB.
30052         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test and require
30053         gl_THREADLIB, not gl_[]THREADLIB.
30054         Reported by Eric Blake.
30056 2011-08-02  Jim Meyering  <meyering@redhat.com>
30058         maint.mk: relax the default _gl_TS_function_match regexp
30059         * top/maint.mk (_gl_TS_function_match): Don't require at least one
30060         space between function name and "(" in an "extern" declaration.
30061         That would fail to match a decl with no space there: extern void foo();
30063 2011-07-31  Iain Nicol  <iain@thenicols.net>
30065         git-version-gen: document that EXTRA_DIST must include .version
30066         * build-aux/git-version-gen: In the how-to-use comment, document
30067         that EXTRA_DIST must include .version.  Otherwise, "make distcheck"
30068         will fail when run from an unpacked distribution tarball.
30070 2011-08-01  Bruno Haible  <bruno@clisp.org>
30072         wctype-h: Fix last change.
30073         * m4/wctype_h.m4 (gl_WCTYPE_H): If towlower is defined, set
30074         REPLACE_TOWLOWER to 0.
30075         Reported by Sam Steingold <sds@gnu.org>.
30077 2011-07-31  Bruno Haible  <bruno@clisp.org>
30079         frexpl: Update autoconf test.
30080         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Update overrides of <float.h>,
30081         according to changes of 2011-06-20.
30083 2011-07-31  Bruno Haible  <bruno@clisp.org>
30085         sys_utsname: Add support for Minix.
30086         * lib/sys_utsname.in.h [Minix]: Include <stddef.h> before
30087         <sys/utsname.h>.
30088         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
30089         * doc/posix-headers/sys_utsname.texi: Document the Minix problem.
30091 2011-07-31  Bruno Haible  <bruno@clisp.org>
30093         strings: Add support for Minix.
30094         * lib/strings.in.h [Minix]: Include <sys/types.h> before <strings.h>.
30095         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
30096         * doc/posix-headers/strings.texi: Document the Minix problem.
30098 2011-07-31  Bruno Haible  <bruno@clisp.org>
30100         wctype-h: Add support for Minix.
30101         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towlower is declared. Set
30102         REPLACE_TOWLOWER.
30103         * modules/wctype-h (Makefile.am): Substitute REPLACE_TOWLOWER.
30104         * lib/wctype.in.h (towlower, towupper): Test REPLACE_TOWLOWER, not
30105         REPLACE_ISWCNTRL.
30107 2011-07-31  Paul Eggert  <eggert@cs.ucla.edu>
30109         * lib/xalloc.h (DEFAULT_MXFAST): Track 64-bit glibc.
30110         This is a performance improvement for 64-bit hosts: it causes the
30111         value of DEFAULT_MXFAST to track what's in glibc on such hosts.
30113 2011-07-31  Bruno Haible  <bruno@clisp.org>
30115         stdioext: Add support for Minix.
30116         * lib/fbufmode.c (fbufmode) [__minix]: Add conditional code.
30117         * lib/fpurge.c (fpurge): Likewise.
30118         * lib/freadahead.c (freadahead): Likewise.
30119         * lib/freadable.c (freadable): Likewise.
30120         * lib/freading.c (freading): Likewise.
30121         * lib/freadptr.c (freadptr): Likewise.
30122         * lib/freadseek.c (freadptrinc): Likewise.
30123         * lib/fseeko.c (rpl_fseeko): Likewise.
30124         * lib/fseterr.c (fseterr): Likewise.
30125         * lib/fwritable.c (fwritable): Likewise.
30126         * lib/fwriting.c (fwriting): Likewise.
30127         * lib/fflush.c (clear_ungetc_buffer): Update comment.
30128         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Minix.
30130 2011-07-31  Bruno Haible  <bruno@clisp.org>
30132         errno: Port to Minix.
30133         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also whether ENETRESET and
30134         ECONNABORTED are defined.
30135         * lib/errno.in.h (ENETRESET, GNULIB_defined_ENETRESET, ECONNABORTED,
30136         GNULIB_defined_ECONNABORTED): New macros.
30137         * lib/strerror-override.h (strerror_override): Test also
30138         GNULIB_defined_ENETRESET, GNULIB_defined_ECONNABORTED.
30139         * lib/strerror-override.c (strerror_override): Handle also ENETRESET,
30140         ECONNABORTED.
30141         * doc/posix-headers/errno.texi: Mention the Minix problem.
30143 2011-07-31  Bruno Haible  <bruno@clisp.org>
30145         Work around declaration collisions on Minix.
30146         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): If mbsinit is declared but not
30147         defined, set REPLACE_MBSINIT.
30148         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): If mbrtowc is declared but not
30149         defined, set REPLACE_MBRTOWC.
30150         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): If mbrlen is declared but not defined,
30151         set REPLACE_MBRLEN.
30152         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): If mbsrtowcs is declared but not
30153         defined, set REPLACE_MBSRTOWCS.
30154         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): If wcrtomb is declared but not
30155         defined, set REPLACE_WCRTOMB.
30156         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): If wcsrtombs is declared but not
30157         defined, set REPLACE_WCSRTOMBS.
30159 2011-07-31  Bruno Haible  <bruno@clisp.org>
30161         Add support for Minix with ACK compiler.
30162         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): New macro.
30163         * gnulib-tool (func_import, func_create_testdir): Emit invocation of
30164         gl_PROG_AR_RANLIB instead of AC_PROG_RANLIB.
30166 2011-07-31  Bruno Haible  <bruno@clisp.org>
30168         Documentation about Minix.
30169         * doc/posix-headers/*.texi: Add info about Minix 3.1.8.
30170         * doc/glibc-headers/*.texi: Likewise.
30171         * doc/posix-functions/*.texi: Likewise.
30172         * doc/glibc-functions/*.texi: Likewise.
30174 2011-07-31  Bruno Haible  <bruno@clisp.org>
30176         snippet/warn-on-use: Fix indentation.
30177         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix indentation.
30179 2011-07-25  Jim Meyering  <meyering@redhat.com>
30181         tests: test-update-copyright.sh: remove unnecessary "rm" commands
30182         * tests/test-update-copyright.sh: Remove unused rm -f $TMP.*.bak
30183         commands.
30185 2011-07-27  Jim Meyering  <meyering@redhat.com>
30187         maint.mk: avoid sc_prohibit_always-defined_macros failure in coreutils
30188         * top/maint.mk (gl_extract_significant_defines_): Now that
30189         SA_RESETHAND and SA_RESTART are #defined (albeit conditionally) in
30190         gnulib/lib/signal.in.h, and now that we recommend to
30191         define-if-undefined those two symbols in application code,
30192         we must filter them out of the "significant" list.
30193         This avoids a "make syntax-check" failure in coreutils.
30195 2011-07-26  Eric Blake  <eblake@redhat.com>
30197         warnings: add comments about previous patch
30198         * m4/absolute-header.m4: Document AS_VAR_PUSHDEF limitation.
30199         * m4/include_next.m4: Likewise.
30200         * m4/warn-on-use.m4: Likewise.
30201         * m4/warnings.m4: Likewise, and simplify use.
30202         Suggested by Stefano Lattarini.
30204         include-next, warnings: support older autoconf
30205         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Use
30206         AS_VAR_PUSHDEF in a way that works with older autoconf.
30207         * m4/warnings.m4 (gl_WARN_ADD): Likewise.
30208         Reported by Daniel P. Berrange.
30210 2011-07-25  Bruno Haible  <bruno@clisp.org>
30212         fseek, ftell: Fix doc.
30213         * doc/posix-functions/fseek.texi: Reword statement about
30214         AC_SYS_LARGEFILE.
30215         * doc/posix-functions/ftell.texi: Likewise.
30217 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
30218             Bruno Haible  <bruno@clisp.org>
30220         Add dependencies to the 'largefile' module.
30221         * modules/fopen (Depends-on): Add 'largefile'.
30222         * modules/freopen (Depends-on): Likewise.
30223         * modules/fseeko (Depends-on): Likewise.
30224         * modules/ftello (Depends-on): Likewise.
30225         * modules/glob (Depends-on): Likewise.
30226         * modules/lseek (Depends-on): Likewise.
30227         * modules/lstat (Depends-on): Likewise.
30228         * modules/mkostemp (Depends-on): Likewise.
30229         * modules/mkostemps (Depends-on): Likewise.
30230         * modules/mkstemp (Depends-on): Likewise.
30231         * modules/mkstemps (Depends-on): Likewise.
30232         * modules/open (Depends-on): Likewise.
30233         * modules/openat (Depends-on): Likewise.
30234         * modules/pread (Depends-on): Likewise.
30235         * modules/pwrite (Depends-on): Likewise.
30236         * modules/scandir (Depends-on): Likewise.
30237         * modules/stat (Depends-on): Likewise.
30238         * modules/tmpfile (Depends-on): Likewise.
30239         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Do not require AC_SYS_LARGEFILE,
30240         since the containing module now depends on the largefile module.
30241         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Likewise.
30242         * doc/posix-functions/fopen.texi: Mention that the problem of 32-bit
30243         off_t is fixed by gnulib.
30244         * doc/posix-functions/freopen.texi: Likewise.
30245         * doc/posix-functions/fseeko.texi: Likewise.
30246         * doc/posix-functions/fstatat.texi: Likewise.
30247         * doc/posix-functions/ftello.texi: Likewise.
30248         * doc/posix-functions/glob.texi: Likewise.
30249         * doc/posix-functions/lseek.texi: Likewise.
30250         * doc/posix-functions/lstat.texi: Likewise.
30251         * doc/posix-functions/mkstemp.texi: Likewise.
30252         * doc/posix-functions/open.texi: Likewise.
30253         * doc/posix-functions/openat.texi: Likewise.
30254         * doc/posix-functions/pread.texi: Likewise.
30255         * doc/posix-functions/pwrite.texi: Likewise.
30256         * doc/posix-functions/scandir.texi: Likewise.
30257         * doc/posix-functions/stat.texi: Likewise.
30258         * doc/posix-functions/tmpfile.texi: Likewise.
30259         * doc/glibc-functions/mkostemp.texi: Likewise.
30260         * doc/glibc-functions/mkostemps.texi: Likewise.
30261         * doc/glibc-functions/mkstemps.texi: Likewise.
30263 2011-07-25  Bruno Haible  <bruno@clisp.org>
30265         fcntl: Move AC_LIBOBJ invocation to module description.
30266         * m4/fcntl.m4 (gl_REPLACE_FCNTL): Don't invoke AC_LIBOBJ.
30267         * modules/fcntl (configure.ac): Invoke AC_LIBOBJ.
30269         fcntl: Remove call-in from fchdir.m4.
30270         * m4/fcntl.m4 (gl_FUNC_FCNTL): Conditionally invoke gl_TEST_FCHDIR.
30271         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_FCNTL.
30273         dup3: Remove potential call-in from fchdir.m4.
30274         * m4/dup3.m4 (gl_FUNC_DUP3): Add comment about fchdir.
30275         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Remove comment about dup3.
30277         dup2: Move AC_LIBOBJ invocation to module description.
30278         * m4/dup2.m4 (gl_REPLACE_DUP2): Remove macro.
30279         (gl_FUNC_DUP2): Instead of gl_REPLACE_DUP2, just set REPLACE_DUP2 to 1.
30280         Don't invoke AC_LIBOBJ.
30281         * modules/dup2 (configure.ac): Invoke AC_LIBOBJ.
30283         dup2: Remove call-in from fchdir.m4.
30284         * m4/dup2.m4 (gl_FUNC_DUP2): Conditionally invoke gl_TEST_FCHDIR.
30285         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_DUP2.
30287         fclose: Move AC_LIBOBJ invocation to module description.
30288         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Remove macro.
30289         (gl_FUNC_FCLOSE): Instead of gl_REPLACE_FCLOSE, just set REPLACE_FCLOSE
30290         to 1.
30291         * modules/fclose (configure.ac): Invoke AC_LIBOBJ.
30293         fclose: Remove call-in from close.m4.
30294         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_CLOSE.
30295         * m4/close.m4 (gl_FUNC_CLOSE): Don't invoke gl_REPLACE_FCLOSE.
30297         close: Move AC_LIBOBJ invocation to module description.
30298         * m4/close.m4 (gl_REPLACE_CLOSE): Remove macro.
30299         (gl_FUNC_CLOSE): Instead of gl_REPLACE_CLOSE, just set REPLACE_CLOSE to
30300         1.
30301         * modules/close (configure.ac): Invoke AC_LIBOBJ.
30303         close: Remove call-in from fchdir.m4.
30304         * m4/close.m4 (gl_FUNC_CLOSE): Conditionally invoke gl_TEST_FCHDIR.
30305         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_CLOSE.
30307         open: Move AC_LIBOBJ invocation to module description.
30308         * m4/open.m4 (gl_REPLACE_OPEN): Remove macro.
30309         (gl_FUNC_OPEN): Instead of gl_REPLACE_OPEN, just set REPLACE_OPEN to 1.
30310         * modules/open (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_OPEN.
30312         open: Remove call-in from fchdir.m4.
30313         * m4/open.m4 (gl_FUNC_OPEN): Conditionally invoke gl_TEST_FCHDIR.
30314         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_OPEN.
30316         fchdir: Start to remove gl_REPLACE_* idiom.
30317         * m4/fchdir.m4 (gl_TEST_FCHDIR): New macro.
30318         (gl_FUNC_FCHDIR): Invoke it.
30320 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
30322         * lib/ftell.c (ftell): Comment out cast.
30324         close: use gl_REPLACE_FCLOSE only if defined
30325         * m4/close.m4 (gl_REPLACE_CLOSE): Use gl_REPLACE_FCLOSE only if it
30326         is defined.  The close module doesn't depend on the fclose module
30327         any more, so gl_REPLACE_CLOSE's existence cannot be assumed.  See
30328         <http://lists.gnu.org/r/bug-gnulib/2011-07/msg00392.html>.
30329         I reproduced the problem with "./gnulib-tool --test close sys_socket".
30331 2011-07-24  Jim Meyering  <meyering@redhat.com>
30333         test-select.h: avoid warning when using gcc's -Wmissing-declarations
30334         * tests/test-select.h (test_function): Declare as "static".
30336 2011-07-24  Bruno Haible  <bruno@clisp.org>
30338         doc: Mention the effects of AC_SYS_LARGEFILE.
30339         * doc/posix-functions/aio_cancel.texi: Mention the effects of AC_SYS_LARGEFILE
30340         on this function.
30341         * doc/posix-functions/aio_error.texi: Likewise.
30342         * doc/posix-functions/aio_fsync.texi: Likewise.
30343         * doc/posix-functions/aio_read.texi: Likewise.
30344         * doc/posix-functions/aio_return.texi: Likewise.
30345         * doc/posix-functions/aio_suspend.texi: Likewise.
30346         * doc/posix-functions/aio_write.texi: Likewise.
30347         * doc/posix-functions/fgetpos.texi: Likewise.
30348         * doc/posix-functions/fopen.texi: Likewise.
30349         * doc/posix-functions/freopen.texi: Likewise.
30350         * doc/posix-functions/fsetpos.texi: Likewise.
30351         * doc/posix-functions/fstatvfs.texi: Likewise.
30352         * doc/posix-functions/ftruncate.texi: Likewise.
30353         * doc/posix-functions/ftw.texi: Likewise.
30354         * doc/posix-functions/getrlimit.texi: Likewise.
30355         * doc/posix-functions/glob.texi: Likewise.
30356         * doc/posix-functions/lio_listio.texi: Likewise.
30357         * doc/posix-functions/lockf.texi: Likewise.
30358         * doc/posix-functions/mkstemp.texi: Likewise.
30359         * doc/posix-functions/mmap.texi: Likewise.
30360         * doc/posix-functions/nftw.texi: Likewise.
30361         * doc/posix-functions/openat.texi: Likewise.
30362         * doc/posix-functions/opendir.texi: Likewise.
30363         * doc/posix-functions/posix_fadvise.texi: Likewise.
30364         * doc/posix-functions/posix_fallocate.texi: Likewise.
30365         * doc/posix-functions/pread.texi: Likewise.
30366         * doc/posix-functions/pwrite.texi: Likewise.
30367         * doc/posix-functions/readdir.texi: Likewise.
30368         * doc/posix-functions/readdir_r.texi: Likewise.
30369         * doc/posix-functions/rewinddir.texi: Likewise.
30370         * doc/posix-functions/scandir.texi: Likewise.
30371         * doc/posix-functions/seekdir.texi: Likewise.
30372         * doc/posix-functions/setrlimit.texi: Likewise.
30373         * doc/posix-functions/statvfs.texi: Likewise.
30374         * doc/posix-functions/telldir.texi: Likewise.
30375         * doc/posix-functions/tmpfile.texi: Likewise.
30376         * doc/posix-functions/truncate.texi: Likewise.
30377         * doc/glibc-functions/fallocate.texi: Likewise.
30378         * doc/glibc-functions/fstatfs.texi: Likewise.
30379         * doc/glibc-functions/fts_children.texi: Likewise.
30380         * doc/glibc-functions/fts_read.texi: Likewise.
30381         * doc/glibc-functions/getdirentries.texi: Likewise.
30382         * doc/glibc-functions/mkostemp.texi: Likewise.
30383         * doc/glibc-functions/mkostemps.texi: Likewise.
30384         * doc/glibc-functions/mkstemps.texi: Likewise.
30385         * doc/glibc-functions/preadv.texi: Likewise.
30386         * doc/glibc-functions/pwritev.texi: Likewise.
30387         * doc/glibc-functions/sendfile.texi: Likewise.
30388         * doc/glibc-functions/statfs.texi: Likewise.
30390 2011-07-24  Bruno Haible  <bruno@clisp.org>
30392         doc: Fix typo.
30393         * doc/posix-functions/fstat.texi: Talk about fstat, not stat.
30395 2011-07-24  Bruno Haible  <bruno@clisp.org>
30397         doc: Mention fsusage.
30398         * doc/posix-functions/statvfs.texi: Mention the fsusage module.
30400 2011-07-24  Bruno Haible  <bruno@clisp.org>
30402         doc: Mention new glibc headers and functions.
30403         * doc/glibc-headers/gshadow.texi: New file.
30404         * doc/glibc-functions/endsgent.texi: New file.
30405         * doc/glibc-functions/fgetsgent.texi: New file.
30406         * doc/glibc-functions/fgetsgent_r.texi: New file.
30407         * doc/glibc-functions/getsgent.texi: New file.
30408         * doc/glibc-functions/getsgent_r.texi: New file.
30409         * doc/glibc-functions/getsgnam.texi: New file.
30410         * doc/glibc-functions/getsgnam_r.texi: New file.
30411         * doc/glibc-functions/putsgent.texi: New file.
30412         * doc/glibc-functions/setsgent.texi: New file.
30413         * doc/glibc-functions/sgetsgent.texi: New file.
30414         * doc/glibc-functions/sgetsgent_r.texi: New file.
30415         * doc/glibc-functions/malloc_info.texi: New file.
30416         * doc/glibc-functions/preadv.texi: New file.
30417         * doc/glibc-functions/pwritev.texi: New file.
30418         * doc/glibc-functions/register_printf_modifier.texi: New file.
30419         * doc/glibc-functions/register_printf_specifier.texi: New file.
30420         * doc/glibc-functions/register_printf_type.texi: New file.
30421         * doc/glibc-functions/pthread_attr_getaffinity_np.texi: New file.
30422         * doc/glibc-functions/pthread_attr_setaffinity_np.texi: New file.
30423         * doc/glibc-functions/pthread_getaffinity_np.texi: New file.
30424         * doc/glibc-functions/pthread_getname_np.texi: New file.
30425         * doc/glibc-functions/pthread_mutex_consistent_np.texi: New file.
30426         * doc/glibc-functions/pthread_mutexattr_getrobust_np.texi: New file.
30427         * doc/glibc-functions/pthread_mutexattr_setrobust_np.texi: New file.
30428         * doc/glibc-functions/pthread_setaffinity_np.texi: New file.
30429         * doc/glibc-functions/pthread_setname_np.texi: New file.
30430         * doc/glibc-functions/pthread_sigqueue.texi: New file.
30431         * doc/glibc-functions/pthread_timedjoin_np.texi: New file.
30432         * doc/glibc-functions/pthread_tryjoin_np.texi: New file.
30433         * doc/glibc-functions/qsort_r.texi: New file.
30434         * doc/glibc-functions/quick_exit.texi: New file.
30435         * doc/glibc-functions/syncfs.texi: New file.
30436         * doc/gnulib.texi: Include them.
30437         (Glibc gshadow.h, Glibc sys/uio.h): New sections.
30438         * doc/posix-functions/psiginfo.texi: Fix info about glibc version.
30439         * doc/posix-functions/pthread_mutex_consistent.texi: Likewise.
30440         * doc/posix-functions/pthread_mutexattr_getrobust.texi: Likewise.
30441         * doc/posix-functions/pthread_mutexattr_setrobust.texi: Likewise.
30442         * doc/glibc-functions/execvpe.texi: Likewise.
30444 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
30446         ftell: don't include <unistd.h>
30447         * lib/ftell.c: Don't include <unistd.h>.  <stdio.h> is now
30448         guaranteed to define off_t, and the ftell module depends on the
30449         stdio module.
30451         ftell: do not assume wraparound signed arithmetic
30452         * lib/ftell.c: Include <limits.h>.
30453         (ftell): Don't assume wraparound signed arithmetic.
30455 2011-07-24  Bruno Haible  <bruno@clisp.org>
30457         close: No longer depend on module 'fclose'.
30458         * modules/close (Depends-on): Remove fclose.
30459         * NEWS: Mention the change.
30460         Suggested by Sam Steingold <sds@gnu.org>.
30462 2011-07-24  Bruno Haible  <bruno@clisp.org>
30464         fsusage: Enable large volume support on AIX >= 5.2.
30465         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): If 'struct statvfs64' has a
30466         larger f_blocks field than 'struct statvfs', define STAT_STATVFS64
30467         instead of STAT_STATVFS.
30468         * lib/fsusage.c (get_fs_usage) [STAT_STATVFS64]: Use statvfs64.
30470         fsusage: Restore previous behaviour on AIX, Cygwin, Interix.
30471         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Enforce a 64-bit struct statvfs
30472         f_blocks field only on MacOS X.
30474         fsusage: Support large volumes on glibc/Hurd, HP-UX, Solaris, MacOS X.
30475         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Require AC_SYS_LARGEFILE.
30476         * modules/fsusage (Depends-on): Add largefile.
30478 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
30480         * README: Modernize discussion of signed integers.
30481         Assuming overflow wraparound is no longer safe.
30482         Mention ones' complement and signed magnitude.
30484 2011-07-22  Bruno Haible  <bruno@clisp.org>
30486         select tests, pselect tests: Refactor.
30487         * tests/test-select.h: New file, extracted from tests/test-select.c.
30488         (select_fn): New type.
30489         (test, do_select, do_select_nowait, do_select_wait, test_tty,
30490         test_connect_first, test_accept_first, test_pair, test_socket_pair,
30491         test_pipe): Add my_select argument.
30492         (test_function): Renamed from main. Add my_select argument.
30493         * tests/test-select.c: Move most code to tests/test-select.h. Include
30494         test-select.h.
30495         * modules/select-tests (Files): Add tests/test-select.h.
30496         * tests/test-pselect.c: Include test-select.h instead of test-select.c.
30497         (my_select, main): New functions.
30498         * modules/pselect-tests (Files): Add tests/test-select.h,
30499         tests/macros.h, tests/signature.h.
30500         (Depends-on): Remove select-tests. Add dependencies of test-select.h.
30501         (configure.ac): Check for <sys/wait.h>.
30503 2011-07-22  Bruno Haible  <bruno@clisp.org>
30505         sys_select tests: Check the signature of FD_*.
30506         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Move
30507         signature tests from here...
30508         * tests/test-sys_select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): ... to
30509         here.
30510         * modules/sys_select-tests (Files): Add tests/signature.h.
30512 2011-07-22  Paul Eggert  <eggert@cs.ucla.edu>
30514         largefile: new module, replacing large-inode
30515         Pádraig Brady suggested this in <http://debbugs.gnu.org/9140#20>.
30516         * MODULES.html.sh: Add largefile, remove large-inode.
30517         * modules/largefile, m4/largefile.m4: New files.
30518         * modules/large-inode, m4/large-inode.m4: Remove.
30520         fsusage: port to MacOS X 10.7 with 4 TiB file systems
30521         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Reject statvfs
30522         implementations that use only 32 bits to count blocks.
30523         On typical hosts with 1024-byte blocks, this fails with file
30524         systems as small as 4 TiB.  Problem reported by Herb Wartens
30525         <http://debbugs.gnu.org/9140> and this should also fix a similar
30526         problem reported by Tim Spriggs <http://debbugs.gnu.org/7355>.
30528         large-inode: New module
30529         * MODULES.html.sh: Add it.
30530         * modules/large-inode, m4/large-inode.m4: New files.
30532         extensions: Enable extensions on MacOS X 10.5 and later.
30533         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define _DARWIN_C_SOURCE.
30535 2011-07-22  Kamil Dudka  <kdudka@redhat.com>
30537         file-has-acl: use acl_extended_file_nofollow if available
30538         * lib/acl-internal.h (HAVE_ACL_EXTENDED_FILE): New macro.
30539         (acl_extended_file): New macro.
30540         * lib/file-has-acl.c (file_has_acl): Use acl_extended_file_nofollow.
30541         * m4/acl.m4 (gl_FUNC_ACL): Check for acl_extended_file_nofollow.
30543 2011-07-21  Bruno Haible  <bruno@clisp.org>
30545         Declare system functions in a way that works with C++.
30546         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR) [C++]: In the test program,
30547         declare fdopendir as extern "C".
30548         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS) [C++]: In the test program,
30549         declare frexpl as extern "C".
30550         * m4/getaddrinfo.m4 (gl_GETADDRINFO) [C++]: In the test program,
30551         declare gai_strerror as extern "C".
30552         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME) [C++]: In the test
30553         programs, declare gai_strerror as extern "C".
30554         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R) [C++]: In the test program,
30555         declare getlogin_r as extern "C".
30556         * m4/ioctl.m4 (gl_FUNC_IOCTL) [C++]: In the test program, declare ioctl
30557         as extern "C".
30558         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS) [C++]: In the test program,
30559         declare ldexpl as extern "C".
30560         * m4/logb.m4 (gl_FUNC_LOGB) [C++]: In the test programs, declare logb
30561         as extern "C".
30562         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS) [C++]: In the test
30563         program, declare getmntinfo as extern "C".
30564         * m4/stpncpy.m4 (gl_FUNC_STPNCPY) [C++]: In the test program, declare
30565         stpncpy as extern "C".
30566         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS) [C++]: In the test
30567         program, declare __xpg_strerror_r as extern "C".
30568         * m4/strndup.m4 (gl_FUNC_STRNDUP) [C++]: In the test program, declare
30569         strndup as extern "C".
30570         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT) [C++]: In the test program,
30571         declare memset and bzero as extern "C".
30572         Reported by Sam Steingold <sds@gnu.org>.
30574 2011-07-12  Jim Meyering  <meyering@redhat.com>
30576         maint.mk: prohibit inclusion of "verify.h" without use
30577         * top/maint.mk (sc_prohibit_verify_without_use): New rule.
30579 2011-07-19  Pádraig Brady  <P@draigBrady.com>
30581         timer-time: A new module to check for timer_settime()
30582         * m4/timer_time.m4: Check for the posix function.
30583         * modules/timer-time: Add the new module.
30584         * MODULES.html.sh (Compat checks for POSIX:2008 functions):
30585         Mention it.
30587 2011-07-19  Paul Eggert  <eggert@cs.ucla.edu>
30588             Bruno Haible  <bruno@clisp.org>
30590         pthread_sigmask: assume POSIX threads if --avoid=threadlib
30591         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): If gl_THREADLIB is
30592         not defined, assume POSIX threads and look for pthread_sigmask in
30593         $LIBS, without changing $CPPFLAGS.
30595 2011-07-19  Bruno Haible  <bruno@clisp.org>
30597         strstr: Update cross-compilation guess.
30598         * m4/strstr.m4 (gl_FUNC_STRSTR): On glibc > 2.12 with x86 or x86_64
30599         CPUs, guess no, in view of glibc
30600         BZ #12100 <http://sourceware.org/bugzilla/show_bug.cgi?id=12100>.
30601         Suggested by Eric Blake. Reported by Reuben Thomas.
30603 2011-07-19  Pádraig Brady  <P@draigBrady.com>
30605         getopt-gnu: suppress core dumps from detection code
30606         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Use the nocrash module
30607         to suppress core dumps that may well occur on glibc systems.
30608         * modules/getopt-gnu: Depend on nocrash.
30610 2011-07-16  Paul Eggert  <eggert@cs.ucla.edu>
30612         pthread_sigmask: ensure usleep is declared
30613         * lib/pthread_sigmask.c [PTHREAD_SIGMASK_UNBLOCK_BUG]:
30614         Include <unistd.h>, to declare usleep.  Needed on Solaris 8,
30616 2011-07-15  Paul Eggert  <eggert@cs.ucla.edu>
30618         doc: Document NonStop portability issues.
30619         * doc/posix-functions/sigaction.texi (sigaction):
30620         * doc/posix-headers/signal.texi (signal.h):
30621         Document NonStop.  See Joachim Schmitz in
30622         http://lists.gnu.org/r/bug-coreutils/2011-07/msg00062.html
30624 2011-07-15  Bruno Haible  <bruno@clisp.org>
30626         ffsl, ffsll: Avoid unportable behaviour.
30627         * lib/ffsl.h (FUNC): Use 'unsigned int' instead of 'int'.
30629 2011-07-15  Bruno Haible  <bruno@clisp.org>
30631         ffs: More tests.
30632         * tests/test-ffs.c (NBITS): New macro.
30633         (main): Add more tests.
30634         * tests/test-ffsl.c (NBITS): New macro.
30635         (main): Add more tests.
30636         * tests/test-ffsll.c (NBITS): New macro.
30637         (main): Add more tests.
30639 2011-07-15  Eric Blake  <eblake@redhat.com>
30641         ffsl, ffsll: new modules
30642         * modules/ffsl: New file.
30643         * modules/ffsll: Likewise.
30644         * m4/ffsl.m4: Likewise.
30645         * m4/ffsll.m4: Likewise.
30646         * lib/ffsl.c: Likewise.
30647         * lib/ffsl.h: Likewise.
30648         * lib/ffsll.c: Likewise.
30649         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY)
30650         (gl_HEADER_STRING_H_DEFAULTS): Add defaults.
30651         * modules/string (Makefile.am): Substitute witnesses.
30652         * lib/strings.in.h (ffsl, ffsll): Declare.
30653         * modules/ffsl-tests: New test file.
30654         * modules/ffsll-tests: Likewise.
30655         * tests/test-ffsl.c: Likewise.
30656         * tests/test-ffsll.c: Likewise.
30657         * MODULES.html.sh (Integer arithmetic functions): Mention it.
30658         * doc/glibc-functions/ffsl.texi (ffsl): Likewise.
30659         * doc/glibc-functions/ffsll.texi (ffsll): Likewise.
30661         ffs: fix m4 prerequisite
30662         * m4/ffs.m4 (gl_FUNC_FFS): Require strings.h defaults.
30664         ffs: avoid undefined behavior
30665         * lib/ffs.c (ffs): Provide fallback for non-32-bit int.
30666         * tests/test-ffs.c (naive, main): Avoid signed shifts.
30667         Reported by Bruno Haible.
30669 2011-07-12  Bruno Haible  <bruno@clisp.org>
30671         pthread_sigmask: Rely on module 'threadlib'.
30672         * modules/pthread_sigmask (Depends-on): Add threadlib.
30673         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Assume gl_THREADLIB
30674         is defined.
30676 2011-07-12  Bruno Haible  <bruno@clisp.org>
30678         regex: Depend on module 'strcase'.
30679         * modules/regex (Depends-on): Add strcase, for strcasecmp().
30681 2011-07-12  Jim Meyering  <meyering@redhat.com>
30683         warn-on-use: fix typo in file name
30684         * modules/snippet/warn-on-use (Files): Correct file name:
30685         include /snippet/ component in "build-aux/snippet/warn-on-use.h".
30687 2011-07-12  Bruno Haible  <bruno@clisp.org>
30689         strings: Document module.
30690         * doc/posix-headers/strings.texi: Mention module 'strings'.
30692 2011-07-12  Bruno Haible  <bruno@clisp.org>
30694         Rename module '_Noreturn' to 'snippet/_Noreturn'.
30695         * modules/snippet/_Noreturn: Renamed from modules/_Noreturn.
30696         (Files, Makefile.am): Update.
30697         * build-aux/snippet/_Noreturn.h: Renamed from build-aux/_Noreturn.h.
30698         * modules/stdlib (Depends-on): Update.
30700 2011-07-12  Bruno Haible  <bruno@clisp.org>
30702         * NEWS: Mention the changes.
30704         Rename module 'warn-on-use' to 'snippet/warn-on-use'.
30705         * modules/snippet/warn-on-use: Renamed from modules/warn-on-use.
30706         (Files, Makefile.am): Update.
30707         * build-aux/snippet/warn-on-use.h: Renamed from build-aux/warn-on-use.h.
30708         * modules/arpa_inet (Depends-on): Update.
30709         * modules/ctype (Depends-on): Update.
30710         * modules/dirent (Depends-on): Update.
30711         * modules/fcntl-h (Depends-on): Update.
30712         * modules/glob (Depends-on): Update.
30713         * modules/iconv-h (Depends-on): Update.
30714         * modules/inttypes-incomplete (Depends-on): Update.
30715         * modules/langinfo (Depends-on): Update.
30716         * modules/locale (Depends-on): Update.
30717         * modules/math (Depends-on): Update.
30718         * modules/netdb (Depends-on): Update.
30719         * modules/poll-h (Depends-on): Update.
30720         * modules/pty (Depends-on): Update.
30721         * modules/search (Depends-on): Update.
30722         * modules/signal (Depends-on): Update.
30723         * modules/spawn (Depends-on): Update.
30724         * modules/stdio (Depends-on): Update.
30725         * modules/stdlib (Depends-on): Update.
30726         * modules/string (Depends-on): Update.
30727         * modules/strings (Depends-on): Update.
30728         * modules/sys_file (Depends-on): Update.
30729         * modules/sys_ioctl (Depends-on): Update.
30730         * modules/sys_select (Depends-on): Update.
30731         * modules/sys_socket (Depends-on): Update.
30732         * modules/sys_stat (Depends-on): Update.
30733         * modules/sys_time (Depends-on): Update.
30734         * modules/sys_times (Depends-on): Update.
30735         * modules/sys_utsname (Depends-on): Update.
30736         * modules/sys_wait (Depends-on): Update.
30737         * modules/termios (Depends-on): Update.
30738         * modules/time (Depends-on): Update.
30739         * modules/unistd (Depends-on): Update.
30740         * modules/wchar (Depends-on): Update.
30741         * modules/wctype-h (Depends-on): Update.
30742         * MODULES.html.sh (Support for building libraries and executables):
30743         Update.
30745         Rename module 'unused-parameter' to 'snippet/unused-parameter'.
30746         * modules/snippet/unused-parameter: Renamed from
30747         modules/unused-parameter.
30748         (Files, Makefile.am): Update.
30749         * build-aux/snippet/unused-parameter.h: Renamed from
30750         build-aux/unused-parameter.h.
30751         * modules/selinux-h (Depends-on): Update.
30752         * modules/unistr/base (Depends-on): Update.
30753         * MODULES.html.sh (Core language properties): Update.
30755         Rename module 'link-warning' to 'snippet/link-warning'.
30756         * modules/snippet/link-warning: Renamed from modules/link-warning.
30757         (Files, Makefile.am): Update.
30758         * build-aux/snippet/link-warning.h: Renamed from
30759         build-aux/link-warning.h.
30760         * MODULES.html.sh (Support for building libraries and executables):
30761         Update.
30763         Rename module 'c++defs' to 'snippet/c++defs'.
30764         * modules/snippet/c++defs: Renamed from modules/c++defs.
30765         (Files, Makefile.am): Update.
30766         * build-aux/snippet/c++defs.h: Renamed from build-aux/c++defs.h.
30767         * modules/arpa_inet (Depends-on): Update.
30768         * modules/ctype (Depends-on): Update.
30769         * modules/dirent (Depends-on): Update.
30770         * modules/fcntl-h (Depends-on): Update.
30771         * modules/glob (Depends-on): Update.
30772         * modules/iconv-h (Depends-on): Update.
30773         * modules/langinfo (Depends-on): Update.
30774         * modules/locale (Depends-on): Update.
30775         * modules/math (Depends-on): Update.
30776         * modules/netdb (Depends-on): Update.
30777         * modules/poll-h (Depends-on): Update.
30778         * modules/pty (Depends-on): Update.
30779         * modules/search (Depends-on): Update.
30780         * modules/signal (Depends-on): Update.
30781         * modules/spawn (Depends-on): Update.
30782         * modules/stdio (Depends-on): Update.
30783         * modules/stdlib (Depends-on): Update.
30784         * modules/string (Depends-on): Update.
30785         * modules/strings (Depends-on): Update.
30786         * modules/sys_ioctl (Depends-on): Update.
30787         * modules/sys_select (Depends-on): Update.
30788         * modules/sys_socket (Depends-on): Update.
30789         * modules/sys_stat (Depends-on): Update.
30790         * modules/sys_time (Depends-on): Update.
30791         * modules/sys_wait (Depends-on): Update.
30792         * modules/termios (Depends-on): Update.
30793         * modules/time (Depends-on): Update.
30794         * modules/unistd (Depends-on): Update.
30795         * modules/wchar (Depends-on): Update.
30796         * modules/wctype-h (Depends-on): Update.
30798         Rename module 'arg-nonnull' to 'snippet/arg-nonnull'.
30799         * modules/snippet/arg-nonnull: Renamed from modules/arg-nonnull.
30800         (Files, Makefile.am): Update.
30801         * build-aux/snippet/arg-nonnull.h: Renamed from build-aux/arg-nonnull.h.
30802         * modules/argv-iter (Depends-on): Update.
30803         * modules/arpa_inet (Depends-on): Update.
30804         * modules/dirent (Depends-on): Update.
30805         * modules/fcntl-h (Depends-on): Update.
30806         * modules/fnmatch (Depends-on): Update.
30807         * modules/getopt-posix (Depends-on): Update.
30808         * modules/glob (Depends-on): Update.
30809         * modules/iconv-h (Depends-on): Update.
30810         * modules/inttypes-incomplete (Depends-on): Update.
30811         * modules/locale (Depends-on): Update.
30812         * modules/math (Depends-on): Update.
30813         * modules/netdb (Depends-on): Update.
30814         * modules/search (Depends-on): Update.
30815         * modules/signal (Depends-on): Update.
30816         * modules/spawn (Depends-on): Update.
30817         * modules/stdio (Depends-on): Update.
30818         * modules/stdlib (Depends-on): Update.
30819         * modules/string (Depends-on): Update.
30820         * modules/strings (Depends-on): Update.
30821         * modules/sys_socket (Depends-on): Update.
30822         * modules/sys_stat (Depends-on): Update.
30823         * modules/sys_time (Depends-on): Update.
30824         * modules/sys_times (Depends-on): Update.
30825         * modules/sys_utsname (Depends-on): Update.
30826         * modules/time (Depends-on): Update.
30827         * modules/unistd (Depends-on): Update.
30828         * modules/wchar (Depends-on): Update.
30829         * MODULES.html.sh (Support for building libraries and executables):
30830         Update.
30832 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
30834         Improvements on _Noreturn and related modules.
30836         modules/_Exit-tests: test _Noreturn too
30837         * tests/test-_Exit.c (MTA, Charlie): New functions, taken from the
30838         old tests/test-stdnoreturn.c.  This tests the _Noreturn keyword a bit.
30839         (main): Use them.
30841         stdnoreturn, stdnoreturn-tests: remove modules
30842         They're not needed here and a bit premature for use elsewhere.  See
30843         <http://lists.gnu.org/r/bug-gnulib/2011-07/msg00209.html>.
30844         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
30845         * tests/test-stdnoreturn.c: Remove files.
30846         * MODULES.html.sh (_Noreturn <stdnoreturn.h>): Remove section.
30847         * lib/openat.h, lib/sigpipe-die.h, lib/xalloc.h, lib/xmemdup0.h:
30848         * lib/xstrtol.h: Use _Noreturn rather than including <stdnoreturn.h>
30849         and using noreturn.
30850         * modules/openat, modules/sigpipe-die, modules/xalloc:
30851         * modules/xmemdup0, modules/xstrtol:
30852         Remove dependency on stdnoreturn.
30854         _Noreturn: Ignore __STDC_VERSION__; observe _MSC_VER.
30855         * build-aux/_Noreturn.h (_Noreturn): Ignore __STDC_VERSION__.
30856         Reparenthesize to avoid GCC warning.
30857         Support Microsoft's syntax.
30858         * m4/gnulib-common.m4 (gl_COMMON_BODY): Likewise.
30860         _Noreturn-tests: remove module
30861         * modules/_Noreturn-tests: Remove.
30862         * modules/stdnoreturn-tests (Files): Remove tests/test-_Noreturn.c.
30863         * tests/test-_Noreturn.c: Remove.
30864         * tests/test-stdnoreturn.c: Merge from the old
30865         tests/test-_Noreturn.c, testing both noreturn and _Noreturn.
30867 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
30869         _Noreturn, stdnoreturn, and related modules.
30871         * top/maint.mk: Adjust to new noreturn support.
30872         (gl_extract_significant_defines_): Omit pattern ATTRIBUTE_NORETURN.
30873         (def_sym_regex): Do not remove ATTRIBUTE_NORETURN.
30875         xalloc: use stdnoreturn.h
30876         * lib/xalloc.h: Include <stdnoreturn.h>.
30877         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
30878         * modules/xalloc (Depends-on): Add stdnoreturn.
30880         xstrtol: use stdnoreturn.h
30881         * lib/xstrtol.h: Include <stdnoreturn.h>.
30882         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
30883         * modules/xstrtol (Depends-on): Add stdnoreturn.
30885         xmemdup0: use stdnoreturn.h
30886         * lib/xmemdup0.h: Include <stdnoreturn.h>.
30887         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
30888         * modules/xmemdup0 (Depends-on): Add stdnoreturn.
30890         sigpipe-die: use stdnoreturn.h
30891         * lib/sigpipe-die.h: Include <stdnoreturn.h>.
30892         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
30893         * modules/sigpipe-die (Depends-on): Add stdnoreturn.
30895         openat: use stdnoreturn.h
30896         * lib/openat.h: Include <stdnoreturn.h>.
30897         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
30898         * modules/openat (Depends-on): Add stdnoreturn.
30900         * lib/openat-die.c (openat_save_fail): Modernize comment.
30902         * lib/xalloc-die.c (xalloc_die): Modernize comment.
30904         * lib/glthread/thread.h: Modernize comment.
30906         obstack: use _Noreturn
30907         * lib/obstack.c (__attribute__): Remove macro.
30908         (print_and_abort): Use _Noreturn.
30910         c-stack: use _Noreturn
30911         * lib/c-stack.c (die, overflow_handler, segv_handler):
30912         Use _Noreturn rather than __attribute__((noreturn)).
30914         argmatch-tests, exclude_tests: use _Noreturn
30915         * tests/test-argmatch.c, tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN):
30916         Remove.
30917         (ARGMATCH_DIE_DECL): Use _Noreturn instead.
30919         stdlib: use _Noreturn
30920         * lib/stdlib.in.h (_GL_ATTRIBUTE_NORETURN): Remove.
30921         (_Exit): Use _Noreturn rather than _GL_ATTRIBUTE_NORETURN.
30922         * modules/stdlib (Depends-on): Add _Noreturn.
30923         (stdlib.h): Depend on $(_NORETURN_H), and copy it in.
30925         stdnoreturn-tests: new module
30926         * modules/stdnoreturn-tests, tests/test-stdnoreturn.c: New files.
30928         stdnoreturn: new module
30929         * MODULES.html.sh (Noreturn <stdnoreturn.h>): New section.
30930         * m4/stdnoreturn.m4, modules/stdnoreturn: New files.
30932         _Noreturn-tests: new module
30933         * modules/_Noreturn-tests, tests/test-_Noreturn.c: New files.
30935         _Noreturn: new module
30936         * MODULES.html.sh (Support for systems lacking draft ISO C 1X):
30937         New section, mentioning it.
30938         * build-aux/_Noreturn.h, modules/_Noreturn: New files.
30940         * m4/gnulib-common.m4 (gl_COMMON_BODY): Add _Noreturn.
30942 2011-07-11  Eric Blake  <eblake@redhat.com>
30944         ffs: new module
30945         * modules/ffs: New file.
30946         * m4/ffs.m4: Likewise.
30947         * lib/ffs.c: Likewise.
30948         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_DEFAULTS): Add default.
30949         * modules/strings (Makefile.am): Substitute witness.
30950         (Depends-on): Add c++defs.
30951         * lib/strings.in.h (ffs): Declare.
30952         * modules/ffs-tests: New test file.
30953         * tests/test-ffs.c: Test new module.
30954         * MODULES.html.sh (Integer arithmetic functions): Mention it.
30955         * doc/posix-functions/ffs.texi (ffs): Likewise.
30957         regex: avoid compiler warning
30958         * lib/regex.c (includes): Include <strings.h>, for use of
30959         strcasecmp in regcomp.c.
30960         Reported by Joachim Schmitz.
30962 2011-07-09  Paul Eggert  <eggert@cs.ucla.edu>
30964         stdint: respect system's intmax_t if INTMAX_MAX
30965         * lib/stdint.in.h (intmax_t, uintmax_t): If the system defines
30966         INTMAX_MAX, assume its intmax_t is OK.  Similarly for and
30967         uintmax_t.  This is for some Mac OS X builds, where intmax_t is
30968         long but int64_t is long long, and where we will clash with the
30969         system intmax_t if we override it.  See
30970         <http://lists.gnu.org/r/bug-gnulib/2011-07/msg00160.html>.
30971         (INTMAX_C, UINTMAX_C): For consistency, respect the system's
30972         INTMAX_C if INTMAX_MAX and INTMAX_C are both defined, and
30973         similarly for UINTMAX_C.
30975 2011-07-08  Bruno Haible  <bruno@clisp.org>
30977         pthread_sigmask tests: Avoid a compiler warning.
30978         * tests/test-pthread_sigmask1.c (main): Complain if system() returns
30979         non-zero.
30981         sigprocmask tests: A better way to avoid a compiler warning.
30982         * tests/test-sigprocmask.c: Don't include "ignore-value.h".
30983         (main): Complain if system() returns non-zero.
30984         * modules/sigprocmask-tests (Depends-on): Remove ignore-value.
30986 2011-07-08  Bruno Haible  <bruno@clisp.org>
30988         pthread_sigmask: Work around IRIX bug.
30989         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the IRIX
30990         bug.
30991         * lib/pthread_sigmask.c (pthread_sigmask): usleep for some time when
30992         there may be unblocked pending signals.
30993         * doc/posix-functions/pthread_sigmask.texi: Mention the IRIX bug.
30995 2011-07-08  Bruno Haible  <bruno@clisp.org>
30997         pthread_sigmask: Work around Cygwin bug.
30998         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the Cygwin
30999         bug.
31000         * lib/pthread_sigmask.c (pthread_sigmask): Fix the return value from
31001         the system's pthread_sigmask function.
31002         * doc/posix-functions/pthread_sigmask.texi: Mention the Cygwin bug.
31004 2011-07-08  Bruno Haible  <bruno@clisp.org>
31006         pthread_sigmask: Work around bug in single-threaded implementation.
31007         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the
31008         FreeBSD, HP-UX, Solaris bug.
31009         (gl_PREREQ_PTHREAD_SIGMASK): New macro.
31010         * lib/pthread_sigmask.c: Include <stddef.h>.
31011         (pthread_sigmask): If HAVE_PTHREAD_SIGMASK, define as a wrapper around
31012         the system's pthread_sigmask function.
31013         * modules/pthread_sigmask (configure.ac): Invoke
31014         gl_PREREQ_PTHREAD_SIGMASK.
31015         * doc/posix-functions/pthread_sigmask.texi: Mention bug on FreeBSD,
31016         HP-UX, Solaris.
31018 2011-07-08  Eric Blake  <eblake@redhat.com>
31020         test-sigprocmask: avoid compiler warning
31021         * modules/sigprocmask-tests (Depends-on): Add ignore-value.
31022         * tests/test-sigprocmask.c (main): Use it to silence warning.
31023         Reported by Jim Meyering.
31025         test-snprintf: avoid compiler warning
31026         * tests/test-snprintf.c (main): Avoid shadowed declaration.
31027         * tests/test-vsnprintf.c (main): Likewise.
31028         Reported by Jim Meyering.
31030 2011-07-08  Bruno Haible  <bruno@clisp.org>
31032         Tests for module 'pthread_sigmask'.
31033         * modules/pthread_sigmask-tests: New file.
31034         * tests/test-pthread_sigmask1.c: New file, based on
31035         tests/test-sigprocmask.c.
31036         * tests/test-pthread_sigmask2.c: New file.
31038 2011-07-08  Jim Meyering  <meyering@redhat.com>
31040         test-getopt.h: avoid warning about an unused variable
31041         * tests/test-getopt.h (test_getopt): Remove unused variable, "c".
31043 2011-07-07  Jim Meyering  <meyering@redhat.com>
31045         maint: reduce list of files exempt from sc_prohibit_leading_TABs
31046         * Makefile (sc_prohibit_leading_TABs): Don't exempt m4/po.m4,
31047         now that it no longer contains leading TABs.
31048         Remove unused "url=FIXME" statement.
31050 2011-07-08  Paul Eggert  <eggert@cs.ucla.edu>
31052         pthread_sigmask: Assume POSIX when not gl_THREADLIB.
31053         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
31054         When gl_THREADLIB is not in use, assume that the POSIX sematics
31055         are desired.  This is better for Emacs, which uses POSIX semantics
31056         on GNUish and/or POSIXish platforms, and does not use threads at
31057         all otherwise.
31059         pthread_sigmask: fix typo when testing for libraries
31060         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
31061         AC_LINK_IFELSE, not AC_COMPILE_IFELSE.
31063 2011-07-08  Eric Blake  <eblake@redhat.com>
31065         fts: introduce FTS_NOATIME
31066         * lib/fts_.h (FTS_NOATIME): New bit flag.
31067         (FTS_OPTIONMASK): Adjust.
31068         * lib/fts.c (diropen, fts_open, fts_build): Honor it.
31069         (fd_ring_check): Debug code unconditionally uses O_NOATIME.
31071 2011-07-08  Bruno Haible  <bruno@clisp.org>
31073         Tests for module 'thread'.
31074         * modules/thread-tests: New file.
31075         * tests/test-thread_self.c: New file.
31076         * tests/test-thread_create.cc: New file.
31078 2011-07-08  Bruno Haible  <bruno@clisp.org>
31080         thread: Avoid gcc warnings when using gl_thread_self().
31081         * lib/glthread/thread.h (gl_thread_self): Return a pthread_t, not a
31082         'void *'.
31083         (gl_thread_self_pointer): Update.
31085 2011-07-07  Bruno Haible  <bruno@clisp.org>
31087         signal-c++-tests: Check declaration of pthread_sigmask.
31088         * tests/test-signal-c++.cc: Check declaration of pthread_sigmask.
31089         * modules/signal-c++-tests (Makefile.am): Link test-signal-c++ against
31090         $(LIB_PTHREAD_SIGMASK).
31092 2011-07-07  Bruno Haible  <bruno@clisp.org>
31094         pthread_sigmask: Fix link requirements on OSF/1 5.1 and with pth.
31095         * lib/signal.in.h (pthread_sigmask): Override if
31096         REPLACE_PTHREAD_SIGMASK is 1.
31097         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
31098         REPLACE_PTHREAD_SIGMASK.
31099         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Set also
31100         REPLACE_PTHREAD_SIGMASK. Set and substitute LIB_PTHREAD_SIGMASK.
31101         * modules/signal (Makefile.am): Substitute REPLACE_PTHREAD_SIGMASK.
31102         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
31103         (Link): Set to $(LIB_PTHREAD_SIGMASK), not $(LIBMULTITHREAD).
31105 2011-07-07  Bruno Haible  <bruno@clisp.org>
31107         pthread_sigmask: Ensure declaration in <signal.h>.
31108         * lib/signal.in.h: On MacOS X, FreeBSD, OpenBSD, OSF/1, Solaris 2.6,
31109         include <pthread.h>.
31110         * doc/posix-functions/pthread_sigmask.texi: Mention the header file
31111         problem.
31113 2011-07-07  Bruno Haible  <bruno@clisp.org>
31115         pthread_sigmask: Document the module.
31116         * doc/posix-functions/pthread_sigmask.texi: Mention the new module.
31118 2011-07-07  Bruno Haible  <bruno@clisp.org>
31120         pthread_sigmask: Follow gnulib conventions.
31121         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Renamed from
31122         gl_PTHREAD_SIGMASK.
31123         * modules/pthread_sigmask (configure.ac): Update.
31125 2011-07-07  Bruno Haible  <bruno@clisp.org>
31127         pthread_sigmask: Make declaration C++ safe.
31128         * lib/signal.in.h: In two special conditions, just do an #include_next.
31129         (pthread_sigmask): Test HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
31130         Invoke _GL_CXXALIAS_SYS and _GL_CXXALIASWARN.
31131         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
31132         HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
31133         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Set HAVE_PTHREAD_SIGMASK,
31134         not REPLACE_PTHREAD_MASK.
31135         * modules/signal (Makefile.am): Substitute HAVE_PTHREAD_SIGMASK,
31136         not REPLACE_PTHREAD_MASK.
31137         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
31139 2011-07-07  Bruno Haible  <bruno@clisp.org>
31141         pthread_sigmask: Fix return value.
31142         * lib/signal.in.h (pthread_sigmask): Declare. Don't define as a macro.
31143         * lib/pthread_sigmask.c: New file.
31144         * modules/pthread_sigmask (Files): Add it.
31145         (configure.ac): Invoke AC_LIBOBJ.
31147 2011-07-07  Eric Blake  <eblake@redhat.com>
31149         getopt: more portable argv creation
31150         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Rather than casting away
31151         const, use char arrays rather than strings.
31152         Suggested by Paul Eggert.
31154 2011-07-07  Bruno Haible  <bruno@clisp.org>
31156         Tests for module 'sigprocmask'.
31157         * modules/sigprocmask-tests: New file.
31158         * tests/test-sigprocmask.c: New file.
31160 2011-07-07  Bruno Haible  <bruno@clisp.org>
31162         float tests: Tweak.
31163         * tests/test-float.c (main): Tweak skip message.
31165 2011-07-07  Eric Blake  <eblake@redhat.com>
31167         getopt: avoid compiler warning during configure
31168         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Avoid problems with
31169         assigning string literals to non-const pointer.
31171         getopt-gnu: avoid crash in glibc getopt
31172         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Detect the problem.
31173         * tests/test-getopt.h (test_getopt): Enhance test.
31174         * tests/test-getopt_long.h (test_getopt_long): Likewise.
31175         * doc/posix-functions/getopt.texi (getopt): Document it.
31176         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
31177         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
31178         Likewise.
31180 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
31182         getopt: handle W; without long options in getopt [BZ #12922]
31183         * lib/getopt.c (_getopt_internal_r): When "W;" is in short options
31184         but no long options are defined, just return 'W'.
31186 2011-07-07  Bruno Haible  <bruno@clisp.org>
31188         Avoid literal tabs.
31189         * m4/po,m4 (AM_PO_SUBDIRS, AM_POSTPROCESS_PO_MAKEFILE): Use a shell
31190         variable containing a tab instead of a literal tab.
31191         Reported by Jim Meyering.
31193 2011-07-07  Bruno Haible  <bruno@clisp.org>
31195         Comments.
31196         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Update comments about mingw.
31198 2011-07-06  Bruno Haible  <bruno@clisp.org>
31200         sys_select: Fix compilation error on mingw, introduced on 2011-06-30.
31201         * lib/sys_select.in.h: Don't include <sys/socket.h>. Instead, include
31202         <winsock2.h>.
31203         (rpl_fd_isset, FD_ISSET): New definitions, copied from
31204         lib/sys_socket.in.h.
31205         (close, gethostname): Hide declarations from <winsock2.h>.
31206         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
31207         listen, recv, send, recvfrom, sendto, setsockopt, shutdown): Likewise.
31208         * lib/sys_socket.in.h (close, gethostname): Tweak indentation.
31209         (select): Don't override if gnulib's <sys/select.h> was already
31210         included.
31211         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
31212         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
31213         setsockopt, shutdown, select): Tweak indentation.
31215 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
31217         * modules/pthread_sigmask (configure.ac): gl_SIGNAL_MODULE_INDICATOR
31218         and not gl_SYS_SELECT_MODULE_INDICATOR, fixing a typo exposed
31219         in an application that does not use the sys_select module.
31221 2011-07-06  Erik Faye-Lund  <kusmabite@gmail.com>
31223         poll: do not return 0 on timeout=-1
31224         * lib/poll.c: Loop with yield if no events occurred.
31226 2011-07-06  Eric Blake  <eblake@redhat.com>
31228         pthread_sigmask: always replace when not using pthread
31229         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Force sigprocmask
31230         replacement when using some threading other than pthread.  Fix
31231         logic bug.
31233 2011-07-06  Bruno Haible  <bruno@clisp.org>
31235         Comments.
31236         * m4/printf.m4: Update comments about mingw.
31238 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
31240         sys_select: define sigset_t more portably
31241         * lib/sys_select.in.h: Always include <sys/types.h>, since
31242         we now need sigset_t and mingw defines it there.
31243         Include <signal.h> before split inclusion guard, to avoid
31244         mishaps on Solaris, whose <signal.h> eventually includes us.
31245         * m4/signal_h.m4 (gl_SIGNAL_H): Require gl_CHECK_TYPE_SIGSET_T.
31246         (gl_CHECK_TYPE_SIGSET_T): New macro, most of the contents of
31247         which come from ...
31248         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
31249         gl_CHECK_TYPE_SIGSET_T.
31250         (gl_PREREQ_SIGPROCMASK): Now a no-op, since gl_CHECK_TYPE_SIGSET_T
31251         does the real work.
31252         * modules/sys_select (Depends-on): Add 'signal'.
31254         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Poison pselect.
31255         Suggested by Bruno Haible.
31257         pselect: Use pthread_sigmask, not sigprocmask.
31258         * lib/pselect.c (pselect): Use pthread_sigmask, as it supports
31259         multithreaded apps better than sigprocmask does.
31260         * modules/pselect (Depends-on): Depend on pthread_sigmask, not
31261         sigprocmask directly.
31263 2011-07-05  Paul Eggert  <eggert@cs.ucla.edu>
31265         * lib/pselect.c (pselect): Use plain name, without "rpl_".
31266         Don't #undef,  since we don't need any underlying pselect.
31267         * modules/pselect (configure.ac): Use our pselect.o if !HAVE_PSELECT.
31268         (Depends-on): Add select.
31269         (Link): Add $(LIBSOCKET).
31270         These changes suggested by Bruno Haible.
31272         pselect: document better
31273         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
31274         * doc/posix-functions/pselect.texi (pselect): Document new module.
31276         pthread_sigmask: new module
31277         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
31278         * doc/posix-functions/pthread_sigmask.texi: Document new module.
31279         * lib/signal.in.h (pthread_sigmask): Arrange for replacement.
31280         This is done only as a macro; I don't know how well that'll
31281         work for C++.  Move <sys/types.h> include before the include_next,
31282         to avoid mishap on Solaris.
31283         * m4/signal_h.m4 (gl_SIGNAL_H, gl_SIGNAL_H_DEFAULTS): Check for it.
31284         * modules/signal (Makefile.am): Substitute the check's results.
31285         * modules/pthread_sigmask, m4/pthread_sigmask.m4: New files.
31287         test-pselect: new module
31288         * modules/pselect-tests, tests/test-pselect.c: New files.
31289         * tests/test-select.c, tests/test-sys_select-c++.cc:
31290         If TEST_PSELECT is defined, test pselect instead of testing select.
31292         * tests/test-sys_select.c (sigset_t): Test for it, too.
31293         Suggested by Bruno Haible.
31295 2011-07-05  Eric Blake  <eblake@redhat.com>
31297         snprintf: guarantee %1$d, for libintl
31298         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require %1$d support.
31299         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
31300         * doc/posix-functions/snprintf.texi (snprintf): Update.
31301         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
31302         * tests/test-snprintf.c (main): Enhance test.
31303         * tests/test-vsnprintf.c (main): Likewise.
31305 2011-07-05  Jim Meyering  <meyering@redhat.com>
31307         maint: exempt stdio-read.c and stdio-write.c from the cppi check
31308         * Makefile (sc_cpp_indent_check): Exempt stdio-read.c and stdio-write.c
31309         per Bruno's request, to accommodate this idiom (no space after "#")
31310         even when the function is inside an #if block:
31311         char *
31312         gets (char *s)
31313         #undef gets
31314         {
31315           ...
31316         }
31318 2011-07-04  Jim Meyering  <meyering@redhat.com>
31320         maint: indent with spaces, not TABs, and add a rule to check this
31321         * tests/test-userspec.c: Indent with spaces, not TABs.
31322         * tests/test-argp.c: Likewise.
31323         * tests/test-c-stack2.sh: Likewise.
31324         * tests/test-parse-duration.sh: Likewise
31325         * m4/strtod.m4: Likewise.
31326         * m4/alloca.m4: Likewise.
31327         * m4/pselect.m4: Likewise.
31328         * Makefile (sc_prohibit_leading_TABs): Prohibit leading TABs.
31330 2011-07-03  Jim Meyering  <meyering@redhat.com>
31332         maint.mk: correct omissions in prohibit_argmatch_without_use check
31333         This rule would mistakenly report that argmatch.h is included without
31334         use even when both the argmatch and invalid_arg macro were used.
31335         * top/maint.mk (sc_prohibit_argmatch_without_use): Also detect uses
31336         of argmatch and invalid_arg.
31338 2011-07-03  Bruno Haible  <bruno@clisp.org>
31340         Comments about EINTR.
31341         * lib/safe-read.h: Explain the purpose of this module.
31342         * lib/safe-write.h: Likewise.
31343         * doc/posix-functions/read.texi: Mention EINTR and the 'safe-read'
31344         module.
31345         * doc/posix-functions/write.texi: Mention EINTR and the 'safe-write'
31346         module.
31347         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
31349 2011-06-30  Paul Eggert  <eggert@cs.ucla.edu>
31351         xnanosleep: Rewrite to use new dtotimespec module.
31352         It has the conversion code that used to be in xnanosleep.
31353         * lib/xnanosleep.c: Do not include limits.h, stdbool.h, stdio.h,
31354         assert.h, sys/types.h, or intprops.h.  Include timespec.h instead.
31355         (TIME_T_MAX): Remove.
31356         (xnanosleep): Rewrite in terms of dtotimespec.
31357         * modules/xnanosleep (Depends-on): Add dtotimespec.
31358         Remove intprops, stdbool.
31360         timespec-add, timespec-sub: new modules
31361         * lib/timespec.h (timespec_add, timespec_sub): New decls.
31362         * lib/timespec-add.c, lib/timespec-sub.c:
31363         * modules/timespec-add, modules/timespec-sub: New files.
31365         dtotimespec: new module
31366         * lib/timespec.h (dtotimespec): New decl.
31367         * lib/dtotimespec.c, modules/dtotimespec: New files.
31369         * lib/timespec.h (timespec_sign, timespectod): New inline functions.
31371         pselect: new module
31372         * lib/sys_select.in.h: Include <signal.h>, for 'sigset_t'.
31373         (pselect): New decls.
31374         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Require AC_C_RESTRICT,
31375         since the standard pselect decl uses 'restrict'.
31376         (gl_SYS_SELECT_H_DEFAULTS): Add defaults for GNULIB_PSELECT,
31377         HAVE_PSELECT, REPLACE_PSELECT.
31378         * modules/sys_select (sys/select.h): Substitute GNULIB_PSELECT,
31379         HAVE_PSELECT, REPLACE_PSELECT.
31380         * lib/pselect.c, m4/pselect.m4, modules/pselect: New files.
31382         sys_select: don't depend on sys_socket
31383         This is so that Emacs doesn't have to drag in m4/sockpfaf.m4 etc; see
31384         <http://lists.gnu.org/r/bug-gnulib/2011-06/msg00358.html>.
31385         This fix works on GNU and GNU-like platforms, but has not been tested
31386         on native Windows.
31387         * lib/sys_select.in.h: Include <sys/socket.h> only if native Windows.
31388         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Do not require
31389         gl_HEADER_SYS_SOCKET.
31390         * modules/sys_select (Files): Add m4/sys_socket_h.m4, for
31391         gl_PREREQ_SYS_H_WINSOCK2.
31393 2011-06-29  Eric Blake  <eblake@redhat.com>
31395         pipe2: fix C89 compile problem
31396         * lib/pipe2.c (pipe2): Avoid C99 array initialization.
31397         Reported by Bruno Haible.
31399         pipe, pipe2: don't corrupt fd on error
31400         * lib/pipe.c (pipe): Leave fd unchanged on error.
31401         * lib/pipe2.c (pipe2): Likewise.
31402         * doc/posix-functions/pipe.texi (pipe): Document cygwin issue.
31403         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
31405 2011-06-27  Paolo Bonzini  <bonzini@gnu.org>
31407         mmap-anon: do not use regular expressions inadvertently
31408         * m4/mmap-anon.m4: Remove trailing period from strings sought
31409         in the output.
31411 2011-06-25  Paul Eggert  <eggert@cs.ucla.edu>
31413         nanosleep: fix integer overflow problem
31414         * lib/nanosleep.c (my_usleep): Don't assume signed integer
31415         arithmetic wraps around on overflow.
31417         nanosleep: simplify carrying
31418         * lib/nanosleep.c (nanosleep): Use the requested tv_nsec for the
31419         first call to the underyling nanosleep, not for the last one.
31420         This doesn't fix any bugs, but it simplifies the computation of
31421         the remaining delay.  Found while auditing integer overflow issues.
31423         dup2: remove test for existence of fcntl
31424         * m4/dup2.m4 (gl_FUNC_DUP2): Use "#ifdef FD_CLOEXEC", not
31425         "#if HAVE_FCNTL", in the configure-time test program.
31426         This removes the need for the AC_CHECK_FUNCS_ONCE([fcntl]),
31427         and therefore speeds up "configure" a bit.  Found while
31428         adding the dup2 module to Emacs.
31430 2011-06-24  Eric Blake  <eblake@redhat.com>
31432         maint.mk: enhance useless header checks
31433         * top/maint.mk (_sc_header_without_use): Check both include
31434         styles.
31435         (sc_prohibit_assert_without_use)
31436         (sc_prohibit_close_stream_without_use)
31437         (sc_prohibit_getopt_without_use)
31438         (sc_prohibit_quotearg_without_use)
31439         (sc_prohibit_quote_without_use)
31440         (sc_prohibit_long_options_without_use)
31441         (sc_prohibit_inttostr_without_use)
31442         (sc_prohibit_ignore_value_without_use)
31443         (sc_prohibit_error_without_use, sc_prohibit_xalloc_without_use)
31444         (sc_prohibit_hash_without_use, sc_prohibit_cloexec_without_use)
31445         (sc_prohibit_posixver_without_use, sc_prohibit_same_without_use)
31446         (sc_prohibit_hash_pjw_without_use)
31447         (sc_prohibit_safe_read_without_use)
31448         (sc_prohibit_argmatch_without_use)
31449         (sc_prohibit_canonicalize_without_use)
31450         (sc_prohibit_root_dev_ino_without_use)
31451         (sc_prohibit_openat_without_use)
31452         (sc_prohibit_c_ctype_without_use)
31453         (sc_prohibit_signal_without_use)
31454         (sc_prohibit_stdio--_without_use)
31455         (sc_prohibit_stdio-safer_without_use)
31456         (sc_prohibit_strings_without_use)
31457         (sc_prohibit_intprops_without_use)
31458         (sc_prohibit_stddef_without_use)
31459         (sc_prohibit_xfreopen_without_use): Update clients.
31461 2011-06-24  Jim Meyering  <meyering@redhat.com>
31463         syntax-check: keep one maint.mk rule in sync with its header
31464         * Makefile (sc_check_sym_list): Add a rule to prevent a repeat
31465         of the bug Eric has just fixed, with today's commit 25e4c2ec.
31466         I prefer to avoid temporary files here, so use <(...), but that
31467         is not supported by /bin/sh, so...
31468         (SHELL): Define to /bin/bash.
31470 2011-06-24  Eric Blake  <eblake@redhat.com>
31472         maint.mk: update sc_prohibit_intprops_without_use
31473         * top/maint.mk (_intprops_names): Match recent changes.
31475 2011-06-24  Bruno Haible  <bruno@clisp.org>
31477         strerror-override: No-op tweak.
31478         * lib/strerror-override.h (strerror_override): Reorder conditions,
31479         for consistency with lib/strerror-override.c.
31481 2011-06-23  Eric Blake  <eblake@redhat.com>
31483         maint.mk: test further PATH_MAX issues
31484         * top/maint.mk (sc_prohibit_path_max_array): Rename...
31485         (sc_prohibit_path_max_allocation): ...and also test alloca.
31486         Suggested by Jim Meyering.
31488 2011-06-22  Eric Blake  <eblake@redhat.com>
31490         maint.mk: add syntax-check to avoid char[PATH_MAX]
31491         * top/maint.mk (sc_prohibit_path_max_array): New rule.
31493         stat: be robust to PATH_MAX definition
31494         * lib/stat.c (rpl_stat): Require reasonable PATH_MAX.
31495         * modules/stat (Depends-on): Add verify.
31497         link: work around IRIX bug
31498         * m4/link.m4 (gl_FUNC_LINK): Expose the bug.
31499         * lib/link.c (rpl_link): Work around it.
31500         * tests/test-link.h (test_link): Enhance test.
31501         * doc/posix-functions/link.texi (link): Document the bug.
31503         getopt: silence clang warning
31504         * lib/getopt.c (_getopt_internal_r): Avoid unlikely NULL
31505         dereference.
31506         Reported by Gustavo Martin Domato.
31508 2011-06-22  Jim Meyering  <meyering@redhat.com>
31510         bootstrap: do not insert a blank line into each .gitignore file
31511         * build-aux/bootstrap (sort_patterns): Filter out blank lines.
31513 2011-06-21  Eric Blake  <eblake@redhat.com>
31515         perror: test for output mismatch
31516         * m4/perror.m4 (gl_FUNC_PERROR): Add test, in order to replace
31517         perror on IRIX.
31519         strerror_r: fix OpenBSD behavior on out-of-range
31520         * lib/strerror_r.c (strerror_r): Always use maximal string.
31521         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
31523         strerror_r: fix OpenBSD behavior on 0
31524         * lib/strerror-override.c (strerror_override): Also override 0
31525         when needed.
31526         * lib/strerror-override.h (strerror_override): Likewise.
31527         * lib/strerror.c (strerror): Simplify, now that 0 override is done
31528         earlier.
31529         * lib/strerror_r.c (strerror_r): Likewise.
31530         * m4/strerror.m4 (gl_FUNC_STRERROR): Split detection of 0
31531         behavior...
31532         (gl_FUNC_STRERROR_0): ...into new macro.
31533         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Replace strerror_r if 0
31534         is overridden.
31535         (gl_FUNC_STRERROR_R_WORKS): Avoid extra tests if 0 is broken.
31536         * modules/strerror-override (Files): Add strerror.m4.
31537         (configure.ac): Also provide override for 0 when needed.
31538         * doc/posix-functions/strerror.texi (strerror): Document this.
31539         * doc/posix-functions/perror.texi (perror): Likewise.
31541         perror: adjust array size
31542         * modules/perror (Depends-on): Add strerror-override.
31543         * lib/perror.c (perror): Use it to avoid magic number.
31545         strerror-override: reduce size
31546         * lib/strerror-override.c (strerror_override): Use fewer lines.
31548 2011-06-20  Bruno Haible  <bruno@clisp.org>
31550         pathmax: Ensure correct value for PATH_MAX on HP-UX.
31551         * lib/pathmax.h (PATH_MAX) [HP-UX]: Define to 1024.
31553 2011-06-20  Paul Eggert  <eggert@cs.ucla.edu>
31555         alloca: port to compilers that can optimize like GCC 4.6.0
31556         * lib/alloca.c (find_stack_direction): New signature, taken from
31557         Autoconf git.  This works with GCC 4.6.0.  This code should never
31558         be used with GCC 4.6.0 itself, as GCC has alloca, but it might
31559         be used with other compilers that optimize as well as GCC 4.6.0 does.
31560         (alloca): Adjust to new signature.
31561         * m4/alloca.m4 (__AC_LIBOBJ_ALLOCA) [Autoconf version < 2.69]:
31562         New macro, which patches Autoconf in a similar way.
31564         c-stack: stop worrying about stack direction
31565         * lib/c-stack.c (find_stack_direction): Remove.
31566         (segv_handler): Don't worry about stack direction growth, as it's
31567         too much of a pain to configure this correctly, given how compilers
31568         are optimizing-away our stack-growth detection code.  Instead, assume
31569         that any access to just before or just after the stack is OK.
31570         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
31571         Don't require AC_FUNC_ALLOCA; no longer needed.
31573 2011-06-20  Eric Blake  <eblake@redhat.com>
31575         test-stat: don't allocate PATH_MAX bytes
31576         * tests/test-stat.h (test_stat_func): Don't stack-allocate a
31577         PATH_MAX-sized buffer.
31578         * modules/openat-tests (Depends-on): Add getcwd-lgpl, drop pathmax.
31579         * modules/stat-tests (Depends-on): Likewise.
31580         * tests/test-fstatat.c (includes): Drop pathmax.h.
31581         * tests/test-stat.c (includes): Likewise.
31582         Reported by Bruno Haible.
31584 2011-06-20  Bruno Haible  <bruno@clisp.org>
31586         float: Work around <float.h> bugs on FreeBSD/x86, AIX with GCC, IRIX.
31587         * lib/float.in.h: Add workarounds for FreeBSD/x86, AIX with GCC, IRIX.
31588         * lib/float.c: New file.
31589         * m4/float_h.m4 (gl_FLOAT_H): Also handle FreeBSD, AIX, IRIX. Set
31590         REPLACE_FLOAT_LDBL.
31591         * modules/float (Files): Add lib/float.c.
31592         (configure.ac): Invoke AC_LIBOBJ.
31593         * doc/posix-headers/float.texi: Mention problems on FreeBSD, AIX, IRIX.
31595 2011-06-20  Bruno Haible  <bruno@clisp.org>
31597         Tests for module 'float'.
31598         * modules/float-tests: New file.
31599         * tests/test-float.c: New file.
31601 2011-06-19  Bruno Haible  <bruno@clisp.org>
31603         isinf: Coding style.
31604         * lib/isinf.c: Use GNU coding style.
31606 2011-06-19  Bruno Haible  <bruno@clisp.org>
31608         linkat test: Avoid test failure on AIX 7.1.
31609         * tests/test-linkat.c (main): Allow EINVAL as alternate error value.
31610         * tests/test-link.h (test_link): Likewise.
31612 2011-06-19  Bruno Haible  <bruno@clisp.org>
31614         pread test: Avoid test failure on OpenBSD 4.9.
31615         * tests/test-pread.c (main): Allow EFBIG instead of EINBAL.
31617 2011-06-19  Bruno Haible  <bruno@clisp.org>
31619         sprintf-posix: Fix test failure on AIX 7.1.
31620         * m4/printf.m4 (gl_PRINTF_PRECISION): Test against AIX bug.
31621         * doc/posix-functions/dprintf.texi: Mention limited precision problem
31622         on AIX.
31623         * doc/posix-functions/fprintf.texi: Likewise.
31624         * doc/posix-functions/printf.texi: Likewise.
31625         * doc/posix-functions/snprintf.texi: Likewise.
31626         * doc/posix-functions/sprintf.texi: Likewise.
31627         * doc/posix-functions/vdprintf.texi: Likewise.
31628         * doc/posix-functions/vfprintf.texi: Likewise.
31629         * doc/posix-functions/vprintf.texi: Likewise.
31630         * doc/posix-functions/vsnprintf.texi: Likewise.
31631         * doc/posix-functions/vsprintf.texi: Likewise.
31633 2011-06-19  Bruno Haible  <bruno@clisp.org>
31635         roundl-ieee: Fix test failure on AIX 7.1.
31636         * m4/roundl.m4 (gl_FUNC_ROUNDL): Test also the sign of roundl (-0.3L).
31637         * doc/posix-functions/roundl.texi: Mention problem with negative
31638         arguments.
31640 2011-06-19  Bruno Haible  <bruno@clisp.org>
31642         round-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
31643         * modules/round-ieee (Depends-on): Add floor-ieee, ceil-ieee.
31644         * doc/posix-functions/round.texi: Mention problem with negative
31645         arguments.
31646         * doc/posix-functions/ceil.texi: Mention problem on OSF/1 5.1.
31648 2011-06-19  Bruno Haible  <bruno@clisp.org>
31650         roundf-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
31651         * m4/roundf.m4 (gl_FUNC_ROUNDF): Test also the sign of roundf (-0.3f).
31652         * modules/roundf-ieee (Depends-on): Add floorf-ieee, ceilf-ieee.
31653         * doc/posix-functions/roundf.texi: Mention problem with negative
31654         arguments.
31655         * doc/posix-functions/ceilf.texi: Mention problem on OSF/1 5.1.
31657 2011-06-19  Bruno Haible  <bruno@clisp.org>
31659         ceilf-ieee: Work around bug on MacOS X 10.5.
31660         * doc/posix-functions/ceilf.texi: Mention the MacOS X 10.5 problem.
31662         floor*-ieee, ceil*-ieee, trunc*-ieee, round*-ieee: More robust checks.
31663         * m4/floorf.m4 (gl_FUNC_FLOORF): In the test whether the function is
31664         IEEE compliant, avoid compiler optimizations.
31665         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
31666         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
31667         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
31668         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
31669         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
31670         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
31671         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
31672         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
31673         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
31674         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
31676 2011-06-19  Bruno Haible  <bruno@clisp.org>
31678         ceilf-ieee: Work around bug on AIX 7.1.
31679         * m4/ceilf.m4 (gl_FUNC_CEILF): Test also the sign of ceilf (-0.3f).
31680         * doc/posix-functions/ceilf.texi: Mention the AIX 7.1 problem.
31682 2011-06-19  Bruno Haible  <bruno@clisp.org>
31684         ceil-ieee: Work around bug on AIX 7.1.
31685         * m4/ceil.m4 (gl_FUNC_CEIL): Test also the sign of ceil (-0.3).
31686         * doc/posix-functions/ceil.texi: Mention the AIX 7.1 problem.
31688 2011-06-18  Bruno Haible  <bruno@clisp.org>
31690         fsync test: Avoid test failure on MacOS X and AIX.
31691         * tests/test-fsync.c (fsync): Allow ENOTSUP and EBADF instead of
31692         EINVAL.
31694 2011-06-18  Bruno Haible  <bruno@clisp.org>
31696         openat, fdopendir tests: Fix link errors.
31697         * modules/openat-tests (Depends-on): Add progname.
31698         * modules/fdopendir-tests (Depends-on): Likewise.
31699         * tests/test-fchownat.c: Include progname.h.
31700         (main): Call set_program_name.
31701         * tests/test-fstatat.c: Include progname.h.
31702         (main): Call set_program_name.
31703         * tests/test-mkdirat.c: Include progname.h.
31704         (main): Call set_program_name.
31705         * tests/test-openat.c: Include progname.h.
31706         (main): Call set_program_name.
31707         * tests/test-unlinkat.c: Include progname.h.
31708         (main): Call set_program_name.
31709         * tests/test-fdopendir.c: Include progname.h.
31710         (main): Call set_program_name.
31712 2011-06-18  Bruno Haible  <bruno@clisp.org>
31714         Doc update.
31715         * doc/posix-functions/pthread_attr_getstack.texi: Update info regarding
31716         HP-UX.
31717         * doc/posix-functions/pthread_attr_setstack.texi: Likewise.
31719 2011-06-18  Bruno Haible  <bruno@clisp.org>
31721         getcwd tests: Avoid compilation error on HP-UX 11.31.
31722         * modules/getcwd-tests (Depends-on): Add pathmax.
31723         * tests/test-getcwd.c: Include pathmax.h.
31725 2011-06-18  Bruno Haible  <bruno@clisp.org>
31727         isfinite, isinf: Fix link error on AIX 6 and 7.
31728         * m4/isfinite.m4 (gl_ISFINITE): When determining whether libm is
31729         needed, also test the macro with a 'float' argument.
31730         * m4/isinf.m4 (gl_ISINF): Likewise.
31732 2011-06-18  Bruno Haible  <bruno@clisp.org>
31734         getloadavg: Don't clobber LIBS. Regression from previous commit.
31735         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Move tests that use
31736         AC_CHECK_LIB from here...
31737         (gl_GETLOADAVG): ... to here, inside the experiment with LIBS.
31738         (gl_GETLOADAVG, gl_PREREQ_GETLOADAVG): Rename gl_have_func to
31739         gl_func_getloadavg_done.
31740         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
31742 2011-06-18  Bruno Haible  <bruno@clisp.org>
31744         clean-temp: Improve documentation.
31745         * lib/clean-temp.h: Explain better how to use this module.
31746         Reported by John Darrington <john@darrington.wattle.id.au>.
31748 2011-06-17  Bruno Haible  <bruno@clisp.org>
31750         pread, pwrite: Avoid cc warning on AIX.
31751         * lib/unistd.in.h (pread): Undefine before defining as a macro.
31752         (pwrite): Likewise.
31754 2011-06-17  Bruno Haible  <bruno@clisp.org>
31756         spawn-pipe tests: Fix link error.
31757         * tests/test-spawn-pipe-child.c: Undefine fprintf.
31758         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
31760 2011-06-17  Bruno Haible  <bruno@clisp.org>
31762         Tests: Remove unnecessary dependency.
31763         * modules/canonicalize-tests (Depends-on): Remove progname.
31764         * modules/chown-tests (Depends-on): Likewise.
31765         * modules/dirname-tests (Depends-on): Likewise.
31766         * modules/fdopendir-tests (Depends-on): Likewise.
31767         * modules/fdutimensat-tests (Depends-on): Likewise.
31768         * modules/hash-tests (Depends-on): Likewise.
31769         * modules/lchown-tests (Depends-on): Likewise.
31770         * modules/linkat-tests (Depends-on): Likewise.
31771         * modules/renameat-tests (Depends-on): Likewise.
31772         * modules/spawn-pipe-tests (Depends-on): Likewise.
31773         * modules/utimensat-tests (Depends-on): Likewise.
31775 2011-06-17  Bruno Haible  <bruno@clisp.org>
31777         spawn-pipe tests: Fix link error.
31778         * tests/test-spawn-pipe-child.c: Undefine fflush.
31780 2011-06-17  Bruno Haible  <bruno@clisp.org>
31782         Fix tests link errors.
31783         * modules/ceil-ieee-tests (Makefile.am): Use CEIL_LIBM, not FLOOR_LIBM.
31784         * modules/chown-tests (Makefile.am): Don't link test-chown with
31785         LIBINTL.
31786         * modules/lchown-tests (Makefile.am): Don't link test-lchown with
31787         LIBINTL.
31788         * modules/utimens-tests (Makefile.am): Don't link test-utimens with
31789         LIBINTL.
31790         * modules/futimens-tests (Makefile.am): Don't link test-futimens with
31791         LIBINTL.
31793 2011-06-16  Bruno Haible  <bruno@clisp.org>
31795         crypto/gc-sha1: Fix recent regression.
31796         * modules/crypto/gc-sha1 (configure.ac): Invoke AC_LIBOBJ here.
31797         * m4/gc-sha1.m4 (gl_GC_SHA1): Don't invoke gl_SHA1.
31799         crypto/gc-md5: Fix recent regression.
31800         * modules/crypto/gc-md5 (configure.ac): Invoke AC_LIBOBJ here.
31802         crypto/gc-md4: Fix recent regression.
31803         * modules/crypto/gc-md4 (configure.ac): Invoke AC_LIBOBJ here.
31804         * m4/md4.m4 (gl_MD4): Ensure the expansion is non-empty.
31806         crypto/gc-arctwo: Fix recent regression.
31807         * modules/crypto/gc-arctwo (configure.ac): Invoke AC_LIBOBJ here.
31808         * m4/arctwo.m4 (gl_ARCTWO): Ensure the expansion is non-empty.
31810         crypto/gc-rijndael: Fix recent regression.
31811         * modules/crypto/gc-rijndael (Files): Remove m4/rijndael.m4.
31812         (configure.ac): Invoke AC_LIBOBJ here.
31813         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Don't invoke gl_RIJNDAEL.
31814         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
31816         crypto/gc-hmac-sha1: Fix recent regression.
31817         * modules/crypto/gc-hmac-sha1 (Files): Remove m4/hmac-sha1.m4.
31818         (configure.ac): Invoke AC_LIBOBJ here.
31819         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Don't invoke gl_HMAC_SHA1.
31820         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
31822         crypto/gc-hmac-md5: Fix recent regression.
31823         * modules/crypto/gc-hmac-md5 (Files): Remove m4/hmac-md5.m4.
31824         (configure.ac): Invoke AC_LIBOBJ here.
31825         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Don't invoke gl_HMAC_MD5.
31826         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
31828         crypto/gc-des: Fix recent regression.
31829         * modules/crypto/gc-des (Files): Remove m4/des.m4.
31830         (configure.ac): Invoke AC_LIBOBJ here.
31831         * m4/gc-des.m4 (gl_GC_DES): Don't invoke gl_DES.
31832         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
31834         crypto/gc-arcfour: Fix recent regression.
31835         * modules/crypto/gc-arcfour (Files): Remove m4/arcfour.m4.
31836         (configure.ac): Invoke AC_LIBOBJ here.
31837         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Don't invoke gl_ARCFOUR.
31838         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
31840 2011-06-16  Paul Eggert  <eggert@cs.ucla.edu>
31842         * m4/lstat.m4 (gl_FUNC_LSTAT): Fix typo in prerequisite.
31843         After the 2011-05-21 change, this macro requires
31844         gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, not
31845         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
31847 2011-06-16  Bruno Haible  <bruno@clisp.org>
31849         fprintftime: Move AC_LIBOBJ invocations to module description.
31850         * m4/fprintftime.m4: Remove file.
31851         * modules/fprintftime (Files): Remove m4/fprintftime.m4.
31852         (configure.ac): Remove gl_FPRINTFTIME call.
31853         (Makefile.am): Augment lib_SOURCES.
31854         Reported by Jim Meyering.
31856 2011-06-16  Bruno Haible  <bruno@clisp.org>
31858         tmpfile-safer: Finish 2011-05-23 commit.
31859         * m4/stdio-safer.m4: Really remove file.
31860         Reported by Jim Meyering.
31862 2011-06-16  Bruno Haible  <bruno@clisp.org>
31864         syntax-check: Fix typo.
31865         * Makefile (allow_AC_LIBOBJ): Mention printf-posix-rpl.m4, not
31866         printf-posix.m4.
31867         Reported by Jim Meyering.
31869 2011-06-13  Jim Meyering  <meyering@redhat.com>
31871         syntax-check: add a rule to help enforce the no-AC_LIBOBJ-in-m4/ policy
31872         * Makefile (sc_prohibit_AC_LIBOBJ_in_m4): New rule.
31874 2011-05-23  Bruno Haible  <bruno@clisp.org>
31876         yesno: Move AC_LIBOBJ invocations to module description.
31877         * m4/yesno.m4 (gl_YESNO): Remove AC_LIBOBJ invocation.
31878         * modules/yesno (Makefile.am): Augment lib_SOURCES.
31880 2011-05-23  Bruno Haible  <bruno@clisp.org>
31882         xstrtol: Move AC_LIBOBJ invocations to module description.
31883         * m4/xstrtol.m4 (gl_XSTRTOL): Remove AC_LIBOBJ invocations.
31884         * modules/xstrtol (Makefile.am): Augment lib_SOURCES.
31886 2011-05-23  Bruno Haible  <bruno@clisp.org>
31888         xstrtold: Move AC_LIBOBJ invocations to module description.
31889         * m4/xstrtod.m4 (gl_XSTRTOLD): Remove AC_LIBOBJ invocation.
31890         * modules/xstrtold (Makefile.am): Augment lib_SOURCES.
31892 2011-05-23  Bruno Haible  <bruno@clisp.org>
31894         xstrtod: Move AC_LIBOBJ invocations to module description.
31895         * m4/xstrtod.m4 (gl_XSTRTOD): Remove AC_LIBOBJ invocation.
31896         * modules/xstrtod (Makefile.am): Augment lib_SOURCES.
31898 2011-05-23  Bruno Haible  <bruno@clisp.org>
31900         xnanosleep: Move AC_LIBOBJ invocations to module description.
31901         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove AC_LIBOBJ invocation.
31902         * modules/xnanosleep (Makefile.am): Augment lib_SOURCES.
31904 2011-05-23  Bruno Haible  <bruno@clisp.org>
31906         xgetcwd: Move AC_LIBOBJ invocations to module description.
31907         * m4/xgetcwd.m4 (gl_XGETCWD): Remove AC_LIBOBJ invocation.
31908         * modules/xgetcwd (Makefile.am): Augment lib_SOURCES.
31910 2011-05-23  Bruno Haible  <bruno@clisp.org>
31912         xalloc: Move AC_LIBOBJ invocations to module description.
31913         * m4/xalloc.m4 (gl_XALLOC): Remove AC_LIBOBJ invocation.
31914         * modules/xalloc (Makefile.am): Augment lib_SOURCES.
31916 2011-05-23  Bruno Haible  <bruno@clisp.org>
31918         write-any-file: Move AC_LIBOBJ invocations to module description.
31919         * m4/write-any-file.m4 (gl_WRITE_ANY_FILE): Remove AC_LIBOBJ
31920         invocation.
31921         * modules/write-any-file (Makefile.am): Augment lib_SOURCES.
31923 2011-05-23  Bruno Haible  <bruno@clisp.org>
31925         utimens: Move AC_LIBOBJ invocations to module description.
31926         * m4/utimens.m4 (gl_UTIMENS): Remove AC_LIBOBJ invocation.
31927         * modules/utimens (Makefile.am): Augment lib_SOURCES.
31929 2011-05-23  Bruno Haible  <bruno@clisp.org>
31931         utimecmp: Move AC_LIBOBJ invocations to module description.
31932         * m4/utimecmp.m4 (gl_UTIMECMP): Remove AC_LIBOBJ invocation.
31933         * modules/utimecmp (Makefile.am): Augment lib_SOURCES.
31935 2011-05-23  Bruno Haible  <bruno@clisp.org>
31937         userspec: Move AC_LIBOBJ invocations to module description.
31938         * m4/userspec.m4 (gl_USERSPEC): Remove AC_LIBOBJ invocation.
31939         * modules/userspec (Makefile.am): Augment lib_SOURCES.
31941 2011-05-23  Bruno Haible  <bruno@clisp.org>
31943         unlinkdir: Move AC_LIBOBJ invocations to module description.
31944         * m4/unlinkdir.m4 (gl_UNLINKDIR): Remove AC_LIBOBJ invocation.
31945         * modules/unlinkdir (Makefile.am): Augment lib_SOURCES.
31947 2011-05-23  Bruno Haible  <bruno@clisp.org>
31949         unistd-safer: Move AC_LIBOBJ invocations to module description.
31950         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Remove AC_LIBOBJ invocations.
31951         * modules/unistd-safer (Makefile.am): Augment lib_SOURCES.
31953 2011-05-23  Bruno Haible  <bruno@clisp.org>
31955         tempname: Move AC_LIBOBJ invocations to module description.
31956         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Remove AC_LIBOBJ invocation.
31957         * modules/tempname (Makefile.am): Augment lib_SOURCES.
31959 2011-05-23  Bruno Haible  <bruno@clisp.org>
31961         strftime: Move AC_LIBOBJ invocations to module description.
31962         * m4/strftime.m4 (gl_FUNC_STRFTIME): Remove AC_LIBOBJ invocation.
31963         * modules/strftime (Makefile.am): Augment lib_SOURCES.
31965 2011-05-23  Bruno Haible  <bruno@clisp.org>
31967         stdlib-safer: Move AC_LIBOBJ invocations to module description.
31968         * m4/stdlib-safer.m4: Remove file.
31969         * modules/stdlib-safer (Files): Remove m4/stdlib-safer.m4.
31970         (configure.ac): Remove gl_STDLIB_SAFER call.
31971         (Makefile.am): Augment lib_SOURCES.
31973 2011-05-23  Bruno Haible  <bruno@clisp.org>
31975         tmpfile-safer: Move AC_LIBOBJ invocations to module description.
31976         * m4/stdio-safer.m4: Remove file.
31977         * modules/tmpfile-safer (Files): Remove m4/stdio-safer.m4.
31978         (configure.ac): Remove gl_TMPFILE_SAFER call.
31979         (Makefile.am): Augment lib_SOURCES.
31981 2011-05-23  Bruno Haible  <bruno@clisp.org>
31983         popen-safer: Move AC_LIBOBJ invocations to module description.
31984         * m4/stdio-safer.m4 (gl_POPEN_SAFER): Remove macro.
31985         * modules/popen-safer (Files): Remove m4/stdio-safer.m4.
31986         (configure.ac): Remove gl_POPEN_SAFER call.
31987         (Makefile.am): Augment lib_SOURCES.
31989 2011-05-23  Bruno Haible  <bruno@clisp.org>
31991         freopen-safer: Move AC_LIBOBJ invocations to module description.
31992         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): Remove macro.
31993         * modules/freopen-safer (Files): Remove m4/stdio-safer.m4.
31994         (configure.ac): Remove gl_FREOPEN_SAFER call.
31995         (Makefile.am): Augment lib_SOURCES.
31997 2011-05-23  Bruno Haible  <bruno@clisp.org>
31999         fopen-safer: Move AC_LIBOBJ invocations to module description.
32000         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove macro.
32001         * modules/fopen-safer (Files): Remove m4/stdio-safer.m4.
32002         (configure.ac): Remove gl_FOPEN_SAFER call.
32003         (Makefile.am): Augment lib_SOURCES.
32005 2011-05-23  Bruno Haible  <bruno@clisp.org>
32007         crypto/sha512: Move AC_LIBOBJ invocations to module description.
32008         * m4/sha512.m4 (gl_SHA512): Remove AC_LIBOBJ invocation.
32009         * modules/crypto/sha512 (Makefile.am): Augment lib_SOURCES.
32011 2011-05-23  Bruno Haible  <bruno@clisp.org>
32013         crypto/sha256: Move AC_LIBOBJ invocations to module description.
32014         * m4/sha256.m4 (gl_SHA256): Remove AC_LIBOBJ invocation.
32015         * modules/crypto/sha256 (Makefile.am): Augment lib_SOURCES.
32017 2011-05-23  Bruno Haible  <bruno@clisp.org>
32019         crypto/sha1: Move AC_LIBOBJ invocations to module description.
32020         * m4/sha1.m4 (gl_SHA1): Remove AC_LIBOBJ invocation.
32021         * modules/crypto/sha1 (Makefile.am): Augment lib_SOURCES.
32023 2011-05-23  Bruno Haible  <bruno@clisp.org>
32025         settime: Move AC_LIBOBJ invocations to module description.
32026         * m4/settime.m4 (gl_SETTIME): Remove AC_LIBOBJ invocation.
32027         * modules/settime (Makefile.am): Augment lib_SOURCES.
32029 2011-05-23  Bruno Haible  <bruno@clisp.org>
32031         savedir: Move AC_LIBOBJ invocations to module description.
32032         * m4/savedir.m4 (gl_SAVEDIR): Remove AC_LIBOBJ invocation.
32033         * modules/savedir (Makefile.am): Augment lib_SOURCES.
32035 2011-05-23  Bruno Haible  <bruno@clisp.org>
32037         save-cwd: Move AC_LIBOBJ invocations to module description.
32038         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove AC_LIBOBJ invocation.
32039         * modules/save-cwd (Makefile.am): Augment lib_SOURCES.
32041 2011-05-23  Bruno Haible  <bruno@clisp.org>
32043         same: Move AC_LIBOBJ invocations to module description.
32044         * m4/same.m4 (gl_SAME): Remove AC_LIBOBJ invocation.
32045         * modules/same (Makefile.am): Augment lib_SOURCES.
32047 2011-05-23  Bruno Haible  <bruno@clisp.org>
32049         safe-write: Move AC_LIBOBJ invocations to module description.
32050         * m4/safe-write.m4 (gl_SAFE_WRITE): Remove macro.
32051         * modules/safe-write (configure.ac): Invoke gl_PREREQ_SAFE_WRITE
32052         instead of gl_SAFE_WRITE.
32053         (Makefile.am): Augment lib_SOURCES.
32055 2011-05-23  Bruno Haible  <bruno@clisp.org>
32057         safe-read: Move AC_LIBOBJ invocations to module description.
32058         * m4/safe-read.m4 (gl_SAFE_READ): Remove macro.
32059         * modules/safe-read (configure.ac): Invoke gl_PREREQ_SAFE_READ instead
32060         of gl_SAFE_READ.
32061         (Makefile.am): Augment lib_SOURCES.
32063 2011-05-23  Bruno Haible  <bruno@clisp.org>
32065         safe-alloc: Move AC_LIBOBJ invocations to module description.
32066         * m4/safe-alloc.m4 (gl_SAFE_ALLOC): Remove AC_LIBOBJ invocation.
32067         * modules/safe-alloc (Makefile.am): Augment lib_SOURCES.
32069 2011-05-23  Bruno Haible  <bruno@clisp.org>
32071         crypto/rijndael: Move AC_LIBOBJ invocations to module description.
32072         * m4/rijndael.m4: Remove file.
32073         * modules/crypto/rijndael (Files): Remove it.
32074         (configure.ac): Remove gl_RIJNDAEL call.
32075         (Makefile.am): Augment lib_SOURCES.
32077 2011-05-23  Bruno Haible  <bruno@clisp.org>
32079         readtokens: Move AC_LIBOBJ invocations to module description.
32080         * m4/readtokens.m4 (gl_READTOKENS): Remove AC_LIBOBJ invocation.
32081         * modules/readtokens (Makefile.am): Augment lib_SOURCES.
32083 2011-05-23  Bruno Haible  <bruno@clisp.org>
32085         read-file: Move AC_LIBOBJ invocations to module description.
32086         * m4/read-file.m4 (gl_FUNC_READ_FILE): Remove macro.
32087         * modules/read-file (configure.ac): Invoke gl_PREREQ_READ_FILE instead
32088         of gl_FUNC_READ_FILE.
32089         (Makefile.am): Augment lib_SOURCES.
32091 2011-05-23  Bruno Haible  <bruno@clisp.org>
32093         quotearg: Move AC_LIBOBJ invocations to module description.
32094         * m4/quotearg.m4 (gl_QUOTEARG): Remove AC_LIBOBJ invocation.
32095         * modules/quotearg (Makefile.am): Augment lib_SOURCES.
32097 2011-05-23  Bruno Haible  <bruno@clisp.org>
32099         quote: Move AC_LIBOBJ invocations to module description.
32100         * m4/quote.m4 (gl_QUOTE): Remove AC_LIBOBJ invocation.
32101         * modules/quote (Makefile.am): Augment lib_SOURCES.
32103 2011-05-23  Bruno Haible  <bruno@clisp.org>
32105         posixver: Move AC_LIBOBJ invocations to module description.
32106         * m4/posixver.m4 (gl_POSIXVER): Remove AC_LIBOBJ invocation.
32107         * modules/posixver (Makefile.am): Augment lib_SOURCES.
32109 2011-05-23  Bruno Haible  <bruno@clisp.org>
32111         posixtm: Move AC_LIBOBJ invocations to module description.
32112         * m4/posixtm.m4 (gl_POSIXTM): Remove AC_LIBOBJ invocation.
32113         * modules/posixtm (Makefile.am): Augment lib_SOURCES.
32115 2011-05-23  Bruno Haible  <bruno@clisp.org>
32117         physmem: Move AC_LIBOBJ invocations to module description.
32118         * m4/physmem.m4 (gl_PHYSMEM): Remove AC_LIBOBJ invocation.
32119         * modules/physmem (Makefile.am): Augment lib_SOURCES.
32121 2011-05-23  Bruno Haible  <bruno@clisp.org>
32123         pagealign_alloc: Move AC_LIBOBJ invocations to module description.
32124         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Remove AC_LIBOBJ
32125         invocation.
32126         * modules/pagealign_alloc (Makefile.am): Augment lib_SOURCES.
32128 2011-05-23  Bruno Haible  <bruno@clisp.org>
32130         mpsort: Move AC_LIBOBJ invocations to module description.
32131         * m4/mpsort.m4 (gl_MPSORT): Remove AC_LIBOBJ invocation.
32132         * modules/mpsort (Makefile.am): Augment lib_SOURCES.
32134 2011-05-23  Bruno Haible  <bruno@clisp.org>
32136         modechange: Move AC_LIBOBJ invocations to module description.
32137         * m4/modechange.m4 (gl_MODECHANGE): Remove AC_LIBOBJ invocation.
32138         * modules/modechange (Makefile.am): Augment lib_SOURCES.
32140 2011-05-23  Bruno Haible  <bruno@clisp.org>
32142         mkdir-p: Move AC_LIBOBJ invocations to module description.
32143         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Remove AC_LIBOBJ invocations.
32144         * modules/mkdir-p (Makefile.am): Augment lib_SOURCES.
32146 2011-05-23  Bruno Haible  <bruno@clisp.org>
32148         mkancesdirs: Move AC_LIBOBJ invocations to module description.
32149         * m4/mkancesdirs.m4 (gl_MKANCESDIRS): Remove AC_LIBOBJ invocation.
32150         * modules/mkancesdirs (Makefile.am): Augment lib_SOURCES.
32152 2011-05-23  Bruno Haible  <bruno@clisp.org>
32154         mgetgroups: Move AC_LIBOBJ invocations to module description.
32155         * m4/mgetgroups.m4 (gl_MGETGROUPS): Remove AC_LIBOBJ invocation.
32156         * modules/mgetgroups (Makefile.am): Augment lib_SOURCES.
32158 2011-05-23  Bruno Haible  <bruno@clisp.org>
32160         memxor: Move AC_LIBOBJ invocations to module description.
32161         * m4/memxor.m4 (gl_MEMXOR): Remove AC_LIBOBJ invocation.
32162         * modules/memxor (Makefile.am): Augment lib_SOURCES.
32164 2011-05-23  Bruno Haible  <bruno@clisp.org>
32166         memcoll: Move AC_LIBOBJ invocations to module description.
32167         * m4/memcoll.m4 (gl_MEMCOLL): Remove AC_LIBOBJ invocation.
32168         * modules/memcoll (Makefile.am): Augment lib_SOURCES.
32170 2011-05-23  Bruno Haible  <bruno@clisp.org>
32172         memcasecmp: Move AC_LIBOBJ invocations to module description.
32173         * m4/memcasecmp.m4 (gl_MEMCASECMP): Remove AC_LIBOBJ invocation.
32174         * modules/memcasecmp (Makefile.am): Augment lib_SOURCES.
32176 2011-05-23  Bruno Haible  <bruno@clisp.org>
32178         crypto/md5: Move AC_LIBOBJ invocations to module description.
32179         * m4/md5.m4 (gl_MD5): Remove AC_LIBOBJ invocation.
32180         * modules/crypto/md5 (Makefile.am): Augment lib_SOURCES.
32182 2011-05-23  Bruno Haible  <bruno@clisp.org>
32184         crypto/md4: Move AC_LIBOBJ invocations to module description.
32185         * m4/md4.m4 (gl_MD4): Remove AC_LIBOBJ invocation.
32186         * modules/crypto/md4 (Makefile.am): Augment lib_SOURCES.
32188 2011-05-23  Bruno Haible  <bruno@clisp.org>
32190         crypto/md2: Move AC_LIBOBJ invocations to module description.
32191         * m4/md2.m4: Remove file.
32192         * modules/crypto/md2 (Files): Remove it.
32193         (configure.ac): Remove gl_MD2 call.
32194         (Makefile.am): Augment lib_SOURCES.
32196 2011-05-23  Bruno Haible  <bruno@clisp.org>
32198         long-options: Move AC_LIBOBJ invocations to module description.
32199         * m4/long-options.m4: Remove file.
32200         * modules/long-options (Files): Remove it.
32201         (configure.ac): Remove gl_LONG_OPTIONS call.
32202         (Makefile.am): Augment lib_SOURCES.
32204 2011-05-23  Bruno Haible  <bruno@clisp.org>
32206         i-ring: Move AC_LIBOBJ invocations to module description.
32207         * m4/i-ring.m4 (gl_I_RING): Remove AC_LIBOBJ invocation.
32208         * modules/i-ring (Makefile.am): Augment lib_SOURCES.
32210 2011-05-23  Bruno Haible  <bruno@clisp.org>
32212         idcache: Move AC_LIBOBJ invocations to module description.
32213         * m4/idcache.m4 (gl_IDCACHE): Remove AC_LIBOBJ invocation.
32214         * modules/idcache (Makefile.am): Augment lib_SOURCES.
32216 2011-05-23  Bruno Haible  <bruno@clisp.org>
32218         human: Move AC_LIBOBJ invocations to module description.
32219         * m4/human.m4 (gl_HUMAN): Remove AC_LIBOBJ invocation.
32220         * modules/human (Makefile.am): Augment lib_SOURCES.
32222 2011-05-23  Bruno Haible  <bruno@clisp.org>
32224         crypto/hmac-sha1: Move AC_LIBOBJ invocations to module description.
32225         * m4/hmac-sha1.m4: Remove file.
32226         * modules/crypto/hmac-sha1 (Files): Remove it.
32227         (configure.ac): Remove gl_HMAC_SHA1 call.
32228         (Makefile.am): Augment lib_SOURCES.
32230 2011-05-23  Bruno Haible  <bruno@clisp.org>
32232         crypto/hmac-md5: Move AC_LIBOBJ invocations to module description.
32233         * m4/hmac-md5.m4: Remove file.
32234         * modules/crypto/hmac-md5 (Files): Remove it.
32235         (configure.ac): Remove gl_HMAC_MD5 call.
32236         (Makefile.am): Augment lib_SOURCES.
32238 2011-05-23  Bruno Haible  <bruno@clisp.org>
32240         hash: Move AC_LIBOBJ invocations to module description.
32241         * m4/hash.m4: Remove file.
32242         * modules/hash (Files): Remove it.
32243         (configure.ac): Remove gl_HASH call.
32244         (Makefile.am): Augment lib_SOURCES.
32246 2011-05-23  Bruno Haible  <bruno@clisp.org>
32248         hard-locale: Move AC_LIBOBJ invocations to module description.
32249         * m4/hard-locale.m4 (gl_HARD_LOCALE): Remove AC_LIBOBJ invocation.
32250         * modules/hard-locale (Makefile.am): Augment lib_SOURCES.
32252 2011-05-23  Bruno Haible  <bruno@clisp.org>
32254         getugroups: Move AC_LIBOBJ invocations to module description.
32255         * m4/getugroups.m4 (gl_GETUGROUPS): Remove AC_LIBOBJ invocation.
32256         * modules/getugroups (Makefile.am): Augment lib_SOURCES.
32258 2011-05-23  Bruno Haible  <bruno@clisp.org>
32260         gettime: Move AC_LIBOBJ invocations to module description.
32261         * m4/gettime.m4 (gl_GETTIME): Remove AC_LIBOBJ invocation.
32262         * modules/gettime (Makefile.am): Augment lib_SOURCES.
32264 2011-05-23  Bruno Haible  <bruno@clisp.org>
32266         getndelim2: Move AC_LIBOBJ invocations to module description.
32267         * m4/getndelim2.m4 (gl_GETNDELIM2): Remove AC_LIBOBJ invocation.
32268         * modules/getndelim2 (Makefile.am): Augment lib_SOURCES.
32270 2011-05-23  Bruno Haible  <bruno@clisp.org>
32272         crypto/gc-pbkdf2-sha1: Move AC_LIBOBJ invocations to module description.
32273         * m4/gc-pbkdf2-sha1.m4: Remove file.
32274         * modules/crypto/gc-pbkdf2-sha1 (Files): Remove it.
32275         (configure.ac): Remove gl_GC_PBKDF2_SHA1 call.
32276         (Makefile.am): Augment lib_SOURCES.
32278 2011-05-23  Bruno Haible  <bruno@clisp.org>
32280         fts: Move AC_LIBOBJ invocations to module description.
32281         * m4/fts.m4 (gl_FUNC_FTS_CORE): Move AC_LIBOBJ invocation from here...
32282         * modules/fts (configure.ac): ... to here.
32284 2011-05-23  Bruno Haible  <bruno@clisp.org>
32286         file-type: Move AC_LIBOBJ invocations to module description.
32287         * m4/file-type.m4: Remove file.
32288         * modules/file-type (Files): Remove it.
32289         (configure.ac): Remove gl_FILE_TYPE call.
32290         (Makefile.am): Augment lib_SOURCES.
32292 2011-05-23  Bruno Haible  <bruno@clisp.org>
32294         filenamecat*: Respect rules for use of AC_LIBOBJ.
32295         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT, gl_FILE_NAME_CONCAT_LGPL):
32296         Remove AC_LIBOBJ invocation.
32297         * modules/filenamecat (Makefile.am): Augment lib_SOURCES.
32298         * modules/filenamecat-lgpl (Makefile.am): Augment lib_SOURCES.
32300 2011-05-23  Bruno Haible  <bruno@clisp.org>
32302         filemode: Move AC_LIBOBJ invocations to module description.
32303         * m4/filemode.m4 (gl_FILEMODE): Remove AC_LIBOBJ invocation.
32304         * modules/filemode (Makefile.am): Augment lib_SOURCES.
32306 2011-05-23  Bruno Haible  <bruno@clisp.org>
32308         openat-safer: Move AC_LIBOBJ invocations to module description.
32309         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): Remove AC_LIBOBJ invocation.
32310         * modules/openat-safer (Makefile.am): Augment lib_SOURCES.
32312 2011-05-23  Bruno Haible  <bruno@clisp.org>
32314         fcntl-safer: Move AC_LIBOBJ invocations to module description.
32315         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove AC_LIBOBJ invocations.
32316         * modules/fcntl-safer (Makefile.am): Augment lib_SOURCES.
32318 2011-05-23  Bruno Haible  <bruno@clisp.org>
32320         exclude: Move AC_LIBOBJ invocations to module description.
32321         * m4/exclude.m4: Remove file.
32322         * modules/exclude (Files): Remove it.
32323         (configure.ac): Remove gl_EXCLUDE call.
32324         (Makefile.am): Augment lib_SOURCES.
32326 2011-05-23  Bruno Haible  <bruno@clisp.org>
32328         dirname*: Respect rules for use of AC_LIBOBJ.
32329         * m4/dirname.m4 (gl_DIRNAME, gl_DIRNAME_LGPL): Remove AC_LIBOBJ
32330         invocations.
32331         * modules/dirname (Makefile.am): Augment lib_SOURCES.
32332         * modules/dirname-lgpl (Makefile.am): Augment lib_SOURCES.
32334 2011-05-23  Bruno Haible  <bruno@clisp.org>
32336         dirent-safer: Move AC_LIBOBJ invocations to module description.
32337         * m4/dirent-safer.m4 (gl_DIRENT_SAFER): Remove AC_LIBOBJ invocation.
32338         * modules/dirent-safer (Makefile.am): Augment lib_SOURCES.
32340 2011-05-23  Bruno Haible  <bruno@clisp.org>
32342         crypto/des: Move AC_LIBOBJ invocations to module description.
32343         * m4/des.m4: Remove file.
32344         * modules/crypto/des (Files): Remove it.
32345         (configure.ac): Remove gl_DES call.
32346         (Makefile.am): Augment lib_SOURCES.
32348 2011-05-23  Bruno Haible  <bruno@clisp.org>
32350         cycle-check: Move AC_LIBOBJ invocations to module description.
32351         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Remove AC_LIBOBJ invocation.
32352         * modules/cycle-check (Makefile.am): Augment lib_SOURCES.
32354 2011-05-23  Bruno Haible  <bruno@clisp.org>
32356         c-strtold: Move AC_LIBOBJ invocations to module description.
32357         * m4/c-strtod.m4 (gl_C_STRTOLD): Remove AC_LIBOBJ invocation.
32358         * modules/c-strtold (Makefile.am): Augment lib_SOURCES.
32360 2011-05-23  Bruno Haible  <bruno@clisp.org>
32362         c-strtod: Move AC_LIBOBJ invocations to module description.
32363         * m4/c-strtod.m4 (gl_C_STRTOD): Remove AC_LIBOBJ invocation.
32364         * modules/c-strtod (Makefile.am): Augment lib_SOURCES.
32366 2011-05-23  Bruno Haible  <bruno@clisp.org>
32368         crc: Move AC_LIBOBJ invocations to module description.
32369         * m4/crc.m4: Remove file.
32370         * modules/crc (Files): Remove it.
32371         (configure.ac): Remove gl_CRC call.
32372         (Makefile.am): Augment lib_SOURCES.
32374 2011-05-23  Bruno Haible  <bruno@clisp.org>
32376         close-stream: Move AC_LIBOBJ invocations to module description.
32377         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove AC_LIBOBJ invocation.
32378         * modules/close-stream (Makefile.am): Augment lib_SOURCES.
32380 2011-05-23  Bruno Haible  <bruno@clisp.org>
32382         closeout: Move AC_LIBOBJ invocations to module description.
32383         * m4/closeout.m4 (gl_CLOSEOUT): Remove AC_LIBOBJ invocation.
32384         * modules/closeout (Makefile.am): Augment lib_SOURCES.
32386 2011-05-23  Bruno Haible  <bruno@clisp.org>
32388         closein: Move AC_LIBOBJ invocations to module description.
32389         * m4/closein.m4 (gl_CLOSEIN): Remove AC_LIBOBJ invocation.
32390         * modules/closein (Makefile.am): Augment lib_SOURCES.
32392 2011-05-23  Bruno Haible  <bruno@clisp.org>
32394         cloexec: Move AC_LIBOBJ invocations to module description.
32395         * m4/cloexec.m4: Remove file.
32396         * modules/cloexec (Files): Remove it.
32397         (configure.ac): Remove gl_CLOEXEC call.
32398         (Makefile.am): Augment lib_SOURCES.
32400 2011-05-23  Bruno Haible  <bruno@clisp.org>
32402         check-version: Move AC_LIBOBJ invocations to module description.
32403         * m4/check-version.m4: Remove file.
32404         * modules/check-version (Files): Remove it.
32405         (configure.ac): Remove gl_CHECK_VERSION call.
32406         (Makefile.am): Augment lib_SOURCES.
32408 2011-05-23  Bruno Haible  <bruno@clisp.org>
32410         chdir-safer: Move AC_LIBOBJ invocations to module description.
32411         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Remove AC_LIBOBJ invocation.
32412         * modules/chdir-safer (Makefile.am): Augment lib_SOURCES.
32414 2011-05-23  Bruno Haible  <bruno@clisp.org>
32416         canonicalize: Move AC_LIBOBJ invocations to module description.
32417         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Remove
32418         AC_LIBOBJ invocation.
32419         * modules/canonicalize (Makefile.am): Augment lib_SOURCES.
32421 2011-05-23  Bruno Haible  <bruno@clisp.org>
32423         canon-host: Move AC_LIBOBJ invocations to module description.
32424         * m4/canon-host.m4 (gl_CANON_HOST): Remove macro.
32425         * modules/canon-host (configure.ac): Invoke gl_PREREQ_CANON_HOST
32426         instead of gl_CANON_HOST.
32427         (Makefile.am): Augment lib_SOURCES.
32429 2011-05-23  Bruno Haible  <bruno@clisp.org>
32431         backupfile: Move AC_LIBOBJ invocations to module description.
32432         * m4/backupfile.m4 (gl_BACKUPFILE): Remove AC_LIBOBJ invocation.
32433         * modules/backupfile (Makefile.am): Augment lib_SOURCES.
32435 2011-05-23  Bruno Haible  <bruno@clisp.org>
32437         argmatch: Move AC_LIBOBJ invocations to module description.
32438         * m4/argmatch.m4: Remove file.
32439         * modules/argmatch (Files): Remove it.
32440         (configure.ac): Remove gl_ARGMATCH call.
32441         (Makefile.am): Augment lib_SOURCES.
32443 2011-05-23  Bruno Haible  <bruno@clisp.org>
32445         crypto/arctwo: Move AC_LIBOBJ invocations to module description.
32446         * m4/arctwo.m4 (gl_ARCTWO): Remove AC_LIBOBJ invocation.
32447         * modules/crypto/arctwo (Makefile.am): Augment lib_SOURCES.
32449 2011-05-23  Bruno Haible  <bruno@clisp.org>
32451         crypto/arcfour: Move AC_LIBOBJ invocations to module description.
32452         * m4/arcfour.m4: Remove file.
32453         * modules/crypto/arcfour (Files): Remove it.
32454         (configure.ac): Remove gl_ARCFOUR call.
32455         (Makefile.am): Augment lib_SOURCES.
32457 2011-05-22  Bruno Haible  <bruno@clisp.org>
32459         write: Move AC_LIBOBJ invocations to module description.
32460         * m4/write.m4 (gl_FUNC_WRITE): Move AC_LIBOBJ invocation from here...
32461         * modules/write (configure.ac): ... to here.
32463 2011-05-22  Bruno Haible  <bruno@clisp.org>
32465         wmemset: Move AC_LIBOBJ invocations to module description.
32466         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Move AC_LIBOBJ invocation from
32467         here...
32468         * modules/wmemset (configure.ac): ... to here.
32470 2011-05-22  Bruno Haible  <bruno@clisp.org>
32472         wmemmove: Move AC_LIBOBJ invocations to module description.
32473         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Move AC_LIBOBJ invocation from
32474         here...
32475         * modules/wmemmove (configure.ac): ... to here.
32477 2011-05-22  Bruno Haible  <bruno@clisp.org>
32479         wmemcpy: Move AC_LIBOBJ invocations to module description.
32480         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Move AC_LIBOBJ invocation from
32481         here...
32482         * modules/wmemcpy (configure.ac): ... to here.
32484 2011-05-22  Bruno Haible  <bruno@clisp.org>
32486         wmemcmp: Move AC_LIBOBJ invocations to module description.
32487         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Move AC_LIBOBJ invocation from
32488         here...
32489         * modules/wmemcmp (configure.ac): ... to here.
32491 2011-05-22  Bruno Haible  <bruno@clisp.org>
32493         wmemchr: Move AC_LIBOBJ invocations to module description.
32494         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Move AC_LIBOBJ invocation from
32495         here...
32496         * modules/wmemchr (configure.ac): ... to here.
32498 2011-05-22  Bruno Haible  <bruno@clisp.org>
32500         wcswidth: Move AC_LIBOBJ invocations to module description.
32501         * m4/wcswidth.m4 (gl_FUNC_WCSWIDTH): Move AC_LIBOBJ invocation from
32502         here...
32503         * modules/wcswidth (configure.ac): ... to here.
32505 2011-05-22  Bruno Haible  <bruno@clisp.org>
32507         wcwidth: Respect rules for use of AC_LIBOBJ.
32508         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Set HAVE_WCWIDTH. Move AC_LIBOBJ
32509         invocation from here...
32510         * modules/wcwidth (configure.ac): ... to here.
32511         (Depends-on): Update conditions.
32513 2011-05-22  Bruno Haible  <bruno@clisp.org>
32515         wctype: Move AC_LIBOBJ invocations to module description.
32516         * m4/wctype.m4 (gl_FUNC_WCTYPE): Set HAVE_WCTYPE. Move AC_LIBOBJ
32517         invocation from here...
32518         * modules/wctype (configure.ac): ... to here.
32519         (Depends-on): Update conditions.
32521 2011-05-22  Bruno Haible  <bruno@clisp.org>
32523         wctrans: Move AC_LIBOBJ invocations to module description.
32524         * m4/wctrans.m4 (gl_FUNC_WCTRANS): Set HAVE_WCTRANS. Move AC_LIBOBJ
32525         invocation from here...
32526         * modules/wctrans (configure.ac): ... to here.
32528 2011-05-22  Bruno Haible  <bruno@clisp.org>
32530         wctomb: Move AC_LIBOBJ invocations to module description.
32531         * m4/wctomb.m4 (gl_FUNC_WCTOMB): Move AC_LIBOBJ and gl_PREREQ_WCTOMB
32532         invocations from here...
32533         * modules/wctomb (configure.ac): ... to here.
32535 2011-05-22  Bruno Haible  <bruno@clisp.org>
32537         wctob: Move AC_LIBOBJ invocations to module description.
32538         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_WCTOB. Move AC_LIBOBJ and
32539         gl_PREREQ_WCTOB invocations from here...
32540         * modules/wctob (configure.ac): ... to here.
32541         (Depends-on): Update conditions.
32543 2011-05-22  Bruno Haible  <bruno@clisp.org>
32545         wcsxfrm: Move AC_LIBOBJ invocations to module description.
32546         * m4/wcsxfrm.m4 (gl_FUNC_WCSXFRM): Move AC_LIBOBJ invocation from
32547         here...
32548         * modules/wcsxfrm (configure.ac): ... to here.
32550 2011-05-22  Bruno Haible  <bruno@clisp.org>
32552         wcstok: Move AC_LIBOBJ invocations to module description.
32553         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Move AC_LIBOBJ invocation from here...
32554         * modules/wcstok (configure.ac): ... to here.
32556 2011-05-22  Bruno Haible  <bruno@clisp.org>
32558         wcsstr: Move AC_LIBOBJ invocations to module description.
32559         * m4/wcsstr.m4 (gl_FUNC_WCSSTR): Move AC_LIBOBJ invocation from here...
32560         * modules/wcsstr (configure.ac): ... to here.
32562 2011-05-22  Bruno Haible  <bruno@clisp.org>
32564         wcsspn: Move AC_LIBOBJ invocations to module description.
32565         * m4/wcsspn.m4 (gl_FUNC_WCSSPN): Move AC_LIBOBJ invocation from here...
32566         * modules/wcsspn (configure.ac): ... to here.
32568 2011-05-22  Bruno Haible  <bruno@clisp.org>
32570         wcsrtombs: Move AC_LIBOBJ invocations to module description.
32571         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Move AC_LIBOBJ and
32572         gl_PREREQ_WCSRTOMBS invocations from here...
32573         * modules/wcsrtombs (configure.ac): ... to here.
32575 2011-05-22  Bruno Haible  <bruno@clisp.org>
32577         wcsrchr: Move AC_LIBOBJ invocations to module description.
32578         * m4/wcsrchr.m4 (gl_FUNC_WCSRCHR): Move AC_LIBOBJ invocation from
32579         here...
32580         * modules/wcsrchr (configure.ac): ... to here.
32582 2011-05-22  Bruno Haible  <bruno@clisp.org>
32584         wcspbrk: Move AC_LIBOBJ invocations to module description.
32585         * m4/wcspbrk.m4 (gl_FUNC_WCSPBRK): Move AC_LIBOBJ invocation from
32586         here...
32587         * modules/wcspbrk (configure.ac): ... to here.
32589 2011-05-22  Bruno Haible  <bruno@clisp.org>
32591         wcsnrtombs: Move AC_LIBOBJ invocations to module description.
32592         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): Move AC_LIBOBJ and
32593         gl_PREREQ_WCSNRTOMBS invocations from here...
32594         * modules/wcsnrtombs (configure.ac): ... to here.
32596 2011-05-22  Bruno Haible  <bruno@clisp.org>
32598         wcsnlen: Move AC_LIBOBJ invocations to module description.
32599         * m4/wcsnlen.m4 (gl_FUNC_WCSNLEN): Move AC_LIBOBJ invocation from
32600         here...
32601         * modules/wcsnlen (configure.ac): ... to here.
32603 2011-05-22  Bruno Haible  <bruno@clisp.org>
32605         wcsncpy: Move AC_LIBOBJ invocations to module description.
32606         * m4/wcsncpy.m4 (gl_FUNC_WCSNCPY): Move AC_LIBOBJ invocation from
32607         here...
32608         * modules/wcsncpy (configure.ac): ... to here.
32610 2011-05-22  Bruno Haible  <bruno@clisp.org>
32612         wcsncmp: Move AC_LIBOBJ invocations to module description.
32613         * m4/wcsncmp.m4 (gl_FUNC_WCSNCMP): Move AC_LIBOBJ invocation from
32614         here...
32615         * modules/wcsncmp (configure.ac): ... to here.
32617 2011-05-22  Bruno Haible  <bruno@clisp.org>
32619         wcsncat: Move AC_LIBOBJ invocations to module description.
32620         * m4/wcsncat.m4 (gl_FUNC_WCSNCAT): Move AC_LIBOBJ invocation from
32621         here...
32622         * modules/wcsncat (configure.ac): ... to here.
32624 2011-05-22  Bruno Haible  <bruno@clisp.org>
32626         wcsncasecmp: Move AC_LIBOBJ invocations to module description.
32627         * m4/wcsncasecmp.m4 (gl_FUNC_WCSNCASECMP): Move AC_LIBOBJ invocation
32628         from here...
32629         * modules/wcsncasecmp (configure.ac): ... to here.
32631 2011-05-22  Bruno Haible  <bruno@clisp.org>
32633         wcslen: Move AC_LIBOBJ invocations to module description.
32634         * m4/wcslen.m4 (gl_FUNC_WCSLEN): Move AC_LIBOBJ invocation from here...
32635         * modules/wcslen (configure.ac): ... to here.
32637 2011-05-22  Bruno Haible  <bruno@clisp.org>
32639         wcsdup: Move AC_LIBOBJ invocations to module description.
32640         * m4/wcsdup.m4 (gl_FUNC_WCSDUP): Move AC_LIBOBJ invocation from here...
32641         * modules/wcsdup (configure.ac): ... to here.
32643 2011-05-22  Bruno Haible  <bruno@clisp.org>
32645         wcscspn: Move AC_LIBOBJ invocations to module description.
32646         * m4/wcscspn.m4 (gl_FUNC_WCSCSPN): Move AC_LIBOBJ invocation from
32647         here...
32648         * modules/wcscspn (configure.ac): ... to here.
32650 2011-05-22  Bruno Haible  <bruno@clisp.org>
32652         wcscpy: Move AC_LIBOBJ invocations to module description.
32653         * m4/wcscpy.m4 (gl_FUNC_WCSCPY): Move AC_LIBOBJ invocation from here...
32654         * modules/wcscpy (configure.ac): ... to here.
32656 2011-05-22  Bruno Haible  <bruno@clisp.org>
32658         wcscoll: Move AC_LIBOBJ invocations to module description.
32659         * m4/wcscoll.m4 (gl_FUNC_WCSCOLL): Move AC_LIBOBJ invocation from
32660         here...
32661         * modules/wcscoll (configure.ac): ... to here.
32663 2011-05-22  Bruno Haible  <bruno@clisp.org>
32665         wcscmp: Move AC_LIBOBJ invocations to module description.
32666         * m4/wcscmp.m4 (gl_FUNC_WCSCMP): Move AC_LIBOBJ invocation from here...
32667         * modules/wcscmp (configure.ac): ... to here.
32669 2011-05-22  Bruno Haible  <bruno@clisp.org>
32671         wcschr: Move AC_LIBOBJ invocations to module description.
32672         * m4/wcschr.m4 (gl_FUNC_WCSCHR): Move AC_LIBOBJ invocation from here...
32673         * modules/wcschr (configure.ac): ... to here.
32675 2011-05-22  Bruno Haible  <bruno@clisp.org>
32677         wcscat: Move AC_LIBOBJ invocations to module description.
32678         * m4/wcscat.m4 (gl_FUNC_WCSCAT): Move AC_LIBOBJ invocation from here...
32679         * modules/wcscat (configure.ac): ... to here.
32681 2011-05-22  Bruno Haible  <bruno@clisp.org>
32683         wcscasecmp: Move AC_LIBOBJ invocations to module description.
32684         * m4/wcscasecmp.m4 (gl_FUNC_WCSCASECMP): Move AC_LIBOBJ invocation from
32685         here...
32686         * modules/wcscasecmp (configure.ac): ... to here.
32688 2011-05-22  Bruno Haible  <bruno@clisp.org>
32690         wcrtomb: Move AC_LIBOBJ invocations to module description.
32691         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Move AC_LIBOBJ and gl_PREREQ_WCRTOMB
32692         invocations from here...
32693         * modules/wcrtomb (configure.ac): ... to here.
32695 2011-05-22  Bruno Haible  <bruno@clisp.org>
32697         wcpncpy: Move AC_LIBOBJ invocations to module description.
32698         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Move AC_LIBOBJ invocation from
32699         here...
32700         * modules/wcpncpy (configure.ac): ... to here.
32702 2011-05-22  Bruno Haible  <bruno@clisp.org>
32704         wcpcpy: Move AC_LIBOBJ invocations to module description.
32705         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Move AC_LIBOBJ invocation from here...
32706         * modules/wcpcpy (configure.ac): ... to here.
32708 2011-05-22  Bruno Haible  <bruno@clisp.org>
32710         waitpid: Move AC_LIBOBJ invocations to module description.
32711         * m4/waitpid.m4 (gl_FUNC_WAITPID): Set HAVE_WAITPID. Move AC_LIBOBJ
32712         invocation from here...
32713         * modules/waitpid (configure.ac): ... to here.
32715 2011-05-22  Bruno Haible  <bruno@clisp.org>
32717         utimensat: Move AC_LIBOBJ invocations to module description.
32718         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Move AC_LIBOBJ invocations from
32719         here...
32720         * modules/utimensat (configure.ac): ... to here.
32722 2011-05-22  Bruno Haible  <bruno@clisp.org>
32724         usleep: Move AC_LIBOBJ invocations to module description.
32725         * m4/usleep.m4 (gl_FUNC_USLEEP): Move AC_LIBOBJ invocations from
32726         here...
32727         * modules/usleep (configure.ac): ... to here.
32729 2011-05-22  Bruno Haible  <bruno@clisp.org>
32731         unlockpt: Move AC_LIBOBJ invocations to module description.
32732         * m4/unlockpt.m4 (gl_FUNC_UNLOCKPT): Move AC_LIBOBJ and
32733         gl_PREREQ_UNLOCKPT invocations from here...
32734         * modules/unlockpt (configure.ac): ... to here.
32736 2011-05-22  Bruno Haible  <bruno@clisp.org>
32738         unlink: Respect rules for use of AC_LIBOBJ.
32739         * m4/unlink.m4 (gl_FUNC_UNLINK): Move AC_LIBOBJ invocation from here...
32740         * modules/unlink (configure.ac): ... to here.
32742 2011-05-22  Bruno Haible  <bruno@clisp.org>
32744         uname: Move AC_LIBOBJ invocations to module description.
32745         * m4/uname.m4 (gl_FUNC_UNAME): Call AC_CHECK_FUNCS instead of
32746         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_UNAME invocations from
32747         here...
32748         * modules/uname (configure.ac): ... to here.
32750 2011-05-22  Bruno Haible  <bruno@clisp.org>
32752         ttyname_r: Move AC_LIBOBJ invocations to module description.
32753         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Move AC_LIBOBJ and
32754         gl_PREREQ_TTYNAME_R invocations from here...
32755         * modules/ttyname_r (configure.ac): ... to here.
32757 2011-05-22  Bruno Haible  <bruno@clisp.org>
32759         tsearch: Move AC_LIBOBJ invocations to module description.
32760         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Move AC_LIBOBJ and gl_PREREQ_TSEARCH
32761         invocations from here...
32762         * modules/tsearch (configure.ac): ... to here.
32764 2011-05-22  Bruno Haible  <bruno@clisp.org>
32766         towctrans: Move AC_LIBOBJ invocations to module description.
32767         * m4/towctrans.m4 (gl_FUNC_TOWCTRANS): Set HAVE_TOWCTRANS. Move
32768         AC_LIBOBJ invocation from here...
32769         * modules/towctrans (configure.ac): ... to here.
32771 2011-05-22  Bruno Haible  <bruno@clisp.org>
32773         tmpfile: Move AC_LIBOBJ invocations to module description.
32774         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Move AC_LIBOBJ and gl_PREREQ_TMPFILE
32775         invocations from here...
32776         * modules/tmpfile (configure.ac): ... to here.
32778 2011-05-22  Bruno Haible  <bruno@clisp.org>
32780         times: Move AC_LIBOBJ invocations to module description.
32781         * m4/times.m4 (gl_FUNC_TIMES): Move AC_LIBOBJ invocation from here...
32782         * modules/times (configure.ac): ... to here.
32784 2011-05-22  Bruno Haible  <bruno@clisp.org>
32786         time_r: Move AC_LIBOBJ invocations to module description.
32787         * m4/time_r.m4 (gl_TIME_R): Move AC_LIBOBJ and gl_PREREQ_TIME_R
32788         invocations from here...
32789         * modules/time_r (configure.ac): ... to here.
32791 2011-05-22  Bruno Haible  <bruno@clisp.org>
32793         timegm: Move AC_LIBOBJ invocations to module description.
32794         * m4/timegm.m4 (gl_FUNC_TIMEGM): Move AC_LIBOBJ and gl_PREREQ_TIMEGM
32795         invocations from here...
32796         * modules/timegm (configure.ac): ... to here.
32798 2011-05-22  Bruno Haible  <bruno@clisp.org>
32800         tcgetsid: Move AC_LIBOBJ invocations to module description.
32801         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Set HAVE_TCGETSID. Move AC_LIBOBJ
32802         and gl_PREREQ_TCGETSID invocations from here...
32803         * modules/tcgetsid (configure.ac): ... to here.
32804         (Depends-on): Update conditions.
32806 2011-05-22  Bruno Haible  <bruno@clisp.org>
32808         symlinkat: Move AC_LIBOBJ invocations to module description.
32809         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move AC_LIBOBJ invocation from
32810         here...
32811         * modules/symlinkat (configure.ac): ... to here.
32813 2011-05-22  Bruno Haible  <bruno@clisp.org>
32815         symlink: Move AC_LIBOBJ invocations to module description.
32816         * m4/symlink.m4 (gl_FUNC_SYMLINK): Move AC_LIBOBJ invocations from
32817         here...
32818         * modules/symlink (configure.ac): ... to here.
32820 2011-05-22  Bruno Haible  <bruno@clisp.org>
32822         strverscmp: Move AC_LIBOBJ invocations to module description.
32823         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Call AC_CHECK_FUNCS instead of
32824         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRVERSCMP invocations
32825         from here...
32826         * modules/strverscmp (configure.ac): ... to here.
32828 2011-05-22  Bruno Haible  <bruno@clisp.org>
32830         strtok_r: Move AC_LIBOBJ invocations to module description.
32831         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_STRTOK_R. Move AC_LIBOBJ
32832         and gl_PREREQ_STRTOK_R invocations from here...
32833         * modules/strtok_r (configure.ac): ... to here.
32834         (Depends-on): Update conditions.
32836 2011-05-22  Bruno Haible  <bruno@clisp.org>
32838         strtoumax: Move AC_LIBOBJ invocations to module description.
32839         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Call AC_CHECK_FUNCS instead of
32840         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOUMAX invocations
32841         from here...
32842         * modules/strtoumax (configure.ac): ... to here.
32844 2011-05-22  Bruno Haible  <bruno@clisp.org>
32846         strtoimax: Move AC_LIBOBJ invocations to module description.
32847         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Call AC_CHECK_FUNCS instead of
32848         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOIMAX invocations
32849         from here...
32850         * modules/strtoimax (configure.ac): ... to here.
32852 2011-05-22  Bruno Haible  <bruno@clisp.org>
32854         strtoull: Move AC_LIBOBJ invocations to module description.
32855         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Call AC_CHECK_FUNCS instead of
32856         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOULL invocations
32857         from here...
32858         * modules/strtoull (configure.ac): ... to here.
32860 2011-05-22  Bruno Haible  <bruno@clisp.org>
32862         strtoll: Move AC_LIBOBJ invocations to module description.
32863         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Call AC_CHECK_FUNCS instead of
32864         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOLL invocations from
32865         here...
32866         * modules/strtoll (configure.ac): ... to here.
32868 2011-05-22  Bruno Haible  <bruno@clisp.org>
32870         strtoul: Move AC_LIBOBJ invocations to module description.
32871         * m4/strtoul.m4 (gl_FUNC_STRTOUL): Call AC_CHECK_FUNCS instead of
32872         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
32873         * modules/strtoul (configure.ac): ... to here.
32875 2011-05-22  Bruno Haible  <bruno@clisp.org>
32877         strtol: Move AC_LIBOBJ invocations to module description.
32878         * m4/strtol.m4 (gl_FUNC_STRTOL): Call AC_CHECK_FUNCS instead of
32879         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
32880         * modules/strtol (configure.ac): ... to here.
32882 2011-05-22  Bruno Haible  <bruno@clisp.org>
32884         strtod: Move AC_LIBOBJ invocations to module description.
32885         * m4/strtod.m4 (gl_FUNC_STRTOD): Move AC_LIBOBJ and gl_PREREQ_STRTOD
32886         invocations from here...
32887         * modules/strtod (configure.ac): ... to here.
32889 2011-05-22  Bruno Haible  <bruno@clisp.org>
32891         strstr*: Move AC_LIBOBJ invocations to module description.
32892         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Move AC_LIBOBJ
32893         invocations from here...
32894         * modules/strstr-simple (configure.ac): ... to here.
32895         * modules/strstr (configure.ac): ... and here.
32897 2011-05-22  Bruno Haible  <bruno@clisp.org>
32899         strsignal: Move AC_LIBOBJ invocations to module description.
32900         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Set HAVE_STRSIGNAL. Move
32901         AC_LIBOBJ and gl_PREREQ_STRSIGNAL invocations from here...
32902         * modules/strsignal (configure.ac): ... to here.
32903         (Depends-on): Update conditions.
32905 2011-05-22  Bruno Haible  <bruno@clisp.org>
32907         strsep: Move AC_LIBOBJ invocations to module description.
32908         * m4/strsep.m4 (gl_FUNC_STRSEP): Call AC_CHECK_FUNCS instead of
32909         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRSEP invocations from
32910         here...
32911         * modules/strsep (configure.ac): ... to here.
32913 2011-05-22  Bruno Haible  <bruno@clisp.org>
32915         strptime: Move AC_LIBOBJ invocations to module description.
32916         * m4/strptime.m4 (gl_FUNC_STRPTIME): Move AC_LIBOBJ and
32917         gl_PREREQ_STRPTIME invocations from here...
32918         * modules/strptime (configure.ac): ... to here.
32920 2011-05-22  Bruno Haible  <bruno@clisp.org>
32922         strpbrk: Move AC_LIBOBJ invocations to module description.
32923         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Call AC_CHECK_FUNCS instead of
32924         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRPBRK invocations from
32925         here...
32926         * modules/strpbrk (configure.ac): ... to here.
32928 2011-05-22  Bruno Haible  <bruno@clisp.org>
32930         strnlen: Move AC_LIBOBJ invocations to module description.
32931         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Move AC_LIBOBJ and gl_PREREQ_STRNLEN
32932         invocations from here...
32933         * modules/strnlen (configure.ac): ... to here.
32935 2011-05-22  Bruno Haible  <bruno@clisp.org>
32937         strndup: Move AC_LIBOBJ invocations to module description.
32938         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_STRNDUP. Move AC_LIBOBJ
32939         invocations from here...
32940         * modules/strndup (configure.ac): ... to here.
32941         (Depends-on): Update conditions.
32943 2011-05-22  Bruno Haible  <bruno@clisp.org>
32945         strncat: Move AC_LIBOBJ invocations to module description.
32946         * m4/strncat.m4 (gl_FUNC_STRNCAT): Move AC_LIBOBJ and gl_PREREQ_STRNCAT
32947         invocations from here...
32948         * modules/strncat (configure.ac): ... to here.
32950 2011-05-22  Bruno Haible  <bruno@clisp.org>
32952         strdup, strdup-posix: Move AC_LIBOBJ invocations to module description.
32953         * m4/strdup.m4 (gl_FUNC_STRDUP): Move AC_LIBOBJ and gl_PREREQ_STRDUP
32954         invocations from here...
32955         * modules/strdup (configure.ac): ... to here.
32956         * modules/strdup-posix (configure.ac): ... and here.
32958 2011-05-22  Bruno Haible  <bruno@clisp.org>
32960         strcspn: Move AC_LIBOBJ invocations to module description.
32961         * m4/strcspn.m4 (gl_FUNC_STRCSPN): Call AC_CHECK_FUNCS instead of
32962         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRCSPN invocations from
32963         here...
32964         * modules/strcspn (configure.ac): ... to here.
32966 2011-05-22  Bruno Haible  <bruno@clisp.org>
32968         strchrnul: Move AC_LIBOBJ invocations to module description.
32969         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Move AC_LIBOBJ and
32970         gl_PREREQ_STRCHRNUL invocations from here...
32971         * modules/strchrnul (configure.ac): ... to here.
32973 2011-05-22  Bruno Haible  <bruno@clisp.org>
32975         strcasestr*: Move AC_LIBOBJ invocations to module description.
32976         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
32977         Move AC_LIBOBJ and gl_PREREQ_STRCASESTR invocations from here...
32978         * modules/strcasestr-simple (configure.ac): ... to here.
32979         * modules/strcasestr (configure.ac): ... and here.
32981 2011-05-22  Bruno Haible  <bruno@clisp.org>
32983         strcase: Move AC_LIBOBJ invocations to module description.
32984         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Set HAVE_STRNCASECMP.
32985         (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Call AC_CHECK_FUNCS instead
32986         of AC_REPLACE_FUNCS. Move AC_LIBOBJ, gl_PREREQ_STRCASECMP,
32987         gl_PREREQ_STRNCASECMP invocations from here...
32988         * modules/strcase (configure.ac): ... to here.
32990 2011-05-22  Bruno Haible  <bruno@clisp.org>
32992         stpncpy: Move AC_LIBOBJ invocations to module description.
32993         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Move AC_LIBOBJ invocations from
32994         here...
32995         * modules/stpncpy (configure.ac): ... to here.
32997 2011-05-22  Bruno Haible  <bruno@clisp.org>
32999         stpcpy: Move AC_LIBOBJ invocations to module description.
33000         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Call AC_CHECK_FUNCS instead of
33001         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STPCPY invocations from
33002         here...
33003         * modules/stpcpy (configure.ac): ... to here.
33005 2011-05-21  Bruno Haible  <bruno@clisp.org>
33007         stat: Move AC_LIBOBJ invocations to module description.
33008         * m4/stat.m4 (gl_PREREQ_STAT): New macro, extracted from gl_FUNC_STAT.
33009         (gl_FUNC_STAT): Move AC_LIBOBJ and gl_PREREQ_STAT invocations from
33010         here...
33011         * modules/stat (configure.ac): ... to here.
33013 2011-05-21  Bruno Haible  <bruno@clisp.org>
33015         sleep: Move AC_LIBOBJ invocations to module description.
33016         * m4/sleep.m4 (gl_FUNC_SLEEP): Move AC_LIBOBJ invocations from here...
33017         * modules/sleep (configure.ac): ... to here.
33019 2011-05-21  Bruno Haible  <bruno@clisp.org>
33021         signbit: Move AC_LIBOBJ invocations to module description.
33022         * m4/signbit.m4 (gl_SIGNBIT): Move AC_LIBOBJ invocations from here...
33023         * modules/signbit (configure.ac): ... to here.
33025 2011-05-21  Bruno Haible  <bruno@clisp.org>
33027         sigprocmask: Move AC_LIBOBJ invocations to module description.
33028         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Move AC_LIBOBJ and
33029         gl_PREREQ_SIGPROMASK invocations from here...
33030         * modules/sigprocmask (configure.ac): ... to here.
33032 2011-05-21  Bruno Haible  <bruno@clisp.org>
33034         sigaction: Move AC_LIBOBJ invocations to module description.
33035         * m4/sigaction.m4 (gl_SIGACTION): Move AC_LIBOBJ and
33036         gl_PREREQ_SIGACTION invocations from here...
33037         * modules/sigaction (configure.ac): ... to here.
33039 2011-05-21  Bruno Haible  <bruno@clisp.org>
33041         sig2str: Move AC_LIBOBJ invocations to module description.
33042         * m4/sig2str.m4 (gl_FUNC_SIG2STR): Call AC_CHECK_FUNCS instead of
33043         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_SIG2STR invocations from
33044         here...
33045         * modules/sig2str (configure.ac): ... to here.
33047 2011-05-21  Bruno Haible  <bruno@clisp.org>
33049         setlocale: Move AC_LIBOBJ invocations to module description.
33050         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Move AC_LIBOBJ and
33051         gl_PREREQ_SETLOCALE invocations from here...
33052         * modules/setlocale (configure.ac): ... to here.
33054 2011-05-21  Bruno Haible  <bruno@clisp.org>
33056         unsetenv: Move AC_LIBOBJ invocations to module description.
33057         * m4/setenv.m4 (gl_FUNC_UNSETENV): Set HAVE_UNSETENV. Move AC_LIBOBJ
33058         and gl_PREREQ_UNSETENV invocations from here...
33059         * modules/unsetenv (configure.ac): ... to here.
33060         (Depends-on): Update.
33062 2011-05-21  Bruno Haible  <bruno@clisp.org>
33064         setenv: Move AC_LIBOBJ invocations to module description.
33065         * m4/setenv.m4 (gl_FUNC_SETENV): Move AC_LIBOBJ invocations from
33066         here...
33067         * modules/setenv (configure.ac): ... to here.
33069 2011-05-21  Bruno Haible  <bruno@clisp.org>
33071         selinux-h: Move AC_LIBOBJ invocations to module description.
33072         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Move
33073         AC_LIBOBJ invocation from here...
33074         * modules/selinux-h (configure.ac): ... to here.
33076 2011-05-21  Bruno Haible  <bruno@clisp.org>
33078         select: Respect rules for use of AC_LIBOBJ.
33079         * m4/select.m4 (gl_FUNC_SELECT): Move AC_LIBOBJ invocations from
33080         here...
33081         * modules/select (configure.ac): ... to here.
33083 2011-05-21  Bruno Haible  <bruno@clisp.org>
33085         scandir: Move AC_LIBOBJ invocations to module description.
33086         * m4/scandir.m4 (gl_FUNC_SCANDIR): Move AC_LIBOBJ and gl_PREREQ_SCANDIR
33087         invocations from here...
33088         * modules/scandir (configure.ac): ... to here.
33090 2011-05-21  Bruno Haible  <bruno@clisp.org>
33092         rpmatch: Move AC_LIBOBJ invocations to module description.
33093         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Call AC_CHECK_FUNCS instead of
33094         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RPMATCH invocations from
33095         here...
33096         * modules/rpmatch (configure.ac): ... to here.
33098 2011-05-21  Bruno Haible  <bruno@clisp.org>
33100         rmdir: Respect rules for use of AC_LIBOBJ.
33101         * m4/rmdir.m4 (gl_FUNC_RMDIR): Move AC_LIBOBJ invocation from here...
33102         * modules/rmdir (configure.ac): ... to here.
33104 2011-05-21  Bruno Haible  <bruno@clisp.org>
33106         renameat: Move AC_LIBOBJ invocations to module description.
33107         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Move AC_LIBOBJ invocations from
33108         here...
33109         * modules/renameat (configure.ac): ... to here.
33111 2011-05-21  Bruno Haible  <bruno@clisp.org>
33113         rename: Respect rules for use of AC_LIBOBJ.
33114         * m4/rename.m4 (gl_FUNC_RENAME): Move AC_LIBOBJ invocations from
33115         here...
33116         * modules/rename (configure.ac): ... to here.
33118 2011-05-21  Bruno Haible  <bruno@clisp.org>
33120         remove: Move AC_LIBOBJ invocations to module description.
33121         * m4/remove.m4 (gl_FUNC_REMOVE): Move AC_LIBOBJ invocations from
33122         here...
33123         * modules/remove (configure.ac): ... to here.
33125 2011-05-21  Bruno Haible  <bruno@clisp.org>
33127         relocatable-lib: Move AC_LIBOBJ invocations to module description.
33128         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_SEPARATE): Remove
33129         macro.
33130         (gl_RELOCATABLE_LIBRARY): Move AC_LIBOBJ invocation from here...
33131         * modules/relocatable-lib (configure.ac): ... to here.
33132         * modules/relocatable-prog-wrapper (configure.ac): Invoke
33133         gl_RELOCATABLE_LIBRARY instead of gl_RELOCATABLE_LIBRARY_SEPARATE.
33135 2011-05-21  Bruno Haible  <bruno@clisp.org>
33137         relocatable-prog: Move AC_LIBOBJ invocations to module description.
33138         * m4/relocatable.m4 (gl_RELOCATABLE): Move AC_LIBOBJ invocation from
33139         here...
33140         * modules/relocatable-prog (configure.ac): ... to here.
33142 2011-05-21  Bruno Haible  <bruno@clisp.org>
33144         regex: Move AC_LIBOBJ invocations to module description.
33145         * m4/regex.m4 (gl_REGEX): Move AC_LIBOBJ and gl_PREREQ_REGEX
33146         invocations from here...
33147         * modules/regex (configure.ac): ... to here.
33149 2011-05-21  Bruno Haible  <bruno@clisp.org>
33151         realloc-*: Move AC_LIBOBJ invocations to module description.
33152         * m4/realloc.m4 (gl_REPLACE_REALLOC): Remove macro.
33153         (gl_FUNC_REALLOC_GNU, gl_FUNC_REALLOC_POSIX): Inline it here. Move
33154         AC_LIBOBJ invocations from here...
33155         * modules/realloc-gnu (configure.ac): ... to here.
33156         * modules/realloc-posix (configure.ac): ... and here.
33158 2011-05-21  Bruno Haible  <bruno@clisp.org>
33160         readutmp: Move AC_LIBOBJ invocations to module description.
33161         * m4/readutmp.m4 (gl_READUTMP): Move AC_LIBOBJ invocation from here...
33162         * modules/readutmp (configure.ac): ... to here.
33164 2011-05-21  Bruno Haible  <bruno@clisp.org>
33166         readlinkat: Move AC_LIBOBJ invocations to module description.
33167         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Move AC_LIBOBJ invocation from
33168         here...
33169         * modules/readlinkat (configure.ac): ... to here.
33171 2011-05-21  Bruno Haible  <bruno@clisp.org>
33173         readlink: Move AC_LIBOBJ invocations to module description.
33174         * m4/readlink.m4 (gl_FUNC_READLINK): Move AC_LIBOBJ and
33175         gl_PREREQ_READLINK invocations from here...
33176         * modules/readlink (configure.ac): ... to here.
33178 2011-05-21  Bruno Haible  <bruno@clisp.org>
33180         readline: Move AC_LIBOBJ invocations to module description.
33181         * m4/readline.m4 (gl_FUNC_READLINE): Move AC_LIBOBJ and
33182         gl_PREREQ_READLINE invocations from here...
33183         * modules/readline (configure.ac): ... to here.
33185 2011-05-21  Bruno Haible  <bruno@clisp.org>
33187         read: Move AC_LIBOBJ invocations to module description.
33188         * m4/read.m4 (gl_FUNC_READ): Move AC_LIBOBJ invocation from here...
33189         * modules/read (configure.ac): ... to here.
33191 2011-05-21  Bruno Haible  <bruno@clisp.org>
33193         rawmemchr: Move AC_LIBOBJ invocations to module description.
33194         * m4/rawmemchr.m4 (gl_FUNC_RAWMEMCHR): Call AC_CHECK_FUNCS instead of
33195         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RAWMEMCHR invocations
33196         from here...
33197         * modules/rawmemchr (configure.ac): ... to here.
33199 2011-05-21  Bruno Haible  <bruno@clisp.org>
33201         random_r: Move AC_LIBOBJ invocations to module description.
33202         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move AC_LIBOBJ and
33203         gl_PREREQ_RANDOM_R invocations from here...
33204         * modules/random_r (configure.ac): ... to here.
33206 2011-05-21  Bruno Haible  <bruno@clisp.org>
33208         pwrite: Move AC_LIBOBJ invocations to module description.
33209         * m4/pwrite.m4 (gl_FUNC_PWRITE): Move AC_LIBOBJ invocation from here...
33210         * modules/pwrite (configure.ac): ... to here.
33212 2011-05-21  Bruno Haible  <bruno@clisp.org>
33214         putenv: Move AC_LIBOBJ invocations to module description.
33215         * m4/putenv.m4 (gl_FUNC_PUTENV): Move AC_LIBOBJ invocation from here...
33216         * modules/putenv (configure.ac): ... to here.
33218 2011-05-21  Bruno Haible  <bruno@clisp.org>
33220         login_tty: Move AC_LIBOBJ invocations to module description.
33221         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Move AC_LIBOBJ invocation from here...
33222         * modules/login_tty (configure.ac): ... to here.
33224 2011-05-21  Bruno Haible  <bruno@clisp.org>
33226         openpty: Move AC_LIBOBJ invocations to module description.
33227         * m4/pty.m4 (gl_FUNC_OPENPTY): Move AC_LIBOBJ invocations from here...
33228         * modules/openpty (configure.ac): ... to here.
33230 2011-05-21  Bruno Haible  <bruno@clisp.org>
33232         forkpty: Move AC_LIBOBJ invocations to module description.
33233         * m4/pty.m4 (gl_FUNC_FORKPTY): Move AC_LIBOBJ invocations from here...
33234         * modules/forkpty (configure.ac): ... to here.
33236 2011-05-21  Bruno Haible  <bruno@clisp.org>
33238         ptsname: Move AC_LIBOBJ invocations to module description.
33239         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Move AC_LIBOBJ and gl_PREREQ_PTSNAME
33240         invocations from here...
33241         * modules/ptsname (configure.ac): ... to here.
33243 2011-05-21  Bruno Haible  <bruno@clisp.org>
33245         pread: Move AC_LIBOBJ invocations to module description.
33246         * m4/pread.m4 (gl_FUNC_PREAD): Move AC_LIBOBJ invocation from here...
33247         * modules/pread (configure.ac): ... to here.
33249 2011-05-21  Bruno Haible  <bruno@clisp.org>
33251         posix_spawn*: Move AC_LIBOBJ invocations to module description.
33252         * m4/posix_spawn.m4 (gl_PREREQ_POSIX_SPAWN_INTERNAL): Renamed from
33253         gl_POSIX_SPAWN_INTERNAL. Move AC_LIBOBJ invocation from here...
33254         * modules/posix_spawn (configure.ac): ... to here.
33255         * modules/posix_spawnp (configure.ac): ... and here.
33257 2011-05-21  Bruno Haible  <bruno@clisp.org>
33259         popen: Move AC_LIBOBJ invocations to module description.
33260         * m4/popen.m4 (gl_FUNC_POPEN): Move AC_LIBOBJ and gl_PREREQ_POPEN
33261         invocations from here...
33262         * modules/popen (configure.ac): ... to here.
33264 2011-05-21  Bruno Haible  <bruno@clisp.org>
33266         poll: Move AC_LIBOBJ invocations to module description.
33267         * m4/poll.m4 (gl_FUNC_POLL): Move AC_LIBOBJ and gl_PREREQ_POLL
33268         invocations from here...
33269         * modules/poll (configure.ac): ... to here.
33271 2011-05-21  Bruno Haible  <bruno@clisp.org>
33273         pipe-posix: Move AC_LIBOBJ invocations to module description.
33274         * m4/pipe.m4 (gl_FUNC_PIPE): Move AC_LIBOBJ invocation from here...
33275         * modules/pipe-posix (configure.ac): ... to here.
33277 2011-05-21  Bruno Haible  <bruno@clisp.org>
33279         openat: Respect rules for use of AC_LIBOBJ.
33280         * m4/openat.m4 (gl_FUNC_OPENAT): Call AC_CHECK_FUNCS instead of
33281         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
33282         * modules/openat (configure.ac): ... to here.
33284 2011-05-21  Bruno Haible  <bruno@clisp.org>
33286         obstack-printf*: Move AC_LIBOBJ invocations to module description.
33287         * m4/obstack-printf.m4 (gl_REPLACE_OBSTACK_PRINTF): Move AC_LIBOBJ
33288         invocation from here...
33289         * modules/obstack-printf (configure.ac): ... to here.
33290         * modules/obstack-printf-posix (configure.ac): ... and here.
33292 2011-05-21  Bruno Haible  <bruno@clisp.org>
33294         nl_langinfo: Move AC_LIBOBJ invocations to module description.
33295         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Move AC_LIBOBJ invocations
33296         from here...
33297         * modules/nl_langinfo (configure.ac): ... to here.
33299 2011-05-21  Bruno Haible  <bruno@clisp.org>
33301         nanosleep: Move AC_LIBOBJ invocations to module description.
33302         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Move AC_LIBOBJ and
33303         gl_PREREQ_NANOSLEEP invocations from here...
33304         * modules/nanosleep (configure.ac): ... to here.
33306 2011-05-21  Bruno Haible  <bruno@clisp.org>
33308         mountlist: Move AC_LIBOBJ invocations to module description.
33309         * m4/mountlist.m4 (gl_MOUNTLIST): Move AC_LIBOBJ and
33310         gl_PREREQ_MOUNTLIST_EXTRA invocations from here...
33311         * modules/mountlist (configure.ac): ... to here.
33313 2011-05-21  Bruno Haible  <bruno@clisp.org>
33315         mktime: Respect rules for use of AC_LIBOBJ.
33316         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove macro.
33317         (gl_FUNC_MKTIME): Inline it here. Set gl_cv_func_working_mktime. Move
33318         AC_LIBOBJ and gl_PREREQ_MKTIME invocations from here...
33319         (gl_FUNC_MKTIME_INTERNAL): ... and here...
33320         * modules/mktime (configure.ac): ... to here.
33321         * modules/mktime-internal (configure.ac): ... and here.
33322         * m4/timegm.m4 (gl_FUNC_TIMEGM): Update.
33324 2011-05-21  Bruno Haible  <bruno@clisp.org>
33326         mkstemps: Move AC_LIBOBJ invocations to module description.
33327         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Move AC_LIBOBJ invocation from
33328         here...
33329         * modules/mkstemps (configure.ac): ... to here.
33331 2011-05-21  Bruno Haible  <bruno@clisp.org>
33333         mkstemp: Move AC_LIBOBJ invocations to module description.
33334         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Move AC_LIBOBJ and
33335         gl_PREREQ_MKSTEMP invocations from here...
33336         * modules/mkstemp (configure.ac): ... to here.
33338 2011-05-21  Bruno Haible  <bruno@clisp.org>
33340         mkostemps: Move AC_LIBOBJ invocations to module description.
33341         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Move AC_LIBOBJ invocation from
33342         here...
33343         * modules/mkostemps (configure.ac): ... to here.
33345 2011-05-21  Bruno Haible  <bruno@clisp.org>
33347         mkostemp: Move AC_LIBOBJ invocations to module description.
33348         * m4/mkostemp.m4 (gl_FUNC_MKOSTEMP): Move AC_LIBOBJ and
33349         gl_PREREQ_MKOSTEMP invocations from here...
33350         * modules/mkostemp (configure.ac): ... to here.
33352 2011-05-21  Bruno Haible  <bruno@clisp.org>
33354         mknod: Move AC_LIBOBJ invocations to module description.
33355         * m4/mknod.m4 (gl_FUNC_MKNOD): Move AC_LIBOBJ invocations from here...
33356         * modules/mknod (configure.ac): ... to here.
33358 2011-05-21  Bruno Haible  <bruno@clisp.org>
33360         mkfifoat: Move AC_LIBOBJ invocations to module description.
33361         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Move AC_LIBOBJ invocations from
33362         here...
33363         * modules/mkfifoat (configure.ac): ... to here.
33365 2011-05-21  Bruno Haible  <bruno@clisp.org>
33367         mkfifo: Respect rules for use of AC_LIBOBJ.
33368         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Move AC_LIBOBJ invocations from
33369         here...
33370         * modules/mkfifo (configure.ac): ... to here.
33372 2011-05-21  Bruno Haible  <bruno@clisp.org>
33374         mkdtemp: Move AC_LIBOBJ invocations to module description.
33375         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Move AC_LIBOBJ and gl_PREREQ_MKDTEMP
33376         invocations from here...
33377         * modules/mkdtemp (configure.ac): ... to here.
33379 2011-05-21  Bruno Haible  <bruno@clisp.org>
33381         mkdir: Move AC_LIBOBJ invocations to module description.
33382         * m4/mkdir.m4 (gl_FUNC_MKDIR): Move AC_LIBOBJ invocations from here...
33383         * modules/mkdir (configure.ac): ... to here.
33385 2011-05-21  Bruno Haible  <bruno@clisp.org>
33387         memset: Move AC_LIBOBJ invocations to module description.
33388         * m4/memset.m4 (gl_FUNC_MEMSET): Call AC_CHECK_FUNCS instead of
33389         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMSET invocations from
33390         here...
33391         * modules/memset (configure.ac): ... to here.
33393 2011-05-21  Bruno Haible  <bruno@clisp.org>
33395         memrchr: Move AC_LIBOBJ invocations to module description.
33396         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Call AC_CHECK_FUNCS instead of
33397         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMRCHR invocations from
33398         here...
33399         * modules/memrchr (configure.ac): ... to here.
33401 2011-05-21  Bruno Haible  <bruno@clisp.org>
33403         mempcpy: Move AC_LIBOBJ invocations to module description.
33404         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Call AC_CHECK_FUNCS instead of
33405         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMPCPY invocations from
33406         here...
33407         * modules/mempcpy (configure.ac): ... to here.
33409 2011-05-21  Bruno Haible  <bruno@clisp.org>
33411         memmove: Move AC_LIBOBJ invocations to module description.
33412         * m4/memmove.m4 (gl_FUNC_MEMMOVE): Call AC_CHECK_FUNCS instead of
33413         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMMOVE invocations from
33414         here...
33415         * modules/memmove (configure.ac): ... to here.
33417 2011-05-21  Bruno Haible  <bruno@clisp.org>
33419         memmem*: Move AC_LIBOBJ invocations to module description.
33420         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Call AC_CHECK_FUNCS instead of
33421         AC_REPLACE_FUNCS. Set HAVE_MEMMEM. Move AC_LIBOBJ invocations from
33422         here...
33423         (gl_FUNC_MEMMEM): ... and here...
33424         * modules/memmem-simple (configure.ac): ... to here.
33425         * modules/memmem (configure.ac): ... and here.
33427 2011-05-21  Bruno Haible  <bruno@clisp.org>
33429         memcpy: Move AC_LIBOBJ invocations to module description.
33430         * m4/memcpy.m4 (gl_FUNC_MEMCPY): Call AC_CHECK_FUNCS instead of
33431         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMCPY invocations from
33432         here...
33433         * modules/memcpy (configure.ac): ... to here.
33435 2011-05-21  Bruno Haible  <bruno@clisp.org>
33437         memcmp: Simplify autoconf macro.
33438         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Merge the cross-compilation code into
33439         the AC_RUN_IFELSE invocation. Set gl_func_memcmp.
33440         * modules/memcmp (Depends-on, configure.ac): Test gl_func_memcmp.
33442 2011-05-21  Bruno Haible  <bruno@clisp.org>
33444         memcmp: Move AC_LIBOBJ invocations to module description.
33445         * m4/memcmp.m4 (AC_FUNC_MEMCMP): Remove macro.
33446         (gl_FUNC_MEMCMP): Inline it here. Set gl_cv_func_memcmp_working. Move
33447         AC_LIBOBJ and gl_PREREQ_MEMCMP invocations from here...
33448         * modules/memcmp (configure.ac): ... to here.
33449         (Depends-on): Update conditions.
33451 2011-05-21  Bruno Haible  <bruno@clisp.org>
33453         memchr: Respect rules for use of AC_LIBOBJ.
33454         * m4/memchr.m4 (gl_FUNC_MEMCHR): Move AC_LIBOBJ and gl_PREREQ_MEMCHR
33455         invocations from here...
33456         * modules/memchr (configure.ac): ... to here.
33458 2011-05-21  Bruno Haible  <bruno@clisp.org>
33460         mbtowc: Move AC_LIBOBJ invocations to module description.
33461         * m4/mbtowc.m4 (gl_FUNC_MBTOWC): Move AC_LIBOBJ and gl_PREREQ_MBTOWC
33462         invocations from here...
33463         * modules/mbtowc (configure.ac): ... to here.
33465 2011-05-21  Bruno Haible  <bruno@clisp.org>
33467         mbsrtowcs: Move AC_LIBOBJ invocations to module description.
33468         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Move AC_LIBOBJ and
33469         gl_PREREQ_MBSRTOWCS invocations from here...
33470         * modules/mbsrtowcs (configure.ac): ... to here.
33472 2011-05-21  Bruno Haible  <bruno@clisp.org>
33474         mbsnrtowcs: Move AC_LIBOBJ invocations to module description.
33475         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): Move AC_LIBOBJ and
33476         gl_PREREQ_MBSNRTOWCS invocations from here...
33477         * modules/mbsnrtowcs (configure.ac): ... to here.
33479 2011-05-21  Bruno Haible  <bruno@clisp.org>
33481         mbsinit: Move AC_LIBOBJ invocations to module description.
33482         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Move AC_LIBOBJ and gl_PREREQ_MBSINIT
33483         invocations from here...
33484         * modules/mbsinit (configure.ac): ... to here.
33486 2011-05-21  Bruno Haible  <bruno@clisp.org>
33488         mbrlen: Move AC_LIBOBJ invocations to module description.
33489         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Move AC_LIBOBJ and gl_PREREQ_MBRLEN
33490         invocations from here...
33491         * modules/mbrlen (configure.ac): ... to here.
33493 2011-05-21  Bruno Haible  <bruno@clisp.org>
33495         mbrtowc: Respect rules for use of AC_LIBOBJ.
33496         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Move AC_LIBOBJ and gl_PREREQ_MBRTOWC
33497         invocations from here...
33498         * modules/mbrtowc (configure.ac): ... to here.
33500 2011-05-21  Bruno Haible  <bruno@clisp.org>
33502         malloc-*: Move AC_LIBOBJ invocations to module description.
33503         * m4/malloc.m4 (gl_REPLACE_MALLOC): Remove macro.
33504         (gl_FUNC_MALLOC_GNU, gl_FUNC_MALLOC_POSIX): Inline it here. Move
33505         AC_LIBOBJ invocations from here...
33506         * modules/malloc-gnu (configure.ac): ... to here.
33507         * modules/malloc-posix (configure.ac): ... and here.
33509 2011-05-21  Bruno Haible  <bruno@clisp.org>
33511         lstat, openat: Respect rules for use of AC_LIBOBJ.
33512         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Renamed from
33513         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK. Set variable
33514         gl_cv_func_lstat_dereferences_slashed_symlink. Don't invoke AC_LIBOBJ.
33515         (gl_PREREQ_LSTAT): New macro, extracted from gl_FUNC_LSTAT.
33516         (gl_FUNC_LSTAT): Update. Remove gl_PREREQ_LSTAT code.
33517         * modules/lstat (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_LSTAT
33518         here.
33519         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
33521 2011-05-21  Bruno Haible  <bruno@clisp.org>
33523         lseek: Move AC_LIBOBJ invocations to module description.
33524         * m4/lseek.m4 (gl_REPLACE_LSEEK): Remove macro.
33525         (gl_FUNC_LSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
33526         * modules/lseek (configure.ac): ... to here.
33528 2011-05-21  Bruno Haible  <bruno@clisp.org>
33530         linkat: Move AC_LIBOBJ invocations to module description.
33531         * m4/linkat.m4 (gl_FUNC_LINKAT): Move AC_LIBOBJ invocations from
33532         here...
33533         * modules/linkat (configure.ac): ... to here.
33535 2011-05-21  Bruno Haible  <bruno@clisp.org>
33537         link: Respect rules for use of AC_LIBOBJ.
33538         * m4/link.m4 (gl_FUNC_LINK): Move AC_LIBOBJ invocations from here...
33539         * modules/link (configure.ac): ... to here.
33541 2011-05-21  Bruno Haible  <bruno@clisp.org>
33543         lchown: Move AC_LIBOBJ invocations to module description.
33544         * m4/lchown.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
33545         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
33546         * modules/lchown (configure.ac): ... to here.
33548 2011-05-21  Bruno Haible  <bruno@clisp.org>
33550         iswctype: Move AC_LIBOBJ invocations to module description.
33551         * m4/iswctype.m4 (gl_FUNC_ISWCTYPE): Move AC_LIBOBJ invocation from
33552         here...
33553         * modules/iswctype (configure.ac): ... to here.
33555 2011-05-21  Bruno Haible  <bruno@clisp.org>
33557         iswblank: Move AC_LIBOBJ invocations to module description.
33558         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Move AC_LIBOBJ invocation from
33559         here...
33560         * modules/iswblank (configure.ac): ... to here.
33562 2011-05-21  Bruno Haible  <bruno@clisp.org>
33564         atanl: Move AC_LIBOBJ invocations to module description.
33565         * m4/atanl.m4 (gl_FUNC_ATANL): Move AC_LIBOBJ invocation from here...
33566         * modules/atanl (configure.ac): ... to here.
33568 2011-05-21  Bruno Haible  <bruno@clisp.org>
33570         acosl: Move AC_LIBOBJ invocations to module description.
33571         * m4/acosl.m4 (gl_FUNC_ACOSL): Move AC_LIBOBJ invocation from here...
33572         * modules/acosl (configure.ac): ... to here.
33574 2011-05-21  Bruno Haible  <bruno@clisp.org>
33576         asinl: Respect rules for use of AC_LIBOBJ.
33577         * m4/asinl.m4 (gl_FUNC_ASINL): Move AC_LIBOBJ invocation from here...
33578         * modules/asinl (configure.ac): ... to here.
33580 2011-05-21  Bruno Haible  <bruno@clisp.org>
33582         tanl: Move AC_LIBOBJ invocations to module description.
33583         * m4/tanl.m4 (gl_FUNC_TANL): Move AC_LIBOBJ invocations from here...
33584         * modules/tanl (configure.ac): ... to here.
33586 2011-05-21  Bruno Haible  <bruno@clisp.org>
33588         cosl: Move AC_LIBOBJ invocations to module description.
33589         * m4/cosl.m4 (gl_FUNC_COSL): Move AC_LIBOBJ invocations from here...
33590         * modules/cosl (configure.ac): ... to here.
33592 2011-05-21  Bruno Haible  <bruno@clisp.org>
33594         sinl: Move AC_LIBOBJ invocations to module description.
33595         * m4/sinl.m4 (gl_FUNC_SINL): Move AC_LIBOBJ invocations from here...
33596         * modules/sinl (configure.ac): ... to here.
33598 2011-05-21  Bruno Haible  <bruno@clisp.org>
33600         logl: Move AC_LIBOBJ invocations to module description.
33601         * m4/logl.m4 (gl_FUNC_LOGL): Move AC_LIBOBJ invocation from here...
33602         * modules/logl (configure.ac): ... to here.
33604 2011-05-21  Bruno Haible  <bruno@clisp.org>
33606         expl: Move AC_LIBOBJ invocations to module description.
33607         * m4/expl.m4 (gl_FUNC_EXPL): Move AC_LIBOBJ invocation from here...
33608         * modules/expl (configure.ac): ... to here.
33610 2011-05-21  Bruno Haible  <bruno@clisp.org>
33612         roundl: Move AC_LIBOBJ invocations to module description.
33613         * m4/roundl.m4 (gl_FUNC_ROUNDL): Move AC_LIBOBJ invocation from here...
33614         * modules/roundl (configure.ac): ... to here.
33616 2011-05-21  Bruno Haible  <bruno@clisp.org>
33618         round: Move AC_LIBOBJ invocations to module description.
33619         * m4/round.m4 (gl_FUNC_ROUND): Move AC_LIBOBJ invocation from here...
33620         * modules/round (configure.ac): ... to here.
33622 2011-05-21  Bruno Haible  <bruno@clisp.org>
33624         roundf: Move AC_LIBOBJ invocations to module description.
33625         * m4/roundf.m4 (gl_FUNC_ROUNDF): Move AC_LIBOBJ invocation from here...
33626         * modules/roundf (configure.ac): ... to here.
33628 2011-05-21  Bruno Haible  <bruno@clisp.org>
33630         truncl: Move AC_LIBOBJ invocations to module description.
33631         * m4/truncl.m4 (gl_FUNC_TRUNCL): Move AC_LIBOBJ invocation from here...
33632         * modules/truncl (configure.ac): ... to here.
33634 2011-05-21  Bruno Haible  <bruno@clisp.org>
33636         trunc: Move AC_LIBOBJ invocations to module description.
33637         * m4/trunc.m4 (gl_FUNC_TRUNC): Move AC_LIBOBJ invocation from here...
33638         * modules/trunc (configure.ac): ... to here.
33640 2011-05-21  Bruno Haible  <bruno@clisp.org>
33642         truncf: Move AC_LIBOBJ invocations to module description.
33643         * m4/truncf.m4 (gl_FUNC_TRUNCF): Move AC_LIBOBJ invocation from here...
33644         * modules/truncf (configure.ac): ... to here.
33646 2011-05-21  Bruno Haible  <bruno@clisp.org>
33648         ceill: Move AC_LIBOBJ invocations to module description.
33649         * m4/ceill.m4 (gl_FUNC_CEILL): Move AC_LIBOBJ invocation from here...
33650         * modules/ceill (configure.ac): ... to here.
33652 2011-05-21  Bruno Haible  <bruno@clisp.org>
33654         ceil: Move AC_LIBOBJ invocations to module description.
33655         * m4/ceil.m4 (gl_FUNC_CEIL): Move AC_LIBOBJ invocation from here...
33656         * modules/ceil (configure.ac): ... to here.
33658 2011-05-21  Bruno Haible  <bruno@clisp.org>
33660         ceilf: Move AC_LIBOBJ invocations to module description.
33661         * m4/ceilf.m4 (gl_FUNC_CEILF): Move AC_LIBOBJ invocation from here...
33662         * modules/ceilf (configure.ac): ... to here.
33664 2011-05-21  Bruno Haible  <bruno@clisp.org>
33666         floorl: Respect rules for use of AC_LIBOBJ.
33667         * m4/floorl.m4 (gl_FUNC_FLOORL): Move AC_LIBOBJ invocation from here...
33668         * modules/floorl (configure.ac): ... to here.
33670 2011-05-21  Bruno Haible  <bruno@clisp.org>
33672         floor: Respect rules for use of AC_LIBOBJ.
33673         * m4/floor.m4 (gl_FUNC_FLOOR): Move AC_LIBOBJ invocation from here...
33674         * modules/floor (configure.ac): ... to here.
33676 2011-05-21  Bruno Haible  <bruno@clisp.org>
33678         floorf: Move AC_LIBOBJ invocations to module description.
33679         * m4/floorf.m4 (gl_FUNC_FLOORF): Move AC_LIBOBJ invocation from here...
33680         * modules/floorf (configure.ac): ... to here.
33682 2011-05-20  Bruno Haible  <bruno@clisp.org>
33684         sqrtl: Respect rules for use of AC_LIBOBJ.
33685         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Move AC_LIBOBJ invocation from here...
33686         * modules/sqrtl (configure.ac): ... to here.
33688 2011-05-20  Bruno Haible  <bruno@clisp.org>
33690         ldexpl: Respect rules for use of AC_LIBOBJ.
33691         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Move AC_LIBOBJ invocation from here...
33692         * modules/ldexpl (configure.ac): ... to here.
33694 2011-05-20  Bruno Haible  <bruno@clisp.org>
33696         frexpl*: Respect rules for use of AC_LIBOBJ.
33697         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Move AC_LIBOBJ
33698         invocation from here...
33699         * modules/frexpl (configure.ac): ... to here.
33700         * modules/frexpl-nolibm (configure.ac): ... and here.
33702 2011-05-20  Bruno Haible  <bruno@clisp.org>
33704         frexp, frexp-nolibm: Move AC_LIBOBJ invocations to module description.
33705         * m4/frexp.m4 (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Move AC_LIBOBJ
33706         invocation from here...
33707         * modules/frexp (configure.ac): ... to here.
33708         * modules/frexp-nolibm (configure.ac): ... and here.
33710 2011-05-20  Bruno Haible  <bruno@clisp.org>
33712         isnan: Respect rules for use of AC_LIBOBJ.
33713         * m4/isnan.m4 (gl_ISNAN): Don't do the AC_LIBOBJ and gl_PREREQ_ISNAN*
33714         invocations here.
33715         * modules/isnanf (configure.ac): Require gl_ISNAN if it exists. Test
33716         REPLACE_ISNAN.
33717         * modules/isnand (configure.ac): Likewise.
33718         * modules/isnanl (configure.ac): Likewise.
33720 2011-05-20  Bruno Haible  <bruno@clisp.org>
33722         isnanl*: Respect rules for use of AC_LIBOBJ.
33723         * m4/isnanl.m4 (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Move AC_LIBOBJ
33724         invocation from here...
33725         * modules/isnanl (configure.ac): ... to here.
33726         * modules/isnanl-nolibm (configure.ac): ... and here.
33728 2011-05-20  Bruno Haible  <bruno@clisp.org>
33730         isnand*: Move AC_LIBOBJ invocations to module description.
33731         * m4/isnand.m4 (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Move AC_LIBOBJ
33732         invocation from here...
33733         * modules/isnand (configure.ac): ... to here.
33734         * modules/isnand-nolibm (configure.ac): ... and here.
33736 2011-05-20  Bruno Haible  <bruno@clisp.org>
33738         isnanf*: Move AC_LIBOBJ invocations to module description.
33739         * m4/isnanf.m4 (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Move AC_LIBOBJ
33740         invocation from here...
33741         * modules/isnanf (configure.ac): ... to here.
33742         * modules/isnanf-nolibm (configure.ac): ... and here.
33744 2011-05-20  Bruno Haible  <bruno@clisp.org>
33746         isnan*: Separate the AC_LIBOBJ invocations.
33747         * m4/isnanf.m4 (gl_PREREQ_ISNANF): Renamed from gl_BUILD_ISNANF. Remove
33748         AC_LIBOBJ invocation.
33749         (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Update. Invoke AC_LIBOBJ
33750         here.
33751         * m4/isnand.m4 (gl_PREREQ_ISNAND): Renamed from gl_BUILD_ISNAND. Remove
33752         AC_LIBOBJ invocation.
33753         (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Update. Invoke AC_LIBOBJ
33754         here.
33755         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Renamed from gl_BUILD_ISNANL. Remove
33756         AC_LIBOBJ invocation.
33757         (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Update. Invoke AC_LIBOBJ
33758         here.
33759         * m4/isnan.m4 (gl_ISNAN): Update. Invoke AC_LIBOBJ here.
33761 2011-05-08  Bruno Haible  <bruno@clisp.org>
33763         isinf: Move AC_LIBOBJ invocations to module description.
33764         * m4/isinf.m4 (gl_ISINF): Move AC_LIBOBJ invocation from here...
33765         * modules/isinf (configure.ac): ... to here.
33767 2011-05-08  Bruno Haible  <bruno@clisp.org>
33769         isfinite: Move AC_LIBOBJ invocations to module description.
33770         * m4/isfinite.m4 (gl_ISFINITE): Move AC_LIBOBJ invocation from here...
33771         * modules/isfinite (configure.ac): ... to here.
33773 2011-05-08  Bruno Haible  <bruno@clisp.org>
33775         isblank: Move AC_LIBOBJ invocations to module description.
33776         * m4/isblank.m4 (gl_FUNC_ISBLANK): Move AC_LIBOBJ invocation from
33777         here...
33778         * modules/isblank (configure.ac): ... to here.
33780 2011-05-08  Bruno Haible  <bruno@clisp.org>
33782         isapipe: Move AC_LIBOBJ invocations to module description.
33783         * m4/isapipe.m4 (gl_ISAPIPE): Set HAVE_ISAPIPE. Move AC_LIBOBJ and
33784         gl_PREREQ_ISAPIPE invocations from here...
33785         * modules/isapipe (configure.ac): ... to here.
33786         (Depends-on): Update condition.
33788 2011-05-08  Bruno Haible  <bruno@clisp.org>
33790         ioctl: Move AC_LIBOBJ invocations to module description.
33791         * m4/ioctl.m4 (gl_FUNC_IOCTL): Set HAVE_IOCTL. Move AC_LIBOBJ
33792         invocations from here...
33793         * modules/ioctl (configure.ac): ... to here.
33794         (Depends-on): Update condition.
33796 2011-05-08  Bruno Haible  <bruno@clisp.org>
33798         imaxdiv: Move AC_LIBOBJ invocations to module description.
33799         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Move AC_LIBOBJ and gl_PREREQ_IMAXDIV
33800         invocations from here...
33801         * modules/imaxdiv (configure.ac): ... to here.
33803 2011-05-08  Bruno Haible  <bruno@clisp.org>
33805         imaxabs: Move AC_LIBOBJ invocations to module description.
33806         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Move AC_LIBOBJ and gl_PREREQ_IMAXABS
33807         invocations from here...
33808         * modules/imaxabs (configure.ac): ... to here.
33810 2011-05-08  Bruno Haible  <bruno@clisp.org>
33812         getaddrinfo: Move AC_LIBOBJ invocations to module description.
33813         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Set HAVE_GETADDRINFO, Move
33814         AC_LIBOBJ invocations from here...
33815         * modules/getaddrinfo (configure.ac): ... to here.
33816         (Depends-on): Add conditions.
33818 2011-05-08  Bruno Haible  <bruno@clisp.org>
33820         inet_pton. getaddrinfo: Respect rules for use of AC_LIBOBJ.
33821         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Set HAVE_INET_PTON. Call
33822         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
33823         gl_PREREQ_INET_PTON. Move tests for declaration of inet_pton here...
33824         (gl_PREREQ_INET_PTON): ... from here.
33825         * modules/inet_pton (configure.ac): Invoke AC_LIBOBJ and
33826         gl_PREREQ_INET_PTON here.
33827         (Depends-on): Update condition.
33829 2011-05-08  Bruno Haible  <bruno@clisp.org>
33831         inet_ntop. getaddrinfo: Respect rules for use of AC_LIBOBJ.
33832         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Set HAVE_INET_NTOP. Call
33833         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
33834         gl_PREREQ_INET_NTOP. Move tests for declaration of inet_ntop here...
33835         (gl_PREREQ_INET_NTOP): ... from here.
33836         * modules/inet_ntop (configure.ac): Invoke AC_LIBOBJ and
33837         gl_PREREQ_INET_NTOP here.
33838         (Depends-on): Update condition.
33840 2011-05-08  Bruno Haible  <bruno@clisp.org>
33842         iconv_open: Move AC_LIBOBJ invocations to module description.
33843         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN, gl_REPLACE_ICONV_OPEN): Move
33844         AC_LIBOBJ invocations from here...
33845         * modules/iconv_open (configure.ac): ... to here.
33847 2011-05-08  Bruno Haible  <bruno@clisp.org>
33849         iconv_open, iconv_open-utf: Respect rules for use of AC_LIBOBJ.
33850         If module 'iconv_open' is among the main modules and module
33851         'iconv_open-utf' is among the tests dependencies, then
33852         REPLACE_ICONV_UTF will be defined to 1, hence iconv_open() in lib may
33853         return the special iconv_t values. Therefore iconv() and iconv_close()
33854         must support these special iconv_t values, already in lib, not only in
33855         tests.
33856         * m4/iconv_open-utf.m4: New file, extracted from m4/iconv_open.m4.
33857         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke
33858         gl_FUNC_ICONV_OPEN_UTF_SUPPORT if present.
33859         (gl_FUNC_ICONV_OPEN_UTF): Remove macro.
33860         * modules/iconv_open (Files): Add lib/iconv.c, lib/iconv_close.c.
33861         (Depends-on): Add the dependencies of iconv_open-utf.
33862         * modules/iconv_open-utf (Files): Add m4/iconv_open-utf.m4. Remove
33863         m4/iconv_open.m4, lib/iconv.c, lib/iconv_close.c.
33864         (Depends-on): Remove modules needed by lib/iconv.c, lib/iconv_close.c.
33866 2011-05-08  Bruno Haible  <bruno@clisp.org>
33868         group-member: Move AC_LIBOBJ invocations to module description.
33869         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Move AC_LIBOBJ and
33870         gl_PREREQ_GROUP_MEMBER invocations from here...
33871         * modules/group-member (configure.ac): ... to here.
33873 2011-05-08  Bruno Haible  <bruno@clisp.org>
33875         grantpt: Move AC_LIBOBJ invocations to module description.
33876         * m4/grantpt.m4 (gl_FUNC_GRANTPT): Move AC_LIBOBJ and gl_PREREQ_GRANTPT
33877         invocations from here...
33878         * modules/grantpt (configure.ac): ... to here.
33880 2011-05-08  Bruno Haible  <bruno@clisp.org>
33882         glob: Move AC_LIBOBJ invocations to module description.
33883         * m4/glob.m4 (gl_GLOB): Move AC_LIBOBJ and gl_PREREQ_GLOB invocations
33884         from here...
33885         * modules/glob (configure.ac): ... to here.
33887 2011-05-08  Bruno Haible  <bruno@clisp.org>
33889         getusershell: Move AC_LIBOBJ invocations to module description.
33890         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Set HAVE_GETUSERSHELL.
33891         Move AC_LIBOBJ invocation from here...
33892         * modules/getusershell (configure.ac): ... to here.
33893         (Depends-on): Update condition.
33895 2011-05-08  Bruno Haible  <bruno@clisp.org>
33897         gettimeofday: Move AC_LIBOBJ invocations to module description.
33898         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
33899         gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Move AC_LIBOBJ and
33900         gl_PREREQ_GETTIMEOFDAY invocations from here...
33901         * modules/gettimeofday (configure.ac): ... to here.
33903 2011-05-08  Bruno Haible  <bruno@clisp.org>
33905         gettimeofday, tzset: Respect rules for use of AC_LIBOBJ.
33906         * modules/tzset (configure.ac): Don't invoke gl_FUNC_TZSET_CLOBBER,
33907         just gl_FUNC_TZSET.
33908         * m4/tzset.m4 (gl_FUNC_TZSET): New macro.
33909         (gl_FUNC_TZSET_CLOBBER): Remove actions.
33910         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Invoke
33911         gl_FUNC_TZSET_CLOBBER and its actions here, if present.
33913 2011-05-08  Bruno Haible  <bruno@clisp.org>
33915         getsubopt: Move AC_LIBOBJ invocations to module description.
33916         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Move AC_LIBOBJ and
33917         gl_PREREQ_GETSUBOPT invocations from here...
33918         * modules/getsubopt (configure.ac): ... to here.
33920 2011-05-08  Bruno Haible  <bruno@clisp.org>
33922         getpass-gnu: Move AC_LIBOBJ invocations to module description.
33923         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): Set REPLACE_GETPASS. Move
33924         AC_LIBOBJ and gl_PREREQ_GETPASS invocations from here...
33925         * modules/getpass-gnu (configure.ac): ... to here.
33927 2011-05-08  Bruno Haible  <bruno@clisp.org>
33929         getpass: Move AC_LIBOBJ invocations to module description.
33930         * m4/getpass.m4 (gl_FUNC_GETPASS): Set HAVE_GETPASS. Move AC_LIBOBJ and
33931         gl_PREREQ_GETPASS invocations from here...
33932         * modules/getpass (configure.ac): ... to here.
33934 2011-05-08  Bruno Haible  <bruno@clisp.org>
33936         getpagesize: Move AC_LIBOBJ invocations to module description.
33937         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Move AC_LIBOBJ invocation
33938         from here...
33939         * modules/getpagesize (configure.ac): ... to here.
33941 2011-05-08  Bruno Haible  <bruno@clisp.org>
33943         getopt: Move AC_LIBOBJ invocations to module description.
33944         * m4/getopt.m4 (gl_REPLACE_GETOPT): Remove macro.
33945         (gl_FUNC_GETOPT): Inline it here. Move AC_LIBOBJ and gl_PREREQ_GETOPT
33946         invocations from here...
33947         * modules/getopt-gnu (configure.ac): ... to here.
33948         * modules/getopt-posix (configure.ac): ... and here.
33949         (Depends-on): Update condition.
33951 2011-05-08  Bruno Haible  <bruno@clisp.org>
33953         getopt, argp: Respect rules for use of AC_LIBOBJ.
33954         * m4/argp.m4 (gl_ARGP): Don't invoke gl_REPLACE_GETOPT.
33955         (gl_REPLACE_GETOPT_ALWAYS): New macro.
33956         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Test whether
33957         gl_REPLACE_GETOPT_ALWAYS is defined. Set REPLACE_GETOPT.
33959 2011-05-08  Bruno Haible  <bruno@clisp.org>
33961         getlogin_r: Move AC_LIBOBJ invocations to module description.
33962         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Move AC_LIBOBJ and
33963         gl_PREREQ_GETLOGIN_R invocations from here...
33964         * modules/getlogin_r (configure.ac): ... to here.
33966 2011-05-08  Bruno Haible  <bruno@clisp.org>
33968         getlogin: Move AC_LIBOBJ invocations to module description.
33969         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Move AC_LIBOBJ invocation from
33970         here...
33971         * modules/getlogin (configure.ac): ... to here.
33973 2011-05-08  Bruno Haible  <bruno@clisp.org>
33975         getloadavg: Move AC_LIBOBJ invocations to module description.
33976         * m4/getloadavg.m4 (gl_FUNC_GETDELIM): Set HAVE_GETLOADAVG. Move
33977         AC_LIBOBJ and gl_PREREQ_GETLOADAVG invocations from here...
33978         * modules/getloadavg (configure.ac): ... to here.
33980 2011-05-08  Bruno Haible  <bruno@clisp.org>
33982         gethrxtime: Move AC_LIBOBJ invocations to module description.
33983         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Move code that determines
33984         LIB_GETHRXTIME from here...
33985         (gl_GETHRXTIME): ... to here. Move AC_LIBOBJ and gl_PREREQ_GETHRXTIME
33986         invocations from here...
33987         * modules/gethrxtime (configure.ac): ... to here.
33989 2011-05-08  Bruno Haible  <bruno@clisp.org>
33991         gethostname: Move AC_LIBOBJ invocations to module description.
33992         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Move AC_LIBOBJ and
33993         gl_PREREQ_GETHOSTNAME invocations from here...
33994         * modules/gethostname (configure.ac): ... to here.
33996 2011-05-08  Bruno Haible  <bruno@clisp.org>
33998         getgroups: Move AC_LIBOBJ invocations to module description.
33999         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Move AC_LIBOBJ invocations from
34000         here...
34001         * modules/getgroups (configure.ac): ... to here.
34003 2011-05-08  Bruno Haible  <bruno@clisp.org>
34005         getdtablesize: Move AC_LIBOBJ invocations to module description.
34006         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Move AC_LIBOBJ
34007         invocation from here...
34008         * modules/getdtablesize (configure.ac): ... to here.
34010 2011-05-08  Bruno Haible  <bruno@clisp.org>
34012         getdomainname: Move AC_LIBOBJ invocations to module description.
34013         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Move AC_LIBOBJ and
34014         gl_PREREQ_GETDOMAINNAME invocations from here...
34015         * modules/getdomainname (configure.ac): ... to here.
34017 2011-05-08  Bruno Haible  <bruno@clisp.org>
34019         getline: Move AC_LIBOBJ invocations to module description.
34020         * m4/getline.m4 (gl_FUNC_GETLINE): Move AC_LIBOBJ and gl_PREREQ_GETLINE
34021         invocations from here...
34022         * modules/getline (configure.ac): ... to here.
34024 2011-05-08  Bruno Haible  <bruno@clisp.org>
34026         getline: Simplify.
34027         * m4/getline.m4 (gl_PREREQ_GETLINE): Don't invoke gl_FUNC_GETDELIM.
34028         It's already handled through the module dependency.
34030 2011-05-08  Bruno Haible  <bruno@clisp.org>
34032         getdelim: Move AC_LIBOBJ invocations to module description.
34033         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Set HAVE_GETDELIM. Move AC_LIBOBJ
34034         and gl_PREREQ_GETDELIM invocations from here...
34035         * modules/getdelim (configure.ac): ... to here.
34036         (Depends-on): Fix condition.
34038 2011-05-08  Bruno Haible  <bruno@clisp.org>
34040         getcwd: Move AC_LIBOBJ invocations to module description.
34041         * m4/getcwd.m4 (gl_FUNC_GETCWD): Move AC_LIBOBJ and gl_PREREQ_GETCWD
34042         invocations from here...
34043         * modules/getcwd (configure.ac): ... to here.
34045 2011-05-08  Bruno Haible  <bruno@clisp.org>
34047         getcwd-lgpl: Move AC_LIBOBJ invocations to module description.
34048         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): Move AC_LIBOBJ invocation from
34049         here...
34050         * modules/getcwd-lgpl (configure.ac): ... to here.
34052 2011-05-07  Bruno Haible  <bruno@clisp.org>
34054         crypto/gc: Move AC_LIBOBJ invocations to module description.
34055         * m4/gc.m4 (gl_GC): Move AC_LIBOBJ invocations from here...
34056         * modules/crypto/gc (configure.ac): ... to here.
34058 2011-05-07  Bruno Haible  <bruno@clisp.org>
34060         fwriting: Move AC_LIBOBJ invocations to module description.
34061         * m4/fwriting.m4 (gl_FUNC_FWRITINT): Move AC_LIBOBJ invocation from
34062         here...
34063         * modules/fwriting (configure.ac): ... to here.
34065 2011-05-07  Bruno Haible  <bruno@clisp.org>
34067         fwritable: Move AC_LIBOBJ invocations to module description.
34068         * m4/fwritable.m4 (gl_FUNC_FWRITABLE): Move AC_LIBOBJ invocation from
34069         here...
34070         * modules/fwritable (configure.ac): ... to here.
34072 2011-05-07  Bruno Haible  <bruno@clisp.org>
34074         futimens: Move AC_LIBOBJ invocations to module description.
34075         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Move AC_LIBOBJ invocations from
34076         here...
34077         * modules/futimens (configure.ac): ... to here.
34079 2011-05-07  Bruno Haible  <bruno@clisp.org>
34081         ftruncate: Move AC_LIBOBJ invocations to module description.
34082         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Move AC_LIBOBJ and
34083         gl_PREREQ_FTRUNCATE invocations from here...
34084         * modules/ftruncate (configure.ac): ... to here.
34086 2011-05-07  Bruno Haible  <bruno@clisp.org>
34088         fsync: Move AC_LIBOBJ invocations to module description.
34089         * m4/fsync.m4 (gl_FUNC_FSYNC): Move AC_LIBOBJ and gl_PREREQ_FSYNC
34090         invocations from here...
34091         * modules/fsync (configure.ac): ... to here.
34093 2011-05-07  Bruno Haible  <bruno@clisp.org>
34095         fsusage: Move AC_LIBOBJ invocations to module description.
34096         * m4/fsusage.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and
34097         gl_PREREQ_FSUSAGE_EXTRA invocations from here...
34098         * modules/fsusage (configure.ac): ... to here.
34100 2011-05-07  Bruno Haible  <bruno@clisp.org>
34102         freopen: Move AC_LIBOBJ invocations to module description.
34103         * m4/freopen.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and gl_PREREQ_FREOPEN
34104         invocations from here...
34105         * modules/freopen (configure.ac): ... to here.
34107 2011-05-07  Bruno Haible  <bruno@clisp.org>
34109         free: Move AC_LIBOBJ invocations to module description.
34110         * m4/free.m4 (gl_FUNC_FREE): Move AC_LIBOBJ and missing gl_PREREQ_FREE
34111         invocations from here...
34112         * modules/free (configure.ac): ... to here.
34114 2011-05-07  Bruno Haible  <bruno@clisp.org>
34116         freadable: Move AC_LIBOBJ invocations to module description.
34117         * m4/freadable.m4 (gl_FUNC_FREADABLE): Move AC_LIBOBJ invocation from
34118         here...
34119         * modules/freadable (configure.ac): ... to here.
34121 2011-05-07  Bruno Haible  <bruno@clisp.org>
34123         fpurge: Move AC_LIBOBJ invocations to module description.
34124         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set HAVE_FPURGE. Move AC_LIBOBJ
34125         invocations from here...
34126         * modules/fpurge (configure.ac): ... to here.
34128 2011-05-07  Bruno Haible  <bruno@clisp.org>
34130         fpending: Move AC_LIBOBJ invocations to module description.
34131         * m4/fpending.m4 (gl_PREREQ_FPENDING): New macro, extracted from
34132         gl_FUNC_FPENDING.
34133         (gl_FUNC_FPENDING): Move AC_LIBOBJ and gl_PREREQ_FPENDING
34134         invocations from here...
34135         * modules/fpending (configure.ac): ... to here.
34137 2011-05-07  Bruno Haible  <bruno@clisp.org>
34139         fopen: Move AC_LIBOBJ invocations to module description.
34140         * m4/fopen.m4 (gl_FUNC_FOPEN): Move AC_LIBOBJ and gl_PREREQ_FOPEN
34141         invocations from here...
34142         * modules/fopen (configure.ac): ... to here.
34144 2011-05-07  Bruno Haible  <bruno@clisp.org>
34146         fnmatch, fnmatch-gnu: Move AC_LIBOBJ invocations to module description.
34147         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): New macro, extracted from
34148         gl_FUNC_FNMATCH_POSIX.
34149         (gl_FUNC_FNMATCH_POSIX): Move AC_LIBOBJ and gl_PREREQ_FNMATCH
34150         invocations from here...
34151         * modules/fnmatch (configure.ac): ... to here.
34152         * modules/fnmatch-gnu (configure.ac): ... and here.
34154 2011-05-07  Bruno Haible  <bruno@clisp.org>
34156         flock: Move AC_LIBOBJ invocations to module description.
34157         * m4/flock.m4 (gl_FUNC_FLOCK): Move AC_LIBOBJ and gl_PREREQ_FLOCK
34158         invocations from here...
34159         * modules/flock (configure.ac): ... to here.
34161 2011-05-07  Bruno Haible  <bruno@clisp.org>
34163         fileblocks: Move AC_LIBOBJ invocations to module description.
34164         * m4/fileblocks.m4 (gl_FILEBLOCKS): Move AC_LIBOBJ and
34165         gl_PREREQ_FILEBLOCKS invocations from here...
34166         * modules/fileblocks (configure.ac): ... to here.
34168 2011-05-06  Bruno Haible  <bruno@clisp.org>
34170         fflush: Move AC_LIBOBJ invocations to module description.
34171         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Remove macro.
34172         (gl_FUNC_FFLUSH): Inline it here. Move AC_LIBOBJ and gl_PREREQ_FFLUSH
34173         invocations from here...
34174         * modules/fflush (configure.ac): ... to here.
34176 2011-05-06  Bruno Haible  <bruno@clisp.org>
34178         fdopendir: Move AC_LIBOBJ invocations to module description.
34179         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Move AC_LIBOBJ invocations from
34180         here...
34181         * modules/fdopendir (configure.ac): ... to here.
34182         (Depends-on): Improve conditions.
34184 2011-05-06  Bruno Haible  <bruno@clisp.org>
34186         _Exit: Move AC_LIBOBJ invocations to module description.
34187         * m4/_Exit.m4 (gl_FUNC__EXIT): Move AC_LIBOBJ and gl_PREREQ__EXIT
34188         invocations from here...
34189         * modules/_Exit (configure.ac): ... to here.
34191 2011-05-21  Bruno Haible  <bruno@clisp.org>
34193         euidaccess: Respect rules for use of AC_LIBOBJ.
34194         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
34195         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_EUIDACCESS invocations
34196         from here...
34197         * modules/euidaccess (configure.ac): ... to here.
34199 2011-05-06  Bruno Haible  <bruno@clisp.org>
34201         error: Move AC_LIBOBJ invocations to module description.
34202         * m4/error.m4 (gl_ERROR): Inline AC_FUNC_ERROR_AT_LINE. Remove
34203         AC_LIBSOURCES invocation. Move AC_LIBOBJ and gl_PREREQ_ERROR
34204         invocations from here...
34205         * modules/error (configure.ac): ... to here.
34207 2011-05-06  Bruno Haible  <bruno@clisp.org>
34209         duplocale: Move AC_LIBOBJ invocations to module description.
34210         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Move AC_LIBOBJ and
34211         gl_PREREQ_DUPLOCALE invocations from here...
34212         * modules/duplocale (configure.ac): ... to here.
34214 2011-05-05  Bruno Haible  <bruno@clisp.org>
34216         dirfd: Move AC_LIBOBJ invocations to module description.
34217         * m4/dirfd.m4 (gl_PREREQ_DIRFD): New macro, extracted from
34218         gl_FUNC_DIRFD.
34219         (gl_FUNC_DIRFD): Move AC_LIBOBJ and gl_PREREQ_DIRFD invocations from
34220         here...
34221         * modules/dirfd (configure.ac): ... to here.
34222         (Depends-on): Fix condition.
34224 2011-05-05  Bruno Haible  <bruno@clisp.org>
34226         chown: Respect rules for use of AC_LIBOBJ.
34227         * m4/chown.m4 (gl_FUNC_CHOWN): Move AC_LIBOBJ invocations from here...
34228         * modules/chown (configure.ac): ... to here.
34230 2011-05-05  Bruno Haible  <bruno@clisp.org>
34232         chdir-long: Move AC_LIBOBJ invocations to module description.
34233         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Move AC_LIBOBJ and
34234         gl_PREREQ_CHDIR_LONG invocations from here...
34235         * modules/chdir-long (configure.ac): ... to here.
34237 2011-05-05  Bruno Haible  <bruno@clisp.org>
34239         canonicalize-lgpl: Move AC_LIBOBJ invocations to module description.
34240         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Move AC_LIBOBJ invocation
34241         from here...
34242         * modules/canonicalize-lgpl (configure.ac): ... to here.
34244 2011-05-05  Bruno Haible  <bruno@clisp.org>
34246         calloc-posix, calloc-gnu: Move AC_LIBOBJs to module description.
34247         * m4/calloc.m4 (gl_REPLACE_CALLOC): Remove macro.
34248         (gl_FUNC_CALLOC_GNU, gl_FUNC_CALLOC_POSIX): Instead, just set
34249         REPLACE_CALLOC.
34250         * modules/calloc-posix (configure.ac): Invoke AC_LIBOBJ here.
34251         * modules/calloc-gnu (configure.ac): Likewise.
34253 2011-05-05  Bruno Haible  <bruno@clisp.org>
34255         btowc: Move AC_LIBOBJ invocations to module description.
34256         * m4/btowc.m4 (gl_FUNC_BTOWC): Move AC_LIBOBJ and gl_PREREQ_BTOWC
34257         invocations from here...
34258         * modules/btowc (configure.ac): ... to here.
34260 2011-05-21  Bruno Haible  <bruno@clisp.org>
34262         atexit: Move AC_LIBOBJ invocations to module description.
34263         * m4/atexit.m4 (gl_FUNC_ATEXIT): Call AC_CHECK_FUNCS instead of
34264         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_ATEXIT invocations from
34265         here...
34266         * modules/atexit (configure.ac): ... to here.
34268 2011-05-05  Bruno Haible  <bruno@clisp.org>
34270         atoll: Move AC_LIBOBJ invocations to module description.
34271         * m4/atoll.m4 (gl_FUNC_ATOLL): Move AC_LIBOBJ and gl_PREREQ_ATOLL
34272         invocations from here...
34273         * modules/atoll (configure.ac): ... to here.
34275 2011-05-05  Bruno Haible  <bruno@clisp.org>
34277         argz: Move AC_LIBOBJ invocations to module description.
34278         * m4/argz.m4 (gl_FUNC_ARGZ): Move AC_LIBOBJ invocation from here...
34279         * modules/argz (configure.ac): ... to here.
34281 2011-05-05  Bruno Haible  <bruno@clisp.org>
34283         alphasort: Move AC_LIBOBJ invocations to module description.
34284         * m4/alphasort.m4 (gl_FUNC_ALPHASORT): Move AC_LIBOBJ and
34285         gl_PREREQ_ALPHASORT invocations from here...
34286         * modules/alphasort (configure.ac): ... to here.
34288 2011-06-15  Paul Eggert  <eggert@cs.ucla.edu>
34290         verify: new macro verify_expr; verify_true deprecated
34291         * NEWS: Mention this.
34292         * doc/verify.texi (Compile-time Assertions): Document this.
34293         * lib/verify.h (verify_true): Deprecate.
34294         (verify_expr): New macro.
34295         * tests/test-verify.c (function): Test verify_expr.
34297 2011-06-14  Jim Meyering  <meyering@redhat.com>
34299         init.sh: give more portable redirection-related advice in a comment
34300         * tests/init.sh (stderr_fileno_): Update the advice in comments.
34301         See http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/22488
34302         for lots of discussion.  Stefano Lattarini suggested the solution
34303         of putting "9>&2" after the command.  Reported by Bruno Haible.
34305 2011-06-13  Bruno Haible  <bruno@clisp.org>
34307         locale-zh: Reject zh_CN.GB18030 locale on Solaris 8.
34308         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On Solaris 8, set LOCALE_ZH_CN to
34309         'none'.
34311 2011-06-13  Paul Eggert  <eggert@cs.ucla.edu>
34313         ftoastr: use strtof only if HAVE_STRTOF
34314         This is needed on HP-UX 11.11 with GCC 4.2.4; see Bruno Haible's report
34315         <http://lists.gnu.org/r/bug-gnulib/2011-06/msg00154.html>.
34316         * lib/ftoastr.c (STRTOF) [LENGTH == 1]: Use strtof only if HAVE_STRTOF.
34317         * modules/ftoastr (configure.ac): Check for strtof.
34319 2011-06-13  Bruno Haible  <bruno@clisp.org>
34321         gnulib-tool: Addendum to 2011-06-08 commit.
34322         * gnulib-tool (func_emit_lib_Makefile_am): If options --makefile-name
34323         and --witness-c-macro have been given, augment AM_CPPFLAGS.
34325 2011-06-13  Bruno Haible  <bruno@clisp.org>
34327         fseeko: Provide a non-inline replacement of fseek().
34328         * lib/stdio.in.h (fseek): Don't provide if module 'fseek' is not used.
34329         * modules/fseeko (Depends-on): Add fseek.
34330         * modules/fseek (License): Change to LGPLv2+.
34332 2011-06-13  Bruno Haible  <bruno@clisp.org>
34334         ftello: Provide a non-inline replacement of ftell().
34335         * lib/stdio.in.h (ftell): Don't provide if module 'ftell' is not used.
34336         * m4/ftell.m4 (gl_FUNC_FTELL): Replace ftell also if the system does
34337         not have ftello() (such as on mingw).
34338         * modules/ftello (Depends-on): Add ftell.
34339         * modules/ftell (License): Change to LGPLv2+.
34341 2011-05-07  Bruno Haible  <bruno@clisp.org>
34343         ftell: Move AC_LIBOBJ invocations to module description.
34344         * m4/ftell.m4 (gl_FUNC_FTELL): Move AC_LIBOBJ invocation from here...
34345         * modules/ftell (configure.ac): ... to here.
34347 2011-05-07  Bruno Haible  <bruno@clisp.org>
34349         ftello: Respect rules for use of AC_LIBOBJ.
34350         * m4/ftello.m4 (gl_REPLACE_FTELLO): Remove macro.
34351         (gl_FUNC_FTELLO): Inline it here. Move AC_LIBOBJ invocation from
34352         here...
34353         * modules/ftello (configure.ac): ... to here.
34355 2011-05-07  Bruno Haible  <bruno@clisp.org>
34357         fseeko: Simplify.
34358         * m4/fseeko.m4 (gl_HAVE_FSEEKO): Remove macro.
34359         (gl_FUNC_FSEEKO): Inline it here.
34361 2011-05-07  Bruno Haible  <bruno@clisp.org>
34363         fseek: Move AC_LIBOBJ invocations to module description.
34364         * m4/fseek.m4 (gl_REPLACE_FSEEK): Remove macro.
34365         (gl_FUNC_FSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
34366         * modules/fseek (configure.ac): ... to here.
34368 2011-05-07  Bruno Haible  <bruno@clisp.org>
34370         fseek: Respect rules for use of AC_LIBOBJ.
34371         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Move gl_REPLACE_FSEEK invocation from
34372         here...
34373         * m4/fseek.m4 (gl_FUNC_FSEEK): ... to here.
34375 2011-05-07  Bruno Haible  <bruno@clisp.org>
34377         fseeko: Respect rules for use of AC_LIBOBJ.
34378         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Remove macro.
34379         (gl_FUNC_FSEEKO): Inline it here. Move AC_LIBOBJ invocation from
34380         here...
34381         * modules/fseeko (configure.ac): ... to here.
34383 2011-06-13  Bruno Haible  <bruno@clisp.org>
34385         gnulib-tool: Allow comments in the 'Depends-on' section.
34386         * doc/gnulib.texi (Module description): Mention comment syntax in the
34387         Depends-on section.
34388         * gnulib-tool (func_get_dependencies): Filter out comment lines.
34390 2011-06-13  Bruno Haible  <bruno@clisp.org>
34392         file-set.h: guard __attibute__ use, now that it's not always defined
34393         * lib/file-set.h (record_file): Use __attribute__ only with compiler
34394         versions that support it.  This fixes a coreutils build failure with
34395         the vendor cc on HP-UX 11.31.
34397 2011-06-12  Bruno Haible  <bruno@clisp.org>
34399         acl: Add support for HP-UX >= 11.11 JFS ACLs.
34400         * doc/acl-resources.txt: Add info about the ACL APIs on HP-UX.
34401         * m4/acl.m4 (gl_FUNC_ACL): Also test for HP-UX 11.11 API.
34402         * lib/acl-internal.h [HP-UX 11.11]: Include <aclv.h>.
34403         (acl, aclsort): New declarations.
34404         (aclv_nontrivial): New declaration.
34405         * lib/file-has-acl.c (aclv_nontrivial) [HP-UX 11.11]: New function.
34406         (file_has_acl): Read also the second kind of HP-UX ACLs.
34407         * lib/set-mode-acl.c (qset_acl) [HP-UX 11.11]: Try to set the second
34408         kind of HP-UX ACLs if the first kind fails.
34409         * lib/copy-acl.c (qcopy_acl) [HP-UX 11.11]: Read and set also the
34410         second kind of HP-UX ACLs.
34411         * tests/test-sameacls.c [HP-UX 11.11]: Include <aclv.h>.
34412         (main) [HP-UX 11.11]: Test also whether the second kind of HP-UX ACLs
34413         agree.
34414         * tests/test-file-has-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
34415         hpuxjfs.
34416         Handle hpuxjfs.
34417         * tests/test-set-mode-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
34418         hpuxjfs.
34419         Handle hpuxjfs.
34420         * tests/test-copy-acl.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
34421         (func_test_same_acls): Use both lsacl and getacl.
34422         Handle hpuxjfs.
34423         * tests/test-copy-file.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
34424         (func_test_same_acls): Use both lsacl and getacl.
34425         Handle hpuxjfs.
34427 2011-06-12  Bruno Haible  <bruno@clisp.org>
34429         acl: Complete the 2010-08-10 fix.
34430         * lib/file-has-acl.c (file_has_acl) [HP-UX]: Also test against ENOTSUP.
34431         * lib/set-mode-acl.c (qset_acl) [HP-UX]: Likewise.
34432         * lib/copy-acl.c (qcopy_acl) [HP-UX]: Test for the errno values
34433         explicitly.
34434         * tests/test-sameacls.c (main) [HP-UX]: Also test against ENOTSUP.
34435         Reported in <http://debbugs.gnu.org/db/60/6053.html>.
34437 2011-06-12  Bruno Haible  <bruno@clisp.org>
34439         spawn-pipe tests: Comments.
34440         * tests/test-spawn-pipe-child.c (main): Update comment.
34441         Reported by James Youngman <jay@gnu.org>.
34443 2011-06-11  James Youngman  <jay@gnu.org>
34445         New module 'stat-size'.
34446         * modules/stat-size: New module.  Provides macros for accessing
34447         file size information in instances of struct stat.  Depends on the
34448         fileblocks module because it calls st_blocks.
34449         * lib/stat-size.h: New file, adapted from coreutils' system.h.
34450         * doc/gnulib.texi: Include stat-size.texi.
34451         * doc/stat-size.texi: Documentation for this module.
34452         * m4/stat-size.m4: New file; defines gl_STAT_SIZE.
34453         * m4/fileblocks.m4: Mention that stat-size depends on the call to
34454         AC_STRUCT_ST_BLOCKS.
34456 2011-06-09  Bruno Haible  <bruno@clisp.org>
34458         thread: Support pthreads-win32.
34459         * lib/glthread/thread.h (gl_thread_self): Define differently on
34460         pthreads-win32.
34461         (gl_null_thread): New declaration.
34462         (gl_thread_self_pointer): New macro.
34463         * lib/glthread/thread.c (gl_null_thread): New constant.
34464         * tests/test-lock.c: Use gl_thread_self_pointer instead of
34465         gl_thread_self.
34466         * tests/test-tls.c: Likewise.
34467         Suggested by Paul Eggert. Reported by Eric Blake.
34469 2011-06-09  Bruno Haible  <bruno@clisp.org>
34471         thread: Fix confusion between NULL and 0.
34472         * lib/glthread/thread.h (gl_thread_self): Use NULL and 0 appropriately.
34473         Reported by Paul Eggert.
34475 2011-06-09  Bruno Haible  <bruno@clisp.org>
34477         spawn-pipe tests: Avoid test failure on HP-UX 11.
34478         * tests/test-spawn-pipe-child.c (main) [HP-UX]: Don't assert that fd 2
34479         is closed.
34481 2011-06-09  Bruno Haible  <bruno@clisp.org>
34483         acl tests: Fix compilation error on HP-UX 11.
34484         * tests/test-sameacls.c: Include <sys/acl.h> also on HP-UX.
34486 2011-06-09  Bruno Haible  <bruno@clisp.org>
34488         rmdir: Avoid test failure on HP-UX 10.20.
34489         * tests/test-rmdir.h (test_rmdir_func): Accept ENOTEMPTY error, like
34490         EEXIST.
34492 2011-06-08  Eric Blake  <eblake@redhat.com>
34494         perror: fix test on mingw
34495         * modules/perror-tests (Depends-on): Add dup2.
34497         strerror_r-posix: fix on MacOS
34498         * m4/strerror.m4 (gl_FUNC_STRERROR): Flush out MacOS bug.
34499         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Likewise, and fix
34500         logic bug.
34501         * lib/strerror_r.c (strerror_r): Fix the bug.
34502         * lib/strerror.c (strerror): Likewise.
34503         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
34504         problem.
34505         * doc/posix-functions/strerror.texi (strerror): Likewise.
34506         * doc/posix-functions/perror.texi (perror): Likewise.
34507         * tests/test-strerror.c (main): Enhance test.
34508         * tests/test-strerror_r.c (main): Likewise.
34510 2011-06-08  Bruno Haible  <bruno@clisp.org>
34512         gnulib-tool: Better isolation between different gnulib-tool invocations.
34513         * gnulib-tool: New option --witness-c-macro.
34514         (witness_c_macro): New variable.
34515         (func_emit_lib_Makefile_am): If --witness-c-macro was specified, let
34516         AM_CPPFLAGS define it as a C macro.
34517         (func_emit_tests_Makefile_am): Likewise.
34518         (func_import): Store witness_c_macro setting in gnulib-cache.m4 and
34519         read it from there.
34520         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): Define through
34521         m4_define, not AC_DEFUN.
34522         (gl_MODULE_INDICATOR_SET_VARIABLE_AUX,
34523         gl_MODULE_INDICATOR_SET_VARIABLE_AUX_OR): New macros.
34524         (gl_MODULE_INDICATOR_SET_VARIABLE): Use them.
34525         * modules/arpa_inet (Makefile.am): Use sed expression s/.../.../, not
34526         s|...|...|, to substitute the values of the GNULIB_* module indicator
34527         variables.
34528         * modules/dirent (Makefile.am): Likewise.
34529         * modules/fcntl-h (Makefile.am): Likewise.
34530         * modules/iconv-h (Makefile.am): Likewise.
34531         * modules/langinfo (Makefile.am): Likewise.
34532         * modules/locale (Makefile.am): Likewise.
34533         * modules/math (Makefile.am): Likewise.
34534         * modules/netdb (Makefile.am): Likewise.
34535         * modules/poll-h (Makefile.am): Likewise.
34536         * modules/pty (Makefile.am): Likewise.
34537         * modules/search (Makefile.am): Likewise.
34538         * modules/signal (Makefile.am): Likewise.
34539         * modules/spawn (Makefile.am): Likewise.
34540         * modules/stdio (Makefile.am): Likewise.
34541         * modules/stdlib (Makefile.am): Likewise.
34542         * modules/string (Makefile.am): Likewise.
34543         * modules/sys_ioctl (Makefile.am): Likewise.
34544         * modules/sys_select (Makefile.am): Likewise.
34545         * modules/sys_socket (Makefile.am): Likewise.
34546         * modules/sys_stat (Makefile.am): Likewise.
34547         * modules/sys_times (Makefile.am): Likewise.
34548         * modules/sys_utsname (Makefile.am): Likewise.
34549         * modules/sys_wait (Makefile.am): Likewise.
34550         * modules/termios (Makefile.am): Likewise.
34551         * modules/time (Makefile.am): Likewise.
34552         * modules/unistd (Makefile.am): Likewise.
34553         * modules/wchar (Makefile.am): Likewise.
34555 2011-06-08  Eric Blake  <eblake@redhat.com>
34557         strerror: simplify replacement
34558         * m4/strerror.m4 (gl_PREREQ_STRERROR): Delete.
34559         * modules/strerror (configure.ac): No prereqs needed here...
34560         * modules/strerror-override (configure.ac): ...but this needs it.
34561         (Files): Add file for needed prereq macro.
34563 2011-06-08  Bruno Haible  <bruno@clisp.org>
34565         strerror_r-posix: Tweaks.
34566         * m4/strerror.m4 (gl_FUNC_STRERROR): Omit the code that tests
34567         gl_cv_func_strerror_r_works if gl_FUNC_STRERROR_R_WORKS is not present.
34568         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Fix AC_CACHE_CHECK
34569         message. Move gl_HEADER_STRING_H_DEFAULTS invocation from here...
34570         (gl_FUNC_STRERROR_R): ... to here.
34571         (gl_PREREQ_STRERROR_R): Test for __xpg_strerror_r.
34573 2011-06-07  Eric Blake  <eblake@redhat.com>
34575         perror: document fixed bugs
34576         * doc/posix-functions/perror.texi (perror): Document recent
34577         patches.
34579 2011-06-07  Paul Eggert  <eggert@cs.ucla.edu>
34581         stat-time: get_stat_birthtime failure is better-defined
34582         * lib/stat-time.h (get_stat_birthtime): If the time is not available,
34583         return a timestamp whose tv_sec and tv_nsec values are both -1.
34584         Previously, the spec said only that the tv_nsec value was negative.
34585         This upward-compatible change simplifies GNU tar a bit.
34587 2011-06-07  Eric Blake  <eblake@redhat.com>
34589         strerror_r-posix: work around cygwin 1.7.9
34590         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Split...
34591         (gl_FUNC_STRERROR_R_WORKS): ...into new macro, to detect Cygwin
34592         bug without replacing strerror_r.
34593         * m4/strerror.m4 (gl_FUNC_STRERROR): Replace strerror if
34594         strerror_r is buggy, but without requiring strerror_r compilation.
34595         * doc/posix-functions/strerror_r.texi (strerror_r): Fix docs.
34597         test-perror: relax test to ignore cygwin bug
34598         * tests/test-perror2.c (main): Relax test on requiring detection
34599         of stream errors, and use unbuffered stream.
34600         * doc/posix-functions/dprintf.texi (dprintf): Document bug.
34601         * doc/posix-functions/fprintf.texi (fprintf): Likewise.
34602         * doc/posix-functions/fputc.texi (fputc): Likewise.
34603         * doc/posix-functions/fputs.texi (fputs): Likewise.
34604         * doc/posix-functions/fputws.texi (fputws): Likewise.
34605         * doc/posix-functions/fwprintf.texi (fwprintf): Likewise.
34606         * doc/posix-functions/fwrite.texi (fwrite): Likewise.
34607         * doc/posix-functions/getopt.texi (getopt): Likewise.
34608         * doc/posix-functions/perror.texi (perror): Likewise.
34609         * doc/posix-functions/printf.texi (printf): Likewise.
34610         * doc/posix-functions/psiginfo.texi (psiginfo): Likewise.
34611         * doc/posix-functions/psignal.texi (psignal): Likewise.
34612         * doc/posix-functions/putc.texi (putc): Likewise.
34613         * doc/posix-functions/putc_unlocked.texi (putc_unlocked):
34614         Likewise.
34615         * doc/posix-functions/putchar.texi (putchar): Likewise.
34616         * doc/posix-functions/putchar_unlocked.texi (putchar_unlocked):
34617         Likewise.
34618         * doc/posix-functions/puts.texi (puts): Likewise.
34619         * doc/posix-functions/putwc.texi (putwc): Likewise.
34620         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
34621         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
34622         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
34623         * doc/posix-functions/vfwprintf.texi (vfwprintf): Likewise.
34624         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
34625         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
34626         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
34627         * doc/posix-functions/wprintf.texi (wprintf): Likewise.
34629 2011-05-22  Bruno Haible  <bruno@clisp.org>
34631         strerror: Move AC_LIBOBJ invocations to module description.
34632         * m4/strerror.m4 (gl_FUNC_STRERROR): Move AC_LIBOBJ and
34633         gl_PREREQ_STRERROR invocations from here...
34634         * modules/strerror (configure.ac): ... to here.
34636 2011-05-21  Bruno Haible  <bruno@clisp.org>
34638         perror: Use common idiom.
34639         * modules/perror (configure.ac): Reorder statements.
34641 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
34643         tests: fix usage message in 'mktempd_'
34644         * tests/init.sh (mktempd_): In the usage message, use literal
34645         'mktempd_', not '$ME' (which is even undefined), as the name of
34646         the subroutine.
34648 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
34650         tests init: new function 'fatal_', for hard errors
34651         Before this patch, the only way offered by tests/init.sh to
34652         properly signal a hard error was the `framework_failure_'
34653         function.  But the error message issued by that function,
34654         as its name would suggest, refers to a set-up failure in the
34655         testsuite, while hard errors can obviously also be due to
34656         other reasons.  The best way to fix this inconsistency is to
34657         introduce a new function with a more general error message.
34658         * tests/init.sh (fatal_): New function.
34660 2011-06-06  Eric Blake  <eblake@redhat.com>
34662         canonicalize-lgpl: use common idiom
34663         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Prefer older rm -rf
34664         over newer POSIX -Rf.
34665         Reported by Bruno Haible.
34667         canonicalize-lgpl: work around AIX realpath bug
34668         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Expose AIX bug.
34669         * doc/posix-functions/realpath.texi (realpath): Document it.
34670         Reported by Bruno Haible.
34672         strerror: work around FreeBSD bug
34673         * lib/strerror.c (strerror): Special case 0.
34674         Reported by Bruno Haible.
34676         strerror-override: avoid bloating errno module
34677         * modules/errno (Files, configure.ac): Move replacement strings...
34678         * modules/strerror-override: ...to new module.
34679         * modules/strerror (Depends-on): Add strerror-override.
34680         * modules/strerror_r-posix (Depends-on): Likewise.
34681         * MODULES.html.sh: Document new module.
34682         Reported by Bruno Haible.
34684 2011-06-06  Bruno Haible  <bruno@clisp.org>
34686         spawn-pipe tests: Rename program.
34687         * tests/test-spawn-pipe-main.c: Renamed from tests/test-spawn-pipe.c.
34688         * tests/test-spawn-pipe-child.c: Update comment.
34689         * tests/test-spawn-pipe.sh: Update.
34690         * modules/spawn-pipe-tests (Files, Makefile.am): Update.
34692         spawn-pipe tests: Link the child program only against libc.
34693         * tests/test-spawn-pipe-child.c: New file, extracted from
34694         tests/test-spawn-pipe.c.
34695         (main): Expect only one argument.
34696         (is_open): New function, copied from tests/test-pipe.c.
34697         * tests/test-spawn-pipe.c: Don't include <errno.h>.
34698         (child_main): Remove function.
34699         (test_pipe): Pass only one argument to the child program.
34700         (main): Remove child process code. Expect the child program's name as
34701         first argument.
34702         * tests/test-spawn-pipe.sh: Pass the child program's name as first
34703         argument.
34704         * modules/spawn-pipe-tests (Files): Add tests/test-spawn-pipe-child.c.
34705         (Makefile.am): Add test-spawn-pipe-child to check_PROGRAMS. Link
34706         test-spawn-pipe-child against no libraries.
34708 2011-06-06  Bruno Haible  <bruno@clisp.org>
34710         careadlinkat: Avoid mismatch between ssize_t and int.
34711         * lib/careadlinkat.h (careadlinkatcwd): Declare as a function always.
34712         * lib/careadlinkat.c (careadlinkatcwd): Define always.
34714 2011-06-06  Jim Meyering  <meyering@redhat.com>
34716         gnulib-common.m4: add _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE
34717         * m4/gnulib-common.m4 (gl_COMMON): Emit definitions of
34718         _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE.
34720 2011-06-05  Bruno Haible  <bruno@clisp.org>
34722         ansi-c++-opt: Interoperability with libtool.
34723         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is not found,
34724         set the variable to "no", not to ":".
34725         * NEWS: Mention the change.
34727 2011-06-05  Bruno Haible  <bruno@clisp.org>
34729         acl: Fix test failure on AIX 7.
34730         * tests/test-sameacls.c (main) [AIX]: Fix aclx_printStr invocation.
34731         Based on a patch by Jørn Amundsen <Jorn.Amundsen@ntnu.no>.
34733 2011-06-05  Bruno Haible  <bruno@clisp.org>
34735         pipe-filter-ii: Fix test failure on AIX and IRIX.
34736         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): When write() fails
34737         with EAGAIN, retry with a smaller buffer size.
34739 2011-06-05  Bruno Haible  <bruno@clisp.org>
34741         localename: Fix link dependencies.
34742         * modules/localename (Link): Mention $(LIBTHREAD) or $(LTLIBTHREAD).
34743         * modules/localename-tests (Makefile.am): Link test-localename with
34744         $(LIBTHREAD).
34746 2011-06-05  Bruno Haible  <bruno@clisp.org>
34748         error: Avoid gcc warning.
34749         * lib/error.c (strerror_r): Declare also when its return type is 'int'.
34751 2011-06-05  Bruno Haible  <bruno@clisp.org>
34753         unsetenv: Avoid gcc warning.
34754         * lib/unsetenv.c (unsetenv): Provide declaration if system lacks it.
34756 2011-06-05  Bruno Haible  <bruno@clisp.org>
34758         setenv: Avoid gcc warning.
34759         * lib/setenv.c (setenv): Provide declaration if system lacks it.
34761 2011-06-05  Bruno Haible  <bruno@clisp.org>
34763         sys_select: Ensure memset is declared also on AIX 7.
34764         * lib/sys_select.in.h: Include <string.h> also on AIX.
34765         * doc/posix-headers/sys_select.texi: Mention that <sys/select.h> is not
34766         self-contained also on AIX 7.1.
34768 2011-06-04  Jim Meyering  <meyering@redhat.com>
34770         maint.mk: sc_unmarked_diagnostics: don't hard-code "error"
34771         * top/maint.mk (sc_unmarked_diagnostics): Don't hard-code the
34772         function name, "error".
34773         (_gl_translatable_diag_func_re): New configurable variable.
34775 2011-06-04  Bruno Haible  <bruno@clisp.org>
34777         getopt: Avoid gcc warning.
34778         * lib/getopt.c (_getopt_internal_r): Remove unused variable 'ambig'.
34780 2011-06-04  Bruno Haible  <bruno@clisp.org>
34782         strerror_r: Fix comments.
34783         * lib/strerror_r.c (strerror_r): Update comments after 2011-06-01
34784         commit.
34786 2011-06-04  Bruno Haible  <bruno@clisp.org>
34788         perror: Fix compilation error.
34789         * lib/perror.c: Don't include intprops.h, verify.h, strerror-impl.h.
34790         Undefine fprintf, not sprintf.
34791         * modules/perror (Depends-on): Remove intprops, verify.
34793 2011-06-04  Bruno Haible  <bruno@clisp.org>
34795         setlocale: Enable replacement on Cygwin 1.5.
34796         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Set REPLACE_SETLOCALE also on
34797         Cygwin 1.5.x.
34798         * doc/posix-functions/setlocale.texi: Mention that the problem with the
34799         LC_CTYPE category also exists on Cygwin 1.5.x.
34801 2011-06-04  Bruno Haible  <bruno@clisp.org>
34803         strerror-override: Don't disable symbol renamings.
34804         * lib/strerror-override.h: Include errno.h and stddef.h, not string.h.
34805         * lib/strerror-override.c: Include config.h.
34806         (strerror_override): Don't undefine.
34808 2011-06-03  Bruno Haible  <bruno@clisp.org>
34810         Copyright: Use LGPL 2.1 instead of LGPL 2.0.
34811         * lib/localename.h: Update copyright header.
34812         * lib/localename.c: Likewise.
34813         * lib/relocatable.h: Likewise.
34814         * lib/relocatable.c: Likewise.
34816 2011-06-02  Bruno Haible  <bruno@clisp.org>
34818         doc: Fix a module name.
34819         * doc/posix-functions/open.texi: Fix module name 'nonblocking'.
34821 2011-06-02  Bruno Haible  <bruno@clisp.org>
34823         pipe2: Remove dependency on 'nonblocking' module.
34824         * lib/pipe2.c: Include verify.h. Include nonblocking.h only if
34825         O_NONBLOCK is defined by gnulib.
34826         (pipe2) [WIN32]: If O_NONBLOCK is not defined by gnulib, verify that it
34827         is zero.
34828         * modules/pipe2 (Depends-on): Add verify. Remove nonblocking.
34829         * tests/test-pipe2.c: Include nonblocking.h only if O_NONBLOCK is
34830         defined by gnulib.
34831         (get_nonblocking_flag): New function.
34832         (main): Test O_NONBLOCK flag only if it is nonzero.
34833         * doc/glibc-functions/pipe2.texi: Mention the 'nonblocking' module.
34835 2011-06-03  Jim Meyering  <meyering@redhat.com>
34837         maint: three new prohibit-header-without-use rules
34838         Prohibit use of cloexec.h, posixver.h, same.h without use.
34839         * top/maint.mk (sc_prohibit_cloexec_without_use): New rule.
34840         (sc_prohibit_posixver_without_use): Likewise.
34841         (sc_prohibit_same_without_use): Likewise.
34843 2011-06-02  Paul Eggert  <eggert@cs.ucla.edu>
34845         allocator: 'die' routine is now given requested size
34846         * lib/allocator.h (struct allocator.die): New size arg.
34847         * lib/careadlinkat.c (careadlinkat): Pass size to 'die' function.
34848         If the actual problem is an ssize_t limitation, not a size_t or
34849         malloc failure, fail with errno==ENAMETOOLONG instead of calling 'die'.
34851 2011-06-01  Eric Blake  <eblake@redhat.com>
34853         strerror: drop strerror_r dependency
34854         * lib/strerror_r.c (strerror_r): Move gnulib replacement strings...
34855         * lib/strerror-override.c (strerror_override): ...to new file.
34856         * lib/strerror-override.h: Add prototype.
34857         * lib/strerror-impl.h: Delete.
34858         * lib/strerror.c (strerror): New implementation.
34859         * modules/errno (Files): Add new files.
34860         (configure.ac): Compile new file as appropriate.
34861         * modules/strerror (Files): Drop unused file.
34862         (Depends-on): Drop strerror_r-posix.
34863         * MODULES.html.sh: Document strerror_r-posix.
34864         Requested by Sam Steingold.
34866         perror: call strerror_r directly
34867         * modules/perror (Files): Drop strerror-impl.h.
34868         * lib/perror.c (perror): Use our own stack buffer, rather than
34869         calling a wrapper that uses static storage.
34870         * doc/posix-functions/perror.texi (perror): Document a limitation
34871         of our replacement.
34873         strerror_r: fix includes for FreeBSD
34874         * lib/strerror_r.c (includes): Use <stdlib.h> unconditionally,
34875         since we use abort on some platforms.
34876         Reported by Matthias Bolte.
34878 2011-05-31  Bruno Haible  <bruno@clisp.org>
34880         Fix link errors in tests: openat-die uses gettext-h.
34881         * modules/areadlinkat-tests (Makefile.am): Link test-areadlinkat
34882         against $(LIBINTL).
34883         * modules/dirent-safer-tests (Makefile.am): Link test-dirent-safer
34884         against $(LIBINTL).
34885         * modules/fdopendir-tests (Makefile.am): Link test-fdopendir against
34886         $(LIBINTL).
34887         * modules/fdutimensat-tests (Makefile.am): Link test-fdutimensat
34888         against $(LIBINTL).
34889         * modules/linkat-tests (Makefile.am): Link test-linkat against
34890         $(LIBINTL).
34891         * modules/mkfifoat-tests (Makefile.am): Link test-mkfifoat against
34892         $(LIBINTL).
34893         * modules/openat-safer-tests (Makefile.am): Link test-openat-safer
34894         against $(LIBINTL).
34895         * modules/openat-tests (Makefile.am): Link test-fchownat, test-fstatat,
34896         test-mkdirat, test-openat, test-unlinkat against $(LIBINTL).
34897         * modules/readlinkat-tests (Makefile.am): Link test-readlinkat against
34898         $(LIBINTL).
34899         * modules/symlinkat-tests (Makefile.am): Link test-symlinkat against
34900         $(LIBINTL).
34901         * modules/utimensat-tests (Makefile.am): Link test-utimensat against
34902         $(LIBINTL).
34903         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
34905 2011-05-31  Bruno Haible  <bruno@clisp.org>
34907         Fix link errors in tests: wait-process uses gettext-h.
34908         * modules/nonblocking-pipe-tests (Makefile.am): Set
34909         test_nonblocking_pipe_main_LDADD.
34910         * modules/nonblocking-socket-tests (Makefile.am): Link
34911         test-nonblocking-socket-main against $(LIBINTL).
34912         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
34914 2011-05-29  Paul Eggert  <eggert@cs.ucla.edu>
34916         assert-h: work around 'verify' incompatibility
34917         * lib/verify.h: Use @...@ directives, not ifdef.
34918         * modules/assert-h (assert.h): Implement the directives.
34919         (assert.h): Substitute the symbol-prefix more consistently.
34921 2011-05-29  Jim Meyering  <meyering@redhat.com>
34923         trim: remove three superfluous assignments
34924         * lib/trim.c (trim2): Remove three superfluous assignments
34925         and correct brace positioning.
34927 2011-05-29  Bruno Haible  <bruno@clisp.org>
34929         wctype-h: Avoid namespace pollution on Solaris 2.6.
34930         * lib/wctype.in.h: On Solaris, undefine 'multibyte' and a few other
34931         identifiers.
34932         * doc/posix-headers/wctype.texi: Mention the problem.
34933         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
34935 2011-05-28  Jim Meyering  <meyering@redhat.com>
34937         parse-datetime.y: accommodate -Wstrict-overflow
34938         * lib/parse-datetime.y (yylex): Rearrange pointer arithmetic to
34939         placate -Wstrict-overflow.
34941         trim: avoid a warning from -O2 -Wstrict-overflow
34942         * lib/trim.c (trim2): Declare local to be "unsigned int", not "int".
34944 2011-05-29  Bruno Haible  <bruno@clisp.org>
34946         gnulib-tool: Fix bug in yesterday's commit.
34947         * gnulib-tool (func_create_testdir): Don't add gltests to $subdirs
34948         twice.
34950 2011-05-29  Bruno Haible  <bruno@clisp.org>
34952         Allow multiple gnulib generated include files to be combined.
34953         * gnulib-tool (func_compute_include_guard_prefix): New function.
34954         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Resolve also
34955         ${gl_include_guard_prefix} references.
34956         (func_import, func_create_testdir): Invoke
34957         func_compute_include_guard_prefix.
34958         * lib/arpa_inet.in.h: Use the @GUARD_PREFIX@ placeholder.
34959         * lib/ctype.in.h: Likewise.
34960         * lib/dirent.in.h: Likewise.
34961         * lib/errno.in.h: Likewise.
34962         * lib/fcntl.in.h: Likewise.
34963         * lib/float.in.h: Likewise.
34964         * lib/getopt.in.h: Likewise.
34965         * lib/iconv.in.h: Likewise.
34966         * lib/langinfo.in.h: Likewise.
34967         * lib/locale.in.h: Likewise.
34968         * lib/math.in.h: Likewise.
34969         * lib/netdb.in.h: Likewise.
34970         * lib/netinet_in.in.h: Likewise.
34971         * lib/poll.in.h: Likewise.
34972         * lib/pthread.in.h: Likewise.
34973         * lib/pty.in.h: Likewise.
34974         * lib/sched.in.h: Likewise.
34975         * lib/se-selinux.in.h: Likewise.
34976         * lib/search.in.h: Likewise.
34977         * lib/signal.in.h: Likewise.
34978         * lib/spawn.in.h: Likewise.
34979         * lib/stdarg.in.h: Likewise.
34980         * lib/stddef.in.h: Likewise.
34981         * lib/stdint.in.h: Likewise.
34982         * lib/stdio.in.h: Likewise.
34983         * lib/stdlib.in.h: Likewise.
34984         * lib/string.in.h: Likewise.
34985         * lib/strings.in.h: Likewise.
34986         * lib/sys_file.in.h: Likewise.
34987         * lib/sys_ioctl.in.h: Likewise.
34988         * lib/sys_select.in.h: Likewise.
34989         * lib/sys_socket.in.h: Likewise.
34990         * lib/sys_stat.in.h: Likewise.
34991         * lib/sys_time.in.h: Likewise.
34992         * lib/sys_times.in.h: Likewise.
34993         * lib/sys_uio.in.h: Likewise.
34994         * lib/sys_utsname.in.h: Likewise.
34995         * lib/sys_wait.in.h: Likewise.
34996         * lib/sysexits.in.h: Likewise.
34997         * lib/termios.in.h: Likewise.
34998         * lib/time.in.h: Likewise.
34999         * lib/unistd.in.h: Likewise.
35000         * lib/wchar.in.h: Likewise.
35001         * lib/wctype.in.h: Likewise.
35002         * modules/arpa_inet (Makefile.am): Substitute @GUARD_PREFIX@.
35003         * modules/ctype (Makefile.am): Likewise.
35004         * modules/dirent (Makefile.am): Likewise.
35005         * modules/errno (Makefile.am): Likewise.
35006         * modules/fcntl-h (Makefile.am): Likewise.
35007         * modules/float (Makefile.am): Likewise.
35008         * modules/getopt-posix (Makefile.am): Likewise.
35009         * modules/iconv-h (Makefile.am): Likewise.
35010         * modules/langinfo (Makefile.am): Likewise.
35011         * modules/locale (Makefile.am): Likewise.
35012         * modules/math (Makefile.am): Likewise.
35013         * modules/netdb (Makefile.am): Likewise.
35014         * modules/netinet_in (Makefile.am): Likewise.
35015         * modules/poll-h (Makefile.am): Likewise.
35016         * modules/pthread (Makefile.am): Likewise.
35017         * modules/pty (Makefile.am): Likewise.
35018         * modules/sched (Makefile.am): Likewise.
35019         * modules/search (Makefile.am): Likewise.
35020         * modules/selinux-h (Makefile.am): Likewise.
35021         * modules/signal (Makefile.am): Likewise.
35022         * modules/spawn (Makefile.am): Likewise.
35023         * modules/stdarg (Makefile.am): Likewise.
35024         * modules/stddef (Makefile.am): Likewise.
35025         * modules/stdint (Makefile.am): Likewise.
35026         * modules/stdio (Makefile.am): Likewise.
35027         * modules/stdlib (Makefile.am): Likewise.
35028         * modules/string (Makefile.am): Likewise.
35029         * modules/strings (Makefile.am): Likewise.
35030         * modules/sys_file (Makefile.am): Likewise.
35031         * modules/sys_ioctl (Makefile.am): Likewise.
35032         * modules/sys_select (Makefile.am): Likewise.
35033         * modules/sys_socket (Makefile.am): Likewise.
35034         * modules/sys_stat (Makefile.am): Likewise.
35035         * modules/sys_time (Makefile.am): Likewise.
35036         * modules/sys_times (Makefile.am): Likewise.
35037         * modules/sys_uio (Makefile.am): Likewise.
35038         * modules/sys_utsname (Makefile.am): Likewise.
35039         * modules/sys_wait (Makefile.am): Likewise.
35040         * modules/sysexits (Makefile.am): Likewise.
35041         * modules/termios (Makefile.am): Likewise.
35042         * modules/time (Makefile.am): Likewise.
35043         * modules/unistd (Makefile.am): Likewise.
35044         * modules/wchar (Makefile.am): Likewise.
35045         * modules/wctype-h (Makefile.am): Likewise.
35046         * modules/assert-h (Makefile.am): Replace _GL_VERIFY_H specially.
35048 2011-05-29  Bruno Haible  <bruno@clisp.org>
35050         assert-h: Allow multiple gnulib generated replacements to coexist.
35051         * lib/verify.h (struct _gl_verify_type): Avoid identical redefinition.
35053 2011-05-29  Bruno Haible  <bruno@clisp.org>
35055         argp: Allow coexistence with strerror_r-posix module.
35056         * lib/argp-help.c (__argp_failure): If strerror_r is defined as a macro
35057         (either to __xpg_strerror_r by glibc's <string.h> or to rpl_strerror_r
35058         by gnulib's <string.h> replacement), assume it has the POSIX signature,
35059         not the glibc signature.
35061 2011-05-28  Bruno Haible  <bruno@clisp.org>
35063         gnulib-tool: Alternative structure of testdirs, similar to --import.
35064         * gnulib-tool: New option --single-configure.
35065         (func_usage): Document it.
35066         (single_configure): New variable.
35067         (func_modules_transitive_closure_separately,
35068         func_modules_transitive_closure_separately,
35069         func_determine_use_libtests, func_modules_add_dummy_separately,
35070         func_modules_to_filelist_separately): New functions, extracted from
35071         func_import.
35072         (func_emit_tests_Makefile_am): Handle $single_configure = true case.
35073         (func_import): Use the new functions.
35074         (func_create_testdir): Set final_modules. Handle $single_configure =
35075         true case.
35077 2011-05-28  Bruno Haible  <bruno@clisp.org>
35079         getloadavg: Remove an unreliable safety check.
35080         * m4/getloadavg.m4 (gl_GETLOADAVG): Drop argument. Remove test whether
35081         getloadavg.c is in place.
35082         * modules/getloadavg (configure.ac): Drop argument of gl_GETLOADAVG.
35083         Reported by Sam Steingold <sds@gnu.org>.
35085 2011-05-28  Bruno Haible  <bruno@clisp.org>
35087         doc: Cleanup yet another file produced by texinfo.tex.
35088         * doc/Makefile (mostlyclean): Remove also gnulib.cn.
35090 2011-05-28  Bruno Haible  <bruno@clisp.org>
35092         Finish the conditional dependencies mechanism.
35093         * gnulib-tool: New option --no-conditional-dependencies.
35094         (func_usage): Document it. Don't mark --conditional-dependencies as
35095         experimental.
35096         (cond_dependencies): The possible values can now be true, false, empty.
35097         (func_modules_transitive_closure, func_emit_autoconf_snippets): Update.
35098         (func_import): Store setting in gnulib-cache.m4 and read it from there.
35099         * doc/gnulib-tool.texi (Conditional dependencies): New section.
35101 2011-05-28  Bruno Haible  <bruno@clisp.org>
35103         doc: Use a recent texinfo.tex.
35104         * doc/Makefile (tex_opts): New variable.
35105         (%.dvi, %.pdf): Pass it to texi2dvi and texi2pdf.
35107 2011-05-28  Jim Meyering  <meyering@redhat.com>
35109         intprops.h: adjust comment to match code change
35110         * lib/intprops.h (_GL_INT_CONVERT): Adjust comment: now that E is used
35111         only once, it *may* have side effects.  Also fix an unrelated typo.
35112         (_GL_INT_SIGNED): Likewise.
35114 2011-05-26  Simon Josefsson  <simon@josefsson.org>
35116         * lib/gen-uni-tables.c: Say "gen-uni-tables.c" consistently.
35118 2011-05-26  Bruno Haible  <bruno@clisp.org>
35120         mbsrchr: Avoid collision with system function on Interix.
35121         * lib/string.in.h (mbsrchr): Define as rpl_mbsrchr also on Interix.
35122         Reported by Markus Duft <mduft@gentoo.org>.
35124 2011-05-15  James Youngman  <jay@gnu.org>
35126         getopt: for ambiguous options, enumerate the possibilities.
35127         * lib/getopt.c (_getopt_internal_r): Merge glibc change printing
35128         the ambiguous options when an ambiguous prefix is given. This was
35129         http://sourceware.org/bugzilla/show_bug.cgi?id=7101.  The merged
35130         glibc change was
35131         http://sourceware.org/git/?p=glibc.git;a=commit;h=bd25564e1e98910ed69043ed6a6f884ce60e5780.
35133 2011-05-25  Eric Blake  <eblake@redhat.com>
35135         getcwd: work around mingw bug
35136         * lib/getcwd-lgpl.c (rpl_getcwd): Guarantee correct error.
35137         * doc/posix-functions/getcwd.texi (getcwd): Document it.
35138         Reported by Matthias Bolte.
35140 2011-05-24  Paul Eggert  <eggert@cs.ucla.edu>
35142         test-intprops: disable -Wtype-limits diagnostics
35143         * tests/test-intprops.c: Use a pragma to ignore -Wtype-limits
35144         diagnostics.  Otherwise, the integer overflow macros generate many
35145         diagnostics.  Reported by Jim Meyering in
35146         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00528.html>.
35148         intprops: shorten, to pacify gcc -Woverlength-strings
35149         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_NEGATE_CONVERT):
35150         (_GL_BINARY_OP_OVERFLOW): Say "0 * (x)" rather than "(x) - (x)",
35151         so that, for example, verify (INT_MULTIPLY_OVERFLOW (...)) is less
35152         likely to run afoul of C compiler limits for string constant lengths.
35153         See <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00528.html>.
35155 2011-05-24  Eric Blake  <eblake@redhat.com>
35157         docs: document recently fixed glibc printf bug
35158         * doc/posix-functions/fprintf.texi (fprintf): Document it.
35159         * doc/posix-functions/printf.texi (printf): Likewise.
35160         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
35161         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
35163         closein-tests: convert to init.sh
35164         * modules/closein-tests (Files): Add init.sh
35165         * tests/test-closein.sh Use it.
35167         yesno-tests: convert to init.sh
35168         * modules/yesno-tests (Files): Add init.sh.
35169         * tests/test-yesno.sh: Use it.
35171         atexit-tests: ensure reliable exit status
35172         * tests/test-atexit.sh: Prefer 'Exit' over 'exit'.
35173         Reported by Bruno Haible.
35175 2011-05-24  Bruno Haible  <bruno@clisp.org>
35177         strerror_r-posix: Respect rules for use of AC_LIBOBJ.
35178         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Move AC_LIBOBJ and
35179         gl_PREREQ_STRERROR_R invocations from here...
35180         * modules/strerror_r-posix (configure.ac): ... to here.
35182 2011-05-24  Eric Blake  <eblake@redhat.com>
35184         strerror_r: fix missing header
35185         * lib/strerror_r.c: Avoid compiler warning about snprintf.
35187         strerror_r: fix AIX test failures
35188         * lib/strerror_r.c (strerror_r): Convert silent truncation to
35189         ERANGE failure.
35191         strerror_r: fix Solaris test failures
35192         * lib/strerror_r.c (strerror_r): Partially populate buf on ERANGE
35193         failures.
35194         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
35196         strerror_r: enforce POSIX recommendations
35197         * lib/strerror_r.c (safe_copy): New helper method.
35198         (strerror_r): Guarantee a non-empty string.
35199         * tests/test-strerror_r.c (main): Enhance tests to incorporate
35200         recent POSIX rulings and to match our strerror guarantees.
35201         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
35203 2011-05-24  Jim Meyering  <meyering@redhat.com>
35205         test-perror2.c: avoid warning about unused variable
35206         * tests/test-perror2.c (main): Remove declaration of unused "fp".
35208 2011-05-24  Eric Blake  <eblake@redhat.com>
35210         perror: avoid spurious test failure on HP-UX
35211         * tests/test-perror.sh: Use Exit to avoid wrong exit status.
35213         tests: fix logic bug in init.sh
35214         * tests/init.sh: (gl_set_x_corrupts_stderr_): Clear for successful
35215         shell.
35217 2011-05-24  Jim Meyering  <meyering@redhat.com>
35219         utimensat: do not reference an out-of-scope buffer
35220         Otherwise, with __linux__ defined, "times" would point to a buffer, "ts"
35221         declared in an inner scope, yet "times" would be dereferenced outside
35222         the scope in which "ts" was valid.
35223         * lib/utimensat.c (rpl_utimensat) [__linux__]: Move the declaration
35224         of ts[2] "out/up", so that the use of aliased "times" (via
35225         "times = ts;") does not end up referencing an out-of-scope "ts"
35227         opendir-safer.c: don't clobber errno; don't close negative FD
35228         * lib/opendir-safer.c (opendir_safer):
35229         [HAVE_FDOPENDIR || GNULIB_FDOPENDIR]: Don't close a negative
35230         file descriptor, and more importantly, don't clobber the
35231         offending errno value with EINVAL.  Before, upon failure
35232         of dup_safer, we would pass the negative file descriptor to
35233         fdopendir, which would clobber errno.
35235 2011-05-23  Bruno Haible  <bruno@clisp.org>
35237         idcache: Fix module description.
35238         * modules/idcache (Include): Set to "idcache.h".
35240 2011-05-23  Paul Eggert  <eggert@cs.ucla.edu>
35242         gnulib-tool: fix portability problem with MacOS sed
35243         A sed command like "/x/{s/a/b/}" is not portable; a newline is needed
35244         before the "}".  Problem reported by Leo in
35245         <http://lists.gnu.org/r/emacs-devel/2011-05/msg00717.html>.
35246         * gnulib-tool (func_modules_transitive_closure): Insert newlines in
35247         sed_extract_condition1, sed_extract_condition2.
35249 2011-05-23  Bruno Haible  <bruno@clisp.org>
35251         hash: Simplify autoconf macro.
35252         * m4/hash.m4 (gl_HASH): Don't require AM_STDBOOL_H.
35254 2011-05-23  Bruno Haible  <bruno@clisp.org>
35256         getugroups: Fix module description.
35257         * modules/getugroups (Include): Set to "getugroups.h".
35259 2011-05-23  Bruno Haible  <bruno@clisp.org>
35261         linkat: Simplify autoconf macro.
35262         * m4/linkat.m4 (gl_FUNC_LINKAT): Don't require gl_FUNC_LINK.
35264 2011-05-23  Bruno Haible  <bruno@clisp.org>
35265             Eric Blake  <eblake@redhat.com>
35267         linkat, renameat: Update dependencies.
35268         * modules/renameat (Depends-on): Add dosname, save-cwd. Remove stpcpy.
35269         * modules/linkat (Depends-on): Likewise. Remove also readlink,
35270         symlinkat.
35272 2011-05-23  Jim Meyering  <meyering@redhat.com>
35274         maint.mk: more tight_scope improvements
35275         * top/maint.mk: (_gl_TS_var_match): Use $(_gl_TS_extern) here, too.
35276         (_gl_TS_headers): Define only in if-0'd block.
35277         (_gl_TS_dir): Omit the $(srcdir)/ prefix.  Sometimes we need it,
35278         sometimes we must *not* use it.  Adjust uses accordingly.
35279         (sc_tight_scope): Use much simpler grep-based test to determine
35280         whether we skip this rule.
35282         maint.mk: generalize/improve the tight-scope rule
35283         * top/maint.mk: Emit a warning when the test is skipped.
35284         (_gl_TS_dir): Add $(srcdir)/ prefix.
35285         (_gl_TS_function_match): Simplify, rather than trying
35286         to enumerate common types.  Otherwise, it would fail to match an
35287         "extern unsigned char const *" declaration in idutils.
35288         (_gl_TS_extern): Do not endorse use of "XTERN", but do provide
35289         a way to support use of that type of macro.
35290         (_gl_TS_var_match): Simplify regexp.
35291         (_gl_TS_obj_files): New configurable variable.
35292         (_gl_TS_headers): Likewise.
35294 2011-05-22  Paul Eggert  <eggert@cs.ucla.edu>
35296         verify: fix bug when gnulib <assert.h> is also included
35297         * lib/verify.h (verify, verify_true): Define if _GL_VERIFY_H
35298         is defined, not if _GL_STATIC_ASSERT_H is not defined.
35299         Perhaps there's a better way, but this fixes the immediate problem.
35300         Problem reported by Bruno Haible in
35301         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00478.html>.
35303 2011-05-22  Bruno Haible  <bruno@clisp.org>
35305         xgetcwd: Simplify autoconf macro.
35306         * m4/xgetcwd.m4 (gl_XGETCWD): Don't require gl_FUNC_GETCWD.
35308 2011-05-22  Bruno Haible  <bruno@clisp.org>
35310         New module 'mktime-internal'.
35311         * modules/mktime-internal: New file.
35312         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Move contents to ...
35313         * m4/mktime.m4 (gl_FUNC_MKTIME_INTERNAL): New macro. Define
35314         mktime_internal as a C macro if libc has __mktime_internal.
35315         * modules/timegm (Depends-on): Add mktime-internal. Remove mktime. Add
35316         conditions.
35317         * MODULES.html.sh (Date and time <time.h>): Add mktime-internal.
35319 2011-05-22  Bruno Haible  <bruno@clisp.org>
35321         timegm: Correct mktime replacement statements.
35322         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Set REPLACE_MKTIME, instead of
35323         defining mktime as a C macro. This completes a 2009-07-28 commit.
35325 2011-05-22  Bruno Haible  <bruno@clisp.org>
35327         timegm: Simplify autoconf macro.
35328         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Don't require gl_TIME_R.
35330 2011-05-21  Paul Eggert  <eggert@cs.ucla.edu>
35332         clock-time: change to LGPLv2+.
35333         * modules/clock-time: Change from GPL to LGPLv2+.  Actually, it's
35334         BSD-like but we have no mark for that; this is good enough for now.
35336 2011-05-21  Bruno Haible  <bruno@clisp.org>
35338         strerror_r: Fix comments.
35339         * lib/strerror_r.c (strerror_r): Fix comment about Cygwin and sys_nerr.
35341 2011-05-21  Bruno Haible  <bruno@clisp.org>
35343         relocatable-prog-wrapper: Fix possible link error.
35344         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Move determination of
35345         HAVE_SETENV and REPLACE_SETENV and AC_LIBOBJ invocation from here...
35346         (gl_FUNC_SETENV): ... to here.
35347         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL_SEPARATE): Update comment.
35348         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): Likewise.
35350 2011-05-21  Bruno Haible  <bruno@clisp.org>
35352         relocatable-prog-wrapper: Assume strerror() exists.
35353         * modules/relocatable-prog-wrapper (Files): Remove lib/strerror.c,
35354         m4/strerror.m4.
35355         (configure.ac): Don't invoke gl_FUNC_STRERROR_SEPARATE.
35356         * lib/relocwrapper.c: Remove mention of strerror module.
35357         * lib/strerror.c: Assume REPLACE_STRERROR is 1.
35358         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Remove macro.
35359         (gl_FUNC_STRERROR): Inline it here. Don't define REPLACE_STRERROR as a
35360         C macro.
35362 2011-05-21  Bruno Haible  <bruno@clisp.org>
35364         select: Simplify replacement idiom.
35365         * m4/select.m4 (gl_FUNC_SELECT): Set REPLACE_SELECT also on native
35366         Win32 platforms.
35367         * lib/sys_select.in.h (select): Simplify accordingly.
35368         * modules/select (Depends-on): Likewise.
35370 2011-05-21  Bruno Haible  <bruno@clisp.org>
35372         mkdir-p: Simplify autoconf macro.
35373         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't require gl_FUNC_LCHMOD,
35374         gl_FUNC_LCHOWN.
35376 2011-05-21  Eric Blake  <eblake@redhat.com>
35378         strerror_r: avoid clobbering strerror on cygwin
35379         * lib/strerror_r.c (strerror_r): Don't use cygwin's strerror_r;
35380         fall back instead to sys_errlist.
35381         * modules/strerror (configure.ac): Add witness.
35382         * tests/test-strerror_r.c (main): Enhance test.
35383         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
35384         * tests/test-perror2.c (main): Free memory before exit.
35386 2011-05-21  Bruno Haible  <bruno@clisp.org>
35388         mkdtemp: Use gnulib naming conventions.
35389         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Renamed from gt_FUNC_MKDTEMP.
35390         * modules/mkdtemp (configure.ac): Update.
35392 2011-05-20  Eric Blake  <eblake@redhat.com>
35394         strerror_r: avoid corrupting errno on Solaris
35395         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Check for Solaris behavior.
35396         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
35398         strerror_r: avoid compiler warning
35399         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't return a char*.
35401         strerror_r: simplify AIX code
35402         * lib/strerror_r.c (strerror_r): Filter out buflen of 1 up front.
35404         test-perror: avoid spurious failure on FreeBSD
35405         * modules/perror-tests (Depends-on): Add strerror, now that
35406         strerror_r no longer pulls it in.
35408 2011-05-20  Bruno Haible  <bruno@clisp.org>
35410         strerror_r-posix: Remove unused dependencies.
35411         * modules/strerror_r-posix (Depends-on): Remove strerror.
35412         Reported by Eric Blake.
35414 2011-05-20  Paul Eggert  <eggert@cs.ucla.edu>
35416         intprops: remove assumption about A|B representation
35417         * lib/intprops.h (_GL_BINARY_OP_OVERFLOW): Do not assume that A|B
35418         is a valid integer if both A and B are.  Although this is true for
35419         all known practical hosts, the C standard doesn't guarantee it,
35420         and the code need not assume it.  Also, this change may work around
35421         HP-UX 11.23 and IRIX 6.5 cc bugs reported by Bruno Haible in
35422         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00426.html>.
35424 2011-05-20  Eric Blake  <eblake@redhat.com>
35426         perror: work around FreeBSD bug
35427         * m4/perror.m4 (gl_FUNC_PERROR): Also replace perror if strerror_r
35428         is broken.  Move AC_LIBOBJ...
35429         * modules/perror (configure.ac): Here.
35430         * doc/posix-functions/perror.texi (perror): Document this.
35431         * tests/test-perror2.c (main): Enhance test.
35433         test-perror: check for strerror interactions
35434         * tests/macros.h (STREQ): Add macro.
35435         * modules/perror-tests (Files): Add second test.
35436         * tests/test-perror2.c (main): New file.
35437         * doc/posix-functions/perror.texi (perror): Document glibc bug.
35439         test-perror: rewrite to use init script
35440         * modules/perror-tests (Files): Add init.sh.
35441         * tests/test-perror.sh: Use temporary directory.
35443 2011-05-20  Jim Meyering  <meyering@redhat.com>
35445         maint: replace misused "a" with "an"
35446         * doc/intprops.texi: "a integer"
35447         * doc/regex.texi: "a explanation"
35448         * lib/alignof.h: "a object"
35449         * lib/argmatch.h: "a explanation"
35450         * lib/argp-help.c: "a option" and "a OPTION_DOC"
35451         * lib/stdint.in.h: "a integer"
35452         * lib/userspec.c: "a owner"
35453         * doc/gnulib.texi: Fix "a idea", and reword.
35455 2011-05-19  Jim Meyering  <meyering@redhat.com>
35457         maint: correct misuse of "a" and "an"
35458         * doc/regex.texi (Collating Symbol Operators): s/an close.../a close/
35459         * lib/argp-help.c: "an docum...": s/an/a/
35460         * lib/argp-parse.c: "An vector": s/An/A/
35461         * lib/execute.c: "an native": s/an/a/
35462         * lib/spawn-pipe.c: Likewise.
35463         * lib/gc.h: "an Gc_rc": s/an/a/
35464         * lib/unigbrk.in.h: "an grapheme": s/an/a/
35465         * lib/fts.c: "an stat.st_dev": s/an/a/
35467 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
35469         intprops-tests: work around HP-UX 11.23 cc bug with constants
35470         * tests/test-intprops.c (VERIFY): New macro.
35471         (main): Use it, instead of verify, to work around the compiler bug; see
35472         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00401.html>.
35474         intprops: work around IRIX 6.5 cc bug with 0u - 0u + -1
35475         See http://lists.gnu.org/r/bug-gnulib/2011-05/msg00406.html
35476         * lib/intprops.h (_GL_INT_NEGATE_CONVERT): New macro.
35477         (_GL_INT_SIGNED, _GL_INT_MAXIMUM, _GL_DIVIDE_OVERFLOW):
35478         (_GL_REMAINDER_OVERFLOW): Use it.
35480         intprops-tests: revert unsigned part of previous change
35481         * tests/test-intprops.c (UINT_MAX, ULONG_MAX, UINTMAX_MAX, U0, U1):
35482         Remove; they weren't actually needed.  All uses of U0 and U1 removed,
35483         and other casts to 'unsigned int' reverted to 'u' suffixes.  See
35484         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00406.html>.
35486 2011-05-19  Bruno Haible  <bruno@clisp.org>
35488         strerror_r: Work around strerror_r() change in Cygwin 1.7.8.
35489         * lib/strerror_r.c (strerror_r) [CYGWIN]: Recognize when the system's
35490         strerror_r() returned without filling the buffer.
35491         Reported by Eric Blake.
35493 2011-05-19  Eric Blake  <eblake@redhat.com>
35495         strerror_r: guarantee unchanged errno
35496         * lib/strerror_r.c (strerror_r): Guarantee unchanged errno.
35497         * lib/strerror-impl.h (strerror): Set errno to match strerror_r
35498         failure.
35499         * tests/test-strerror_r.c (main): Enhance test.
35501 2011-05-19  Bruno Haible  <bruno@clisp.org>
35503         strerror_r: Reorder #if blocks.
35504         * lib/strerror_r.c (strerror_r): Reorder conditionals in the function
35505         for consistency with the previous commit.
35507 2011-05-19  Bruno Haible  <bruno@clisp.org>
35509         perror: Avoid clobbering the strerror buffer when possible.
35510         * lib/strerror-impl.h: New file, extracted from lib/strerror.c.
35511         * lib/strerror.c: Include it.
35512         * modules/strerror (Files): Add lib/strerror-impl.h.
35513         * lib/perror.c: Include <stdlib.h>, intprops.h, verify.h.
35514         (my_strerror): New function, defined through lib/strerror-impl.h.
35515         (perror): Use it instead of strerror.
35516         * modules/perror (Files): Add lib/strerror-impl.h.
35517         (Depends-on): Remove strerror. Add intprops, verify, strerror_r-posix.
35519 2011-05-19  Eric Blake  <eblake@redhat.com>
35521         strerror_r: fix on newer cygwin
35522         * lib/strerror_r.c (strerror_r): Cygwin now has
35523         __xpg_strerror_r, use it.
35525 2011-05-19  Bruno Haible  <bruno@clisp.org>
35527         strerror_r: Avoid clobbering the strerror buffer when possible.
35528         * lib/strerror.c: Define _NETBSD_SOURCE. Include <nl_types.h>.
35529         (sys_nerr, sys_errlist): New declarations.
35530         (strerror_r): Be careful not to clobber the strerror buffer on NetBSD,
35531         HP-UX, native Win32, IRIX, and 32-bit Solaris.
35532         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Test whether catgets exists.
35534 2011-05-19  Bruno Haible  <bruno@clisp.org>
35536         strerror_r: Fix test failure on mingw.
35537         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't define
35538         EXTEND_STRERROR_R.
35539         * lib/strerror_r.c (strerror_r): Test the various GNULIB_defined_*
35540         macros from errno.in.h instead.
35542 2011-05-19  Eric Blake  <eblake@redhat.com>
35544         strerror: relax test for Solaris
35545         * tests/test-strerror.c (main): Permit Solaris behavior.
35546         * tests/test-strerror_r.c (main): Likewise.
35548         strerror: enforce POSIX ruling on strerror(0)
35549         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Expose BSD bug.
35550         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
35551         * lib/strerror_r.c (rpl_strerror_r): Work around it.
35552         * doc/posix-functions/strerror.texi (strerror): Document it.
35553         * doc/posix-functions/strerror_r.texi (strerror_r): Likewise.
35554         * tests/test-strerror.c (main): Strengthen test.
35555         * tests/test-strerror_r.c (main): Likewise.
35557 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
35559         intprop-tests: port to older and more-pedantic compilers
35560         * modules/intprops-tests (Files): Add tests/macros.h.
35561         * tests/test-intprops.c: Include macros.h.
35562         (TYPE_IS_INTEGER): Use ASSERT, not verify, to test this macro, as
35563         it's no longer documented to expand to an integer constant expression.
35564         (TYPE_SIGNED): Use ASSERT, not verify, to test this macro when the
35565         argument is floating point, as it's no longer documented to expand
35566         to an integer constant expression in that case.
35567         (UINT_MAX, ULONG_MAX, UINTMAX_MAX): Redefine to work around
35568         compiler bugs reported by Bruno Haible.  See
35569         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00401.html>.
35570         (U0, U1): New constants, to work around the same bugs.  Also,
35571         in tests, use e.g., "(unsigned int) 39" rather than "39u".
35573         intprops: work around C compiler bugs
35574         * lib/intprops.h (INT_MULTIPLY_RANGE_OVERFLOW): Work around compiler
35575         bug in Sun C 5.11 2010/08/13 and other compilers; see
35576         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00401.html>.
35578         intprops: TYPE_IS_INTEGER, TYPE_SIGNED not integer constant exprs
35579         * doc/intprops.texi (Integer Type Determination): Fix
35580         documentation for TYPE_IS_INTEGER: it returns an constant
35581         expression, not an integer constant expression.  Fix doc for
35582         TYPE_SIGNED: it returns an integer constant expression only if its
35583         argument is an integer type.  (TYPE_IS_INTEGER is the same, but is
35584         hardly worth documented that way....)
35586 2011-05-18  Bruno Haible  <bruno@clisp.org>
35588         strerror_r: Avoid clobbering the strerror buffer when possible.
35589         * lib/strerror_r.c (strerror_r): Merge the three implementations.
35590         Handle gnulib defined errno values here. When strerror() returns NULL
35591         or an empty string, return EINVAL.
35592         * lib/strerror.c (strerror): Always call strerror_r. Don't handle
35593         gnulib defined errno values here.
35594         * modules/strerror (Depends-on): Add verify, strerror_r-posix.
35596 2011-05-18  Eric Blake  <eblake@redhat.com>
35598         fnmatch: avoid compiler warning
35599         * lib/fnmatch_loop.c (FCT): Use correct type.
35600         Reported by Matthias Bolte.
35602 2011-05-13  Jim Meyering  <meyering@redhat.com>
35604         maint.mk: three new prohibit_<HDR>_without_use rules
35605         * top/maint.mk (sc_prohibit_stdio--_without_use): New rule.
35606         (sc_prohibit_stdio-safer_without_use): Likewise.
35607         (sc_prohibit_xfreopen_without_use): Likewise.
35609 2011-05-17  Jim Meyering  <meyering@redhat.com>
35611         announce-gen: fail if the NEWS delta is empty
35612         If there's nothing noteworthy in NEWS, then either you forgot
35613         or you shouldn't be releasing.
35614         * build-aux/announce-gen: Die if the NEWS delta is effectively empty.
35616 2011-05-17  Pádraig Brady  <P@draigBrady.com>
35618         * top/maint.mk (_gl_tight_scope:): Automatically exclude compiler
35619         reserved symbols starting with double underscore from the check.
35621 2011-05-17  Paul Eggert  <eggert@cs.ucla.edu>
35623         intprops: add doc
35624         * doc/intprops.texi: New file, documenting intprops.
35625         * doc/gnulib.texi (Particular Modules): Include it.
35627         verify: add doc to gnulib manual and fix example
35628         * doc/gnulib.texi (Compile-time Assertions): New node, for 'verify'.
35629         * doc/verify.texi (Compile-time Assertions): Update 'assert' doc.
35630         (Compile-time Assertions): Fix example so it can't overflow.
35632 2011-05-17  Jim Meyering  <meyering@redhat.com>
35634         warnings.m4: don't usurp save_CPPFLAGS variable name
35635         * m4/warnings.m4: Prefix local temporary variable name with gl_.
35637         doc: fix typo
35638         * doc/gnulib-intro.texi (Target Platforms): s/is/are/
35640 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
35641             Bruno Haible  <bruno@clisp.org>
35643         doc: Tweak recent change.
35644         * README (Portability guidelines): Tweak new text.
35645         * doc/gnulib-intro.texi (Target Platforms): Likewise. Mention
35646         Interix 6.1.
35648 2011-05-16  Eric Blake  <eblake@redhat.com>
35650         inttypes: avoid autoconf warning
35651         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Only expand once.
35652         * m4/stdint.m4 (gl_STDINT_H): Likewise.
35654 2011-05-16  Sam Steingold  <sds@gnu.org>
35655         and Eric Blake  <eblake@redhat.com>
35657         vc-list-files: accept multiple directory operands
35658         * build-aux/vc-list-files: Iterate over all remaining operands.
35660 2011-05-16  Bruno Haible  <bruno@clisp.org>
35662         Fix confusion regarding deprecated modules.
35663         * modules/calloc (Status, Notice): Mark module as deprecated, not
35664         obsolete.
35665         * modules/fnmatch-posix (Status, Notice): Likewise.
35666         * modules/getdate (Status, Notice): Likewise.
35667         * modules/getopt (Status, Notice): Likewise.
35668         * modules/malloc (Status, Notice): Likewise.
35669         * modules/pipe (Status, Notice): Likewise.
35670         * modules/realloc (Status, Notice): Likewise.
35671         * modules/rename-dest-slash (Status, Notice): Likewise.
35672         * modules/unictype/bidicategory-all (Status, Notice): Likewise.
35673         * modules/unictype/bidicategory-byname (Status, Notice): Likewise.
35674         * modules/unictype/bidicategory-name (Status, Notice): Likewise.
35675         * modules/unictype/bidicategory-of (Status, Notice): Likewise.
35676         * modules/unictype/bidicategory-test (Status, Notice): Likewise.
35678 2011-05-16  Bruno Haible  <bruno@clisp.org>
35680         doc: List the target platforms.
35681         * doc/gnulib-intro.texi (Target Platforms): New section.
35682         * doc/gnulib.texi (Introduction): Update menu.
35683         * README (Portability guidelines): Refer to the new section. Update
35684         statement about oldest supported environment. Remove rationale why
35685         <errno.h>, <string.h>, <stdlib.h> are assumed. Update example of an
35686         unportable C89 function.
35687         Reported by Bastien Roucariès <roucaries.bastien@gmail.com> and
35688         Charles Wilson <cygwin@cwilson.fastmail.fm>. Feedback from Paul Eggert.
35690 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
35692         * build-aux/bootstrap (gnulib_tool): Handle symlink timestamps better.
35694 2011-05-13  Paul Eggert  <eggert@cs.ucla.edu>
35696         intprops-tests: new module
35697         * modules/intprops-tests, tests/test-intprops.c: New files.
35699         intprops: add safe, portable integer overflow checking
35700         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_TWOS_COMPLEMENT):
35701         (_GL_INT_SIGNED, _GL_INT_MINIMUM, _GL_INT_MAXIMUM):
35702         (_GL_SIGNED_INT_MINIMUM, INT_ADD_RANGE_OVERFLOW):
35703         (INT__SUBTRACT__RANGE_OVERFLOW, INT_NEGATE_RANGE_OVERFLOW):
35704         (INT_MULTIPLY_RANGE_OVERFLOW, INT_REMAINDER_RANGE_OVERFLOW):
35705         (INT_LEFT_SHIFT_RANGE_OVERFLOW, _GL_ADD_OVERFLOW):
35706         (_GL__SUBTRACT__OVERFLOW, _GL_MULTIPLY_OVERFLOW, _GL_DIVIDE_OVERFLOW):
35707         (_GL_REMAINDER_OVERFLOW, _GL_UNSIGNED_NEG_MULTIPLE, INT_ADD_OVERFLOW):
35708         (INT__SUBTRACT__OVERFLOW, INT_NEGATE_OVERFLOW, INT_MULTIPLY_OVERFLOW):
35709         (INT_DIVIDE_OVERFLOW, INT_REMAINDER_OVERFLOW):
35710         (INT_LEFT_SHIFT_OVERFLOW, _GL_BINARY_OP_OVERFLOW): New macros.
35712 2011-05-12  James Youngman  <jay@gnu.org>
35714         Add a test for glibc's Bugzilla bug #12378.
35715         * m4/fnmatch.m4: Use gnulib's fnmatch if the system fnmatch
35716         doesn't allow the literal matching of a lone "[" (which is
35717         required by POSIX).
35718         * tests/test-fnmatch.c (main): Check that "[/b" matches itself.
35720 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
35722         Sync glibc change fixing Bugzilla bug #12378.
35723         * lib/fnmatch_loop.c (FCT): When matching '[' keep track of
35724         beginning and fall back to matching as normal character if the
35725         string ends before the matching ']' is found.  This is what POSIX
35726         requires.
35728 2011-05-13  Eric Blake  <eblake@redhat.com>
35730         getcwd-lgpl: relax test for FreeBSD
35731         * doc/posix-functions/getcwd.texi (getcwd): Document portability
35732         issue.
35733         * tests/test-getcwd-lgpl.c (main): Relax test.
35734         Reported by Matthias Bolte.
35736 2011-05-11  Eric Blake  <eblake@redhat.com>
35738         test-fflush: silence compiler warning
35739         * tests/test-fflush.c (main): Don't fclose a NULL pointer.
35741 2011-05-11  Bruno Haible  <bruno@clisp.org>
35743         canonicalize, canonicalize-lgpl: Avoid crash dialog on MacOS X.
35744         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Add GL_NOCRASH code.
35745         * modules/canonicalize (Depends-on): Add 'nocrash'.
35746         * modules/canonicalize-lgpl (Depends-on): Likewise.
35747         * doc/posix-functions/realpath.texi: Update platforms list.
35748         Reported by Ryan Schmidt <ryandesign@macports.org>.
35750 2011-05-11  Bruno Haible  <bruno@clisp.org>
35752         group-member: Declare function in <unistd.h>.
35753         * lib/unistd.in.h (group_member): New declaration.
35754         * lib/group-member.h: Remove file.
35755         * lib/group-member.c: Include <unistd.h> instead of group-member.h.
35756         * tests/test-unistd-c++.cc: Check signature of group_member.
35757         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Require
35758         gl_UNISTD_H_DEFAULTS. Set HAVE_GROUP_MEMBER.
35759         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether group_member is declared.
35760         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GROUP_MEMBER,
35761         HAVE_GROUP_MEMBER.
35762         * modules/group-member (Files): Remove lib/group-member.h.
35763         (Depends-on): Add unistd. Specify conditions.
35764         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
35765         (Include): Change to <unistd.h>.
35766         * modules/unistd (Makefile.am): Substitute GNULIB_GROUP_MEMBER,
35767         HAVE_GROUP_MEMBER.
35768         * NEWS: Mention the change.
35769         * lib/euidaccess.c: Don't include group-member.h.
35771 2011-05-11  Bruno Haible  <bruno@clisp.org>
35773         group-member: Document module.
35774         * doc/glibc-functions/group_member.texi: Mention the 'group-member'
35775         module.
35777 2011-05-11  Bruno Haible  <bruno@clisp.org>
35779         fclose: Fix mistake earlier today.
35780         * lib/fclose.c (rpl_fclose): Don't assume that EOF < 0.
35782 2011-05-11  Eric Blake  <eblake@redhat.com>
35784         fclose: preserve fflush errors
35785         * lib/fclose.c (rpl_fclose): Don't lose fflush errors.
35786         Reported by Jim Meyering.
35788         bootstrap: support a prereq of 'rpcgen -' on RHEL5
35789         * build-aux/bootstrap (check_versions): When no specific version
35790         is required, merely check that the app produces an exit status
35791         that indicates its existence.
35793         maint.mk: drop redundant check
35794         * top/maint.mk (sc_the_the): Delete; sc_prohibit_doubled_word does
35795         the same but better.
35797 2011-05-11  Bruno Haible  <bruno@clisp.org>
35799         fclose: Fix possible link error.
35800         * lib/fclose.c (rpl_fclose): Invoke _gl_unregister_fd, not
35801         unregister_shadow_fd. Improve comments.
35802         * lib/sockets.c (close_fd_maybe_socket): Add comments. Reported by
35803         Eric Blake.
35805 2011-05-11  Jim Meyering  <meyering@redhat.com>
35807         maint.mk: improve "can not" detection and generalize rule name
35808         * top/maint.mk (sc_prohibit_undesirable_word_seq): Renamed from
35809         sc_prohibit_can_not, since we'll probably add a few more word pairs here.
35810         Use the same technique as in sc_prohibit_doubled_word, so that
35811         we recognize "can not" also when the words are separated by a newline.
35812         Suggested by Eric Blake.
35813         (perl_filename_lineno_text_): Define.  Factored out of...
35814         (prohibit_doubled_word_): ...here.  Use the new definition.
35815         (prohibit_undesirable_word_seq_): New var.  Use it here, too.
35816         (prohibit_undesirable_word_seq_RE_): New overridable variable.
35817         (ignore_undesirable_word_sequence_RE_): New overridable variable.
35819 2011-05-10  Eric Blake  <eblake@redhat.com>
35821         fclose: avoid double close race when possible
35822         * lib/fclose.c (rpl_fclose): Rewrite to avoid double-close race on
35823         all but WINDOWS_SOCKETS.
35825 2011-05-10  Bastien Roucariès  <roucaries.bastien@gmail.com>
35827         openat: correct new comment
35828         * lib/openat-proc.c (openat_proc_name): Correct the comment.
35830 2011-05-10  Jim Meyering  <meyering@redhat.com>
35832         openat: add comments
35833         * lib/openat-proc.c (openat_proc_name): Add comments,
35834         mostly from Eric Blake.
35836 2011-05-09  Eric Blake  <eblake@redhat.com>
35838         openat: reduce syscalls in first probe of /proc
35839         * lib/openat-proc.c (openat_proc_name): Require that /proc/self/fd
35840         be a directory.  Simplify the probe for .. bugs.
35841         * modules/openat (Depends-on): Drop same-inode.
35842         Reported by Bastien ROUCARIES.
35844 2011-05-09  Jim Meyering  <meyering@redhat.com>
35846         maint.mk: change semantics/name of tight_scope variables
35847         * top/maint.mk (_gl_TS_var_match, _gl_TS_function_match):
35848         Rename variables to align with semantics that make them more useful.
35850         maint.mk: tweak new rule's name not to impinge
35851         * top/maint.mk (_gl_tight_scope): Rename from sc_tight_scope-0.
35852         (sc_tight_scope): Use new rule name rather than $@-0.
35854         maint.mk: add a syntax-check rule to ensure tightly-scoped symbols
35855         * top/maint.mk (sc_tight_scope): New rule.
35856         (sc_tight_scope-0): New rule, ifdef'd out.
35857         (_gl_TS_dir): Default.
35858         (_gl_TS_unmarked_extern_functions, _gl_TS_function_regex): Define.
35859         (_gl_TS_unmarked_extern_vars, _gl_TS_var_regex): Define.
35861 2011-05-09  Simon Josefsson  <simon@josefsson.org>
35863         * m4/gc.m4: Remove gl_PREREQ_GC (not used).  Reported by Bruno
35864         Haible <bruno@clisp.org>.
35866 2011-05-08  Bruno Haible  <bruno@clisp.org>
35868         Comments.
35869         * m4/isnanf.m4: Add comment.
35870         * m4/isnanl.m4: Likewise.
35872 2011-05-08  Bruno Haible  <bruno@clisp.org>
35874         glob: Remove obsolete macro.
35875         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): Remove macro.
35877 2011-05-08  Paul Eggert  <eggert@cs.ucla.edu>
35879         intprops: Sun C 5.11 supports __typeof__
35880         * lib/intprops.h (_GL_HAVE___TYPEOF__): New macro, which is set
35881         for either GCC 2 or later, as before, or for Sun C 5.11 or later,
35882         which is new.
35883         (_GL_SIGNED_TYPE_OR_EXPR): Use it.
35885         intprops: switch to usual gnulib indenting and naming
35886         * lib/intprops.h (_GL_INTPROPS_H): Rename from GL_INTPROPS_H.
35887         (_GL_SIGNED_TYPE_OR_EXPR): Rename from signed_type_or_expr__.
35889         * tests/test-inttostr.c (IS_TIGHT): Adjust to above renaming.
35891 2011-05-08  Jim Meyering  <meyering@redhat.com>
35893         maint.mk: suppress "Entering/Leaving directory" diag in announcement
35894         * top/maint.mk (release-prep): Use make's --no-print-directory
35895         option when generating the announcement.  This eliminates the
35896         pesky "make[2]: Entering/Leaving directory" diagnostics in the
35897         generated announcement template.
35899 2011-05-08  Bruno Haible  <bruno@clisp.org>
35901         tzset: Fix gettimeofday wrapper on Solaris 2.6.
35902         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): When invoking
35903         gl_GETTIMEOFDAY_REPLACE_LOCALTIME, also set REPLACE_GETTIMEOFDAY.
35905 2011-05-07  Paul Eggert  <eggert@cs.ucla.edu>
35907         ignore-value, verify: Omit include files from lib_SOURCES.
35908         * modules/ignore-value, modules/verify (Makefile.am):
35909         Don't put ignore-value.h, or verify.h, into lib_SOURCES, as
35910         that leads Automake to duplicate use of am__objects_... variables
35911         in Makefile.in.  See
35912         <http://lists.gnu.org/r/emacs-devel/2011-05/msg00257.html>.
35914 2011-05-07  Bruno Haible  <bruno@clisp.org>
35916         fclose: Simplify autoconf macro.
35917         * m4/fclose.m4 (gl_FUNC_FCLOSE): Assume gl_FUNC_FFLUSH_STDIN is
35918         defined.
35920 2011-05-07  Bruno Haible  <bruno@clisp.org>
35922         canonicalize-lgpl: Fix autoconf macro ordering bug.
35923         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Require
35924         gl_STDLIB_H_DEFAULTS.
35926 2011-05-06  Eric Blake  <eblake@redhat.com>
35928         maintainer-makefile: make sc_po_check easier to tune
35929         * top/maint.mk (sc_po_check): Allow overriding which non-VC files
35930         to probe for strings, such as an alternate location for gnulib.
35932         fclose: guarantee behavior on seekable stdin
35933         * modules/fclose (Depends-on): Add fflush.
35934         * doc/posix-functions/fclose.texi (fclose): Document this.
35935         * tests/test-fclose.c (main): Make test for this unconditional.
35937 2011-05-06  Bruno Haible  <bruno@clisp.org>
35939         fflush, fpurge: Relicense under LGPLv2+.
35940         * modules/fflush (License): Change from LGPLv3+ to LGPLv2+.
35941         * modules/fpurge (License): Likewise.
35942         With permission from Eric Blake and Jim Meyering.
35943         Suggested by Eric Blake.
35945 2011-05-06  Karl Berry  <karl@gnu.org>
35947         * MODULES.html.sh (func_all_modules): remove exit.
35949 2011-05-06  Jim Meyering  <meyering@redhat.com>
35951         maint.mk: use info-gnu@ as the default only for a stable release
35952         * top/maint.mk: Don't default to info-gnu for alpha or beta releases.
35953         For those, just use $(PACKAGE_BUGREPORT), in which case we don't have
35954         to set the Mail-Followup-To header.  Prompted by Reuben Thomas in
35955         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26488
35957 2011-05-05  Paul Eggert  <eggert@cs.ucla.edu>
35959         assert-h: new module, which supports C1X-style static_assert
35960         * lib/assert.in.h, m4/assert_h.m4, modules/assert-h: New files.
35961         * lib/verify.h: Revamp so that this can be copied into assert.h,
35962         while retaining the ability to use it standalone as before.
35963         Rename private identifiers so as not to encroach on the
35964         standard C namespace, since this is now used by assert.h.
35965         (_GL_VERIFY_TYPE): New macro, factoring out differing parts of
35966         the old verify_true.
35967         (_GL_VERIFY_TRUE): New macro, with much of the contents of
35968         the old verify_true.  Use _GL_VERIFY_TYPE.
35969         (_GL_VERIFY): New macro, with much of the contents of the old verify.
35970         (static_assert): New macro, if _GL_STATIC_ASSERT_H
35971         is defined and static_assert is not; _GL_STATIC_ASSERT_H is
35972         defined when this file is copied into the replacement assert.h.
35973         (_Static_assert): New macro, if _GL_STATIC_ASSERT_H is defined
35974         and _Static_assert is not built in.
35975         (verify_true, verify): Define only if _GL_STATIC_ASSERT_H is not
35976         defined, and use the new macros mentioned above.
35977         * doc/posix-headers/assert.texi: Document this.
35979 2011-05-05  Bruno Haible  <bruno@clisp.org>
35981         fclose, fflush: Respect rules for use of AC_LIBOBJ.
35982         * m4/fflush.m4 (gl_FUNC_FFLUSH): Don't invoke gl_REPLACE_FCLOSE.
35983         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_FFLUSH_STDIN and
35984         gl_REPLACE_FCLOSE here.
35985         * modules/fflush (Depends-on): Remove fclose.
35986         * doc/posix-functions/fclose.texi: Mention module 'fflush' only in
35987         combination with module 'fclose'.
35989 2011-05-05  Bruno Haible  <bruno@clisp.org>
35991         fflush, fseeko: Respect rules for use of AC_LIBOBJ.
35992         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): New macro, extracted from
35993         gl_FUNC_FFLUSH.
35994         (gl_FUNC_FFLUSH): Use it.
35995         (gl_REPLACE_FFLUSH): Don't invoke gl_REPLACE_FSEEKO.
35996         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Invoke gl_FUNC_FFLUSH_STDIN and
35997         gl_REPLACE_FSEEKO here.
35999 2011-05-05  Bruno Haible  <bruno@clisp.org>
36001         tzset: Relicense under LGPL.
36002         * modules/tzset (License): Change to LGPL.
36003         No agreement needed; it's a no-op.
36005         strtoimax, strtoumax: Relicense under LGPL.
36006         * modules/strtoimax (License): Change to LGPL.
36007         * modules/strtoumax (License): Likewise.
36008         With permission from Jim Meyering, Paul Eggert:
36009         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00124.html>
36010         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00109.html>
36012         getgroups: Relicense under LGPL.
36013         * modules/getgroups (License): Change to LGPL.
36014         With permission from Jim Meyering, Paul Eggert, Eric Blake:
36015         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00111.html>
36016         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00148.html>
36017         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00138.html>
36019         nanosleep: Relicense under LGPL.
36020         * modules/nanosleep (License): Change to LGPL.
36021         With permission from Jim Meyering, Paul Eggert, Eric Blake, Bruno
36022         Haible:
36023         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00111.html>
36024         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00148.html>
36025         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00138.html>
36026         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00131.html>
36028         futimens: Relicense under LGPL.
36029         * modules/futimens (License): Change to LGPL.
36030         With permission from Eric Blake:
36031         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00138.html>
36033         fflush: Relicense under LGPL.
36034         * modules/fflush (License): Change to LGPL.
36035         With permission from Eric Blake, Bruno Haible, Jim Meyering:
36036         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00138.html>
36037         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00131.html>
36038         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00133.html>
36040         tmpfile: Relicense under LGPL.
36041         * modules/tmpfile (License): Change to LGPL.
36042         With permission from Ben Pfaff:
36043         <http://lists.gnu.org/r/bug-gnulib/2010-12/msg00185.html>
36045         isfinite: Relicense under LGPL.
36046         * modules/isfinite (License): Change to LGPL.
36047         With permission from Ben Pfaff, Bruno Haible:
36048         <http://lists.gnu.org/r/bug-gnulib/2010-12/msg00185.html>
36049         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00130.html>
36051         acosl..tanl: Relicense under LGPL.
36052         * modules/acosl (License): Change to LGPL.
36053         * modules/asinl (License): Likewise.
36054         * modules/atanl (License): Likewise.
36055         * modules/cosl (License): Likewise.
36056         * modules/expl (License): Likewise.
36057         * modules/logl (License): Likewise.
36058         * modules/sinl (License): Likewise.
36059         * modules/sqrtl (License): Likewise.
36060         * modules/tanl (License): Likewise.
36061         Source code originally from glibc and Paolo Bonzini. Agreements:
36062         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00137.html>
36063         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00128.html>
36065 2011-05-05  Bruno Haible  <bruno@clisp.org>
36067         signal: Define sighandler_t.
36068         * lib/signal.in.h (sighandler_t): New type.
36069         * m4/signal_h.m4 (gl_SIGNAL_H): Require AC_USE_SYSTEM_EXTENSIONS. Test
36070         whether sighandler_t is defined.
36071         (gl_SIGNAL_H_DEFAULTS): Initialize HAVE_SIGHANDLER_T.
36072         * modules/signal (Depends-on): Add extensions.
36073         (Makefile.am): Substitute HAVE_SIGHANDLER_T.
36074         * doc/posix-headers/signal.texi: Mention the problem with sighandler_t.
36075         Suggested by Markus Steinborn <gnugv_maintainer@yahoo.de>.
36077 2011-05-05  Eric Blake  <eblake@redhat.com>
36079         maint: remove useless REPLACE_*_H macros
36080         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Delete.
36081         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
36082         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
36083         * m4/poll_h.m4 (gl_REPLACE_POLL_H): Likewise.
36084         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
36085         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
36086         * m4/wchar_h.m4 (gl_REPLACE_WCHAR_H): Likewise.
36087         * m4/btowc.m4: Update callers.
36088         * m4/dirfd.m4: Likewise.
36089         * m4/duplocale.m4: Likewise.
36090         * m4/fchdir.m4: Likewise.
36091         * m4/fdopendir.m4: Likewise.
36092         * m4/inet_ntop.m4: Likewise.
36093         * m4/inet_pton.m4: Likewise.
36094         * m4/ioctl.m4: Likewise.
36095         * m4/mbrlen.m4: Likewise.
36096         * m4/mbrtowc.m4: Likewise.
36097         * m4/mbsinit.m4: Likewise.
36098         * m4/mbsnrtowcs.m4: Likewise.
36099         * m4/mbsrtowcs.m4: Likewise.
36100         * m4/poll.m4: Likewise.
36101         * m4/setlocale.m4: Likewise.
36102         * m4/wcrtomb.m4: Likewise.
36103         * m4/wcsnrtombs.m4: Likewise.
36104         * m4/wcsrtombs.m4: Likewise.
36105         * m4/wctob.m4: Likewise.
36106         * m4/wcwidth.m4: Likewise.
36107         * modules/posix_spawn: Likewise.
36108         * modules/posix_spawn_file_actions_addclose: Likewise.
36109         * modules/posix_spawn_file_actions_adddup2: Likewise.
36110         * modules/posix_spawn_file_actions_addopen: Likewise.
36111         * modules/posix_spawn_file_actions_destroy: Likewise.
36112         * modules/posix_spawn_file_actions_init: Likewise.
36113         * modules/posix_spawnattr_destroy: Likewise.
36114         * modules/posix_spawnattr_getflags: Likewise.
36115         * modules/posix_spawnattr_getpgroup: Likewise.
36116         * modules/posix_spawnattr_getschedparam: Likewise.
36117         * modules/posix_spawnattr_getschedpolicy: Likewise.
36118         * modules/posix_spawnattr_getsigdefault: Likewise.
36119         * modules/posix_spawnattr_getsigmask: Likewise.
36120         * modules/posix_spawnattr_init: Likewise.
36121         * modules/posix_spawnattr_setflags: Likewise.
36122         * modules/posix_spawnattr_setpgroup: Likewise.
36123         * modules/posix_spawnattr_setschedparam: Likewise.
36124         * modules/posix_spawnattr_setschedpolicy: Likewise.
36125         * modules/posix_spawnattr_setsigdefault: Likewise.
36126         * modules/posix_spawnattr_setsigmask: Likewise.
36127         * modules/posix_spawnp: Likewise.
36129 2011-05-04  Reuben Thomas  <rrt@sc3d.org>
36131         Add option to do-release-commit-and-tag to specify branch.
36132         * build-aux/do-release-commit-and-tag: Add --branch.
36134 2011-05-03  Bruno Haible  <bruno@clisp.org>
36136         Avoid unnecessary compilation units, through conditional dependencies.
36137         * modules/accept (Depends-on): Add conditions to the dependencies.
36138         * modules/acosl (Depends-on): Likewise.
36139         * modules/argz (Depends-on): Likewise.
36140         * modules/asinl (Depends-on): Likewise.
36141         * modules/atanl (Depends-on): Likewise.
36142         * modules/atoll (Depends-on): Likewise.
36143         * modules/bind (Depends-on): Likewise.
36144         * modules/btowc (Depends-on): Likewise.
36145         * modules/canonicalize-lgpl (Depends-on): Likewise.
36146         * modules/ceil (Depends-on): Likewise.
36147         * modules/ceilf (Depends-on): Likewise.
36148         * modules/ceill (Depends-on): Likewise.
36149         * modules/chdir-long (Depends-on): Likewise.
36150         * modules/chown (Depends-on): Likewise.
36151         * modules/close (Depends-on): Likewise.
36152         * modules/connect (Depends-on): Likewise.
36153         * modules/cosl (Depends-on): Likewise.
36154         * modules/dirfd (Depends-on): Likewise.
36155         * modules/dprintf (Depends-on): Likewise.
36156         * modules/dprintf-posix (Depends-on): Likewise.
36157         * modules/error (Depends-on): Likewise.
36158         * modules/euidaccess (Depends-on): Likewise.
36159         * modules/expl (Depends-on): Likewise.
36160         * modules/faccessat (Depends-on): Likewise.
36161         * modules/fchdir (Depends-on): Likewise.
36162         * modules/fclose (Depends-on): Likewise.
36163         * modules/fcntl (Depends-on): Likewise.
36164         * modules/fdopendir (Depends-on): Likewise.
36165         * modules/fflush (Depends-on): Likewise.
36166         * modules/floor (Depends-on): Likewise.
36167         * modules/floorf (Depends-on): Likewise.
36168         * modules/floorl (Depends-on): Likewise.
36169         * modules/fnmatch (Depends-on): Likewise.
36170         * modules/fopen (Depends-on): Likewise.
36171         * modules/fprintf-posix (Depends-on): Likewise.
36172         * modules/frexp (Depends-on): Likewise.
36173         * modules/frexp-nolibm (Depends-on): Likewise.
36174         * modules/frexpl (Depends-on): Likewise.
36175         * modules/frexpl-nolibm (Depends-on): Likewise.
36176         * modules/fseek (Depends-on): Likewise.
36177         * modules/fsusage (Depends-on): Likewise.
36178         * modules/ftell (Depends-on): Likewise.
36179         * modules/ftello (Depends-on): Likewise.
36180         * modules/futimens (Depends-on): Likewise.
36181         * modules/getcwd (Depends-on): Likewise.
36182         * modules/getcwd-lgpl (Depends-on): Likewise.
36183         * modules/getdelim (Depends-on): Likewise.
36184         * modules/getdomainname (Depends-on): Likewise.
36185         * modules/getgroups (Depends-on): Likewise.
36186         * modules/gethostname (Depends-on): Likewise.
36187         * modules/getline (Depends-on): Likewise.
36188         * modules/getlogin_r (Depends-on): Likewise.
36189         * modules/getopt-posix (Depends-on): Likewise.
36190         * modules/getpeername (Depends-on): Likewise.
36191         * modules/getsockname (Depends-on): Likewise.
36192         * modules/getsockopt (Depends-on): Likewise.
36193         * modules/getsubopt (Depends-on): Likewise.
36194         * modules/getusershell (Depends-on): Likewise.
36195         * modules/glob (Depends-on): Likewise.
36196         * modules/grantpt (Depends-on): Likewise.
36197         * modules/iconv_open (Depends-on): Likewise.
36198         * modules/iconv_open-utf (Depends-on): Likewise.
36199         * modules/inet_ntop (Depends-on): Likewise.
36200         * modules/inet_pton (Depends-on): Likewise.
36201         * modules/ioctl (Depends-on): Likewise.
36202         * modules/isapipe (Depends-on): Likewise.
36203         * modules/isfinite (Depends-on): Likewise.
36204         * modules/isinf (Depends-on): Likewise.
36205         * modules/lchown (Depends-on): Likewise.
36206         * modules/ldexpl (Depends-on): Likewise.
36207         * modules/link (Depends-on): Likewise.
36208         * modules/linkat (Depends-on): Likewise.
36209         * modules/listen (Depends-on): Likewise.
36210         * modules/logl (Depends-on): Likewise.
36211         * modules/lstat (Depends-on): Likewise.
36212         * modules/mbrlen (Depends-on): Likewise.
36213         * modules/mbrtowc (Depends-on): Likewise.
36214         * modules/mbsinit (Depends-on): Likewise.
36215         * modules/mbsnrtowcs (Depends-on): Likewise.
36216         * modules/mbsrtowcs (Depends-on): Likewise.
36217         * modules/mbtowc (Depends-on): Likewise.
36218         * modules/memcmp (Depends-on): Likewise.
36219         * modules/mkdir (Depends-on): Likewise.
36220         * modules/mkdtemp (Depends-on): Likewise.
36221         * modules/mkfifo (Depends-on): Likewise.
36222         * modules/mkfifoat (Depends-on): Likewise.
36223         * modules/mknod (Depends-on): Likewise.
36224         * modules/mkostemp (Depends-on): Likewise.
36225         * modules/mkostemps (Depends-on): Likewise.
36226         * modules/mkstemp (Depends-on): Likewise.
36227         * modules/mkstemps (Depends-on): Likewise.
36228         * modules/mktime (Depends-on): Likewise.
36229         * modules/nanosleep (Depends-on): Likewise.
36230         * modules/open (Depends-on): Likewise.
36231         * modules/openat (Depends-on): Likewise.
36232         * modules/perror (Depends-on): Likewise.
36233         * modules/poll (Depends-on): Likewise.
36234         * modules/popen (Depends-on): Likewise.
36235         * modules/posix_spawn (Depends-on): Likewise.
36236         * modules/posix_spawn_file_actions_addclose (Depends-on): Likewise.
36237         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
36238         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
36239         * modules/posix_spawnp (Depends-on): Likewise.
36240         * modules/pread (Depends-on): Likewise.
36241         * modules/printf-posix (Depends-on): Likewise.
36242         * modules/ptsname (Depends-on): Likewise.
36243         * modules/putenv (Depends-on): Likewise.
36244         * modules/pwrite (Depends-on): Likewise.
36245         * modules/readline (Depends-on): Likewise.
36246         * modules/readlink (Depends-on): Likewise.
36247         * modules/readlinkat (Depends-on): Likewise.
36248         * modules/recv (Depends-on): Likewise.
36249         * modules/recvfrom (Depends-on): Likewise.
36250         * modules/regex (Depends-on): Likewise.
36251         * modules/remove (Depends-on): Likewise.
36252         * modules/rename (Depends-on): Likewise.
36253         * modules/renameat (Depends-on): Likewise.
36254         * modules/rmdir (Depends-on): Likewise.
36255         * modules/round (Depends-on): Likewise.
36256         * modules/roundf (Depends-on): Likewise.
36257         * modules/roundl (Depends-on): Likewise.
36258         * modules/rpmatch (Depends-on): Likewise.
36259         * modules/select (Depends-on): Likewise.
36260         * modules/send (Depends-on): Likewise.
36261         * modules/sendto (Depends-on): Likewise.
36262         * modules/setenv (Depends-on): Likewise.
36263         * modules/setlocale (Depends-on): Likewise.
36264         * modules/setsockopt (Depends-on): Likewise.
36265         * modules/shutdown (Depends-on): Likewise.
36266         * modules/sigaction (Depends-on): Likewise.
36267         * modules/signbit (Depends-on): Likewise.
36268         * modules/sigprocmask (Depends-on): Likewise.
36269         * modules/sinl (Depends-on): Likewise.
36270         * modules/sleep (Depends-on): Likewise.
36271         * modules/snprintf (Depends-on): Likewise.
36272         * modules/snprintf-posix (Depends-on): Likewise.
36273         * modules/socket (Depends-on): Likewise.
36274         * modules/sprintf-posix (Depends-on): Likewise.
36275         * modules/sqrtl (Depends-on): Likewise.
36276         * modules/stat (Depends-on): Likewise.
36277         * modules/strchrnul (Depends-on): Likewise.
36278         * modules/strdup-posix (Depends-on): Likewise.
36279         * modules/strerror (Depends-on): Likewise.
36280         * modules/strerror_r-posix (Depends-on): Likewise.
36281         * modules/strndup (Depends-on): Likewise.
36282         * modules/strnlen (Depends-on): Likewise.
36283         * modules/strptime (Depends-on): Likewise.
36284         * modules/strsep (Depends-on): Likewise.
36285         * modules/strsignal (Depends-on): Likewise.
36286         * modules/strstr-simple (Depends-on): Likewise.
36287         * modules/strtod (Depends-on): Likewise.
36288         * modules/strtoimax (Depends-on): Likewise.
36289         * modules/strtok_r (Depends-on): Likewise.
36290         * modules/strtoumax (Depends-on): Likewise.
36291         * modules/symlink (Depends-on): Likewise.
36292         * modules/symlinkat (Depends-on): Likewise.
36293         * modules/tanl (Depends-on): Likewise.
36294         * modules/tcgetsid (Depends-on): Likewise.
36295         * modules/tmpfile (Depends-on): Likewise.
36296         * modules/trunc (Depends-on): Likewise.
36297         * modules/truncf (Depends-on): Likewise.
36298         * modules/truncl (Depends-on): Likewise.
36299         * modules/uname (Depends-on): Likewise.
36300         * modules/unlink (Depends-on): Likewise.
36301         * modules/unlockpt (Depends-on): Likewise.
36302         * modules/unsetenv (Depends-on): Likewise.
36303         * modules/usleep (Depends-on): Likewise.
36304         * modules/utimensat (Depends-on): Likewise.
36305         * modules/vasprintf (Depends-on): Likewise.
36306         * modules/vdprintf (Depends-on): Likewise.
36307         * modules/vdprintf-posix (Depends-on): Likewise.
36308         * modules/vfprintf-posix (Depends-on): Likewise.
36309         * modules/vprintf-posix (Depends-on): Likewise.
36310         * modules/vsnprintf (Depends-on): Likewise.
36311         * modules/vsnprintf-posix (Depends-on): Likewise.
36312         * modules/vsprintf-posix (Depends-on): Likewise.
36313         * modules/wcrtomb (Depends-on): Likewise.
36314         * modules/wcscasecmp (Depends-on): Likewise.
36315         * modules/wcscspn (Depends-on): Likewise.
36316         * modules/wcsdup (Depends-on): Likewise.
36317         * modules/wcsncasecmp (Depends-on): Likewise.
36318         * modules/wcsnrtombs (Depends-on): Likewise.
36319         * modules/wcspbrk (Depends-on): Likewise.
36320         * modules/wcsrtombs (Depends-on): Likewise.
36321         * modules/wcsspn (Depends-on): Likewise.
36322         * modules/wcsstr (Depends-on): Likewise.
36323         * modules/wcstok (Depends-on): Likewise.
36324         * modules/wcswidth (Depends-on): Likewise.
36325         * modules/wctob (Depends-on): Likewise.
36326         * modules/wctomb (Depends-on): Likewise.
36327         * modules/wctype (Depends-on): Likewise.
36328         * modules/wcwidth (Depends-on): Likewise.
36329         * modules/write (Depends-on): Likewise.
36331 2011-05-03  Bruno Haible  <bruno@clisp.org>
36333         Support for conditional dependencies.
36334         * doc/gnulib.texi (Module description): Document the syntax of
36335         conditional dependencies.
36336         * gnulib-tool: New option --conditional-dependencies.
36337         (func_usage): Document it.
36338         (cond_dependencies): New variable.
36339         (func_get_automake_snippet_conditional,
36340         func_get_automake_snippet_unconditional): New functions, extracted from
36341         func_get_automake_snippet.
36342         (func_get_automake_snippet): Use them.
36343         (sed_first_32_chars): New variable.
36344         (func_module_shellfunc_name): New function.
36345         (func_module_shellvar_name): New function.
36346         (func_module_conditional_name): New function.
36347         (func_uncond_add_module, func_conddep_add_module, func_cond_module_p,
36348         func_cond_module_condition): New functions.
36349         (func_modules_transitive_closure): Add support for conditional
36350         dependencies.
36351         (func_emit_lib_Makefile_am): For a conditional module, enclose the
36352         conditional automake snippet in an automake conditional.
36353         (func_emit_autoconf_snippets): Emit shell functions that contain the
36354         code for conditional modules.
36355         (func_import, func_create_testdir): Update specification.
36357 2011-05-03  Eric Blake  <eblake@redhat.com>
36359         test-getaddrinfo: report error information
36360         * tests/test-getaddrinfo.c (simple): Use err outside of dbprintf.
36362 2011-05-03  Jim Meyering  <meyering@redhat.com>
36364         bootstrap: avoid build failure when $GZIP is set
36365         * build-aux/bootstrap (check_versions): Do not treat $GZIP as a
36366         program name.  If defined at all, it is supposed to list gzip options.
36367         Reported by Alan Curry in http://debbugs.gnu.org/8609
36369 2011-05-03  Reuben Thomas  <rrt@sc3d.org>
36371         readme-release: new module with release instructions
36372         * modules/readme-release: New module.
36373         * top/README-release: New file, from coreutils, grep, diffutils.
36374         * MODULES.html.sh (Support for maintaining and releasing): Add it.
36376 2011-05-02  Eric Blake  <eblake@redhat.com>
36378         fflush: also replace fclose when fixing fflush
36379         * modules/fflush (Depends-on): Add fclose.
36380         * m4/fflush.m4 (gl_FUNC_FFLUSH): Also replace fclose.
36381         * lib/fclose.c (rpl_fclose): Don't cause spurious failures on
36382         memstreams with no backing fd.
36383         * doc/posix-functions/fclose.texi (fclose): Document the use of
36384         fflush module to fix the bug.
36385         * tests/test-fclose.c (main): Relax test when fclose is used in
36386         isolation.
36388         fclose: add some tests
36389         * modules/fclose-tests: New test module.
36390         * tests/test-fclose.c: New file.
36391         * doc/posix-functions/fclose.texi (fclose): Document the bug.
36393         fclose: reduced dependencies
36394         * modules/fclose (Depends-on): Switch from fflush/fseeko to
36395         simpler lseek.
36396         * lib/fclose.c (rpl_fclose): Likewise.
36397         Reported by Simon Josefsson.
36399         exit: drop remaining clients
36400         * modules/argmatch (Depends-on): Replace exit with stdlib.
36401         * modules/copy-file (Depends-on): Likewise.
36402         * modules/execute (Depends-on): Likewise.
36403         * modules/exitfail (Depends-on): Likewise.
36404         * modules/obstack (Depends-on): Likewise.
36405         * modules/pagealign_alloc (Depends-on): Likewise.
36406         * modules/pipe-filter-gi (Depends-on): Likewise.
36407         * modules/pipe-filter-ii (Depends-on): Likewise.
36408         * modules/savewd (Depends-on): Likewise.
36409         * modules/spawn-pipe (Depends-on): Likewise.
36410         * modules/wait-process (Depends-on): Likewise.
36411         * modules/xsetenv (Depends-on): Likewise.
36412         * modules/chdir-long (Depends-on): Add stdlib, for EXIT_FAILURE.
36413         * modules/git-merge-changelog (Depends-on): Likewise.
36414         * modules/long-options (Depends-on): Likewise.
36415         * modules/pt_chown (Depends-on): Likewise.
36416         * modules/sysexits (Depends-on): Likewise.
36418         freading: relax license from LGPLv3+ to LGPLv2+
36419         * modules/freading (License): Relax LGPL version.
36421 2011-05-02  Bruno Haible  <bruno@clisp.org>
36423         fchdir: Remove unused dependencies.
36424         * modules/fchdir (Depends-on): Remove include_next.
36426 2011-05-02  Bruno Haible  <bruno@clisp.org>
36428         gnulib-tool: Refactor.
36429         * gnulib-tool (func_emit_autoconf_snippet): New function, extracted
36430         from func_emit_autoconf_snippets.
36431         (func_emit_autoconf_snippets): Use it.
36433 2011-05-02  Simon Josefsson  <simon@josefsson.org>
36435         * NEWS: Document removal of 'exit'.
36436         * modules/exit: Remove file.
36438 2011-05-01  Bruno Haible  <bruno@clisp.org>
36440         Update DEPENDENCIES.
36441         * DEPENDENCIES (gettext): Recommend the newest release.
36442         Reported by Simon Josefsson.
36444 2011-05-01  Bruno Haible  <bruno@clisp.org>
36446         gnulib-tool: Reduce code duplication.
36447         * gnulib-tool (func_emit_autoconf_snippets): New function.
36448         (func_import, func_create_testdir): Use it.
36450 2011-04-30  Eric Blake  <eblake@redhat.com>
36452         fclose: don't fail on non-seekable input stream
36453         * modules/fclose (Depends-on): Add freading, fflush, fseeko.
36454         * lib/fclose.c (rpl_fclose): Skip fflush for non-seekable input,
36455         since fflush is allowed to fail in that case.
36457 2011-04-30  Bruno Haible  <bruno@clisp.org>
36459         dup3: cleanup
36460         * lib/dup3.c: Remove old code, leftover from 2009-12-16.
36462 2011-04-30  Bruno Haible  <bruno@clisp.org>
36464         netdb: Make it work in C++ mode.
36465         * lib/netdb.in.h (struct addrinfo): In C++, define as a C struct.
36466         (getaddrinfo, freeaddrinfo, getnameinfo): Use macros from c++defs
36467         module.
36468         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Invoke
36469         gl_MODULE_INDICATOR_FOR_TESTS.
36470         * modules/netdb-tests (Depends-on): Add netdb-c++-tests.
36471         * modules/netdb-c++-tests: New file.
36472         * tests/test-netdb-c++.cc: New file.
36474 2011-04-30  Bruno Haible  <bruno@clisp.org>
36476         New modules 'vfscanf', 'vscanf'.
36477         * modules/vfscanf: New file.
36478         * modules/vscanf: New file.
36479         * m4/stdio_h.m4 (gl_STDIO_H): Don't set GNULIB_VFSCANF, GNULIB_VSCANF
36480         here.
36481         * doc/posix-functions/vfscanf.texi: Mention module 'vfscanf'.
36482         * doc/posix-functions/vscanf.texi: Mention module 'vscanf'.
36484 2011-04-30  Bruno Haible  <bruno@clisp.org>
36486         passfd: Add comments.
36487         * lib/passfd.c: Add comments about platforms.
36489 2011-04-30  Bruno Haible  <bruno@clisp.org>
36491         sys_uio: Make <sys/uio.h> self-contained.
36492         * lib/sys_uio.in.h: Include <sys/types.h> before <sys/uio.h>.
36493         * doc/posix-headers/sys_uio.texi: Mention the OpenBSD problem.
36495 2011-04-30  Bruno Haible  <bruno@clisp.org>
36497         sys_socket: Ensure 'struct iovec' definition.
36498         * lib/sys_socket.in.h: Include <sys/uio.h> also on platforms that have
36499         <sys/socket.h>.
36500         * doc/posix-headers/sys_socket.texi: Mention the OpenBSD problem.
36502 2011-04-30  Bruno Haible  <bruno@clisp.org>
36504         sys_uio: Protect definition of 'struct iovec'.
36505         * lib/sys_uio.in.h (struct iovec): Avoid redefinition. In C++, define
36506         it as a C struct.
36508 2011-04-30  Bruno Haible  <bruno@clisp.org>
36510         manywarnings: fix indentation
36511         * m4/manywarnings.m4: Indent by 2 spaces consistently.
36513 2011-04-30  Pádraig Brady  <P@draigBrady.com>
36515         manywarnings: add -Wno-missing-field-initializers if needed.
36516         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add the above
36517         option if it's needed to allow initialization with { 0, }
36519 2011-04-29  Reuben Thomas  <rrt@sc3d.org>
36521         announce-gen: cosmetic improvement
36522         * build-aux/announce-gen: Strip any leading ./ from the NEWS file name.
36524 2011-04-29  Jim Meyering  <meyering@redhat.com>
36526         vc-list-files: indent with spaces, not TABs
36527         * build-aux/vc-list-files: Convert leading TABs to spaces,
36528         to match the style of most other files in gnulib.
36530         announce-gen: indent with spaces, not TABs
36531         * build-aux/announce-gen: Convert all TABs to spaces, to match
36532         the style of most other files in gnulib.
36534 2011-04-29  Eric Blake  <eblake@redhat.com>
36536         quotearg: avoid uninitialized variable use
36537         * lib/quotearg.c (quoting_options_from_style): Initialize
36538         remaining fields, and ensure that custom styles are only used via
36539         quoting_options rather than quoting_style.
36541 2011-04-29  Jim Meyering  <meyering@redhat.com>
36543         maint.mk: remove unused VC-tag variable
36544         * top/maint.mk (VC-tag): Remove unused variable.
36546 2011-04-29  Bruno Haible  <bruno@clisp.org>
36548         netdb: fix gai_strerror replacements
36549         * lib/netdb.in.h: Add _GL_FUNCDECL_RPL definitions.
36550         * modules/netdb: Substitute it.
36552 2011-04-29  Jim Meyering  <meyering@redhat.com>
36554         test-getcwd.c: avoid new set-but-not-used warning
36555         * tests/test-getcwd.c (test_abort_bug): Exit nonzero for any problem,
36556         not just the glibc/abort one that getcwd-abort-bug.m4 detects.
36557         * m4/getcwd-abort-bug.m4: Update this now-duplicated code to match,
36558         and adjust the code that sets gl_cv_func_getcwd_abort_bug accordingly.
36560         test-hash.c: avoid a new shadowing warning
36561         * tests/test-hash.c (main): Don't shadow "dup".
36563 2011-04-28  Eric Blake  <eblake@redhat.com>
36565         getaddrinfo: fix gai_strerror signature
36566         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Detect broken signatures,
36567         and work around mingw with UNICODE defined.
36568         (gl_PREREQ_GETADDRINFO): Drop redundant decl check.
36569         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Add witness.
36570         * modules/netdb (Makefile.am): Substitute it.
36571         * lib/netdb.in.h (gai_strerror): Declare replacement.
36572         * lib/gai_strerror.c (rpl_gai_strerror): Fix signature.
36573         * doc/posix-functions/gai_strerror.texi (gai_strerror): Document
36574         the fix.
36576         getsockopt: avoid compiler warning
36577         * lib/getsockopt.c (rpl_getsockopt): Add a cast for mingw.
36578         Reported by Matthias Bolte.
36580         tests: drop unused link dependency
36581         * modules/areadlinkat-tests (Makefile.am): Drop stale LDADD.
36582         * modules/dirent-safer-tests (Makefile.am): Likewise.
36583         * modules/fdopendir-tests (Makefile.am): Likewise.
36584         * modules/mkfifoat-tests (Makefile.am): Likewise.
36585         * modules/openat-safer-tests (Makefile.am): Likewise.
36586         * modules/openat-tests (Makefile.am): Likewise.
36587         * modules/readlinkat-tests (Makefile.am): Likewise.
36588         * modules/symlinkat-tests (Makefile.am): Likewise.
36589         * modules/linkat-tests (Makefile.am): Likewise.
36590         (Depends-on): Switch to filenamecat-lgpl.
36591         * modules/fdutimensat-tests (test_fdutimensat_LDADD): Drop unused
36592         LIBINTL.
36593         * modules/utimensat-tests (test_utimensat_LDADD): Likewise.
36594         * tests/test-linkat.c (main): Don't require xalloc.
36596         hash, mgetgroups: drop xalloc dependency
36597         * lib/hash.c (includes): Adjust includes.
36598         * lib/mgetgroups.c (includes): Likewise.
36599         (xgetgroups): Move...
36600         * lib/xgetgroups.c: ...to new file.
36601         * lib/mgetgroups.h (xgetgroups): Make declaration conditional.
36602         * modules/xgetgroups: New file, split from...
36603         * modules/mgetgroups: ...here.
36604         (Depends-on): Add xalloc-oversized.
36605         * modules/hash (Depends-on): Likewise.
36606         * modules/hash-tests (Depends-on): Drop xalloc.
36607         (test_hash_LDADD): Drop unused library.
36608         * tests/test-hash.c (main): Break xalloc dependency.
36609         (includes): Drop unused include.
36611         xalloc-oversized: new module
36612         * modules/xalloc-oversized: New module.
36613         * modules/xalloc (Depends-on): Add it.
36614         * lib/xalloc.h (xalloc_oversized): Move...
36615         * lib/xalloc-oversized.h: ...into new file.
36617         utimecmp: drop dependency on xmalloc
36618         * lib/utimecmp.c (utimecmp): Work even if hash table cache fails
36619         due to memory pressure.
36620         * modules/utimecmp (Depends-on): Drop xalloc.
36622 2011-04-27  Eric Blake  <eblake@redhat.com>
36624         getcwd: fix mingw bugs
36625         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Detect one mingw bug.
36626         * doc/posix-functions/getcwd.texi (getcwd): Document the problems.
36627         * lib/getcwd-lgpl.c (rpl_getcwd): Fix return type.
36629 2011-04-27  Bruno Haible  <bruno@clisp.org>
36631         mkstemps: Ensure declaration on MacOS X 10.5.
36632         * lib/stdlib.in.h: Include <unistd.h> when mkstemps is requested.
36633         * doc/glibc-functions/mkstemps.texi: Document header file problem on
36634         MacOS X.
36636 2011-04-27  Bruno Haible  <bruno@clisp.org>
36638         mkstemp: More documentation.
36639         * doc/posix-functions/mkstemp.texi: Document header file problem on
36640         MacOS X.
36642 2011-04-27  Bruno Haible  <bruno@clisp.org>
36644         mkstemp: Tweak configure message when cross-compiling.
36645         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): When cross-compiling, qualify the
36646         result as a guess.
36648 2011-04-27  Bruno Haible  <bruno@clisp.org>
36650         clean-temp: Clarify what it does.
36651         * lib/clean-temp.h: Add more comments.
36652         * doc/posix-functions/mkstemp.texi: Tweak reference to 'clean-temp'
36653         module.
36654         * doc/glibc-functions/mkostemp.texi: Mention 'clean-temp' here too.
36655         * doc/glibc-functions/mkstemps.texi: Likewise.
36656         * doc/glibc-functions/mkostemps.texi: Likewise.
36658 2011-04-27  Eric Blake  <eblake@redhat.com>
36660         fchdir: avoid extra chdir and fix test
36661         * modules/fchdir (Depends-on): Add dosname, filenamecat-lgpl,
36662         getcwd-lgpl.
36663         * lib/fchdir.c (get_name): Any absolute name will do; it does not
36664         have to be canonical.
36665         (canonicalize_file_name): Drop unused macro.
36666         * m4/dup2.m4 (gl_REPLACE_DUP2): Ensure dup2 is replaced.
36668         filenamecat-lgpl: fix licence
36669         * modules/filenamecat-lgpl (License): Mark as LGPLv2+, as intended
36670         when it was first created.
36672         linkat, renameat: add missing dependency
36673         * modules/linkat (Depends-on): Require getcwd-lgpl.
36674         * modules/renameat (Depends-on): Likewise.
36676         tests: reduce dependencies
36677         * tests/test-linkat.c (main): Use lighter-weight getcwd.
36678         * tests/test-renameat.c (main): Likewise.
36679         * modules/linkat-tests (Depends-on): Relax dependency.
36680         * modules/renameat-tests (Depends-on): Likewise.
36681         * modules/fchdir-tests (Depends-on): Likewise.  Also make cloexec
36682         dependency explicit.
36684         save-cwd: reduce default dependency
36685         * modules/save-cwd (Depends-on): Use getcwd-lgpl.
36686         * lib/save-cwd.c: Update comments.
36687         * NEWS: Document the semantic change.
36689         getcwd: enhance tests
36690         * tests/test-getcwd-lgpl.c: New file, taken from...
36691         * tests/test-getcwd.c: ...old contents.  Rewrite this file to
36692         repeat long path stress tests from m4 probe.
36693         * modules/getcwd-lgpl-tests: New module.
36694         * modules/getcwd-tests (Depends-on): Depend on lgpl tests.
36695         * m4/getcwd-abort-bug.m4: Update comment.
36696         * m4/getcwd-path-max.m4: Likewise.
36698         getcwd-lgpl: new module
36699         * modules/getcwd-lgpl: New module.
36700         * lib/getcwd-lgpl.c: New file.
36701         * doc/posix-functions/getcwd.texi (getcwd): Document it.
36702         * MODULES.html.sh (lacking POSIX:2008): Likewise.
36703         * modules/getcwd (configure.ac): Set C witness.
36704         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): New macro.
36706         getcwd: tweak comments
36707         * m4/getcwd-abort-bug.m4: Fix comments.
36708         * m4/getcwd-path-max.m4: Likewise.
36709         * m4/getcwd.m4: Likewise.
36711 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
36712         and Eric Blake  <eblake@redhat.com>
36714         mkstemp: replace if system version uses wrong permissions
36715         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Add test for non-owner
36716         read/write mode bits set in file created by mkstemp.
36717         * doc/posix-functions/mkstemp.texi (mkstemp): Document the fix.
36719 2011-04-27  Eric Blake  <eblake@redhat.com>
36721         passfd: avoid compiler warning
36722         * lib/passfd.c (sendfd, recvfd): Avoid shadowing names.
36723         Reported by Laine Stump.
36725 2011-04-27  J.T. Conklin  <jtc@acorntoolworks.com>  (tiny change)
36727         * gnulib-tool: change "join -a 2" to "join -a2", the latter is
36728         required by the NetBSD (and perhaps other 4.4BSD derived) join.
36730 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
36731         and Eric Blake  <eblake@redhat.com>
36733         mkstemp: mention clean-temp module
36734         * lib/mkstemp.c: Add comment.
36735         * doc/posix-functions/mkstemp.texi (mkstemp): Likewise.
36737 2011-04-26  Paul Eggert  <eggert@cs.ucla.edu>
36739         inttypes: also provide default values for 32-bit tests
36740         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Also provide default values
36741         for INT32_MAX_LT_INTMAX_MAX and for UINT32_MAX_LT_UINTMAX_MAX.
36743 2011-04-25  Paul Eggert  <eggert@cs.ucla.edu>
36745         strtoumax: remove dependency on strtoimax
36746         This is like the strtoull change of yesterday.
36747         * modules/strtoumax (Files): Add lib/strtoimax.c.
36748         (Depends-on): Remove strtoimax and add verify.
36750         inttypes-incomplete: new module
36751         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): New macro, containing
36752         all but the PRI* and SCN* parts of gl_INTTYPES_H.
36753         (gl_INTTYPES_PRI_SCN): New macro, containing the PRI* and SCN* parts
36754         of gl_INTTYPES_H.
36755         (gl_INTTYPES_H): Rewrite in terms of these new macros.
36756         (gl_INTTYPES_H_DEFAULTS): Provide defaults for the PRI* and SCN*
36757         parts, in case gl_INTTYPE_PRI_SCN is not invoked.
36758         * modules/imaxabs, modules/imaxdiv, modules/strtoimax (Depends-on):
36759         * modules/strtoumax, modules/xstrtol (Depends-on):
36760         Depend on inttypes-incomplete, not inttypes.
36761         * modules/inttypes-incomplete: New module, containing the contents
36762         of the old modules/inttypes module, except that the Files: section
36763         omits m4/inttypes-pri.m4, and the configure.ac section invokes
36764         gl_INTTYPES_INCOMPLETE rather than gl_INTTYPES_H.
36765         * modules/inttypes (Files): Remove lib/inttypes.in.h, m4/inttypes.m4.
36766         (Depends-on): Depend only on inttypes-incomplete.
36767         (Makefile.am): Remove everything; this is now in inttypes-incomplete.
36769         inttypes: omit now-redundant strtoimax and strtoumax work
36770         * m4/inttypes.m4 (gl_INTTYPES_H): Do not check for strtoimax and
36771         strtoumax decls; gl_FUNC_STRTOIMAX and gl_FUNC_STRTOUMAX now do this.
36773         strtoimax, strtoumax: simplify, port to HP-UX 11.00 64-bit
36774         This supports apps that need pointers to strtoimax and strtoumax,
36775         and ports to HP-UX 11.00 64.bit, which has macros that expand to
36776         nonexistent functions.  See
36777         <http://lists.gnu.org/r/bug-gnulib/2011-04/msg00241.html>
36778         et seq.
36779         * lib/inttypes.in.h (strtoimax, strtoumax): #undef before declaring.
36780         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't check whether it's
36781         a macro.
36782         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
36784 2011-04-25  Simon Josefsson  <simon@josefsson.org>
36786         * modules/gnumakefile (configure.ac): Replace TAB with SPCs.
36788 2011-04-25  Bruno Haible  <bruno@clisp.org>
36790         strtol, strtoul: Mark modules as obsolete.
36791         * modules/strtol (Status, Notice): New sections.
36792         * modules/strtoul (Status, Notice): New sections.
36794 2011-04-25  Bruno Haible  <bruno@clisp.org>
36796         strtod: Remove check for strtod, unless supporting old platforms.
36797         * modules/strtod-obsolete: New file.
36798         * m4/strtod-obsolete.m4: New file.
36799         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't check whether strtod is declared
36800         if gl_FUNC_STRTOD_OBSOLETE is not also defined.
36801         * modules/strtod (Depends-on): Add strtod-obsolete.
36802         * doc/posix-functions/strtod.texi: Mention module strtod-obsolete.
36804 2011-04-25  Bruno Haible  <bruno@clisp.org>
36806         strcase: Make module obsolete.
36807         * modules/strcase (Status, Notice): New sections.
36809 2011-04-25  Bruno Haible  <bruno@clisp.org>
36811         dup2: Remove check for dup2, unless supporting old obsolete platforms.
36812         * modules/dup2-obsolete: New file.
36813         * m4/dup2-obsolete.m4: New file.
36814         * m4/dup2.m4 (gl_FUNC_DUP2): Don't check whether dup2 exists if
36815         gl_FUNC_DUP2_OBSOLETE is not also defined.
36816         * modules/dup2 (Depends-on): Add dup2-obsolete.
36817         * doc/posix-functions/dup2.texi: Mention module dup2-obsolete.
36819 2011-04-25  Bruno Haible  <bruno@clisp.org>
36821         strnlen: Avoid memchr related link error on old obsolete platforms.
36822         * modules/memchr-obsolete: New file.
36823         * m4/memchr-obsolete.m4: New file.
36824         * m4/memchr.m4 (gl_FUNC_MEMCHR): Don't check whether memchr exists if
36825         gl_FUNC_MEMCHR_OBSOLETE is not also defined.
36826         * modules/memchr (Depends-on): Add memchr-obsolete.
36827         * modules/strnlen (Depends-on): Likewise.
36828         * doc/posix-functions/memchr.texi: Mention module memchr-obsolete.
36830 2011-04-25  Jim Meyering  <meyering@redhat.com>
36832         maint.mk: makefile_at_at_check extend and clean up
36833         * top/maint.mk (sc_makefile_at_at_check): Check *.mk files
36834         in addition to */Makefile.am.
36835         Exempt legitimate uses of @VAR@ notation, e.g.,
36836         MAKEINFO = env LANG= LC_MESSAGES= LC_ALL= LANGUAGE= @MAKEINFO@
36837         Remove obsolete coreutils-specific comment.
36838         Prompted by discussion here:
36839         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26074
36841 2011-04-24  Paul Eggert  <eggert@cs.ucla.edu>
36843         strtoul: remove dependency on strtol
36844         This is so that 'configure' need not check for strtol merely because
36845         the application needs strtoul.
36846         * modules/strtoul (Files): Add lib/strtol.c.
36847         (Depends-on): Remove strtol.
36849         strtoull: remove dependency on strtoul
36850         This is like the strtoll change.
36851         * modules/strtoull (Files): Add lib/strtol.c, lib/strtoul.c.
36852         (Depends-on): Remove strtoul.
36854         strtoll: remove dependency on strtol
36855         This is so that 'configure' need not check for strtol merely because
36856         the application needs strtoll.
36857         * modules/strtoll (Files): Add lib/strtol.c.
36858         (Depends-on): Remove strtol.
36860 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
36862         inttypes: Move some configure check to module 'imaxdiv'.
36863         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Require gl_INTTYPES_H_DEFAULTS
36864         instead of gl_INTTYPES_H.  Check for imaxdiv decl here.
36865         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxdiv decl here.
36867 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
36869         inttypes: Move some configure check to module 'imaxabs'.
36870         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Require gl_INTTYPES_H_DEFAULTS
36871         instead of gl_INTTYPES_H.  Check for imaxabs decl here.
36872         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxabs decl here.
36874 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
36876         inttypes: Remove configure tests that are not needed since 2009-12-31.
36877         * m4/inttypes.m4 (gl_INTTYPES_H): Remove determination of
36878         gl_cv_header_working_inttypes_h.
36880 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
36882         * modules/strnlen (Depends-on): Remove memchr.
36883         The strnlen implementation doesn't need the memchr module's fixes; see
36884         <http://lists.gnu.org/r/bug-gnulib/2011-04/msg00237.html>.
36886         strtol: remove dependency on wchar
36887         * lib/strtol.c: Include <wchar.h> only if USE_WIDE_CHAR is defined.
36888         * modules/strtol (Depends-on): Remove wchar.
36890 2011-04-21  Eric Blake  <eblake@redhat.com>
36892         passfd: fix test regression on Linux
36893         * modules/passfd-tests (configure.ac): Correct socketpair check.
36895         passfd: speed up configure and drop unused code
36896         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Rename...
36897         * m4/passfd.m4 (gl_PASSFD): ...to something more fitting of
36898         its use.  Drop test for setting unused HAVE_UNIXSOCKET_SCM_RIGHTS.
36899         Instead of probing at configure for unix_scm_rights_bsd44_way,
36900         instead probe for CMSG_FIRSTHDR at compile time.  Simplify BSD 4.3
36901         check to a struct member probe.
36902         * lib/passfd.c (includes): Nothing here requires <sys/un.h>.
36903         (sendfd, recvfd): Update preprocessor checks.
36904         * modules/passfd (Files): Reflect rename, and drop unused file.
36905         (Depends-on): Drop unused dependency.
36907         passfd: allow compilation on mingw
36908         * modules/sys_socket (Depends-on): Add sys_uio.
36909         * lib/sys_socket.in.h [!@HAVE_SYS_SOCKET_H@]: Use it for struct
36910         iovec and a minimal struct msghdr.
36911         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Detect recvmsg/sendmsg.
36912         * tests/test-sys_socket.c (main): Enhance test.
36913         * lib/passfd.c (include): Drop <sys/uio.h>; <sys/sockets.h> is
36914         guaranteed to provide what we need.
36915         (sendmsg, recvmsg): Declare fallbacks if we lack sendmsg.
36916         * modules/passfd-tests (Depends-on): Add sys_wait.
36917         * tests/test-passfd.c (main): Skip test on mingw, for now.
36918         * doc/posix-headers/sys_socket.texi (sys/socket.h): Document the
36919         partial 'struct msghdr' implementation.
36921         sys_uio: new module
36922         * modules/sys_uio: New module.
36923         * modules/sys_uio-tests: Likewise.
36924         * lib/sys_uio.in.h: New file.
36925         * m4/sys_uio_h.m4: Likewise.
36926         * tests/test-sys_uio.c: Likewise.
36927         * doc/posix-headers/sys_uio.texi (sys/uio.h): Document it.
36928         * MODULES.html.sh (systems lacking POSIX:2008): Likewise.
36930 2011-04-20  Jim Meyering  <meyering@redhat.com>
36932         useless-if-before-free: avoid false-positive
36933         * build-aux/useless-if-before-free: Adjust regexp for the non-brace
36934         disjunct so that it too requires a terminating ";".  Without that,
36935         this script would identify as useless one statement from gcc that
36936         was not:
36937           if (aligned_ptr)
36938             free (((void **) aligned_ptr) [-1]);
36940 2011-04-20  Giuseppe Scrivano  <gscrivano@gnu.org>
36942         doc: update users.txt.
36943         * users.txt: Add barcode.
36945 2011-04-19  Bruno Haible  <bruno@clisp.org>
36947         ioctl: Remove link dependency on native Windows.
36948         * lib/fd-hook.h: Renamed from lib/close-hook.h.
36949         (gl_close_fn, gl_ioctl_fn): New types.
36950         (struct fd_hook): Renamed from struct close_hook. Change type of
36951         private_close_fn field. Add private_ioctl_fn field.
36952         (close_hook_fn): Add parameter for primary close method.
36953         (execute_close_hooks, execute_all_close_hooks): Likewise.
36954         (ioctl_hook_fn): New type.
36955         (execute_ioctl_hooks, execute_all_ioctl_hooks): New declarations.
36956         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
36957         argument.
36958         (unregister_fd_hook): Renamed from unregister_close_hook.
36959         * lib/fd-hook.c: Renamed from lib/close-hook.c.
36960         Don't include <unistd.h>.
36961         (close): Remove undef.
36962         (anchor): Update.
36963         (execute_close_hooks): Add argument for primary close method.
36964         (execute_all_close_hooks): Likewise.
36965         (execute_ioctl_hooks, execute_all_ioctl_hooks): New functions.
36966         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
36967         argument. Allow each argument to be NULL.
36968         (unregister_fd_hook): Renamed from unregister_close_hook.
36969         * lib/close.c (rpl_close): Pass 'close' function pointer to
36970         execute_all_close_hooks.
36971         * lib/ioctl.c: Include <errno.h>, fd-hook.h.
36972         (primary_ioctl): New function.
36973         (ioctl): Don't call ioctlsocket here. Instead, call
36974         execute_all_ioctl_hooks.
36975         * lib/sockets.c (close_fd_maybe_socket): Add argument for primary
36976         close method.
36977         (ioctl_fd_maybe_socket): New function, with code from lib/ioctl.c.
36978         (fd_sockets_hook): Renamed from close_sockets_hook.
36979         (gl_sockets_startup, gl_sockets_cleanup): Update.
36980         * modules/fd-hook: Renamed from modules/close-hook. Update.
36981         * modules/close (Depends-on): Add fd-hook, remove close-hook.
36982         * modules/sockets (Depends-on): Likewise.
36983         * modules/ioctl (Depends-on): Add fd-hook.
36984         * tests/test-nonblocking.c (main): Use GNULIB_TEST_SOCKET, not
36985         GNULIB_SOCKET.
36987 2011-04-19  Bruno Haible  <bruno@clisp.org>
36989         Move the support of O_NONBLOCK in open() to the 'open' module.
36990         * modules/nonblocking (Depends-on): Remove 'open'.
36991         * m4/nonblocking.m4 (gl_NONBLOCKING_IO_BODY): Set
36992         gl_cv_have_open_O_NONBLOCK.
36993         * m4/open.m4 (gl_FUNC_OPEN): Replace open() also when required for
36994         O_NONBLOCK support.
36995         * doc/posix-functions/open.texi: Document support for O_NONBLOCK.
36997 2011-04-17  Bruno Haible  <bruno@clisp.org>
36999         pipe2: Simplify code.
37000         * lib/pipe2.c (pipe2): Reduce code duplication.
37002 2011-04-17  Bruno Haible  <bruno@clisp.org>
37004         nonblocking: Add comment.
37005         * lib/fcntl.in.h (O_NONBLOCK): Add comment.
37007 2011-04-17  Bruno Haible  <bruno@clisp.org>
37009         nonblocking: Add tests for sockets.
37010         * tests/test-nonblocking-socket.sh: New file.
37011         * tests/test-nonblocking-socket-main.c: New file.
37012         * tests/test-nonblocking-socket-child.c: New file.
37013         * tests/test-nonblocking-socket.h: New file.
37014         * tests/socket-server.h: New file.
37015         * tests/socket-client.h: New file.
37016         * modules/nonblocking-socket-tests: New file.
37017         * modules/nonblocking-tests (Depends-on): Add nonblocking-socket-tests.
37019 2011-04-17  Bruno Haible  <bruno@clisp.org>
37021         nonblocking: Add tests for pipes.
37022         * tests/test-nonblocking-pipe.sh: New file.
37023         * tests/test-nonblocking-pipe-main.c: New file.
37024         * tests/test-nonblocking-pipe-child.c: New file.
37025         * tests/test-nonblocking-pipe.h: New file.
37026         * tests/test-nonblocking-writer.h: New file.
37027         * tests/test-nonblocking-reader.h: New file.
37028         * tests/test-nonblocking-misc.h: New file.
37029         * modules/nonblocking-pipe-tests: New file.
37030         * modules/nonblocking-tests (Depends-on): Add nonblocking-pipe-tests.
37032 2011-04-16  Bruno Haible  <bruno@clisp.org>
37034         gettext: Clarify the needed programmer actions.
37035         * modules/gettext (Notice): New field.
37036         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
37038 2011-04-16  Bruno Haible  <bruno@clisp.org>
37040         strchrnul: Tweak last commit.
37041         * doc/glibc-functions/strchrnul.texi: Add more details about Cygwin
37042         bug.
37043         * lib/string.in.h (strchrnul): Use same arguments in _GL_FUNCDECL_RPL
37044         as in _GL_FUNCDECL_SYS.
37045         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Invoke gl_PREREQ_STRCHRNUL after
37046         AC_LIBOBJ. When cross-compiling, say "guessing yes" not "yes".
37048 2011-04-15  Eric Blake  <eblake@redhat.com>
37050         strchrnul: work around cygwin bug
37051         * doc/glibc-functions/strchrnul.texi (strchrnul): Document bug.
37052         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Detect it.
37053         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New witness.
37054         * modules/string (Makefile.am): Substitute it.
37055         * lib/string.in.h (strchrnul): Use it.
37057 2011-04-15  Bruno Haible  <bruno@clisp.org>
37059         Don't require lib/stdio-write.c when only module 'stdio' is used.
37060         * m4/stdio_h.m4 (gl_STDIO_H): Move the AC_LIBOBJ back into the m4_ifdef
37061         invocation.
37062         Reported by Rob Vermaas <rob.vermaas@gmail.com>.
37064 2011-04-14  Bruno Haible  <bruno@clisp.org>
37066         Support non-blocking pipe I/O in read() on native Windows.
37067         * lib/unistd.in.h: Include <sys/types.h> also for 'read'.
37068         (read): New declaration.
37069         * lib/read.c: New file.
37070         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_SCANF,
37071         _GL_ATTRIBUTE_FORMAT_SCANF_SYSTEM): New macros.
37072         (fgetc, fgets, fread, fscanf, getc, getchar, gets, scanf, vfscanf,
37073         vscanf): New declarations.
37074         * lib/stdio-read.c: New file.
37075         * m4/read.m4: New file.
37076         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_READ,
37077         REPLACE_READ.
37078         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FGETC, GNULIB_FGETS,
37079         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
37080         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF. In non-blocking I/O is
37081         desired and needs workarounds, set REPLACE_STDIO_READ_FUNCS.
37082         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FGETC, GNULIB_FGETS,
37083         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
37084         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
37085         * modules/read: New file.
37086         * modules/nonblocking (Files): Add lib/stdio-read.c.
37087         * modules/unistd (Makefile.am): Substitute GNULIB_READ, REPLACE_READ.
37088         * modules/stdio (Makefile.am): Substitute GNULIB_FGETC, GNULIB_FGETS,
37089         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
37090         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
37091         * modules/pread (Depends-on): Add read.
37092         * modules/safe-read (Depends-on): Likewise.
37093         * tests/test-stdio-c++.cc (fgetc, fgets, fread, fscanf, getc, getchar,
37094         gets, scanf, vfscanf, vscanf): Verify signatures.
37095         * doc/posix-functions/read.texi: Mention 'nonblocking' module and
37096         problem with non-blocking pipes.
37097         * doc/posix-functions/fgetc.texi: Likewise.
37098         * doc/posix-functions/fgets.texi: Likewise.
37099         * doc/posix-functions/fread.texi: Likewise.
37100         * doc/posix-functions/fscanf.texi: Likewise.
37101         * doc/posix-functions/getc.texi: Likewise.
37102         * doc/posix-functions/getchar.texi: Likewise.
37103         * doc/posix-functions/gets.texi: Likewise.
37104         * doc/posix-functions/scanf.texi: Likewise.
37105         * doc/posix-functions/vfscanf.texi: Likewise.
37106         * doc/posix-functions/vscanf.texi: Likewise.
37108 2011-04-14  Bruno Haible  <bruno@clisp.org>
37110         Support non-blocking pipe I/O in write() on native Windows.
37111         * lib/write.c (rpl_write): Split a write request that failed merely
37112         because the byte count was larger than the pipe buffer's size.
37113         * doc/posix-functions/write.texi: Mention the problem with large byte
37114         counts.
37116 2011-04-14  Bruno Haible  <bruno@clisp.org>
37118         wchar: Ensure that wchar_t gets defined on uClibc.
37119         * lib/wchar.in.h: On uClibc, include <stddef.h>.
37120         Reported by Giuseppe Scrivano <gscrivano@gnu.org>.
37122 2011-04-13  Bruno Haible  <bruno@clisp.org>
37124         safe-write, full-read: Avoid unnecessary compilation units.
37125         * modules/safe-write (Files): Add lib/safe-read.c, m4/safe-read.m4.
37126         (Depends-on): Remove safe-read. Add ssize_t.
37127         * modules/full-read (Files): Add lib/full-write.c.
37128         (Depends-on): Add full-write.
37130 2011-04-13  Bruno Haible  <bruno@clisp.org>
37132         Support non-blocking pipe I/O and SIGPIPE in pwrite().
37133         * modules/pwrite (Depends-on): Add 'write'.
37135 2011-04-13  Bruno Haible  <bruno@clisp.org>
37137         Support non-blocking pipe I/O in write() on native Windows.
37138         * lib/unistd.in.h (write): Enable replacement also if
37139         GNULIB_UNISTD_H_NONBLOCKING is 1.
37140         * lib/write.c: Enable replacement also if GNULIB_NONBLOCKING.
37141         (rpl_write): When failing to write on a non-blocking pipe, change
37142         errno from ENOSPC to EAGAIN.
37143         * lib/stdio.in.h (fprintf, fputc, fputs, fwrite, printf, putc,
37144         putchar, puts, vfprintf, vprintf): Enable replacement also if
37145         GNULIB_STDIO_H_NONBLOCKING is 1.
37146         * lib/stdio-write.c: Enable replacements also if GNULIB_NONBLOCKING.
37147         (CLEAR_ERRNO, HANDLE_ENOSPC): New macros.
37148         (CLEAR_LastError, HANDLE_ERROR_NO_DATA): New macros, extracted from
37149         CALL_WITH_SIGPIPE_EMULATION.
37150         (CALL_WITH_SIGPIPE_EMULATION): Use them.
37151         * m4/nonblocking.m4: New file.
37152         * m4/write.m4 (gl_FUNC_WRITE): Enable REPLACE_WRITE also if required
37153         for non-blocking I/O support.
37154         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
37155         GNULIB_UNISTD_H_NONBLOCKING.
37156         * m4/stdio_h.m4 (gl_STDIO_H): Enable REPLACE_STDIO_WRITE_FUNCS also if
37157         required for non-blocking I/O support.
37158         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_STDIO_H_NONBLOCKING.
37159         * modules/nonblocking (Files): Add m4/nonblocking.m4,
37160         lib/stdio-write.c, m4/asm-underscore.m4.
37161         (Depends-on): Add stdio, unistd.
37162         (configure.ac): Invoke gl_NONBLOCKING_IO. Define GNULIB_NONBLOCKING.
37163         Set GNULIB_STDIO_H_NONBLOCKING, GNULIB_UNISTD_H_NONBLOCKING.
37164         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_NONBLOCKING.
37165         * modules/stdio (Makefile.am): Substitute GNULIB_STDIO_H_NONBLOCKING.
37166         * doc/posix-functions/fprintf.texi: Mention 'nonblocking' module and
37167         problem with non-blocking pipes.
37168         * doc/posix-functions/fputc.texi: Likewise.
37169         * doc/posix-functions/fputs.texi: Likewise.
37170         * doc/posix-functions/fwrite.texi: Likewise.
37171         * doc/posix-functions/printf.texi: Likewise.
37172         * doc/posix-functions/putc.texi: Likewise.
37173         * doc/posix-functions/putchar.texi: Likewise.
37174         * doc/posix-functions/puts.texi: Likewise.
37175         * doc/posix-functions/vfprintf.texi: Likewise.
37176         * doc/posix-functions/vprintf.texi: Likewise.
37177         * doc/posix-functions/write.texi: Likewise.
37179 2011-04-10  Jim Meyering  <meyering@redhat.com>
37181         maint.mk: prohibit doubled words
37182         Detect them also when they're separated by a newline.
37183         There are 3 ways to customize it:
37184           - disable the test on a per file basis, as usual with rules using
37185             $(VC_LIST_EXCEPT)
37186           - replace the default doubled-word-selecting regexp (affects all files)
37187           - ignore a particular file-vs-doubled-word match
37188         I nearly used that last one to ignore the "is is" match in
37189         coreutils' NEWS file, since the text was "ls -is is ..."
37190         To do that, I would have added this line to cfg.mk:
37191           ignore_doubled_word_match_RE_ = ^NEWS:[0-9]+:is[ ]is$
37192         but it would have ignored any "is is" match in NEWS.
37193         Low probability, but still...
37194         Instead, I changed the text, slightly:
37195           -  ls -is is now consistent with ls -lis in ignoring values returned
37196           +  "ls -is" is now consistent with ls -lis in ignoring values returned
37197         * top/maint.mk (prohibit_double_word_RE_): Provide default.
37198         (prohibit_doubled_word_): Define.
37199         (sc_prohibit_doubled_word): New rule.
37200         (sc_prohibit_the_the): Remove.  Subsumed by the above.
37202 2011-04-10  Jim Meyering  <meyering@redhat.com>
37204         maint: fix doubled-word typo in comment
37205         * m4/gethostname.m4: s/is is/it is/
37206         * m4/getdomainname.m4: Likewise.
37208 2011-04-10  Jim Meyering  <meyering@redhat.com>
37210         maint: remove doubled word: s/it it/it/
37211         * lib/stat-time.h (get_stat_birthtime): s/it it/it/
37213 2011-04-10  Jim Meyering  <meyering@redhat.com>
37215         maint.mk: remove useless semicolon and backslash
37216         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Remove stray
37217         semicolon and backslash.
37219 2011-04-10  Bruno Haible  <bruno@clisp.org>
37221         stdint test: Fix compilation failure on OSF/1 with DTK compiler.
37222         * modules/stdint-tests (Depends-on): Add wchar.
37224 2011-04-10  Jim Meyering  <meyering@redhat.com>
37226         maint: remove doubled words in comments, e.g., s/a a/a/
37227         * lib/strptime.c (day_of_the_week): s/the the/the/
37228         * tests/test-chown.h (test_chown): s/a a/a/
37230         test-chown.h: correct a cast
37231         * tests/test-chown.h (test_chown): Cast -1 to gid_t (not uid_t)
37232         when the destination is a stat.st_gid.
37234 2011-04-09  Mats Erik Andersson  <mats.andersson@gisladisker.se>  (tiny change)
37236         getaddrinfo: Fix test for sa_len member.
37237         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): When testing for sa_len,
37238         include <sys/types.h> before <sys/socket.h>.
37240 2011-04-09  Paul Eggert  <eggert@cs.ucla.edu>
37242         maint: change "can not" to "cannot"
37243         * doc/posix-functions/iconv.texi (iconv): This one crossed line
37244         boundaries.
37246 2011-04-09  Jim Meyering  <meyering@redhat.com>
37248         maint: change "a a" to "a"
37249         * tests/test-lchown.h (test_lchown): s/a a/a/
37251         maint.mk: prohibit \<the the\>
37252         * top/maint.mk (sc_prohibit_the_the): New rule.
37254         maint: fix "the the" in comment
37255         * lib/count-one-bits.h: s/the the/the/
37257         maint: change "can not" to "cannot"
37258         But do not change the occurrences in maintain.texi or in
37259         build-aux/po/Makefile.in.in, which I presume comes from gettext.
37260         * doc/gnulib-tool.texi: s/can not/cannot/
37261         * doc/posix-functions/accept.texi (accept): Likewise.
37262         * doc/posix-functions/socket.texi (socket): Likewise.
37263         * lib/mbrtowc.c: Likewise.
37265         maint.mk: prohibit use of "can not"
37266         * top/maint.mk (sc_prohibit_can_not): New rule.
37267         Writing "can not" (rather than "cannot") is too common.  Prohibit it.
37269 2011-04-09  Bruno Haible  <bruno@clisp.org>
37271         careadlinkat: Guard against misuse of careadlinkatcwd.
37272         * lib/careadlinkat.c: Include <stdlib.h>.
37273         (careadlinkatcwd): Check that the fd argument is as expected.
37275 2011-04-09  Bruno Haible  <bruno@clisp.org>
37277         careadlinkat: Use common coding style.
37278         * lib/careadlinkat.c: Move gnulib includes after system includes.
37280 2011-04-09  Bruno Haible  <bruno@clisp.org>
37282         careadlinkat: Clarify specification.
37283         * lib/careadlinkat.h (careadlinkat): Clarify preadlinkat argument.
37284         (careadlinkatcwd): Add comment.
37285         * lib/careadlinkat.c (careadlinkat): Clarify preadlinkat argument.
37287 2011-04-09  Bruno Haible  <bruno@clisp.org>
37289         areadlinkat: Avoid link error on many platforms.
37290         * modules/areadlinkat (Depends-on): Add areadlink.
37292 2011-04-09  Bruno Haible  <bruno@clisp.org>
37294         allocator, careadlinkat: Fix double-inclusion guard.
37295         * lib/allocator.h: Fix double-inclusion guard.
37296         * lib/careadlinkat.h: Likewise.
37298 2011-04-09  Bruno Haible  <bruno@clisp.org>
37300         relocatable-prog-wrapper: Update after module 'areadlink' changed.
37301         * lib/relocwrapper.c: Update dependencies hierarchy.
37302         * build-aux/install-reloc: Update list of files to be compiled.
37303         * modules/relocatable-prog-wrapper (Files): Add lib/careadlinkat.[hc],
37304         lib/allocator.[hc].
37306 2011-04-08  Eric Blake  <eblake@redhat.com>
37308         strftime: silence gnulib-tool warning
37309         * modules/strftime-tests (Depends-on): Drop automatic dependency.
37311 2011-04-08  Bruno Haible  <bruno@clisp.org>
37313         verify: Fix syntax error with GCC 4.6 in C++ mode.
37314         * lib/verify.h (HAVE__STATIC_ASSERT): Don't define in C++ mode.
37315         (HAVE_STATIC_ASSERT): New macro.
37316         (verify_true, verify): Use 'static_assert' if it is supported and
37317         '_Static_assert' is not supported.
37319 2011-04-08  Paul Eggert  <eggert@cs.ucla.edu>
37321         allocator: New module.
37322         * modules/allocator, lib/allocator.c: New files.
37323         * lib/allocator.h (stdlib_allocator): New decl.
37324         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC, standard_allocator):
37325         Remove.  Do not include <stdlib.h>.
37326         (careadlinkat): Use stdlib_allocator instead of rolling our own.
37327         * modules/careadlinkat (Files): Remove lib/allocator.h.
37328         (Depends-on): Add allocator.
37330         stdlib: let modules use system malloc, realloc
37331         * lib/stdlib.in.h (malloc, realloc): Don't #define or add warnings
37332         if !_GL_USE_STDLIB_ALLOC.
37333         (malloc, realloc): Limit this change to a smaller scope.
37335         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC): Define.
37336         (malloc, realloc): Don't #undef; no longer needed.
37337         * lib/malloca.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
37338         * lib/progreloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
37339         * lib/setenv.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
37340         * lib/canonicalize-lgpl.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
37341         * lib/relocatable.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
37342         * lib/relocwrapper.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
37343         * lib/malloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
37344         * lib/realloc.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
37346         careadlinkat: rename members to avoid problem
37347         * lib/allocator.h (struct allocator): Rename members from
37348         malloc/realloc to allocate/reallocate, to avoid problems if malloc
37349         and realloc are #define'd.  Reported by Eric Blake in
37350         <http://lists.gnu.org/r/bug-gnulib/2011-04/msg00091.html>.
37351         * lib/careadlinkat.c (careadlinkat): Adjust to renaming.
37353 2011-04-08  Eric Blake  <eblake@redhat.com>
37355         nonblocking: reduce dependency
37356         * tests/test-nonblocking.c: Only test sockets when in use.
37357         * modules/nonblocking-tests (Depends-on): Drop socket.
37358         (Makefile.am): Link even if sockets are not present.
37359         * modules/pipe2-tests (Makefile.am): Likewise.
37360         * lib/ioctl.c (ioctl) [WIN32]: Fail if sockets are not also in use.
37362         pipe2: fix O_NONBLOCK support on mingw
37363         * modules/pipe2 (Depends-on): Add nonblocking.
37364         * lib/pipe2.c (pipe2) [WIN32]: Add O_NONBLOCK support.
37365         * tests/test-pipe2.c (is_nonblocking): Adjust test accordingly.
37366         * tests/test-nonblocking.c (main): Likewise.
37367         * modules/pipe2-tests (Makefile.am): Avoid link failure.
37369         fcntl-h: fix O_ACCMODE on cygwin
37370         * doc/posix-headers/fcntl.texi (fcntl.h): Document the bug.
37371         * lib/fcntl.in.h (O_ACCMODE): Fix it.
37373         pipe-filter: drop O_NONBLOCK workarounds
37374         * modules/pipe-filter-gi (Depends-on): Add fcntl-h.
37375         * modules/pipe-filter-ii (Depends-on): Likewise.
37376         * lib/pipe-filter-aux.h (O_NONBLOCK): Delete workaround.
37378         nonblocking: provide O_NONBLOCK for mingw
37379         * modules/nonblocking (Depends-on): Add open.
37380         (configure.ac): Set new witness macro.
37381         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide default for it.
37382         * modules/fcntl-h (Makefile.am): Substitute it.
37383         * lib/fcntl.in.h (O_NONBLOCK): Guarantee non-zero definition when
37384         nonblocking module is in use.
37385         * lib/nonblocking.c: Adjust portability test.
37386         * lib/open.c (open): Don't let native open see gnulib flag.
37387         * tests/test-fcntl-h.c (main): Enhance test.
37388         * tests/test-open.h (test_open): Likewise.
37389         * doc/posix-headers/fcntl.texi (fcntl.h): Document the replacement.
37391         careadlinkat: fix compilation error on mingw
37392         * lib/careadlinkat.c (standard_allocator): Avoid renaming fields
37393         within struct allocator.
37395 2011-04-06  Eric Blake  <eblake@redhat.com>
37397         binary-io: relicense under LGPLv2+
37398         * modules/binary-io (License): Relax to LGPLv2+.
37399         Requested for libvirt, and required by pipe2.
37401 2011-04-06  Paul Eggert  <eggert@cs.ucla.edu>
37403         verify: use _Static_assert if available
37404         * lib/verify.h (HAVE__STATIC_ASSERT): New macro.
37405         (verify_true, verify): Use it if available.  This generates better
37406         diagnostics with GCC 4.6.0 and later.
37408 2011-04-05  Bruno Haible  <bruno@clisp.org>
37410         Remove leftover generated .h files after config.status changed.
37412         * m4/alloca.m4 (gl_FUNC_ALLOCA): New automake conditional
37413         GL_GENERATE_ALLOCA_H.
37414         * modules/alloca-opt (Makefile.am): Remove alloca.h if
37415         GL_GENERATE_ALLOCA_H evaluates to false.
37417         * m4/argz.m4 (gl_FUNC_ARGZ): New automake conditional
37418         GL_GENERATE_ARGZ_H.
37419         * modules/argz (Makefile.am): Remove argz.h if GL_GENERATE_ARGZ_H
37420         evaluates to false.
37422         * m4/byteswap.m4 (gl_BYTESWAP): New automake conditional
37423         GL_GENERATE_BYTESWAP_H.
37424         * modules/byteswap (Makefile.am): Remove byteswap.h if
37425         GL_GENERATE_BYTESWAP_H evaluates to false.
37427         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): New automake conditional
37428         GL_GENERATE_ERRNO_H.
37429         * modules/errno (Makefile.am): Remove errno.h if GL_GENERATE_ERRNO_H
37430         evaluates to false.
37432         * m4/float_h.m4 (gl_FLOAT_H): New automake conditional
37433         GL_GENERATE_FLOAT_H.
37434         * modules/float (Makefile.am): Remove float.h if GL_GENERATE_FLOAT_H
37435         evaluates to false.
37437         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): New automake conditional
37438         GL_GENERATE_FNMATCH_H.
37439         * modules/fnmatch (Makefile.am): Remove fnmatch.h if
37440         GL_GENERATE_FNMATCH_H evaluates to false.
37442         * m4/glob.m4 (gl_GLOB_SUBSTITUTE, gl_GLOB): New automake conditional
37443         GL_GENERATE_GLOB_H.
37444         * modules/glob (Makefile.am): Remove glob.h if GL_GENERATE_GLOB_H
37445         evaluates to false.
37447         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H, gl_ICONV_H_DEFAULTS): New
37448         automake conditional GL_GENERATE_ICONV_H.
37449         * modules/iconv-h (Makefile.am): Remove iconv.h if GL_GENERATE_ICONV_H
37450         evaluates to false.
37452         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): New automake conditional
37453         GL_GENERATE_NETINET_IN_H.
37454         * modules/netinet_in (Makefile.am): Remove netinet/in.h if
37455         GL_GENERATE_NETINET_IN_H evaluates to false.
37457         * m4/pthread.m4 (gl_PTHREAD_CHECK): Set PTHREAD_H here. New automake
37458         conditional GL_GENERATE_PTHREAD_H.
37459         (gl_PTHREAD_DEFAULTS): Don't set PTHREAD_H here.
37460         * modules/pthread (Makefile.am): Remove pthread.h if
37461         GL_GENERATE_PTHREAD_H evaluates to false.
37463         * m4/sched_h.m4 (gl_SCHED_H): New automake conditional
37464         GL_GENERATE_SCHED_H.
37465         * modules/sched (Makefile.am): Remove sched.h if GL_GENERATE_SCHED_H
37466         evaluates to false.
37468         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): New automake
37469         conditional GL_GENERATE_SELINUX_CONTEXT_H.
37470         * modules/selinux-h (Makefile.am): Remove selinux/context.h if
37471         GL_GENERATE_SELINUX_CONTEXT_H evaluates to false.
37473         * m4/stdarg.m4 (gl_STDARG_H): New automake conditional
37474         GL_GENERATE_STDARG_H.
37475         * modules/stdarg (Makefile.am): Remove stdarg.h if
37476         GL_GENERATE_STDARG_H evaluates to false.
37478         * m4/stdbool.m4 (AM_STDBOOL_H): New automake conditional
37479         GL_GENERATE_STDBOOL_H.
37480         * modules/stdbool (Makefile.am): Remove stdbool.h if
37481         GL_GENERATE_STDBOOL_H evaluates to false.
37483         * m4/stddef_h.m4 (gl_STDDEF_H): Set STDDEF_H here. New automake
37484         conditional GL_GENERATE_STDDEF_H.
37485         (gl_STDDEF_H_DEFAULTS): Don't set STDDEF_H here.
37486         * modules/stddef (Makefile.am): Remove stddef.h if
37487         GL_GENERATE_STDDEF_H evaluates to false.
37489         * m4/stdint.m4 (gl_STDINT_H): New automake conditional
37490         GL_GENERATE_STDINT_H.
37491         * modules/stdint (Makefile.am): Remove stdint.h if
37492         GL_GENERATE_STDINT_H evaluates to false.
37494         * m4/sysexits.m4 (gl_SYSEXITS): New automake conditional
37495         GL_GENERATE_SYSEXITS_H.
37496         * modules/sysexits (Makefile.am): Remove sysexits.h if
37497         GL_GENERATE_SYSEXITS_H evaluates to false.
37499         Reported by Karl Berry and Ralf Wildenhues.
37501 2011-04-05  Bruno Haible  <bruno@clisp.org>
37503         Ensure to rebuild generated .h files when config.status has changed.
37504         * modules/arpa_inet (Makefile.am): Add dependency from .h file to
37505         config.status.
37506         * modules/ctype (Makefile.am): Likewise.
37507         * modules/dirent (Makefile.am): Likewise.
37508         * modules/errno (Makefile.am): Likewise.
37509         * modules/fcntl-h (Makefile.am): Likewise.
37510         * modules/float (Makefile.am): Likewise.
37511         * modules/getopt-posix (Makefile.am): Likewise.
37512         * modules/glob (Makefile.am): Likewise.
37513         * modules/iconv-h (Makefile.am): Likewise.
37514         * modules/inttypes (Makefile.am): Likewise.
37515         * modules/langinfo (Makefile.am): Likewise.
37516         * modules/locale (Makefile.am): Likewise.
37517         * modules/math (Makefile.am): Likewise.
37518         * modules/netdb (Makefile.am): Likewise.
37519         * modules/netinet_in (Makefile.am): Likewise.
37520         * modules/poll-h (Makefile.am): Likewise.
37521         * modules/pthread (Makefile.am): Likewise.
37522         * modules/pty (Makefile.am): Likewise.
37523         * modules/sched (Makefile.am): Likewise.
37524         * modules/search (Makefile.am): Likewise.
37525         * modules/selinux-h (Makefile.am): Likewise.
37526         * modules/signal (Makefile.am): Likewise.
37527         * modules/spawn (Makefile.am): Likewise.
37528         * modules/stdarg (Makefile.am): Likewise.
37529         * modules/stdbool (Makefile.am): Likewise.
37530         * modules/stddef (Makefile.am): Likewise.
37531         * modules/stdint (Makefile.am): Likewise.
37532         * modules/stdio (Makefile.am): Likewise.
37533         * modules/stdlib (Makefile.am): Likewise.
37534         * modules/string (Makefile.am): Likewise.
37535         * modules/strings (Makefile.am): Likewise.
37536         * modules/sys_file (Makefile.am): Likewise.
37537         * modules/sys_ioctl (Makefile.am): Likewise.
37538         * modules/sys_select (Makefile.am): Likewise.
37539         * modules/sys_socket (Makefile.am): Likewise.
37540         * modules/sys_stat (Makefile.am): Likewise.
37541         * modules/sys_time (Makefile.am): Likewise.
37542         * modules/sys_times (Makefile.am): Likewise.
37543         * modules/sys_utsname (Makefile.am): Likewise.
37544         * modules/sys_wait (Makefile.am): Likewise.
37545         * modules/sysexits (Makefile.am): Likewise.
37546         * modules/termios (Makefile.am): Likewise.
37547         * modules/time (Makefile.am): Likewise.
37548         * modules/unistd (Makefile.am): Likewise.
37549         * modules/wchar (Makefile.am): Likewise.
37550         * modules/wctype-h (Makefile.am): Likewise.
37551         Reported by Karl Berry, Eric Blake, and Ralf Wildenhues.
37553 2011-04-05  Bruno Haible  <bruno@clisp.org>
37555         pipe2: Relicense under LGPLv2+.
37556         * modules/pipe2 (License): Change to LGPLv2+.
37557         Requested by Eric Blake, for libvirt.
37559 2011-04-05  Bruce Korb  <bkorb@gnu.org>
37561         bootstrap: compute gnulib_extra_files after updating build_aux
37562         * build-aux/bootstrap (gnulib_extra_files): bootstrap.conf may
37563         change build_aux or also supply gnulib_extra_files.  Handle correctly.
37565 2011-04-05  Eric Blake  <eblake@redhat.com>
37567         bootstrap: preserve git whitelist item sorting
37568         * build-aux/bootstrap (sort_patterns): New function.
37569         (insert_sorted_if_absent): Use it to sink ! lines to the bottom.
37571 2011-04-05  Simon Josefsson  <simon@josefsson.org>
37573         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Don't trigger
37574         sc_space_tab check.
37576 2011-04-05  Paul Eggert  <eggert@cs.ucla.edu>
37578         areadlink, areadlinkat: rewrite in terms of careadlinkat
37579         * lib/areadlink.c, lib/areadlinkat.c: Include careadlinkat.h
37580         instead of errno.h, limits.h, stdint.h, stdlib.h, string.h, unistd.h.
37581         (SSIZE_MAX, INITIAL_BUF_SIZE): Remove.
37582         (malloc, realloc): Remove #undefs.
37583         (areadlink, areadlinkat): Rewrite in terms of careadlinkat.
37584         * modules/areadlink (Depends-on): Add careadlinkat.  Remove
37585         readlink, ssize_t, stdint, unistd.
37586         * modules/areadlinkat (Depends-on): Add careadlinkat.  Remove
37587         areadlink, stdint.
37589         careadlinkat: new module
37590         * lib/allocator.h, lib/careadlinkat.h, lib/careadlinkat.c:
37591         * modules/careadlinkat: New files, written by me with
37592         a review and feedback from Ben Pfaff in
37593         <http://lists.gnu.org/r/bug-gnulib/2011-04/msg00008.html>.
37595 2011-04-01  Bruno Haible  <bruno@clisp.org>
37597         wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr: Avoid errors in C++ mode.
37598         * lib/wchar.in.h (wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr): Use
37599         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS. On glibc >= 2.10
37600         systems, use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN.
37601         Reported by Bruce Korb <bruce.korb@gmail.com>.
37603 2011-04-01  Bruno Haible  <bruno@clisp.org>
37605         wcpcpy, wcpncpy: Ensure declaration on glibc >= 2.13 systems.
37606         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Require AC_USE_SYSTEM_EXTENSIONS.
37607         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Likewise.
37608         * modules/wcpcpy (Depends-on): Add extensions.
37609         * modules/wcpncpy (Depends-on): Likewise.
37610         * doc/posix-functions/wcpcpy.texi: Mention missing declaration on glibc
37611         systems.
37612         * doc/posix-functions/wcpncpy.texi: Likewise.
37613         * doc/posix-functions/wcwidth.texi: Likewise.
37615 2011-03-31  Eric Blake  <eblake@redhat.com>
37617         nonblocking: fix mingw test failures
37618         * lib/nonblocking.c (set_nonblocking_flag): Succeed when clearing
37619         non-blocking flag on regular file.
37620         (get_nonblocking_flag): Set errno on invalid fd.
37621         * tests/test-nonblocking.c (main): Avoid test failure on
37622         directories if fchdir is not active.
37623         * modules/nonblocking-tests (Depends-on): Drop unused dependency.
37625 2011-03-31  Bruno Haible  <bruno@clisp.org>
37627         Fix bug with gl_WARN_ON_USE_PREPARE, introduced on 2011-01-23.
37628         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): Hide the
37629         gl_WARN_ON_USE_PREPARE definition from 'aclocal'.
37630         Reported by Simon Josefsson <simon@josefsson.org>.
37632 2011-03-31  Bruno Haible  <bruno@clisp.org>
37633         and Eric Blake  <eblake@redhat.com>
37635         nonblocking: new module
37636         * modules/nonblocking: New module.
37637         * modules/nonblocking-tests: Likewise.
37638         * lib/nonblocking.h: New file.
37639         * lib/nonblocking.c: Likewise.
37640         * tests/test-nonblocking.c: New test.
37641         * lib/ioctl.c (ioctl) [mingw]: Update comment.
37643 2011-03-30  Bruno Haible  <bruno@clisp.org>
37645         stdio: Avoid GCC >= 4.4 warnings when using %lld and similar on mingw.
37646         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF): Use 'gnu_printf' format
37647         instead of 'printf' format for GCC >= 4.4.
37648         (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): New macro.
37649         (fprintf, printf, vfprintf, vprintf): Declare with
37650         _GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM when the function ends up calling
37651         the system's vfprintf() function.
37652         Reported by Daniel P. Berrange <berrange@redhat.com> via Eric Blake.
37654 2011-03-30  Eric Blake  <eblake@redhat.com>
37656         passfd: fix scoping bug
37657         * lib/passfd.c (sendfd, recvfd): Don't let buf go out of scope
37658         before sendmsg/recvmsg.
37660         passfd: standardize coding conventions
37661         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Drop check for something that
37662         can be learned at compile time.
37663         * lib/passfd.c (MSG_CMSG_CLOEXEC): Reduce number of in-function
37664         ifdefs.
37665         (sendfd, recvfd): Follow gnulib code conventions.
37667         passfd: fix incorrect sendmsg arguments
37668         * lib/passfd.c (sendfd): Avoid uninitialized msg_flags field, and
37669         incorrect msg_controllen value.
37670         * modules/passfd-tests (Depends-on): Check for alarm.
37671         * tests/test-passfd.c (main) [HAVE_DECL_ALARM]: Avoid hanging test.
37672         Reported by Bastien ROUCARIES.
37674 2011-03-30  Bruno Haible  <bruno@clisp.org>
37676         c-strcasestr: Relicense under LGPLv2+.
37677         * modules/c-strcasestr (License): Change to LGPLv2+.
37678         Requested by Eric Blake, for libvirt.
37680 2011-03-30  Simon Josefsson  <simon@josefsson.org>
37682         * users.txt: Add libidn2.  Fix libtasn1 link.
37684 2011-03-30  Jim Meyering  <meyering@redhat.com>
37686         tests: readlink* ("",... fails with EINVAL on newer kernels
37687         readlink and readlinkat have typically failed with ENOENT for
37688         the invalid, empty file name,  "".  However, with the advent
37689         of linux-2.6.39, they fail with EINVAL.
37690         * tests/test-areadlink.h (test_areadlink): Also accept EINVAL
37691         when operating on the empty file name.
37692         * tests/test-readlink.h (test_readlink): Likewise.
37694 2011-03-29  Bruno Haible  <bruno@clisp.org>
37696         Relicense some modules under LGPLv2+, for libidn2.
37697         * modules/array-mergesort (License): Change to LGPLv2+.
37698         * modules/c-strcaseeq (License): Likewise.
37699         * modules/striconveh (License): Likewise.
37700         * modules/striconveha (License): Likewise.
37701         * modules/uniconv/base (License): Likewise.
37702         * modules/uniconv/u8-conv-from-enc (License): Likewise.
37703         * modules/uniconv/u8-strconv-from-enc (License): Likewise.
37704         * modules/uniconv/u8-strconv-from-locale (License): Likewise.
37705         * modules/unictype/base (License): Likewise.
37706         * modules/unictype/bidiclass-of (License): Likewise.
37707         * modules/unictype/category-M (License): Likewise.
37708         * modules/unictype/category-none (License): Likewise.
37709         * modules/unictype/category-of (License): Likewise.
37710         * modules/unictype/category-test (License): Likewise.
37711         * modules/unictype/category-test-withtable (License): Likewise.
37712         * modules/unictype/combining-class (License): Likewise.
37713         * modules/unictype/joiningtype-of (License): Likewise.
37714         * modules/unictype/scripts (License): Likewise.
37715         * modules/uninorm/base (License): Likewise.
37716         * modules/uninorm/canonical-decomposition (License): Likewise.
37717         * modules/uninorm/composition (License): Likewise.
37718         * modules/uninorm/decompose-internal (License): Likewise.
37719         * modules/uninorm/decomposition-table (License): Likewise.
37720         * modules/uninorm/nfc (License): Likewise.
37721         * modules/uninorm/nfd (License): Likewise.
37722         * modules/uninorm/u32-normalize (License): Likewise.
37723         * modules/unistr/base (License): Likewise.
37724         * modules/unistr/u32-cpy (License): Likewise.
37725         * modules/unistr/u32-mbtouc-unsafe (License): Likewise.
37726         * modules/unistr/u32-to-u8 (License): Likewise.
37727         * modules/unistr/u32-uctomb (License): Likewise.
37728         * modules/unistr/u8-check (License): Likewise.
37729         * modules/unistr/u8-mblen (License): Likewise.
37730         * modules/unistr/u8-mbtouc (License): Likewise.
37731         * modules/unistr/u8-mbtouc-unsafe (License): Likewise.
37732         * modules/unistr/u8-mbtoucr (License): Likewise.
37733         * modules/unistr/u8-prev (License): Likewise.
37734         * modules/unistr/u8-strlen (License): Likewise.
37735         * modules/unistr/u8-to-u32 (License): Likewise.
37736         * modules/unistr/u8-uctomb (License): Likewise.
37737         * modules/unitypes (License): Likewise.
37738         Requested by Simon Josefsson.
37740 2011-03-29  Simon Josefsson  <simon@josefsson.org>
37742         lib-symbol-visibility: Add a notice.
37743         * modules/lib-symbol-visibility (Notice): New field.
37745 2011-03-29  Bruno Haible  <bruno@clisp.org>
37747         getaddrinfo: Doc fix.
37748         * doc/posix-functions/getaddrinfo.texi: Mention Windows problem in the
37749         section "fixed in Gnulib".
37751 2011-03-28  Simon Josefsson  <simon@josefsson.org>
37753         * doc/posix-functions/getaddrinfo.texi: Drop netdb.h discussion.
37754         Reported by Bastien ROUCARIES <roucaries.bastien@gmail.com>.
37756 2011-03-26  Bruno Haible  <bruno@clisp.org>
37758         unictype/property-byname: Reduce the number of load-time relocations.
37759         * lib/unictype/pr_byname.c: Include <stdlib.h>.
37760         (UC_PROPERTY_INDEX_*): New enumeration values.
37761         (uc_property_byname): Convert an index from the lookup table to an
37762         uc_property_t.
37763         * lib/unictype/pr_byname.gperf: Store indices instead of uc_property_t
37764         values.
37766 2011-03-26  Bruno Haible  <bruno@clisp.org>
37768         unictype/property-byname: Allow omitted word separators and aliases.
37769         * lib/unictype/pr_byname.gperf: Add property names without word
37770         separators. Add aliases from Unicode 6.0 PropertyAliases.txt, except
37771         for 'space'.
37773 2011-03-26  Bruno Haible  <bruno@clisp.org>
37775         unictype/joininggroup-byname: Allow hyphens, omitted word separators.
37776         * lib/unictype/joininggroup_byname.c (uc_joining_group_byname): Convert
37777         also hyphens to space.
37778         * lib/unictype/joininggroup_byname.gperf: Recognize the names also
37779         without spaces.
37780         * tests/unictype/test-joininggroup_byname.c (main): Add more tests.
37782 2011-03-26  Bruno Haible  <bruno@clisp.org>
37784         unictype/joiningtype-byname: Recognize long names as well.
37785         * lib/unictype.in.h (uc_joiningtype_class_byname): Allow argument to be
37786         a long name.
37787         * lib/unictype/joiningtype_byname.c: Include <string.h>,
37788         unictype/joiningtype_byname.h.
37789         (uc_joiningtype_class_byname): Use uc_joining_type_lookup.
37790         * lib/unictype/joiningtype_byname.gperf: New file.
37791         * modules/unictype/joiningtype-byname (Files): Add
37792         lib/unictype/joiningtype_byname.gperf.
37793         (Depends-on): Add gperf.
37794         (Makefile.am): Add rule for generating unictype/joiningtype_byname.h.
37795         * tests/unictype/test-joiningtype_byname.c (main): Test the recognition of
37796         long names.
37798         Tests for module 'unictype/joiningtype-longname'.
37799         * modules/unictype/joiningtype-longname-tests: New file.
37800         * tests/unictype/test-joiningtype_longname.c: New file.
37802         New module 'unictype/joiningtype-longname'.
37803         * lib/unictype.in.h (uc_joiningtype_class_long_name): New declaration.
37804         * lib/unictype/joiningtype_longname.c: New file.
37805         * modules/unictype/joiningtype-longname: New file.
37806         * modules/unictype/joiningtype-all (Depends-on): Add
37807         unictype/joiningtype-longname.
37809 2011-03-26  Bruno Haible  <bruno@clisp.org>
37811         unictype/bidiclass-byname: Recognize long names as well.
37812         * lib/unictype.in.h (uc_bidi_class_byname): Allow argument to be a long
37813         name.
37814         * lib/unictype/bidi_byname.c: Include <string.h>,
37815         unictype/bidi_byname.h.
37816         (uc_bidi_class_byname): Use uc_bidi_class_lookup.
37817         * lib/unictype/bidi_byname.gperf: New file.
37818         * modules/unictype/bidiclass-byname (Files): Add
37819         lib/unictype/bidi_byname.gperf.
37820         (Depends-on): Add gperf.
37821         (Makefile.am): Add rule for generating unictype/bidi_byname.h.
37822         * tests/unictype/test-bidi_byname.c (main): Test the recognition of
37823         long names.
37825         Tests for module 'unictype/bidiclass-longname'.
37826         * modules/unictype/bidiclass-longname-tests: New file.
37827         * tests/unictype/test-bidi_longname.c: New file.
37829         New module 'unictype/bidiclass-longname'.
37830         * lib/unictype.in.h (uc_bidi_class_long_name): New declaration.
37831         * lib/unictype/bidi_longname.c: New file.
37832         * modules/unictype/bidiclass-longname: New file.
37833         * modules/unictype/bidiclass-all (Depends-on): Add
37834         unictype/bidiclass-longname.
37836 2011-03-26  Bruno Haible  <bruno@clisp.org>
37838         unictype/bidi*: Rename modules.
37839         * modules/unictype/bidiclass-all: Renamed from
37840         modules/unictype/bidicategory-all.
37841         * modules/unictype/bidiclass-name: Renamed from
37842         modules/unictype/bidiclass-name.
37843         (Description): Update.
37844         * modules/unictype/bidiclass-name-tests: Renamed from
37845         modules/unictype/bidicategory-name-tests.
37846         * modules/unictype/bidiclass-byname: Renamed from
37847         modules/unictype/bidicategory-byname.
37848         (Description): Update.
37849         * modules/unictype/bidiclass-byname-tests: Renamed from
37850         modules/unictype/bidicategory-byname-tests.
37851         * modules/unictype/bidiclass-of: Renamed from
37852         modules/unictype/bidicategory-of.
37853         (Description): Update.
37854         * modules/unictype/bidiclass-of-tests: Renamed from
37855         modules/unictype/bidicategory-of-tests.
37856         * modules/unictype/bidiclass-test: Renamed from
37857         modules/unictype/bidicategory-test.
37858         (Description): Update.
37859         * modules/unictype/bidiclass-test-tests: Renamed from
37860         modules/unictype/bidicategory-test-tests.
37861         * modules/unictype/bidicategory-all: New file, a simple redirection.
37862         * modules/unictype/bidicategory-name: Likewise.
37863         * modules/unictype/bidicategory-byname: Likewise.
37864         * modules/unictype/bidicategory-of: Likewise.
37865         * modules/unictype/bidicategory-test: Likewise.
37866         * modules/unictype/property-bidi-* (Dependencies): Update.
37867         * lib/unictype/bidi_*.c: Update comment.
37869 2011-03-26  Bruno Haible  <bruno@clisp.org>
37871         unictype/bidi*: Rename functions, part 2.
37872         * modules/unictype/bidicategory-name (configure.ac): Update required
37873         libunistring version.
37874         * modules/unictype/bidicategory-byname (configure.ac): Likewise.
37876 2011-03-25  Bruno Haible  <bruno@clisp.org>
37878         New module 'unictype/combining-class-all'.
37879         * modules/unictype/combining-class-all: New file.
37881         Tests for module 'unictype/combining-class-byname'.
37882         * modules/unictype/combining-class-byname-tests: New file.
37883         * tests/unictype/test-combiningclass_byname.c: New file.
37885         New module 'unictype/combining-class-byname'.
37886         * lib/unictype.in.h (uc_combining_class_byname): New declaration.
37887         * lib/unictype/combiningclass_byname.c: New file.
37888         * lib/unictype/combiningclass_byname.gperf: New file.
37889         * modules/unictype/combining-class-byname: New file.
37891         Tests for module 'unictype/combining-class-longname'.
37892         * modules/unictype/combining-class-longname-tests: New file.
37893         * tests/unictype/test-combiningclass_longname.c: New file.
37895         New module 'unictype/combining-class-longname'.
37896         * lib/unictype.in.h (uc_combining_class_long_name): New declaration.
37897         * lib/unictype/combiningclass_longname.c: New file.
37898         * modules/unictype/combining-class-longname: New file.
37900         Tests for module 'unictype/combining-class-name'.
37901         * modules/unictype/combining-class-name-tests: New file.
37902         * tests/unictype/test-combiningclass_name.c: New file.
37904         New module 'unictype/combining-class-name'.
37905         * lib/unictype.in.h (uc_combining_class_name): New declaration.
37906         * lib/unictype/combiningclass_name.c: New file.
37907         * modules/unictype/combining-class-name: New file.
37909 2011-03-25  Bruno Haible  <bruno@clisp.org>
37911         unictype/combining-class: Rename source files.
37912         * lib/gen-uni-tables.c (main): Emit unictype/combiningclass.h instead
37913         of unictype/combining.h.
37914         * lib/unictype/combiningclass.c: Renamed from lib/unictype/combining.c.
37915         Update.
37916         * lib/unictype/combiningclass.h: Renamed from lib/unictype/combining.h.
37917         * modules/unictype/combining-class (Description): Fix.
37918         (Files, Makefile.am): Update.
37919         * tests/unictype/test-combiningclass.c: Renamed from
37920         tests/unictype/test-combining.c.
37921         * modules/unictype/combining-class-tests (Files, Makefile.am): Update.
37923 2011-03-25  Bruno Haible  <bruno@clisp.org>
37925         unictype: Update list of canonical combining classes.
37926         * lib/unictype.in.h (UC_CCC_ATA): New enumeration value.
37928 2011-03-25  Bruno Haible  <bruno@clisp.org>
37930         unictype/category-byname: Recognize long names as well.
37931         * lib/unictype.in.h (uc_general_category_byname): Allow argument to be
37932         a long name.
37933         * lib/unictype/categ_byname.c: Include <stdlib.h>, <string.h>,
37934         unictype/categ_byname.h.
37935         (UC_CATEGORY_INDEX_*): New enumeration values.
37936         (uc_general_category_byname): Use uc_general_category_lookup and
37937         convert from index to value.
37938         * lib/unictype/categ_byname.gperf: New file.
37939         * modules/unictype/category-byname (Files): Add
37940         lib/unictype/categ_byname.gperf.
37941         (Depends-on): Add gperf.
37942         (Makefile.am): Add rule for generating unictype/categ_byname.h.
37943         * tests/unictype/test-categ_byname.c (main): Test the recognition of
37944         long names.
37946         Tests for module 'unictype/category-longname'.
37947         * modules/unictype/category-longname-tests: New file.
37948         * tests/unictype/test-categ_longname.c: New file.
37950         New module 'unictype/category-longname'.
37951         * lib/unictype.in.h (uc_general_category_long_name): New declaration.
37952         * lib/unictype/categ_longname.c: New file.
37953         * modules/unictype/category-longname: New file.
37954         * modules/unictype/category-all (Depends-on): Add it.
37956 2011-03-25  Bruno Haible  <bruno@clisp.org>
37958         Tests for module 'unictype/category-LC'.
37959         * modules/unictype/category-LC-tests: New file.
37960         * tests/unictype/test-categ_LC.c: New file, automatically generated.
37962         New module 'unictype/category-LC'.
37963         * lib/unictype.in.h (UC_CATEGORY_MASK_LC): New enumeration value.
37964         (UC_CATEGORY_LC): New declaration.
37965         (UC_CASED_LETTER): New macro.
37966         * lib/gen-uni-tables.c (is_category_LC): New function.
37967         (output_categories): Also handle category LC.
37968         (UC_CATEGORY_MASK_LC): New enumeration value.
37969         (general_category_byname): Also handle category LC.
37970         * lib/unictype/categ_LC.c: New file.
37971         * lib/unictype/categ_LC.h: New file, automatically generated.
37972         * lib/unictype/categ_name.c (uc_general_category_name): Also handle
37973         category LC.
37974         * lib/unictype/categ_byname.c (uc_general_category_byname): Likewise.
37975         * modules/unictype/category-LC: New file.
37976         * modules/unictype/category-byname (Depends-on): Add
37977         unictype/category-LC.
37978         * modules/unictype/category-all (Depends-on): Likewise.
37980 2011-03-25  Eric Blake  <eblake@redhat.com>
37982         xmalloc: revert yesterday's regression
37983         * lib/xmalloc.c (xrealloc): Once again forward xrealloc(NULL,0) to
37984         realloc's underlying behavior (allowing allocation of zero-size
37985         objects, especially if malloc-gnu is also in use).
37987 2011-03-25  Reuben Thomas  <rrt@sc3d.org>
37989         maint.mk: add missing version to VC-tag
37990         * top/maint.mk: git tag was missing actual tag name; add it.
37992         valgrind: do leak checking, and exit with code 1 on error (not 0)
37993         * m4/valgrind-tests.m4: Add `--error-exitcode=1 --leak-check=full'
37994         to VALGRIND.
37996 2010-11-30  Reuben Thomas  <rrt@sc3d.org>
37998         posix-modules: say what it does.
37999         * posix-modules: Add a line to the --help output saying what it does.
38001 2011-03-24  Paul Eggert  <eggert@cs.ucla.edu>
38003         xmalloc: Do not leak if underlying realloc is C99 compatible.
38004         * lib/xmalloc.c (xrealloc): If N is zero, call 'free' directly.
38005         This avoids a leak on C99-based systems.  See
38006         <http://lists.gnu.org/r/bug-gnulib/2011-03/msg00243.html>.
38008 2011-03-24  Eric Blake  <eblake@redhat.com>
38010         realloc: document portability problem
38011         * doc/posix-functions/realloc.texi (realloc): Mention pitfalls of
38012         passing 0 size to realloc.
38014 2011-03-23  Ben Walton  <bwalton@artsci.utoronto.ca>
38016         doc: update users.txt
38017         * users.txt: Add cvsps, tmpwatch
38019 2011-03-23  Matt Rice  <ratmice@gmail.com>
38021         doc: update users.txt
38022         * users.txt: Add gdb.
38024 2011-03-23  Jim Meyering  <meyering@redhat.com>
38026         doc: update users.txt
38027         Looking through matches up to the following URL (there are still
38028         several more pages), I found several projects that use gnulib:
38029         http://codesearch.google.com/codesearch?start=50&q=gnulib-cache\.m4
38030         * users.txt: Add nagios plugins (nagiosplug), acct, gengetopt,
38031         gmediaserver, gtkreindeer, jugtail, libunistring, mini-httpd, reindeer.
38033 2011-03-22  Bruno Haible  <bruno@clisp.org>
38035         unictype/bidi*: Rename functions.
38036         * lib/unictype.in.h (uc_bidi_class_name, uc_bidi_class_byname,
38037         uc_bidi_class, uc_is_bidi_class): New declarations.
38038         * lib/unictype/bidi_byname.c (uc_bidi_class_byname): Renamed from
38039         uc_bidi_category_byname.
38040         (uc_bidi_category_byname): New function.
38041         * lib/unictype/bidi_name.c (u_bidi_class_name): Renamed from
38042         u_bidi_category_name.
38043         (uc_bidi_class_name): Renamed from uc_bidi_category_name.
38044         (uc_bidi_category_name): New function.
38045         * lib/unictype/bidi_of.c (uc_bidi_class): Renamed from
38046         uc_bidi_category.
38047         (uc_bidi_category): New function.
38048         * lib/unictype/bidi_test.c (uc_is_bidi_class): Renamed from
38049         uc_is_bidi_category. Invoke uc_bidi_class.
38050         (uc_is_bidi_category): New function.
38051         * tests/unictype/test-bidi_byname.c (main): Test uc_bidi_class_byname
38052         instead of uc_bidi_category_byname.
38053         * tests/unictype/test-bidi_name.c (main): Test uc_bidi_class_name
38054         instead of uc_bidi_category_name.
38055         * tests/unictype/test-bidi_of.c (main): Test uc_bidi_class instead of
38056         uc_bidi_category.
38057         * tests/unictype/test-bidi_test.c (main): Test uc_is_bidi_class
38058         instead of uc_is_bidi_category.
38060 2011-03-21  Bruno Haible  <bruno@clisp.org>
38062         New module 'unictype/joininggroup-all'.
38063         * modules/unictype/joininggroup-all: New file.
38065         Tests for module 'unictype/joininggroup-of'.
38066         * modules/unictype/joininggroup-of-tests: New file.
38067         * tests/unictype/test-joininggroup_of.c: New file.
38068         * tests/unictype/test-joininggroup_of.h: New file, automatically
38069         generated by gen-uni-tables.
38071         New module 'unictype/joininggroup-of'.
38072         * modules/unictype/joininggroup-of: New file.
38073         * lib/unictype/joininggroup_of.c: New file.
38074         * lib/unictype/joininggroup_of.h: New file, automatically generated by
38075         gen-uni-tables.
38077         Tests for module 'unictype/joininggroup-byname'.
38078         * modules/unictype/joininggroup-byname-tests: New file.
38079         * tests/unictype/test-joininggroup_byname.c: New file.
38081         New module 'unictype/joininggroup-byname'.
38082         * modules/unictype/joininggroup-byname: New file.
38083         * lib/unictype/joininggroup_byname.c: New file.
38084         * lib/unictype/joininggroup_byname.gperf: New file.
38086         Tests for module 'unictype/joininggroup-name'.
38087         * modules/unictype/joininggroup-name-tests: New file.
38088         * tests/unictype/test-joininggroup_name.c: New file.
38090         New module 'unictype/joininggroup-name'.
38091         * modules/unictype/joininggroup-name: New file.
38092         * lib/unictype/joininggroup_name.c: New file.
38093         * lib/unictype/joininggroup_name.h: New file.
38095         New module 'unictype/joiningtype-all'.
38096         * modules/unictype/joiningtype-all: New file.
38098         Tests for module 'unictype/joiningtype-of'.
38099         * modules/unictype/joiningtype-of-tests: New file.
38100         * tests/unictype/test-joiningtype_of.c: New file.
38101         * tests/unictype/test-joiningtype_of.h: New file, automatically
38102         generated by gen-uni-tables.
38104         New module 'unictype/joiningtype-of'.
38105         * modules/unictype/joiningtype-of: New file.
38106         * lib/unictype/joiningtype_of.c: New file.
38107         * lib/unictype/joiningtype_of.h: New file, automatically generated by
38108         gen-uni-tables.
38110         Tests for module 'unictype/joiningtype-byname'.
38111         * modules/unictype/joiningtype-byname-tests: New file.
38112         * tests/unictype/test-joiningtype_byname.c: New file.
38114         New module 'unictype/joiningtype-byname'.
38115         * modules/unictype/joiningtype-byname: New file.
38116         * lib/unictype/joiningtype_byname.c: New file.
38118         Tests for module 'unictype/joiningtype-name'.
38119         * modules/unictype/joiningtype-name-tests: New file.
38120         * tests/unictype/test-joiningtype_name.c: New file.
38122         New module 'unictype/joiningtype-name'.
38123         * modules/unictype/joiningtype-name: New file.
38124         * lib/unictype/joiningtype_name.c: New file.
38126         unictype: Add support for Arabic shaping properties.
38127         * lib/unictype.in.h (UC_JOINING_TYPE_*): New enumeration values.
38128         (uc_joining_type_name, uc_joining_type_byname, uc_joining_type): New
38129         declarations.
38130         (UC_JOINING_GROUP_*): New enumeration values.
38131         (uc_joining_group_name, uc_joining_group_byname, uc_joining_group): New
38132         declarations.
38133         * lib/gen-uni-tables.c (UC_JOINING_TYPE_*): New enumeration values.
38134         (unicode_joining_type): New variable.
38135         (UC_JOINING_GROUP_*): New enumeration values.
38136         (unicode_joining_group): New variable.
38137         (fill_arabicshaping, joining_type_as_c_identifier,
38138         output_joining_type_test, output_joining_type,
38139         joining_group_as_c_identifier, output_joining_group_test,
38140         output_joining_group): New functions.
38141         (main); Add an argument denoting the ArabicShaping.txt file. Invoke
38142         fill_arabicshaping and output_joining_type_test, output_joining_type,
38143         output_joining_group_test, output_joining_group.
38144         Reported by Simon Josefsson.
38146 2011-03-21  Jim Meyering  <meyering@redhat.com>
38148         strftime: fix a bug in yesterday's change
38149         * lib/strftime.c (add): Accommodate width's initial value of -1.
38150         Otherwise, nstrftime would copy uninitialized data into
38151         the result buffer.
38153 2011-03-21  Jim Meyering  <meyering@redhat.com>
38155         tests: add strftime-tests module
38156         * tests/test-strftime.c: New file.
38157         * modules/strftime-tests: New module.
38159 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
38161         strftime: don't assume a byte count fits in 'int'
38162         * lib/strftime.c (add): Don't assume first arg fits in 'int'.  I
38163         found this problem by static analysis, using gcc -Wstrict-overflow
38164         (GCC 4.5.2, x86-64).  This reported an optimization that depended
38165         on an integer overflow having undefined behavior, but it turns out
38166         that the argument is a size, which might not fit in 'int' anyway,
38168 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
38170         stdio: don't require ignore_value around fwrite
38172         This patch works around libc bug 11959
38173         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=11959>.
38174         Without this patch, applications must often write
38175         ignore_value (fwrite (...)) even though the ignore_value is
38176         not helpful here.  It's common to write many objects, using
38177         fwrite/printf/etc., and then use ferror to detect output error.
38179         I considered making this patch optional, but decided against it,
38180         because libc is obviously being inconsistent here: there is no
38181         reason libc should insist that user code must inspect fwrite
38182         return's value without also insisting that it inspect printf's,
38183         putchar's, etc.  If user code wants to have a strict style where
38184         all these functions' values are checked (so that ferror need not
38185         be checked), we could add support for that style in a new gnulib
38186         module, but in the meantime it's better to be consistent and to
38187         support common usage.
38189         * lib/stdio.in.h (rpl_fwrite): Define this wrapper around fwrite,
38190         to work around libc bug 11959, if __USE_FORTIFY_LEVEL indicates
38191         that we are compiling in checking mode, and if not C++, and
38192         if not already wrapping fwrite for some other reason.
38193         (fwrite): #define to rpl_fwrite if the latter is defined.
38195 2011-03-20  Bruno Haible  <bruno@clisp.org>
38197         verror: Fix compilation error introduced on 2011-02-13.
38198         * lib/verror.h (verror, verror_at_line): Use _GL_ATTRIBUTE_FORMAT macro
38199         instead of __attribute__.
38200         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
38202 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
38203             Bruno Haible  <bruno@clisp.org>
38205         socklen: do not depend on sys_socket
38206         While trying to modify Emacs to use gnulib's socklen module,
38207         I discovered a circular dependency: socklen depends on sys_socket
38208         and vice versa.  Emacs can use socklen, but it does not need
38209         sys_socket because it has its own substitute for sys/socket.h.
38210         * m4/socklen.m4 (gl_SOCKET_HEADERS): New macro, extracted from
38211         gl_TYPE_SOCKLEN_T.
38212         (gl_CHECK_SOCKET_HEADERS): New macro, taken from parts of
38213         gl_PREREQ_SYS_H_SOCKET.
38214         (gl_TYPE_SOCKLEN_T): Require it instead of requiring
38215         gl_PREREQ_SYS_H_SOCKET.
38216         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_SOCKET): Require
38217         gl_CHECK_SOCKET_HEADERS instead of doing its work ourselves.
38218         * modules/socklen (Depends-on): Do not depend on sys_socket.
38219         (Include): Adjust to match the code used in gl_SOCKET_HEADERS.
38221 2011-03-20  Jim Meyering  <meyering@redhat.com>
38223         maint.mk: sort file names *after* new transformation
38224         * top/maint.mk (sc_po_check): Sorting before removing the $(srcdir)/
38225         prefix would have led to an unwarranted failure in GNU parted.
38226         Sort after that transformation.
38228 2011-03-19  Jim Meyering  <meyering@redhat.com>
38230         maint.mk: fix po-file syntax-check rule
38231         * top/maint.mk (sc_po_check): Fix fatal typo in yesterday's change.
38232         Patch by Bruno Haible.
38234 2011-03-19  Bruno Haible  <bruno@clisp.org>
38236         socklen: Update comment.
38237         * m4/socklen.m4: Update comment about platforms.
38239 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
38240             Bruno Haible  <bruno@clisp.org>
38242         inet_ntop, inet_pton: Simplify.
38243         * modules/inet_ntop (Depends-on): Remove socklen, since sys_socket is
38244         documented to provide socklen_t and we already depend on sys_socket.
38245         * modules/inet_pton (Depends-on): Likewise.
38246         * lib/arpa_inet.in.h: Adjust comment.
38248 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
38249             Bruno Haible  <bruno@clisp.org>
38251         netdb: Simplify.
38252         * modules/netdb (Depends-on): Remove socklen, since sys_socket is
38253         documented to provide socklen_t and we already depend on sys_socket.
38254         * lib/netdb.in.h: Adjust comment.
38256 2011-03-19  Bruno Haible  <bruno@clisp.org>
38258         sys_socket, netdb: Document problem with socklen_t.
38259         * doc/posix-headers/sys_socket.texi: Mention lack of socklen_t on some
38260         platforms.
38261         * doc/posix-headers/netdb.texi: Likewise.
38263 2011-03-18  Eric Blake  <eblake@redhat.com>
38265         maint.mk: let po check work in VPATH build
38266         * top/maint.mk (po_file): Allow cfg.mk override.
38267         (sc_po_check): Allow VPATH use.
38268         Reported by Jiri Denemark.
38270 2011-03-16  Jim Meyering  <meyering@redhat.com>
38272         maint.mk: allow fine-grained syntax-check exclusion via Make variables
38273         Before, you would have had to create one .x-sc_ file per rule in order
38274         to exempt offending files.  Now, you may instead use a Make variable --
38275         usually defined in cfg.mk -- whose name identifies the affected rule.
38276         * top/maint.mk (_sc_excl): Define.
38277         (VC_LIST_EXCEPT): Use it to exclude names on a per-rule basis.
38278         (_sc_search_regexp): When not using VC_LIST_EXCEPT, exclude here, too.
38280 2011-03-13  Bruno Haible  <bruno@clisp.org>
38282         ignore-value tests: Avoid warnings.
38283         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Define to
38284         empty for gcc < 3.4.
38286 2011-03-13  Bruno Haible  <bruno@clisp.org>
38288         passfd: Fix link error on Solaris.
38289         * modules/passfd (Description): Correct.
38290         (Depends-on): Add socketlib.
38291         (Link): New section.
38292         * modules/passfd-tests (Makefile.am): Link test-passfd with LIBSOCKET.
38294 2011-03-13  Bruno Haible  <bruno@clisp.org>
38296         passfd: Fix link error on AIX 5.2.
38297         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Define _LINUX_SOURCE_COMPAT.
38299 2011-03-13  Bruno Haible  <bruno@clisp.org>
38301         passfd: Work around bug with CMSG_FIRSTHDR on FreeBSD 6.4.
38302         * lib/sys_socket.in.h: Include <stddef.h>.
38303         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Include <stddef.h> before using
38304         CMSG_FIRSTHDR. Remove unused variable.
38306 2011-03-13  Bruno Haible  <bruno@clisp.org>
38308         passfd: Fix compilation error on OpenBSD.
38309         * lib/passfd.c: Include <sys/uio.h>.
38311 2011-03-13  Bruno Haible  <bruno@clisp.org>
38313         passfd test: Fix warnings.
38314         * tests/test-passfd.c: Include <sys/wait.h>.
38315         (main): Fix typo.
38317 2011-03-13  Bruno Haible  <bruno@clisp.org>
38319         passfd module, part 4, tweaks.
38320         * tests/test-passfd.c: Reorder includes.
38321         (main): Fix perror and printf calls.
38323 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
38325         passfd module, part 4.
38326         * modules/passfd-tests: New file.
38327         * tests/test-passfd.c: New file.
38329 2011-03-13  Jim Meyering  <meyering@redhat.com>
38331         Makefile: rely on GNU make; derive syntax-check rule names
38332         Rather than requiring that each sc_ rule be listed as a dependent
38333         of "check", use features of GNU make to derive the list.
38334         * Makefile (syntax-check-rules): Define.
38335         (check): Depend on the new variable, not the hard-coded list.
38337 2011-03-13  Bastien Roucariès  <roucaries.bastien@gmail.com>
38338             Bruno Haible  <bruno@clisp.org>
38340         passfd module, part 3.
38341         * lib/passfd.h (recvfd): Add a flags argument.
38342         * lib/passfd.c: Include <fcntl.h>, cloexec.h.
38343         (recvfd): Add a flags argument.
38344         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Test whether MSG_CMSG_CLOEXEC
38345         exists.
38346         * modules/passfd (Depends-on): Add cloexec.
38347         Suggested by Eric Blake.
38349 2011-03-13  Bruno Haible  <bruno@clisp.org>
38351         passfd module, part 2, tweaks.
38352         * modules/passfd (Files): Reorder.
38353         (Depends-on): Remove errno.
38354         (Include): Remove <sys/socket.h>, <sys/un.h>.
38355         * lib/passfd.h: Use a GPLv3+ header. Make C++ safe.
38356         * lib/passfd.c: Untabify. Use a GPLv3+ header. Really include the
38357         specification header. Include <sys/socket.h> always. Don't include
38358         <winsock2.h>. Use "#if HAVE_..." instead of "#ifdef HAVE_...".
38359         (sendfd): Clarify that it sets errno when it fails.
38360         (recvfd): Fix specification.
38362 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
38364         passfd module, part 2.
38365         * modules/passfd: New file.
38366         * lib/passfd.h: New file.
38367         * lib/passfd.c: New file.
38369 2011-03-12  Bruno Haible  <bruno@clisp.org>
38371         wcswidth, mbswidth: Avoid integer overflow.
38372         * lib/wcswidth.c: Include <limits.h>.
38373         * lib/wcswidth-impl.h (wcswidth): Avoid 'int' overflow.
38374         * lib/mbswidth.c: Include <limits.h>.
38375         (mbsnwidth): Avoid 'int' overflow.
38376         Reported by Jim Meyering.
38378 2011-03-12  Bruno Haible  <bruno@clisp.org>
38380         futimens, utimensat: Avoid endless recursion on Solaris 10.
38381         * lib/sys_stat.in.h (futimens, utimensat): Define with rpl_ prefix on
38382         Solaris.
38383         Reported by Ben Walton <bwalton@artsci.utoronto.ca> via Eric Blake
38384         in <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8230>.
38386 2011-03-11  Jim Meyering  <meyering@redhat.com>
38388         maint.mk: relax a regexp to accommodate other formatting styles
38389         * top/maint.mk (sc_unmarked_diagnostics): Allow 0 or 1 space
38390         between "ngettext" and the following "(".
38392 2011-03-11  Pádraig Brady  <P@draigBrady.com>
38394         maint.mk: suppress a false positive warning
38395         * top/maint.mk ((sc_unmarked_diagnostics): Don't warn when
38396         diagnostics are marked with ngettext.
38398 2011-03-10  Eric Blake  <eblake@redhat.com>
38400         wchar: add explicit dependencies, for Tru64
38401         * modules/mbmemcasecoll (Depends-on): Add wchar.
38402         * modules/mbtowc (Depends-on): Likewise.
38403         * modules/vasnprintf (Depends-on): Likewise.
38404         * modules/unistdio/u-printf-args (Depends-on): Likewise.
38405         * modules/wctomb (Depends-on): Likewise.
38406         Reported by Peter O'Gorman.
38408 2011-03-08  Bruno Haible  <bruno@clisp.org>
38410         passfd module, part 1, tweaks.
38411         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Update AC_REQUIRE invocation.
38412         Improve indentation. Improve AC_MSG_CHECKING messages.
38413         * m4/sockpfaf.m4 (gl_SOCKET_FAMILY_UNIX): New macro, extracted from
38414         gl_SOCKET_FAMILIES.
38416 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
38418         passfd module, part 1.
38419         * m4/afunix.m4: New file.
38420         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Also test for UNIX domain
38421         sockets.
38423 2011-03-08  Bruno Haible  <bruno@clisp.org>
38425         regex-quote: New API.
38426         * lib/regex-quote.h: Include <stdbool.h>.
38427         (struct regex_quote_spec): New type.
38428         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
38429         New declarations.
38430         (regex_quote_length, regex_quote_copy, regex_quote): Take a
38431         'const struct regex_quote_spec *' argument.
38432         * lib/regex-quote.c (RE_*, PCRE_*): New macros.
38433         (pcre_special): New constant.
38434         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
38435         New functions.
38436         (regex_quote_length, regex_quote_copy, regex_quote): Take a
38437         'const struct regex_quote_spec *' argument.
38438         * modules/regex-quote (Depends-on): Add stdbool.
38439         * tests/test-regex-quote.c (check): Update for new API. Add test for
38440         anchored results.
38441         * NEWS: Mention the API change.
38442         Reported by Reuben Thomas and Eric Blake.
38444 2011-03-06  Bruno Haible  <bruno@clisp.org>
38446         regex-quote: Fix creation of POSIX extended regular expressions.
38447         * lib/regex-quote.c (ere_special): Add grouping and alternation
38448         operators.
38450 2011-03-05  Bruno Haible  <bruno@clisp.org>
38452         doc: Improve doc regarding autopoint vs. gnulib.
38453         * doc/gnulib-tool.texi (gettextize and autopoint): Recommend to
38454         disable autopoint while running autoreconf.
38455         Suggested by Ralf Wildenhues.
38457 2011-03-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38459         Update AC_OPENMP macro for Lahey compiler on GNU/Linux.
38460         * m4/openmp.m4 (AC_OPENMP): Sync from Autoconf.
38462 2011-03-03  Bruce Korb  <bkorb@gnu.org>
38464         parse-duration: remove xalloc.h dependency
38465         * lib/parse-duration.c (parse_period): handle NULL return from
38466         strdup instead of calling xstrdup().
38467         * modules/parse-duration: remove "xalloc" dependency
38469 2011-03-03  Matthew Booth  <mbooth@redhat.com>
38471         bootstrap: honor m4_base when running aclocal
38472         * build-aux/bootstrap: Fix hard-coded use of m4 directory name.
38474 2011-03-02  Jim Meyering  <meyering@redhat.com>
38476         getopt-gnu: relax license from LGPLv3+ to LGPLv2+
38477         * modules/getopt-gnu (License): Relax to LGPLv2+, for augeas,
38478         on request from Matt Booth.
38480 2011-03-01  Eric Blake  <eblake@redhat.com>
38482         test-link: work on Hurd
38483         * tests/test-link.h (test_link): Hurd rejects linking directories
38484         with EISDIR instead of the POSIX-mandated EPERM.
38486 2011-02-28  Paul Eggert  <eggert@cs.ucla.edu>
38488         stdio: simplify by moving files to printf-posix, sigpipe
38489         * m4/stdio_h.m4 (gl_STDIO_H): Do not require gl_ASM_SYMBOL_PREFIX,
38490         since this symbol is needed only if printf is replaced.
38491         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF):
38492         Require gl_ASM_SYMBOL_PREFIX.
38493         * modules/printf-posix (Files): Add m4/asm-underscore.m4.
38494         * modules/sigpipe (Files): Likewise.  Also, add m4/stdio-write.c.
38495         (Depends-on): Add 'raise'.
38496         (configure.ac): Require gl_ASM_SYMBOL_PREFIX.
38497         * modules/stdio (Files): Remove lib/stdio-write.c,
38498         m4/asm-underscore.m4.
38499         (Depends-on): Remove 'raise'.
38501         stdio: simplify by moving gl_STDIN_LARGE_OFFSET to fseeko, ftello
38502         * m4/fseeko.m4 (gl_STDIN_LARGE_OFFSET): Moved here, from ...
38503         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): ... here, because
38504         * modules/ftello (Files): Add m4/fseeko.m4, for gl_STDIN_LARGE_OFFSET.
38506 2011-02-28  Bruno Haible  <bruno@clisp.org>
38508         localcharset: Assume ANSI C behaviour of free().
38509         * lib/localcharset.c (get_charset_aliases): Remove NULL test before
38510         calling free().
38511         Suggested by Simon Josefsson <simon@josefsson.org>.
38513 2011-02-28  Corinna Vinschen  <vinschen@redhat.com>  (tiny change)
38514             Charles Wilson  <cygwin@cwilson.fastmail.fm>  (tiny change)
38515             Bruno Haible  <bruno@clisp.org>  (tiny change)
38517         On Cygwin, use /proc file system instead of win32 API.
38518         * lib/relocatable.c: On Cygwin, use file names from /proc, rather than
38519         Win32 file names.
38520         (DllMain): Simplify by removing Cygwin specific code.
38521         (find_shared_library_fullname): Use Linux specific implementation also
38522         for Cygwin.
38523         (get_shared_library_fullname): Update accordingly.
38524         * lib/progreloc.c: On Cygwin, use file names from /proc, rather than
38525         Win32 file names.
38526         (find_executable): On Cygwin, use /proc, like on Linux. Remove previous
38527         Cygwin specific code.
38529 2011-02-28  Christian Rössel  <christian.roessel@gmx.de>  (tiny change)
38530             Markus Geimer  <m.geimer@fz-juelich.de>  (tiny change)
38532         Fix OpenMP flag detection for various Fortran compilers.
38533         * m4/openmp.m4 (_AC_LANG_OPENMP(Fortran 77)): Use '!$'
38534         OpenMP-conditional compilation construct, to force compile
38535         failure with missing OpenMP flag.
38536         (AC_OPENMP): Add flags for Cray CCE and NEC SX compilers.
38538 2011-02-25  Eric Blake  <eblake@redhat.com>
38540         strstr: expand test coverage
38541         * tests/test-strstr.c (main): Add much shorter trigger.  Fix C89
38542         compilation.
38543         * tests/test-memmem.c (main): Duplicate tests.
38544         * tests/test-strcasestr.c (main): Likewise.
38545         * tests/test-c-strcasestr.c (main): Likewise.
38547 2011-02-25  Jim Meyering  <meyering@redhat.com>
38549         maint.mk: detect missing-NL-at-EOF, too
38550         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Adjust so that
38551         it also detects when a file lacks a newline at EOF.
38552         (require_exactly_one_NL_at_EOF_): Renamed from
38553         detect_empty_lines_at_EOF_.  I opted not to rename the rule,
38554         since people may well have .x-sc_... file names tied to the
38555         existing name.  Suggested by Eric Blake.
38557 2011-02-25  Paul Eggert  <eggert@cs.ucla.edu>
38559         dirname: move m4/dos.m4 functionality into lib/dosname.h
38561         m4/dos.m4 needs to go.  It laboriously invokes the C compiler, and
38562         extracts symbols from it, puts them into config.h; but it's much
38563         easier to use the symbols directly.  filename.h already does this,
38564         but it disagrees with dos.m4 in some respects.  This patch
38565         introduces a different include file dosname.h that packages up
38566         dos.m4, and then later we can work on merging filename.h and
38567         dosname.h.  Applications that need only the easy-to-configure
38568         symbols should consider including dosname.h rather than dirname.h.
38569         * NEWS: Mention incompatible changes.
38570         * m4/dos.m4: Remove.
38571         * lib/dosname.h, modules/dosname: New files.
38572         * lib/dirname.h (ISSLASH, FILE_SYSTEM_PREFIX_LEN):
38573         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE):
38574         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): Move to lib/dosname.h.
38575         * lib/at-func.c, lib/at-func2.c, lib/openat.c, lib/savewd.c:
38576         Include dosname.h, not dirname.h.
38577         * lib/rmdir.c, lib/stat.c, lib/unlink.c, lib/unlinkat.c:
38578         Include dosname.h, for definitions of symbols like ISSLASH
38579         that used to be in config.h.
38580         * m4/dirname.m4 (gl_DIRNAME_LGPL): Do not require gl_AC_DOS.
38581         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
38582         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
38583         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
38584         * modules/dirname-lgpl (Files): Omit m4/dos.m4.
38585         * modules/rmdir (Files): Likewise.
38586         * modules/stat (Files): Likewise.
38587         * modules/unlink (Files): Likewise.
38588         * modules/dirname-lgpl (Depends-on): Add dosname.
38589         * modules/lstat (Depends-on): Likewise.
38590         * modules/openat (Depends-on): Likewise.
38591         * modules/rmdir (Depends-on): Likewise.
38592         * modules/savewd (Depends-on): Likewise.
38593         * modules/stat (Depends-on): Likewise.
38594         * modules/unlink (Depends-on): Likewise.
38595         * modules/openat (Depends-on): Remove dirname-lgpl.
38596         * modules/savewd (Depends-on): Likewise.
38597         * tests/test-dirname.c: Do not use removed symbols like
38598         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.  Instead, use
38599         the remaining symbols, e.g., ISSLASH ('\\').
38601 2011-02-25  Eric Blake  <eblake@redhat.com>
38603         strstr: revert patches that introduced bug and pessimization
38604         * lib/str-two-way.h: Add another reference.
38605         (two_way_short_needle, two_way_long_needle): Revert changes from
38606         2011-02-24; they pessimize search speed.
38607         (critical_factorization): Partially revert changes from
38608         2010-06-22; they violate the requirement that the left half of the
38609         needle be smaller than the period of the needle.
38611 2011-02-24  Paul Eggert  <eggert@cs.ucla.edu>
38613         filenamecat: remove unnecessary dependency on dirname-lgpl
38614         * modules/filenamecat (Depends-on): Remove dirname-lgpl, as there
38615         is no direct dependency, just an indirect one via filenamecat-lgpl.
38617         remove: remove unnecessary use of m4/dos.m4
38618         * m4/remove.m4 (gl_FUNC_REMOVE): Don't require gl_AC_DOS; not needed.
38619         * modules/remove (FILES): Remove m4/dos.m4.
38621         * lib/openat-proc.c: Don't include dirname.h; not needed.
38623         backupfile: remove unnecessary use of m4/dos.m4
38624         * m4/backupfile.m4 (gl_BACKUPFILE): Don't require gl_AC_DOS; none
38625         of its symbols are used by the backupfile code.  backupfile.c does
38626         use a symbol HAVE_DOS_FILE_NAMES, but that symbol is meant only
38627         for the rare case of programs that want all their backup file
38628         names to live within 8+3 limits, and dos.m4 doesn't address that.
38629         * modules/backupfile (Files): Remove m4/dos.m4.
38631 2011-02-24  Jim Meyering  <meyering@redhat.com>
38633         strstr: fix a bug whereby strstr would mistakenly return NULL
38634         * lib/str-two-way.h (two_way_short_needle): Correct off-by-one error
38635         in period calculation.
38636         (two_way_long_needle): Likewise.
38637         The original problem was reported by Mike Stump in
38638         http://thread.gmane.org/gmane.comp.sysutils.autoconf.bugs/7834
38639         Ralf Wildenhues provided the short needle and haystack.
38640         * tests/test-strstr.c: Add Ralf's test case to trigger the bug.
38641         Add a more involved test to trigger the bug in two_way_long_needle.
38643 2011-02-24  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
38645         gnulib-tool: remove use of bold display in help screen
38646         * gnulib-tool (func_usage): Do not use bold display anymore in the
38647         help screen.  That was just meant to be a temporary emphasis for a
38648         backward-incompatible change.
38650 2011-02-23  Bruno Haible  <bruno@clisp.org>
38652         Fix misindentation of preprocessor directives.
38653         * lib/argp-namefrob.h: Reindent preprocessor directives.
38654         * lib/getopt_int.h (struct _getopt_data): Likewise.
38655         * lib/progreloc.c (maybe_executable, find_executable): Likewise.
38656         * lib/vasnprintf.c (decode_long_double): Likewise.
38657         * tests/test-argmatch.c: Insert blank lines, for clarity.
38658         * tests/test-exclude.c: Likewise.
38660 2011-02-22  Bruno Haible  <bruno@clisp.org>
38662         ioctl: Fix for MacOS X in 64-bit mode.
38663         * lib/ioctl.c (rpl_ioctl): Zero-extend, not sign-extend, the request
38664         value.
38665         Suggested by Eric Blake.
38666         Reported by Markus Gothe <nietzsche@lysator.liu.se>.
38668 2011-02-22  Jim Meyering  <meyering@redhat.com>
38670         maint: sc_cpp_indent_check: remove the "only in lib/" restriction
38671         * Makefile (sc_cpp_indent_check): Don't limit the check to files
38672         in lib/.
38674 2011-02-22  Eric Blake  <eblake@redhat.com>
38676         maint: avoid any CDPATH issue
38677         * Makefile (sc_cpp_indent_check): Anchor cd argument.
38679         maint: adjust cpp indentation for my modules, as well
38680         * Makefile (sc_cpp_indent_check): Add my name.
38681         * lib/fbufmode.c: Filter through cppi.
38682         * lib/fpurge.c: Likewise.
38683         * lib/freadable.c: Likewise.
38684         * lib/freading.c: Likewise.
38685         * lib/fwritable.c: Likewise.
38686         * lib/fwriting.c: Likewise.
38687         * lib/sigaction.c: Likewise.
38689 2011-02-22  Jim Meyering  <meyering@redhat.com>
38691         maint: adjust cpp indentation to reflect nesting depth
38692         I.e., in a block of code that begins with an unnested "#if",
38693         put one space between the "#" in column 1 and following token.
38694         For example,
38695         -#include <sys/vfs.h>
38696         +# include <sys/vfs.h>
38697         Do this only in .c files that are part of a module I maintain.
38698         * lib/linkat.c: Filter through cppi.
38699         * lib/nanosleep.c: Likewise.
38700         * lib/openat.c: Likewise.
38701         * lib/openat-die.c: Likewise.
38702         * lib/dup3.c: Likewise.
38703         * lib/fchownat.c: Likewise.
38704         * lib/flock.c: Likewise.
38705         * lib/fsync.c: Likewise.
38706         * lib/fts.c: Likewise.
38707         * lib/getpass.c: Likewise.
38708         * lib/gettimeofday.c: Likewise.
38709         * lib/userspec.c: Likewise.
38710         * Makefile (sc_cpp_indent_check): New rule, to check this.
38712 2011-02-22  Bruno Haible  <bruno@clisp.org>
38714         New module 'wctomb'.
38715         * lib/stdlib.in.h (wctomb): New declaration.
38716         * lib/wctomb.c: New file.
38717         * lib/wctomb-impl.h: New file.
38718         * m4/wctomb.m4: New file.
38719         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_WCTOMB,
38720         REPLACE_WCTOMB.
38721         * modules/stdlib (Makefile.am): Substitute GNULIB_WCTOMB,
38722         REPLACE_WCTOMB.
38723         * modules/wctomb: New file.
38724         * tests/test-stdlib-c++.cc: Test signature of wctomb.
38725         * doc/posix-functions/wctomb.texi: Mention the new module.
38726         * modules/wctob (Depends-on): Add wctomb.
38728 2011-02-22  Bruno Haible  <bruno@clisp.org>
38730         New module 'mbtowc'.
38731         * lib/stdlib.in.h (mbtowc): New declaration.
38732         * lib/mbtowc.c: New file.
38733         * lib/mbtowc-impl.h: New file, from libutf8 with modifications.
38734         * m4/mbtowc.m4: New file.
38735         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MBTOWC,
38736         REPLACE_MBTOWC.
38737         * modules/stdlib (Makefile.am): Substitute GNULIB_MBTOWC,
38738         REPLACE_MBTOWC.
38739         * modules/mbtowc: New file.
38740         * tests/test-stdlib-c++.cc: Test signature of mbtowc.
38741         * doc/posix-functions/mbtowc.texi: Mention the new module.
38742         * modules/btowc (Depends-on): Add mbtowc.
38744 2011-02-22  Bruno Haible  <bruno@clisp.org>
38746         wcrtomb: Add more tests for native Windows platforms.
38747         * tests/test-wcrtomb-w32-1.sh: New file.
38748         * tests/test-wcrtomb-w32-2.sh: New file.
38749         * tests/test-wcrtomb-w32-3.sh: New file.
38750         * tests/test-wcrtomb-w32-4.sh: New file.
38751         * tests/test-wcrtomb-w32-5.sh: New file.
38752         * tests/test-wcrtomb-w32.c: New file.
38753         * modules/wcrtomb-tests (Files): Add them.
38754         (Makefile.am): Arrange to run these tests.
38755         * tests/test-wcrtomb-w32-6.sh: New file, currently unused.
38756         * tests/test-wcrtomb-w32-7.sh: New file, currently unused.
38758 2011-02-20  Bruno Haible  <bruno@clisp.org>
38760         wcrtomb: Enhance test.
38761         * tests/test-wcrtomb.c (main): Add test against bug with NULL argument.
38763 2011-02-20  Bruno Haible  <bruno@clisp.org>
38765         mbrtowc: Tiny optimization.
38766         * lib/mbrtowc.c (mbrtowc): Delay pstate assignment until it is needed.
38768 2011-02-20  Jim Meyering  <meyering@redhat.com>
38770         test-exclude.c: remove unmatched #endif
38771         * tests/test-exclude.c: Remove stray #endif, left over from
38772         the change of a week ago.
38774 2011-02-19  Jim Meyering  <meyering@redhat.com>
38776         git-version-gen: skip "-dirty" check when appropriate
38777         * build-aux/git-version-gen: Don't run any git commands when the
38778         version string comes from .tarball-version.  Prior to this, we
38779         would run git update-index --refresh even from a just-unpacked
38780         tarball directory, and that could affect a .git/ directory in a
38781         parent of the build directory.  Reported by Mike Frysinger.
38783 2011-02-19  Bruno Haible  <bruno@clisp.org>
38785         unictype/property-byname: Reduce the size of the 'data' segment.
38786         * lib/unictype/pr_byname.gperf: Add gperf option '%pic'.
38788 2011-02-19  Bruno Haible  <bruno@clisp.org>
38790         unictype/scripts: Reduce the size of the 'data' segment.
38791         * lib/gen-uni-tables.c (output_scripts_byname): Emit gperf option
38792         '%pic'.
38793         * lib/unictype/scripts_byname.gperf: Regenerated.
38795 2011-02-19  Bruno Haible  <bruno@clisp.org>
38797         stdint: Update documentation.
38798         * doc/posix-headers/stdint.texi: Mention WCHAR_MIN, WCHAR_MAX problem.
38800 2011-02-18  Paul Eggert  <eggert@cs.ucla.edu>
38802         stdint: omit redundant check for wchar.h
38803         * m4/stdint.m4 (gl_STDINT_H): The earlier part of this macro now
38804         always tests whether wchar.h exists, so remove the now-redundant test.
38806 2011-02-18  Bruno Haible  <bruno@clisp.org>
38808         stdint: Cut dependency to module 'wchar'.
38809         * lib/stdint.in.h: Include wchar.h only when HAVE_WCHAR_H is 1. Also
38810         include the necessary prerequisites.
38811         * m4/stdint.m4 (gl_STDINT_H): Test whether wchar.h exists.
38812         * modules/stdint (Depends-on): Remove wchar.
38813         (Makefile.am): Substitute HAVE_WCHAR_H.
38814         This reverts part of a 2007-01-06 commit. Reported by Paul Eggert.
38816 2011-02-18  Eric Blake  <eblake@redhat.com>
38818         longlong: skip, rather than fail, on cross-compilation
38819         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Avoid aborting configure
38820         when cross-compiling; regression from 2011-02-16.
38822 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
38824         * NEWS: Mention 2011-02-08 change to stdlib.
38826 2011-02-17  Bruno Haible  <bruno@clisp.org>
38828         getloadavg: Add comments about platforms.
38829         * m4/getloadavg.m4: Add comment.
38830         * lib/getloadavg.c: Likewise.
38832 2011-02-17  Bruno Haible  <bruno@clisp.org>
38834         getloadavg: Fix link error on Solaris 2.6.
38835         * modules/getloadavg (Link): New section.
38836         * modules/getloadavg-tests (Makefile.am): Use GETLOADAVG_LIBS for
38837         linking test-getloadavg.
38838         * doc/glibc-functions/getloadavg.texi: Mention that Solaris 2.6 lacks
38839         getloadavg.
38841 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
38843         * lib/getloadavg.c (getloadavg) [sgi]: Make ldav_off of type ptrdiff_t.
38844         It was 'int', but this doesn't match the IRIX 6.5 manual.
38845         Suggested by Bruno Haible in
38846         <http://lists.gnu.org/r/bug-gnulib/2011-02/msg00207.html>.
38848 2011-02-17  Bruno Haible  <bruno@clisp.org>
38850         havelib: Fix comments.
38851         * m4/lib-link.m4 (AC_LIB_RPATH): Update comments after 2007-01-02
38852         change.
38854 2011-02-17  Bruno Haible  <bruno@clisp.org>
38856         havelib: Update config.rpath.
38857         * build-aux/config.rpath: Update to match libtool.m4 from libtool-2.4.
38859 2011-02-17  Bruno Haible  <bruno@clisp.org>
38861         getloadavg test: Add some plausibility checks.
38862         * tests/test-getloadavg.c (check_avg): Print a warning when the value
38863         is improbable.
38865 2011-02-16  Eric Blake  <eblake@redhat.com>
38867         maintainer-makefile: make syntax-check a no-op from tarballs
38868         * top/maint.mk (no-vc-detected): New rule.
38869         (local-checks-available): Use it to avoid hanging if someone tries
38870         'make syntax-check' from a tarball.  Also append to any non-syntax
38871         checks already defined in cfg.mk.
38873 2011-02-16  Paul Eggert  <eggert@cs.ucla.edu>
38875         longlong: tune, particularly for common case of c99
38877         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Don't bother compiling
38878         or running anything if c99, or if unsigned long long int does not
38879         work.  In either case, we know the answer without further tests.
38880         Do not compile _AC_TYPE_LONG_LONG_SNIPPET twice.  Instead, compile
38881         it at most once, and use its results for both long long int and
38882         unsigned long long int.  This is more likely to be efficient in
38883         the common case where the program wants to check for both long
38884         long int and unsigned long long int.
38885         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Don't bother compiling if c99,
38886         since the answer is already known.
38888 2011-02-15  Paul Eggert  <eggert@cs.ucla.edu>
38890         getloadavg: set errno
38891         * lib/getloadavg.c: Set errno when returning -1.  If no other
38892         error number looks appropriate, set it to ENOSYS if the getloadavg
38893         looks like it can't possibly ever work, ENOTSUP otherwise.
38894         Suggested by Bruno Haible in
38895         <http://lists.gnu.org/r/bug-gnulib/2011-02/msg00187.html>.
38897         getloadavg: trim unused parts and speed up 'configure'
38898         * NEWS: Document this.
38899         * lib/getloadavg.c: Ignore HAVE_GETLOADAVG; this file is now
38900         always compiled if getloadavg is absent.
38901         Move test code to ...
38902         * tests/test-getloadavg.c: New file, containing previous
38903         contents of test from lib/getloadavg.c.  It also contains
38904         suggestions by Bruno Haible in
38905         <http://lists.gnu.org/r/bug-gnulib/2011-02/msg00186.html>.
38906         * modules/getloadavg-tests: New file.
38907         * m4/getloadavg.m4 (gl_GETLOADAVG): Do not check for getloadavg twice.
38908         Do tests in the same order as they're needed for getloadavg.c.
38909         Omit setgid-related tests that generate symbols KMEM_GROUP,
38910         NEET_SETGID, GETLOADAVG_PRIVILEGED; nobody seems to use those any more.
38911         Do only the tests that are needed to see whether the system has
38912         getloadavg, moving the other tests into ...
38913         (gl_PREREQ_GETLOADAVG): ... here.  Do not define obsolete symbol
38914         NLIST_NAME_UNION; nobody should be using it.  Do not define
38915         symbols C_GETLOADAVG and HAVE_GETLOADAVG; they're no longer
38916         relevant, as the user of this module shouldn't care how getloadavg
38917         is implemented.
38919         getloadavg: omit unused var
38920         * lib/getloadavg.c (getloadavg): Omit unused local variable.
38922 2011-02-15  Jim Meyering  <meyering@redhat.com>
38924         doc: update users.txt
38925         * users.txt: Update iwhd's URL.
38927 2011-02-13  Bruno Haible  <bruno@clisp.org>
38929         Consistent macro naming for macros that use GCC __attribute__.
38930         * lib/di-set.h (_GL_ATTRIBUTE_NONNULL): Renamed from
38931         _ATTRIBUTE_NONNULL_.
38932         * lib/ino-map.h (_GL_ATTRIBUTE_NONNULL): Likewise.
38933         * lib/hash.h (_GL_ATTRIBUTE_WUR): Renamed from ATTRIBUTE_WUR.
38934         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Renamed from
38935         ATTRIBUTE_DEPRECATED.
38936         * lib/openat.h (_GL_ATTRIBUTE_NORETURN): Renamed from
38937         ATTRIBUTE_NORETURN.
38938         * lib/sigpipe-die.h (_GL_ATTRIBUTE_NORETURN): Likewise.
38939         * lib/xmemdup0.h (_GL_ATTRIBUTE_NORETURN): Likewise.
38940         * lib/xstrtol.h (_GL_ATTRIBUTE_NORETURN): Likewise.
38941         * lib/xalloc.h (_GL_ATTRIBUTE_NORETURN): Likewise.
38942         (_GL_ATTRIBUTE_MALLOC): Renamed from ATTRIBUTE_MALLOC.
38943         (_GL_ATTRIBUTE_ALLOC_SIZE): Renamed from ATTRIBUTE_ALLOC_SIZE.
38944         * lib/version-etc.h (_GL_ATTRIBUTE_SENTINEL): Renamed from
38945         ATTRIBUTE_SENTINEL.
38946         * lib/safe-alloc.h (_GL_ATTRIBUTE_RETURN_CHECK): Renamed from
38947         ATTRIBUTE_RETURN_CHECK.
38948         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Likewise.
38949         * tests/test-argmatch.c (_GL_ATTRIBUTE_NORETURN): Renamed from
38950         ATTRIBUTE_NORETURN.
38951         * tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN): Likewise.
38952         Reported by Paul Eggert.
38954 2011-02-13  Bruno Haible  <bruno@clisp.org>
38956         Don't interfere with a program's definition of __attribute__.
38957         * lib/argp.h (__attribute__): Remove definition.
38958         (_GL_ATTRIBUTE_FORMAT): New macro.
38959         (argp_error, __argp_error, argp_failure, __argp_failure): Use it.
38960         * lib/argp-fmtstream.h (__attribute__): Remove definition.
38961         (_GL_ATTRIBUTE_FORMAT): New macro.
38962         (__argp_fmtstream_printf, argp_fmtstream_printf): Use it.
38963         * lib/argp-help.c (hol_entry_long_iterate): Use __attribute__ only for
38964         GCC 3 or newer.
38965         * lib/error.h (__attribute__): Remove definition.
38966         (_GL_ATTRIBUTE_FORMAT): New macro.
38967         (error, error_at_line): Use it.
38968         * lib/hash.h (__attribute__): Remove definition.
38969         (ATTRIBUTE_WUR): Update definition. Define always.
38970         * lib/openat.h (__attribute__): Remove definition.
38971         (ATTRIBUTE_NORETURN): Update definition. Define always.
38972         * lib/sigpipe-die.h (__attribute__): Remove definition.
38973         (ATTRIBUTE_NORETURN): Update definition. Define always.
38974         * lib/vasnprintf.h (__attribute__): Remove definition.
38975         (_GL_ATTRIBUTE_FORMAT): New macro.
38976         (asnprintf, vasnprintf): Use it.
38977         * lib/xalloc.h (__attribute__): Remove definition.
38978         (ATTRIBUTE_NORETURN): Update definition. Define always.
38979         (ATTRIBUTE_MALLOC, ATTRIBUTE_ALLOC_SIZE): Define always.
38980         * lib/xmemdup0.h (__attribute__): Remove definition.
38981         (ATTRIBUTE_NORETURN): Update definition. Define always.
38982         * lib/xprintf.h (__attribute__): Remove definition.
38983         (_GL_ATTRIBUTE_FORMAT): New macro.
38984         (xprintf, xvprintf, xfprintf, xvfprintf): Use it.
38985         * lib/xstrtol.h (__attribute__): Remove definition.
38986         (ATTRIBUTE_NORETURN): Update definition. Define always.
38987         * lib/xvasprintf.h (__attribute__): Remove definition.
38988         (_GL_ATTRIBUTE_FORMAT): New macro.
38989         (xasprintf, xvasprintf): Use it.
38990         * tests/test-argmatch.c (__attribute__): Remove definition.
38991         (ATTRIBUTE_NORETURN): Update definition. Define always.
38992         * tests/test-exclude.c (__attribute__): Remove definition.
38993         (ATTRIBUTE_NORETURN): Update definition. Define always.
38994         Reported by Paul Eggert.
38996 2011-02-13  Bruno Haible  <bruno@clisp.org>
38998         mbrtowc: Add more tests for native Windows platforms.
38999         * tests/test-mbrtowc-w32-1.sh: New file.
39000         * tests/test-mbrtowc-w32-2.sh: New file.
39001         * tests/test-mbrtowc-w32-3.sh: New file.
39002         * tests/test-mbrtowc-w32-4.sh: New file.
39003         * tests/test-mbrtowc-w32-5.sh: New file.
39004         * tests/test-mbrtowc-w32.c: New file.
39005         * modules/mbrtowc-tests (Files): Add them.
39006         (Makefile.am): Arrange to run these tests.
39007         * tests/test-mbrtowc-w32-6.sh: New file, currently unused.
39008         * tests/test-mbrtowc-w32-7.sh: New file, currently unused.
39010 2011-02-13  Bruno Haible  <bruno@clisp.org>
39012         mbrtowc: Work around native Windows bug.
39013         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Detect native Windows bug. Use the
39014         guess when no suitable locale for testing was found.
39015         * doc/posix-functions/mbrtowc.texi: Mention the native Windows bug.
39017 2011-02-13  Bruno Haible  <bruno@clisp.org>
39019         mbsinit: Work around mingw bug.
39020         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Replace mbsinit also on mingw.
39021         * lib/mbsinit.c (mbsinit): Provide an alternate definition for native
39022         Windows.
39023         * doc/posix-functions/mbsinit.texi: Mention the mingw bug.
39025 2011-02-13  Bruno Haible  <bruno@clisp.org>
39027         mbsinit: Don't crash for a NULL argument.
39028         * lib/mbsinit.c (mbsinit): When the argument is NULL, return 1.
39029         * tests/test-mbsinit.c (mbsinit): Check this behaviour.
39031 2011-02-13  Bruno Haible  <bruno@clisp.org>
39033         Don't interfere with a program's definition of __attribute__.
39034         * lib/stdio.in.h (__attribute__): Remove definition.
39035         (_GL_ATTRIBUTE_FORMAT, _GL_ATTRIBUTE_FORMAT_PRINTF): New macros.
39036         (dprintf, fprintf, obstack_printf, obstack_printf, obstack_vprintf,
39037         printf, snprintf, sprintf, asprintf, vasprintf, vdprintf, vfprintf,
39038         vsnprintf, vsprintf): Use _GL_ATTRIBUTE_FORMAT_PRINTF.
39039         * lib/string.in.h (__attribute__): Remove definition.
39040         Reported by Paul Eggert.
39042 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
39044         stdlib: don't get in the way of non-GCC __attribute__
39045         See thread starting at
39046         <http://lists.gnu.org/r/bug-gnulib/2011-02/msg00161.html>.
39047         Revert previous stdlib change, installing the following instead:
39048         * lib/stdlib.in.h (__attribute__): Remove.  We do not want
39049         to get in the way of a non-GCC compiler that supports __attribute__.
39050         (_GL_ATTRIBUTE_RETURN): New macro.
39051         (_Exit): Use it instead of __attribute__.
39053 2011-02-12  Bruno Haible  <bruno@clisp.org>
39055         quotearg test: Avoid test failure on mingw.
39056         * tests/test-quotearg.sh: Convert the locale identifier from native
39057         Windows syntax to Unix syntax.
39059 2011-02-12  Bruno Haible  <bruno@clisp.org>
39061         setlocale: Prefer gnulib's override over libintl's override.
39062         * lib/locale.in.h (GNULIB_defined_setlocale): New macro.
39063         * lib/gettext.h (setlocale): Redefine to rpl_setlocale if
39064         GNULIB_defined_setlocale is set.
39066 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
39068         stdlib: support non-GCC __attribute__
39070         Fix a serious and tricky problem encountered when attempting to
39071         add the getloadavg module to Emacs.  Emacs worked fine on RHEL
39072         5.5, but it crashed due to memory corruption on Solaris 10 with
39073         Sun C 5.11.  Emacs normally ORs 3-bit tags into their low-order
39074         bits that are otherwise zero.  This tagging is optional inside
39075         Emacs but is preferred and is used when __attribute__ ((__aligned
39076         (8))) works, as it does with both recent-enough GCC and with Sun C
39077         5.11.  However, Sun C 5.11 is not GCC and does not #define
39078         __GNUC__ and __GNUC_MINOR__.
39080         When I added the getloadavg module to Emacs, it brought in
39081         stdlib.in.h, which contained this fragment:
39083            #ifndef __attribute__
39084            # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8)
39085            #  define __attribute__(Spec)   /* empty */
39086            # endif
39087            #endif
39089         When files that include <stdlib.h> were compiled with Sun C 5.11,
39090         the above code disabled __attribute__ ((__aligned (8))), which
39091         caused variables to not be properly aligned, which eventually led
39092         to the pointer corruption mentioned above.  (This was a bit hard
39093         to diagnose, unfortunately.)
39095         Several "#define __attribute__(X) /* empty */" code snippets need
39096         to be eradicated from Gnulib to work with non-GCC compilers that
39097         support __attribute__.  The Autoconf way to do this is to test for
39098         each kind of attribute that we want support for, and selectively
39099         enable that in source code.
39101         Fix this problem just for stdlib.h, by adding a test for the
39102         __noreturn__ attribute, and change stdlib.in.h to use that test
39103         when needed.  This technique can be easily generalized to the
39104         other *.in.h files and attributes, and a similar technique can be
39105         used for *.h and *.c files.  This patch is enough to solve the
39106         problem for Emacs + getloadavg, and I thought I'd publish it for
39107         feedback before undertaking further, similar fixes in other
39108         modules.
39110         This patch does not arrange to #define HAVE_ATTRIBUTE_NORETURN
39111         because it's not needed for stdlib.h.  It merely substitutes the
39112         value directly into stdlib.h.  We may well need to #define it, or
39113         similar symbols, for other modules, but it's nice to also have an
39114         option to not #define it for applications like Emacs that do not
39115         need it.
39117         * lib/stdlib.in.h (__attribute__): Do not #define.
39118         (_GL_ATTRIBUTE_NORETURN): New macro, which in stdlib.h needs to
39119         be defined only if the _Exit module is also used.
39120         * m4/_Exit.m4 (gl_FUNC__EXIT): Require gl_ATTRIBUTE_NORETURN.
39121         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Subst
39122         HAVE_ATTRIBUTE_NORETURN and default it to 1, its value on GNU
39123         platforms.
39124         * modules/_Exit (Files): Add m4/attribute.m4.
39125         * modules/stdlib (Makefile.am): Substitute HAVE_ATTRIBUTE_NORETURN.
39126         * m4/attribute.m4: New file.
39128 2011-02-12  Bruno Haible  <bruno@clisp.org>
39130         wcsrtombs: Work around bug on native Windows.
39131         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_NULL): Test against mingw bug.
39132         * lib/wcsrtombs.c (rpl_wcsrtombs): When dest is NULL, pass SIZE_MAX
39133         instead of len.
39134         * doc/posix-functions/wcsrtombs.texi: Document mingw bug.
39136 2011-02-12  Bruno Haible  <bruno@clisp.org>
39138         mbsrtowcs: Work around bug on native Windows.
39139         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Require gt_LOCALE_FR. Test
39140         against mingw bug.
39141         * doc/posix-functions/mbsrtowcs.texi: Document mingw bug.
39143 2011-02-12  Bruno Haible  <bruno@clisp.org>
39145         Avoid setlocale bugs in tests.
39146         * modules/btowc (Dependencies): Add setlocale.
39147         * modules/c-strcase (Dependencies): Likewise.
39148         * modules/mbmemcasecmp (Dependencies): Likewise.
39149         * modules/mbmemcasecoll (Dependencies): Likewise.
39150         * modules/mbrtowc (Dependencies): Likewise.
39151         * modules/mbscasecmp (Dependencies): Likewise.
39152         * modules/mbscasestr (Dependencies): Likewise.
39153         * modules/mbschr (Dependencies): Likewise.
39154         * modules/mbscspn (Dependencies): Likewise.
39155         * modules/mbsinit (Dependencies): Likewise.
39156         * modules/mbsncasecmp (Dependencies): Likewise.
39157         * modules/mbsnrtowcs (Dependencies): Likewise.
39158         * modules/mbspbrk (Dependencies): Likewise.
39159         * modules/mbspcasecmp (Dependencies): Likewise.
39160         * modules/mbsrchr (Dependencies): Likewise.
39161         * modules/mbsrtowcs (Dependencies): Likewise.
39162         * modules/mbsspn (Dependencies): Likewise.
39163         * modules/mbsstr (Dependencies): Likewise.
39164         * modules/nl_langinfo (Dependencies): Likewise.
39165         * modules/quotearg (Dependencies): Likewise.
39166         * modules/unicase/locale-language (Dependencies): Likewise.
39167         * modules/unicase/ulc-casecmp (Dependencies): Likewise.
39168         * modules/unicase/ulc-casecoll (Dependencies): Likewise.
39169         * modules/unigbrk/ulc-grapheme-breaks (Dependencies): Likewise.
39170         * modules/unistdio/u8-vasnprintf (Dependencies): Likewise.
39171         * modules/unistdio/u16-vasnprintf (Dependencies): Likewise.
39172         * modules/unistdio/u32-vasnprintf (Dependencies): Likewise.
39173         * modules/unistdio/ulc-vasnprintf (Dependencies): Likewise.
39174         * modules/uniwbrk/ulc-wordbreaks (Dependencies): Likewise.
39175         * modules/vasnprintf-posix (Dependencies): Likewise.
39176         * modules/wcrtomb (Dependencies): Likewise.
39177         * modules/wcsnrtombs (Dependencies): Likewise.
39178         * modules/wcsrtombs (Dependencies): Likewise.
39180 2011-02-12  Bruno Haible  <bruno@clisp.org>
39182         setlocale: Workaround native Windows bug.
39183         * lib/setlocale.c (rpl_setlocale): On native Windows, when setlocale
39184         succeeds but sets LC_CTYPE to "C", report a failure.
39185         * tests/test-setlocale2.sh: New file.
39186         * tests/test-setlocale2.c: New file.
39187         * modules/setlocale-tests (Files): Add the new files.
39188         (Makefile.am): Enable test-setlocale2.sh test.
39189         * doc/posix-functions/setlocale.texi: Mention workaround.
39191 2011-02-11  Bruno Haible  <bruno@clisp.org>
39193         Tests for module 'setlocale'.
39194         * modules/setlocale-tests: New file.
39195         * tests/test-setlocale1.sh: New file.
39196         * tests/test-setlocale1.c: New file.
39198         New module 'setlocale'.
39199         * lib/locale.in.h (setlocale): New declaration.
39200         * lib/setlocale.c: New file, based on
39201         gettext/gettext-runtime/intl/setlocale.c.
39202         * m4/setlocale.m4: New file.
39203         * m4/locale_h.m4 (gl_LOCALE_H): Test whether setlocale is declared.
39204         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_SETLOCALE, REPLACE_SETLOCALE.
39205         * modules/locale (Makefile.am): Substitute GNULIB_SETLOCALE,
39206         REPLACE_SETLOCALE.
39207         * modules/setlocale: New file.
39208         * tests/test-locale-c++.cc: Test the declaration of setlocale.
39209         * doc/posix-functions/setlocale.texi: Mention the new module.
39211 2011-02-11  Bruno Haible  <bruno@clisp.org>
39213         Prepare for locale dependent tests on mingw.
39214         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, don't try "ar"
39215         because it has the wrong locale encoding.
39216         * m4/locale-fr.m4 (gt_LOCALE_FR): On native Windows, try
39217         French_France.1252 instead of "fr".
39218         (gt_LOCALE_FR_UTF8): On native Windows, try French_France.65001.
39219         * m4/locale-ja.m4 (gt_LOCALE_JA): On native Windows, don't try "ja"
39220         because it has the wrong locale encoding.
39221         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Require AC_CANONICAL_HOST. On
39222         native Windows, try Turkish_Turkey.65001.
39223         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On native Windows, try
39224         Chinese_China.54936.
39226         Prepare for locale dependent tests on mingw.
39227         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, call setlocale
39228         differently.
39229         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
39230         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
39231         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
39232         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
39234 2011-02-11  Eric Blake  <eblake@redhat.com>
39236         strptime: avoid compiler warnings
39237         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT]: Avoid
39238         compiler warnings about dead code.
39239         Reported by Daniel P. Berrange.
39241 2011-02-11  Thien-Thi Nguyen  <ttn@gnuvola.org>
39243         doc: update users.txt
39244         * users.txt: Add rcs.
39246 2011-02-10  John W. Eaton  <jwe@gnu.org>
39248         doc: update users.txt
39249         * users.txt: Add octave.
39251 2011-02-10  Jim Meyering  <meyering@redhat.com>
39253         doc: update users.txt
39254         * users.txt: Add iwhd.
39256 2011-02-09  Bruno Haible  <bruno@clisp.org>
39258         gnulib-tool: Make copyright notice adjustment more robust.
39259         * gnulib-tool (func_import): In sed_transform_main_lib_file,
39260         sed_transform_build_aux_file, sed_transform_testsrelated_lib_file,
39261         allow a line break to occur after "GNU" in "GNU [Lesser] General Public
39262         License".
39263         Reported by Glenn Morris <rgm@gnu.org> via Paul Eggert.
39265 2011-02-06  Bruno Haible  <bruno@clisp.org>
39267         New module 'towctrans'.
39268         * modules/towctrans: New file.
39269         * lib/wctype.in.h (towctrans): New declaration.
39270         * lib/towctrans.c: New file.
39271         * lib/towctrans-impl.h: New file.
39272         * m4/towctrans.m4: New file.
39273         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towctrans is declared.
39274         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_TOWCTRANS.
39275         * modules/wctype-h (Makefile.am): Substitute GNULIB_TOWCTRANS.
39276         * tests/test-wctype-h-c++.cc: Test the declaration of towctrans.
39277         * doc/posix-functions/towctrans.texi: Mention the new module.
39279 2011-02-06  Bruno Haible  <bruno@clisp.org>
39281         New module 'wctrans'.
39282         * modules/wctrans: New file.
39283         * lib/wctype.in.h (wctrans): New declaration.
39284         * lib/wctrans.c: New file.
39285         * lib/wctrans-impl.h: New file.
39286         * m4/wctrans.m4: New file.
39287         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctrans is declared.
39288         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTRANS.
39289         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTRANS.
39290         * tests/test-wctype-h-c++.cc: Test the declaration of wctrans.
39291         * doc/posix-functions/wctrans.texi: Mention the new module.
39293 2011-02-06  Bruno Haible  <bruno@clisp.org>
39295         New module 'iswctype'.
39296         * modules/iswctype: New file.
39297         * lib/wctype.in.h (iswctype): New declaration.
39298         * lib/iswctype.c: New file.
39299         * lib/iswctype-impl.h: New file.
39300         * m4/iswctype.m4: New file.
39301         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether iswctype is declared.
39302         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWCTYPE.
39303         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWCTYPE.
39304         * tests/test-wctype-h-c++.cc: Test the declaration of iswctype.
39305         * doc/posix-functions/iswctype.texi: Mention the new module and the
39306         HP-UX 11.00 problem.
39308 2011-02-06  Bruno Haible  <bruno@clisp.org>
39310         New module 'wctype'.
39311         * modules/wctype: Change to represent the wctype() substitute.
39312         * lib/wctype.in.h (wctype): New declaration.
39313         * lib/wctype.c: New file.
39314         * lib/wctype-impl.h: New file.
39315         * m4/wctype.m4: New file.
39316         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctype is declared.
39317         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTYPE.
39318         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTYPE.
39319         * tests/test-wctype-h-c++.cc: Test the declaration of wctype.
39320         * doc/posix-functions/wctype.texi: Mention the new module and the
39321         HP-UX 11.00 problem.
39323 2011-02-06  Bruno Haible  <bruno@clisp.org>
39325         wctype-h: Ensure wctype_t and wctrans_t are defined.
39326         * lib/wctype.in.h (wctype_t, wctrans_t): New type declarations.
39327         * m4/wctype_h.m4 (gl_WCTYPE_H): Determine HAVE_WCTYPE_T, HAVE_WCTRANS_T.
39328         (gl_WCTYPE_H_DEFAULTS): Initialize HAVE_WCTYPE_T, HAVE_WCTRANS_T.
39329         * modules/wctype-h (Makefile.am): Substitute HAVE_WCTYPE_T,
39330         HAVE_WCTRANS_T.
39331         * tests/test-wctype-h.c: Check that wctype_t and wctrans_t are defined.
39333 2011-02-09  Paul Eggert  <eggert@cs.ucla.edu>
39335         flock: fix license typo
39337         * lib/flock.c: Fix typo in license.  One of the "Lesser"s was
39338         omitted.
39340 2011-02-08  Bruno Haible  <bruno@clisp.org>
39342         Split large sed scripts, for HP-UX sed.
39343         * modules/math (Makefile.am): Split sed scripts around 50 sed commands,
39344         to avoid HP-UX limit of 99 commands, in the near future.
39345         * modules/stdlib (Makefile.am): Likewise.
39346         * modules/unistd (Makefile.am): Likewise.
39347         * modules/wchar (Makefile.am): Likewise.
39348         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
39349         Suggestion by Ralf Wildenhues <Ralf.Wildenhues@gmx.de> in
39350         <http://lists.gnu.org/r/bug-gnulib/2010-01/msg00216.html>.
39352 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
39353             Bruno Haible  <bruno@clisp.org>
39355         stdlib: improve random_r modularization
39356         * lib/stdlib.in.h: Encapsulate all the stuff having to do with
39357         random_r inside "#if @GNULIB_RANDOM_R@", so that it's clearer that
39358         you also need the random_r module to get this material right.
39359         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move check for random.h here ...
39360         * m4/stdlib_h.m4 (gl_STDLIB_H): ... from here.
39361         (gl_STDLIB_H_DEFAULTS): Default HAVE_RANDOM_H to 1, and AC_SUBST it.
39363 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
39365         stdlib: don't depend on stdint
39366         * lib/stdlib.in.h: Don't include <stdint.h> merely because
39367         GNULIB_POSIXCHECK is defined.  GNULIB_POSIXCHECK seems to
39368         be independent of whether stdint.h is needed.
39369         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Check for struct random_data
39370         here, instead of ...
39371         * m4/stdlib_h.m4 (gl_STDLIB_H): ... here.  Applications that need
39372         struct random_data should be using the random_r module, not just
39373         the stdlib module (which wouldn't make sense: what package needs
39374         just struct random_data without also needing random_r?).
39375         * modules/stdlib (Depends-on): Remove stdint.
39377         getloadavg: don't depend on c-strtod, cloexec, fcntl-safer
39378         See the thread rooted at
39379         <http://lists.gnu.org/r/bug-gnulib/2011-02/msg00090.html>.
39380         * lib/getloadavg.c: Do not include c-strtod.h, cloexec.h, or fcntl--.h.
39381         Include <fcntl.h> only if (defined __linux__ || defined __CYGWIN__
39382         || defined SUNOS_5 || (defined LOAD_AVE_TYPE && !  defined
39383         __VMS)); previously it was always included (via fcntl--.h).
39384         (getloadavg): Do not use c_strtod.  Instead, approximate it by
39385         hand; this is good enough for load averages.  Also, do not use
39386         set_cloexec_flag; instead, use the O_CLOEXEC and F_DUPFD_CLOEXEC
39387         flags directly if available and don't bother otherwise.  (Packages
39388         that need the extra reliability should use the modules that define
39389         these flags on older platforms that lack them.)
39390         * modules/getloadavg (Depends-on): Remove c-strtod, cloexec,
39391         fcntl-safer.
39393 2011-02-08  Jim Meyering  <meyering@redhat.com>
39395         di-set.h, ino-map.h: add multiple-inclusion guard
39396         Technically, the guard is required only for ino-map.h, due to its
39397         INO_MAP_INSERT_FAILURE definition, but do both for consistency.
39398         * lib/di-set.h: Add file-spanning #ifndef _GL_DI_SET_H.
39399         * lib/ino-map.h: Likewise.
39401 2011-02-06  Bruno Haible  <bruno@clisp.org>
39403         iswblank: Ensure declaration on glibc systems.
39404         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Require gl_USE_SYSTEM_EXTENSIONS.
39405         * modules/iswblank (Dependencies): Add 'extensions'.
39406         * doc/posix-functions/iswblank.texi: Document the glibc problem.
39408 2011-02-06  Bruno Haible  <bruno@clisp.org>
39410         New module 'iswblank'.
39411         * lib/wctype.in.h (iswblank): Don't declare if GNULIB_ISWBLANK is 0.
39412         * modules/iswblank: New file.
39413         * modules/wctype-h (Files): Remove lib/iswblank.c.
39414         (Makefile.am): Substitute GNULIB_ISWBLANK.
39415         * m4/iswblank.m4: New file, partially extracted from m4/wctype_h.m4.
39416         * m4/wctype_h.m4 (gl_WCTYPE_MODULE_INDICATOR): New macro.
39417         (gl_WCTYPE_H_DEFAULTS): New macro.
39418         (gl_WCTYPE_H): Require it. Remove iswblank related code.
39419         * modules/iswblank-tests: New file.
39420         * tests/test-iswblank.c: New file, extraced from tests/test-wctype-h.c.
39421         * tests/test-wctype-h.c (main): Remove iswblank tests.
39422         * tests/test-wctype-h-c++.cc: Guard the signature test of iswblank.
39423         * doc/posix-functions/iswblank.texi: Mention module 'iswblank' instead
39424         of 'wctype-h'.
39425         * NEWS: Mention the change.
39426         * modules/mbchar (Depends-on): Add iswblank.
39428 2011-02-08  Bruno Haible  <bruno@clisp.org>
39430         di-set tests: Refactor.
39431         * tests/test-di-set.c: Include di-set.h early. Include macros.h. Drop
39432         unnecessary includes.
39433         (ASSERT): Remove macro.
39434         (main): Make C90 compliant by avoiding variable declaration after
39435         statement.
39436         * modules/di-set-tests (Files): Add tests/macros.h.
39438 2011-02-08  Bruno Haible  <bruno@clisp.org>
39440         ino-map tests: Refactor.
39441         * tests/test-ino-map.c: Include ino-map.h early. Include macros.h. Drop
39442         unnecessary includes.
39443         (ASSERT): Remove macro.
39444         (main): Make C90 compliant by avoiding variable declaration after
39445         statement.
39446         * modules/ino-map-tests (Files): Add tests/macros.h.
39448 2011-02-08  Jim Meyering  <meyering@redhat.com>
39450         di-set: add "const" to a cast
39451         * lib/di-set.c (di_set_insert): Cast hash_insert0 argument to
39452         "(void const *)", not "(void *)".  Spotted by Bruno Haible.
39454 2011-02-06  Bruno Haible  <bruno@clisp.org>
39456         Rename module 'wctype' to 'wctype-h'.
39457         * modules/wctype-h: Renamed from modules/wctype.
39458         * modules/wctype: Simplyfy to a redirection to 'wctype-h'.
39459         * modules/wctype-h-tests: Renamed from modules/wctype-tests.
39460         (Files, Depends-on, Makefile.am): Update.
39461         * modules/wctype-h-c++-tests: Renamed from modules/wctype-c++-tests.
39462         (Files, Makefile.am): Update.
39463         * tests/test-wctype-h.c: Renamed from tests/test-wctype.c.
39464         * tests/test-wctype-h-c++.cc: Renamed from tests/test-wctype-c++.cc.
39465         * doc/posix-headers/wctype.texi: Update.
39466         * doc/posix-functions/iswalnum.texi: Update.
39467         * doc/posix-functions/iswalpha.texi: Update.
39468         * doc/posix-functions/iswblank.texi: Update.
39469         * doc/posix-functions/iswcntrl.texi: Update.
39470         * doc/posix-functions/iswdigit.texi: Update.
39471         * doc/posix-functions/iswgraph.texi: Update.
39472         * doc/posix-functions/iswlower.texi: Update.
39473         * doc/posix-functions/iswprint.texi: Update.
39474         * doc/posix-functions/iswpunct.texi: Update.
39475         * doc/posix-functions/iswspace.texi: Update.
39476         * doc/posix-functions/iswupper.texi: Update.
39477         * doc/posix-functions/iswxdigit.texi: Update.
39478         * doc/posix-functions/towlower.texi: Update.
39479         * doc/posix-functions/towupper.texi: Update.
39480         * NEWS: Mention the change.
39481         * modules/fnmatch (Dependencies): Add wctype-h, remove wctype.
39482         * modules/mbchar (Dependencies): Likewise.
39483         * modules/mbswidth (Dependencies): Likewise.
39484         * modules/quotearg (Dependencies): Likewise.
39485         * modules/regex (Dependencies): Likewise.
39486         * modules/wcscasecmp (Dependencies): Likewise.
39487         * modules/wcsncasecmp (Dependencies): Likewise.
39488         * modules/wcwidth (Dependencies): Likewise.
39490 2011-02-06  Bruno Haible  <bruno@clisp.org>
39492         New module 'wcswidth'.
39493         * modules/wcswidth: New file.
39494         * lib/wchar.in.h (wcswidth): New declaration.
39495         * lib/wcswidth.c: New file.
39496         * lib/wcswidth-impl.h: New file, from libutf8 with modifications.
39497         * m4/wcswidth.m4: New file.
39498         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcswidth is declared.
39499         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSWIDTH, HAVE_WCSWIDTH,
39500         REPLACE_WCSWIDTH.
39501         * modules/wchar (Makefile.am): Substitute GNULIB_WCSWIDTH,
39502         HAVE_WCSWIDTH, REPLACE_WCSWIDTH.
39503         * tests/test-wchar-c++.cc: Test the declaration of wcswidth.
39504         * doc/posix-functions/wcswidth.texi: Mention the new module.
39506 2011-02-06  Bruno Haible  <bruno@clisp.org>
39508         New module 'wcstok'.
39509         * modules/wcstok: New file.
39510         * lib/wchar.in.h (wcstok): New declaration.
39511         * lib/wcstok.c: New file.
39512         * lib/wcstok-impl.h: New file, from libutf8 with modifications.
39513         * m4/wcstok.m4: New file.
39514         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcstok is declared.
39515         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSTOK, HAVE_WCSTOK.
39516         * modules/wchar (Makefile.am): Substitute GNULIB_WCSTOK, HAVE_WCSTOK.
39517         * tests/test-wchar-c++.cc: Test the declaration of wcstok.
39518         * doc/posix-functions/wcstok.texi: Mention the new module.
39520 2011-02-06  Bruno Haible  <bruno@clisp.org>
39522         New module 'wcsstr'.
39523         * modules/wcsstr: New file.
39524         * lib/wchar.in.h (wcsstr): New declaration.
39525         * lib/wcsstr.c: New file.
39526         * lib/wcsstr-impl.h: New file, from libutf8 with modifications.
39527         * m4/wcsstr.m4: New file.
39528         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsstr is declared.
39529         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSTR, HAVE_WCSSTR.
39530         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSTR, HAVE_WCSSTR.
39531         * tests/test-wchar-c++.cc: Test the declaration of wcsstr.
39532         * doc/posix-functions/wcsstr.texi: Mention the new module.
39534 2011-02-06  Bruno Haible  <bruno@clisp.org>
39536         New module 'wcspbrk'.
39537         * modules/wcspbrk: New file.
39538         * lib/wchar.in.h (wcspbrk): New declaration.
39539         * lib/wcspbrk.c: New file.
39540         * lib/wcspbrk-impl.h: New file, from libutf8 with modifications.
39541         * m4/wcspbrk.m4: New file.
39542         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcspbrk is declared.
39543         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSPBRK, HAVE_WCSPBRK.
39544         * modules/wchar (Makefile.am): Substitute GNULIB_WCSPBRK, HAVE_WCSPBRK.
39545         * tests/test-wchar-c++.cc: Test the declaration of wcspbrk.
39546         * doc/posix-functions/wcspbrk.texi: Mention the new module.
39548 2011-02-06  Bruno Haible  <bruno@clisp.org>
39550         New module 'wcsspn'.
39551         * modules/wcsspn: New file.
39552         * lib/wchar.in.h (wcsspn): New declaration.
39553         * lib/wcsspn.c: New file.
39554         * lib/wcsspn-impl.h: New file, from libutf8 with modifications.
39555         * m4/wcsspn.m4: New file.
39556         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsspn is declared.
39557         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSPN, HAVE_WCSSPN.
39558         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSPN, HAVE_WCSSPN.
39559         * tests/test-wchar-c++.cc: Test the declaration of wcsspn.
39560         * doc/posix-functions/wcsspn.texi: Mention the new module.
39562 2011-02-06  Bruno Haible  <bruno@clisp.org>
39564         New module 'wcscspn'.
39565         * modules/wcscspn: New file.
39566         * lib/wchar.in.h (wcscspn): New declaration.
39567         * lib/wcscspn.c: New file.
39568         * lib/wcscspn-impl.h: New file, from libutf8 with modifications.
39569         * m4/wcscspn.m4: New file.
39570         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscspn is declared.
39571         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCSPN, HAVE_WCSCSPN.
39572         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCSPN, HAVE_WCSCSPN.
39573         * tests/test-wchar-c++.cc: Test the declaration of wcscspn.
39574         * doc/posix-functions/wcscspn.texi: Mention the new module.
39576 2011-02-06  Bruno Haible  <bruno@clisp.org>
39578         New module 'wcsrchr'.
39579         * modules/wcsrchr: New file.
39580         * lib/wchar.in.h (wcsrchr): New declaration.
39581         * lib/wcsrchr.c: New file.
39582         * lib/wcsrchr-impl.h: New file, from libutf8 with modifications.
39583         * m4/wcsrchr.m4: New file.
39584         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsrchr is declared.
39585         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRCHR, HAVE_WCSRCHR.
39586         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRCHR, HAVE_WCSRCHR.
39587         * tests/test-wchar-c++.cc: Test the declaration of wcsrchr.
39588         * doc/posix-functions/wcsrchr.texi: Mention the new module.
39590 2011-02-06  Bruno Haible  <bruno@clisp.org>
39592         New module 'wcschr'.
39593         * modules/wcschr: New file.
39594         * lib/wchar.in.h (wcschr): New declaration.
39595         * lib/wcschr.c: New file.
39596         * lib/wcschr-impl.h: New file, from libutf8 with modifications.
39597         * m4/wcschr.m4: New file.
39598         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcschr is declared.
39599         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCHR, HAVE_WCSCHR.
39600         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCHR, HAVE_WCSCHR.
39601         * tests/test-wchar-c++.cc: Test the declaration of wcschr.
39602         * doc/posix-functions/wcschr.texi: Mention the new module.
39604 2011-02-06  Bruno Haible  <bruno@clisp.org>
39606         New module 'wcsdup'.
39607         * modules/wcsdup: New file.
39608         * lib/wchar.in.h (wcsdup): New declaration.
39609         * lib/wcsdup.c: New file.
39610         * lib/wcsdup-impl.h: New file, from libutf8 with modifications.
39611         * m4/wcsdup.m4: New file.
39612         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsdup is declared.
39613         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSDUP, HAVE_WCSDUP.
39614         * modules/wchar (Makefile.am): Substitute GNULIB_WCSDUP, HAVE_WCSDUP.
39615         * tests/test-wchar-c++.cc: Test the declaration of wcsdup.
39616         * doc/posix-functions/wcsdup.texi: Mention the new module.
39618 2011-02-06  Bruno Haible  <bruno@clisp.org>
39620         New module 'wcsxfrm'.
39621         * modules/wcsxfrm: New file.
39622         * lib/wchar.in.h (wcsxfrm): New declaration.
39623         * lib/wcsxfrm.c: New file.
39624         * lib/wcsxfrm-impl.h: New file.
39625         * m4/wcsxfrm.m4: New file.
39626         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsxfrm is declared.
39627         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSXFRM, HAVE_WCSXFRM.
39628         * modules/wchar (Makefile.am): Substitute GNULIB_WCSXFRM, HAVE_WCSXFRM.
39629         * tests/test-wchar-c++.cc: Test the declaration of wcsxfrm.
39630         * doc/posix-functions/wcsxfrm.texi: Mention the new module.
39632 2011-02-06  Bruno Haible  <bruno@clisp.org>
39634         New module 'wcscoll'.
39635         * modules/wcscoll: New file.
39636         * lib/wchar.in.h (wcscoll): New declaration.
39637         * lib/wcscoll.c: New file.
39638         * lib/wcscoll-impl.h: New file.
39639         * m4/wcscoll.m4: New file.
39640         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscoll is declared.
39641         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCOLL, HAVE_WCSCOLL.
39642         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCOLL, HAVE_WCSCOLL.
39643         * tests/test-wchar-c++.cc: Test the declaration of wcscoll.
39644         * doc/posix-functions/wcscoll.texi: Mention the new module.
39646 2011-02-06  Bruno Haible  <bruno@clisp.org>
39648         New module 'wcsncasecmp'.
39649         * modules/wcsncasecmp: New file.
39650         * lib/wchar.in.h (wcsncasecmp): New declaration.
39651         * lib/wcsncasecmp.c: New file.
39652         * lib/wcsncasecmp-impl.h: New file, from libutf8 with modifications.
39653         * m4/wcsncasecmp.m4: New file.
39654         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncasecmp is declared.
39655         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCASECMP, HAVE_WCSNCASECMP.
39656         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCASECMP,
39657         HAVE_WCSNCASECMP.
39658         * tests/test-wchar-c++.cc: Test the declaration of wcsncasecmp.
39659         * doc/posix-functions/wcsncasecmp.texi: Mention the new module.
39661 2011-02-06  Bruno Haible  <bruno@clisp.org>
39663         New module 'wcscasecmp'.
39664         * modules/wcscasecmp: New file.
39665         * lib/wchar.in.h (wcscasecmp): New declaration.
39666         * lib/wcscasecmp.c: New file.
39667         * lib/wcscasecmp-impl.h: New file, from libutf8 with modifications.
39668         * m4/wcscasecmp.m4: New file.
39669         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscasecmp is declared.
39670         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCASECMP, HAVE_WCSCASECMP.
39671         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCASECMP,
39672         HAVE_WCSCASECMP.
39673         * tests/test-wchar-c++.cc: Test the declaration of wcscasecmp.
39674         * doc/posix-functions/wcscasecmp.texi: Mention the new module.
39676 2011-02-05  Bruno Haible  <bruno@clisp.org>
39678         New module 'wcsncmp'.
39679         * modules/wcsncmp: New file.
39680         * lib/wchar.in.h (wcsncmp): New declaration.
39681         * lib/wcsncmp.c: New file.
39682         * lib/wcsncmp-impl.h: New file, from libutf8 with modifications.
39683         * m4/wcsncmp.m4: New file.
39684         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncmp is declared.
39685         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCMP, HAVE_WCSNCMP.
39686         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCMP, HAVE_WCSNCMP.
39687         * tests/test-wchar-c++.cc: Test the declaration of wcsncmp.
39688         * doc/posix-functions/wcsncmp.texi: Mention the new module.
39690 2011-02-05  Bruno Haible  <bruno@clisp.org>
39692         New module 'wcscmp'.
39693         * modules/wcscmp: New file.
39694         * lib/wchar.in.h (wcscmp): New declaration.
39695         * lib/wcscmp.c: New file.
39696         * lib/wcscmp-impl.h: New file, from libutf8 with modifications.
39697         * m4/wcscmp.m4: New file.
39698         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscmp is declared.
39699         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCMP, HAVE_WCSCMP.
39700         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCMP, HAVE_WCSCMP.
39701         * tests/test-wchar-c++.cc: Test the declaration of wcscmp.
39702         * doc/posix-functions/wcscmp.texi: Mention the new module.
39704 2011-02-05  Bruno Haible  <bruno@clisp.org>
39706         New module 'wcsncat'.
39707         * modules/wcsncat: New file.
39708         * lib/wchar.in.h (wcsncat): New declaration.
39709         * lib/wcsncat.c: New file.
39710         * lib/wcsncat-impl.h: New file, from libutf8 with modifications.
39711         * m4/wcsncat.m4: New file.
39712         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncat is declared.
39713         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCAT, HAVE_WCSNCAT.
39714         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCAT, HAVE_WCSNCAT.
39715         * tests/test-wchar-c++.cc: Test the declaration of wcsncat.
39716         * doc/posix-functions/wcsncat.texi: Mention the new module.
39718 2011-02-05  Bruno Haible  <bruno@clisp.org>
39720         New module 'wcscat'.
39721         * modules/wcscat: New file.
39722         * lib/wchar.in.h (wcscat): New declaration.
39723         * lib/wcscat.c: New file.
39724         * lib/wcscat-impl.h: New file, from libutf8 with modifications.
39725         * m4/wcscat.m4: New file.
39726         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscat is declared.
39727         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCAT, HAVE_WCSCAT.
39728         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCAT, HAVE_WCSCAT.
39729         * tests/test-wchar-c++.cc: Test the declaration of wcscat.
39730         * doc/posix-functions/wcscat.texi: Mention the new module.
39732 2011-02-05  Bruno Haible  <bruno@clisp.org>
39734         New module 'wcpncpy'.
39735         * modules/wcpncpy: New file.
39736         * lib/wchar.in.h (wcpncpy): New declaration.
39737         * lib/wcpncpy.c: New file.
39738         * lib/wcpncpy-impl.h: New file, from libutf8 with modifications.
39739         * m4/wcpncpy.m4: New file.
39740         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpncpy is declared.
39741         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPNCPY, HAVE_WCPNCPY.
39742         * modules/wchar (Makefile.am): Substitute GNULIB_WCPNCPY, HAVE_WCPNCPY.
39743         * tests/test-wchar-c++.cc: Test the declaration of wcpncpy.
39744         * doc/posix-functions/wcpncpy.texi: Mention the new module.
39746 2011-02-05  Bruno Haible  <bruno@clisp.org>
39748         New module 'wcsncpy'.
39749         * modules/wcsncpy: New file.
39750         * lib/wchar.in.h (wcsncpy): New declaration.
39751         * lib/wcsncpy.c: New file.
39752         * lib/wcsncpy-impl.h: New file, from libutf8 with modifications.
39753         * m4/wcsncpy.m4: New file.
39754         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncpy is declared.
39755         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCPY, HAVE_WCSNCPY.
39756         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCPY, HAVE_WCSNCPY.
39757         * tests/test-wchar-c++.cc: Test the declaration of wcsncpy.
39758         * doc/posix-functions/wcsncpy.texi: Mention the new module.
39760 2011-02-05  Bruno Haible  <bruno@clisp.org>
39762         New module 'wcpcpy'.
39763         * modules/wcpcpy: New file.
39764         * lib/wchar.in.h (wcpcpy): New declaration.
39765         * lib/wcpcpy.c: New file.
39766         * lib/wcpcpy-impl.h: New file, from libutf8 with modifications.
39767         * m4/wcpcpy.m4: New file.
39768         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpcpy is declared.
39769         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPCPY, HAVE_WCPCPY.
39770         * modules/wchar (Makefile.am): Substitute GNULIB_WCPCPY, HAVE_WCPCPY.
39771         * tests/test-wchar-c++.cc: Test the declaration of wcpcpy.
39772         * doc/posix-functions/wcpcpy.texi: Mention the new module.
39774 2011-02-05  Bruno Haible  <bruno@clisp.org>
39776         New module 'wcscpy'.
39777         * modules/wcscpy: New file.
39778         * lib/wchar.in.h (wcscpy): New declaration.
39779         * lib/wcscpy.c: New file.
39780         * lib/wcscpy-impl.h: New file, from libutf8 with modifications.
39781         * m4/wcscpy.m4: New file.
39782         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscpy is declared.
39783         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCPY, HAVE_WCSCPY.
39784         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCPY, HAVE_WCSCPY.
39785         * tests/test-wchar-c++.cc: Test the declaration of wcscpy.
39786         * doc/posix-functions/wcscpy.texi: Mention the new module.
39788 2011-02-05  Bruno Haible  <bruno@clisp.org>
39790         New module 'wcsnlen'.
39791         * modules/wcsnlen: New file.
39792         * lib/wchar.in.h (wcsnlen): New declaration.
39793         * lib/wcsnlen.c: New file.
39794         * lib/wcsnlen-impl.h: New file, from libutf8 with modifications.
39795         * m4/wcsnlen.m4: New file.
39796         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsnlen is declared.
39797         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNLEN, HAVE_WCSNLEN.
39798         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNLEN, HAVE_WCSNLEN.
39799         * tests/test-wchar-c++.cc: Test the declaration of wcsnlen.
39800         * doc/posix-functions/wcsnlen.texi: Mention the new module.
39802 2011-02-05  Bruno Haible  <bruno@clisp.org>
39804         New module 'wcslen'.
39805         * modules/wcslen: New file.
39806         * lib/wchar.in.h (wcslen): New declaration.
39807         * lib/wcslen.c: New file.
39808         * lib/wcslen-impl.h: New file, from libutf8 with modifications.
39809         * m4/wcslen.m4: New file.
39810         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcslen is declared.
39811         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSLEN, HAVE_WCSLEN.
39812         * modules/wchar (Makefile.am): Substitute GNULIB_WCSLEN, HAVE_WCSLEN.
39813         * tests/test-wchar-c++.cc: Test the declaration of wcslen.
39814         * doc/posix-functions/wcslen.texi: Mention the new module.
39816 2011-02-05  Bruno Haible  <bruno@clisp.org>
39818         New module 'wmemset'.
39819         * modules/wmemset: New file.
39820         * lib/wchar.in.h (wmemset): New declaration.
39821         * lib/wmemset.c: New file.
39822         * lib/wmemset-impl.h: New file, from libutf8 with modifications.
39823         * m4/wmemset.m4: New file.
39824         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemset is declared.
39825         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMSET, HAVE_WMEMSET.
39826         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMSET, HAVE_WMEMSET.
39827         * tests/test-wchar-c++.cc: Test the declaration of wmemset.
39828         * doc/posix-functions/wmemset.texi: Mention the new module.
39830 2011-02-05  Bruno Haible  <bruno@clisp.org>
39832         New module 'wmemmove'.
39833         * modules/wmemmove: New file.
39834         * lib/wchar.in.h (wmemmove): New declaration.
39835         * lib/wmemmove.c: New file.
39836         * lib/wmemmove-impl.h: New file, from libutf8 with modifications.
39837         * m4/wmemmove.m4: New file.
39838         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemmove is declared.
39839         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMMOVE, HAVE_WMEMMOVE.
39840         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMMOVE,
39841         HAVE_WMEMMOVE.
39842         * tests/test-wchar-c++.cc: Test the declaration of wmemmove.
39843         * doc/posix-functions/wmemmove.texi: Mention the new module.
39845 2011-02-05  Bruno Haible  <bruno@clisp.org>
39847         New module 'wmemcpy'.
39848         * modules/wmemcpy: New file.
39849         * lib/wchar.in.h (wmemcpy): New declaration.
39850         * lib/wmemcpy.c: New file.
39851         * lib/wmemcpy-impl.h: New file, from libutf8 with modifications.
39852         * m4/wmemcpy.m4: New file.
39853         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcpy is declared.
39854         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCPY, HAVE_WMEMCPY.
39855         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCPY, HAVE_WMEMCPY.
39856         * tests/test-wchar-c++.cc: Test the declaration of wmemcpy.
39857         * doc/posix-functions/wmemcpy.texi: Mention the new module.
39859 2011-02-05  Bruno Haible  <bruno@clisp.org>
39861         New module 'wmemcmp'.
39862         * modules/wmemcmp: New file.
39863         * lib/wchar.in.h (wmemcmp): New declaration.
39864         * lib/wmemcmp.c: New file.
39865         * lib/wmemcmp-impl.h: New file, from libutf8 with modifications.
39866         * m4/wmemcmp.m4: New file.
39867         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcmp is declared.
39868         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCMP, HAVE_WMEMCMP.
39869         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCMP, HAVE_WMEMCMP.
39870         * tests/test-wchar-c++.cc: Test the declaration of wmemcmp.
39871         * doc/posix-functions/wmemcmp.texi: Mention the new module.
39873 2011-02-07  Jim Meyering  <meyering@redhat.com>
39875         di-set, ino-map: new modules, from coreutils
39876         * lib/di-set.c: New file.
39877         * lib/di-set.h: Likewise.
39878         * lib/ino-map.c: Likewise.
39879         * lib/ino-map.h: Likewise.
39880         * modules/di-set: Likewise.
39881         * modules/di-set-tests: Likewise.
39882         * modules/ino-map: Likewise.
39883         * modules/ino-map-tests: Likewise.
39884         * tests/test-di-set.c: Likewise.
39885         * tests/test-ino-map.c: Likewise.
39887 2011-02-06  Paul Eggert  <eggert@cs.ucla.edu>
39889         getloadavg: merge minor changes from Emacs
39891         * lib/getloadavg.c (getloadavg_initialized): More-accurate comment.
39892         (getloadavg): Use memset, not bzero.
39894         2008-07-25  Chong Yidong  <cyd@stupidchicken.com>
39895         * lib/getloadavg.c (nl): Rename to name_list to avoid ncurses.h
39896         clash (bug#86).
39898 2010-11-14  Bruno Haible  <bruno@clisp.org>
39900         Allow multiple gnulib generated replacements to coexist.
39901         * lib/getopt.in.h (struct option): Avoid identical redefinition.
39902         * lib/inttypes.in.h (imaxdiv_t): Likewise.
39903         * lib/langinfo.in.h (nl_item): Likewise.
39904         * lib/math.in.h (_NaN, NAN): Likewise.
39905         * lib/netdb.in.h (struct addrinfo): Likewise.
39906         * lib/poll.in.h (struct pollfd, nfds_t): Likewise.
39907         * lib/pthread.in.h (pthread_t, pthread_attr_t, pthread_barrier_t,
39908         pthread_barrierattr_t, pthread_cond_t, pthread_condattr_t,
39909         pthread_key_t, pthread_mutex_t, pthread_mutexattr_t, pthread_once_t,
39910         pthread_rwlock_t, pthread_rwlockattr_t, pthread_cond_destroy,
39911         pthread_cond_init, pthread_cond_signal, pthread_cond_wait,
39912         pthread_create, pthread_exit, pthread_join, pthread_mutexattr_destroy,
39913         pthread_mutexattr_init, pthread_mutexattr_settype,
39914         pthread_mutex_destroy, pthread_mutex_init, pthread_mutex_lock,
39915         pthread_mutex_trylock, pthread_mutex_unlock, pthread_spinlock_t,
39916         pthread_spin_init, pthread_spin_destroy, pthread_spin_lock,
39917         pthread_spin_trylock, pthread_spin_unlock): Likewise.
39918         * lib/sched.in.h (struct sched_param): Likewise.
39919         * lib/se-selinux.in.h (security_class_t, security_context_t,
39920         is_selinux_enabled, getcon, freecon, getfscreatecon, setfscreatecon,
39921         matchpathcon, getfilecon, lgetfilecon, fgetfilecon, setfilecon,
39922         lsetfilecon, fsetfilecon, security_check_context,
39923         security_check_context_raw, setexeccon, matchpathcon_init_prefix):
39924         Likewise.
39925         * lib/search.in.h (VISIT, _gl_search_compar_fn, _gl_search_action_fn):
39926         Likewise.
39927         * lib/signal.in.h (sig_atomic_t, sigset_t, verify_NSIG_constraint,
39928         _gl_function_taking_int_returning_void_t, union sigval,
39929         struct siginfo_t, siginfo_t, struct sigaction): Likewise.
39930         * lib/spawn.in.h (posix_spawnattr_t, posix_spawn_file_actions_t,
39931         verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
39932         * lib/stdint.in.h (gl_int8_t, gl_uint8_t, gl_int16_t, gl_uint16_t,
39933         gl_int32_t, gl_uint32_t, gl_int64_t, gl_uint64_t, int_least8_t,
39934         uint_least8_t, int_least16_t, uint_least16_t, int_least32_t,
39935         uint_least32_t, int_least64_t, uint_least64_t, gl_int_fast8_t,
39936         gl_uint_fast8_t, gl_int_fast16_t, gl_uint_fast16_t, gl_int_fast32_t,
39937         gl_uint_fast32_t, int_fast64_t, uint_fast64_t, gl_intptr_t,
39938         gl_uintptr_t, intmax_t, uintmax_t, _verify_intmax_size): Likewise.
39939         * lib/stdio.in.h (rpl_fseek, rpl_ftell): Likewise.
39940         * lib/sys_socket.in.h (sa_family_t, struct sockaddr_storage,
39941         socklen_t, rpl_fd_isset): Likewise.
39942         * lib/sys_stat.in.h (rpl_mkdir): Likewise.
39943         * lib/sys_time.in.h (struct timeval): Likewise.
39944         * lib/sys_times.in.h (struct tms): Likewise.
39945         * lib/sys_utsname.in.h (struct utsname):
39946         * lib/time.in.h (struct timespec, __time_t_must_be_integral): Likewise.
39947         * lib/unistd.in.h (getpagesize): Likewise.
39948         * lib/wchar.in.h (mbstate_t): Likewise.
39949         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
39950         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit,
39951         towlower, towupper): Likewise.
39952         Reported by Sam Steingold <sds@gnu.org>.
39954 2011-02-05  Eric Blake  <eblake@redhat.com>
39956         unsetenv: work around Haiku issues
39957         * m4/setenv.m4 (gl_FUNC_UNSETENV): Also detect Haiku issue.
39958         * doc/posix-functions/unsetenv.texi (unsetenv): Document it.
39960 2010-12-30  Bruce Korb  <bkorb@gnu.org>
39962         libposix: avoid calling error() within libposix
39963         * lib/openat-die.c: remove error module stuff when GNULIB_LIBPOSIX
39964         is defined.
39966 2011-02-05  Eric Blake  <eblake@redhat.com>
39968         strerror_r-posix: port to cygwin
39969         * lib/strerror_r.c (strerror_r) [__CYGWIN__]: Add cygwin
39970         implementation.
39971         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Adjust comment.
39972         * tests/test-strerror_r.c (main): Fix test.
39973         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
39974         issue.
39976 2011-02-05  Bruno Haible  <bruno@clisp.org>
39978         New module 'wmemchr'.
39979         * modules/wmemchr: New file.
39980         * lib/wchar.in.h (wmemchr): New declaration.
39981         * lib/wmemchr.c: New file.
39982         * lib/wmemchr-impl.h: New file, from libutf8 with modifications.
39983         * m4/wmemchr.m4: New file.
39984         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemchr is declared.
39985         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCHR, HAVE_WMEMCHR.
39986         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCHR, HAVE_WMEMCHR.
39987         * tests/test-wchar-c++.cc: Test the declaration of wmemchr.
39988         * doc/posix-functions/wmemchr.texi: Mention the new module.
39990 2011-02-04  Eric Blake  <eblake@redhat.com>
39992         fdopendir: detect FreeBSD bug
39993         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Detect bug.
39994         * doc/posix-functions/fdopendir.texi (fdopendir): Document it.
39996 2011-02-04  Paul Eggert  <eggert@cs.ucla.edu>
39998         stdbool: do not define HAVE_STDBOOL_H
39999         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Renamed from
40000         AC_HEADER_STDBOOL.  All uses changed.  Do not define
40001         HAVE_STDBOOL_H, as gnulib does not need this.  This change is
40002         imported from the latest Autoconf git.  It was motivated by Emacs,
40003         which uses gnulib but does not need HAVE_STDBOOL_H.
40005 2011-02-04  Bruno Haible  <bruno@clisp.org>
40007         wcsnrtombs: Prepare for new module wwcsnrtombs.
40008         * lib/wcsnrtombs-impl.h: New file, extracted from lib/wcsnrtombs.c.
40009         * lib/wcsnrtombs.c: Include it.
40010         * modules/wcsnrtombs (Files): Add lib/wcsnrtombs-impl.h.
40012         wcsrtombs: Prepare for new module wwcsrtombs.
40013         * lib/wcsrtombs-impl.h: New file, extracted from lib/wcsrtombs.c.
40014         * lib/wcsrtombs.c: Include it.
40015         * modules/wcsrtombs (Files): Add lib/wcsrtombs-impl.h.
40017         mbsnrtowcs: Prepare for new module mbsnrtowwcs.
40018         * lib/mbsnrtowcs-impl.h: New file, extracted from lib/mbsnrtowcs.c.
40019         * lib/mbsnrtowcs.c: Include it.
40020         * modules/mbsnrtowcs (Files): Add lib/mbsnrtowcs-impl.h.
40022         mbsrtowcs: Prepare for new module mbsrtowwcs.
40023         * lib/mbsrtowcs-impl.h: New file, extracted from lib/mbsrtowcs.c.
40024         * lib/mbsrtowcs.c: Include it.
40025         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-impl.h.
40027 2011-02-04  Bruno Haible  <bruno@clisp.org>
40029         vasnprintf: Reduce use of malloc for small format strings.
40030         * lib/printf-args.h (N_DIRECT_ALLOC_ARGUMENTS): New macro.
40031         (arguments): Add room for the first 7 arguments.
40032         * lib/printf-parse.h (N_DIRECT_ALLOC_DIRECTIVES): New macro.
40033         (char_directives, u8_directives, u16_directives, u32_directives): Add
40034         room for the first 7 directives.
40035         * lib/printf-parse.c: Include <string.h>.
40036         (PRINTF_PARSE): Change memory handling code so that it uses the first
40037         7 preallocated elements in an 'arguments' or 'DIRECTIVES' struct.
40038         * lib/vasnprintf.c (VASNPRINTF): Update memory handling code.
40039         Reported by Pádraig Brady <P@draigbrady.com>.
40041 2011-01-31  Eric Blake  <eblake@redhat.com>
40043         dup2: work around Haiku bug
40044         * m4/dup2.m4 (gl_FUNC_DUP2): Test for bug.
40045         * lib/dup2.c (rpl_dup2) [!WIN32]: Add workaround.
40046         * doc/posix-functions/dup2.texi (dup2): Document the bug.
40047         * tests/test-dup2.c (main): Enhance test.
40049 2011-01-31  Simon Josefsson  <simon@josefsson.org>
40051         doc: off_t is not available in eglibc 2.11.2 stdio.h.
40052         * doc/posix-headers/stdio.texi (stdio.h): Mention that off_t isn't
40053         declared by eglibc 2.11.2.
40054         * lib/stdio.in.h: Likewise.
40056 2011-01-31  Eric Blake  <eblake@redhat.com>
40058         ignore-value: add missing test dependency
40059         * tests/test-ignore-value.c: Revert previous change; stdio.h
40060         provides off_t.
40061         * modules/ignore-value-tests (Depends-on): Add missing dependency.
40063 2011-01-30  Paul Eggert  <eggert@cs.ucla.edu>
40065         mktime: clarify long_int width checking
40066         * lib/mktime.c (long_int_is_wide_enough): Move this assertion to
40067         the top level, to make it clearer that the assumption about
40068         long_int width is being checked.  See
40069         <http://lists.gnu.org/r/bug-gnulib/2011-01/msg00554.html>.
40071 2011-01-30  Simon Josefsson  <simon@josefsson.org>
40073         ignore-value: Fix self-test.
40074         * tests/test-ignore-value.c: Include sys/types.h for off_t.
40076 2011-01-29  Paul Eggert  <eggert@cs.ucla.edu>
40078         TYPE_MAXIMUM: avoid theoretically undefined behavior
40079         * lib/intprops.h (TYPE_MINIMUM, TYPE_MAXIMUM): Do not shift a
40080         negative number, which the C Standard says has undefined behavior.
40081         In practice this is not a problem, but might as well do it by the book.
40082         Reported by Rich Felker and Eric Blake; see
40083         <http://lists.gnu.org/r/bug-gnulib/2011-01/msg00493.html>.
40084         * lib/strtol.c (TYPE_MINIMUM, TYPE_MAXIMUM): Likewise.
40085         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
40086         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
40087         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Likewise.
40088         * m4/stdint.m4 (gl_STDINT_H): Likewise.
40089         * lib/mktime.c (TYPE_MAXIMUM): Redo slightly to match the others.
40091         mktime: #undef mktime before #defining it
40092         * lib/mktime.c (mktime) [DEBUG]: #undef mktime before #defining it.
40094         mktime: systematically normalize tm_isdst comparisons
40095         * lib/mktime.c (isdst_differ): New function.
40096         (__mktime_internal): Use it systematically for all isdst comparisons.
40097         This completes the fix for libc BZ #6723, and removes the need for
40098         normalizing tm_isdst.  See
40099         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>
40100         (not_equal_tm) [DEBUG]: Use isdst_differ here, too.
40102         mktime: fix some integer overflow issues and sidestep the rest
40104         This was prompted by a bug report by Benjamin Lindner for MinGW
40105         <http://lists.gnu.org/r/bug-gnulib/2011-01/msg00472.html>.
40106         His bug is due to signed integer overflow (0 - INT_MIN), and I
40107         I scanned through mktime.c looking for other integer overflow
40108         problems, fixing all the bugs I found.
40110         Although the C Standard says the resulting code is still not safe
40111         in the presence of integer overflow, in practice it should be good
40112         enough for all real-world two's-complement implementations, except
40113         for debugging environments that deliberately trap on integer
40114         overflow (e.g., gcc -ftrapv).
40116         * lib/mktime.c (WRAPV): New macro.
40117         (SHR): Also check that long_int and time_t shift right in the
40118         usual way, before using the fast-but-unportable method.
40119         (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove, no longer
40120         used.  The code already assumed two's complement, so there's
40121         no need to test for alternatives.  All uses removed.
40122         (TYPE_MAXIMUM): Don't rely here on overflow behavior not defined by
40123         the C standard.  Problem reported by Rich Felker in
40124         <http://lists.gnu.org/r/bug-gnulib/2011-01/msg00488.html>.
40125         (twos_complement_arithmetic): Also check long_int and time_t.
40126         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New functions.
40127         (guess_time_tm, ranged_convert, __mktime_internal): Use them.
40128         (__mktime_internal): Avoid integer overflow with unary subtraction
40129         in two instances where -1 - X is an adequate replacement for -X,
40130         since the calculations are approximate.
40132 2011-01-29  Eric Blake  <eblake@redhat.com>
40134         mktime: avoid infinite loop
40135         * m4/mktime.m4 (AC_FUNC_MKTIME): Avoid overflow on possibly-signed
40136         type; behavior is still undefined but portable to all known targets.
40137         Reported by Rich Felker.
40139 2011-01-29  Simon Josefsson  <simon@josefsson.org>
40141         rename, unlink, same-inode: Relicense.
40142         * modules/rename (License): Relax from LGPLv3+ to LGPLv2+.
40143         * modules/unlink (License): Likewise.
40144         * modules/same-inode (License): Likewise.
40146 2011-01-28  Paul Eggert  <eggert@cs.ucla.edu>
40148         mktime: avoid problems on NetBSD 5 / i386
40149         * lib/mktime.c (long_int): New type.  This works around a problem
40150         on NetBSD 5 / i386, where 'long int' and 'int' are both 32 bits
40151         but time_t is 64 bits, and where I expect the existing code is
40152         wrong in some cases.
40153         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it.
40154         (ydhms_diff): Bring back the compile-time check for wide-enough
40155         year and yday.
40157         mktime: fix misspelling in comment
40158         * lib/mktime.c (__mktime_internal): Fix misspelling in comment.
40159         This merges all recent glibc changes of importance.
40161 2011-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40163         move-if-change: cope with concurrent mv of identical file.
40164         * build-aux/move-if-change (CMPPROG): Accept environment
40165         variable as an override for `cmp'.
40166         (usage): Document CMPPROG.
40167         Adjust comparison to drop stdout.  Cope with failure of mv if
40168         the target file exists and is identical to the source, for
40169         parallel builds.
40170         Report from H.J. Lu against binutils in PR binutils/12283.
40172 2011-01-28  Bruce Korb  <bkorb@gnu.org>
40174         * users.txt: Mention sharutils.
40176 2011-01-28  Simon Josefsson  <simon@josefsson.org>
40178         * users.txt: Mention OATH Toolkit.
40180 2011-01-27  Bruno Haible  <bruno@clisp.org>
40182         Prepare for supporting FreeBSD 10.
40183         * build-aux/config.libpath: Remove handling of freebsd1*.
40185 2011-01-27  Gerald Pfeifer  <gerald@pfeifer.com>  (tiny change)
40187         Prepare for supporting FreeBSD 10.
40188         * build-aux/config.rpath: Remove handling of freebsd1* which soon would
40189         match FreeBSD 10.0.
40191 2011-01-27  Bruno Haible  <bruno@clisp.org>
40193         vma-iter, get-rusage-as: Add OpenBSD support.
40194         * modules/vma-iter (configure.ac): Test for mquery.
40195         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on OpenBSD.
40196         * lib/vma-iter.c: Include <sys/mman.h>.
40197         (vma_iterate): Add an implementation based on mquery().
40198         * lib/resource-ext.h (get_rusage_as): Update comments.
40199         * lib/get-rusage-as.c: Likewise.
40200         * lib/get-rusage-data.c: Likewise.
40202 2011-01-26  Karl Berry  <karl@gnu.org>
40204         * doc/Makefile (lang_env, makeinfo_prog, manual_opts): new
40205         variables to make it easier to override the makeinfo program used.
40207 2011-01-26  Eric Blake  <eblake@redhat.com>
40209         fcntl: work around Haiku F_DUPFD bugs
40210         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also catch Haiku errno bug.
40211         * lib/fcntl.c (rpl_fcntl) [F_DUPFD]: Work around Haiku losing
40212         cloexec bit on duplication.
40213         * doc/posix-functions/fcntl.texi (fcntl): Document the bug.
40215 2011-01-26  Bruno Haible  <bruno@clisp.org>
40217         Enable memory leak tests on AIX.
40218         * tests/test-dprintf-posix2.c (main): Don't skip the test on AIX.
40219         * tests/test-fprintf-posix3.c (main): Likewise.
40221 2011-01-26  Bruno Haible  <bruno@clisp.org>
40223         Tests for module 'get-rusage-data'.
40224         * modules/get-rusage-data-tests: New file.
40225         * tests/test-get-rusage-data.c: New file.
40227         New module 'get-rusage-data'.
40228         * lib/resource-ext.h (get_rusage_data): New declaration.
40229         * lib/get-rusage-data.c: New file.
40230         * modules/get-rusage-data: New file.
40232 2011-01-25  Bruno Haible  <bruno@clisp.org>
40234         get-rusage-as: Allow for easier testing.
40235         * lib/resource-ext.h (get_rusage_as): Add comment.
40236         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Define always.
40237         (main): New function for interactive testing.
40239 2011-01-25  Bruno Haible  <bruno@clisp.org>
40241         vma-iter: Treat Haiku like BeOS.
40242         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Haiku as well.
40243         * lib/vma-iter.c (vma_iterate) [Haiku]: Use the BeOS API.
40245 2011-01-25  Eric Blake  <eblake@redhat.com>
40247         c-stack: fix regression on cygwin when libsigsegv is present
40248         * lib/c-stack.c (die): Don't flatten error if sigsegv is present.
40250 2011-01-24  Bruno Haible  <bruno@clisp.org>
40252         vma-iter: Avoid empty intervals.
40253         * lib/vma-iter.c (vma_iterate) [IRIX, OSF/1]: Don't call the callback
40254         on an empty interval.
40256 2011-01-24  Jim Meyering  <meyering@redhat.com>
40258         u64: remove unnecessary #include
40259         * lib/u64.h: Don't include <stddef.h>.  It was not used.
40261 2011-01-23  Paul Eggert  <eggert@cs.ucla.edu>
40263         Allow the user to avoid the HAVE_RAW_DECL_* macros.
40264         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): New macro.
40266 2011-01-23  Bruno Haible  <bruno@clisp.org>
40268         New module 'vma-iter'.
40269         * lib/vma-iter.h: New file.
40270         * lib/vma-iter.c: New file, based on lib/get-rusage-as.c.
40271         * modules/vma-iter: New file.
40272         * lib/get-rusage-as.c: Include vma-iter.h. Don't include system headers
40273         for get_rusage_as_via_iterator.
40274         (vma_iterate_callback): New function.
40275         (get_rusage_as_via_iterator): Rewritten to use vma_iterate.
40276         * modules/get-rusage-as (Depends-on): Add vma-iter.
40278 2011-01-23  Bruno Haible  <bruno@clisp.org>
40280         uninorm: Tweak includes.
40281         * lib/uninorm/normalize-internal.h: Don't include <stddef.h>.
40282         Reported by Jim Meyering.
40284 2011-01-23  Bruno Haible  <bruno@clisp.org>
40286         get-rusage-as: Improve on NetBSD.
40287         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On NetBSD, use
40288         /proc, like on FreeBSD.
40290 2011-01-23  Jim Meyering  <meyering@redhat.com>
40292         xreadlink.h: remove unnecessary #include
40293         * lib/xreadlink.h: Don't include <stddef.h>.  It was not used.
40295         maint.mk: add syntax-check rule: detect unnecessary #include <stddef.h>
40296         * top/maint.mk (sc_prohibit_stddef_without_use): New rule.
40298 2011-01-23  Bruno Haible  <bruno@clisp.org>
40300         get-rusage-as: Fix bug.
40301         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Restore the
40302         original limit when aborting the first loop.
40304 2011-01-23  Bruno Haible  <bruno@clisp.org>
40306         wctype: Ensure valid C syntax.
40307         * m4/wctype_h.m4 (gl_WCTYPE_H): Invoke gl_CHECK_NEXT_HEADERS
40308         unconditionally, instead of gl_NEXT_HEADERS conditionally.
40310 2011-01-21  Paul Eggert  <eggert@cs.ucla.edu>
40312         getopt: omit HAVE_OPTRESET, HAVE_GETOPT_CLIP from config.h
40313         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not put the
40314         symbols HAVE_OPTRESET and HAVE_GETOPT_CLIP into config.h,
40315         as they are needed only for configure's test case.
40316         This removes two unnecessary symbols from config.h.
40318         gl_CHECK_NEXT_HEADERS implies AC_CHECK_HEADERS_ONCE
40319         * m4/include_next.m4 (gl_CHECK_HEXT_HEADERS): Document this.
40320         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't bother to invoke
40321         AC_CHECK_HEADERS_ONCE on a header that we also invoke
40322         gl_CHECK_NEXT_HEADERS on, since the latter invokes the former.
40323         * m4/netdb_h.m4 (gl_HEADER_NETDB): Likewise.
40324         * m4/pthread.m4 (gl_PTHREAD_CHECK): Likewise.
40325         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
40326         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
40327         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
40328         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
40329         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
40330         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
40331         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
40332         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
40333         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
40334         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
40335         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
40337 2011-01-21  Eric Blake  <eblake@redhat.com>
40339         maintainer-makefile: work with older git for submodule check
40340         * top/maint.mk (public-submodule-commit): Rewrite to avoid
40341         merge-base --independent, which Ubuntu 10.04 git 1.7.0.4 lacks.
40342         Reported by Matthias Bolte.
40344         bootstrap: minor portability fixes
40345         * build-aux/bootstrap (me): Use $me instead of $0 in functions.
40346         (usage): Omit leading capital and trailing . on help phrases, per
40347         GNU Coding Standards.
40348         (check_versions, top level): Prefix messages with script name.
40350 2011-01-21  Benjamin Lindner  <bjmldn@gmail.com>  (tiny change)
40352         bootstrap: support --no-git option
40353         * build-aux/bootstrap: Add --no-git option, to be used when
40354         --gnulib-srcdir points to the exact desired checkout.
40356 2011-01-21  Eric Blake  <eblake@redhat.com>
40358         strerror_r-posix: work with glibc 2.13
40359         * lib/strerror_r.c (strerror_r): Fix return type.
40361 2011-01-21  Pádraig Brady  <P@draigBrady.com>
40362             Bruno Haible  <bruno@clisp.org>
40364         uN_strstr: New unit tests.
40365         * modules/unistr/u8-strstr-tests: New file.
40366         * modules/unistr/u16-strstr-tests: New file.
40367         * modules/unistr/u32-strstr-tests: New file.
40368         * tests/unistr/test-u-strstr.h: New file, based on tests/test-strstr.c.
40369         * tests/unistr/test-u8-strstr.c: New file.
40370         * tests/unistr/test-u16-strstr.c: New file.
40371         * tests/unistr/test-u32-strstr.c: New file.
40373 2011-01-21  Pádraig Brady  <P@draigBrady.com>
40374             Bruno Haible  <bruno@clisp.org>
40376         Make uN_strstr functions O(n) worst-case.
40377         * lib/unistr/u-strstr.h (FUNC): In the 8-bit case, use strstr. In the
40378         16-bit and 32-bit unit cases, use the unibyte algorithm from
40379         lib/mbsstr.c.
40380         * lib/unistr/u8-strstr.c: Include <string.h>.
40381         (UNIT_IS_UINT8_T): New macro.
40382         * lib/unistr/u16-strstr.c: Include malloca.h and str-kmp.h.
40383         (U_STRLEN, U_STRNLEN): New macros.
40384         * lib/unistr/u32-strstr.c: Include malloca.h and str-kmp.h.
40385         (U_STRLEN, U_STRNLEN): New macros.
40386         * modules/unistr/u8-strstr (Depends-on): Add strstr.
40387         (configure.ac): Update required libunistring version.
40388         * modules/unistr/u16-strstr (Files): Add lib/str-kmp.h.
40389         (Depends-on): Add unistr/u16-strlen, unistr/u16-strnlen, stdbool,
40390         malloca.
40391         (configure.ac): Update required libunistring version.
40392         * modules/unistr/u32-strstr (Files): Add lib/str-kmp.h.
40393         (Depends-on): Add unistr/u32-strlen, unistr/u32-strnlen, stdbool,
40394         malloca.
40395         (configure.ac): Update required libunistring version.
40397 2011-01-21  Pádraig Brady  <P@draigBrady.com>
40398             Bruno Haible  <bruno@clisp.org>
40400         Prepare for faster uN_strstr functions.
40401         * lib/str-kmp.h: Support definable UNITs.
40402         (knuth_morris_pratt): Renamed from knuth_morris_pratt_unibyte. Add
40403         needle_len argument.
40404         * lib/mbsstr.c (mbsstr): Adjust for the changed str-kmp.h.
40405         * lib/mbscasestr.c (mbscasestr): Likewise.
40407 2011-01-21  Pádraig Brady  <P@draigBrady.com>
40409         malloca-tests: make faster by unsetting MALLOC_PERTURB_
40410         * tests/test-malloca.c (main): Unset the environment variable
40411         to greatly speed up the test.
40412         * tests/init.sh: Don't say that MALLOC_PERTURB_ is cheap.
40413         * modules/malloca-tests: Depend on unsetenv.
40415 2011-01-21  Pádraig Brady  <P@draigBrady.com>
40417         ignore-value: remove stdint dependency
40418         * lib/ignore-value.h: Remove <stdint.h>
40419         * modules/ignore-value: Remove stdint dependency.
40421 2011-01-21  Jim Meyering  <meyering@redhat.com>
40423         maint.mk: adjust variable name to be consistent with other gl_ vars
40424         * top/maint.mk (gl_public_submodule_commit): Rename the variable
40425         to be lower case.
40427 2011-01-20  Jim Meyering  <meyering@redhat.com>
40429         maint.mk: make "check" depend on public-submodule-commit by default
40430         * top/maint.mk (GL_PUBLIC_SUBMODULE_COMMIT): New overridable variable.
40432 2011-01-20  Bruno Haible  <bruno@clisp.org>
40434         mbfile, mbiter: Complete change from 2008-12-21.
40435         * m4/mbfile.m4 (gl_MBFILE): Don't require AC_FUNC_MBRTOWC.
40436         * m4/mbiter.m4 (gl_MBITER): Likewise.
40438 2011-01-20  Jim Meyering  <meyering@redhat.com>
40440         init.sh: insert space between each function name and "()"
40441         * tests/init.sh: Make it a little easier to see that a function's
40442         name is "warn_", and not "warn" when looking at the first part of
40443         its definition: "warn_ ()".  Suggested by Ralf Wildenhues.
40445 2011-01-20  Jim Meyering  <meyering@redhat.com>
40447         mountlist: clean up code formatting
40448         * lib/mountlist.c (read_file_system_list): Split a long line,
40449         correct bracing style, use NULL in place of "(struct statfs *)0",
40450         don't parenthesize return value, add spaces around "=" and after
40451         ";-in-for-stmt".
40453 2011-01-14  Markus Duft  <mduft@gentoo.org>
40455         mountlist: add support for Interix
40456         * lib/mountlist.c (read_file_system_list) [MOUNTED_INTERIX_STATVFS]:
40457         Apply statvfs to all entries of /dev/fs.
40458         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for statvfs,
40459         and if found, AC_DEFINE MOUNTED_INTERIX_STATVFS.
40461 2011-01-20  Jim Meyering  <meyering@redhat.com>
40463         maint.mk: improve the public-submodule-commit rule
40464         * top/maint.mk (public-submodule-commit): Prefix with $(AM_V_GEN),
40465         to suppress printing of its commands... unless V=1.
40466         Add git submodule's --quiet option to suppress printing of e.g.,
40467         "Entering gnulib" output.
40468         "cd" into $(srcdir) before running git submodule.
40470 2011-01-20  Bruno Haible  <bruno@clisp.org>
40472         include_next: Fix bug introduced on 2011-01-18.
40473         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): New macro, extracted
40474         from gl_CHECK_NEXT_HEADERS and gl_NEXT_HEADERS. Omit test of
40475         ac_cv_header_... variable if the second argument is not 'check'.
40476         (gl_CHECK_NEXT_HEADERS, gl_NEXT_HEADERS): Invoke
40477         gl_NEXT_HEADERS_INTERNAL.
40479 2011-01-20  Bruno Haible  <bruno@clisp.org>
40481         Allow the user to avoid the GNULIB_TEST_* macros.
40482         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_TESTS): New macro.
40483         Suggested by Paul Eggert.
40485 2011-01-14  Jim Meyering  <meyering@redhat.com>
40487         bootstrap: avoid failure when there is no .gitmodules file
40488         ": ${gnulib_path=gnulib}" fails to set $gnulib_path when that variable
40489         has been assigned to, even when its value is the empty string.
40490         * build-aux/bootstrap (gnulib_path): Test explicitly for an empty
40491         "$gnulib_path", rather than using ${gnulib_path=gnulib}.
40492         Reported by John W. Eaton <jwe@gnu.org>.
40494 2011-01-19  Paul Eggert  <eggert@cs.ucla.edu>
40496         assume <ctype.h>, ..., <time.h> exist
40497         For years gnulib has been assuming the existence of the headers
40498         <ctype.h>, <errno.h>, <fcntl.h>, <locale.h>, <signal.h>,
40499         <stdio.h>, <stdlib.h>, <string.h>, and <time.h>.  Omit checks for
40500         them, since they don't appear to be needed.
40501         * README (Portability guidelines): Document this.
40502         * lib/flock.c: Assume <fcntl.h> exists.
40503         * lib/regex_internal.h: Assume <locale.h> exists.
40504         * m4/ctype.m4 (gl_CTYPE_H): Assume <ctype.h> exists.
40505         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Assume <errno.h> exists.
40506         * m4/fcntl_h.m4 (gl_FCNTL_H): Assume <fcntl.h> exists.
40507         * m4/flock.m4 (gl_PREREQ_FLOCK): Likewise.
40508         * m4/locale_h.m4 (gl_LOCALE_H): Assume <locale.h> exists.
40509         * m4/regex.m4 (gl_REGEX): Likewise.
40510         * m4/signal_h.m4 (gl_SIGNAL_H): Assume <signal.h> exists.
40511         * m4/stdio_h.m4 (gl_STDIO_H): Assume <stdio.h> exists.
40512         * m4/stdlib_h.m4 (gl_STDLIB_H): Assume <stdlib.h> exists.
40513         * m4/string_h.m4 (gl_STRING_H): Assume <string.h> exists.
40514         * tests/test-argp.c: Likewise.
40515         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Assume <time.h> exists.
40517         multiarch: remove AA_APPLE_UNIVERSAL_BUILD
40518         * m4/multiarch.m4 (gl_MULTIARCH): Don't AC_DEFINE
40519         AA_APPLE_UNIVERSAL_BUILD.  See
40520         <http://lists.gnu.org/r/bug-gnulib/2011-01/msg00247.html>.
40521         * NEWS: Document this.
40523 2011-01-19  Eric Blake  <eblake@redhat.com>
40525         c-stack: assume stack overflow if SA_SIGINFO unsupported
40526         * lib/c-stack.c (SIGACTION_WORKS): Rename...
40527         (SIGINFO_WORKS): ...since gnulib module guarantees that (most) of
40528         sigaction will work.
40529         (die): Assume stack overflow if siginfo doesn't work, to let Haiku
40530         behavior match Linux.
40531         * tests/test-c-stack.c (main): Prefer NULL for pointers.
40533         stdbool-tests: accommodate Haiku
40534         * tests/test-stdbool.c: Haiku's gcc 2.95 lacks native _Bool.
40536         binary-io: fix O_TEXT on Haiku
40537         * modules/binary-io (Depends-on): Add fcntl-h.
40538         * lib/binary-io.h (O_TEXT): Rely on replacement <fcntl.h> rather
40539         than blindly undefining O_TEXT.
40540         Reported by Scott McCreary.
40542 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
40544         include_next: do not check for standard headers like stddef.h
40546         I found this problem when modifying Emacs to use gnulib.
40547         I noticed that it added HAVE_STDDEF_H to config.h, even though
40548         gnulib always assumes <stddef.h> exists as per README and this
40549         symbol is unnecessary.
40550         * m4/include_next.m4 (gl_NEXT_HEADERS): New macro, which does not
40551         use AC_CHECK_HEADERS_ONCE, but which otherwise contains what
40552         gl_CHECK_NEXT_HEADERS used to contain.  This makes 'configure' run
40553         faster for headers like stddef.h that are known to exist.
40554         (gl_CHECK_NEXT_HEADERS): Use it.
40555         * m4/float_h.m4 (gl_FLOAT_H): For float.h, use gl_NEXT_HEADERS
40556         rather than gl_CHECK_NEXT_HEADERS.
40557         * m4/stdarg.m4 (gl_STDARG_H): Likewise, for stdarg.h.
40558         * m4/stddef_h.m4 (gl_STDDEF_H): Likewise, for stddef.h.
40560 2011-01-18  Eric Blake  <eblake@redhat.com>
40562         ansi-c++-opt: skip C++ dependency style if C++ is unused
40563         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Avoid full-blown dependency
40564         tests when we know C++ compilation is not desired.
40565         Reported by Scott McCreary.
40567 2011-01-18  Bruno Haible  <bruno@clisp.org>
40569         *printf-posix: Avoid test failures. Make tests work on MacOS X, Cygwin.
40570         * tests/test-fprintf-posix3.c: Include "resource-ext.h".
40571         (main): Perform test also when getrlimit and setrlimit don't exist or
40572         when setrlimit of RLIMIT_DATA fails (like on Cygwin). Instead of
40573         limiting the address space size using setrlimit, compare the address
40574         space size before and after the test.
40575         * tests/test-dprintf-posix2.c: Likewise.
40576         * tests/test-fprintf-posix3.sh: Update skip messages.
40577         * tests/test-dprintf-posix2.sh: Likewise.
40578         * modules/fprintf-posix-tests (Depends-on): Add get-rusage-as.
40579         * modules/dprintf-posix-tests (Depends-on): Likewise.
40580         Reported by Bruce Korb <bkorb@gnu.org> and
40581         Gary V. Vaughan <gary@gnu.org>.
40583 2011-01-18  Bruno Haible  <bruno@clisp.org>
40585         get-rusage-as: Improvement for Cygwin.
40586         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On Windows, ignore
40587         areas that are merely reserved.
40589 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
40591         strftime: remove dependencies on multibyte modules
40593         strftime depended on mbrlen, mbsinit, and wchar, but these modules
40594         are needed only if ! MULTIBYTE_IS_FORMAT_SAFE, and that is true
40595         only if __osf__ is defined, and I suspect OSF doesn't need these
40596         other modules.  If my guess is wrong, we'll need to come up with a
40597         variant of strftime that doesn't need the multibyte modules.
40599         I discovered this problem when attempting modify Emacs to use the
40600         strftime module.  With the previous gnulib, this caused Emacs to
40601         need 31 new files, ranging from lib/config.charset to
40602         m4/wint_t.m4.  This was overkill and I expect would be offputting
40603         to the Emacs maintainers.  After this change, only 6 new files are
40604         needed, namely strftime.[ch], srtftime.m4, stdbool.in.h,
40605         stdbool.m4, and tm_gmtoff.m4.
40607         * lib/strftime.c (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 always.
40608         Suggested by Bruno Haible in
40609         <http://lists.gnu.org/r/bug-gnulib/2011-01/msg00238.html>.
40610         * m4/strftime.m4 (gl_FUNC_STRFTIME): Do not require AC_TYPE_MBSTATE_T,
40611         and do not check for wchar.h.
40612         * modules/strftime (Files): Remove m4/mbstate_t.m4.
40613         (Depends-on): Remove mbrlen, mbsinit, wchar.
40615 2011-01-18  Bruno Haible  <bruno@clisp.org>
40617         Tests for module 'get-rusage-as'.
40618         * modules/get-rusage-as-tests: New file.
40619         * tests/test-get-rusage-as.c: New file.
40621         New module 'get-rusage-as'.
40622         * modules/get-rusage-as: New file.
40623         * lib/resource-ext.h: New file.
40624         * lib/get-rusage-as.c: New file.
40626 2011-01-17  Eric Blake  <eblake@redhat.com>
40628         sigaction: relax license from LGPLv3+ to LGPLv2+
40629         * modules/sigaction (License): Relax to LGPLv2+.
40631 2011-01-14  Bruno Haible  <bruno@clisp.org>
40633         filemode: Make function declarations usable in C++ mode.
40634         * lib/filemode.h: Enclose function declarations in extern "C" block.
40635         Reported by John W. Eaton <jwe@gnu.org>.
40637 2011-01-12  Rob Vermaas  <rob.vermaas@gmail.com>
40639         save-cwd: no longer include "xgetcwd.h"
40640         * lib/save-cwd.c: Don't include "xgetcwd.h"; it's no longer used.
40641         This avoids a compilation failure in projects that use save-cwd
40642         without also using the xgetcwd module.
40644 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
40646         ftoastr: split into 3 modules ftoastr, dtoastr, ldtoastr
40647         This is so that a program like Emacs, which needs only dtoastr,
40648         does not have to bother with distributing and compiling ftoastr
40649         and ldtoastr.
40650         * MODULES.html.sh: Document these modules (ftoastr wasn't documented).
40651         * modules/dtoastr, modules/ldtoastr: New files.
40652         * modules/ftoastr: Now works just for 'float'.
40653         (Files): Remove lib/dtoastr.c, lib/ldtoastr.c.
40654         (Makefile.am): Remove ftoastr.h (not needed and no effect),
40655         dtoastr.c, ldtoastr.c.
40657 2011-01-11  Jim Meyering  <meyering@redhat.com>
40659         save-cwd: remove #if-!HAVE_FCHDIR'd code; use the fchdir module
40660         There is no need to work around the lack of the fchdir function,
40661         since gnulib can now provide a replacement when required.
40662         * lib/save-cwd.c: Remove #if !HAVE_FCHDIR...#endif code.
40663         * modules/save-cwd (Depends-on): Add fchdir.
40665 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
40667         openat, save-cwd: avoid xmalloc
40669         This removes a direct (but undocumented) dependency of openat on
40670         xalloc, along with an indirect dependency via save-cwd.  It also
40671         removes a dependency of save-cwd on xgetcwd, and thereby
40672         indirectly on xalloc.  This change causes the openat substitute
40673         to fall back on save_cwd when memory is tight, and for save_cwd to
40674         fail instead of dying when memory is tight, but that's good enough.
40675         Problem and initial idea for fix reported by Bastien Roucaries in
40676         <http://lists.gnu.org/r/bug-gnulib/2011-01/msg00170.html>.
40678         * lib/openat-proc.c: Include stdlib.h (for malloc), not
40679         xalloc.h (for xmalloc).
40680         (openat_proc_name): Use malloc, not xmalloc.
40681         * lib/save-cwd.c (save_cwd): Use getcwd, not xgetcwd.
40682         * modules/save-cwd (Files): Depend on getcwd, not xgetcwd.
40684         openat: Increase OPENAT_BUFFER_SIZE from 512 to at least 1024
40685         This avoids heap allocation for file names whose lengths are in
40686         the range 512..1023, with the upper bound increasing to at most
40687         4031 depending on the platform's PATH_MAX.  (We do not want
40688         pathmax.h here as it might supply a non-constant PATH_MAX.)
40689         * lib/openat-priv.h (SAFER_ALLOCA_MAX, SAFER_ALLOCA): New macros.
40690         Perhaps they should be moved to malloca.h?
40691         (OPENAT_BUFFER_SIZE): Use them.
40693 2011-01-10  Bruno Haible  <bruno@clisp.org>
40695         doc: Update users.txt.
40696         * users.txt: Add recutils.
40698 2011-01-09  Karl Berry  <karl@gnu.org>
40700         * doc/posix-functions/gai_strerror.texi: Insert missing @item.
40702         * doc/configmake.texi: New file.
40703         * doc/gnulib.texi: Include it.
40704         * modules/configmake: Move documentation from here.
40706 2011-01-09  Bruno Haible  <bruno@clisp.org>
40708         Update to Unicode 6.0.0.
40709         * lib/gen-uni-tables.c (symbolic_width): Fix bounds of planes.
40710         (get_lbp): Update for Unicode 6.0.0.
40711         * lib/uniwidth/width.c (nonspacing_table_data): Add U+065F,
40712         U+0859..U+085B, U+093A, U+0956..U+0957, U+0F8D..U+0F8F, U+135D..U+135E,
40713         U+1BE6, U+1BE8..U+1BE9, U+1BED, U+1BEF..U+1BF1, U+1DFC, U+2D7F,
40714         U+11001, U+11038..U+11046. Remove U+06DE.
40715         (uc_width): Fix bounds of planes.
40716         * tests/uniwidth/test-uc_width2.sh: Same updates as in
40717         lib/uniwidth/width.c.
40718         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 6.0.0, with
40719         trailing whitespace removed.
40720         * tests/uninorm/NormalizationTest.txt: Update from Unicode 6.0.0,
40721         without comments, but with the original copyright notice.
40722         * lib/unicase/cased.h: Regenerated for Unicode 6.0.0.
40723         * lib/unicase/ignorable.h: Likewise.
40724         * lib/unicase/tocasefold.h: Likewise.
40725         * lib/unicase/tolower.h: Likewise.
40726         * lib/unicase/totitle.h: Likewise.
40727         * lib/unicase/toupper.h: Likewise.
40728         * lib/unictype/bidi_of.h: Likewise.
40729         * lib/unictype/blocks.h: Likewise.
40730         * lib/unictype/categ_C.h: Likewise.
40731         * lib/unictype/categ_Cn.h: Likewise.
40732         * lib/unictype/categ_L.h: Likewise.
40733         * lib/unictype/categ_Ll.h: Likewise.
40734         * lib/unictype/categ_Lm.h: Likewise.
40735         * lib/unictype/categ_Lo.h: Likewise.
40736         * lib/unictype/categ_Lu.h: Likewise.
40737         * lib/unictype/categ_M.h: Likewise.
40738         * lib/unictype/categ_Mc.h: Likewise.
40739         * lib/unictype/categ_Me.h: Likewise.
40740         * lib/unictype/categ_Mn.h: Likewise.
40741         * lib/unictype/categ_N.h: Likewise.
40742         * lib/unictype/categ_Nd.h: Likewise.
40743         * lib/unictype/categ_No.h: Likewise.
40744         * lib/unictype/categ_P.h: Likewise.
40745         * lib/unictype/categ_Po.h: Likewise.
40746         * lib/unictype/categ_S.h: Likewise.
40747         * lib/unictype/categ_Sc.h: Likewise.
40748         * lib/unictype/categ_Sk.h: Likewise.
40749         * lib/unictype/categ_Sm.h: Likewise.
40750         * lib/unictype/categ_So.h: Likewise.
40751         * lib/unictype/categ_of.h: Likewise.
40752         * lib/unictype/combining.h: Likewise.
40753         * lib/unictype/ctype_alnum.h: Likewise.
40754         * lib/unictype/ctype_alpha.h: Likewise.
40755         * lib/unictype/ctype_graph.h: Likewise.
40756         * lib/unictype/ctype_lower.h: Likewise.
40757         * lib/unictype/ctype_print.h: Likewise.
40758         * lib/unictype/ctype_punct.h: Likewise.
40759         * lib/unictype/ctype_upper.h: Likewise.
40760         * lib/unictype/decdigit.h: Likewise.
40761         * lib/unictype/digit.h: Likewise.
40762         * lib/unictype/numeric.h: Likewise.
40763         * lib/unictype/pr_alphabetic.h: Likewise.
40764         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
40765         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
40766         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
40767         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
40768         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
40769         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
40770         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
40771         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
40772         * lib/unictype/pr_case_ignorable.h: Likewise.
40773         * lib/unictype/pr_cased.h: Likewise.
40774         * lib/unictype/pr_changes_when_casefolded.h: Likewise.
40775         * lib/unictype/pr_changes_when_casemapped.h: Likewise.
40776         * lib/unictype/pr_changes_when_lowercased.h: Likewise.
40777         * lib/unictype/pr_changes_when_titlecased.h: Likewise.
40778         * lib/unictype/pr_changes_when_uppercased.h: Likewise.
40779         * lib/unictype/pr_combining.h: Likewise.
40780         * lib/unictype/pr_composite.h: Likewise.
40781         * lib/unictype/pr_currency_symbol.h: Likewise.
40782         * lib/unictype/pr_decimal_digit.h: Likewise.
40783         * lib/unictype/pr_deprecated.h: Likewise.
40784         * lib/unictype/pr_format_control.h: Likewise.
40785         * lib/unictype/pr_grapheme_base.h: Likewise.
40786         * lib/unictype/pr_grapheme_extend.h: Likewise.
40787         * lib/unictype/pr_grapheme_link.h: Likewise.
40788         * lib/unictype/pr_id_continue.h: Likewise.
40789         * lib/unictype/pr_id_start.h: Likewise.
40790         * lib/unictype/pr_ideographic.h: Likewise.
40791         * lib/unictype/pr_lowercase.h: Likewise.
40792         * lib/unictype/pr_math.h: Likewise.
40793         * lib/unictype/pr_numeric.h: Likewise.
40794         * lib/unictype/pr_other_alphabetic.h: Likewise.
40795         * lib/unictype/pr_other_id_continue.h: Likewise.
40796         * lib/unictype/pr_other_math.h: Likewise.
40797         * lib/unictype/pr_punctuation.h: Likewise.
40798         * lib/unictype/pr_sentence_terminal.h: Likewise.
40799         * lib/unictype/pr_terminal_punctuation.h: Likewise.
40800         * lib/unictype/pr_unassigned_code_value.h: Likewise.
40801         * lib/unictype/pr_unified_ideograph.h: Likewise.
40802         * lib/unictype/pr_uppercase.h: Likewise.
40803         * lib/unictype/pr_xid_continue.h: Likewise.
40804         * lib/unictype/pr_xid_start.h: Likewise.
40805         * lib/unictype/scripts.h: Likewise.
40806         * lib/unictype/scripts_byname.gperf: Likewise.
40807         * lib/unictype/sy_java_ident.h: Likewise.
40808         * lib/unigbrk/gbrkprop.h: Likewise.
40809         * lib/unilbrk/lbrkprop1.h: Likewise.
40810         * lib/unilbrk/lbrkprop2.h: Likewise.
40811         * lib/uninorm/decomposition-table2.h: Likewise.
40812         * lib/uniwbrk/wbrkprop.h: Likewise.
40813         * tests/unicase/test-cased.c: Likewise.
40814         * tests/unicase/test-ignorable.c: Likewise.
40815         * tests/unicase/test-uc_tolower.c: Likewise.
40816         * tests/unicase/test-uc_totitle.c: Likewise.
40817         * tests/unicase/test-uc_toupper.c: Likewise.
40818         * tests/unictype/test-categ_C.c: Likewise.
40819         * tests/unictype/test-categ_Cn.c: Likewise.
40820         * tests/unictype/test-categ_L.c: Likewise.
40821         * tests/unictype/test-categ_Ll.c: Likewise.
40822         * tests/unictype/test-categ_Lm.c: Likewise.
40823         * tests/unictype/test-categ_Lo.c: Likewise.
40824         * tests/unictype/test-categ_Lu.c: Likewise.
40825         * tests/unictype/test-categ_M.c: Likewise.
40826         * tests/unictype/test-categ_Mc.c: Likewise.
40827         * tests/unictype/test-categ_Me.c: Likewise.
40828         * tests/unictype/test-categ_Mn.c: Likewise.
40829         * tests/unictype/test-categ_N.c: Likewise.
40830         * tests/unictype/test-categ_Nd.c: Likewise.
40831         * tests/unictype/test-categ_No.c: Likewise.
40832         * tests/unictype/test-categ_P.c: Likewise.
40833         * tests/unictype/test-categ_Po.c: Likewise.
40834         * tests/unictype/test-categ_S.c: Likewise.
40835         * tests/unictype/test-categ_Sc.c: Likewise.
40836         * tests/unictype/test-categ_Sk.c: Likewise.
40837         * tests/unictype/test-categ_Sm.c: Likewise.
40838         * tests/unictype/test-categ_So.c: Likewise.
40839         * tests/unictype/test-ctype_alnum.c: Likewise.
40840         * tests/unictype/test-ctype_alpha.c: Likewise.
40841         * tests/unictype/test-ctype_graph.c: Likewise.
40842         * tests/unictype/test-ctype_lower.c: Likewise.
40843         * tests/unictype/test-ctype_print.c: Likewise.
40844         * tests/unictype/test-ctype_punct.c: Likewise.
40845         * tests/unictype/test-ctype_upper.c: Likewise.
40846         * tests/unictype/test-decdigit.h: Likewise.
40847         * tests/unictype/test-digit.h: Likewise.
40848         * tests/unictype/test-numeric.h: Likewise.
40849         * tests/unictype/test-pr_alphabetic.c: Likewise.
40850         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
40851         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
40852         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
40853         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
40854         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
40855         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
40856         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
40857         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
40858         * tests/unictype/test-pr_case_ignorable.c: Likewise.
40859         * tests/unictype/test-pr_cased.c: Likewise.
40860         * tests/unictype/test-pr_changes_when_casefolded.c: Likewise.
40861         * tests/unictype/test-pr_changes_when_casemapped.c: Likewise.
40862         * tests/unictype/test-pr_changes_when_lowercased.c: Likewise.
40863         * tests/unictype/test-pr_changes_when_titlecased.c: Likewise.
40864         * tests/unictype/test-pr_changes_when_uppercased.c: Likewise.
40865         * tests/unictype/test-pr_combining.c: Likewise.
40866         * tests/unictype/test-pr_composite.c: Likewise.
40867         * tests/unictype/test-pr_currency_symbol.c: Likewise.
40868         * tests/unictype/test-pr_decimal_digit.c: Likewise.
40869         * tests/unictype/test-pr_deprecated.c: Likewise.
40870         * tests/unictype/test-pr_format_control.c: Likewise.
40871         * tests/unictype/test-pr_grapheme_base.c: Likewise.
40872         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
40873         * tests/unictype/test-pr_grapheme_link.c: Likewise.
40874         * tests/unictype/test-pr_id_continue.c: Likewise.
40875         * tests/unictype/test-pr_id_start.c: Likewise.
40876         * tests/unictype/test-pr_ideographic.c: Likewise.
40877         * tests/unictype/test-pr_lowercase.c: Likewise.
40878         * tests/unictype/test-pr_math.c: Likewise.
40879         * tests/unictype/test-pr_numeric.c: Likewise.
40880         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
40881         * tests/unictype/test-pr_other_id_continue.c: Likewise.
40882         * tests/unictype/test-pr_other_math.c: Likewise.
40883         * tests/unictype/test-pr_punctuation.c: Likewise.
40884         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
40885         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
40886         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
40887         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
40888         * tests/unictype/test-pr_uppercase.c: Likewise.
40889         * tests/unictype/test-pr_xid_continue.c: Likewise.
40890         * tests/unictype/test-pr_xid_start.c: Likewise.
40891         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
40892         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
40893         changes.
40894         * lib/unictype/categ_Cc.h: Likewise.
40895         * lib/unictype/categ_Cf.h: Likewise.
40896         * lib/unictype/categ_Co.h: Likewise.
40897         * lib/unictype/categ_Cs.h: Likewise.
40898         * lib/unictype/categ_Lt.h: Likewise.
40899         * lib/unictype/categ_Nl.h: Likewise.
40900         * lib/unictype/categ_Pc.h: Likewise.
40901         * lib/unictype/categ_Pd.h: Likewise.
40902         * lib/unictype/categ_Pe.h: Likewise.
40903         * lib/unictype/categ_Pf.h: Likewise.
40904         * lib/unictype/categ_Pi.h: Likewise.
40905         * lib/unictype/categ_Ps.h: Likewise.
40906         * lib/unictype/categ_Z.h: Likewise.
40907         * lib/unictype/categ_Zl.h: Likewise.
40908         * lib/unictype/categ_Zp.h: Likewise.
40909         * lib/unictype/categ_Zs.h: Likewise.
40910         * lib/unictype/ctype_blank.h: Likewise.
40911         * lib/unictype/ctype_cntrl.h: Likewise.
40912         * lib/unictype/ctype_digit.h: Likewise.
40913         * lib/unictype/ctype_space.h: Likewise.
40914         * lib/unictype/ctype_xdigit.h: Likewise.
40915         * lib/unictype/mirror.h: Likewise.
40916         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
40917         * lib/unictype/pr_bidi_block_separator.h: Likewise.
40918         * lib/unictype/pr_bidi_common_separator.h: Likewise.
40919         * lib/unictype/pr_bidi_control.h: Likewise.
40920         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
40921         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
40922         * lib/unictype/pr_bidi_european_digit.h: Likewise.
40923         * lib/unictype/pr_bidi_pdf.h: Likewise.
40924         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
40925         * lib/unictype/pr_bidi_whitespace.h: Likewise.
40926         * lib/unictype/pr_dash.h: Likewise.
40927         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
40928         * lib/unictype/pr_diacritic.h: Likewise.
40929         * lib/unictype/pr_extender.h: Likewise.
40930         * lib/unictype/pr_hex_digit.h: Likewise.
40931         * lib/unictype/pr_hyphen.h: Likewise.
40932         * lib/unictype/pr_ids_binary_operator.h: Likewise.
40933         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
40934         * lib/unictype/pr_ignorable_control.h: Likewise.
40935         * lib/unictype/pr_iso_control.h: Likewise.
40936         * lib/unictype/pr_join_control.h: Likewise.
40937         * lib/unictype/pr_left_of_pair.h: Likewise.
40938         * lib/unictype/pr_line_separator.h: Likewise.
40939         * lib/unictype/pr_logical_order_exception.h: Likewise.
40940         * lib/unictype/pr_non_break.h: Likewise.
40941         * lib/unictype/pr_not_a_character.h: Likewise.
40942         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
40943         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
40944         * lib/unictype/pr_other_id_start.h: Likewise.
40945         * lib/unictype/pr_other_lowercase.h: Likewise.
40946         * lib/unictype/pr_other_uppercase.h: Likewise.
40947         * lib/unictype/pr_paired_punctuation.h: Likewise.
40948         * lib/unictype/pr_paragraph_separator.h: Likewise.
40949         * lib/unictype/pr_pattern_syntax.h: Likewise.
40950         * lib/unictype/pr_pattern_white_space.h: Likewise.
40951         * lib/unictype/pr_private_use.h: Likewise.
40952         * lib/unictype/pr_quotation_mark.h: Likewise.
40953         * lib/unictype/pr_radical.h: Likewise.
40954         * lib/unictype/pr_soft_dotted.h: Likewise.
40955         * lib/unictype/pr_space.h: Likewise.
40956         * lib/unictype/pr_titlecase.h: Likewise.
40957         * lib/unictype/pr_variation_selector.h: Likewise.
40958         * lib/unictype/pr_white_space.h: Likewise.
40959         * lib/unictype/pr_zero_width.h: Likewise.
40960         * lib/unictype/sy_c_ident.h: Likewise.
40961         * lib/unictype/sy_c_whitespace.h: Likewise.
40962         * lib/unictype/sy_java_whitespace.h: Likewise.
40963         * lib/uninorm/composition-table.gperf: Likewise.
40964         * lib/uninorm/decomposition-table1.h: Likewise.
40965         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Add test for rule
40966         LB8.
40967         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
40968         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
40969         * modules/unictype/*: Bump version number of expected libunistring
40970         version.
40972 2011-01-09  Bruno Haible  <bruno@clisp.org>
40974         Update to Unicode 5.2.0.
40975         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 5.2.0, with
40976         trailing whitespace removed.
40978 2011-01-09  Bruno Haible  <bruno@clisp.org>
40980         New Unicode character properties, from Unicode 5.2.0.
40981         * lib/unictype.in.h (UC_PROPERTY_CASED, UC_PROPERTY_CASE_IGNORABLE,
40982         UC_PROPERTY_CHANGES_WHEN_LOWERCASED,
40983         UC_PROPERTY_CHANGES_WHEN_UPPERCASED,
40984         UC_PROPERTY_CHANGES_WHEN_TITLECASED,
40985         UC_PROPERTY_CHANGES_WHEN_CASEFOLDED,
40986         UC_PROPERTY_CHANGES_WHEN_CASEMAPPED,
40987         uc_is_property_cased, uc_is_property_case_ignorable,
40988         uc_is_property_changes_when_lowercased,
40989         uc_is_property_changes_when_uppercased,
40990         uc_is_property_changes_when_titlecased,
40991         uc_is_property_changes_when_casefolded,
40992         uc_is_property_changes_when_casemapped): New declarations.
40993         * lib/unictype/pr_byname.gperf: Add the new properties.
40994         * modules/unictype/property-byname (Depends-on): Depend on the new
40995         properties modules.
40996         * modules/unictype/property-all (Depends-on): Likewise.
40997         * MODULES.html.sh (Unicode string functions): Add
40998         unictype/property-case-ignorable, unictype/property-cased,
40999         unictype/property-changes-when-casefolded,
41000         unictype/property-changes-when-casemapped,
41001         unictype/property-changes-when-lowercased,
41002         unictype/property-changes-when-titlecased,
41003         unictype/property-changes-when-uppercased.
41005         New module 'unictype/property-changes-when-casemapped'.
41006         * modules/unictype/property-changes-when-casemapped: New file.
41007         * lib/unictype/pr_changes_when_casemapped.c: New file.
41008         * lib/unictype/pr_changes_when_casemapped.h: New file, automatically
41009         generated by gen-uni-tables.
41010         * modules/unictype/property-changes-when-casemapped-tests: New file.
41011         * tests/unictype/test-pr_changes_when_casemapped.c: New file,
41012         automatically generated by gen-uni-tables.
41014         New module 'unictype/property-changes-when-casefolded'.
41015         * modules/unictype/property-changes-when-casefolded: New file.
41016         * lib/unictype/pr_changes_when_casefolded.c: New file.
41017         * lib/unictype/pr_changes_when_casefolded.h: New file, automatically
41018         generated by gen-uni-tables.
41019         * modules/unictype/property-changes-when-casefolded-tests: New file.
41020         * tests/unictype/test-pr_changes_when_casefolded.c: New file,
41021         automatically generated by gen-uni-tables.
41023         New module 'unictype/property-changes-when-titlecased'.
41024         * modules/unictype/property-changes-when-titlecased: New file.
41025         * lib/unictype/pr_changes_when_titlecased.c: New file.
41026         * lib/unictype/pr_changes_when_titlecased.h: New file, automatically
41027         generated by gen-uni-tables.
41028         * modules/unictype/property-changes-when-titlecased-tests: New file.
41029         * tests/unictype/test-pr_changes_when_titlecased.c: New file,
41030         automatically generated by gen-uni-tables.
41032         New module 'unictype/property-changes-when-uppercased'.
41033         * modules/unictype/property-changes-when-uppercased: New file.
41034         * lib/unictype/pr_changes_when_uppercased.c: New file.
41035         * lib/unictype/pr_changes_when_uppercased.h: New file, automatically
41036         generated by gen-uni-tables.
41037         * modules/unictype/property-changes-when-uppercased-tests: New file.
41038         * tests/unictype/test-pr_changes_when_uppercased.c: New file,
41039         automatically generated by gen-uni-tables.
41041         New module 'unictype/property-changes-when-lowercased'.
41042         * modules/unictype/property-changes-when-lowercased: New file.
41043         * lib/unictype/pr_changes_when_lowercased.c: New file.
41044         * lib/unictype/pr_changes_when_lowercased.h: New file, automatically
41045         generated by gen-uni-tables.
41046         * modules/unictype/property-changes-when-lowercased-tests: New file.
41047         * tests/unictype/test-pr_changes_when_lowercased.c: New file,
41048         automatically generated by gen-uni-tables.
41050         New module 'unictype/property-case-ignorable'.
41051         * modules/unictype/property-case-ignorable: New file.
41052         * lib/unictype/pr_case_ignorable.c: New file.
41053         * lib/unictype/pr_case_ignorable.h: New file, automatically generated
41054         by gen-uni-tables.
41055         * modules/unictype/property-case-ignorable-tests: New file.
41056         * tests/unictype/test-pr_case_ignorable.c: New file, automatically
41057         generated by gen-uni-tables.
41059         New module 'unictype/property-cased'.
41060         * modules/unictype/property-cased: New file.
41061         * lib/unictype/pr_cased.c: New file.
41062         * lib/unictype/pr_cased.h: New file, automatically generated by
41063         gen-uni-tables.
41064         * modules/unictype/property-cased-tests: New file.
41065         * tests/unictype/test-pr_cased.c: New file, automatically generated by
41066         gen-uni-tables.
41068 2011-01-09  Bruno Haible  <bruno@clisp.org>
41070         Update to Unicode 5.2.0.
41071         * lib/gen-uni-tables.c (output_predicate, output_category,
41072         output_combclass, output_bidi_category, output_decimal_digit_test,
41073         output_decimal_digit, output_digit_test, output_digit,
41074         output_numeric_test, output_numeric, output_mirror, output_scripts,
41075         output_scripts_byname, output_blocks, output_ident_category): Fix
41076         comment header.
41077         (is_WBP_MIDNUMLET, is_WBP_MIDLETTER): New functions, extracted from
41078         get_wbp.
41079         (PROP_CASED, PROP_CASE_IGNORABLE, PROP_CHANGES_WHEN_*): New enumeration
41080         items.
41081         (fill_properties): Also fill the peoperties Cased, Case_Ignorable,
41082         Changes_When_Lowercased, Changes_When_Uppercased,
41083         Changes_When_Titlecased, Changes_When_Casefolded,
41084         Changes_When_Casemapped.
41085         (is_property_alphabetic, is_property_default_ignorable_code_point):
41086         Update for Unicode 5.2.0.
41087         (is_property_cased, is_property_case_ignorable,
41088         is_property_changes_when_lowercased,
41089         is_property_changes_when_uppercased,
41090         is_property_changes_when_titlecased,
41091         is_property_changes_when_casefolded,
41092         is_property_changes_when_casemapped): New functions.
41093         (output_properties): Output also the properties cased, case_ignorable,
41094         changes_when_lowercased, changes_when_uppercased,
41095         changes_when_titlecased, changes_when_casefolded,
41096         changes_when_casemapped.
41097         (symbolic_width): Update for Unicode 5.2.0, incorporating changes from
41098         Unicode TR#11 revision 17 -> 19.
41099         (LBP_CP): New enumeration value.
41100         (LBP_*): Adjust values accordingly.
41101         (get_lbp): Update for Unicode 5.2.0, incorporating changes from Unicode
41102         TR#14 revision 22 -> 24.
41103         (debug_output_lbp): Allow for LBP_* bits >= 32. Support LBP_CP.
41104         (fill_org_lbp, debug_output_org_lbp, output_lbp): Support LBP_CP.
41105         (get_wbp): Update for Unicode 5.2.0, incorporating changes from Unicode
41106         TR#29 revision 13 -> 15. Use functions is_WBP_MIDNUMLET,
41107         is_WBP_MIDLETTER.
41108         (output_composition_tables): Allow for 24 bits instead of 16 bits in
41109         the code1 and code2 of each composition rule.
41110         * lib/unicase/cased.h: Regenerated for Unicode 5.2.0.
41111         * lib/unicase/ignorable.h: Likewise.
41112         * lib/unicase/tocasefold.h: Likewise.
41113         * lib/unicase/tolower.h: Likewise.
41114         * lib/unicase/totitle.h: Likewise.
41115         * lib/unicase/toupper.h: Likewise.
41116         * lib/unictype/bidi_of.h: Likewise.
41117         * lib/unictype/blocks.h: Likewise.
41118         * lib/unictype/categ_C.h: Likewise.
41119         * lib/unictype/categ_Cf.h: Likewise.
41120         * lib/unictype/categ_Cn.h: Likewise.
41121         * lib/unictype/categ_L.h: Likewise.
41122         * lib/unictype/categ_Ll.h: Likewise.
41123         * lib/unictype/categ_Lm.h: Likewise.
41124         * lib/unictype/categ_Lo.h: Likewise.
41125         * lib/unictype/categ_Lu.h: Likewise.
41126         * lib/unictype/categ_M.h: Likewise.
41127         * lib/unictype/categ_Mc.h: Likewise.
41128         * lib/unictype/categ_Mn.h: Likewise.
41129         * lib/unictype/categ_N.h: Likewise.
41130         * lib/unictype/categ_Nd.h: Likewise.
41131         * lib/unictype/categ_Nl.h: Likewise.
41132         * lib/unictype/categ_No.h: Likewise.
41133         * lib/unictype/categ_P.h: Likewise.
41134         * lib/unictype/categ_Pd.h: Likewise.
41135         * lib/unictype/categ_Po.h: Likewise.
41136         * lib/unictype/categ_S.h: Likewise.
41137         * lib/unictype/categ_Sc.h: Likewise.
41138         * lib/unictype/categ_So.h: Likewise.
41139         * lib/unictype/categ_of.h: Likewise.
41140         * lib/unictype/combining.h: Likewise.
41141         * lib/unictype/ctype_alnum.h: Likewise.
41142         * lib/unictype/ctype_alpha.h: Likewise.
41143         * lib/unictype/ctype_graph.h: Likewise.
41144         * lib/unictype/ctype_lower.h: Likewise.
41145         * lib/unictype/ctype_print.h: Likewise.
41146         * lib/unictype/ctype_punct.h: Likewise.
41147         * lib/unictype/ctype_upper.h: Likewise.
41148         * lib/unictype/decdigit.h: Likewise.
41149         * lib/unictype/digit.h: Likewise.
41150         * lib/unictype/numeric.h: Likewise.
41151         * lib/unictype/pr_alphabetic.h: Likewise.
41152         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
41153         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
41154         * lib/unictype/pr_bidi_european_digit.h: Likewise.
41155         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
41156         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
41157         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
41158         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
41159         * lib/unictype/pr_combining.h: Likewise.
41160         * lib/unictype/pr_composite.h: Likewise.
41161         * lib/unictype/pr_currency_symbol.h: Likewise.
41162         * lib/unictype/pr_dash.h: Likewise.
41163         * lib/unictype/pr_decimal_digit.h: Likewise.
41164         * lib/unictype/pr_deprecated.h: Likewise.
41165         * lib/unictype/pr_diacritic.h: Likewise.
41166         * lib/unictype/pr_extender.h: Likewise.
41167         * lib/unictype/pr_grapheme_base.h: Likewise.
41168         * lib/unictype/pr_grapheme_extend.h: Likewise.
41169         * lib/unictype/pr_grapheme_link.h: Likewise.
41170         * lib/unictype/pr_id_continue.h: Likewise.
41171         * lib/unictype/pr_id_start.h: Likewise.
41172         * lib/unictype/pr_ideographic.h: Likewise.
41173         * lib/unictype/pr_ignorable_control.h: Likewise.
41174         * lib/unictype/pr_logical_order_exception.h: Likewise.
41175         * lib/unictype/pr_lowercase.h: Likewise.
41176         * lib/unictype/pr_numeric.h: Likewise.
41177         * lib/unictype/pr_other_alphabetic.h: Likewise.
41178         * lib/unictype/pr_punctuation.h: Likewise.
41179         * lib/unictype/pr_sentence_terminal.h: Likewise.
41180         * lib/unictype/pr_terminal_punctuation.h: Likewise.
41181         * lib/unictype/pr_unassigned_code_value.h: Likewise.
41182         * lib/unictype/pr_unified_ideograph.h: Likewise.
41183         * lib/unictype/pr_uppercase.h: Likewise.
41184         * lib/unictype/pr_xid_continue.h: Likewise.
41185         * lib/unictype/pr_xid_start.h: Likewise.
41186         * lib/unictype/pr_zero_width.h: Likewise.
41187         * lib/unictype/scripts.h: Likewise.
41188         * lib/unictype/scripts_byname.gperf: Likewise.
41189         * lib/unictype/sy_java_ident.h: Likewise.
41190         * lib/unigbrk/gbrkprop.h: Likewise.
41191         * lib/unilbrk/lbrkprop1.h: Likewise.
41192         * lib/unilbrk/lbrkprop2.h: Likewise.
41193         * lib/unilbrk/lbrktables.h: Likewise.
41194         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column for
41195         LBP_CP. Implement rule LB30.
41196         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0816..U+0819,
41197         U+081B..U+0823, U+0825..U+0827, U+0829..U+082D, U+0900, U+0955, U+109D,
41198         U+1A56, U+1A58..U+1A5E, U+1A60, U+1A62, U+1A65..U+1A6C, U+1A73..U+1A7C,
41199         U+1A7F, U+1CD0..U+1CD2, U+1CD4..U+1CE0, U+1CE2..U+1CE8, U+1CED, U+1DFD,
41200         U+2CEF..U+2CF1, U+A6F0..U+A6F1, U+A8E0..U+A8F1, U+A980..U+A982, U+A9B3,
41201         U+A9B6..U+A9B9, U+A9BC, U+AAB0, U+AAB2..U+AAB4, U+AAB7..U+AAB8,
41202         U+AABE..U+AABF, U+AAC1, U+ABE5, U+ABE8, U+ABED, U+11080..U+11081,
41203         U+110B3..U+110B6, U+110B9..U+110BA, U+110BD.
41204         (uc_width): Return 2 also for unassigned code points of planes 2 and 3.
41205         * lib/uninorm/composition-table.gperf: Regenerated for Unicode 5.2.0.
41206         * lib/uninorm/composition.c (struct composition_rule): Allow for 24
41207         bits instead of 16 bits in the code1 and code2 of each composition
41208         rule.
41209         (uc_composition): Update for Unicode 5.2.0.
41210         * lib/uninorm/decomposition-table1.h: Regenerated for Unicode 5.2.0.
41211         * lib/uninorm/decomposition-table2.h: Likewise.
41212         * lib/uniwbrk/wbrkprop.h: Likewise.
41213         * tests/unicase/test-cased.c: Likewise.
41214         * tests/unicase/test-ignorable.c: Likewise.
41215         * tests/unicase/test-uc_tolower.c: Likewise.
41216         * tests/unicase/test-uc_totitle.c: Likewise.
41217         * tests/unicase/test-uc_toupper.c: Likewise.
41218         * tests/unictype/test-categ_C.c: Likewise.
41219         * tests/unictype/test-categ_Cf.c: Likewise.
41220         * tests/unictype/test-categ_Cn.c: Likewise.
41221         * tests/unictype/test-categ_L.c: Likewise.
41222         * tests/unictype/test-categ_Ll.c: Likewise.
41223         * tests/unictype/test-categ_Lm.c: Likewise.
41224         * tests/unictype/test-categ_Lo.c: Likewise.
41225         * tests/unictype/test-categ_Lu.c: Likewise.
41226         * tests/unictype/test-categ_M.c: Likewise.
41227         * tests/unictype/test-categ_Mc.c: Likewise.
41228         * tests/unictype/test-categ_Mn.c: Likewise.
41229         * tests/unictype/test-categ_N.c: Likewise.
41230         * tests/unictype/test-categ_Nd.c: Likewise.
41231         * tests/unictype/test-categ_Nl.c: Likewise.
41232         * tests/unictype/test-categ_No.c: Likewise.
41233         * tests/unictype/test-categ_P.c: Likewise.
41234         * tests/unictype/test-categ_Pd.c: Likewise.
41235         * tests/unictype/test-categ_Po.c: Likewise.
41236         * tests/unictype/test-categ_S.c: Likewise.
41237         * tests/unictype/test-categ_Sc.c: Likewise.
41238         * tests/unictype/test-categ_So.c: Likewise.
41239         * tests/unictype/test-ctype_alnum.c: Likewise.
41240         * tests/unictype/test-ctype_alpha.c: Likewise.
41241         * tests/unictype/test-ctype_graph.c: Likewise.
41242         * tests/unictype/test-ctype_lower.c: Likewise.
41243         * tests/unictype/test-ctype_print.c: Likewise.
41244         * tests/unictype/test-ctype_punct.c: Likewise.
41245         * tests/unictype/test-ctype_upper.c: Likewise.
41246         * tests/unictype/test-decdigit.h: Likewise.
41247         * tests/unictype/test-digit.h: Likewise.
41248         * tests/unictype/test-numeric.h: Likewise.
41249         * tests/unictype/test-pr_alphabetic.c: Likewise.
41250         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
41251         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
41252         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
41253         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
41254         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
41255         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
41256         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
41257         * tests/unictype/test-pr_combining.c: Likewise.
41258         * tests/unictype/test-pr_composite.c: Likewise.
41259         * tests/unictype/test-pr_currency_symbol.c: Likewise.
41260         * tests/unictype/test-pr_dash.c: Likewise.
41261         * tests/unictype/test-pr_decimal_digit.c: Likewise.
41262         * tests/unictype/test-pr_deprecated.c: Likewise.
41263         * tests/unictype/test-pr_diacritic.c: Likewise.
41264         * tests/unictype/test-pr_extender.c: Likewise.
41265         * tests/unictype/test-pr_grapheme_base.c: Likewise.
41266         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
41267         * tests/unictype/test-pr_grapheme_link.c: Likewise.
41268         * tests/unictype/test-pr_id_continue.c: Likewise.
41269         * tests/unictype/test-pr_id_start.c: Likewise.
41270         * tests/unictype/test-pr_ideographic.c: Likewise.
41271         * tests/unictype/test-pr_ignorable_control.c: Likewise.
41272         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
41273         * tests/unictype/test-pr_lowercase.c: Likewise.
41274         * tests/unictype/test-pr_numeric.c: Likewise.
41275         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
41276         * tests/unictype/test-pr_punctuation.c: Likewise.
41277         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
41278         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
41279         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
41280         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
41281         * tests/unictype/test-pr_uppercase.c: Likewise.
41282         * tests/unictype/test-pr_xid_continue.c: Likewise.
41283         * tests/unictype/test-pr_xid_start.c: Likewise.
41284         * tests/unictype/test-pr_zero_width.c: Likewise.
41285         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
41286         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update for
41287         changed behaviour: line breaking is now disallowed between a letter
41288         or '=' and '('.
41289         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
41290         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
41291         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
41292         * tests/unilbrk/test-ulc-width-linebreaks.c (main): Likewise.
41293         * tests/uniwidth/test-uc_width2.sh: Same updates as in
41294         lib/uniwidth/width.c.
41295         * tests/uninorm/NormalizationTest.txt: Update from Unicode 5.2.0,
41296         without comments, but with the original copyright notice.
41297         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
41298         changes.
41299         * lib/unictype/categ_Cc.h: Likewise.
41300         * lib/unictype/categ_Co.h: Likewise.
41301         * lib/unictype/categ_Cs.h: Likewise.
41302         * lib/unictype/categ_Lt.h: Likewise.
41303         * lib/unictype/categ_Me.h: Likewise.
41304         * lib/unictype/categ_Pc.h: Likewise.
41305         * lib/unictype/categ_Pe.h: Likewise.
41306         * lib/unictype/categ_Pf.h: Likewise.
41307         * lib/unictype/categ_Pi.h: Likewise.
41308         * lib/unictype/categ_Ps.h: Likewise.
41309         * lib/unictype/categ_Sk.h: Likewise.
41310         * lib/unictype/categ_Sm.h: Likewise.
41311         * lib/unictype/categ_Z.h: Likewise.
41312         * lib/unictype/categ_Zl.h: Likewise.
41313         * lib/unictype/categ_Zp.h: Likewise.
41314         * lib/unictype/categ_Zs.h: Likewise.
41315         * lib/unictype/ctype_blank.h: Likewise.
41316         * lib/unictype/ctype_cntrl.h: Likewise.
41317         * lib/unictype/ctype_digit.h: Likewise.
41318         * lib/unictype/ctype_space.h: Likewise.
41319         * lib/unictype/ctype_xdigit.h: Likewise.
41320         * lib/unictype/mirror.h: Likewise.
41321         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
41322         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
41323         * lib/unictype/pr_bidi_block_separator.h: Likewise.
41324         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
41325         * lib/unictype/pr_bidi_common_separator.h: Likewise.
41326         * lib/unictype/pr_bidi_control.h: Likewise.
41327         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
41328         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
41329         * lib/unictype/pr_bidi_pdf.h: Likewise.
41330         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
41331         * lib/unictype/pr_bidi_whitespace.h: Likewise.
41332         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
41333         * lib/unictype/pr_format_control.h: Likewise.
41334         * lib/unictype/pr_hex_digit.h: Likewise.
41335         * lib/unictype/pr_hyphen.h: Likewise.
41336         * lib/unictype/pr_ids_binary_operator.h: Likewise.
41337         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
41338         * lib/unictype/pr_iso_control.h: Likewise.
41339         * lib/unictype/pr_join_control.h: Likewise.
41340         * lib/unictype/pr_left_of_pair.h: Likewise.
41341         * lib/unictype/pr_line_separator.h: Likewise.
41342         * lib/unictype/pr_math.h: Likewise.
41343         * lib/unictype/pr_non_break.h: Likewise.
41344         * lib/unictype/pr_not_a_character.h: Likewise.
41345         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
41346         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
41347         * lib/unictype/pr_other_id_continue.h: Likewise.
41348         * lib/unictype/pr_other_id_start.h: Likewise.
41349         * lib/unictype/pr_other_lowercase.h: Likewise.
41350         * lib/unictype/pr_other_math.h: Likewise.
41351         * lib/unictype/pr_other_uppercase.h: Likewise.
41352         * lib/unictype/pr_paired_punctuation.h: Likewise.
41353         * lib/unictype/pr_paragraph_separator.h: Likewise.
41354         * lib/unictype/pr_pattern_syntax.h: Likewise.
41355         * lib/unictype/pr_pattern_white_space.h: Likewise.
41356         * lib/unictype/pr_private_use.h: Likewise.
41357         * lib/unictype/pr_quotation_mark.h: Likewise.
41358         * lib/unictype/pr_radical.h: Likewise.
41359         * lib/unictype/pr_soft_dotted.h: Likewise.
41360         * lib/unictype/pr_space.h: Likewise.
41361         * lib/unictype/pr_titlecase.h: Likewise.
41362         * lib/unictype/pr_variation_selector.h: Likewise.
41363         * lib/unictype/pr_white_space.h: Likewise.
41364         * lib/unictype/sy_c_ident.h: Likewise.
41365         * lib/unictype/sy_c_whitespace.h: Likewise.
41366         * lib/unictype/sy_java_whitespace.h: Likewise.
41367         * modules/uni*/*: Bump version number of expected libunistring version.
41368         Reported by Simon Josefsson.
41370 2011-01-09  Karl Heuer  <kwzh@gnu.org>
41372         useless-if-before-free: fix typo in --help and make the internal,
41373         automatic version date update process work once again.
41374         --help output contained a NUL character instead of the
41375         backslash-zero that was intended.  Also, the "must lie within
41376         the first 8 lines" line is on line 9, and hence not getting
41377         automatically updated.
41378         * build-aux/useless-if-before-free: Fix the former by adding a
41379         backslash, and the latter by condensing the three lines of what-it-does
41380         to a single line, leaving one line of slack for the future.
41382 2011-01-09  Bruno Haible  <bruno@clisp.org>
41384         uniwidth/width: Fix width of U+1D173..U+1D17A.
41385         * lib/gen-uni-tables.c (is_nonspacing, output_nonspacing_property,
41386         symbolic_width, output_width_property_test): New functions.
41387         (main): Invoke output_nonspacing_property, output_width_property_test.
41388         * lib/uniwidth/width.c (nonspacing_table_data): Set bits for
41389         U+1D173..U+1D17A.
41390         * tests/uniwidth/test-uc_width2.sh: For U+1D173..U+1D17A, expect 0, not
41391         1.
41392         * modules/uniwidth/*: Bump version number of expected libunistring
41393         version.
41394         * modules/unilbrk/*: Likewise.
41396 2011-01-08  Bruno Haible  <bruno@clisp.org>
41398         uninorm tests: Preserve copyright of Unicode data file.
41399         * tests/uninorm/NormalizationTest.txt: Re-add original copyright.
41400         Mention modifications.
41402 2011-01-08  Bruno Haible  <bruno@clisp.org>
41404         gen-uni-tables: Prepare for Unicode 5.2.0.
41405         * lib/gen-uni-tables.c (get_lbp): Allow for more than 32 LBP_* values.
41406         (debug_output_lbp, output_lbp): Update.
41408 2011-01-08  Bruno Haible  <bruno@clisp.org>
41410         unilbrk: Clarify gen-uni-tables.c code.
41411         * lib/gen-uni-tables.c (get_lbp): Assume REVISION_22 to be false. These
41412         were mistakes in UAX #14 revision 22 that are corrected in revision 24.
41413         Clarify what to do with unilbrk/lbrkprop.txt and uniwbrk/wbrkprop.txt.
41415 2011-01-07  Bruno Haible  <bruno@clisp.org>
41417         strtod: Restore errno when successfully parsing Infinity or NaN.
41418         * lib/strtod.c (strtod): After successfully parsing an Infinity or NaN,
41419         restore the original errno.
41421 2011-01-07  Bruno Haible  <bruno@clisp.org>
41423         remove test: Avoid failure on HP-UX 11.
41424         * tests/test-remove.c (main): Allow EEXIST as alternative error code.
41426 2011-01-07  Bruno Haible  <bruno@clisp.org>
41428         mkdir, mkdirat tests: Avoid failure on HP-UX 11.11.
41429         * tests/test-mkdir.h (test_mkdir): Allow EOPNOTSUPP as alternative
41430         error code.
41432 2011-01-07  Pádraig Brady  <P@draigBrady.com>
41434         ignore-value: fixup comments, and add Eric Blake
41435         as an author since he rewrote the macros.
41436         * lib/ignore-value.h (ignore_value):  State that
41437         we now support aggregates.  Also specify exactly
41438         when the GCC warn_unused_result feature was added.
41440 2011-01-06  Eric Blake  <eblake@redhat.com>
41442         ignore-value: support aggregate types
41443         * lib/ignore-value.h (ignore_value): Provide separate gcc
41444         definition.
41445         * modules/ignore-value-tests: New test module.
41446         * tests/test-ignore-value.c: New test.
41448         maint.mk: improve sc_prohibit_strcmp regex
41449         * top/maint.mk (sc_prohibit_strcmp): Detect strcmp()!=0, as
41450         documented.  Also, detect strcmp((expr),expr) == 0.  Exempt the
41451         definition of STRNEQ.
41453         signal: work around Haiku issue with SIGBUS
41454         * lib/siglist.h: Add comment.
41455         * lib/sig2str.c (numname_table): Swap SIGBUS order, to match
41456         strsignal's favoring of SIGSEGV.
41457         * tests/test-signal.c (main): Avoid test failure.
41458         * doc/posix-headers/signal.texi (signal.h): Document the issue.
41459         Reported by Scott McCreary.
41461         maint.mk: add pre-release check to ensure submodule commits are public
41462         * top/maint.mk (public-submodule-commit): New rule.
41463         (submodule-checks): New variable.
41464         (alpha beta stable): Depend on the variable.
41466 2011-01-05  Pádraig Brady  <P@draigBrady.com>
41467         and Jim Meyering  <meyering@redhat.com>
41469         ignore-value: make ignore_value more generic; deprecate ignore_ptr
41470         * lib/ignore-value.h: Include <stdint.h>, for decl of intptr_t.
41471         (ATTRIBUTE_DEPRECATED): Define.
41472         (_ignore_case): New function.
41473         (ignore_value): New macro, to replace the old function.
41474         (ignore_ptr): Arrange for any use to evoke a deprecation warning.
41475         * modules/ignore-value (Depends-on): Add stdint.
41477 2011-01-04  Eric Blake  <eblake@redhat.com>
41479         doc: regenerate INSTALL
41480         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Re-add
41481         @firstparagraphindent support, now that autoconf dropped it.
41482         (INSTALL_PRELUDE): Reinstate old macro.
41483         * doc/install.texi: Resync from autoconf.
41484         * doc/INSTALL: Reflect recent autoconf update.
41485         * doc/INSTALL.ISO: Likewise.
41486         * doc/INSTALL.UTF-8: Likewise.
41487         Reported by Karl Berry.
41489 2011-01-04  Bruce Korb  <address@hidden>
41491         git-version-gen: avoid a sub-shell
41492         * build-aux/git-version-gen: Redirect stderr in `...` via
41493         "exec 2>...", rather than via an added sub-shell.
41495 2011-01-03  Ben Pfaff  <blp@cs.stanford.edu>
41497         git-version-gen: use (...) rather than sh -c '...'
41498         * build-aux/git-version-gen: Rather than hard-coding a shell's name
41499         with "sh -c '...'", just use "(...)".  Less syntax is better, too.
41501 2011-01-03  Jim Meyering  <meyering@redhat.com>
41503         git-version-gen: convert leading TABs to spaces
41504         * build-aux/git-version-gen: Expand leading TABs.
41506         git-version-gen: handle failed "git rev-list"
41507         * build-aux/git-version-gen: Rather than leaking a "fatal" error
41508         from git and proceeding as if it had succeeded but printed no SHA1
41509         checksums, suppress the diagnostic and handle the failure.
41510         Reported by Bruce Korb in http://marc.info/?l=git&m=129399145930450&w=2
41512         git-version-gen: include command name in one more diagnostic
41513         * build-aux/git-version-gen: When the required .tarball-version file
41514         was missing or unreadable, you might see the diagnostic from "cat",
41515         but no trace of the name of the invoking script.  Now, you still see
41516         the diagnostic from cat, but also get one from "git-version-gen: ".
41517         Inspired by a patch from Bruce Korb.
41519         update-copyright: adjust test to match changed code
41520         * tests/test-update-copyright.sh: Change test's expected output
41521         to match new actual output.
41523 2011-01-02  Bruno Haible  <bruno@clisp.org>
41525         getlogin_r: Avoid test failure on HP-UX 11.
41526         * tests/test-getlogin_r.c (main): Allow an error code EINVAL instead of
41527         ERANGE when the second argument is zero.
41528         * doc/posix-functions/getlogin_r.texi: Document the HP-UX 11
41529         portability problem.
41531 2011-01-02  Bruce Korb  <bkorb@gnu.org>
41533         * build-aux/update-copyright: doc Simon's changes
41535 2011-01-02  Simon Josefsson  <simon@josefsson.org>
41537         * build-aux/update-copyright: Support UPDATE_COPYRIGHT_HOLDER
41538         environment variable.
41540 2011-01-02  Bruno Haible  <bruno@clisp.org>
41542         unigbrk: Avoid gcc warnings.
41543         * lib/unigbrk/u16-grapheme-breaks.c (u16_grapheme_breaks): Remove
41544         unused variable.
41545         * lib/unigbrk/u16-grapheme-prev.c (u16_grapheme_prev): Likewise.
41546         * lib/unigbrk/u8-grapheme-prev.c (u8_grapheme_prev): Likewise.
41547         * tests/unigbrk/test-u16-grapheme-breaks.c (main): Likewise.
41548         * tests/unigbrk/test-u32-grapheme-breaks.c (main): Likewise.
41549         * tests/unigbrk/test-u8-grapheme-breaks.c (test_u8_grapheme_breaks):
41550         Change type of first argument to 'const char *'.
41551         (main): Remove unused variable.
41552         * tests/unigbrk/test-u8-grapheme-next.c (test_u8_grapheme_next): Change
41553         type of first argument to 'const char *'.
41554         * tests/unigbrk/test-u8-grapheme-prev.c (test_u8_grapheme_prev):
41555         Likewise.
41556         (main): Change type of variable 's'.
41557         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Cast column number
41558         to 'int'.
41560 2011-01-02  Bruno Haible  <bruno@clisp.org>
41562         pwrite: Fix test whether it works and make it work on HP-UX 11.11.
41563         * m4/pwrite.m4 (gl_FUNC_PWRITE): Use AC_LANG_PROGRAM, not
41564         AC_LANG_SOURCE. Extend the test program to catch another HP-UX 11.11
41565         bug.
41566         * lib/pwrite.c: Undo 2010-12-31 patch.
41567         * doc/posix-functions/pwrite.texi: Document another HP-UX 11.11 bug.
41569 2011-01-02  Bruno Haible  <bruno@clisp.org>
41571         pread: Fix test whether it works.
41572         * m4/pread.m4 (gl_FUNC_PREAD): Use AC_LANG_PROGRAM, not AC_LANG_SOURCE.
41574 2011-01-02  Bruno Haible  <bruno@clisp.org>
41576         Fix detection of traditional Arabic locale on HP-UX, Solaris, Cygwin.
41577         * m4/locale-ar.m4 (gt_LOCALE_AR): Require that the locale encoding name
41578         ends in "6". Don't require a specific month name. Try also the locale
41579         names found on HP-UX 11 and Solaris 7.
41581 2011-01-02  Bruno Haible  <bruno@clisp.org>
41583         tcgetsid: Correct linkage in C++ mode on HP-UX 11.00.
41584         * lib/termios.in.h: In C++ mode, on HP-UX, include <sys/termios.h> with
41585         C linkage.
41586         * doc/posix-functions/tcgetsid.texi: Mention the HP-UX 11.00 bug.
41588 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
41590         Rename uc_is_grapheme_cluster_break() to uc_is_grapheme_break()
41591         for consistency, since the "cluster" term is not used elsewhere.
41592         * lib/unigbrk.in.h: Update name.
41593         * lib/unigbrk/u16-grapheme-breaks.c: Update name.
41594         * lib/unigbrk/u16-grapheme-next.c: Update name.
41595         * lib/unigbrk/u16-grapheme-prev.c: Update name.
41596         * lib/unigbrk/u32-grapheme-breaks.c: Update name.
41597         * lib/unigbrk/u32-grapheme-next.c: Update name.
41598         * lib/unigbrk/u32-grapheme-prev.c: Update name.
41599         * lib/unigbrk/u8-grapheme-breaks.c: Update name.
41600         * lib/unigbrk/u8-grapheme-next.c: Update name.
41601         * lib/unigbrk/u8-grapheme-prev.c: Update name.
41602         * lib/unigbrk/uc-is-grapheme-break.c: Update name.
41603         * tests/unigbrk/test-uc-is-grapheme-break.c: Update name.
41604         Suggested by Bruno Haible.
41606 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
41608         Remove module 'u8-grapheme-len' as too redundant with
41609         'u8-grapheme-next'.
41610         * modules/unigbrk/u8-grapheme-len: Delete file.
41611         * modules/unigbrk/u8-grapheme-len-tests: Delete file.
41612         * lib/unigbrk.in.h: Remove prototype for deleted function.
41613         * lib/unigbrk/u8-grapheme-len.c: Delete file.
41614         * tests/unigbrk/test-u8-grapheme-len.c: Delete file.
41616         Remove module 'u16-grapheme-len' as too redundant with
41617         'u16-grapheme-next'.
41618         * modules/unigbrk/u16-grapheme-len: Delete file.
41619         * modules/unigbrk/u16-grapheme-len-tests: Delete file.
41620         * lib/unigbrk.in.h: Remove prototype for deleted function.
41621         * lib/unigbrk/u16-grapheme-len.c: Delete file.
41622         * tests/unigbrk/test-u16-grapheme-len.c: Delete file.
41624         Remove module 'u32-grapheme-len' as too redundant with
41625         'u32-grapheme-next'.
41626         * modules/unigbrk/u32-grapheme-len: Delete file.
41627         * modules/unigbrk/u32-grapheme-len-tests: Delete file.
41628         * lib/unigbrk.in.h: Remove prototype for deleted function.
41629         * lib/unigbrk/u32-grapheme-len.c: Delete file.
41630         * tests/unigbrk/test-u32-grapheme-len.c: Delete file.
41632         Suggested by Bruno Haible.
41634 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
41636         * unigbrk.in.h: Fix typo: "ben" => "been".
41637         Reported by Bruno Haible.
41639 2011-01-01  Jim Meyering  <meyering@redhat.com>
41641         maint: update almost all copyright ranges to include 2011
41642         Run the new "make update-copyright" rule.
41644 2011-01-01  Jim Meyering  <meyering@redhat.com>
41646         maint: update-copyright: exempt doc/INSTALL*
41647         * Makefile (update-copyright): Also exclude doc/INSTALL*,
41648         since they are generated.  Suggested by Bruno Haible.
41650 2011-01-01  Jim Meyering  <meyering@redhat.com>
41652         maint: refine the update-copyright rule
41653         * Makefile (update-copyright): Also exclude any file that includes
41654         the "GENERATED AUTOMATICALLY" comment, being careful not to exclude
41655         code that merely generates the comment.
41657 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
41659         New module 'u8-grapheme-len'.
41660         * modules/unigbrk/u8-grapheme-len: New file.
41661         * modules/unigbrk/u8-grapheme-len-tests: New file.
41662         * lib/unigbrk.in.h: Add prototype for new function.
41663         * lib/unigbrk/u8-grapheme-len.c: New file.
41664         * tests/unigbrk/test-u8-grapheme-len.c: New file.
41666         New module 'u16-grapheme-len'.
41667         * modules/unigbrk/u16-grapheme-len: New file.
41668         * modules/unigbrk/u16-grapheme-len-tests: New file.
41669         * lib/unigbrk.in.h: Add prototype for new function.
41670         * lib/unigbrk/u16-grapheme-len.c: New file.
41671         * tests/unigbrk/test-u16-grapheme-len.c: New file.
41673         New module 'u32-grapheme-len'.
41674         * modules/unigbrk/u32-grapheme-len: New file.
41675         * modules/unigbrk/u32-grapheme-len-tests: New file.
41676         * lib/unigbrk.in.h: Add prototype for new function.
41677         * lib/unigbrk/u32-grapheme-len.c: New file.
41678         * tests/unigbrk/test-u32-grapheme-len.c: New file.
41680         New module 'u8-grapheme-next'.
41681         * modules/unigbrk/u8-grapheme-next: New file.
41682         * modules/unigbrk/u8-grapheme-next-tests: New file.
41683         * lib/unigbrk.in.h: Add prototype for new function.
41684         * lib/unigbrk/u8-grapheme-next.c: New file.
41685         * tests/unigbrk/test-u8-grapheme-next.c: New file.
41687         New module 'u16-grapheme-next'.
41688         * modules/unigbrk/u16-grapheme-next: New file.
41689         * modules/unigbrk/u16-grapheme-next-tests: New file.
41690         * lib/unigbrk.in.h: Add prototype for new function.
41691         * lib/unigbrk/u16-grapheme-next.c: New file.
41692         * tests/unigbrk/test-u16-grapheme-next.c: New file.
41694         New module 'u32-grapheme-next'.
41695         * modules/unigbrk/u32-grapheme-next: New file.
41696         * modules/unigbrk/u32-grapheme-next-tests: New file.
41697         * lib/unigbrk.in.h: Add prototype for new function.
41698         * lib/unigbrk/u32-grapheme-next.c: New file.
41699         * tests/unigbrk/test-u32-grapheme-next.c: New file.
41701         New module 'u8-grapheme-prev'.
41702         * modules/unigbrk/u8-grapheme-prev: New file.
41703         * modules/unigbrk/u8-grapheme-prev-tests: New file.
41704         * lib/unigbrk.in.h: Add prototype for new function.
41705         * lib/unigbrk/u8-grapheme-prev.c: New file.
41706         * tests/unigbrk/test-u8-grapheme-prev.c: New file.
41708         New module 'u16-grapheme-prev'.
41709         * modules/unigbrk/u16-grapheme-prev: New file.
41710         * modules/unigbrk/u16-grapheme-prev-tests: New file.
41711         * lib/unigbrk.in.h: Add prototype for new function.
41712         * lib/unigbrk/u16-grapheme-prev.c: New file.
41713         * tests/unigbrk/test-u16-grapheme-prev.c: New file.
41715         New module 'u32-grapheme-prev'.
41716         * modules/unigbrk/u32-grapheme-prev: New file.
41717         * modules/unigbrk/u32-grapheme-prev-tests: New file.
41718         * lib/unigbrk.in.h: Add prototype for new function.
41719         * lib/unigbrk/u32-grapheme-prev.c: New file.
41720         * tests/unigbrk/test-u32-grapheme-prev.c: New file.
41722         New module 'u8-grapheme-breaks'.
41723         * modules/unigbrk/u8-grapheme-breaks: New file.
41724         * modules/unigbrk/u8-grapheme-breaks-tests: New file.
41725         * lib/unigbrk.in.h: Add prototype for new function.
41726         * lib/unigbrk/u8-grapheme-breaks.c: New file.
41727         * tests/unigbrk/test-u8-grapheme-breaks.c: New file.
41729         New module 'u16-grapheme-breaks'.
41730         * modules/unigbrk/u16-grapheme-breaks: New file.
41731         * modules/unigbrk/u16-grapheme-breaks-tests: New file.
41732         * lib/unigbrk.in.h: Add prototype for new function.
41733         * lib/unigbrk/u16-grapheme-breaks.c: New file.
41734         * tests/unigbrk/test-u16-grapheme-breaks.c: New file.
41736         New module 'u32-grapheme-breaks'.
41737         * modules/unigbrk/u32-grapheme-breaks: New file.
41738         * modules/unigbrk/u32-grapheme-breaks-tests: New file.
41739         * lib/unigbrk.in.h: Add prototype for new function.
41740         * lib/unigbrk/u32-grapheme-breaks.c: New file.
41741         * tests/unigbrk/test-u32-grapheme-breaks.c: New file.
41743         New module 'ulc-grapheme-breaks'.
41744         * modules/unigbrk/ulc-grapheme-breaks: New file.
41745         * modules/unigbrk/ulc-grapheme-breaks-tests: New file.
41746         * m4/locale-ar.m4: New file.
41747         * lib/unigbrk/ulc-grapheme-breaks.c: New file.
41748         * tests/unigbrk/test-ulc-grapheme-breaks.c: New file.
41749         * tests/unigbrk/test-ulc-grapheme-breaks.sh: New file.
41751 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
41753         gbrkprop: Fix implementation of uc_graphemeclusterbreak_property.
41754         * lib/unigbrk/gbrkprop.h: Regenerate with gen-uni-tables.c.  I had
41755         modified how this file was generated before I initially submitted
41756         the module, but failed to regenerate it.  This meant that several
41757         of the level2 entries were wrong.
41758         * lib/unigbrk/uc-gbrk-prop.h (uc_graphemeclusterbreak_property):
41759         Remove the division-by-2 that is folded into the table now that
41760         gbrkprop.h has been regenerated properly.  Now -1 entries are
41761         handled correctly.
41763         New module 'unigbrk/uc-gbrk-prop-tests'.
41764         * modules/unigbrk/uc-gbrk-prop-tests: New file.
41765         * lib/gen-uni-tables.c: Generate tests/test-uc-gbrk-prop.h.
41766         * tests/unigbrk/test-uc-gbrk-prop.c: New file.
41767         * tests/unigbrk/test-uc-gbrk-prop.h: New file.
41769 2011-01-01  Bruno Haible  <bruno@clisp.org>
41771         Avoid use of hexadecimal escapes.
41772         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Use octal escapes
41773         instead of hexadecimal escapes.
41775 2011-01-01  Jim Meyering  <meyering@redhat.com>
41777         maint: new rule to update copyright year ranges
41778         * Makefile (update-copyright): New rule.
41780         maint: indent with TABs in Makefile
41781         * Makefile: Expand leading sequences of spaces to TABs
41783         version-etc: update the copyright year it reports
41784         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2011.
41786 2010-12-31  Bruno Haible  <bruno@clisp.org>
41788         isfinite: Avoid compiler bug of "cc -O" on HP-UX 11.11.
41789         * lib/isfinite.c (zerof, zerod, zerol): New variables.
41790         (gl_isfinitef, gl_isfinited, gl_isfinitel): Use them instead of literal
41791         zero.
41793 2010-12-31  Bruno Haible  <bruno@clisp.org>
41795         pwrite: Work around HP-UX 11.11 bug.
41796         * m4/pwrite.m4 (gl_FUNC_PWRITE): When pwrite exists, test whether it
41797         works and set REPLACE_PWRITE if not.
41798         * lib/pwrite.c (pwrite): Add an implementation that uses the system
41799         function.
41800         * doc/posix-functions/pwrite.texi: Document the HP-UX 11 bug.
41802 2010-12-31  Bruno Haible  <bruno@clisp.org>
41804         pread: Work around HP-UX 11 bugs.
41805         * m4/pread.m4 (gl_FUNC_PREAD): When pread exists, test whether it works
41806         and set REPLACE_PREAD if not.
41807         * doc/posix-functions/pread.texi: Document the HP-UX 11 bugs.
41809 2010-12-31  Eric Blake  <eblake@redhat.com>
41811         nl_langinfo: fix YESEXPR on Irix 6.5
41812         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Test for Irix bug.
41813         * lib/nl_langinfo.c (rpl_nl_langinfo): Work around it.
41814         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Document
41815         it.
41817 2010-12-31  Bruno Haible  <bruno@clisp.org>
41819         iconv: Document HP-UX 11 bug.
41820         * doc/posix-functions/iconv.texi: Document HP-UX 11 return value bug.
41822 2010-12-31  Bruno Haible  <bruno@clisp.org>
41824         ldexpl: Fix link error on HP-UX 11.
41825         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When replacing ldexpl, set
41826         LDEXPL_LIBM, using $ISNANL_LIBM.
41828 2010-12-31  Eric Blake  <eblake@redhat.com>
41830         ftello: avoid compilation failure with SunStudio c89
41831         * lib/ftello.c (ftello): Use lseek, not llseek.
41833         tests: avoid failing coreutils tests on cygwin
41834         * tests/init.sh (find_exe_basenames_): Exempt [.exe.
41835         (create_exe_shims_): Return 0 when skipping.
41837 2010-12-31  Bruno Haible  <bruno@clisp.org>
41839         sys_select: Avoid warning about missing memset declaration on HP-UX 11.
41840         * lib/sys_select.in.h: On HP-UX, include also <string.h>.
41842 2010-12-31  Bruno Haible  <bruno@clisp.org>
41844         waitpid: Fix link error in C++ mode.
41845         * lib/sys_wait.in.h: Remove extern "C" { ... } group.
41847 2010-12-31  Bruno Haible  <bruno@clisp.org>
41849         isnan: Use GCC built-ins when possible.
41850         * lib/math.in.h (gl_isnan_f): Use __builtin_isnanf instead of
41851         __builtin_isnan.
41852         (gl_isnan_l): Use __builtin_isnanl instead of __builtin_isnan.
41853         (isnan): Define using GCC built-ins for GCC >= 4.0.
41855 2010-12-31  Bruno Haible  <bruno@clisp.org>
41857         isnand: Fix mistake.
41858         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): Use __builtin_isnan, not
41859         __builtin_isnand.
41861 2010-12-31  Bruno Haible  <bruno@clisp.org>
41863         open: Avoid C++ error on HP-UX 11.
41864         * lib/fcntl.in.h (open): Disable _GL_CXXALIASWARN invocation on HP-UX.
41866 2010-12-31  Bruno Haible  <bruno@clisp.org>
41868         time_r: Add missing declarations on HP-UX 11.
41869         * lib/time.in.h (localtime_r, gmtime_r): Test HAVE_DECL_LOCALTIME_R
41870         instead of HAVE_LOCALTIME_R.
41871         * m4/time_r.m4 (gl_TIME_R): Test whether localtime_r is declared. Set
41872         HAVE_LOCALTIME_R always.
41873         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize
41874         HAVE_DECL_LOCALTIME_R, not HAVE_LOCALTIME_R.
41875         * modules/time (Makefile.am): Substitute HAVE_DECL_LOCALTIME_R, not
41876         HAVE_LOCALTIME_R.
41877         * doc/posix-functions/gmtime_r.texi: Document the HP-UX 11 problem.
41878         * doc/posix-functions/localtime_r.texi: Likewise.
41880 2010-12-29  Eric Blake  <eblake@redhat.com>
41882         mountlist: tweak previous commit
41883         * lib/mountlist.c (me_remote): Guarantee trailing backslash.
41884         Reported by Paul Eggert.
41886         mountlist: fix local drive detection on cygwin
41887         * lib/mountlist.c (ME_REMOTE) [__CYGWIN__]: Provide implementation
41888         that works for cygwin.
41890 2010-12-29  Paul Eggert  <eggert@cs.ucla.edu>
41892         ftoastr, snprintf: ftoastr + snprintf module
41893         * lib/ftoastr.c: Use GNULIB_SNPRINTF, not GNULIB_SNPRINTF_POSIX,
41894         since the snprintf module now should be good enough here.
41895         * modules/snprintf (configure.ac): Add gl_MODULE_INDICATOR([snprintf]).
41896         It seems odd to have both gl_STDIO_MODULE_INDICATOR([snprintf])
41897         and gl_MODULE_INDICATOR([snprintf]), but the former enables
41898         GNULIB_SNPRINTF only for the test directory, and the latter
41899         doesn't arrange for gl_STDIO_H_DEFAULTS to be called, so neither
41900         seems to suffice by itself.
41902 2010-12-28  Paul Eggert  <eggert@cs.ucla.edu>
41904         alloca: one step towards thread-safety
41905         * lib/alloca.c (find_stack_direction): New arg PTR, to avoid the
41906         need for a static variable.  All callers changed.  This does not
41907         make the alloca replacement thread-safe, but it's one step.
41909         tests: minor indenting change
41910         * tests/init.sh: Sync from coreutils housekeeping patch
41911         <http://lists.gnu.org/r/coreutils/2010-12/msg00116.html>
41912         to keep lines within 80 columns.
41914 2010-12-28  Jim Meyering  <meyering@redhat.com>
41916         regex: don't infloop on persistent failing calloc
41917         * lib/regexec.c (build_trtable): Return failure indication upon
41918         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
41919         In glibc, this was fixed for version 2.13:
41920         http://sourceware.org/bugzilla/show_bug.cgi?id=12348
41922 2010-12-28  Bruno Haible  <bruno@clisp.org>
41923             Paul Eggert <eggert@cs.ucla.edu>
41925         linkat: Make implementation robust against system behaviour variations.
41926         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Define
41927         LINK_FOLLOWS_SYMLINKS to -1 if it needs a runtime test in the Solaris
41928         way, and to -2 if it needs a generic runtime test.
41929         * lib/linkat.c (solaris_optimized_link_immediate,
41930         solaris_optimized_link_follow): New functions.
41931         * tests/test-linkat.c (EXPECT_LINK_HARDLINKS_SYMLINKS): New macro.
41932         (check_same_link): Use it.
41934 2010-12-26  Ben Pfaff  <blp@cs.stanford.edu>
41936         New module 'unigbrk/base'.
41937         * modules/unigbrk/base: New file.
41938         * lib/unigbrk.in.h: New file.
41940         New module 'unigbrk/uc-gbrk-prop'.
41941         * lib/gen-uni-tables.c: Generate lib/unigbrk/gbrkprop.h.
41942         * modules/unigbrk/uc-gbrk-prop: New file.
41943         * lib/unigbrk/gbrkprop.h: New file.
41944         * lib/unigbrk/uc-gbrk-prop.c: New file.
41946         New module 'unigbrk/uc-is-grapheme-break'.
41947         * modules/unigbrk/uc-is-grapheme-break: New file.
41948         * modules/unigbrk/uc-is-grapheme-break-tests: New file.
41949         * lib/unigbrk/uc-is-grapheme-break.c: New file.
41950         * tests/unigbrk/test-uc-is-grapheme-break.c: New file.
41951         * tests/unigbrk/test-uc-is-grapheme-break.sh: New file.
41952         * tests/unigbrk/GraphemeBreakTest.txt: New file.
41954         With corrections and tweaks by Bruno Haible <bruno@clisp.org>.
41956 2010-12-27  Bruno Haible  <bruno@clisp.org>
41958         linkat test: Avoid failure on Solaris 11 2010-11.
41959         * tests/test-linkat.c (main): Allow ENOTDIR as alternative error code.
41961 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
41963         utimens: work around glibc rounding bug on more platforms
41964         * lib/utimens.c (fdutimens): Work around rounding bug even if
41965         HAVE_WORKING_UTIMES.  Reported for Linux 2.4.21 by Bruno Haible in
41966         <http://lists.gnu.org/r/bug-gnulib/2010-12/msg00298.html>.
41968 2010-12-27  Bruno Haible  <bruno@clisp.org>
41970         select tests: Improve comments.
41971         * tests/test-select.c (do_select): Add comments.
41973 2010-12-27  Bruno Haible  <bruno@clisp.org>
41975         select tests: Safer way of handling timeout.
41976         * tests/test-select.c (do_select_nowait): Zero-initialize the timeout
41977         at every invocation.
41979 2010-12-27  Bruno Haible  <bruno@clisp.org>
41981         select tests: Use 'bool' where appropriate.
41982         * tests/test-select.c (connect_to_socket): Change argument type to
41983         'bool'.
41985 2010-12-27  Bruno Haible  <bruno@clisp.org>
41987         select tests: Use existing modules.
41988         * modules/select-tests (Depends-on): Add pipe-posix, unistd.
41989         (configure.ac): Don't test for unistd.h.
41990         * tests/test-select.c: Include <unistd.h> always. Use pipe() as
41991         declared in <unistd.h>.
41993 2010-12-27  Bruno Haible  <bruno@clisp.org>
41995         mbrtowc: Work around a Solaris 7 bug.
41996         * m4/mbrtowc.m4 (gl_MBRTOWC_NULL_ARG1): New macro.
41997         (gl_MBRTOWC_NULL_ARG2): Renamed from gl_MBRTOWC_NULL_ARG.
41998         (gl_FUNC_MBRTOWC): Update. Define MBRTOWC_NULL_ARG2_BUG instead of
41999         MBRTOWC_NULL_ARG_BUG. Invoke gl_MBRTOWC_NULL_ARG1 and define
42000         MBRTOWC_NULL_ARG1_BUG.
42001         * lib/mbrtowc.c (rpl_mbrtowc): Use MBRTOWC_NULL_ARG2_BUG instead of
42002         MBRTOWC_NULL_ARG_BUG. Handle MBRTOWC_NULL_ARG1_BUG.
42003         * tests/test-mbrtowc.c (main): Test support of a NULL first argument.
42004         * doc/posix-functions/mbrtowc.texi: Mention the Solaris 7 bug.
42006 2010-12-27  Jim Meyering  <meyering@redhat.com>
42008         read-file.c: tweak syntax
42009         * lib/read-file.c (fread_file): Remove space after "*" in function
42010         definitions.
42012 2010-12-27  Bruno Haible  <bruno@clisp.org>
42014         times test: Avoid gcc warnings on OSF/1.
42015         * tests/test-times.c (main): Cast printf arguments from clock_t to
42016         'long int'.
42018 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
42020         utimens: work around glibc rounding bug on older Linux kernels
42021         * lib/utimens.c (fdutimens): If invoking futimesat or futimes
42022         on Linux with a glibc whose utimes might not work, then work
42023         around a longstanding glibc bug involving rounding rather than
42024         truncated time stamps.  Reported for Linux 2.4.21 by Bruno Haible in
42025         <http://lists.gnu.org/r/bug-gnulib/2010-11/msg00113.html>.
42027 2010-12-26  Bruno Haible  <bruno@clisp.org>
42029         inet_ntop: Hide mismatch of declaration on NonStop Kernel.
42030         * lib/arpa_inet.in.h (inet_ntop): Use _GL_CXXALIAS_SYS_CAST instead of
42031         _GL_CXXALIAS_SYS.
42032         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
42034 2010-12-26  Bruno Haible  <bruno@clisp.org>
42036         inet_ntop, inet_pton: Ensure declaration on NonStop Kernel.
42037         * lib/arpa_inet.in.h: On NonStop Kernel, include also <netdb.h>.
42038         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
42039         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Include also <netdb.h> when
42040         looking for the declaration.
42041         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
42042         * doc/posix-functions/inet_ntop.texi: Document the NonStop Kernel
42043         problem.
42044         * doc/posix-functions/inet_pton.texi: Likewise.
42046 2010-12-26  Bruno Haible  <bruno@clisp.org>
42048         arpa_inet: Use the common idioms with C++ support.
42049         * lib/arpa_inet.in.h: Include c++defs.h.
42050         (inet_ntop, inet_pton): Declare using the macros with C++ namespace
42051         support.
42052         * modules/arpa_inet (Depends-on): Add c++defs.
42053         (Makefile.am): Substitute the contents of c++defs.h.
42054         * modules/arpa_inet-tests (Depends-on): Add arpa_inet-c++-tests.
42055         * modules/arpa_inet-c++-tests: New file.
42056         * tests/test-arpa_inet-c++.cc: New file.
42058 2010-12-25  Bruno Haible  <bruno@clisp.org>
42060         Fix more C++ link errors on Solaris 8.
42061         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Add
42062         $(LIB_EACCESS).
42063         * modules/stdio-c++-tests (test_stdio_c___LDADD): Likewise.
42064         * modules/stdlib-c++-tests (test_stdlib_c___LDADD): Likewise.
42065         * modules/sys_ioctl-c++-tests (test_sys_ioctl_c___LDADD): Likewise.
42066         * modules/wchar-c++-tests (test_wchar_c___LDADD): Likewise.
42067         * modules/wctype-c++-tests (test_wctype_c___LDADD): Likewise.
42069 2010-12-25  Bruno Haible  <bruno@clisp.org>
42071         printf-posix: Fix link error when a non-GCC compiler is used.
42072         * lib/stdio.in.h (printf): When not using GCC, override printf
42073         correctly.
42074         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
42076 2010-12-25  Bruno Haible  <bruno@clisp.org>
42078         strerror_r-posix: Update doc.
42079         * doc/posix-functions/strerror_r.texi: Update doc about the return
42080         value. See <http://sources.redhat.com/bugzilla/show_bug.cgi?id=12204>.
42082 2010-12-25  Paul Eggert  <eggert@cs.ucla.edu>
42084         utimens: simplify the logic of the previous change
42085         * m4/utimes.m4 (gl_FUNC_UTIMES): Simplify the logic a bit.
42086         This should not affect whether the test succeeds or fails.
42088         utimens: configure better on hosts with NFS clock skew
42089         * m4/utimes.m4 (gl_FUNC_UTIMES): Don't assume that utimes (f, NULL)
42090         uses the clock of the local host.  It might use the clock of the
42091         NFS server.  Reported for Linux 2.4.21 client by Bruno Haible in
42092         <http://lists.gnu.org/r/bug-gnulib/2010-11/msg00113.html>.
42094 2010-12-25  Bruno Haible  <bruno@clisp.org>
42096         ptsname test: Avoid failure on Solaris.
42097         * tests/test-ptsname.c (main): For Solaris, use the recommended way to
42098         open a pseudo-terminal; don't use BSD-style ptys.
42099         * doc/posix-functions/ptsname.texi: Document the limitation on Solaris.
42101 2010-12-25  Bruno Haible  <bruno@clisp.org>
42103         ptsname: Avoid ERANGE failure on some systems.
42104         * lib/ptsname.c (buffer): Increase size.
42106 2010-12-25  Bruno Haible  <bruno@clisp.org>
42108         rename, renameat: Avoid test failures at NFS mounted locations.
42109         * tests/test-rename.h (assert_nonexistent): Remove the old directory,
42110         so that subsequent mkdir calls succeed.
42112 2010-12-25  Bruno Haible  <bruno@clisp.org>
42114         iswblank: Fix C++ link error on Solaris 8.
42115         * lib/wctype.in.h (iswblank): Declare using _GL_FUNCDECL_RPL or
42116         _GL_FUNCDECL_SYS.
42118 2010-12-25  Bruno Haible  <bruno@clisp.org>
42120         unistd: Fix C++ link error on Solaris 8.
42121         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add $(LIB_EACCESS).
42123 2010-12-25  Bruno Haible  <bruno@clisp.org>
42125         readlink doc: Mention an old glibc bug.
42126         * doc/posix-functions/readlink.texi: Mention glibc 2.4 bug (BZ #2450).
42128 2010-12-25  Bruno Haible  <bruno@clisp.org>
42130         fcntl-h: Fix for use of C++ on glibc systems.
42131         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
42132         also on glibc systems in C++ mode.
42133         Reported by Gary V. Vaughan <gary@gnu.org>.
42135 2010-12-25  Bruno Haible  <bruno@clisp.org>
42137         roundl-ieee: Make it work on OSF/1 5.1 with cc.
42138         * modules/roundl-ieee (Depends-on): Add floorl-ieee, ceill-ieee.
42140 2010-12-25  Bruno Haible  <bruno@clisp.org>
42142         truncl-ieee: Make it work on OSF/1 5.1 with cc.
42143         * doc/posix-functions/truncl.texi: Mention the OSF/1 5.1 bug.
42144         * m4/truncl.m4 (gl_FUNC_TRUNCL): If gl_FUNC_TRUNCL_IEEE is also used,
42145         test whether truncl works according to ISO C 99 with IEC 60559.
42146         * m4/truncl-ieee.m4: New file.
42147         * modules/truncl-ieee (Files): Add it and m4/minus-zero.m4,
42148         m4/signbit.m4.
42149         (configure.ac): Invoke gl_FUNC_TRUNCL_IEEE.
42151 2010-12-25  Bruno Haible  <bruno@clisp.org>
42153         ceill-ieee: Make it work on OSF/1 5.1 with cc.
42154         * doc/posix-functions/ceill.texi: Mention the OSF/1 5.1 bug.
42155         * m4/ceill.m4 (gl_FUNC_CEILL): If gl_FUNC_CEILL_IEEE is also used,
42156         test whether ceill works according to ISO C 99 with IEC 60559.
42157         * m4/ceill-ieee.m4: New file.
42158         * modules/ceill-ieee (Files): Add it and m4/minus-zero.m4,
42159         m4/signbit.m4.
42160         (configure.ac): Invoke gl_FUNC_CEILL_IEEE.
42162 2010-12-25  Bruno Haible  <bruno@clisp.org>
42164         Ensure all prerequisites of <wchar.h> are included.
42165         * m4/btowc.m4 (gl_FUNC_BTOWC): Include <stddef.h>, <stdio.h>, <time.h>
42166         before <wchar.h>.
42167         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
42168         gl_MBRLEN_NUL_RETVAL): Likewise.
42169         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
42170         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL,
42171         AC_FUNC_MBRTOWC): Likewise.
42172         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
42173         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
42174         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
42175         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
42176         Likewise.
42177         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
42178         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Likewise.
42179         (gl_WCHAR_H): Improve comments.
42180         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
42182 2010-12-25  Bruno Haible  <bruno@clisp.org>
42184         strtok_r: Fix C syntax error in autoconf macro.
42185         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't use UTF-8 encoded U+00A0
42186         characters in test program.
42188 2010-12-24  Bruno Haible  <bruno@clisp.org>
42190         ceil, trunc, round: Fix gcc warnings.
42191         * lib/ceil.c (MIN): Undefine before redefining.
42192         * lib/trunc.c (MIN): Likewise.
42193         * lib/round.c (MIN): Likewise.
42194         Include <math.h> first.
42196 2010-12-24  Bruno Haible  <bruno@clisp.org>
42198         select tests: Avoid failures on OSF/1 5.1.
42199         * tests/test-select.c (test_accept_first, test_socket_pair): Ignore
42200         failure of closing the last socket; it may fail with ECONNRESET.
42202 2010-12-24  Eric Blake  <eblake@redhat.com>
42204         stdint: avoid HP-UX 10.20 preprocessor bug
42205         * lib/stdint.in.h (INT64_MAX, UINT64_MAX): Check via #ifdef rather
42206         than #if.
42207         * tests/test-floor2.c (main): Likewise.
42208         Reported by Peter O'Gorman.
42210         pipe: make obsoletion transition easier
42211         * lib/pipe.h: Restore file as thin shim around "spawn-pipe.h".
42212         * modules/pipe (Files): Include revived file.
42213         (Include): Drop reference, to mirror getdate's behavior.
42215 2010-12-24  Bruno Haible  <bruno@clisp.org>
42217         sys_socket: Hide mismatch of declarations on NonStop Kernel.
42218         * lib/sys_socket.in.h (connect, bind, sendto, setsockopt): Use
42219         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
42220         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
42222 2010-12-24  Bruno Haible  <bruno@clisp.org>
42224         gethostname: Ensure declaration on NonStop Kernel.
42225         * lib/unistd.in.h: Include <netdb.h> also on NonStop Kernel systems.
42226         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
42228 2010-12-24  Bruno Haible  <bruno@clisp.org>
42230         sys_select: Ensure all necessary types on NonStop Kernel.
42231         * lib/sys_select.in.h: If the system does not have <sys/select.h>,
42232         include <sys/time.h>.
42233         * doc/posix-headers/sys_select.texi: Mention that it's missing on
42234         NonStop Kernel.
42235         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
42237 2010-12-24  Bruno Haible  <bruno@clisp.org>
42239         sys_select: Remove unneeded include.
42240         * lib/sys_select.in.h: Don't include <sys/socket.h> on platforms that
42241         have <sys/select.h>.
42243 2010-12-24  Bruno Haible  <bruno@clisp.org>
42245         gethostname: Provide a fallback for HOST_NAME_MAX.
42246         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): When neither HOST_NAME_MAX
42247         nor MAXHOSTNAMELEN is found in the usual system headers, use 256
42248         instead.
42249         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
42251 2010-12-24  Bruno Haible  <bruno@clisp.org>
42253         sigaction tests: Allow missing SA_RESETHAND and SA_RESTART.
42254         * tests/test-sigaction.c (SA_RESETHAND): Fall back to 0.
42255         (SA_RESTART): Likewise.
42256         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
42258 2010-12-24  Bruno Haible  <bruno@clisp.org>
42260         signal: Define NSIG.
42261         * lib/signal.in.h (NSIG): Define to 32 on NonStop Kernel.
42262         * tests/test-signal.c (nsig): New variable.
42263         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
42265 2010-12-24  Bruno Haible  <bruno@clisp.org>
42267         rename, renameat: Avoid test failures on OSF/1 5.1.
42268         * tests/test-rename.h (test_rename): Allow EEXIST and ENOTDIR as
42269         alternative error codes.
42270         * tests/test-renameat.c (main): Likewise.
42272 2010-12-24  Bruno Haible  <bruno@clisp.org>
42274         *printf: Detect large precisions bug on Solaris 10/SPARC.
42275         * m4/printf.m4 (gl_PRINTF_PRECISION): Add one more test code, provided
42276         by Paul Eggert.
42277         * tests/test-snprintf-posix.h (test_function): Add this test code here
42278         too.
42279         * tests/test-sprintf-posix.h (test_function): Likewise.
42280         * tests/test-vasnprintf-posix.c (test_function): Likewise.
42281         * tests/test-vasprintf-posix.c (test_function): Likewise.
42282         * doc/posix-functions/fprintf.texi: Mention Solaris 10 bug as worked
42283         around by gnulib.
42284         * doc/posix-functions/printf.texi: Likewise.
42285         * doc/posix-functions/snprintf.texi: Likewise.
42286         * doc/posix-functions/sprintf.texi: Likewise.
42287         * doc/posix-functions/vfprintf.texi: Likewise.
42288         * doc/posix-functions/vprintf.texi: Likewise.
42289         * doc/posix-functions/vsnprintf.texi: Likewise.
42290         * doc/posix-functions/vsprintf.texi: Likewise.
42291         * doc/posix-functions/dprintf.texi: Undo last commit.
42292         * doc/posix-functions/vdprintf.texi: Likewise.
42294 2010-12-23  Paul Eggert  <eggert@cs.ucla.edu>
42296         tests: port test-fdutimensat.c to Solaris 8
42297         * tests/test-fdutimensat.c (do_fdutimens): Don't assume
42298         fdutimensat works with a nonnegative fd and AT_SYMLINK_NOFOLLOW.
42299         On Solaris 8, it fails with errno == ENOSYS, because there is no
42300         futimens (so it can't use the fd), and there is no lutimens (so it
42301         can't implement AT_SYMLINK_NOFOLLOW on symlinks).
42303         vsnprintf: make more consistent with snprintf; doc fixes
42305         * doc/posix-functions/snprintf.texi (snprintf): The workaround for
42306         the byte count return problem was promoted from the snprintf-posix
42307         to the snprintf module.
42308         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
42309         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Also check
42310         gl_SNPRINTF_RETVAL_C99, for consistency with gl_FUNC_SNPRINTF.
42311         * tests/test-snprintf.c (main): Check the byte count returned.
42312         * tests/test-vsnprintf.c (main): Likewise.
42314 2010-12-23  Eric Blake  <eblake@redhat.com>
42316         sigpipe: relax to LGPLv2+, since it did not have any LGPLv3+ parts
42317         * modules/sigpipe (License): Relax license.
42319 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
42321         doc: document Solaris printf bug with large float precisions
42322         * doc/posix-functions/dprintf.texi (dprintf):
42323         * doc/posix-functions/fprintf.texi (fprintf):
42324         * doc/posix-functions/printf.texi (printf):
42325         * doc/posix-functions/snprintf.texi (snprintf):
42326         * doc/posix-functions/sprintf.texi (sprintf):
42327         * doc/posix-functions/vdprintf.texi (vdprintf):
42328         * doc/posix-functions/vfprintf.texi (vfprintf):
42329         * doc/posix-functions/vprintf.texi (vprintf):
42330         * doc/posix-functions/vsnprintf.texi (vsnprintf):
42331         * doc/posix-functions/vsprintf.texi (vsprintf):
42332         Mention that these functions mishandle large floating point
42333         precisions on Solaris 10.  The same bug is also present in Solaris
42334         8, and I assume earlier.  This causes "cd gnulib-tests; make
42335         check" to fail on Solaris 8 (and I assume, later) when building
42336         the latest coreutils, in test-vasprintf-posix's call to
42337         my_asprintf (&result, "%.4000f %d", 1.0, 99).  I have not checked
42338         the wide flavors (e.g., wprintf) so this patch just updates the
42339         documentation for the narrow ones.
42341         test-posixtm.c: add two tests
42342         * tests/test-posixtm.c: Add two tests, to highlight the
42343         bug in Solaris 10 (and earlier) localtime.  Gnulib doesn't work
42344         around this bug; this is merely to document it.
42346 2010-12-22  Bruno Haible  <bruno@clisp.org>
42348         getlogin_r: Work around portability problem on OSF/1.
42349         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Detect the OSF/1 problem.
42350         * lib/unistd.in.h (getlogin_r): Replace if REPLACE_GETLOGIN_R is set.
42351         * lib/getlogin_r.c (getlogin_r): When getlogin_r exists, invoke it and
42352         test for a truncated result.
42353         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_GETLOGIN_R.
42354         * modules/unistd (Makefile.am): Substitute REPLACE_GETLOGIN_R.
42355         * modules/getlogin_r (Depends-on): Add memchr.
42356         * doc/posix-functions/getlogin_r.texi: Mention the OSF/1 problem.
42358 2010-12-22  Bruno Haible  <bruno@clisp.org>
42360         ptsname: Avoid test failure on OSF/1 5.1.
42361         * modules/ptsname-tests (Depends-on): Add 'same-inode'.
42362         * tests/test-ptsname.c: Include <sys/stat.h>, same-inode.h.
42363         (same_slave): New function.
42364         (main): Use it to compare ptsname's result with the expected file name.
42366 2010-12-22  Bruno Haible  <bruno@clisp.org>
42368         Port extended stdio modules to HP NonStop Kernel.
42369         * lib/stdio-impl.h (_IOERR, _IOREAD, _IOWRT, _IORW) [__TANDEM]: New
42370         macros.
42371         * lib/fbufmode.c: Update comments.
42372         * lib/fflush.c: Likewise.
42373         * lib/fpurge.c: Likewise.
42374         * lib/freadable.c: Likewise.
42375         * lib/freadahead.c: Likewise.
42376         * lib/freading.c: Likewise.
42377         * lib/freadptr.c: Likewise.
42378         * lib/freadseek.c: Likewise.
42379         * lib/fseeko.c: Likewise.
42380         * lib/fseterr.c: Likewise.
42381         * lib/fwritable.c: Likewise.
42382         * lib/fwriting.c: Likewise.
42383         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
42385 2010-12-22  Bruno Haible  <bruno@clisp.org>
42387         ttyname_r: Work around bug on OSF/1 5.1.
42388         * doc/posix-functions/ttyname_r.texi: Mention the OSF/1 bug.
42389         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Detect the OSF/1 bug. Say "no"
42390         instead of "guessing no" when the OSF/1 bug or the Solaris bug is
42391         present.
42392         * lib/ttyname_r.c (ttyname_r): Update comments.
42394 2010-12-22  Bruno Haible  <bruno@clisp.org>
42396         round: Implement result sign according to IEEE 754.
42397         * lib/round.c (MIN, MINUS_ZERO): New macros.
42398         (FLOOR_FREE_ROUND): Return -0.0 for -0.5 < x < 0.
42399         * tests/test-roundf-ieee.c (main): Test also values between -1 and 1.
42400         * tests/test-round-ieee.c (main): Likewise.
42401         * tests/test-roundl-ieee.c (main): Likewise.
42403         trunc: Implement result sign according to IEEE 754.
42404         * lib/trunc.c (MIN, MINUS_ZERO): New macros.
42405         (FUNC): Return +0.0 for 0 < x < 1 and -0.0 for -1 < x < 0.
42406         * tests/test-trunc2.c: Include minus-zero.h.
42407         (MINUS_ZERO): New macro.
42408         (trunc_reference): Keep in sync with lib/trunc.c.
42409         * tests/test-truncf2.c: Include minus-zero.h.
42410         (MINUS_ZERO): New macro.
42411         (truncf_reference): Keep in sync with lib/trunc.c.
42412         * tests/test-truncf-ieee.c (main): Test also values between -1 and 1.
42413         * tests/test-trunc-ieee.c (main): Likewise.
42414         * tests/test-truncl-ieee.c (main): Likewise.
42416         ceil: Implement result sign according to IEEE 754.
42417         * lib/ceil.c (MIN, MINUS_ZERO): New macros.
42418         (FUNC): Return -0.0 for -1 < x < 0.
42419         * tests/test-ceil2.c: Include minus-zero.h.
42420         (MINUS_ZERO): New macro.
42421         (ceil_reference): Keep in sync with lib/ceil.c.
42422         * tests/test-ceilf2.c: Include minus-zero.h.
42423         (MINUS_ZERO): New macro.
42424         (ceilf_reference): Keep in sync with lib/ceil.c.
42425         * tests/test-ceilf-ieee.c (main): Test also values between -1 and 1.
42426         * tests/test-ceil-ieee.c (main): Likewise.
42427         * tests/test-ceill-ieee.c (main): Likewise.
42429         floor: Implement result sign according to IEEE 754.
42430         * lib/floor.c (FUNC): Return +0.0 for 0 < x < 1.
42431         * tests/test-floor2.c (floor_reference): Keep in sync with lib/floor.c.
42432         * tests/test-floorf2.c (floorf_reference): Likewise.
42433         * tests/test-floorf-ieee.c (main): Test also values between -1 and 1.
42434         * tests/test-floor-ieee.c (main): Likewise.
42435         * tests/test-floorl-ieee.c (main): Likewise.
42437 2010-12-22  Bruno Haible  <bruno@clisp.org>
42439         getaddrinfo: Update doc.
42440         * doc/posix-functions/gai_strerror.texi: Return type is also different
42441         on AIX and HP-UX.
42443 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
42445         getaddrinfo, inet_ntop: Update doc for Solaris.
42446         * doc/posix-functions/gai_strerror.texi: Return type is also an
42447         issue on Solaris 9 and earlier.
42448         * doc/posix-functions/inet_ntop.texi: 4th arg type is also an issue
42449         on Solaris 10 and earlier.
42451 2010-12-21  Bruno Haible  <bruno@clisp.org>
42453         New module 'roundl-ieee'.
42454         * modules/roundl-ieee: New file.
42455         * m4/roundl.m4 (gl_FUNC_ROUNDL): If gl_FUNC_ROUNDL_IEEE is also used,
42456         test whether roundl works according to ISO C 99 with IEC 60559.
42457         * m4/roundl-ieee.m4: New file.
42458         * modules/roundl-ieee-tests: New file.
42459         * tests/test-roundl-ieee.c: New file, based on tests/test-roundl.c.
42460         * tests/test-roundl.c (main): Remove signbit tests.
42461         * modules/roundl-tests (Depends-on): Remove signbit.
42462         * doc/posix-functions/roundl.texi: Mention the new module.
42464 2010-12-21  Bruno Haible  <bruno@clisp.org>
42466         New module 'truncl-ieee'.
42467         * modules/truncl-ieee: New file.
42468         * modules/truncl-ieee-tests: New file.
42469         * tests/test-truncl-ieee.c: New file, based on tests/test-truncl.c.
42470         * tests/test-truncl.c (main): Remove signbit tests.
42471         * modules/truncl-tests (Depends-on): Remove signbit.
42472         * doc/posix-functions/truncl.texi: Mention the new module.
42474 2010-12-21  Bruno Haible  <bruno@clisp.org>
42476         New module 'ceill-ieee'.
42477         * modules/ceill-ieee: New file.
42478         * modules/ceill-ieee-tests: New file.
42479         * tests/test-ceill-ieee.c: New file, based on tests/test-ceill.c.
42480         * tests/test-ceill.c (main): Remove signbit tests.
42481         * modules/ceill-tests (Depends-on): Remove signbit.
42482         * doc/posix-functions/ceill.texi: Mention the new module.
42484 2010-12-21  Bruno Haible  <bruno@clisp.org>
42486         New module 'floorl-ieee'.
42487         * modules/floorl-ieee: New file.
42488         * modules/floorl-ieee-tests: New file.
42489         * tests/test-floorl-ieee.c: New file, based on tests/test-floorl.c.
42490         * tests/test-floorl.c (main): Remove signbit tests.
42491         * modules/floorl-tests (Depends-on): Remove signbit.
42492         * doc/posix-functions/floorl.texi: Mention the new module.
42494 2010-12-21  Bruno Haible  <bruno@clisp.org>
42496         New module 'round-ieee'.
42497         * modules/round-ieee: New file.
42498         * m4/round.m4 (gl_FUNC_ROUND): If gl_FUNC_ROUND_IEEE is also used, test
42499         whether round works according to ISO C 99 with IEC 60559.
42500         * m4/round-ieee.m4: New file.
42501         * modules/round-ieee-tests: New file.
42502         * tests/test-round-ieee.c: New file, based on tests/test-roundf-ieee.c.
42503         * tests/test-round1.c (main): Remove signbit tests.
42504         * modules/round-tests (Depends-on): Remove 'signbit'.
42505         * doc/posix-functions/round.texi: Mention the new module.
42507 2010-12-21  Bruno Haible  <bruno@clisp.org>
42509         New module 'trunc-ieee'.
42510         * modules/trunc-ieee: New file.
42511         * m4/trunc.m4 (gl_FUNC_TRUNC): If gl_FUNC_TRUNC_IEEE is also used, test
42512         whether trunc works according to ISO C 99 with IEC 60559.
42513         * m4/trunc-ieee.m4: New file.
42514         * lib/math.in.h (trunc): Replace if REPLACE_TRUNC is set.
42515         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNC.
42516         * modules/math (Makefile.am): Substitute REPLACE_TRUNC.
42517         * modules/trunc-ieee-tests: New file.
42518         * tests/test-trunc-ieee.c: New file, based on tests/test-truncf-ieee.c.
42519         * tests/test-trunc1.c (main): Remove signbit tests.
42520         * modules/trunc-tests (Depends-on): Remove 'signbit'.
42521         * doc/posix-functions/trunc.texi: Mention the new module.
42523 2010-12-21  Bruno Haible  <bruno@clisp.org>
42525         New module 'ceil-ieee'.
42526         * modules/ceil-ieee: New file.
42527         * m4/ceil.m4 (gl_FUNC_CEIL): Require gl_MATH_H_DEFAULTS. If
42528         gl_FUNC_CEIL_IEEE is also used, test whether ceil works according to
42529         ISO C 99 with IEC 60559.
42530         * m4/ceil-ieee.m4: New file.
42531         * modules/ceil (Files): Add lib/ceil.c.
42532         (Depends-on): Add 'float'.
42533         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
42534         * lib/math.in.h (ceil): New declaration.
42535         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEIL,
42536         REPLACE_CEIL.
42537         * modules/math (Makefile.am): Substitute GNULIB_CEIL, REPLACE_CEIL.
42538         * modules/ceil-ieee-tests: New file.
42539         * tests/test-ceil-ieee.c: New file, based on tests/test-ceilf-ieee.c.
42540         * tests/test-math-c++.cc: Check the signature of 'ceil'.
42541         * doc/posix-functions/ceil.texi: Mention the new module.
42543 2010-12-21  Bruno Haible  <bruno@clisp.org>
42545         New module 'floor-ieee'.
42546         * modules/floor-ieee: New file.
42547         * m4/floor.m4 (gl_FUNC_FLOOR): Require gl_MATH_H_DEFAULTS. If
42548         gl_FUNC_FLOOR_IEEE is also used, test whether floor works according to
42549         ISO C 99 with IEC 60559.
42550         * m4/floor-ieee.m4: New file.
42551         * modules/floor (Files): Add lib/floor.c.
42552         (Depends-on): Add 'float'.
42553         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
42554         * lib/math.in.h (floor): New declaration.
42555         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOOR,
42556         REPLACE_FLOOR.
42557         * modules/math (Makefile.am): Substitute GNULIB_FLOOR, REPLACE_FLOOR.
42558         * modules/floor-ieee-tests: New file.
42559         * tests/test-floor-ieee.c: New file, based on tests/test-floorf-ieee.c.
42560         * tests/test-math-c++.cc: Check the signature of 'floor'.
42561         * doc/posix-functions/floor.texi: Mention the new module.
42563 2010-12-21  Bruno Haible  <bruno@clisp.org>
42565         New module 'roundf-ieee'.
42566         * modules/roundf-ieee: New file.
42567         * m4/roundf.m4 (gl_FUNC_ROUNDF): If gl_FUNC_ROUNDF_IEEE is also used,
42568         test whether roundf works according to ISO C 99 with IEC 60559.
42569         * m4/roundf-ieee.m4: New file.
42570         * modules/roundf-ieee-tests: New file.
42571         * tests/test-roundf-ieee.c: New file, based on tests/test-roundf1.c.
42572         * tests/test-roundf1.c (main): Remove signbit tests.
42573         * modules/roundf-tests (Depends-on): Remove 'signbit'.
42574         * doc/posix-functions/roundf.texi: Mention the new module.
42576 2010-12-21  Bruno Haible  <bruno@clisp.org>
42578         New module 'truncf-ieee'.
42579         * modules/truncf-ieee: New file.
42580         * m4/truncf.m4 (gl_FUNC_TRUNCF): If gl_FUNC_TRUNCF_IEEE is also used,
42581         test whether truncf works according to ISO C 99 with IEC 60559.
42582         * m4/truncf-ieee.m4: New file.
42583         * lib/math.in.h (truncf): Replace if REPLACE_TRUNCF is set.
42584         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCF.
42585         * modules/math (Makefile.am): Substitute REPLACE_TRUNCF.
42586         * modules/truncf-ieee-tests: New file.
42587         * tests/test-truncf-ieee.c: New file, based on tests/test-truncf1.c.
42588         * tests/test-truncf1.c (main): Remove signbit tests.
42589         * modules/truncf-tests (Depends-on): Remove 'signbit'.
42590         * doc/posix-functions/truncf.texi: Mention the new module.
42592 2010-12-21  Bruno Haible  <bruno@clisp.org>
42594         New module 'ceilf-ieee'.
42595         * modules/ceilf-ieee: New file.
42596         * m4/ceilf.m4 (gl_FUNC_FLOORF): If gl_FUNC_CEILF_IEEE is also used,
42597         test whether ceilf works according to ISO C 99 with IEC 60559.
42598         * m4/ceilf-ieee.m4: New file.
42599         * modules/ceilf-ieee-tests: New file.
42600         * tests/test-ceilf-ieee.c: New file, based on tests/test-ceilf1.c.
42601         * tests/test-ceilf1.c (main): Remove signbit tests.
42602         * modules/ceilf-tests (Depends-on): Remove 'signbit'.
42603         * doc/posix-functions/ceilf.texi: Mention the new module.
42605 2010-12-21  Bruno Haible  <bruno@clisp.org>
42607         New module 'floorf-ieee'.
42608         * modules/floorf-ieee: New file.
42609         * m4/floorf.m4 (gl_FUNC_FLOORF): If gl_FUNC_FLOORF_IEEE is also used,
42610         test whether floorf works according to ISO C 99 with IEC 60559.
42611         * m4/floorf-ieee.m4: New file.
42612         * modules/floorf-ieee-tests: New file.
42613         * tests/test-floorf-ieee.c: New file, based on tests/test-floorf1.c.
42614         * tests/test-floorf1.c (main): Remove signbit tests.
42615         * modules/floorf-tests (Depends-on): Remove 'signbit'.
42616         * doc/posix-functions/floorf.texi: Mention the new module.
42618 2010-12-21  Bruno Haible  <bruno@clisp.org>
42620         Support for minus zero in autoconf macros.
42621         * m4/minus-zero.m4: New file, based on tests/minus-zero.h.
42622         * m4/signbit.m4 (gl_FLOAT_SIGNBIT_CODE, gl_DOUBLE_SIGNBIT_CODE,
42623         gl_LONG_DOUBLE_SIGNBIT_CODE, gl_FLOATTYPE_SIGNBIT_CODE): New macros.
42624         * tests/minus-zero.h: Update comments.
42626 2010-12-21  Bruno Haible  <bruno@clisp.org>
42628         Tests for module 'ceil'.
42629         * modules/ceil-tests: New file.
42630         * tests/test-ceil1.c: New file, based on tests/test-ceill.c.
42631         * tests/test-ceil2.c: New file, based on tests/test-ceilf2.c.
42633 2010-12-21  Bruno Haible  <bruno@clisp.org>
42635         Tests for module 'floor'.
42636         * modules/floor-tests: New file.
42637         * tests/test-floor1.c: New file, based on tests/test-floorl.c.
42638         * tests/test-floor2.c: New file, based on tests/test-floorf2.c.
42640 2010-12-21  Bruno Haible  <bruno@clisp.org>
42642         math: Fix indentation.
42643         * lib/math.in.h (floorf): Fix indentation.
42645 2010-12-21  Bruno Haible  <bruno@clisp.org>
42647         Fix cross-compilation guesses on Solaris.
42648         * m4/fopen.m4 (gl_FUNC_FOPEN): Correct shell pattern so that it does
42649         not match "solaris2.10".
42650         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
42651         * m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_DIRECTIVE_N,
42652         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
42654 2010-12-21  Paul Eggert  <eggert@cs.ucla.edu>
42656         snprintf: port snprintf (NULL, 0, ...) to Solaris 8 and 9
42657         This fixes a problem observed with the latest coreutils snapshot
42658         that caused a test to fail on Solaris 8.  src/csplit.c's call
42659         snprintf (NULL, 0, format, UINT_MAX) returns -1 on Solaris 9 and
42660         earlier, instead of returning the number of bytes that would have
42661         been generated; this causes csplit to incorrectly report memory
42662         exhaustion.
42663         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Also check for
42664         snprintf (NULL, 0, ...) and (for good measure) snprintf (buf, 0, ...).
42665         Guess that it doesn't work on Solaris 2.6 through 9.  Adjust
42666         comments to match.
42667         (gl_PRINTF_SIZES_C99, gl_PRINTF_DIRECTIVE_F, gl_SNPRINTF_RETVAL_C99):
42668         Fix typo in matching older versions of Solaris: "solaris2.10"
42669         is matched by the shell pattern "solaris2.[0-9]*".  This matters
42670         only for guessing while cross-compiling.
42671         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Also check gl_SNPRINTF_RETVAL_C99.
42673 2010-12-20  Paul Eggert  <eggert@cs.ucla.edu>
42675         ftoastr: fix comment again
42676         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
42677         <http://lists.gnu.org/r/bug-gnulib/2010-12/msg00149.html>.
42678         Also, simplify example a bit by using flags = 0.
42680 2010-12-20  Bruno Haible  <bruno@clisp.org>
42682         round*, trunc*: Update documentation regarding glibc.
42683         * doc/posix-functions/roundf.texi: Mention missing declaration problem.
42684         * doc/posix-functions/round.texi: Likewise.
42685         * doc/posix-functions/roundl.texi: Likewise.
42686         * doc/posix-functions/truncf.texi: Likewise.
42687         * doc/posix-functions/trunc.texi: Likewise.
42688         * doc/posix-functions/truncl.texi: Likewise.
42690 2010-12-20  Bruno Haible  <bruno@clisp.org>
42692         roundf, round, roundl: Update documentation regarding OSF/1 5.1.
42693         * doc/posix-functions/roundf.texi: Mention OSF/1 5.1 problem.
42694         * doc/posix-functions/round.texi: Likewise.
42695         * doc/posix-functions/roundl.texi: Likewise.
42697 2010-12-20  Bruno Haible  <bruno@clisp.org>
42699         ttyname_r: Add missing declaration on HP-UX 11.
42700         * lib/unistd.in.h (ttyname_r): Test HAVE_DECL_TTYNAME_R instead of
42701         HAVE_TTYNAME_R.
42702         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is
42703         declared. Set HAVE_TTYNAME_R always.
42704         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
42705         HAVE_DECL_TTYNAME_R, not HAVE_TTYNAME_R.
42706         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TTYNAME_R, not
42707         HAVE_TTYNAME_R.
42708         * doc/posix-functions/ttyname_r.texi: Document the HP-UX 11 problem.
42710 2010-12-20  Bruno Haible  <bruno@clisp.org>
42712         getlogin, getlogin_r: Document HP-UX 11.11 bugs.
42713         * doc/posix-functions/getlogin.texi: Document HP-UX 11.11 bug.
42714         * doc/posix-functions/getlogin_r.texi: Likewise.
42715         * tests/test-getlogin.c: Include <errno.h>.
42716         (main): Avoid test failure on HP-UX 11.11.
42717         * tests/test-getlogin_r.c (main): Likewise.
42719 2010-12-20  Bruno Haible  <bruno@clisp.org>
42721         getlogin_r: Add missing declaration on HP-UX 11.
42722         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test whether getlogin_r is
42723         declared also when it exists as a function.
42724         * doc/posix-functions/getlogin_r.texi: Document this workaround.
42726 2010-12-20  Bruno Haible  <bruno@clisp.org>
42728         wcsrtombs: Don't confuse mbstate_t with rpl_mbstate_t.
42729         * lib/wcsrtombs.c: If gnulib overrides mbstate_t, define wcsrtombs
42730         through wcrtomb.
42732 2010-12-19  Paul Eggert  <eggert@cs.ucla.edu>
42734         ftoastr: fix comment
42735         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
42736         <http://lists.gnu.org/r/bug-gnulib/2010-12/msg00130.html>.
42738 2010-12-19  Bruno Haible  <bruno@clisp.org>
42740         isnan: Ensure it is a macro.
42741         * lib/math.in.h (isnan): Define as a macro if not already a macro.
42742         * doc/posix-functions/isnan.texi: Mention problem on IRIX, OSF/1,
42743         Solaris.
42745 2010-12-19  Bruno Haible  <bruno@clisp.org>
42747         ldexpl test: Fix link error on OSF/1 5.1.
42748         * modules/ldexpl-tests (Makefile.am): Define test_ldexpl_LDADD.
42750 2010-12-19  Bruno Haible  <bruno@clisp.org>
42752         wctype: Make it work in C++ mode on OSF/1 5.1.
42753         * lib/wctype.in.h (iswblank): Declare but not define here.
42754         * lib/iswblank.c: New file, extracted from lib/wctype.in.h.
42755         * m4/wctype_h.m4 (gl_WCTYPE_H): Arrange to compile it if needed.
42756         * modules/wctype (Files): Add lib/iswblank.c.
42758 2010-12-19  Bruno Haible  <bruno@clisp.org>
42760         signal: Document problem with type of SIGRTMIN, SIGRTMAX on OSF/1 5.1.
42761         * doc/posix-headers/signal.texi: Document OSF/1 5.1 problem.
42762         * lib/strsignal.c (strsignal): Cast SIGRTMIN to 'int'.
42764 2010-12-19  Bruno Haible  <bruno@clisp.org>
42766         sys_socket: Use POSIX compatible declarations on OSF/1 5.1.
42767         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): On OSF/1, define
42768         _POSIX_PII_SOCKET.
42769         * doc/posix-functions/recv.texi: Document the OSF/1 problem.
42770         * doc/posix-functions/recvfrom.texi: Likewise.
42771         * doc/posix-functions/send.texi: Likewise.
42772         * doc/posix-functions/sendto.texi: Likewise.
42774 2010-12-19  Bruno Haible  <bruno@clisp.org>
42776         tcgetsid: Add missing declaration on OSF/1 5.1.
42777         * lib/termios.in.h (tcgetsid): Test HAVE_DECL_TCGETSID instead of
42778         HAVE_TCGETSID.
42779         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Test whether tcgetsid is declared.
42780         Don't set HAVE_TCGETSID.
42781         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Initialize
42782         HAVE_DECL_TCGETSID, not HAVE_TCGETSID.
42783         * modules/termios (Makefile.am): Substitute HAVE_DECL_TCGETSID, not
42784         HAVE_TCGETSID.
42785         * doc/posix-functions/tcgetsid.texi: Mention the OSF/1 5.1 problem.
42787 2010-12-19  Bruno Haible  <bruno@clisp.org>
42789         stdio: Fix problem with popen() declaration on OSF/1 5.1.
42790         * lib/stdio.in.h: During the include_next statement, let recursive
42791         includes of this file include only the system header file.
42793 2010-12-19  Bruno Haible  <bruno@clisp.org>
42795         iconv_open: Fix regression from 2010-12-04.
42796         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Fix typo.
42797         Reported by Noah Lavine <noah.b.lavine@gmail.com>.
42799 2010-12-19  Bruno Haible  <bruno@clisp.org>
42801         stdbool test: Avoid a gcc warning.
42802         * tests/test-stdbool.c (main): Fail if e1 is false.
42803         Reported by Jim Meyering.
42805 2010-12-19  Jim Meyering  <meyering@redhat.com>
42807         setenv: restore to working order
42808         $HAVE_SETENV is used in gl_FUNC_SETENV, yet its definitions were
42809         mistakenly removed.
42810         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Restore code to set
42811         HAVE_SETENV.
42812         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Restore code to initialize
42813         HAVE_SETENV.
42815 2010-12-19  Bruno Haible  <bruno@clisp.org>
42817         Document some different function declarations on OSF/1 5.1.
42818         * doc/posix-functions/gai_strerror.texi: Mention different declaration.
42819         * doc/posix-functions/inet_ntop.texi: Likewise.
42820         * doc/posix-functions/gethostname.texi: Likewise.
42821         * lib/unistd.in.h (gethostname): Update comment.
42823 2010-12-19  Bruno Haible  <bruno@clisp.org>
42825         doc: Mention vasprintf-posix module.
42826         * doc/glibc-functions/asprintf.texi: Mention the workarounds present in
42827         the 'vasprintf-posix' module.
42828         * doc/glibc-functions/vasprintf.texi: Likewise.
42830 2010-12-19  Bruno Haible  <bruno@clisp.org>
42832         unsetenv: Add missing declaration on OSF/1 5.1.
42833         * lib/stdlib.in.h (setenv): Test HAVE_DECL_UNSETENV, not HAVE_UNSETENV.
42834         * m4/setenv.m4 (gl_FUNC_UNSETENV): Test whether unsetenv is declared.
42835         Don't set HAVE_UNSETENV. In the test program, set _BSD.
42836         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_UNSETENV,
42837         not HAVE_UNSETENV.
42838         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_UNSETENV, not
42839         HAVE_UNSETENV.
42840         * doc/posix-functions/unsetenv.texi: Mention the OSF/1 5.1 problem.
42842 2010-12-19  Bruno Haible  <bruno@clisp.org>
42844         setenv: Add missing declaration on OSF/1 5.1.
42845         * lib/stdlib.in.h (setenv): Test HAVE_DECL_SETENV, not HAVE_SETENV.
42846         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test whether setenv is
42847         declared. Don't set HAVE_SETENV.
42848         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_SETENV,
42849         not HAVE_SETENV.
42850         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_SETENV, not
42851         HAVE_SETENV.
42852         * doc/posix-functions/setenv.texi: Mention the OSF/1 5.1 problem.
42854 2010-12-19  Bruno Haible  <bruno@clisp.org>
42856         nl_langinfo tests: Avoid gcc warning.
42857         * tests/test-nl_langinfo.c: Don't enable the GCC pragma for GCC 4.2.
42859 2010-12-19  Bruno Haible  <bruno@clisp.org>
42861         mknod: Avoid error in C++ mode on OSF/1 with GCC.
42862         * lib/sys_stat.in.h (mknod): Use _GL_CXXALIAS_SYS_CAST instead of
42863         _GL_CXXALIAS_SYS.
42865 2010-12-19  Bruno Haible  <bruno@clisp.org>
42867         stdbool: Relax test.
42868         * tests/test-stdbool.c (e): Don't require that casts from a variable's
42869         address to 'bool' work in static initializer, for compilers other than
42870         GCC.
42872 2010-12-19  Bruno Haible  <bruno@clisp.org>
42874         ftello: Add missing declaration on OSF/1 5.1.
42875         * lib/stdio.in.h (ftello): Test HAVE_DECL_FTELLO, not HAVE_FTELLO.
42876         * m4/ftello.m4 (gl_FUNC_FTELLO): Test whether ftello is declared.
42877         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FTELLO.
42878         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FTELLO.
42879         * doc/posix-functions/ftello.texi: Mention the OSF/1 5.1 problem.
42881 2010-12-19  Bruno Haible  <bruno@clisp.org>
42883         fseeko: Add missing declaration on OSF/1 5.1.
42884         * lib/stdio.in.h (fseeko): Test HAVE_DECL_FSEEKO, not HAVE_FSEEKO.
42885         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Test whether fseeko is declared.
42886         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FSEEKO.
42887         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FSEEKO.
42888         * doc/posix-functions/fseeko.texi: Mention the OSF/1 5.1 problem.
42890 2010-12-19  Bruno Haible  <bruno@clisp.org>
42892         fchdir: Add missing declaration on OSF/1 5.1.
42893         * lib/unistd.in.h (fchdir): Provide declaration if systems lacks it.
42894         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check whether fchdir is declared.
42895         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_FCHDIR.
42896         * modules/unistd (Makefile.am): Substitute HAVE_DECL_FCHDIR.
42897         * doc/posix-functions/fchdir.texi: Mention the OSF/1 5.1 problem.
42899 2010-12-19  Bruno Haible  <bruno@clisp.org>
42901         relocatable-prog-wrapper: Separate from relocatable-prog.
42902         * modules/relocatable-prog (Makefile.am): Define uninstall-hook and
42903         uninstall-relocwrapper rule here.
42904         * modules/relocatable-prog-wrapper (Makefile.am): ... not here.
42905         Reported by Ian Beckwith <ianb@erislabs.net>.
42907 2010-12-19  Bruno Haible  <bruno@clisp.org>
42909         unistr/u8-mbsnlen: Add missing dependency.
42910         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtouc.
42911         Reported by Ian Beckwith <ianb@erislabs.net>.
42913 2010-12-19  Bruno Haible  <bruno@clisp.org>
42915         iconv: Make it possible again to use this module without 'iconv-h'.
42916         * modules/iconv (configure.ac): Don't invoke gl_ICONV_MODULE_INDICATOR
42917         if it is not defined.
42918         Reported by Ian Beckwith <ianb@erislabs.net>.
42920 2010-12-18  Paul Eggert  <eggert@cs.ucla.edu>
42922         acl: port to Solaris 8 when copying from tmpfs to ufs
42923         * lib/copy-acl.c (qcopy_acl): Also allow EINVAL as an ignorable
42924         error number.  Problem observed on Solaris 8 with latest
42925         coreutils, with "mv A B", where A is on a tmpfs file system and B
42926         is on a ufs file system.  This caused coreutils' mv/part-symlink
42927         test to fail.
42929         tests: set fail=0 at start
42930         * tests/init.sh (setup_): Move fail=0 initialization here ...
42931         (mktempd_): ... from here, so that tests can rely on fail being
42932         set to 0 initially.  This fixes a problem in coreutils; see:
42933         http://lists.gnu.org/r/coreutils/2010-12/msg00083.html
42935 2010-12-18  Bruno Haible  <bruno@clisp.org>
42937         memmem-simple: Stylistic changes.
42938         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Avoid possible gcc warning.
42939         Fix preprocessor directive indentation.
42941 2010-12-15  Pádraig Brady  <P@draigBrady.com>
42943         memmem, memmem-simple: reorganize and expand empty needle check
42944         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Move all
42945         functional checks to memmem-simple so that one has a fully functional
42946         memmem by using just this module.
42947         Restrict the performance only check to the memmem module.
42948         Also expand the empty needle check to ensure the correct
42949         pointer is returned, not just a non NULL pointer.
42950         * doc/glibc-functions/memmem.texi: Rearrange the portability
42951         documentation to correlate with the rearranged checks.
42952         Clarify exactly how the memmem and memmem-simple modules
42953         relate to each other.
42955 2010-12-15  Pádraig Brady  <P@draigBrady.com>
42956             Bruno Haible  <bruno@clisp.org>
42958         Improve cross-compilation guesses for uClibc.
42959         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, assume
42960         that uClibc does not have the glibc bug.
42961         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
42962         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Likewise.
42964 2010-12-14  Eric Blake  <eblake@redhat.com>
42966         configmake: provide fallbacks for oldest supported autotools
42967         * m4/configmake.m4: New file.
42968         * modules/configmake (Files): Ship it.
42969         (configure.ac): Use it to guarantee fallbacks.
42971 2010-12-13  Pádraig Brady  <P@draigBrady.com>
42973         read-file: Improve handling of large files
42974         * lib/read-file.c (fread_file): Minimize realloc()s
42975         for regular files, and better manage sizes around SIZE_MAX.
42977 2010-12-13  Eric Blake  <eblake@redhat.com>
42979         cloexec, fcntl: relax license
42980         * modules/cloexec (License): Change from LGPLv3+ to LGPLv2+, with
42981         consent from all contributors.
42982         * modules/fcntl (License): Likewise.
42984 2010-12-10  Bruno Haible  <bruno@clisp.org>
42986         Tests for module 'pipe-posix'.
42987         * modules/pipe-posix-tests: New file.
42988         * tests/test-pipe.c: New file, based on tests/test-pipe2.c.
42990 2010-12-10  Bruno Haible  <bruno@clisp.org>
42992         pipe-posix: Make it work in C++ mode.
42993         * lib/unistd.in.h: Don't include <io.h>, <fcntl.h> for pipe.
42994         (pipe): Use common idiom, not a macro definition.
42995         * lib/pipe.c: New file.
42996         * m4/pipe.m4: New file.
42997         * modules/pipe-posix (Description): Enhance.
42998         (Files): Add lib/pipe.c, m4/pipe.m4.
42999         (configure.ac): Invoke gl_FUNC_PIPE.
43000         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_PIPE.
43001         * modules/unistd (Makefile.am): Substitute HAVE_PIPE.
43002         * tests/test-unistd-c++.cc: Check the signature of pipe.
43004 2010-12-10  Bruno Haible  <bruno@clisp.org>
43006         Rename module 'pipe' to 'spawn-pipe'.
43007         * modules/spawn-pipe: New file, renamed from modules/pipe.
43008         (Files, configure.ac, Makefile.am): Update.
43009         (Include): Mention "spawn-pipe.h" instead of "pipe.h".
43010         * modules/pipe: Reduce to an obsolete indirection to 'spawn-pipe'.
43011         * lib/spawn-pipe.h: New file, renamed from lib/pipe.h.
43012         * lib/spawn-pipe.c: New file, renamed from lib/pipe.c. Include
43013         "spawn-pipe.h" instead of "pipe.h".
43014         * m4/spawn-pipe.m4: New file, renamed from m4/pipe.m4. Rename gl_PIPE
43015         to gl_SPAWN_PIPE.
43016         * modules/spawn-pipe-tests: New file, renamed from modules/pipe-tests.
43017         (Files, Makefile.am): Update.
43018         * tests/test-spawn-pipe.sh: New file, renamed from tests/test-pipe.sh.
43019         Update.
43020         * tests/test-spawn-pipe.c: New file, renamed from tests/test-pipe.c.
43021         Include "spawn-pipe.h" instead of "pipe.h".
43022         * lib/csharpcomp.c: Include "spawn-pipe.h" instead of "pipe.h".
43023         * lib/javacomp.c: Likewise.
43024         * lib/javaversion.c: Likewise.
43025         * lib/pipe-filter-gi.c: Likewise.
43026         * lib/pipe-filter-ii.c: Likewise.
43027         * modules/csharpcomp (Depends-on): Add 'spawn-pipe', remove 'pipe'.
43028         * modules/javacomp (Depends-on): Likewise.
43029         * modules/javaversion (Depends-on): Likewise.
43030         * modules/pipe-filter-gi (Depends-on): Likewise.
43031         * modules/pipe-filter-ii (Depends-on): Likewise.
43032         * MODULES.html.sh (Executing programs): Update.
43033         * NEWS: Mention the change.
43035 2010-12-10  Eric Blake  <eblake@redhat.com>
43037         pipe-posix: new module
43038         * modules/pipe-posix: New file.
43039         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set default.
43040         (gl_UNISTD_H): Check for declaration.
43041         * modules/unistd (Makefile.am): Substitute it.
43042         * lib/unistd.in.h (pipe): Provide it for mingw.
43043         * doc/posix-functions/pipe.texi (pipe): Update documentation.
43044         * MODULES.html.sh (File descriptor based Input/Output): Likewise.
43046 2010-12-07  Bruno Haible  <bruno@clisp.org>
43048         unistr/u8-strcmp: Avoid collision with libc function on Solaris 11.
43049         * lib/unistr.in.h (u8_strcmp) [__sun]: Declare with real name
43050         u8_strcmp_gnu.
43051         * modules/unistr/u8-strcmp (configure.ac): Bump version number.
43053 2010-12-06  Bruno Haible  <bruno@clisp.org>
43055         Update internal documentation.
43056         * m4/README: Document new idioms for AC_RUN_IFELSE invocations.
43058 2010-12-04  Bruno Haible  <bruno@clisp.org>
43060         Put more information about failed tests into the test return codes.
43061         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Change test
43062         program so that it returns an enumerated value (0, 1, 2, 3, 4, ...).
43063         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
43064         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
43065         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
43066         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
43067         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
43068         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
43069         * m4/isapipe.m4 (gl_PREREQ_ISAPIPE): Likewise.
43070         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
43071         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
43072         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
43073         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
43074         * m4/stdint.m4 (gl_STDINT_H): Likewise.
43075         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Change test program so that it
43076         returns a bit mask.
43077         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
43078         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
43079         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
43080         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
43081         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
43082         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
43083         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
43084         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
43085         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
43086         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
43087         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
43088         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
43089         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
43090         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
43091         * m4/link.m4 (gl_FUNC_LINK): Likewise.
43092         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
43093         * m4/mbrlen.m4 (gl_MBRLEN_RETVAL): Likewise.
43094         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Likewise.
43095         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
43096         * m4/memchr.m4 (gl_FUNC_MEMCHR): Likewise.
43097         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
43098         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
43099         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
43100         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
43101         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
43102         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
43103         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
43104         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
43105         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
43106         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_LS,
43107         gl_PRINTF_PRECISION): Likewise.
43108         * m4/regex.m4 (gl_REGEX): Likewise.
43109         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
43110         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
43111         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Likewise.
43112         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
43113         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
43114         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
43115         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
43116         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Likewise.
43117         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
43118         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
43119         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
43120         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
43121         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
43122         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
43123         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
43124         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
43125         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
43126         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
43127         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
43128         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Likewise.
43129         (gl_FLOATTYPE_SIGN_LOCATION): Change test program so that it returns an
43130         enumerated value.
43131         * m4/acl.m4 (gl_ACL_GET_FILE): Use "if ... return 1; return 0;" style.
43133 2010-12-04  Bruno Haible  <bruno@clisp.org>
43135         Update for Solaris 11 2010-11.
43136         * doc/{glibc,posix}-{functions,headers}: Add info about Solaris 11
43137         Express, released in November 2010.
43139 2010-12-04  Bruno Haible  <bruno@clisp.org>
43141         nproc: Relax license.
43142         * modules/nproc (License): Change to LGPL, with consent by Glen Lenker
43143         and Paul Eggert.
43144         Requested by Ludovic Courtès <ludo@gnu.org>.
43146 2010-12-01  Paul Eggert  <eggert@cs.ucla.edu>
43148         utimecmp: fine-grained src to nearby coarse-grained dest
43150         * lib/utimecmp.c (utimecmp): When UTIMECMP_TRUNCATE_SOURCE is set,
43151         and the source is on a file system with higher-resolution time
43152         stamps, than the destination, and _PC_TIMESTAMP_RESOLUTION does
43153         not work, and the time stamps are close together, the algorithm to
43154         determine the exact resolution from the read-back mtime was buggy:
43155         it had a "!=" where it should have had an "==".  This bug has been
43156         in the code ever since it was introduced to gnulib.
43157         Problem reported by Dan Jacobson in
43158         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7529>.
43160 2010-11-30  Bruno Haible  <bruno@clisp.org>
43162         strerror_r-posix: Fix autoconf test.
43163         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Fix typo.
43165 2010-11-28  Bruno Haible  <bruno@clisp.org>
43166             Paul Eggert  <eggert@cs.ucla.edu>
43168         Tests for module 'getdomainname'.
43169         * modules/getdomainname-tests: New file.
43170         * tests/test-getdomainname.c: New file, based on
43171         tests/test-gethostname.c.
43173 2010-11-28  Bruno Haible  <bruno@clisp.org>
43174             Paul Eggert  <eggert@cs.ucla.edu>
43176         getdomainname: Use the system function when possible.
43177         * lib/unistd.in.h: Include <netdb.h>, for getdomainname's declaration.
43178         (getdomainname): Replace if needed. Provide the declaration if it is
43179         missing. Don't use _GL_CXXALIAS_SYS_CAST.
43180         * lib/getdomainname.c: Include <limits.h> and <sys/systeminfo.h>.
43181         (getdomainname): When the system has getdomainname, call the system
43182         function. When sysinfo (SI_SRPC_DOMAIN, ...) is possible, use that.
43183         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
43184         gl_HEADER_SYS_SOCKET and gl_HEADER_NETDB. Test whether the function is
43185         found in libnsl. Look for the declaration also in <netdb.h>. Replace
43186         the function if its second argument is of type 'int' or if it is found
43187         in libnsl.
43188         (gl_PREREQ_GETDOMAINNAME): Define HAVE_GETDOMAINNAME. Check for
43189         <sys/systeminfo.h> and sysinfo().
43190         * modules/getdomainname (Depends-on): Add netdb, sys_socket.
43191         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
43192         HAVE_DECL_GETDOMAINNAME and REPLACE_GETDOMAINNAME instead of
43193         HAVE_GETDOMAINNAME.
43194         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETDOMAINNAME and
43195         REPLACE_GETDOMAINNAME instead of HAVE_GETDOMAINNAME.
43196         * doc/glibc-functions/getdomainname.texi: Document the problems with
43197         the getdomainname declaration.
43199 2010-11-28  Bruno Haible  <bruno@clisp.org>
43201         sys_socket: Ensure ss_family field on AIX.
43202         * lib/sys_socket.in.h (ss_family): New macro definition.
43203         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Set
43204         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY. Set SYS_SOCKET_H if necessary.
43205         (gl_SYS_SOCKET_H_DEFAULTS): Initialize
43206         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
43207         * modules/sys_socket (Makefile.am): Substitute
43208         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
43209         * doc/posix-headers/sys_socket.texi: Mention the AIX bug.
43211 2010-11-27  Bruno Haible  <bruno@clisp.org>
43213         readline: Improve configure output.
43214         * m4/readline.m4 (gl_FUNC_READLINE): Make the
43215         "checking for readline..." result understandable.
43217 2010-11-27  Bruno Haible  <bruno@clisp.org>
43219         *printf-posix: Detect a bug on Solaris 10/x86.
43220         * m4/printf.m4 (gl_PRINTF_PRECISION): Detect crash with large precision
43221         for floating-point output.
43222         * tests/test-vasnprintf-posix.c (test_function): Test precision with %f
43223         directive.
43224         * tests/test-snprintf-posix.h (test_function): Likewise.
43225         * tests/test-sprintf-posix.h (test_function): Likewise.
43226         * tests/test-vasprintf-posix.c (test_function): Likewise.
43227         * doc/posix-functions/fprintf.texi: Mention Solaris/x86 bug.
43228         * doc/posix-functions/printf.texi: Likewise.
43229         * doc/posix-functions/snprintf.texi: Likewise.
43230         * doc/posix-functions/sprintf.texi: Likewise.
43231         * doc/posix-functions/vfprintf.texi: Likewise.
43232         * doc/posix-functions/vprintf.texi: Likewise.
43233         * doc/posix-functions/vsnprintf.texi: Likewise.
43234         * doc/posix-functions/vsprintf.texi: Likewise.
43235         * doc/glibc-functions/obstack_printf.texi: Likewise.
43236         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
43238 2010-11-27  Bruno Haible  <bruno@clisp.org>
43240         Fix link error when module libunistring-optional is in use.
43241         * modules/striconveh-tests (Makefile.am): Link with $(LIBUNISTRING).
43242         * modules/striconveha-tests (Makefile.am): Likewise.
43244 2010-11-27  Bruno Haible  <bruno@clisp.org>
43246         regex: Mention link dependencies.
43247         * modules/regex (Link): New section.
43248         * modules/rpmatch (Link): Likewise.
43249         * modules/regex-quote-tests (Makefile.am): Link with $(LIBINTL).
43251 2010-11-27  Bruno Haible  <bruno@clisp.org>
43253         ftoastr: Fix compilation error on Solaris.
43254         * lib/ftoastr.c: Include <config.h>.
43256 2010-11-27  Bruno Haible  <bruno@clisp.org>
43258         getloadavg: Update documentation.
43259         * doc/glibc-functions/getloadavg.texi: Mention the Solaris problem.
43261 2010-11-27  Bruno Haible  <bruno@clisp.org>
43263         sys_socket: Fix test whether the functions are declared.
43264         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Include <sys/socket.h>,
43265         not <sys/select.h>.
43267 2010-11-27  Bruno Haible  <bruno@clisp.org>
43269         getpass: Make sure to get system declaration on some platforms.
43270         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU): Require
43271         gl_USE_SYSTEM_EXTENSIONS.
43272         * modules/getpass (Depends-on): Add extensions.
43274 2010-11-26  Bruno Haible  <bruno@clisp.org>
43276         iconv-h: Fix test-iconv-h-c++ failure on Solaris 11 2010-11.
43277         * lib/iconv.in.h (iconv_open, iconv, iconv_close): Define only if the
43278         'iconv' module is present.
43279         (ICONV_CONST): New macro.
43280         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize GNULIB_ICONV and
43281         ICONV_CONST.
43282         * m4/iconv.m4 (AM_ICONV): If the gnulib module 'iconv-h' is present,
43283         set ICONV_CONST.
43284         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Don't set ICONV_CONST
43285         here.
43286         * modules/iconv (configure.ac): Invoke gl_ICONV_MODULE_INDICATOR.
43287         * modules/iconv-h (Makefile.am): Substitute GNULIB_ICONV.
43288         * tests/test-iconv-h.c (ICONV_CONST): Don't define here.
43289         * tests/test-iconv-h-c++.cc (ICONV_CONST): Don't define here.
43290         (iconv_open, iconv, iconv_close): Test only if the 'iconv' module is
43291         present.
43293 2010-11-25  Paul Eggert  <eggert@cs.ucla.edu>
43295         ftoastr: comment fix
43296         * lib/ftoastr.c: "little" -> "little or no" in comment
43298 2010-11-24  Paul Eggert  <eggert@cs.ucla.edu>
43300         stdint: port to GCC 4.3 + OSX + Octave
43301         On this platform, stdint.h is buggy and defines int64_t to long
43302         long int.  The replacement defined it to long int, causing
43303         problems with C++ style name mangling.  Instead, trust the system
43304         definition if INT64_MAX is defined, and likewise for the unsigned
43305         variant.   Problem reported by Jarno Rajahalme in
43306         <http://lists.gnu.org/r/bug-gnulib/2010-04/msg00143.html>.
43307         * lib/stdint.in.h (GL_INT64_T): Define if INT64_MAX is defined,
43308         and don't mess with int64_t and INT64_MAX in this case.
43309         (GL_UINT64_T): Likewise for UINT64_MAX and uint64_t.
43311 2010-11-24  Bruno Haible  <bruno@clisp.org>
43313         doc: Corrections regarding MacOS X 10.4 and 10.5.
43314         * doc/{glibc,posix,pastposix}-functions/*.texi: Update info about
43315         MacOS X.
43316         Reported by Simon Josefsson.
43318 2010-11-22  Ben Pfaff  <blp@cs.stanford.edu>
43320         Uninstall ".bin" files installed by relocwrapper.
43321         * modules/relocatable-prog-wrapper (uninstall-relocwrapper):
43322         Recursively run "make uninstall" with ".bin" prefixed to EXEEXT,
43323         unless it is already there.
43325 2010-11-21  Bruno Haible  <bruno@clisp.org>
43327         Update for NetBSD 5.0.
43328         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
43329         NetBSD; the test fails on NetBSD 5.0.
43330         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
43331         about NetBSD.
43333 2010-11-21  Bruno Haible  <bruno@clisp.org>
43335         Update for HP-UX 11.23 and HP-UX 11.31.
43336         * doc/{glibc,posix}-{headers,functions}/*.texi: Update info about
43337         HP-UX.
43339 2010-11-21  Bruno Haible  <bruno@clisp.org>
43341         Update for MacOS X 10.5.
43342         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
43343         MacOS X; the test fails on MacOS X 10.5.8.
43344         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
43345         about MacOS X.
43347 2010-11-20  Joel E. Denny  <joeldenny@joeldenny.org>
43349         bootstrap: add bootstrap_sync option.
43350         See discussion at
43351         <http://lists.gnu.org/r/bug-gnulib/2010-10/msg00369.html>,
43352         <http://lists.gnu.org/r/bug-gnulib/2010-11/msg00200.html>.
43353         * build-aux/bootstrap: Accept --bootstrap-sync to update
43354         bootstrap if it is not identical to the local gnulib's
43355         bootstrap.  Accept bootstrap_sync=true in bootstrap.conf to
43356         enable this by default.  Accept --no-bootstrap-sync to disable
43357         it.
43359 2010-11-20  Bruno Haible  <bruno@clisp.org>
43361         Ensure that <features.h> is included before __GLIBC__ is tested.
43362         * lib/printf-parse.h: Include <features.h>.
43363         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gl_FEATURES_H.
43364         Reported by Mike Frysinger <vapier@gentoo.org>.
43366         Ensure that <features.h> is included before __GLIBC__ is tested.
43367         * lib/wchar.in.h: Include <features.h>.
43368         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_FEATURES_H.
43369         * modules/wchar (Makefile.am): Substitute HAVE_FEATURES_H.
43370         Reported by Mike Frysinger <vapier@gentoo.org>.
43372         Ensure that <features.h> is included before __GLIBC__ is tested.
43373         * lib/arpa_inet.in.h: Include <features.h>.
43374         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Require gl_FEATURES_H.
43375         * modules/arpa_inet (Makefile.am): Substitute HAVE_FEATURES_H.
43376         Reported by Mike Frysinger <vapier@gentoo.org>.
43378         Ensure that <features.h> is included before __GLIBC__ is tested.
43379         * build-aux/link-warning.h: Include <features.h>.
43380         * modules/link-warning (configure.ac): Require gl_FEATURES_H.
43381         (Makefile.am): Substitute HAVE_FEATURES_H into link-warning.h.
43382         Reported by Mike Frysinger <vapier@gentoo.org>.
43384         Ensure that <features.h> is included before __GLIBC__ is tested.
43385         * m4/gnulib-common.m4 (gl_FEATURES_H): New macro.
43386         Reported by Mike Frysinger <vapier@gentoo.org>.
43388 2010-11-20  Bruno Haible  <bruno@clisp.org>
43390         memmem: Fix autoconf test.
43391         * m4/memmem.m4 (gl_FUNC_MEMMEM): Test HAVE_DECL_MEMMEM, not HAVE_MEMMEM.
43393 2010-11-20  Bruno Haible  <bruno@clisp.org>
43395         Port to uClibc.
43396         * build-aux/link-warning.h (GL_LINK_WARNING): Treat uClibc like glibc.
43397         * lib/fcntl.in.h: Likewise.
43398         * lib/hard-locale.c (GLIBC_VERSION): Likewise.
43399         * lib/mbrtowc.c (mbrtowc): Likewise.
43400         * lib/relocatable.c (find_shared_library_fullname): Likewise.
43401         * lib/strerror_r.c: Likewise.
43402         * lib/unistr/u8-strnlen.c: Likewise.
43403         * lib/vasnprintf.c (decimal_point_char): Likewise.
43404         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
43405         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
43406         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
43407         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
43408         * tests/test-sigaction.c (handler, main): Likewise.
43409         * lib/freading.h: Treat uClibc like a non-glibc platform.
43410         * lib/freading.c: Likewise.
43411         * lib/gettext.h: Likewise.
43412         * lib/localename.c (gl_locale_name_thread_unsafe, HAVE_LOCALE_NULL):
43413         Likewise.
43414         * lib/printf-parse.h (FLAG_LOCALIZED): Likewise.
43415         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
43416         * lib/propername.c (proper_name_utf8): Likewise.
43417         * lib/spawn.in.h: Likewise.
43418         * lib/striconv.c (mem_cd_iconv, str_cd_iconv, str_iconv): Likewise.
43419         * lib/striconveh.c (iconveh_open, iconv_carefully, iconv_carefully_1,
43420         mem_cd_iconveh_internal): Likewise.
43421         * lib/striconveha.c (mem_iconveha, str_iconveha): Likewise.
43422         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
43423         strstr, strcasestr): Likewise.
43424         * lib/unicodeio.c (unicode_to_mb): Likewise.
43425         * lib/uniconv/u16-conv-from-enc.c (UTF16_NAME): Likewise.
43426         * lib/uniconv/u16-conv-to-enc.c (UTF16_NAME): Likewise.
43427         * lib/uniconv/u16-strconv-to-enc.c (UTF16_NAME): Likewise.
43428         * lib/uniconv/u32-conv-from-enc.c (UTF32_NAME): Likewise.
43429         * lib/uniconv/u32-conv-to-enc.c (UTF32_NAME): Likewise.
43430         * lib/uniconv/u32-strconv-to-enc.c (UTF32_NAME): Likewise.
43431         * lib/unistr/u8-stpncpy.c: Likewise.
43432         * lib/vasnprintf.c (VASNPRINTF): Likewise.
43433         * lib/xmalloc.c (HAVE_GNU_CALLOC): Likewise.
43434         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
43435         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
43436         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
43437         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Likewise.
43438         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Likewise.
43439         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Likewise.
43440         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
43441         Likewise.
43442         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
43443         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
43444         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
43445         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
43446         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
43447         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
43448         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
43449         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
43450         * tests/test-getopt.h (OPTIND_MIN): Likewise.
43451         * tests/test-striconveha.c (main): Likewise.
43452         * tests/test-vasnprintf-posix.c (test_function): Likewise.
43453         * tests/test-vasnprintf-posix3.c (test_function, main): Likewise.
43454         * doc/posix-functions/getdelim.texi: Mention an uClibc bug.
43455         * doc/posix-functions/getline.texi: Likewise.
43456         Reported by Mike Frysinger <vapier@gentoo.org>.
43458 2010-11-20  Bruno Haible  <bruno@clisp.org>
43460         nproc: Fix condition.
43461         * lib/nproc.c: Test HAVE_PTHREAD_GETAFFINITY_NP, not
43462         HAVE_PTHREAD_AFFINITY_NP.
43464 2010-11-20  Bruno Haible  <bruno@clisp.org>
43466         Fix a comment.
43467         * lib/vasnprintf.c (VASNPRINTF): Fix comment.
43469 2010-11-19  Paul Eggert  <eggert@cs.ucla.edu>
43471         ftoastr: don't assume snprintf
43472         * lib/ftoastr.c (snprintf) [! GNULIB_SNPRINTF_POSIX]:
43473         Implement a subset of snprintf here, by using sprintf safely.
43474         * modules/ftoastr (Depends-on): Remove snprintf.
43476 2010-11-19  Jim Meyering  <meyering@redhat.com>
43478         test-rename.h: fix compilation failure
43479         * tests/test-rename.h (test_rename): Add omitted "}".
43481 2010-11-17  Jim Meyering  <meyering@redhat.com>
43483         maint.mk: add a URL discussing the no-@acronym policy
43484         * top/maint.mk (sc_texinfo_acronym): Add a URL in a comment.
43486 2010-11-18  Paul Eggert  <eggert@cs.ucla.edu>
43488         ftoastr: depend on snprintf, improve comments
43489         * lib/ftoastr.c: Also mention Loitsch's draft.
43490         * lib/ftoastr.h: Require WIDTH to be nonnegative.  This isn't
43491         needed in the current implementation, but it might simplify
43492         speeding up the code later.
43493         * modules/ftoastr: Depend on snprintf; this improves portability.
43494         Suggested by Bruno Haible in the same email.
43496         ftoastr: port to hosts lacking strtof and strtold
43497         Problem reported by Bruno Haible in
43498         <http://lists.gnu.org/r/bug-gnulib/2010-11/msg00242.html>.
43499         * lib/ftoastr.c (STRTOF): Define to strtod if in a pre-C99
43500         environment and strtold (and presumably strtof) are not available.
43501         * modules/ftoastr (Files): Add m4/c-strtod.m4.
43502         (configure.ac): Require gl_C99_STRTOLD.
43504 2010-11-18  Bruno Haible  <bruno@clisp.org>
43506         c-strtold: Avoid link error on AIX 7.
43507         * lib/c-strtod.c: Test also HAVE_STRTOD_L or HAVE_STRTOLD_L.
43508         * m4/c-strtod.m4 (gl_C_STRTOD): Test whether strtod_l exists.
43509         (gl_C_STRTOLD): Test whether strtold_l exists.
43510         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
43512 2010-11-17  Paul Eggert  <eggert@cs.ucla.edu>
43514         intprops: new macro INT_BITS_STRLEN_BOUND
43515         * lib/intprops.h (INT_BITS_STRLEN_BOUND): New macro, needed by
43516         ftoastr.h.  This exposes an internal of intprops.h that was formerly
43517         not exposed.  Also, it uses a slightly tighter bound than before;
43518         though this makes no practical difference, we might as well be as
43519         tight as we easily can.
43521         ftoastr: new module, for lossless conversion of floats to short strings
43522         * lib/ftoastr.h, lib/ftoastr.c, lib/dtoastr.c, lib/ldtoastr.c:
43523         * modules/ftoastr: New files.
43525 2010-11-15  Paul Eggert  <eggert@cs.ucla.edu>
43527         bootstrap: port to Solaris sed
43528         * build-aux/bootstrap (get_version): Port to Solaris sed.
43529         See Ralf Wildenhues's note in
43530         <http://lists.gnu.org/r/bug-gnulib/2010-11/msg00156.html>.
43532 2010-11-14  Jim Meyering  <meyering@redhat.com>
43534         maint.mk: rename variable: s/noteworthy/gl_noteworthy_news_/
43535         * top/maint.mk (gl_noteworthy_news_): Rename from "noteworthy"
43536         and move definition closer to sole use.
43538 2010-11-13  Jim Meyering  <meyering@redhat.com>
43540         remove autoconf-2.57 work-around requiring AC_PROG_EGREP and AC_PROG_CPP
43541         Now we require at least autoconf-2.59, which means the work-around
43542         is no longer needed.
43543         * m4/alloca.m4 (gl_FUNC_ALLOCA): Remove work-around.
43544         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
43545         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
43546         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
43547         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
43549 2010-11-13  Bruno Haible  <bruno@clisp.org>
43551         rename, renameat: Avoid test failures at NFS mounted locations.
43552         * tests/test-rename.h (dentry_exists, assert_nonexistent): New
43553         functions.
43554         (test_rename): Use assert_nonexistent.
43555         * tests/test-rename.c: Include <dirent.h>.
43556         * tests/test-renameat.c: Likewise.
43557         Reported by Gary V. Vaughan <gary@gnu.org>.
43559         rename, renameat: Document Linux bug with NFS
43560         <http://lists.gnu.org/r/bug-gnulib/2010-11/msg00154.html>.
43561         * doc/posix-functions/rename.texi: Mention the NFS bug on Linux.
43562         * doc/posix-functions/renameat.texi: Likewise.
43563         Suggested by Eric Blake.
43565 2010-11-13  Bruno Haible  <bruno@clisp.org>
43567         rename test: Add comments.
43568         * tests/test-rename.h (test_rename): Add structure and comments.
43570 2010-11-13  Eric Blake  <eblake@redhat.com>
43572         maintainer-makefile: cover a few more files
43573         * top/maint.mk (sc_prohibit_test_double_equal): Also cover shell
43574         scripts generated within C files, for libvirt.
43576 2010-11-13  Bruno Haible  <bruno@clisp.org>
43578         unistr/u8-mbtouc: Improve handling of ill-formed UTF-8 input.
43579         * lib/unistr/u8-mbtouc.c (u8_mbtouc): For an invalid multibyte
43580         character, return the number of bytes that belong together, not always
43581         1.
43582         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
43583         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
43584         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
43585         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtouc to determine the
43586         number of bytes of an invalid character.
43587         * tests/unistr/test-u8-mbtouc.c (test_safe_function): New function.
43588         (main): Invoke it.
43589         * tests/unistr/test-u8-mbtouc.h (test_function): Update two test
43590         results.
43591         * tests/unistr/test-u8-mbsnlen.c (main): Test various kinds of
43592         malformed byte sequences.
43593         * modules/unistr/u8-mbtouc (configure.ac): Bump version number.
43594         * modules/unistr/u8-mbtouc-unsafe (configure.ac): Likewise.
43595         * modules/unistr/u8-mbsnlen (configure.ac): Likewise.
43596         Reported by Ben Pfaff and Paolo Bonzini.
43598 2010-11-13  Bruno Haible  <bruno@clisp.org>
43600         openat: Work around glibc bug with fchownat() and empty file names.
43601         * m4/openat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): New macro.
43602         (gl_FUNC_FCHOWNAT): Invoke it.
43603         * lib/fchownat.c (rpl_fchownat): Handle the empty file name specially.
43604         * doc/posix-functions/fchownat.texi: Document the glibc bug.
43605         Reported by Gary V. Vaughan <gary@gnu.org>.
43607 2010-11-13  Bruno Haible  <bruno@clisp.org>
43609         openat: Ensure autoconf macro ordering.
43610         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Require
43611         gl_USE_SYSTEM_EXTENSIONS.
43612         (gl_FUNC_FCHOWNAT): Require gl_UNISTD_H_DEFAULTS.
43614 2010-11-13  Bruno Haible  <bruno@clisp.org>
43616         Update comments.
43617         * lib/unistr/u8-check.c: Update file name in comments.
43618         * lib/unistr/u8-mblen.c: Likewise.
43619         * lib/unistr/u8-prev.c: Likewise.
43620         * lib/unistr/u8-strmblen.c: Likewise.
43621         * lib/unistr/u8-strmbtouc.c: Likewise.
43623 2010-11-13  Jim Meyering  <meyering@redhat.com>
43625         tests: avoid test failure on Solaris 10 due to lack of PATH export
43626         * tests/test-update-copyright.sh: Don't forget to export PATH.
43628         init.sh: ensure that IFS is defined, just in case...
43629         * tests/init.sh (setup_): Ensure that IFS is defined,
43630         so that saving and restoring it works as expected.  This
43631         appears to be useful at least for an old version of dash
43632         from a long time ago (RH 6).  See here for details:
43633         http://thread.gmane.org/gmane.comp.gnu.coreutils.general/436/focus=455
43635         maint.mk: tighten "test a == b" check
43636         * top/maint.mk (sc_prohibit_test_double_equal): Restrict this
43637         test to files that contain something like #!/bin/sh.
43638         Without this, coreutils would get two false positives in
43639         the comments of C source files.
43641 2010-11-12  Eric Blake  <eblake@redhat.com>
43643         bootstrap: fix typo in previous attempt
43644         * build-aux/bootstrap (buildreq): Correct the grouping.
43645         Reported by Paul Eggert.
43647         maintainer-makefile: prohibit test x == x
43648         * top/maint.mk (sc_prohibit_test_double_equal): New rule.
43649         Based on a report by Matthias Bolte.
43651         bootstrap: allow FreeBSD gzip
43652         * build-aux/bootstrap (get_version): Parse FreeBSD gzip version,
43653         which has no '.' and goes to stderr.
43654         * build-aux/bootstrap.conf (buildreq): Improve the sample file.
43655         Reported by Matthias Bolte.
43657         maintainer-makefile: check for i18n setup
43658         * top/maint.mk (sc_bindtextdomain): Check for evidence that _()
43659         will likely work.
43661 2010-11-12  Bruno Haible  <bruno@clisp.org>
43663         sleep, nanosleep: Work around Linux 2.6.9 nanosleep bug.
43664         * lib/sleep.c (rpl_sleep): Split in chunks no larger than 24 days.
43665         * lib/nanosleep.c (nanosleep): Likewise.
43667 2010-11-11  Bruno Haible  <bruno@clisp.org>
43669         fcntl-h: Fix for use of C++ on glibc systems.
43670         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
43671         also on glibc systems in C++ mode.
43672         Reported by Gary V. Vaughan <gary@gnu.org>.
43674 2010-11-11  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
43676         mknod: avoid false failure with dash
43677         * m4/mknod.m4 (gl_FUNC_MKNOD): Use portable shell syntax.
43679 2010-11-11  Paul Eggert  <eggert@cs.ucla.edu>
43681         unlink: Fix "is it should" typo in diagnostic.
43682         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix typo, as per Reuben Thomas in
43683         <http://lists.gnu.org/r/bug-gnulib/2010-11/msg00106.html>.
43685 2010-11-11  Bruno Haible  <bruno@clisp.org>
43687         Tests for module 'strerror_r-posix'.
43688         * modules/strerror_r-posix-tests: New file.
43689         * tests/test-strerror_r.c: New file.
43690         * tests/test-string-c++.cc: Check the signature of strerror_r.
43692         New module 'strerror_r-posix'.
43693         * lib/string.in.h (strerror_r): New declaration.
43694         * lib/strerror_r.c: New file.
43695         * m4/strerror_r.m4: New file.
43696         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Check for the declaration
43697         of strerror_r.
43698         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERROR_R,
43699         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
43700         * modules/strerror_r-posix: New file.
43701         * modules/string (Makefile.am): Substitute GNULIB_STRERROR_R,
43702         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
43703         * doc/posix-functions/strerror_r.texi: Mention the new module and the
43704         portability problems.
43706 2010-11-11  Torsten Scheck  <Torsten.Scheck@Leica-Microsystems.com> (tiny change)
43708         * build-aux/pmccabe2html: Fixed a off-by-one error, so last input
43709         line is also considered for output. Quoted function name in shell
43710         command, so temporary files for functions like MyClass::operator()
43711         are removed correctly without errors.
43713 2010-11-09  Bruno Haible  <bruno@clisp.org>
43715         * doc/posix-functions/strerror.texi: List more failing platforms.
43717         * doc/posix-functions/strerror.texi: Add a comment.
43719 2010-11-07  Paul Eggert  <eggert@cs.ucla.edu>
43721         fdopendir: fix bug on MacOS X when low on file descriptors
43723         * lib/fdopendir.c (REPLACE_FCHDIR): #define to 0 if not defined.
43724         (fdopendir_with_dup, fd_clone_opendir): Now have extra CWD arg.
43725         All callers changed.
43726         (fdopendir): Invoke save_cwd at the top level, not after using
43727         multiple dup() calls to use up file descriptors.  Then retry
43728         fdopendir_with_dup.  This avoids failure with EMFILE if FD is 1
43729         less than the maximum number of open file descriptors, because
43730         save_cwd fails with errno == EMFILE.  Problem reported by tsteven4
43731         on Mac OS X 10.6.4 for tar 1.24
43732         <http://lists.gnu.org/r/bug-tar/2010-10/msg00084.html>
43733         <http://lists.gnu.org/r/bug-tar/2010-11/msg00000.html>
43734         and for tar 1.25
43735         <http://lists.gnu.org/r/bug-tar/2010-11/msg00038.html>.
43737 2010-11-07  Bruno Haible  <bruno@clisp.org>
43739         vasnprintf: Support I flag on glibc systems.
43740         * lib/printf-parse.h (FLAG_LOCALIZED): New macro.
43741         * lib/printf-parse.c (PRINTF_PARSE): Handle the 'I' flag.
43742         * lib/vasnprintf.c (VASNPRINTF): Pass the 'I' flag on to the system's
43743         snprintf function.
43744         * tests/test-vasnprintf-posix.c (test_function): Test the 'I' flag on
43745         glibc systems.
43746         * tests/test-vasnprintf-posix3.c: New file.
43747         * modules/vasnprintf-posix-tests (Files): Add it.
43748         (TESTS, check_PROGRAMS): Add test-vasnprintf-posix3.
43750 2010-11-05  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
43752         [html] Fix copy/paste bug: Use unique name for compiler warnings.
43753         * MODULES.html.sh: For compiler warnings, use name
43754         `ansic_ext_compwarn' since `ansic_ext_misc' is already taken.
43756 2010-11-05  Eric Blake  <eblake@redhat.com>
43758         ceil, floor: avoid spurious failure with icc
43759         * tests/test-ceilf2.c (ceilf_reference): Avoid icc's use of DAZ
43760         [denormals-as-zero] when optimizing without -mieee-fp option.
43761         * tests/test-floorf2.c (floorf_reference): Likewise.
43762         * tests/test-ceilf1.c (dummy): New function.
43763         (main): Use it to outsmart icc's optimization.
43764         * tests/test-floorf1.c (dummy, main): Likewise.
43766         tests: require working signbit
43767         * modules/ceilf-tests (Depends-on): Add signbit.
43768         * modules/ceill-tests (Depends-on): Likewise.
43769         * modules/floorf-tests (Depends-on): Likewise.
43770         * modules/floorl-tests (Depends-on): Likewise.
43771         * modules/round-tests (Depends-on): Likewise.
43772         * modules/roundf-tests (Depends-on): Likewise.
43773         * modules/roundl-tests (Depends-on): Likewise.
43774         * modules/trunc-tests (Depends-on): Likewise.
43775         * modules/truncf-tests (Depends-on): Likewise.
43776         * modules/truncl-tests (Depends-on): Likewise.
43778         strtod: work around icc bug
43779         * lib/strtod.c (minus_zero): Define to working value.
43780         (strtod): Use it to avoid icc bug.
43782         copysign: enhance tests
43783         * modules/copysign-tests (Files): Add minus-zero.h.
43784         * tests/test-copysign.c (main): Also test zeros.
43786 2010-11-04  Eric Blake  <eblake@redhat.com>
43788         ceil, floor, round, trunc: enhance tests of -0
43789         * tests/test-ceilf1.c (main): Ensure correct sign of result.
43790         * tests/test-ceill.c (main): Likewise.
43791         * tests/test-floorf1.c (main): Likewise.
43792         * tests/test-floorl.c (main): Likewise.
43793         * tests/test-round1.c (main): Likewise.
43794         * tests/test-roundf1.c (main): Likewise.
43795         * tests/test-roundl.c (main): Likewise.
43796         * tests/test-trunc1.c (main): Likewise.
43797         * tests/test-truncf1.c (main): Likewise.
43798         * tests/test-truncl.c (main): Likewise.
43800 2010-11-04  Eric Blake  <eblake@redhat.com>
43802         frexp, tests: work around ICC bug with -zero
43803         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Compute -0.0 in a way that
43804         works with more compilers.
43805         * tests/minus-zero.h: New file.
43806         * modules/ceilf-tests (Files): Include it.
43807         * modules/ceill-tests (Files): Likewise.
43808         * modules/floorf-tests (Files): Likewise.
43809         * modules/floorl-tests (Files): Likewise.
43810         * modules/frexp-nolibm-tests (Files): Likewise.
43811         * modules/frexp-tests (Files): Likewise.
43812         * modules/frexpl-nolibm-tests (Files): Likewise.
43813         * modules/frexpl-tests (Files): Likewise.
43814         * modules/isnan-tests (Files): Likewise.
43815         * modules/isnand-nolibm-tests (Files): Likewise.
43816         * modules/isnand-tests (Files): Likewise.
43817         * modules/isnanf-nolibm-tests (Files): Likewise.
43818         * modules/isnanf-tests (Files): Likewise.
43819         * modules/isnanl-nolibm-tests (Files): Likewise.
43820         * modules/isnanl-tests (Files): Likewise.
43821         * modules/round-tests (Files): Likewise.
43822         * modules/roundf-tests (Files): Likewise.
43823         * modules/roundl-tests (Files): Likewise.
43824         * modules/ldexpl-tests (Files): Likewise.
43825         * modules/signbit-tests (Files): Likewise.
43826         * modules/snprintf-posix-tests (Files): Likewise.
43827         * modules/sprintf-posix-tests (Files): Likewise.
43828         * modules/strtod-tests (Files): Likewise.
43829         * modules/trunc-tests (Files): Likewise.
43830         * modules/truncf-tests (Files): Likewise.
43831         * modules/truncl-tests (Files): Likewise.
43832         * modules/vsnprintf-posix-tests (Files): Likewise.
43833         * modules/vsprintf-posix-tests (Files): Likewise.
43834         * modules/vasnprintf-posix-tests (Files): Likewise.
43835         * modules/vasprintf-posix-tests (Files): Likewise.
43836         * tests/test-ceilf1.c (main): Use it.
43837         * tests/test-ceill.c (main): Likewise.
43838         * tests/test-floorf1.c (main): Likewise.
43839         * tests/test-floorl.c (main): Likewise.
43840         * tests/test-frexp.c (main): Likewise.
43841         * tests/test-frexpl.c (main): Likewise.
43842         * tests/test-isnan.c (main): Likewise.
43843         * tests/test-isnand.h (main): Likewise.
43844         * tests/test-isnanf.h (main): Likewise.
43845         * tests/test-isnanl.h (main): Likewise.
43846         * tests/test-ldexpl.c (main): Likewise.
43847         * tests/test-round.c (main): Likewise.
43848         * tests/test-roundf.c (main): Likewise.
43849         * tests/test-roundl.c (main): Likewise.
43850         * tests/test-signbit.c (test_signbitf, test_signbitd)
43851         (test_signbitl): Likewise.
43852         * tests/test-snprintf-posix.h (test_function): Likewise.
43853         * tests/test-sprintf-posix.h (test_function): Likewise.
43854         * tests/test-strtod.c (main): Likewise.
43855         * tests/test-trunc1.c (main): Likewise.
43856         * tests/test-truncf1.c (main): Likewise.
43857         * tests/test-truncl.c (main): Likewise.
43859         isnanl: work around icc bug
43860         * lib/isnan.c (FUNC): Compute run-time NaN under ICC as well.
43862 2010-11-03  Eric Blake  <eblake@redhat.com>
43864         tests: fix compiler warnings
43865         * tests/test-getopt.h (test_getopt): Fix condition.
43866         * tests/test-getopt_long.h (test_getopt_long): Likewise.
43867         * tests/test-pipe2.c (main): Likewise.
43868         * tests/test-quotearg-simple.c (main): Avoid icc warning.
43870         utimens: fix broken m4 test
43871         * m4/utimens.m4 (gl_UTIMENS): Include correct headers.
43873 2010-10-28  Bruno Haible  <bruno@clisp.org>
43875         posix_spawn*, getdtablesize: Relax license.
43876         * modules/posix_spawn (License): Change to LGPLv2+.
43877         * modules/posix_spawnp (License): Likewise.
43878         * modules/posix_spawn-internal (License): Likewise.
43879         * modules/posix_spawnattr_init (License): Likewise.
43880         * modules/posix_spawnattr_getflags (License): Likewise.
43881         * modules/posix_spawnattr_setflags (License): Likewise.
43882         * modules/posix_spawnattr_getpgroup (License): Likewise.
43883         * modules/posix_spawnattr_setpgroup (License): Likewise.
43884         * modules/posix_spawnattr_getschedparam (License): Likewise.
43885         * modules/posix_spawnattr_setschedparam (License): Likewise.
43886         * modules/posix_spawnattr_getschedpolicy (License): Likewise.
43887         * modules/posix_spawnattr_setschedpolicy (License): Likewise.
43888         * modules/posix_spawnattr_getsigdefault (License): Likewise.
43889         * modules/posix_spawnattr_setsigdefault (License): Likewise.
43890         * modules/posix_spawnattr_getsigmask (License): Likewise.
43891         * modules/posix_spawnattr_setsigmask (License): Likewise.
43892         * modules/posix_spawnattr_destroy (License): Likewise.
43893         * modules/posix_spawn_file_actions_init (License): Likewise.
43894         * modules/posix_spawn_file_actions_addclose (License): Likewise.
43895         * modules/posix_spawn_file_actions_adddup2 (License): Likewise.
43896         * modules/posix_spawn_file_actions_addopen (License): Likewise.
43897         * modules/posix_spawn_file_actions_destroy (License): Likewise.
43898         * modules/getdtablesize (License): Likewise.
43899         Requested by Adam Stokes <ajs@redhat.com> for use in netcf.
43901 2010-10-26  Bruno Haible  <bruno@clisp.org>
43903         unistd: Refine workaround from 2009-12-23 against Cygwin bug.
43904         * lib/unistd.in.h: Don't include <stdio.h> and <fcntl.h>, except on
43905         Cygwin and mingw.
43906         Suggested by Eric Blake.
43908 2010-10-26  Bruno Haible  <bruno@clisp.org>
43910         stdio: Work around compilation error due to renameat() on Solaris 10.
43911         * lib/stdio.in.h: Include <unistd.h> on Solaris.
43912         * lib/renameat.c: Don't include <unistd.h> here.
43913         * doc/posix-functions/renameat.texi: Mention the Solaris problem.
43914         Reported by Paul Eggert and Eric Blake.
43916 2010-10-26  Paul Eggert  <eggert@cs.ucla.edu>
43918         renameat: port to Solaris 10, which declares renameat in unistd.h
43920         * lib/renameat.c: Include unistd.h before stdio.h, because
43921         Solaris 10 declares renameat in unistd.h.  Problem encountered
43922         when building GNU tar 1.24 on Solaris 10.
43924 2010-10-26  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
43926         fdopendir: fix C89 compilation
43927         * lib/fdopendir.c (fd_clone_opendir): Move declaration for older
43928         compilers.
43930 2010-10-23  Paul Eggert  <eggert@cs.ucla.edu>
43932         inttostr: simplify by removing unnecessary redundancy
43933         * lib/anytostr.c: Don't include verify.h.
43934         (anytostr): Don't verify that TYPE_SIGNED (inttype) equals
43935         inttype_is_signed.  Instead, disable the bogus GCC warnings, so that
43936         there's no need for inttype_is_signed and for calling TYPE_SIGNED.
43937         * lib/imaxtostr.c (inttype_is_signed): Remove; no longer needed.
43938         * lib/inttostr.c, lib/offtostr.c, lib/uinttostr.c, lib/umaxtostr.c:
43939         Likewise.
43940         * modules/inttostr (Depends-on): Remove 'verify'.
43942 2010-10-23  Bruno Haible  <bruno@clisp.org>
43944         nl_langinfo: Mention problem with CRNCYSTR on NetBSD 5.0.
43945         * doc/posix-functions/nl_langinfo.texi: Mention problem with CRNCYSTR.
43946         Reported by Eric Blake.
43948 2010-10-23  Bruno Haible  <bruno@clisp.org>
43950         Tests: Fix LOCALE_JA on MirBSD 10.
43951         * m4/locale-ja.m4 (gt_LOCALE_JA): Reject a locale identifier that leads
43952         to an UTF-8 locale.
43953         * m4/locale-fr.m4 (gt_LOCALE_FR): Likewise.
43954         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
43955         Reported by Eric Blake.
43957 2010-10-21  Bruno Haible  <bruno@clisp.org>
43959         nl_langinfo test: Avoid test failure on NetBSD 5.
43960         * tests/test-nl_langinfo.c (main): Relax test of nl_langinfo(CRNCYSTR).
43961         Reported by Eric Blake.
43963 2010-10-21  Eric Blake  <eblake@redhat.com>
43965         c-stack: work around libsigsegv 2.8 bug
43966         * lib/c-stack.c (SIGSTKSZ): Increase size to avoid alternate stack
43967         overflow on at least PowerPC64.
43969 2010-10-17  Bruno Haible  <bruno@clisp.org>
43971         userspec: Drop redundant file.
43972         * modules/userspec (Files): Remove lib/inttostr.h.
43974 2010-10-17  Bruno Haible  <bruno@clisp.org>
43976         nl_langinfo tests: Silence some warnings.
43977         * tests/test-nl_langinfo.c: Silence -Wtype-limits warnings.
43978         Reported by Jim Meyering.
43980 2010-10-17  Bruno Haible  <bruno@clisp.org>
43982         Make use of GCC's attribute __alloc_size__.
43983         * lib/xalloc.h (ATTRIBUTE_ALLOC_SIZE): New macro.
43984         (xmalloc, xzalloc, xcalloc, xrealloc, xmemdup, xnmalloc, xnrealloc,
43985         xcharalloc): Declare with ATTRIBUTE_ALLOC_SIZE.
43986         * lib/eealloc.h (eemalloc, eerealloc): Declare with attribute
43987         __alloc_size__.
43988         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
43989         Suggested by Jim Meyering.
43991 2010-10-16  Joel E. Denny  <joeldenny@joeldenny.org>
43993         bootstrap: anchor .gitignore entries.
43994         * build-aux/bootstrap (insert_sorted_if_absent): Replace all uses
43995         with...
43996         (insert_vc_ignore): ... this new function, which prepends `/' to
43997         all .gitignore entries before passing them to
43998         insert_sorted_if_absent.
44000 2010-10-16  Bruno Haible  <bruno@clisp.org>
44002         nextafter: Fix configure check.
44003         * modules/nextafter (configure.ac): Correct expected prototype.
44005 2010-10-16  Bruno Haible  <bruno@clisp.org>
44007         termios: Update documentation.
44008         * doc/posix-headers/termios.texi: Mention remaining mingw problems.
44010 2010-10-16  Bruno Haible  <bruno@clisp.org>
44012         tests: Make them compile with TinyCC.
44013         * tests/test-strstr.c (main): Remove parentheses around array
44014         initializer.
44016 2010-10-15  Eric Blake  <eblake@redhat.com>
44018         ignore-value: make header idempotent
44019         * lib/ignore-value.h: Add double-inclusion guards.
44020         Reported by Stefan Berger.
44022 2010-10-15  Jim Meyering  <meyering@redhat.com>
44024         GNUmakefile: handle "stable" target, not "major"
44025         * top/GNUmakefile (_is-dist-target): s/major/stable/ to match the
44026         lists in maint.mk and announce-gen.  Without this, "make stable"
44027         would fail to ensure that $(VERSION) is up to date.
44029 2010-10-15  Ludovic Courtès  <ludo@gnu.org>
44031         * lib/isnan.c (FUNC): Treat TinyCC (`__TINYC__') like `__SUNPRO_C'
44032         & co.
44034 2010-10-14  Bruno Haible  <bruno@clisp.org>
44036         vasnprintf: Don't set errno to 0.
44037         * lib/vasnprintf.c (VASNPRINTF): Save and restore errno around the
44038         block that sets it to 0.
44039         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
44041 2010-10-14  Bruno Haible  <bruno@clisp.org>
44043         socketlib: Fix.
44044         * modules/socketlib (Files): Add m4/sys_socket_h.m4. Needed for
44045         gl_PREREQ_SYS_H_WINSOCK2.
44046         Reported by Ian Beckwith <ianb@erislabs.net>.
44048 2010-10-13  Jim Meyering  <meyering@redhat.com>
44050         test-select-stdin.c: avoid warn_unused_result warnings
44051         * tests/test-select-stdin.c: Include "macros.h".
44052         ASSERT that read and fflush succeed.
44054 2010-10-13  Jim Meyering  <meyering@redhat.com>
44056         git-version-gen: do require git-VC'd files in cwd
44057         * build-aux/git-version-gen: Reject a git version string
44058         if there are no commits associated with the current directory.
44059         This avoids an unlikely false-positive (unrelated dir whose parent
44060         repository also contains a tag matching v*), as pointed out
44061         by Giuseppe Scrivano in
44062         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=23664
44064 2010-10-13  Paul Eggert  <eggert@cs.ucla.edu>
44066         argv-iter: omit nonconforming declaration
44067         * lib/argv-iter.h (enum argv_iter_err): Omit the useless
44068         enum arg_iter_err declaration, which doesn't conform to C99.
44069         Solaris 10 cc warns about this.
44071 2010-10-13  Eric Blake  <eblake@redhat.com>
44073         termios: fix compilation on mingw
44074         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Set default.
44075         (gl_TERMIOS_H): Adjust it on mingw.
44076         * modules/termios (Makefile.am): Substitute new key.
44077         * lib/termios.in.h (includes): Make include_next conditional.
44078         * doc/posix-headers/termios.texi (termios.h): Update
44079         documentation.
44080         Reported by Daniel P. Berrange.
44082 2010-10-13  Jim Meyering  <meyering@redhat.com>
44084         git-version-gen: don't require that .git/ be in the current dir
44085         * build-aux/git-version-gen: Adjust this script so that it works
44086         when run from any working directory beneath the top-level .git/-
44087         containing directory.  Inspired by a patch from Giuseppe Scrivano,
44088         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=21847
44090         test-select: avoid warn_unused_result warnings
44091         * tests/test-select.c: Include "macros.h".
44092         ASSERT that each call to read, write, and pipe succeeds.
44093         While not technically required, also check each "close".
44094         * modules/select-tests (Files): Add tests/macros.h.
44096         test-symlinkat: remove declaration of unused local
44097         * tests/test-symlinkat.c (main): Remove unused local, "buf".
44099         test-inttostr: avoid shadowing warnings
44100         * tests/test-inttostr.c (main): Rename local, "buf" to "b",
44101         and use malloc rather than the stack for the same reason as
44102         mentioned in the comment justifying the other allocation.
44104 2010-10-11  Bruno Haible  <bruno@clisp.org>
44106         stdlib: Allow multiple gnulib generated replacements to coexist.
44107         * lib/stdlib.in.h (struct random_data): Avoid identical redefinition.
44108         Reported by Sam Steingold <sds@gnu.org>.
44110 2010-10-11  Jim Meyering  <meyering@redhat.com>
44112         fix a documentation typo
44113         * doc/posix-functions/futimens.texi (futimens): Fix typo: s/itme/item/
44115 2010-10-11  Eric Blake  <eblake@redhat.com>
44117         futimens: work around Solaris 11 bug
44118         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect the bug.
44119         * tests/test-futimens.h (test_futimens): Enhance, rather than
44120         weaken test.
44121         * doc/posix-functions/futimens.texi (futimens): Document the bug.
44123 2010-10-11  Paul Eggert  <eggert@cs.ucla.edu>
44125         Indentation.
44126         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Indent
44127         higher-level operators more to the left.
44129 2010-10-11  Jim Meyering  <meyering@redhat.com>
44131         test-futimens: avoid unwarranted test failure on Solaris 5.11
44132         * tests/test-futimens.h (test_futimens): When provoking EBADF, use an
44133         invalid file descriptor, so we don't provoke EFAULT from Solaris 5.11,
44134         because it tries to dereference the NULL name argument.
44136 2010-10-11  Bruno Haible  <bruno@clisp.org>
44138         Indentation.
44139         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Improve
44140         indentation.
44142 2010-10-11  Jim Meyering  <meyering@redhat.com>
44144         spawn.in.h: make indentation consistent with parentheses
44145         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap):
44146         Make indentation consistent with parentheses.
44148 2010-10-11  Gary V. Vaughan  <gary@gnu.org>
44150         Fix mismatched parens in previous commit
44151         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Fix mismatched
44152         parens.
44154 2010-10-10  Paul Eggert  <eggert@cs.ucla.edu>
44156         rewrite int foo[2*X-1] to verify(X) or to int foo[X?1:-1]
44158         * lib/float+.h (verify_sizeof_flt, verify_sizeof_dbl):
44159         (verify_sizeof_ldbl): Rewrite 2*X-1 to X?1:-1.
44160         * lib/malloca.c: Include "verify.h".
44161         (verify1): Remove, replacing with a verify call.
44162         * lib/relocwrapper.c (verify1): Likewise.
44163         * lib/vasnprintf.c (mp_limb_verify, mp_twolimb_verify, TCHAR_T_verify):
44164         Likewise.
44165         * modules/malloca (Depends-on): Add 'verify'.
44166         * modules/relocatable-prog-wrapper (Depends-on): Add 'verify'.
44167         * modules/vasnprintf (Depends-on): Add 'verify'.
44168         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
44169         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
44170         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
44171         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
44172         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
44173         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
44174         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
44176         prefer (X ? 1 : -1) when converting from boolean (1,0) to int (1,-1)
44178         Formerly the style was sometimes 2*X - 1, because the C standard
44179         was wrongly thought to disallow ?: in integral constant expressions.
44180         * lib/inet_ntop.c (verify_int_size): Rewrite 2*X-7 (!) to 4<=X?1:-1.
44181         * lib/signal.in.h (verify_NSIG_constraint): Rewrite 2*X-1 to X?1:-1.
44182         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
44183         * lib/stdint.in.h (_verify_intmax_size): Likewise.
44184         * lib/time.in.h (struct __time_t_must_be_integral): Rewrite
44185         2 * ((time_t) 1 / 2 == 0) - 1 to (time_t) 1; this suffices to
44186         verify that time_t cannot be floating.
44188 2010-10-08  Eric Blake  <eblake@redhat.com>
44190         time: enforce recent POSIX ruling that time_t is integral
44191         * lib/time.in.h (__time_t_must_be_integral): Detect any
44192         problematic systems, allowing the rest of gnulib to assume POSIX.
44194 2010-10-08  Jim Meyering  <meyering@redhat.com>
44196         fdopendir: fix a bug on systems lacking openat and /proc support
44197         OpenBSD 4.7 is one such system.  The most noticeable effect was
44198         failure of any application making nontrivial use of fts: rm, du,
44199         chown, chmod etc.  E.g., "mkdir -p a/b; ./rm -rf a" would fail with
44200           ./rm: traversal failed: `a': Bad file descriptor
44201         Debugging that, you see that even though FD 6 was closed just
44202         prior to the opendir call in fd_clone_opendir, its resulting
44203         dir->dd_fd was 8, rather than the expected value of 6:
44205         Breakpoint 3, fdopendir_with_dup (fd=6, older_dupfd=-1) at fdopendir.c:93
44206         93                close (fd);
44207         (gdb) n
44208         94                dir = fd_clone_opendir (dupfd);
44209         (gdb) n
44210         95                saved_errno = errno;
44211         (gdb) p dir->dd_fd
44212         $11 = 8
44214         Notice how it closes FD 6, then gets a DIR* pointer using FD 8.
44215         The problem is that on OpenBSD, fd_clone_opendir has to resort
44216         to using the old-style save/restore CWD mechanism, due to its
44217         lack of openat/proc support, and *that* would steal the FD (6)
44218         that opendir was supposed to use.
44220         The fix is to squirrel away the desired FD so that save_cwd uses a
44221         different one, and then free the dest FD right before calling opendir.
44222         That guarantees opendir will use the required file descriptor.
44224         * lib/fdopendir.c (fd_clone_opendir): Handle the above.
44226 2010-10-08  Bruno Haible  <bruno@clisp.org>
44228         sys_select: Avoid warning due to undeclared memset() on OpenBSD 4.5.
44229         * lib/sys_select.in.h: Include <string.h> also on OpenBSD.
44231 2010-10-08  Bruno Haible  <bruno@clisp.org>
44233         nanosleep: Make replacement POSIX compliant.
44234         * lib/nanosleep.c (nanosleep): Return -1/EINVAL if the delay's tv_nsec
44235         is out of range.
44236         Reported by Jim Meyering.
44238 2010-10-08  Paul Eggert  <eggert@cs.ucla.edu>
44240         bootstrap: add hook for altering gnulib.mk, for Bison
44241         * build-aux/bootstrap (gnulib_mk_hook): New function, so that
44242         the Bison bootstrapping process can rewrite file names and variables
44243         in this file before later parts of 'bootstrap' use the file.
44244         Bison wants to include lib/gnulib.mk from the top-level makefile,
44245         so it needs the file names in this file to be relative to the top
44246         level, not relative to lib; plus it needs variable names to be
44247         rewritten.
44248         (slurp): Use the new function.
44250         bootstrap: reformat for readability
44251         * build-aux/bootstrap: Rewrite to avoid lines longer than 80 columns.
44253 2010-10-08  Eric Blake  <eblake@redhat.com>
44255         docs: update cygwin progress
44256         * doc/posix-functions/cacos.texi (cacos): Added after cygwin
44257         1.7.7.
44258         * doc/posix-functions/cacosf.texi (cacosf): Likewise.
44259         * doc/posix-functions/cacosh.texi (cacosh): Likewise.
44260         * doc/posix-functions/cacoshf.texi (cacoshf): Likewise.
44261         * doc/posix-functions/carg.texi (carg): Likewise.
44262         * doc/posix-functions/cargf.texi (cargf): Likewise.
44263         * doc/posix-functions/casin.texi (casin): Likewise.
44264         * doc/posix-functions/casinf.texi (casinf): Likewise.
44265         * doc/posix-functions/casinh.texi (casinh): Likewise.
44266         * doc/posix-functions/casinhf.texi (casinhf): Likewise.
44267         * doc/posix-functions/catan.texi (catan): Likewise.
44268         * doc/posix-functions/catanf.texi (catanf): Likewise.
44269         * doc/posix-functions/catanh.texi (catanh): Likewise.
44270         * doc/posix-functions/catanhf.texi (catanhf): Likewise.
44271         * doc/posix-functions/ccos.texi (ccos): Likewise.
44272         * doc/posix-functions/ccosf.texi (ccosf): Likewise.
44273         * doc/posix-functions/ccosh.texi (ccosh): Likewise.
44274         * doc/posix-functions/ccoshf.texi (ccoshf): Likewise.
44275         * doc/posix-functions/cexp.texi (cexp): Likewise.
44276         * doc/posix-functions/cexpf.texi (cexpf): Likewise.
44277         * doc/posix-functions/cimag.texi (cimag): Likewise.
44278         * doc/posix-functions/cimagf.texi (cimagf): Likewise.
44279         * doc/posix-functions/clog.texi (clog): Likewise.
44280         * doc/posix-functions/clogf.texi (clogf): Likewise.
44281         * doc/posix-functions/conj.texi (conj): Likewise.
44282         * doc/posix-functions/conjf.texi (conjf): Likewise.
44283         * doc/posix-functions/cpow.texi (cpow): Likewise.
44284         * doc/posix-functions/cpowf.texi (cpowf): Likewise.
44285         * doc/posix-functions/cproj.texi (cproj): Likewise.
44286         * doc/posix-functions/cprojf.texi (cprojf): Likewise.
44287         * doc/posix-functions/creal.texi (creal): Likewise.
44288         * doc/posix-functions/crealf.texi (crealf): Likewise.
44289         * doc/posix-functions/csin.texi (csin): Likewise.
44290         * doc/posix-functions/csinf.texi (csinf): Likewise.
44291         * doc/posix-functions/csinh.texi (csinh): Likewise.
44292         * doc/posix-functions/csinhf.texi (csinhf): Likewise.
44293         * doc/posix-functions/csqrt.texi (csqrt): Likewise.
44294         * doc/posix-functions/csqrtf.texi (csqrtf): Likewise.
44295         * doc/posix-functions/ctan.texi (ctan): Likewise.
44296         * doc/posix-functions/ctanf.texi (ctanf): Likewise.
44297         * doc/posix-functions/ctanh.texi (ctanh): Likewise.
44298         * doc/posix-functions/ctanhf.texi (ctanhf): Likewise.
44299         * doc/posix-headers/complex.texi (complex.h): Likewise.
44301 2010-10-07  Jim Meyering  <meyering@redhat.com>
44303         parse-datetime: avoid compilation failure on OpenBSD 4.7
44304         * lib/parse-datetime.y (_STDLIB_H) [_STDLIB_H_]: Define.
44305         This works around a compilation failure on OpenBSD 4.7:
44306         http://thread.gmane.org/gmane.comp.parsers.bison.bugs/3418
44308 2010-10-07  Eric Blake  <eblake@redhat.com>
44310         docs: update cygwin progress
44311         * doc/glibc-functions/mkostemp.texi (mkostemp): Added in cygwin
44312         1.7.6.
44313         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
44314         * doc/posix-headers/fenv.texi (fenv.h): Added after cygwin 1.7.7.
44315         * doc/posix-functions/feclearexcept.texi (feclearexcept): Likewise.
44316         * doc/posix-functions/fegetenv.texi (fegetenv): Likewise.
44317         * doc/posix-functions/fegetexceptflag.texi (fegetexceptflag):
44318         Likewise.
44319         * doc/posix-functions/fegetround.texi (fegetround): Likewise.
44320         * doc/posix-functions/feholdexcept.texi (feholdexcept): Likewise.
44321         * doc/posix-functions/feraiseexcept.texi (feraiseexcept):
44322         Likewise.
44323         * doc/posix-functions/fesetenv.texi (fesetenv): Likewise.
44324         * doc/posix-functions/fesetexceptflag.texi (fesetexceptflag):
44325         Likewise.
44326         * doc/posix-functions/fesetround.texi (fesetround): Likewise.
44327         * doc/posix-functions/fetestexcept.texi (fetestexcept): Likewise.
44328         * doc/posix-functions/feupdateenv.texi (feupdateenv): Likewise.
44329         * doc/glibc-functions/feenableexcept.texi (feenableexcept):
44330         Likewise.
44331         * doc/glibc-functions/fedisableexcept.texi (fedisableexcept):
44332         Likewise.
44333         * doc/glibc-functions/fegetexcept.texi (fegetexcept): Likewise.
44335         docs: update parse-datetime history
44336         * doc/parse-datetime.texi (Authors of parse_datetime): Better
44337         documentation of this function's history and alternatives.
44339         cygwin: use more robust version check
44340         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Don't
44341         exclude an eventual cygwin 1.9.1.
44342         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
44343         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
44344         (gl_FUNC_STRCASESTR): Likewise.
44345         Reported by Bruno Haible.
44347 2010-10-06  Bruno Haible  <bruno@clisp.org>
44349         string, sys_select: Avoid #including large headers unless necessary.
44350         * lib/string.in.h: Don't include <unistd.h> except on NetBSD.
44351         * lib/sys_select.in.h: Don't include <string.h> except on Solaris,
44352         OSF/1, BeOS, Haiku.
44353         Reported by Jim Meyering.
44355 2010-10-05  Eric Blake  <eblake@redhat.com>
44357         memmem, strstr, strcasestr: fix bug with long periodic needle
44358         * lib/str-two-way.h (two_way_long_needle): Avoid bug with long
44359         periodic needle having false positive.
44360         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Detect bug in glibc 2.12
44361         and cygwin 1.7.7.
44362         (gl_FUNC_MEMMEM): Be more pessimistic when cross-compiling.
44363         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
44364         (gl_FUNC_STRCASESTR): Likewise.
44365         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
44366         * tests/test-memmem.c (main): Expose the bug.
44367         * tests/test-strcasestr.c (main): Likewise.
44368         * tests/test-strstr.c (main): Likewise.
44369         * tests/test-c-strcasestr.c (main): Likewise.
44370         * doc/glibc-functions/memmem.texi (memmem): Document the bug.
44371         * doc/posix-functions/strstr.texi (strstr): Likewise.
44372         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
44373         Reported via http://sourceware.org/bugzilla/show_bug.cgi?id=12092
44375 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
44377         parse-datetime: do some more renaming
44378         * doc/parse-datetime.texi (Authors of parse_datetime): Call it
44379         parse_datetime, not get_date.  Mention the renaming.
44380         * lib/parse-datetime.y:  Call it parse_datetime, not getdate,
44381         in comments.
44382         * m4/bison.m4: Likewise.
44384 2010-10-05  Eric Blake  <eblake@redhat.com>
44386         parse-datetime: better name than get_date
44387         * NEWS: Reword the deprecation notice.
44388         * modules/get_date: Rename to modules/parse-datetime.
44389         * modules/get_date-tests: Rename to modules/parse-datetime-tests.
44390         * m4/get_date.m4: Rename to m4/parse-datetime.m4.
44391         * lib/get_date.y: Rename to lib/parse-datetime.y.
44392         * tests/test-get_date.c: Rename to tests/test-parse-datetime.c.
44393         * doc/get_date.texi: Rename to doc/parse-datetime.texi.
44394         * doc/getdate.texi: Provide fallback wrapper.
44395         * lib/getdate.h: Move guts, and wrap...
44396         * lib/parse-datetime.h: ...new file.
44397         * lib/parse-datetime.y (get_date): Rename...
44398         (parse_datetime): ...to this.
44399         * m4/parse-datetime.m4 (gl_GET_DATE): Rename...
44400         (gl_PARSE_DATETIME): ...to this.
44401         * doc/posix-functions/getdate.texi (get_date): Provide fallback
44402         documentation.
44403         * modules/getdate (Files): Provide fallback docs and header.
44404         (Notice, Depends-on): Update references.
44405         * tests/test-parse-datetime.c: Likewise.
44406         * DEPENDENCIES: Likewise.
44407         * MODULES.html.sh (Date and time <time.h>): Likewise.
44408         * doc/parse-datetime.texi (Date input formats)
44409         (Authors of parse_datetime): Likewise.
44410         * modules/parse-datetime (Files, configure.ac, Makefile.am)
44411         (Include): Likewise.
44412         * modules/parse-datetime-tests (Files, Makefile.am): Likewise.
44413         * gnulib-tool: Likewise.
44414         * m4/bison.m4 (gl_BISON): Likewise.
44415         Suggested by Bruno Haible.
44417 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
44419         more ports to Solaris tr, which needs [] around ranges
44420         * gnulib-tool: Solaris tr needs [] around ranges.
44421         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
44422         * tests/test-pipe-filter-gi1.c (main): Likewise.
44423         * tests/test-pipe-filter-ii1.c (main): Likewise.
44425 2010-10-05  Eric Blake  <eblake@redhat.com>
44427         bootstrap: fix Solaris regression
44428         * build-aux/bootstrap (check_versions): Solaris tr still needs []
44429         around ranges.
44430         Reported by Pádraig Brady.
44432         bootstrap: work with pkg-config
44433         * build-aux/bootstrap (check_versions): Also transliterate - in
44434         prerequisite name.
44435         (print_versions): Be robust to any \ in $buildreq.  Avoid listing
44436         prerequisites that were already found, to avoid confusion.
44437         Reported by Justin Clift.
44439         faccessat: remove unused wrappers
44440         * lib/openat.h (accessat, euidaccesat): Delete, since the mere
44441         presence of these wrappers dragged in -lgen on Solaris.
44442         Reported by Clemens Brogi; fix suggested by Paul Eggert.
44444 2010-10-05  Jim Meyering  <meyering@redhat.com>
44446         tests: require @PRAGMA_COLUMNS@ with each @PRAGMA_SYSTEM_HEADER@
44447         * Makefile (sc_pragma_columns): New syntax-check rule.
44449 2010-10-04  Bruno Haible  <bruno@clisp.org>
44451         gnulib-tool: Synthesize appropriate _LDFLAGS for a libtool library.
44452         * gnulib-tool (func_emit_lib_Makefile_am): When preparing for a libtool
44453         library, put '-no-undefined' and the link dependencies into _LDFLAGS.
44454         Reported by Bruce Korb and Eric Blake.
44456 2010-10-04  Bruno Haible  <bruno@clisp.org>
44458         threadlib: Make option --with-libpth-prefix work.
44459         * m4/threadlib.m4 (gl_THREADLIB_BODY): When testing whether pth works,
44460         use $LIBPTH, not just -lpth.
44462 2010-10-04  Bruno Haible  <bruno@clisp.org>
44464         Avoid line length limitation from HP NonStop system header files.
44465         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define also PRAGMA_COLUMNS.
44466         * lib/arpa_inet.in.h: Use PRAGMA_COLUMNS.
44467         * lib/ctype.in.h: Likewise.
44468         * lib/dirent.in.h: Likewise.
44469         * lib/errno.in.h: Likewise.
44470         * lib/fcntl.in.h: Likewise.
44471         * lib/float.in.h: Likewise.
44472         * lib/getopt.in.h: Likewise.
44473         * lib/iconv.in.h: Likewise.
44474         * lib/inttypes.in.h: Likewise.
44475         * lib/langinfo.in.h: Likewise.
44476         * lib/locale.in.h: Likewise.
44477         * lib/math.in.h: Likewise.
44478         * lib/netdb.in.h: Likewise.
44479         * lib/netinet_in.in.h: Likewise.
44480         * lib/poll.in.h: Likewise.
44481         * lib/pthread.in.h: Likewise.
44482         * lib/pty.in.h: Likewise.
44483         * lib/sched.in.h: Likewise.
44484         * lib/se-selinux.in.h: Likewise.
44485         * lib/search.in.h: Likewise.
44486         * lib/signal.in.h: Likewise.
44487         * lib/spawn.in.h: Likewise.
44488         * lib/stdarg.in.h: Likewise.
44489         * lib/stddef.in.h: Likewise.
44490         * lib/stdint.in.h: Likewise.
44491         * lib/stdio.in.h: Likewise.
44492         * lib/stdlib.in.h: Likewise.
44493         * lib/string.in.h: Likewise.
44494         * lib/strings.in.h: Likewise.
44495         * lib/sys_file.in.h: Likewise.
44496         * lib/sys_ioctl.in.h: Likewise.
44497         * lib/sys_select.in.h: Likewise.
44498         * lib/sys_socket.in.h: Likewise.
44499         * lib/sys_stat.in.h: Likewise.
44500         * lib/sys_time.in.h: Likewise.
44501         * lib/sys_times.in.h: Likewise.
44502         * lib/sys_utsname.in.h: Likewise.
44503         * lib/sys_wait.in.h: Likewise.
44504         * lib/sysexits.in.h: Likewise.
44505         * lib/termios.in.h: Likewise.
44506         * lib/time.in.h: Likewise.
44507         * lib/unistd.in.h: Likewise.
44508         * lib/wchar.in.h: Likewise.
44509         * lib/wctype.in.h: Likewise.
44510         * modules/arpa_inet (Makefile.am): Substitute PRAGMA_COLUMNS.
44511         * modules/ctype (Makefile.am): Likewise.
44512         * modules/dirent (Makefile.am): Likewise.
44513         * modules/errno (Makefile.am): Likewise.
44514         * modules/fcntl-h (Makefile.am): Likewise.
44515         * modules/float (Makefile.am): Likewise.
44516         * modules/getopt-posix (Makefile.am): Likewise.
44517         * modules/iconv-h (Makefile.am): Likewise.
44518         * modules/inttypes (Makefile.am): Likewise.
44519         * modules/langinfo (Makefile.am): Likewise.
44520         * modules/locale (Makefile.am): Likewise.
44521         * modules/math (Makefile.am): Likewise.
44522         * modules/netdb (Makefile.am): Likewise.
44523         * modules/netinet_in (Makefile.am): Likewise.
44524         * modules/poll-h (Makefile.am): Likewise.
44525         * modules/pthread (Makefile.am): Likewise.
44526         * modules/pty (Makefile.am): Likewise.
44527         * modules/sched (Makefile.am): Likewise.
44528         * modules/search (Makefile.am): Likewise.
44529         * modules/selinux-h (Makefile.am): Likewise.
44530         * modules/signal (Makefile.am): Likewise.
44531         * modules/spawn (Makefile.am): Likewise.
44532         * modules/stdarg (Makefile.am): Likewise.
44533         * modules/stddef (Makefile.am): Likewise.
44534         * modules/stdint (Makefile.am): Likewise.
44535         * modules/stdio (Makefile.am): Likewise.
44536         * modules/stdlib (Makefile.am): Likewise.
44537         * modules/string (Makefile.am): Likewise.
44538         * modules/strings (Makefile.am): Likewise.
44539         * modules/sys_file (Makefile.am): Likewise.
44540         * modules/sys_ioctl (Makefile.am): Likewise.
44541         * modules/sys_select (Makefile.am): Likewise.
44542         * modules/sys_socket (Makefile.am): Likewise.
44543         * modules/sys_stat (Makefile.am): Likewise.
44544         * modules/sys_time (Makefile.am): Likewise.
44545         * modules/sys_times (Makefile.am): Likewise.
44546         * modules/sys_utsname (Makefile.am): Likewise.
44547         * modules/sys_wait (Makefile.am): Likewise.
44548         * modules/sysexits (Makefile.am): Likewise.
44549         * modules/termios (Makefile.am): Likewise.
44550         * modules/time (Makefile.am): Likewise.
44551         * modules/unistd (Makefile.am): Likewise.
44552         * modules/wchar (Makefile.am): Likewise.
44553         * modules/wctype (Makefile.am): Likewise.
44555 2010-10-04  Bruno Haible  <bruno@clisp.org>
44557         read-file tests: Avoid a test failure on NonStop Kernel.
44558         * tests/test-read-file.c (main): Don't assume that /etc/resolv.conf is
44559         a regular file.
44560         Reported by Joachim Schmitz <schmitz@hp.com>.
44562 2010-10-03  Bruno Haible  <bruno@clisp.org>
44564         gnulib-tool: Fixes for --create-testdir with --libtool.
44565         * gnulib-tool (func_get_automake_snippet): Don't augment
44566         EXTRA_lib_SOURCES for the pt_chown module, since pt_chown.o goes into
44567         an executable.
44568         (func_create_testdir): Handle module 'alloca' like func_import.
44569         Reported by Bruce Korb <bruce.korb@gmail.com>.
44571 2010-10-03  Paul Eggert  <eggert@cs.ucla.edu>
44573         Avoid some lines longer than 80 characters.
44574         * lib/stdint.in.h: Break long comment lines.
44575         * lib/math.in.h: Likewise.
44576         (_GL_NUM_UINT_WORDS): New macro, for readability.
44577         (gl_signbitf, gl_signbitd, gl_signbitl): Use it.
44578         * lib/stdio.in.h: Break lines in _GL_WARN_ON_USE calls.
44579         * lib/stdlib.in.h: Likewise.
44580         * lib/spawn.in.h: Likewise.
44581         * lib/sys_socket.in.h: Update an URL.
44582         * lib/sys_stat.in.h: Break long line.
44584 2010-10-03  Reuben Thomas  <rrt@sc3d.org>
44586         Improve pmccabe2html.
44587         * build-aux/pmccabe2html: Add CYCLO_SRCS variable, and make
44588         cyclo-$(PACKAGE).html depend on it, so the HTML file is remade
44589         when the sources change. Remove the line in the HTML about "Used
44590         ranges" (which implied that there might be other unused ranges),
44591         rename "Resume" to "Summary" (easier to understand for more users).
44592         * build-aux/pmccabe.css: Removing the dashed dividers, some unused
44593         styles, and some unnecessary blank lines.
44595 2010-10-03  Bruno Haible  <bruno@clisp.org>
44596             Joachim Schmitz  <schmitz@hp.com>  (tiny change)
44598         acl: Add support for ACLs on NonStop Kernel.
44599         * m4/acl.m4 (gl_FUNC_ACL): For Solaris, test for facl(), not for acl().
44600         Check whether the function aclsort() exists.
44601         * lib/acl-internal.h: For Solaris, test HAVE_FACL, not HAVE_ACL.
44602         (acl_nontrivial) [HAVE_ACLSORT]: New declaration.
44603         * lib/file-has-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
44604         (acl_nontrivial [HAVE_ACLSORT]: New function.
44605         (file_has_acl): Implement for NonStop Kernel.
44606         * lib/set-mode-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
44607         (qset_acl): Implement for NonStop Kernel.
44608         * lib/copy-acl.c (qcopy_acl): Implement for NonStop Kernel.
44609         * tests/test-sameacls.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
44610         (main): Implement for NonStop Kernel.
44611         * tests/test-file-has-acl.sh (acl_flavor): Set to 'nsk' on NonStop
44612         Kernel. Handle this flavor.
44613         * tests/test-set-mode-acl.sh: Likewise.
44614         * tests/test-copy-acl.sh: Likewise.
44615         * tests/test-copy-file.sh: Likewise.
44617 2010-10-03  Bruno Haible  <bruno@clisp.org>
44619         Info about ACLs on NonStop Kernel.
44620         * doc/acl-resources.txt: Add info about NonStop Kernel.
44621         References by Joachim Schmitz <schmitz@hp.com>.
44623 2010-10-02  Bruno Haible  <bruno@clisp.org>
44625         Define missing EDQUOT on NonStop Kernel.
44626         * lib/errno.in.h (EDQUOT): Assign a value if missing.
44627         * lib/strerror.c (rpl_strerror): Handle missing EDQUOT.
44628         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether EDQUOT is
44629         missing.
44630         * doc/posix-headers/errno.texi: Mention the NSK bug.
44631         * doc/posix-functions/strerror.texi: Mention the workaround on NSK.
44632         Reported by Joachim Schmitz <schmitz@hp.com>.
44634 2010-10-02  Bruno Haible  <bruno@clisp.org>
44636         Update doc for POSIX:2008.
44637         * doc/posix-headers/*.texi [except ucontext.texi, sys_timeb.texi]:
44638         Update URL of POSIX specification.
44640 2010-10-02  Bruno Haible  <bruno@clisp.org>
44642         gnulib-tool: In testdirs, use the newest available config.{guess.sub}.
44643         * gnulib-tool (func_create_testdir): Use config.guess and config.sub
44644         from gnulib, not from Automake.
44646 2010-10-02  Bruno Haible  <bruno@clisp.org>
44648         New module 'system-posix'.
44649         * modules/system-posix: New file.
44650         * lib/stdlib.in.h: Include <sys/wait.h> only when the 'system-posix'
44651         module is present.
44652         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
44653         GNULIB_SYSTEM_POSIX.
44654         * modules/stdlib (Depends-on): Remove sys_wait.
44655         (Makefile.am): Substitute GNULIB_SYSTEM_POSIX.
44656         * doc/posix-functions/system.texi: Mention the new module.
44657         * doc/posix-headers/stdlib.texi: Likewise.
44658         * tests/test-stdlib.c: If GNULIB_TEST_SYSTEM_POSIX is not defined,
44659         define test_sys_wait_macros to a no-op.
44660         Reported by Sam Steingold <sds@gnu.org>.
44662 2010-09-30  Bruno Haible  <bruno@clisp.org>
44664         More renaming from 'getdate' to 'get_date'.
44665         * doc/get_date.texi: Renamed from doc/getdate.texi.
44666         * modules/get_date (Files): Update.
44667         * MODULES.html.sh (Date and time <time.h>): Update.
44668         * DEPENDENCIES: Update.
44669         * gnulib-tool: Update comment.
44670         * m4/bison.m4 (gl_BISON): Likewise.
44671         * m4/get_date.m4 (gl_GET_DATE): Likewise.
44673 2010-09-30  Justin Clift  <jclift@redhat.com>  (tiny change)
44675         bootstrap: support ACLOCAL_FLAGS during aclocal
44676         * build-aux/bootstrap (aclocal): Honor ACLOCAL_FLAGS, so the user
44677         can add additional -I dir for third-party .m4 files.
44679 2010-09-30  Eric Blake  <eblake@redhat.com>
44681         bootstrap: use glibtoolize on MacOS
44682         * build-aux/bootstrap (check_versions): Convert libtool into
44683         libtoolize.
44684         (tool search): Move libtool check earlier, and look for
44685         glibtoolize for MacOS.
44686         (gnulib_tool_options): Auto-add --libtool when appropriate.
44687         Reported by Justin Clift.
44689         poll: fix typo that broke test on MacOS
44690         * m4/poll.m4 (gl_FUNC_POLL): Add missing test.
44691         Reported by Justin Clift.
44693         getdate: rename to get_date
44694         Note: getdate.h is not renamed, to minimize client impact.
44695         * modules/getdate: Mark obsolete.  Move old contents...
44696         * modules/get_date: ...to new module name.
44697         * modules/getdate-tests: Move...
44698         * modules/get_date-tests: ...here.
44699         * m4/getdate.m4: Move...
44700         * m4/get_date.m4: ...here, and rename gl_GETDATE to gl_GET_DATE.
44701         * lib/getdate.y: Move...
44702         * lib/get_date.y: ...here.
44703         * tests/test-getdate.c: Move...
44704         * tests/test-get_date.c: ...here.
44705         * doc/posix-functions/getdate.texi (getdate): Update name.
44706         * NEWS: Mention the change.
44708 2010-09-29  Bruno Haible  <bruno@clisp.org>
44710         Separate the module 'waitpid' from the module 'sys_wait'.
44711         * lib/sys_wait.in.h (waitpid): Declare only if the 'waitpid' module is
44712         present.
44713         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Invoke
44714         gl_MODULE_INDICATOR_FOR_TESTS.
44715         (gl_SYS_WAIT_H_DEFAULTS): Initialize GNULIB_WAITPID.
44716         * modules/sys_wait (Depends-on): Remove waitpid.
44717         (Makefile.am): Substitute GNULIB_WAITPID.
44718         * modules/waitpid (configure.ac): Invoke gl_SYS_WAIT_MODULE_INDICATOR.
44719         * tests/test-sys_wait-c++.cc (GNULIB_NAMESPACE::waitpid): Check the
44720         signature only if the 'waitpid' module is present.
44721         * doc/posix-functions/waitpid.texi: Mention the 'waitpid' module.
44722         * NEWS: Mention the change.
44723         * modules/grantpt (Depends-on): Add waitpid.
44724         * modules/wait-process (Depends-on): Likewise.
44726 2010-09-29  Bruno Haible  <bruno@clisp.org>
44728         More tests for module 'sys_wait'.
44729         * modules/sys_wait-c++-tests: New file.
44730         * tests/test-sys_wait-c++.cc: New file.
44731         * modules/sys_wait-tests (Depends-on): Add sys_wait-c++-tests.
44732         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
44734 2010-09-29  Bruno Haible  <bruno@clisp.org>
44736         New module 'waitpid'.
44737         * lib/waitpid.c: New file, extracted from lib/sys_wait.in.h.
44738         * lib/sys_wait.in.h: Include <sys/types.h>, c++defs.h, warn-on-use.h.
44739         Don't include <process.h>.
44740         (waitpid): Declare only, using modern idiom.
44741         * m4/waitpid.m4: New file.
44742         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Check whether waitpid is declared.
44743         * modules/waitpid: New file.
44744         * modules/sys_wait (Depends-on): Add c++defs, warn-on-use, waitpid.
44745         (Makefile.am): Update.
44746         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
44748 2010-09-28  Bruno Haible  <bruno@clisp.org>
44750         poll: Assume ANSI C.
44751         * lib/poll.c (poll): Use an ANSI C declaration.
44753 2010-09-28  Bruno Haible  <bruno@clisp.org>
44755         poll-h: Create poll.h on all platforms.
44756         * lib/poll.in.h: Use double-inclusion guard. Don't define POLL*,
44757         struct pollfd, nfds_t, INFTIM when the system has <poll.h>.
44758         * m4/poll_h.m4 (gl_POLL_H): Set HAVE_POLL_H. Invoke
44759         gl_CHECK_NEXT_HEADERS. Don't set POLL_H.
44760         (gl_REPLACE_POLL_H): Don't set POLL_H.
44761         (gl_POLL_H_DEFAULTS): Don't initialize POLL_H.
44762         * modules/poll-h (Depends-on): Add include_next.
44763         (Makefile.am): Create poll.h unconditionally. Substitute also
44764         HAVE_POLL_H, INCLUDE_NEXT, PRAGMA_SYSTEM_HEADER, NEXT_POLL_H.
44766 2010-09-28  Bruno Haible  <bruno@clisp.org>
44768         Tests for module 'poll-h'.
44769         * modules/poll-h-c++-tests: New file.
44770         * tests/test-poll-h-c++.cc: New file.
44772         Tests for module 'poll-h'.
44773         * modules/poll-h-tests: New file.
44774         * tests/test-poll-h.c: New file.
44776 2010-09-28  Bruno Haible  <bruno@clisp.org>
44778         poll-h: Ensure POLL{RD,WR}{NORM,BAND} are defined on glibc platforms.
44779         * modules/poll-h (Depends-on): Add 'extensions'.
44781 2010-09-28  Bruno Haible  <bruno@clisp.org>
44783         New module 'poll-h'.
44784         * lib/poll.in.h: Include c++defs.h and warn-on-use.h.
44785         (poll): Use modern idiom.
44786         * modules/poll-h: New file.
44787         * modules/poll (Files): Remove lib/poll.in.h.
44788         (Depends-on): Add poll-h.
44789         (configure.ac): Invoke gl_POLL_MODULE_INDICATOR.
44790         (Makefile.am): Move code for generation of poll.h to modules/poll-h.
44791         * m4/poll_h.m4: New file.
44792         * m4/poll.m4 (gl_FUNC_POLL): Require gl_POLL_H. Don't check for poll.h
44793         here. Don't set POLL_H here. Instead, set HAVE_POLL and REPLACE_POLL
44794         and invoke gl_REPLACE_POLL_H.
44795         * lib/poll.c: Use common idiom.
44796         * tests/test-poll.c: Likewise.
44797         * doc/posix-headers/poll.texi: Mention the poll-h module.
44798         Suggested by Eric Blake.
44800 2010-09-26  Bruno Haible  <bruno@clisp.org>
44802         sys_wait: Implement WSTOPSIG.
44803         * lib/sys_wait.in.h (WSTOPSIG): New macro.
44804         Reported by Simon Josefsson.
44806 2010-09-26  Simon Josefsson  <simon@josefsson.org>
44808         stdlib, sys_wait: Avoid compilation error on mingw.
44809         * lib/sys_wait.in.h: Include <signal.h>, for SIGTERM.
44811 2010-09-26  Bruno Haible  <bruno@clisp.org>
44813         stdlib tests: Avoid code duplication.
44814         * modules/stdlib-tests (Files): Add tests/test-sys_wait.h.
44815         * modules/sys_wait-tests (Files): Likewise.
44816         * tests/test-sys_wait.h: New file, extracted from tests/test-stdlib.c.
44817         * tests/test-stdlib.c: Include test-sys_wait.h.
44818         (main): Invoke test_sys_wait_macros.
44819         * tests/test-sys_wait.c: Include test-sys_wait.h.
44820         (main): Invoke test_sys_wait_macros.
44822 2010-09-25  Simon Josefsson  <simon@josefsson.org>
44824         * modules/getaddrinfo (Depends-on): Depend on the sockets module.
44825         * lib/getaddrinfo.c (use_win32_p): Call gl_sockets_startup to make
44826         sure Windows sockets are working before calling getaddrinfo.
44827         * tests/test-getaddrinfo.c (main): Don't call WSAStartup here.
44828         * doc/gnulib.texi (Windows sockets): Fix typo.
44830 2010-09-25  Bruno Haible  <bruno@clisp.org>
44832         Tests for module 'regex-quote'.
44833         * modules/regex-quote-tests: New file.
44834         * tests/test-regex-quote.c: New file.
44836         New module 'regex-quote'.
44837         * lib/regex-quote.h: New file.
44838         * lib/regex-quote.c: New file.
44839         * modules/regex-quote: New file.
44840         Suggested by Reuben Thomas <rrt@sc3d.org>.
44842 2010-09-24  Bruno Haible  <bruno@clisp.org>
44844         unistr/u8-strchr: Fix a test failure on i586 glibc systems.
44845         * tests/unistr/test-strchr.h (test_strchr): Disable an invalid check.
44847 2010-09-23  Bruno Haible  <bruno@clisp.org>
44849         setenv: Relax license.
44850         * modules/setenv (License): Change to LGPLv2+, with consent by Eric
44851         Blake.
44852         Requested by Eric Blake.
44854 2010-09-22  Bruno Haible  <bruno@clisp.org>
44856         termios: Relax license.
44857         * modules/termios (License): Change to LGPLv2+.
44858         Requested by Eric Blake.
44860 2010-09-22  Bruno Haible  <bruno@clisp.org>
44862         threadlib: Allow the package to change the default to 'no'.
44863         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): When
44864         gl_THREADLIB_DEFAULT_NO is defined, change the default to 'no'.
44865         Reported by Paul Eggert.
44867 2010-09-22  Pádraig Brady  <P@draigbrady.com>
44868             Bruno Haible  <bruno@clisp.org>
44870         Fix endless loop in mbmemcasecoll.
44871         * lib/mbmemcasecoll.c (apply_towlower): When mbrtowc returns 0, copy 1
44872         byte.
44873         * tests/test-mbmemcasecmp.h (test_ascii): Test embedded NULs.
44875 2010-09-22  Bruno Haible  <bruno@clisp.org>
44877         Tests for module 'memcoll'.
44878         * modules/memcoll-tests: New file.
44879         * tests/test-memcoll.c: New file, based on tests/test-memcmp.c.
44881         memcoll, xmemcoll: Clarify size vs. length.
44882         * modules/memcoll.c (memcoll0): Clarify specification.
44883         * modules/xmemcoll.c (xmemcoll0): Likewise. Reduce by 1 the lengths
44884         passed to collate_error.
44886 2010-09-22  Bruno Haible  <bruno@clisp.org>
44888         Tests for module 'memcasecmp'.
44889         * modules/memcasecmp-tests: New file.
44890         * tests/test-memcasecmp.c: New file, based on tests/test-memcmp.c.
44892 2010-09-22  Paul Eggert  <eggert@cs.ucla.edu>
44894         * lib/pthread.in.h: Add split double-inclusion guard, and include
44895         system <pthread.h> if there is one.  Use @@-style as in other
44896         .in.h files.  Define PTHREAD_COND_INITIALIZER etc. only if system
44897         pthread.h doesn't.
44898         (pthread_mutexattr_destroy, pthread_mutexattr_init):
44899         (pthread_mutexattr_settype, pthread_mutex_trylock):
44900         New static inline functions, if there's no system <pthread.h>.
44901         (pthread_spinlock_t, pthread_spin_init, pthread_spin_destroy):
44902         (pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock):
44903         Approximate with mutexes if the system lacks spinlocks, as in
44904         MacOS.
44905         * m4/pthread.m4 (gl_PTHREAD_CHECK): Require gl_PTHREAD_DEFAULTS.
44906         Add gl_CHECK_NEXT_HEADERS for pthread.h, and support the usual
44907         @@-style.  Check for spinlocks separately.
44908         (gl_PTHREAD_DEFAULTS): New macro.
44909         * modules/pthread: Redo to use a more typical style for in.h files.
44911 2010-09-21  Eric Blake  <eblake@redhat.com>
44913         net_if: enhance tests
44914         * tests/test-net_if.c (main): Move signature checks earlier.
44915         Print failures to stderr.
44916         * doc/posix-functions/if_freenameindex.texi (if_freenameindex):
44917         Document the bug that we do not yet fix.
44919 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
44921         * doc/gnulib.texi (Out of memory handling): Rewrite section to be
44922         about gnulib, not GSS.
44924 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
44926         * build-aux/pmccabe2html: Look for sources in src/ instead of lib/.
44927         * build-aux/pmccabe2html: Set cut_dir properly, and add mode line
44928         for Emacs.
44929         * build-aux/pmccabe2html: Make Makefile.am example code more
44930         cut-and-paste friendly.
44932 2010-09-21  Simon Josefsson  <simon@josefsson.org>
44934         * tests/test-net_if.c: New file.
44935         * modules/net_if-tests: New file.
44937 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
44939         pthread: add pthread_spin_destroy
44940         * lib/pthread.in.h (pthread_spin_destroy): New function.
44942 2010-09-19  Bruno Haible  <bruno@clisp.org>
44944         gnulib-tool: Fix --help output.
44945         * gnulib-tool (func_usage): Fix help message.
44946         Reported by Reuben Thomas <rrt@sc3d.org>.
44948 2010-09-18  Jim Meyering  <meyering@redhat.com>
44950         maint.mk: avoid unexpanded \n in two diagnostics
44951         * top/maint.mk (sc_prohibit_always_true_header_tests):
44952         Don't use a literal \n in a halt=... assignment.  It would not be
44953         expanded, and the two \n bytes would appear in the diagnostic output
44954         rather than the desired newline.  Use halt=$$(printf ... instead.
44955         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
44957 2010-09-18  Bruno Haible  <bruno@clisp.org>
44959         netinet_in: Doc tweak.
44960         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
44961         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
44963 2010-09-18  Jim Meyering  <meyering@redhat.com>
44965         init.sh: correct an outdated comment
44966         * tests/init.sh (create_exe_shims_):  s/function/alias/
44968         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
44969         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
44970         a file named "*.exe" is removed between the glob expansion and the
44971         processing of that oddly named file.
44973 2010-09-17  Eric Blake  <eblake@redhat.com>
44975         mirbsd: add some more support
44976         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
44977         in BSD family.
44978         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
44979         devices as OpenBSD.
44980         * m4/host-os.m4 (mirbsd): Add MirBSD.
44982         tests: fix unportable assumption on sys/wait.h
44983         * tests/test-sys_wait.c (main): Relax test.
44984         * tests/test-stdlib.c (main): Likewise.
44986         init.sh: accommodate directory with no .exes
44987         * tests/init.sh: Accomodate directory containing only scripts.
44989         tests: avoid compiler warning
44990         * tests/test-stdlib.c (main): Use the variable.
44992         fdutimens, fdutimensat: update signature, again
44993         * lib/utimens.h (gl_futimens): Delete, and move signature...
44994         (fdutimens): ...here.
44995         (fdutimensat): Rearrange signature.
44996         (lutimensat): Rename variable for clarity.
44997         * lib/fdutimensat.c (fdutimensat): Update signature.
44998         * lib/utimens.c (fdutimens): Likewise.
44999         (gl_futimens): Delete.
45000         (utimens, lutimens): Update callers.
45001         * lib/futimens.c (futimens): Likewise.
45002         * tests/test-fdutimensat.c: Likewise.
45003         * tests/test-utimens.c: Likewise.
45004         * tests/test-futimens.h: Update comment.
45005         * NEWS: Mention this.
45006         Suggested by Paul Eggert.
45008 2010-09-17  Bruno Haible  <bruno@clisp.org>
45010         Take over the maintenance of some older macros from Autoconf.
45011         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
45012         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
45013         GNU Autoconf.
45014         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
45015         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
45017 2010-09-17  Eric Blake  <eblake@redhat.com>
45019         fdutimensat: drop atflag validation
45020         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
45021         with valid fd, to close a race scenario where futimens is
45022         unsupported and FILE was replaced by a symlink.
45023         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
45024         accordingly.
45025         Suggested by Paul Eggert.
45027 2010-09-16  Bruno Haible  <bruno@clisp.org>
45029         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
45030         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
45032 2010-09-16  Bruno Haible  <bruno@clisp.org>
45034         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
45035         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
45036         login_tty exists.
45037         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
45039 2010-09-16  Bruno Haible  <bruno@clisp.org>
45041         login_tty: Make the replacement code work on BSD systems.
45042         * lib/login_tty.c: Include <sys/ioctl.h>.
45043         (login_tty): Use ioctl TIOCSCTTY when available.
45044         * modules/login_tty (Depends-on): Add sys_ioctl.
45045         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
45047 2010-09-16  Bruno Haible  <bruno@clisp.org>
45049         login_tty: Stricter unit test.
45050         * modules/login_tty-tests (Depends-on): Add tcgetsid.
45051         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
45052         and tcgetsid() after login_tty.
45053         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
45055 2010-09-16  Bruno Haible  <bruno@clisp.org>
45057         New module 'tcgetsid'.
45058         * lib/tcgetsid.c: New file.
45059         * m4/tcgetsid.m4: New file.
45060         * modules/tcgetsid: New file.
45061         * modules/termios (Depends-on): Add c++defs, warn-on-use.
45062         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
45063         GNULIB_TCGETSID, HAVE_TCGETSID.
45064         * lib/termios.in.h: Include <sys/types.h>.
45065         (tcgetsid): New declaration.
45066         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
45067         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
45068         * doc/posix-functions/tcgetsid.texi: Mention the new module.
45069         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
45071 2010-09-16  Bruno Haible  <bruno@clisp.org>
45073         Tests for module 'termios'.
45074         * modules/termios-c++-tests: New file.
45075         * modules/termios-tests: New file.
45076         * tests/test-termios-c++.cc: New file.
45077         * tests/test-termios.c: New file.
45079         New module 'termios'.
45080         * modules/termios: New file.
45081         * lib/termios.in.h: New file.
45082         * m4/termios_h.m4: New file.
45083         * doc/posix-headers/termios.texi: Mention the new module.
45085 2010-09-16  Eric Blake  <eblake@redhat.com>
45087         fdutimensat: add an atflag parameter
45088         * lib/fdutimensat.c (fdutimensat): Add new parameter.
45089         * lib/utimens.h (fdutimensat): Update prototype.
45090         * tests/test-fdutimensat.c: Adjust test to match.
45091         * NEWS: Document the change.
45092         Suggested by Paul Eggert.
45094 2010-09-16  Bruno Haible  <bruno@clisp.org>
45096         Fix typos in comments.
45097         * lib/striconveh.h: Fix typo in comment.
45098         * lib/login_tty.c (login_tty): Likewise.
45100 2010-09-15  Bruno Haible  <bruno@clisp.org>
45102         stdlib: clarify MirBSD WEXITSTATUS bug
45103         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
45104         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
45106 2010-09-15  Eric Blake  <eblake@redhat.com>
45108         stdlib: work around MirBSD WEXITSTATUS bug
45109         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
45110         * modules/stdlib (Depends-on): Add sys_wait.
45111         * tests/test-sys_wait.c (main): Enhance test.
45112         * tests/test-stdlib.c (main): Likewise.
45113         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
45115         docs: mention MacOS issue with WEXITSTATUS(constant)
45116         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
45117         issue.
45118         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
45120         strnlen: add tests
45121         * modules/strnlen-tests: New file.
45122         * tests/test-strnlen.c: Likewise.
45124 2010-09-14  Bruno Haible  <bruno@clisp.org>
45126         unistr/base: Avoid link errors when module 'libunistring' is also used.
45127         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
45128         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
45129         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
45130         Declare also when HAVE_LIBUNISTRING is set.
45131         Reported by Pádraig Brady <P@draigbrady.com>.
45133 2010-09-14  Eric Blake  <eblake@redhat.com>
45135         test-rawmemchr: make more robust
45136         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
45137         (Depends-on, configure.ac): Add needed prerequisites to use it.
45138         * modules/memchr-tests (Files, Depends-on, configure.ac):
45139         Likewise, to avoid implicit reliance on memchr module prereqs.
45140         * tests/test-memchr.c (main): Ensure proper masking.
45141         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
45142         reads.
45144         memchr: detect glibc Alpha bug
45145         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
45146         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
45147         Alpha.
45148         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
45149         * tests/test-memchr.c (main): Enhance test.
45150         Reported by Nelson H. F. Beebe.
45152 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
45154         fts, getcwd, glob: audit for dirfd returning -1
45155         * lib/fts.c (opendir): Remove #define; no longer used.
45156         (opendirat): New arg PDIR_FD.  All callers changed.
45157         (fts_build, _opendir2): Use new opendirat to avoid the need for
45158         dirfd, or for checking whether dirfd returns a negative value.
45159         Don't use opendir; always use openat followed by fdopendir.
45160         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
45161         it.
45162         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
45163         returns -1 here.
45164         * modules/fts (Depends-on): Remove dirfd.
45165         * modules/getcwd (Depends-on): Likewise.
45167 2010-09-13  Eric Blake  <eblake@redhat.com>
45169         float: fix broken MirBSD header
45170         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
45171         * doc/posix-headers/float.texi (float.h): Document it.
45173 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
45175         fts: use O_NOFOLLOW to avoid race condition when opening a directory
45176         * lib/fts.c (opendirat): New arg extra_flags.
45177         (__opendir2): Use it to avoid following symlinks when opening
45178         a directory, if symlinks are not supposed to be followed.  See
45179         <http://lists.gnu.org/r/bug-gnulib/2010-09/msg00213.html>.
45181         fdopendir: preserve argument fd before returning
45182         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
45183         (fdopendir_with_dup, fd_clone_opendir): New static functions.
45184         (fdopendir): Use them, arranging for FD to be open to the same
45185         directory that it was when it started.  (It might be temporarily
45186         closed while fdopendir is running, so this not thread- or
45187         signal-safe.)  Be careful to do the right thing even when file
45188         descriptors are scarce and dup fails with errno == EMFILE.  See
45189         <http://lists.gnu.org/r/bug-gnulib/2010-09/msg00208.html>.
45191 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
45193         regex: Pass the system regex if its only problem is 32-bit regoff_t.
45194         * NEWS: Document change.
45195         * m4/regex.m4: Disable test for regoff_t size.
45197 2010-09-13  Jim Meyering  <meyering@redhat.com>
45199         fts: don't operate on an invalid file descriptor after failed dup
45200         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
45201         negative file descriptor.
45203 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
45205         savedir: add streamsavedir, deprecate fdsavedir
45206         * NEWS: Mention deprecation of fdsavedir.
45207         * lib/savedir.c (streamsavedir): New extern function, whose name
45208         ends in "savedir" to be consistent with the others.  This differs
45209         from savedirstream in that it doesn't close its argument.  The
45210         next version of GNU tar will use this instead of fdsavedir, to
45211         avoid some race conditions and conserve file descriptors.
45212         (savedirstream): Reimplement as a wrapper around streamsavedir.
45213         (fdsavedir): Add a comment deprecating this function.  As far as
45214         I know, only GNU tar used it, and GNU tar doesn't need it any more.
45215         * lib/savedir.h (streamsavedir): New decl.
45216         (fdsavedir): Add a comment deprecating this.
45218 2010-09-10  Bruno Haible  <bruno@clisp.org>
45220         langinfo: Fix last commit.
45221         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
45222         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
45223         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
45225 2010-09-10  Bruno Haible  <bruno@clisp.org>
45227         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
45228         * lib/progreloc.c (O_EXEC): Define fallback.
45230 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
45232         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
45233         * NEWS: Document recent changes to fcntl-h.
45234         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
45235         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
45236         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
45237         Similarly for O_SEARCH; this last was already true, but not documented.
45238         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
45239         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
45240         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
45241         Likewise.
45242         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
45243         is zero, not whether it is defined.
45244         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
45245         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
45246         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
45248 2010-09-10  Bruno Haible  <bruno@clisp.org>
45250         langinfo, nl_langinfo: Fix for IRIX 5.3.
45251         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
45252         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
45253         HAVE_LANGINFO_YESEXPR.
45254         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
45255         HAVE_LANGINFO_YESEXPR.
45256         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
45257         HAVE_LANGINFO_T_FMT_AMPM is 0.
45258         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
45259         HAVE_LANGINFO_YESEXPR is 0.
45260         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
45261         NOEXPR.
45262         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
45263         * doc/posix-functions/nl_langinfo.texi: Likewise.
45264         Reported by Eric Blake.
45266 2010-09-10  Bruno Haible  <bruno@clisp.org>
45268         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
45269         * doc/glibc-functions/login_tty.texi: Mention the include file problem
45270         on FreeBSD 8.0 and OpenBSD 4.6.
45271         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
45272         * m4/pty_h.m4 (gl_PTY_H): Likewise.
45273         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
45274         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
45275         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
45276         ac_includes_default.
45277         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
45279 2010-09-09  Eric Blake  <eblake@redhat.com>
45281         strsignal: work around NetBSD bug
45282         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
45283         * lib/string.in.h (includes): Likewise.
45284         * doc/posix-functions/strsignal.texi (strsignal): Document the
45285         bug.
45286         Reported by Nelson H. F. Beebe.
45288         gnulib-tool: work with NetBSD /bin/sh
45289         * gnulib-tool (func_cache_var, func_cache_lookup_module)
45290         (func_get_description, func_get_comment, func_get_status)
45291         (func_get_notice, func_get_applicability, func_get_filelist)
45292         (func_get_dependencies, func_get_autoconf_early_snippet)
45293         (func_get_autoconf_snippet, func_get_automake_snippet)
45294         (func_get_include_directive, func_get_link_directive)
45295         (func_get_license, func_get_maintainer, func_import): Avoid
45296         shell syntax errors from parsing syntax extensions.
45298 2010-09-09  Bruno Haible  <bruno@clisp.org>
45300         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
45301         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
45302         a reliable way to determine whether the 'alias' command works.
45304 2010-09-08  Jim Meyering  <meyering@redhat.com>
45306         init.sh: penalize a set-x-impaired shell; don't disqualify it
45307         * tests/init.sh: Too many shells corrupt application stderr when
45308         you set -x, so we can't afford to disqualify them, since at least
45309         on Irix-6.5, that would disqualify all bourne shells.
45310         Instead, use a two-pass approach.
45311         On the first pass, try to find a shell that meets the stricter
45312         condition that set -x does not corrupt stderr.
45313         If no shell meets the stricter condition, retest each candidate
45314         shell, but without that extra condition.  Finally, when
45315         VERBOSE=yes is requested and set -x might cause trouble, simply
45316         issue a warning and refrain from enabling debug output.
45318 2010-09-08  Eric Blake  <eblake@redhat.com>
45320         unsetenv: fix OpenBSD bug
45321         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
45322         * doc/posix-functions/unsetenv.texi (unsetenv): Update
45323         documentation.
45324         Reported by Jim Meyering.
45326         strtod: work around IRIX 6.5 bug
45327         * lib/strtod.c (strtod): Reparse number on shorter string if
45328         exponent parse was invalid.
45329         * tests/test-strtod.c (main): Add check for "0x1p 2".
45330         Reported by Tom G. Christensen.
45332         getopt: optimize previous patch
45333         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
45334         empty variable.  Speed up awk script.
45335         Reported by Paolo Bonzini.
45337 2010-09-08  Jim Meyering  <meyering@redhat.com>
45339         test.sh: disqualify shells for which set -x corrupts stderr
45340         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
45341         and OpenBSD 4.7.  They make it so with "set -x", environment settings
45342         appear in stderr output.  For example, this command:
45343             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
45344         prints "P=1" on those two systems:
45346 2010-09-08  Bruno Haible  <bruno@clisp.org>
45348         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
45349         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
45350         commands, because some shells ignore redirections when there is an
45351         error in the command lookup.
45352         Reported by Eric Blake.
45354 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
45356         * lib/regex.h: Fix a mention of `regex_compile' (should be
45357         `re_compile_pattern').
45358         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
45359         (re_set_registers): Correct name of parameter in comment.
45361         * doc/regex.texi: Add documentation for missing syntax flags.
45362         Remove commented-out documentation of defunct syntax option
45363         RE_NO_EMPTY_ALTS.
45364         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
45365         Add documentation of re_set_registers.
45366         Document trick to re-use a pattern buffer by setting fastmap manually.
45367         Update documentation of struct re_pattern_buffer per public members.
45368         Uncomment documentation of equivalence class operators and
45369         collating symbol operators, since they are now implemented,
45370         Explain leftmost-longest matching in relation to alternatives.
45371         Tidy documentation of substring matching.
45372         Remove POSIX documentation, which is done better in
45373         glibc, and refer the reader there. Keep BSD API documentation, as
45374         that is not readily available elsewhere.
45376 2010-09-07  Eric Blake  <eblake@redhat.com>
45378         getopt: handle POSIXLY_CORRECT set but not exported
45379         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
45380         export state of POSIXLY_CORRECT, due to bash set -o posix.
45381         Reported by Dustin J. Mitchell.
45383 2010-09-05  Bruno Haible  <bruno@clisp.org>
45385         gnulib-tool: Highlight the changed options.
45386         * gnulib-tool (func_usage): Display the --import, --add-import,
45387         --remove-import explanations in bold font.
45389 2010-09-06  Karl Berry  <karl@gnu.org>
45391         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
45393 2010-09-05  Bruno Haible  <bruno@clisp.org>
45395         uniwidth/width: Update comment.
45396         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
45397         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
45399 2010-09-05  Bruno Haible  <bruno@clisp.org>
45401         isinf, isnan: Relax license.
45402         * modules/isinf (License): Change from GPL to LGPL, with consent from
45403         Ben Pfaff.
45404         * modules/isnan (License): Likewise.
45405         Requested by Ludovic Courtès.
45407 2010-09-04  Bruno Haible  <bruno@clisp.org>
45409         gnulib-tool: Help migration from --import to --add-import or --update.
45410         * gnulib-tool: Emit a verbose error message when --import is used
45411         without any module name.
45413 2010-09-04  Bruno Haible  <bruno@clisp.org>
45415         Update doc about gnulib-tool.
45416         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
45417         'gnulib-tool --update' in more detail.
45418         Reported by Eric Blake.
45420 2010-09-04  Bruno Haible  <bruno@clisp.org>
45422         gnulib-tool: Change --import. New options --add/remove-import.
45423         * gnulib-tool: New options --add-import, --remove-import.
45424         (func_usage): Document them.
45425         (have_associative): Define always.
45426         (func_import): In import mode, don't merge the specified settings with
45427         the cached settings. Implement remove-import mode.
45428         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
45429         Explain when to use them versus --import.
45430         (Simple update): Use --add-import instead of --import.
45431         * NEWS: Mention the change.
45433 2010-09-04  Bruno Haible  <bruno@clisp.org>
45435         * doc/gnulib-tool.texi (Initial import): Update paragraph about
45436         separate gnulib.mk.
45438 2010-09-04  Bruno Haible  <bruno@clisp.org>
45440         gnulib-tool: Don't talk about CVS any more.
45441         * gnulib-tool (func_usage, func_import): Write "version control"
45442         instead of CVS.
45444 2010-09-04  Jim Meyering  <meyering@redhat.com>
45446         maint.mk: avoid obscure sc_copyright_check failure in coreutils
45447         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
45448         false positives (whose names may be ill-chosen) when searching
45449         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
45450         would cause a false-positive.
45452         avoid coreutils "make distcheck" failure
45453         Coreutils tests with an absolute build directory name that contains
45454         a space.  Not quoting this directory name caused a failure.
45455         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
45456         * tests/test-vc-list-files-cvs.sh: Likewise.
45458 2010-09-04  Bruno Haible  <bruno@clisp.org>
45460         gnulib-tool: Avoid error when run in a package without Makefile.am.
45461         * gnulib-tool: When collecting the m4dirs in a package that does not
45462         have a Makefile.am, eliminate those directories that contain no
45463         gnulib-cache.m4. Fix expression that counts these directories.
45465 2010-09-04  Bruno Haible  <bruno@clisp.org>
45467         update-copyright test: Improve output when perl is missing or too old.
45468         * tests/test-update-copyright.sh: Move test of Perl version down after
45469         the test whether Perl exists. Provide an explanation relating Perl's
45470         error message to Automake's SKIP: message.
45472 2010-09-04  Bruno Haible  <bruno@clisp.org>
45474         Don't augment PATH in TESTS_ENVIRONMENT.
45475         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
45476         set abs_aux_dir instead of augmenting PATH.
45477         * modules/vc-list-files-tests (Makefile.am): Likewise.
45478         * tests/test-update-copyright.sh: Augment PATH here.
45479         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
45480         path_prepend_.
45481         * tests/test-vc-list-files-git.sh: Likewise.
45483 2010-09-04  Jim Meyering  <meyering@redhat.com>
45485         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
45486         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
45488 2010-09-04  Bruno Haible  <bruno@clisp.org>
45490         strdup: Fix compilation error in C++ mode.
45491         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
45492         the macro.
45494 2010-09-04  Bruno Haible  <bruno@clisp.org>
45496         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
45497         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
45498         macro into a function.
45499         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
45501 2010-09-04  Bruno Haible  <bruno@clisp.org>
45503         Set PATH_SEPARATOR the same way autoconf does.
45504         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
45505         the value of PATH_SEPARATOR the same way autoconf-generated configure
45506         scripts do.
45507         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
45508         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
45510 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
45512         Set PATH_SEPARATOR the same way autoconf does.
45513         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
45514         the same way autoconf-generated configure scripts do.
45515         * posix-modules: Likewise.
45517 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
45519         hash: fix safe_hasher const typo
45520         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
45521         const; otherwise, there is a type error later.
45523 2010-09-02  Jim Meyering  <meyering@redhat.com>
45525         test-update-copyright.sh: require perl 5.8.0
45526         * tests/test-update-copyright.sh: Require 5.8.0,
45527         which Tom G. Christensen has confirmed is adequate,
45528         while 5.6.1 is not.
45530 2010-09-02  Eric Blake  <eblake@redhat.com>
45532         tests: init.sh improvements for re-exec'ing with zsh
45533         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
45534         -vx through shell re-exec.
45535         Reported by Tom G. Christensen.
45537         wctype: fix typo in previous commit
45538         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
45539         Reported by Ludovic Courtès.
45541 2010-09-02  Jim Meyering  <meyering@redhat.com>
45543         test-update-copyright.sh: skip test if Perl is too old
45544         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
45545         Reported by Tom G. Christensen.
45547 2010-09-02  Bruno Haible  <bruno@clisp.org>
45549         wctype: Avoid compilation error on IRIX 6.5.30.
45550         * lib/wctype.in.h (iswblank): Declare with a replacement if
45551         REPLACE_ISWBLANK is set.
45552         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
45553         declared. Set REPLACE_ISWBLANK.
45554         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
45555         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
45556         * doc/posix-headers/wctype.texi: Likewise.
45557         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
45559 2010-09-01  Bruno Haible  <bruno@clisp.org>
45561         New module 'socketlib'.
45562         * modules/socketlib: New file.
45563         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
45564         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
45565         * modules/sockets (Depends-on): Add socketlib.
45566         Suggested by Sam Steingold <sds@gnu.org>.
45568 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
45570         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
45572         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
45573         when one needs search access to a directory but not read access.
45574         On systems where it is available, it works in some cases where
45575         O_RDONLY does not, namely on directories that are searchable but
45576         not readable, and which need only to be searchable.  If O_SEARCH
45577         is not available, fall back to the traditional method of using
45578         O_RDONLY.
45580         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
45581         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
45582         when opening a directory that needs only to be searchable.
45583         * lib/chdir-safer.c (chdir_no_follow): Likewise.
45584         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
45585         * lib/openat-proc.c (openat_proc_name): Likewise.
45586         * lib/openat.c (openat_needs_fchdir): Likewise.
45587         * lib/save-cwd.c (save_cwd): Likewise.
45588         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
45590 2010-08-28  Bruno Haible  <bruno@clisp.org>
45592         New module 'host-cpu-c-abi'.
45593         * modules/host-cpu-c-abi: New file.
45594         * m4/host-cpu-c-abi.m4: New file, based on part of
45595         clisp/src/m4/general.m4.
45596         Requested by Sam Steingold <sds@gnu.org>.
45598 2010-08-31  Eric Blake  <eblake@redhat.com>
45599         and Jim Meyering  <meyering@redhat.com>
45601         hash: factor, and guard against misbehaving hasher function
45602         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
45603         of table->hasher's return value.  Also protect against a hash value
45604         so large that adding it to table->bucket results in a NULL pointer.
45605         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
45606         Use it in place of open-coded check-and-abort.
45608 2010-08-30  Bruno Haible  <bruno@clisp.org>
45610         hash: silence spurious clang warning
45611         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
45612         Reported by Eric Blake.
45614 2010-08-30  Eric Blake  <eblake@redhat.com>
45616         strstr, memmem, strcasestr: avoid leaked shell message
45617         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
45618         FreeBSD.
45619         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
45620         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
45622         tests: silence clang warning
45623         * tests/test-malloca.c (do_allocation): Avoid dead store.
45625 2010-08-29  Bruno Haible  <bruno@clisp.org>
45627         gettext: Fix recent mistake.
45628         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
45630 2010-08-29  Bruno Haible  <bruno@clisp.org>
45632         selinux-h: Offer a --without-selinux option.
45633         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
45634         --without-selinux was specified, skip all tests and define
45635         HAVE_SELINUX_SELINUX_H to 0.
45636         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
45637         set LIB_SELINUX to empty.
45638         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
45639         gl_LIBSELINUX. If --without-selinux was specified, replace
45640         selinux/context.h.
45641         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
45643 2010-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45644             Bruno Haible  <bruno@clisp.org>
45646         Make the module 'realloc-gnu' work again on AIX and OSF/1.
45647         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
45648         of HAVE_REALLOC.
45649         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
45650         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
45651         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
45652         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
45654 2010-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45655             Bruno Haible  <bruno@clisp.org>
45657         Make the module 'calloc-gnu' work again on AIX and OSF/1.
45658         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
45659         HAVE_CALLOC.
45660         * lib/xmalloc.c: Update accordingly.
45661         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
45662         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
45663         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
45665 2010-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45666             Bruno Haible  <bruno@clisp.org>
45668         Make the module 'malloc-gnu' work again on AIX and OSF/1.
45669         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
45670         HAVE_MALLOC.
45671         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
45672         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
45673         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
45675 2010-08-29  Bruno Haible  <bruno@clisp.org>
45677         Update modules list.
45678         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
45679         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
45680         (String handling <string.h>): Add astrxfrm.
45681         (File system functions): Add readlinkat.
45683 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45685         Tests for module 'realloc-gnu'.
45686         * modules/realloc-gnu-tests: New file.
45687         * tests/test-realloc-gnu.c: New file.
45689         Tests for module 'calloc-gnu'.
45690         * modules/calloc-gnu-tests: New file.
45691         * tests/test-calloc-gnu.c: New file.
45693         Tests for module 'malloc-gnu'.
45694         * modules/malloc-gnu-tests: New file.
45695         * tests/test-malloc-gnu.c: New file.
45697 2010-08-28  Bruno Haible  <bruno@clisp.org>
45699         Rename module 'realloc' -> 'realloc-gnu'.
45700         * modules/realloc-gnu: New file, copied from modules/realloc.
45701         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
45702         obsolete.
45703         * modules/mgetgroups (Depends-on): Update.
45704         * doc/posix-functions/realloc.texi: Update.
45705         * NEWS: Mention the change.
45707         Rename module 'calloc' -> 'calloc-gnu'.
45708         * modules/calloc-gnu: New file, copied from modules/calloc.
45709         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
45710         obsolete.
45711         * doc/posix-functions/calloc.texi: Update.
45712         * NEWS: Mention the change.
45714         Rename module 'malloc' -> 'malloc-gnu'.
45715         * modules/malloc-gnu: New file, copied from modules/malloc.
45716         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
45717         obsolete.
45718         * modules/argp (Depends-on): Update.
45719         * modules/regex (Depends-on): Update.
45720         * doc/posix-functions/malloc.texi: Update.
45721         * NEWS: Mention the change.
45723 2010-08-28  Eric Blake  <eblake@redhat.com>
45725         pread, pwrite: add missing dependency
45726         * modules/pread (Depends-on): Add extensions.
45727         * modules/pwrite (Depends-on): Likewise.
45729 2010-08-28  Bruno Haible  <bruno@clisp.org>
45731         unistr/u*-strchr: Fix tests dependencies.
45732         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
45733         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
45734         Reported by Ian Beckwith <ianb@erislabs.net>.
45736 2010-08-28  Bruno Haible  <bruno@clisp.org>
45738         read-file: Don't occupy too much unused memory.
45739         * lib/read-file.c (fread_file): Shrink the buffer at the end.
45741 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
45742             Eric Blake  <eblake@redhat.com>
45743             Bruno Haible  <bruno@clisp.org>
45745         read-file: Avoid memory reallocations with regular files.
45746         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
45747         (fread_file): With regular files, use the remaining length as the
45748         initial buffer size.  Check against overflow.
45749         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
45750         sys_stat.
45752 2010-08-28  Bruno Haible  <bruno@clisp.org>
45754         ftello: Relax license.
45755         * modules/ftello (License): Relax to LGPLv2+.
45756         Reported by Eric Blake.
45758 2010-08-28  Bruno Haible  <bruno@clisp.org>
45760         Avoid relocwrapper link errors due to gnulib replacement functions.
45761         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
45762         function.
45763         Reported by Ben Pfaff <blp@cs.stanford.edu>.
45765 2010-08-28  Bruno Haible  <bruno@clisp.org>
45767         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
45768         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
45769         defined.
45770         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
45771         Suggested by Eric Blake.
45773 2010-08-28  Bruno Haible  <bruno@clisp.org>
45775         sys_socket, netdb: Ensure socklen_t gets defined.
45776         * modules/sys_socket (Depends-on): Add socklen.
45777         * modules/netdb (Depends-on): Likewise.
45778         * modules/getaddrinfo (Depends-on): Remove socklen.
45779         * modules/getsockopt (Depends-on): Likewise.
45780         * modules/setsockopt (Depends-on): Likewise.
45781         * tests/test-sys_socket.c: Check that socklen_t is defined.
45782         * tests/test-netdb.c: Likewise.
45783         * m4/socklen.m4: Update comments.
45784         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
45786 2010-08-27  Eric Blake  <eblake@redhat.com>
45788         login_tty: add missing dependency
45789         * modules/login_tty (Depends-on): Add pty.
45791 2010-08-26  Eric Blake  <eblake@redhat.com>
45793         lib-symbol-versions: fix m4 quoting
45794         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
45795         format for AC_LINK_IFELSE.
45797         glob: fix compile test
45798         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
45800         btowc: fix missing file
45801         * modules/btowc (Files): Also ship locale-fr.m4.
45803         lseek: fix link test
45804         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
45805         AC_LINK_IFELSE.
45807         include_next: silence autoconf 2.68 warning
45808         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
45809         AC_COMPILE_IFELSE as special.
45810         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
45811         autoconf < 2.68.
45813         acl: fix compilation test
45814         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
45815         AC_COMPILE_IFELSE.
45817 2010-08-26  Bruno Haible  <bruno@clisp.org>
45819         Modernize AC_TRY_RUN invocations.
45820         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
45821         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
45822         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
45823         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
45824         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
45825         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
45826         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
45827         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
45828         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
45829         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
45830         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
45831         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
45832         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
45833         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
45834         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
45835         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
45836         gl_MBRLEN_NUL_RETVAL): Likewise.
45837         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
45838         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
45839         Likewise.
45840         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
45841         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
45842         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
45843         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
45844         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
45845         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
45846         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
45847         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
45848         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
45849         Likewise.
45850         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
45851         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
45852         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
45853         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
45854         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
45855         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
45856         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
45857         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
45858         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
45859         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
45861 2010-08-26  Bruno Haible  <bruno@clisp.org>
45863         Modernize AC_TRY_LINK invocations.
45864         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
45865         AC_TRY_LINK.
45866         * m4/argp.m4 (gl_ARGP): Likewise.
45867         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
45868         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
45869         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
45870         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
45871         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
45872         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
45873         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
45874         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
45875         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
45876         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
45877         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
45878         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
45879         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
45880         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
45881         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
45882         * m4/hostent.m4 (gl_HOSTENT): Likewise.
45883         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
45884         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
45885         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
45886         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
45887         Likewise.
45888         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
45889         Likewise.
45890         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
45891         Likewise.
45892         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
45893         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
45894         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
45895         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
45896         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
45897         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
45898         * m4/servent.m4 (gl_SERVENT): Likewise.
45899         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
45900         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
45901         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
45902         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
45903         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
45904         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
45905         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
45906         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
45907         * modules/tsearch-tests (configure.ac): Likewise.
45909 2010-08-26  Bruno Haible  <bruno@clisp.org>
45911         Modernize AC_TRY_COMPILE invocations.
45912         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
45913         AC_TRY_COMPILE.
45914         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
45915         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
45916         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
45917         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
45918         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
45919         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
45920         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
45921         * m4/lock.m4 (gl_LOCK): Likewise.
45922         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
45923         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
45924         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
45925         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
45926         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
45927         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
45928         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
45929         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
45930         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
45931         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
45932         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
45933         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
45934         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
45935         extraneous semicolon.
45937 2010-08-26  Jim Meyering  <meyering@redhat.com>
45939         stat-time: relax license LGPL
45940         * modules/stat-time (License): Change from GPL to LGPL,
45941         with consent from all contributors, for use in libguile.
45942         Requested by Ludovic Courtès.
45944 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
45946         poll: return immediately on POLLHUP.
45947         * lib/poll.c (poll): Always set timeout before wait_timeout is
45948         computed.
45950 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45952         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
45953         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
45954         rmdir ("dir/.//"), unlinkat.
45956 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
45958         stdbool: avoid spurious failure with modern xlc
45959         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
45961 2010-08-24  Bruno Haible  <bruno@clisp.org>
45963         getloadavg: simplify code
45964         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
45965         gl_have_func. Update comments.
45967 2010-08-24  Eric Blake  <eblake@redhat.com>
45969         getloadavg: don't define SVR4 on cygwin
45970         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
45971         only define SVR4 when -lkvm is required.
45972         Reported by Yaakov Selkowitz.
45974 2010-08-24  Bruno Haible  <bruno@clisp.org>
45976         priv-set: fix comment
45977         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
45979 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
45981         priv-set: fix comments
45982         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
45983         to match code, as suggested by David Bartley in:
45984         http://lists.gnu.org/r/bug-tar/2010-08/msg00018.html
45986 2010-08-23  Eric Blake  <eblake@redhat.com>
45988         stdbool: avoid rejecting clang
45989         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
45990         * tests/test-stdbool.c: Enable more tests if using the system
45991         <stdbool.h> instead of the gnulib replacement.
45992         (main): Move xlc bug test to a runtime test for all compilers.
45993         Reported by Anders Kaseorg.
45995         argz: fix shell quoting issue
45996         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
45997         Reported by Charles Wilson.
45999 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
46000             Erik Faye-Lund <kusmabite@gmail.com>
46002         poll, select: handle ERROR_BROKEN_PIPE.
46003         * lib/poll.c (win32_compute_revents): Return POLLHUP when
46004         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
46005         * lib/select.c (win32_compute_revents): Do not mark a pipe
46006         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
46008 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
46010         fts: allow compilation with C++
46011         * lib/fts_.h: Specify extern "C" linkage with C++.
46013 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46015         Fix gnulib-tool sed script de-commentation for AIX sed.
46016         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
46017         sed.
46019 2010-08-17  Eric Blake  <eblake@redhat.com>
46021         test-stddef: test for (some) offsetof bugs
46022         * tests/test-stddef.c: Enhance test to ensure correct type of
46023         offsetof.
46024         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
46025         that we are not fixing at this time.
46027 2010-08-15  Bruno Haible  <bruno@clisp.org>
46029         stpncpy: Allow stpncpy to be defined as a macro.
46030         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
46031         if it's already correctly declared.
46032         * lib/string.in.h (stpncpy): Undefine before redefining.
46033         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
46035 2010-08-14  Bruno Haible  <bruno@clisp.org>
46037         Rename module 'memxfrm' to 'amemxfrm'.
46038         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
46039         (amemxfrm): Renamed from memxfrm.
46040         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
46041         (amemxfrm): Renamed from memxfrm.
46042         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
46043         * NEWS: Mention the change.
46044         * MODULES.html.sh (String handling <string.h>): Update.
46045         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
46046         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
46047         * lib/unicase/u16-casexfrm.c: Likewise.
46048         * lib/unicase/u32-casexfrm.c: Likewise.
46049         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
46050         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
46051         * lib/uninorm/u16-normxfrm.c: Likewise.
46052         * lib/uninorm/u32-normxfrm.c: Likewise.
46053         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
46054         memxfrm.
46055         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
46056         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
46057         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
46058         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
46059         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
46060         Suggested by Paul Eggert.
46062 2010-08-14  Bruno Haible  <bruno@clisp.org>
46064         Tests for module 'astrxfrm'.
46065         * modules/astrxfrm-tests: New file.
46066         * tests/test-astrxfrm.c: New file.
46068         New module 'astrxfrm'.
46069         * lib/astrxfrm.h: New file.
46070         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
46071         * modules/astrxfrm: New file.
46073 2010-08-14  Reuben Thomas  <rrt@sc3d.org>
46075         regex: Tweak doc.
46076         * doc/regex.texi (Overview): Don't mention regex.c.
46077         (GNU Regular Expression Compiling): Likewise.
46078         (Match-end-of-line Operator): Mention 'not_eol'.
46080 2010-08-14  Brian Gough  <bjg@gnu.org>
46081             Bruno Haible  <bruno@clisp.org>
46083         git-merge-changelog: add doc relating to use with bzr and hg.
46084         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
46086 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
46088         pthread: fix pthread.h creation for srcdir != builddir
46089         * modules/pthread (Makefile.am): Fix the rule to work also in a
46090         non-srcdir build.
46092 2010-08-13  Karl Berry  <karl@gnu.org>
46094         * doc/regex.texi (Predefined Syntaxes): @smallexample.
46095         * doc/posix-*/*: force line break before @url of POSIX
46096         specifications.
46097         Suggested by Werner Lemberg.
46099 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
46101         strtod: fix const diagnostic
46102         * lib/strtod.c (strtod): Don't assign const char * to char *,
46103         as this elicits a warning from GCC when warnings are enabled.
46105 2010-08-10  Pádraig Brady  <P@draigbrady.com>
46106         and Eric Blake  <eblake@redhat.com>
46108         copy-acl: ignore ENOTSUP on HP-UX
46109         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
46110         so that it is available for HP-UX.
46111         * lib/copy-acl.c (qcopy_acl): Use it.
46112         Reported by Patrick M. Callahan.
46114 2010-08-10  Eric Blake  <eblake@redhat.com>
46116         open, chown: relax license
46117         * modules/open (License): Change to LGPLv2+, with consent by all
46118         authors, for use in augeas.
46119         * modules/chown (License): Likewise.
46120         * modules/lchown (Likewise): Likewise.
46121         Requested by Adam Stokes.
46123 2010-08-09  Karl Berry  <karl@gnu.org>
46125         * build-aux/ar-lib: new file, import from Automake.
46126         * config/srclist.txt: autocheck for updates.
46128 2010-08-09  Eric Blake  <eblake@redhat.com>
46130         readlinkat: adjust client modules
46131         * modules/areadlinkat (Depends-on): Use readlinkat, not
46132         symlinkat.
46133         * modules/areadlinkat-with-size (Depends-on): Likewise.
46135         mknod: be more vocal about danger of running tests as root
46136         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
46137         root, since that is just asking for problems.
46138         Suggested by Bruno Haible, based on a report by Rainer Tammer.
46140         readlinkat: split into its own module
46141         * modules/symlinkat: Split readlinkat...
46142         * modules/readlinkat: ...into separate module.
46143         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
46144         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
46145         * lib/symlinkat.c (readlinkat): Move...
46146         * lib/readlinkat.c: ...into new file.
46147         * modules/symlinkat-tests: Split readlinkat test...
46148         * modules/readlinkat-tests: ...into separate module.
46149         * tests/test-symlinkat.c: Split...
46150         * tests/test-readlinkat.c: ...into new file.
46151         * NEWS: Document the split.
46152         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
46153         * lib/unistd.in.h (readlinkat): Likewise.
46154         Suggested by Bruno Haible.
46156 2010-08-08  Bruno Haible  <bruno@clisp.org>
46158         memxfrm: Speed up.
46159         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
46160         that usually only one call to strxfrm is necessary for each string
46161         part.
46162         Reported by Paul Eggert <eggert@cs.ucla.edu>.
46164 2010-08-07  Karl Berry  <karl@gnu.org>
46166         * doc/posix-headers/limits.texi,
46167         * doc/posix-functions/malloc.texi,
46168         * doc/posix-functions/strsignal.texi: missing @item.
46169         * doc/ld-version-script.texi: spurious leading i.
46170         * doc/regex.texi (Interval Operators): no commas inside @var.
46172 2010-08-01  Bruno Haible  <bruno@clisp.org>
46174         Integrate the regex documentation.
46175         * doc/gnulib.texi: Define 'cn' index.
46176         (Regular expressions): New a chapter that includes regex.texi and
46177         regexprops-generic.texi.
46178         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
46179         syntax.
46181         Whitespace cleanup.
46182         * doc/regex.texi: Remove trailing spaces.
46184         Add regex documentation.
46185         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
46186         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
46187         Written by Kathy A. Hargreaves and Karl Berry.
46189 2010-08-01  Bruno Haible  <bruno@clisp.org>
46191         link: Update documentation.
46192         * doc/posix-functions/link.texi: Update regarding Solaris.
46194 2010-07-31  Bruno Haible  <bruno@clisp.org>
46196         Update modules list.
46197         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
46198         (String handling <string.h>): Add memcmp2, memxfrm.
46199         (Container data structures): Add xlist, xsublist, xoset.
46200         (Core language properties): Add alignof, unused-parameter.
46201         (Process control, Numeric conversion functions <stdlib.h>): Renamed
46202         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
46203         (Unibyte characters <ctype.h>): New section.
46204         (String handling <string.h>): New section.
46205         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
46206         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
46207         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
46208         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
46209         tan, tanh, tanl, y0, y1, yn.
46210         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
46211         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
46212         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
46213         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
46214         unlockpt, vdprintf, vdprintf-posix.
46215         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
46216         (File system functions): Add concat-filename, sys_file, sys_ioctl,
46217         xconcat-filename.
46218         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
46219         getdtablesize, pipe2, pipe2-safer.
46220         (Security): New section.
46221         (Networking functions): Add accept4.
46222         (Signal handling): Add sigpipe.
46223         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
46224         mbmemcasecoll.
46225         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
46226         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
46227         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
46228         pipe-filter-ii.
46229         (Misc): Add argp-version-etc, login_tty, parse-duration.
46231 2010-07-31  Bruno Haible  <bruno@clisp.org>
46233         Improve doc in MODULES.html.
46234         * modules/linkat (Description): Add the word "function".
46235         * modules/mkfifo (Description): Likewise.
46236         * modules/mknod (Description): Likewise.
46237         * modules/remove (Description): Likewise.
46238         * modules/renameat (Description): Likewise.
46239         * modules/stat (Description): Likewise.
46240         * modules/symlink (Description): Likewise.
46241         * modules/unlink (Description): Likewise.
46243 2010-07-31  Bruno Haible  <bruno@clisp.org>
46245         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
46246         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
46247         option --enable/disable-c++ instead of --enable/disable-cxx.
46248         * NEWS: Mention the change.
46250 2010-07-31  Bruno Haible  <bruno@clisp.org>
46252         readlink, areadlink: Relax test a bit.
46253         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
46254         alternative to ENOTDIR.
46255         * tests/test-areadlink.h (test_areadlink): Likewise.
46256         Reported by Rainer Tammer.
46258 2010-07-31  Bruno Haible  <bruno@clisp.org>
46260         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
46261         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
46262         character, perform the search using U_STRCHR.
46263         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
46264         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
46265         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
46266         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
46267         Suggested by Paolo Bonzini.
46269 2010-07-31  Bruno Haible  <bruno@clisp.org>
46271         unistr/u*-strstr: Fix dependencies.
46272         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
46273         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
46274         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
46276 2010-07-31  Bruno Haible  <bruno@clisp.org>
46278         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
46279         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
46280         the beginning of the loop.
46281         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
46282         cases in 'switch' statement.
46284         unistr/u8-strchr: Fix several bugs.
46285         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
46286         the string. When not found, return NULL, not a pointer near the end.
46288         More tests for unistr/u8-strchr.
46289         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
46290         that the function does not read past the first occurrence of the byte
46291         being searched.
46292         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
46293         * tests/unistr/test-u16-strchr.c (main): New function.
46294         * tests/unistr/test-u32-strchr.c (main): New function.
46296 2010-07-31  Bruno Haible  <bruno@clisp.org>
46298         posix-modules: Ignore backup files of documentation files.
46299         * posix-modules: grep only through files named *.texi.
46301 2010-07-31  Bruno Haible  <bruno@clisp.org>
46303         symlinkat: Fix documentation.
46304         * doc/posix-functions/readlinkat.texi: Fix module name.
46306 2010-07-31  Bruno Haible  <bruno@clisp.org>
46308         fchownat: Replace also when chown has the trailing slash bug.
46309         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
46310         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
46311         introduced on 2010-04-10.
46312         Reported by Rainer Tammer.
46314 2010-07-31  Bruno Haible  <bruno@clisp.org>
46316         linkat: Work around AIX 7.1 bug.
46317         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
46318         whether linkat handles trailing slash correctly. If not, replace linkat
46319         and define LINKAT_TRAILING_SLASH_BUG.
46320         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
46321         check whether (fd1,file1) points to a directory if file1 or file2 ends
46322         in a slash. Code taken from lib/link.c.
46323         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
46324         Reported by Rainer Tammer.
46326 2010-07-31  Bruno Haible  <bruno@clisp.org>
46328         Correctly determine whether pow is available in libc on AIX 7 with xlc.
46329         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
46330         This disables an xlc optimization that was causing wrong test results.
46331         Reported by Rainer Tammer.
46333 2010-07-31  Bruno Haible  <bruno@clisp.org>
46335         iconv: Work around AIX 6.1..7.1 bug.
46336         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
46337         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
46338         cross-compiling, guess no on all versions of AIX.
46339         Reported by Rainer Tammer.
46341 2010-07-31  Bruno Haible  <bruno@clisp.org>
46343         readlink: Relax test a bit.
46344         * tests/test-readlink.h (test_readlink): Allow different errno value
46345         when readlink is called with a file name that ends in / and refers to
46346         a file.
46347         Suggested by Eric Blake.
46348         Reported by Rainer Tammer.
46350 2010-07-31  Bruno Haible  <bruno@clisp.org>
46352         copysign: Does not require -lm on glibc systems.
46353         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
46354         gl_COMMON_DOUBLE_MATHFUNC.
46355         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
46357 2010-07-31  Bruno Haible  <bruno@clisp.org>
46359         duplocale: Work around AIX 7.1 bug.
46360         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
46361         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
46362         * lib/duplocale.c (rpl_duplocale): Update comment.
46363         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
46364         Reported by Rainer Tammer.
46366 2010-07-30  Bruno Haible  <bruno@clisp.org>
46368         dirfd: Avoid link error on AIX 7.1.
46369         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
46370         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
46371         exist, set REPLACE_DIRFD.
46372         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
46373         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
46374         * doc/posix-functions/dirfd.texi: Update.
46375         Reported by Rainer Tammer.
46377 2010-07-30  Eric Blake  <eblake@redhat.com>
46379         strtod: next round of AIX fixes
46380         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
46381         exponent.
46382         * tests/test-strtod.c (main): Enhance tests.
46383         * doc/posix-functions/strtod.texi (strtod): Document next bug.
46384         Reported by Rainer Tammer.
46386         futimens: fix configure check
46387         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
46388         Reported by Bruno Haible.
46390 2010-07-30  Bruno Haible  <bruno@clisp.org>
46392         getline: Update regarding AIX.
46393         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
46394         Reported by Rainer Tammer.
46396 2010-07-30  Bruno Haible  <bruno@clisp.org>
46398         wcwidth: Drop replacement on AIX 7.
46399         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
46400         AIX 7.
46401         Reported by Rainer Tammer.
46403 2010-07-30  Bruno Haible  <bruno@clisp.org>
46405         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
46406         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
46407         a 'char *'.
46408         Reported by Rainer Tammer.
46410 2010-07-30  Bruno Haible  <bruno@clisp.org>
46412         unlink: Update regarding AIX.
46413         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
46414         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
46415         Reported by Rainer Tammer.
46417 2010-07-30  Bruno Haible  <bruno@clisp.org>
46419         symlink: Update regarding AIX.
46420         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
46421         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
46422         Reported by Rainer Tammer.
46424 2010-07-30  Bruno Haible  <bruno@clisp.org>
46426         strndup: Update regarding AIX.
46427         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
46428         AIX 7.
46429         Reported by Rainer Tammer.
46431 2010-07-30  Bruno Haible  <bruno@clisp.org>
46433         stat: Update regarding AIX.
46434         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
46435         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
46436         Reported by Rainer Tammer.
46438 2010-07-30  Bruno Haible  <bruno@clisp.org>
46440         truncl: Fix autoconf test.
46441         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
46442         whether truncl works.
46443         Reported by Rainer Tammer.
46445 2010-07-30  Bruno Haible  <bruno@clisp.org>
46447         round: Update regarding AIX.
46448         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
46449         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
46450         Reported by Rainer Tammer.
46452 2010-07-30  Bruno Haible  <bruno@clisp.org>
46454         rename: Update regarding AIX.
46455         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
46456         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
46457         Reported by Rainer Tammer.
46459 2010-07-30  Bruno Haible  <bruno@clisp.org>
46461         printf.m4: Update regarding AIX.
46462         * m4/printf.m4: Update comments regarding AIX.
46463         Reported by Rainer Tammer.
46465 2010-07-30  Bruno Haible  <bruno@clisp.org>
46467         iconv: Update regarding AIX.
46468         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
46469         AIX 7.
46470         Reported by Rainer Tammer.
46472 2010-07-30  Bruno Haible  <bruno@clisp.org>
46474         getopt: Update regarding AIX.
46475         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
46476         no on AIX.
46477         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
46478         Reported by Rainer Tammer.
46480 2010-07-30  Bruno Haible  <bruno@clisp.org>
46482         ldexpl; Update regarding AIX.
46483         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
46484         on AIX 7.
46485         Reported by Rainer Tammer.
46487 2010-07-30  Bruno Haible  <bruno@clisp.org>
46489         frexpl: Update regarding AIX.
46490         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
46491         on AIX 7.
46492         Reported by Rainer Tammer.
46494 2010-07-30  Bruno Haible  <bruno@clisp.org>
46496         open, fopen: Update regarding AIX.
46497         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
46498         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
46499         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
46500         * doc/posix-functions/fopen.texi: Likewise.
46501         Reported by Rainer Tammer.
46503 2010-07-30  Bruno Haible  <bruno@clisp.org>
46505         chown: Update doc regarding AIX.
46506         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
46507         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
46508         Reported by Rainer Tammer.
46510 2010-07-30  Eric Blake  <eblake@redhat.com>
46512         strtod: fix bug in replacement function on AIX
46513         * lib/strtod.c (strtod): Special case broken "0x" parse in
46514         underlying strtod.
46515         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
46516         * doc/posix-functions/strtod.texi (strtod): Likewise.
46517         Reported by Rainer Tammer.
46519 2010-07-30  Bruno Haible  <bruno@clisp.org>
46521         mbrlen: Fix cross-compilation guess for AIX.
46522         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
46523         guess. Leftover from 2008-12-22.
46525 2010-07-30  Bruno Haible  <bruno@clisp.org>
46527         mbrtowc: Fix cross-compilation guess for AIX.
46528         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
46529         guess. Leftover from 2008-12-21.
46531 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
46533         init.sh: work around trap limitation of some shells
46534         * tests/init.sh (setup_): Move exit trap outside of shell function.
46536 2010-07-29  Eric Blake  <eblake@redhat.com>
46538         strtod: aid debugging
46539         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
46540         understanding why strtod is rejected.
46542 2010-07-28  Bruno Haible  <bruno@clisp.org>
46544         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
46545         * lib/unistr/u8-chr.c: Include <string.h>.
46546         * tests/unistr/test-u8-chr.c: Likewise.
46547         * tests/unistr/test-u16-chr.c: Likewise.
46548         * tests/unistr/test-u32-chr.c: Likewise.
46549         * tests/unistr/test-u8-strchr.c: Likewise.
46550         * tests/unistr/test-u16-strchr.c: Likewise.
46551         * tests/unistr/test-u32-strchr.c: Likewise.
46552         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
46553         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
46554         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
46555         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
46557 2010-07-28  Bruno Haible  <bruno@clisp.org>
46559         Use spaces for indentation, not tabs.
46560         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
46562 2010-07-27  Bruno Haible  <bruno@clisp.org>
46564         mbspcasecmp: Fix function specification.
46565         * lib/string.in.h (mbspcasecmp): Fix specification comment.
46566         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
46567         Reported by Eric Blake <eblake@redhat.com>.
46569 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
46571         timespec: use cast and not conditional, as truncation isn't possible
46572         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
46573         instead of a conditional.  Comment about the situation in more detail.
46574         This undoes most of the 2009-10-29 patch.
46576 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
46578         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
46579         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
46580         * lib/unistr/u8-strchr.c: Likewise.
46581         * modules/unistr/u8-chr: Depend on memchr.
46583         unistr/u*-strchr: add tests
46584         * modules/unistr/u8-strchr-tests: New file.
46585         * modules/unistr/u16-strchr-tests: New file.
46586         * modules/unistr/u32-strchr-tests: New file.
46587         * tests/unistr/test-strchr.h: New file.
46588         * tests/unistr/test-u8-strchr.c: New file.
46589         * tests/unistr/test-u16-strchr.c: New file.
46590         * tests/unistr/test-u32-strchr.c: New file.
46592         unistr/u*-chr: test multibyte sequences more
46593         * tests/unistr/test-chr.h: Do complete testing of the characters in the
46594         test vector.
46595         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
46596         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
46597         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
46599         unistr/u*-chr: test multibyte sequences
46600         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
46602         unistr/u*-chr: prepare for multibyte tests
46603         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
46604         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
46605         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
46606         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
46607         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
46608         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
46610 2010-07-18  Bruno Haible  <bruno@clisp.org>
46612         unistr/u8-strchr: Optimize non-ASCII argument case.
46613         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
46614         because the first byte often matches anyway.
46615         Reported by Pádraig Brady <P@draigbrady.com>.
46617 2010-07-15  Karl Berry  <karl@gnu.org>
46619         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
46621 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
46623         getcwd: on Solaris, work better if ancestors are inaccessible
46624         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
46625         buffer and size, try again with a large buffer.  This works better
46626         on Solaris, since its getcwd succeeds even if the path to the root
46627         is inaccessible, and this is helpful in common cases such as .zfs
46628         hidden directories.  Problem reported by J Chapman Flack in
46629         http://lists.gnu.org/r/bug-tar/2010-06/msg00000.html
46630         Use system getcwd if it's declared, not merely if it's partly
46631         working; use the partly-working test only to avoid needless effort
46632         if the system getcwd fails.
46633         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
46634         comment that was already obsolete and is now even more obsolete.
46635         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
46636         now might call strdup.
46638 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
46640         pthread: Add enough so that coreutils/src/sort.c compiles.
46641         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
46642         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
46643         gnulib. Include <sched.h> and <time.h>, as per POSIX.
46644         Include <sys/types.h>, in case it defines pthread_t.
46645         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
46646         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
46647         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
46648         (pthread_rwlockattr_t, pthread_spinlock_t):
46649         New typedefs, if HAVE_PTHREAD_T is not defined.
46650         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
46651         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
46652         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
46653         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
46654         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
46655         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
46656         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
46657         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
46658         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
46659         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
46660         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
46661         New macros.
46662         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
46663         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
46664         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
46665         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
46666         (pthread_spin_unlock): New dummy functions.
46667         (pthread_create): Return EAGAIN; don't set errno.
46668         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
46669         require AC_C_INLINE.
46670         * modules/pthread (Depends-on): Add sched, time.
46671         (pthread.h): Use AM_V_GEN.
46673 2010-07-13  Bruno Haible  <bruno@clisp.org>
46675         striconveh: Don't malloc memory if the result buffer is sufficient.
46676         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
46677         buffer if its size is sufficient.
46678         Reported by Ludovic Courtès <ludo@gnu.org>.
46680 2010-07-13  Bruno Haible  <bruno@clisp.org>
46682         strtod: Add safety check.
46683         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
46685 2010-07-12  Bruno Haible  <bruno@clisp.org>
46687         Unify tests that set gl_cv_func_ldexpl_no_libm.
46688         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
46689         gl_FUNC_LDEXPL.
46690         (gl_FUNC_LDEXPL): Invoke it.
46691         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
46693 2010-07-12  Bruno Haible  <bruno@clisp.org>
46695         Unify tests that set gl_cv_func_ldexp_no_libm.
46696         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
46697         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
46698         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
46699         (configure.ac): Simply invoke gl_FUNC_LDEXP.
46700         * modules/strtod (Files): Add m4/ldexp.m4.
46702 2010-07-12  Bruno Haible  <bruno@clisp.org>
46704         Unify tests that set gl_cv_func_frexpl_no_libm.
46705         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
46706         gl_FUNC_FREXPL_NO_LIBM.
46707         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
46708         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
46710 2010-07-12  Bruno Haible  <bruno@clisp.org>
46712         Unify tests that set gl_cv_func_frexp_no_libm.
46713         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
46714         gl_FUNC_FREXP_NO_LIBM.
46715         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
46716         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
46718 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
46720         memcoll: clarify sizes versus lengths, document better, and tweak perf
46721         * lib/memcoll.c (strcoll_loop, memcoll0):
46722         Improve quality of descriptive comments.  Name variables
46723         consistently as to whether they are lengths (which do not include
46724         terminating null) versus sizes (which do).
46725         * lib/xmemcoll.c (xmemcoll0): Likewise.
46726         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
46727         returned when s1size == 0; this is easier to compile and saves
46728         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
46730 2010-07-12  Bruno Haible  <bruno@clisp.org>
46732         Tests for module '_Exit'.
46733         * modules/_Exit-tests: New file.
46734         * tests/test-_Exit.sh: New file.
46735         * tests/test-_Exit.c: New file.
46737         New module '_Exit'.
46738         * lib/stdlib.in.h (__attribute__): New macro.
46739         (_Exit): New declaration.
46740         * lib/_Exit.c: New file.
46741         * m4/_Exit.m4: New file.
46742         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
46743         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
46744         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
46745         * modules/_Exit: New file.
46746         * tests/test-stdlib-c++.cc (_Exit): Check signature.
46747         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
46749 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
46751         strtod: make it more-accurate typically, and don't require libm
46752         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
46753         Include limits.h.  Don't include string.h.
46754         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
46755         (locale_isspace): New function, so that no casts are needed to
46756         check whether *s is a space.
46757         (ldexp): Provide an unused dummy if not available.
46758         (scale_radix_exp, parse_number, underlying_strtod): New functions.
46759         (strtod): Use them.  This implementation prefers to use the
46760         underlying strtod if available, falling back on our own code
46761         only to fix known bugs.  This is more likely to produce an
46762         accurate result.  Also, it avoids the use of libm functions.
46763         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
46764         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
46765         was absent, but it caused a test failure with coreutils.
46766         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
46767         with libm.
46768         * modules/strtod (Makefile.am, Link): libm is no longer needed.
46769         * modules/strtod-tests (Makefile.am): Likewise.
46771 2010-07-11  Pádraig Brady  <P@draigBrady.com>
46772             Bruno Haible  <bruno@clisp.org>
46774         unistr/u8-strchr: Optimize ASCII argument case.
46775         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
46777 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
46779         (x)memcoll: minor tweaks
46780         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
46781         is after the type that it qualifies.
46782         (memcoll0): Likewise.
46783         * lib/memcoll.h (memcoll0): Likewise.
46784         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
46785         * lib/xmemcoll.h (xmemcoll0): Likewise.
46786         * lib/memcoll.c (memcoll0): Correct the comment.  This function
46787         differs from memcoll in that the NUL byte is part of the argument.
46788         Omit the abort-checks, as performance is a real issue here.  Plus,
46789         the checks were wrong anyway (an off-by-one error).  Omit local
46790         variable 'diff', as it's a bit clearer that way.
46791         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
46792         no longer needed.
46794 2010-07-08  Chen Guo  <chenguo4@yahoo.com>
46796         (x)memcoll: speedup when input is known to be NUL delimited
46797         * lib/memcoll.c: Include stdlib.
46798         (memcoll0): New function.
46799         (strcoll_loop): New function, refactored for use in both memcoll
46800         and memcoll0.
46801         * lib/memcoll.h (memcoll0): Add prototype.
46802         * lib/xmemcoll.c (xmemcoll0): New function.
46803         (collate_error): New function, refactored for use in both xmemcoll
46804         and xmemcoll0.
46805         * lib/xmemcoll.h (xmemcoll0): Add prototype.
46806         * m4/memcoll.m4: add inline invocation.
46808 2010-07-06  Pádraig Brady  <P@draigBrady.com>
46810         * build-aux/bootstrap: Remove any local translations
46811         from the translation project synchronization directory,
46812         so that local only translations are not distributed.
46814 2010-07-04  Bruno Haible  <bruno@clisp.org>
46816         fsusage: Clarify which code applies to which platforms.
46817         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
46818         platform.
46819         * lib/fsusage.c (get_fs_usage): Likewise.
46821 2010-07-04  Bruno Haible  <bruno@clisp.org>
46823         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
46824         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
46825         Reported by Martin Lambers <marlam@marlam.de>.
46827 2010-07-04  Jim Meyering  <meyering@redhat.com>
46829         hash: once again explicitly disallow insertion of NULL
46830         * lib/hash.c (hash_insert0): Reinstate just-removed test:
46831         inserting a NULL pointer cannot work with these functions.
46832         Add a comment with details.
46833         This reverts part of the 2010-07-01 commit, 5bef1a35
46834         "hash: extend module to deal with non-pointer keys".
46836 2010-07-01  Bruno Haible  <bruno@clisp.org>
46838         stdbool: Update doc.
46839         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
46840         Info from Christian Weisgerber <naddy@mips.inka.de>.
46842 2010-07-01  Jim Meyering  <meyering@redhat.com>
46844         hash: extend module to deal with non-pointer keys
46845         * lib/hash.c (hash_insert0): New interface, much like hash_insert
46846         but that allows insertion of non-pointer entries.
46847         Do not disallow an ENTRY value of NULL.
46848         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
46849         * lib/hash.h (hash_insert0): Declare.
46851 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
46853         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
46854         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
46855         not present (i.e. with autoconf 2.59 and when using gettextize, not
46856         gnulib), require AC_GNU_SOURCE instead.
46858 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
46860         idpriv-drop: Fix tests.
46861         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
46862         not to the test-idpriv-droptemp program.
46864 2010-06-29  Bruno Haible  <bruno@clisp.org>
46866         string: Fix syntax error with g++ 2.96.
46867         * lib/string.in.h (__pure__): Remove definition.
46868         (_GL_ATTRIBUTE_PURE): New macro.
46869         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
46870         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
46871         Reported by Christian Weisgerber <naddy@mips.inka.de>.
46873 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
46875         unitypes: Fix bug introduced on 2010-05-18.
46876         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
46878 2010-06-22  Eric Blake  <eblake@redhat.com>
46880         memmem: slight optimization
46881         * lib/str-two-way.h (critical_factorization): Update comments.
46882         Reduce work during factorization phase.
46883         Reported by Carlos Bueno <carlos@bueno.org>.
46885 2010-06-21  Bruno Haible  <bruno@clisp.org>
46887         Fix HAVE_CALLOC_POSIX misnomer.
46888         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
46889         !HAVE_CALLOC_POSIX.
46890         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
46891         HAVE_CALLOC_POSIX.
46892         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
46893         instead of HAVE_CALLOC_POSIX.
46894         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
46895         HAVE_CALLOC_POSIX.
46897         Use modern idiom for calloc() replacement.
46898         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
46899         AC_FUNC_CALLOC.
46900         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
46901         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
46902         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
46903         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
46904         (gl_REPLACE_CALLOC): New macro.
46906 2010-06-21  Bruno Haible  <bruno@clisp.org>
46908         Fix HAVE_REALLOC_POSIX misnomer.
46909         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
46910         !HAVE_REALLOC_POSIX.
46911         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
46912         HAVE_REALLOC_POSIX.
46913         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
46914         instead of HAVE_REALLOC_POSIX.
46915         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
46916         HAVE_REALLOC_POSIX.
46918         Use modern idiom for realloc() replacement.
46919         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
46920         AC_FUNC_REALLOC.
46921         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
46922         Autoconf's AC_FUNC_REALLOC.
46923         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
46924         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
46925         (gl_REPLACE_REALLOC): New macro.
46926         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
46928 2010-06-21  Bruno Haible  <bruno@clisp.org>
46930         Fix HAVE_MALLOC_POSIX misnomer.
46931         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
46932         !HAVE_MALLOC_POSIX.
46933         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
46934         HAVE_MALLOC_POSIX.
46935         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
46936         instead of HAVE_MALLOC_POSIX.
46937         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
46938         HAVE_MALLOC_POSIX.
46940         Use modern idiom for malloc() replacement.
46941         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
46942         AC_FUNC_MALLOC.
46943         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
46944         Autoconf's AC_FUNC_MALLOC.
46945         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
46946         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
46947         (gl_REPLACE_MALLOC): New macro.
46948         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
46950 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
46952         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
46953         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
46954         This macro takes 3 arguments, not 4.
46956 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
46958         ipv6: fix detection under mingw
46959         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
46960         in6_addr.
46962 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
46964         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
46965         that strtod() works when cross-compiling to a glibc version known
46966         to work.
46968 2010-06-15  Bruno Haible  <bruno@clisp.org>
46970         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
46972 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
46974         select: Correct timeout.
46975         * lib/select.c (rpl_select): Compute wait_timeout correctly.
46977 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
46979         git-version-gen: init shell var to avoid env var influence
46980         * build-aux/git-version-gen (v): Init shell var to empty.
46982 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
46984         priv-set: Don't assume that priv.h exists merely because getppriv does.
46985         See Jan Andersen's bug report about AIX 5L in
46986         http://lists.gnu.org/r/bug-tar/2010-06/msg00019.html
46987         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
46988         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
46989         * lib/priv-set.h: Likewise.
46990         * tests/test-priv-set.c: Likewise.
46992 2010-06-13  Bruno Haible  <bruno@clisp.org>
46994         relocatable: Make it easier to test whether to install wrappers.
46995         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
46996         RELOCATABLE_VIA_WRAPPER.
46998 2010-06-13  Bruno Haible  <bruno@clisp.org>
47000         gnulib-tool: Display specified modules and dependencies differently.
47001         * gnulib-tool (func_show_module_list): New function.
47002         (func_import, func_create_testdir): Invoke it.
47003         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
47005 2010-06-13  Bruno Haible  <bruno@clisp.org>
47007         gnulib-tool: Align code of func_import and func_create_testdir.
47008         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
47009         specified_modules.
47011 2010-06-12  Jim Meyering  <meyering@redhat.com>
47013         test-inttostr: avoid spurious failure on Solaris 9
47014         * tests/test-inttostr.c (main): Skip the test when snprintf fails
47015         to accept "%ju".  Reported by Bruno Haible.
47017 2010-06-11  Jim Meyering  <meyering@redhat.com>
47019         test-sys_socket: mark variables as used more readably
47020         * tests/test-sys_socket.c (main): Mark otherwise unused variables
47021         as "used" explicitly via (void) statement casts.  This is more
47022         readable than using them in an artificial return expression.
47023         Suggestion from Bruno Haible.
47025 2010-06-11  Bruno Haible  <bruno@clisp.org>
47027         Avoid some more warnings from "gcc -Wwrite-strings".
47028         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
47029         to 'const char *'.
47030         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
47031         * tests/test-c-strcasestr.c (main): Likewise.
47032         * tests/test-mbscasestr1.c (main): Likewise.
47033         * tests/test-mbscasestr2.c (main): Likewise.
47034         * tests/test-memmem.c (main): Likewise.
47035         * tests/test-strstr.c (main): Likewise.
47036         * tests/test-strcasestr.c (main): Likewise.
47038 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47040         init.sh: change framework_failure_ to fail with status 99, not 1
47041         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
47042         automake's parallel-tests rule that this is an unexpected failure,
47043         even if the test is listed in XFAIL_TESTS.
47045 2010-06-11  Jim Meyering  <meyering@redhat.com>
47047         test-inttostr: avoid warnings about 4-6KB literal strings
47048         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
47049         Include "macros.h", for its definition of ASSERT.
47050         (CK): s/assert/ASSERT/
47051         * modules/inttostr-tests (Files): Add macros.h.
47053         init.sh: don't use $ME_ or skip_ before they are defined
47054         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
47055         their first uses.  Also hoist their companions: warn_, fail_,
47056         framework_failure_, $stderr_fileno.  Prompted by a patch from
47057         Stefano Lattarini.
47059         test-sys_socket: avoid set-but-not-used warnings from gcc
47060         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
47061         avoid warning about set-but-not-used variables.
47063         test-xvasprintf: avoid 'const' discard warnings
47064         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
47065         "const" when assigning from literal strings.
47066         (test_xasprintf): Add "void" in function argument list to placate
47067         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
47069         tests: avoid compilation warnings in argmatch and exclude tests...
47070         in packages that define ARGMATCH_DIE_DECL, like coreutils.
47071         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
47072         Since it always exits, declare with the "noreturn" attribute.
47073         * tests/test-argmatch.c: Likewise.
47075         tests: avoid 'const' discard warnings in mbsstr tests
47076         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
47077         * tests/test-mbsstr2.c (main): Likewise.
47079         test-verify: avoid warning from gcc's -Wmissing-declarations
47080         * tests/test-verify.c (function): Declare to be static.
47082         test-inttostr.c: include <string.h> for use of strcmp
47083         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
47085         test-linkat: avoid failed assertion on "other" architectures
47086         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
47087         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
47088         sparc: https://bugs.launchpad.net/bugs/591968
47090 2010-06-11  Jim Meyering  <meyering@redhat.com>
47092         printf.m4: avoid autoconf's "Expanded Before Required" warning
47093         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
47094         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
47095         autoconf warning.
47097 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
47099         Replacement header templates are now named with ".in", not "_".
47100         * doc/gnulib-intro.texi: Correct.
47102 2010-06-10  Jim Meyering  <meyering@redhat.com>
47104         inttostr-tests: depend on snprintf, not snprintf-posix
47105         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
47106         snprintf-posix, to avoid this aclocal failure:
47107           missing file gnulib-tests/vasnprintf.c
47108           configure.ac:45: error: expected source file, required through \
47109           AC_LIBSOURCES, not found
47111 2010-06-10  Jim Meyering  <meyering@redhat.com>
47113         inttostr: add a new function, inttostr, and tests
47114         The namesake function was not available.  The existence of the
47115         template file, inttostr.c makes its addition nontrivial.
47116         * lib/anytostr.c: Rename from inttostr.c.
47117         (anytostr): Rename from inttostr.
47118         * lib/inttostr.c: New file.
47119         * modules/inttostr (Files): Add anytostr.c.
47120         (Makefile.am): Set lib_SOURCES instead of ...
47121         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
47122         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
47123         * lib/offtostr.c: Likewise.
47124         * lib/uinttostr.c: Likewise.
47125         * lib/umaxtostr.c: Likewise.
47126         * modules/inttostr-tests: New file.
47127         * tests/test-inttostr.c: New file.  Test these functions.
47129 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
47130             Bruno Haible  <bruno@clisp.org>
47132         Add "Extending Gnulib" chapter to manual.
47133         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
47134         chapter.
47135         (Extending Gnulib): New chapter.
47136         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
47137         chapter.
47139 2010-06-09  Bruno Haible  <bruno@clisp.org>
47141         Avoid relocwrapper link errors due to gnulib replacement functions.
47142         * lib/areadlink.c: Use the system's malloc, realloc functions.
47143         (areadlink): Set errno to ENOMEM explicitly.
47144         * modules/areadlink (Depends-on): Remove malloc-posix.
47145         Reported by Ben Pfaff <blp@cs.stanford.edu>.
47147 2010-06-09  Bruno Haible  <bruno@clisp.org>
47149         Avoid relocwrapper link errors due to gnulib replacement functions.
47150         * lib/canonicalize-lgpl.c: Use the system's malloc function.
47151         * lib/malloca.c: Likewise.
47152         * lib/relocatable.c: Likewise.
47153         * lib/progreloc.c: Use the system's malloc, sprintf functions.
47154         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
47155         * lib/setenv.c: Use the system's malloc, realloc functions.
47156         * lib/strerror.c: Use the system's sprintf function.
47157         Reported by Ben Pfaff <blp@cs.stanford.edu>.
47159 2010-06-04  Bruno Haible  <bruno@clisp.org>
47161         Prefer documented low-level autoconf macro names.
47162         * m4/lib-link.m4: Use m4_translit instead of translit.
47163         * m4/environ.m4: Likewise.
47164         * m4/mathfunc.m4: Likewise.
47165         * m4/onceonly.m4: Likewise.
47166         * m4/stdint.m4: Likewise.
47167         Suggested by Eric Blake.
47169 2010-06-04  Martin Lambers  <marlam@marlam.de>
47170             Bruno Haible  <bruno@clisp.org>
47172         havelib: Allow library names with '+' characters.
47173         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
47174         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
47176 2010-06-09  Bruno Haible  <bruno@clisp.org>
47178         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
47179         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
47180         realloc failed.
47182 2010-06-08  Peter Simons  <simons@cryp.to>
47184         maint.mk: make the news-check rule more configurable
47185         * top/maint.mk (news-check-lines-spec): New variable.
47186         (news-check): Use "sed -n 1,10p" in place of "head".
47188 2010-06-07  Jim Meyering  <meyering@redhat.com>
47190         do-release-commit-and-tag: fix typo in --help
47191         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
47193         regex: avoid new dead-code warning with gcc-4.6.0
47194         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
47195         if-block containing a while-loop.  It's been unused for at least
47196         5 years.
47198 2010-06-05  Bruno Haible  <bruno@clisp.org>
47200         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
47201         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
47203 2010-06-04  Bruno Haible  <bruno@clisp.org>
47205         Update to GNU gettext 0.18.1.
47206         * modules/gettext (configure.ac): Require gettext infrastructure from
47207         version 0.18.1.
47209 2010-06-03  Bruno Haible  <bruno@clisp.org>
47211         Don't use AC_LIBOBJ with file names in subdirectories.
47212         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
47213         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
47214         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
47215         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
47216         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
47217         gl_LIBUNISTRING_LIBSOURCE.
47218         (Makefile.am): Augment lib_SOURCES here, conditionally.
47219         * NEWS: Drop requirement for Automake option 'subdir-objects'.
47221 2010-06-03  Bruno Haible  <bruno@clisp.org>
47223         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
47224         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
47225         expansion does not end with a newline.
47226         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
47227         unnecessary newline.
47229 2010-06-03  Bruno Haible  <bruno@clisp.org>
47231         Reduce dependencies.
47232         * tests/test-quotearg.h: New file, extracted from
47233         tests/test-quotearg.c.
47234         * tests/test-quotearg-simple.c: New file, extracted from
47235         tests/test-quotearg.c.
47236         * tests/test-quotearg.c: Don't include <ctype.h>.
47237         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
47238         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
47239         use_quote_double_quotes, use_quotearg_colon): Moved to
47240         tests/test-quotearg.h.
47241         (results_g, flag_results, custom_quotes, custom_results): Moved
47242         to tests/test-quotearg-simple.c.
47243         (main): Moved the part that does not depend on gettext to
47244         tests/test-quotearg-simple.c. Return 77 if the test cannot be
47245         performed.
47246         * modules/quotearg-simple: New file.
47247         * modules/quotearg-simple-tests: New file.
47248         * modules/quotearg (Depends-on): Add quotearg-simple.
47249         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
47250         (Files): Add tests/test-quotearg.h.
47251         Reported by Paolo Bonzini.
47253 2010-06-03  Bruno Haible  <bruno@clisp.org>
47255         Reduce dependencies.
47256         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
47258 2010-06-03  Bruno Haible  <bruno@clisp.org>
47260         time: Undefine more broken macros.
47261         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
47262         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
47263         Reported by Eric Blake.
47265 2010-06-03  Bruno Haible  <bruno@clisp.org>
47267         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
47268         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
47269         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
47270         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
47271         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
47272         Reported by Ludovic Courtès <ludo@gnu.org>.
47274 2010-06-02  Eric Blake  <eblake@redhat.com>
47276         time: work with mingw + pthreads-win32 library
47277         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
47278         if timespec is defined only in pthread.h.
47279         * modules/time (Makefile.am): Substitute it.
47280         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
47281         <pthread.h>, when needed.
47282         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
47283         from the library.
47285 2010-05-31  Bruno Haible  <bruno@clisp.org>
47287         Avoid expanding two macros in the wrong order.
47288         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
47289         gl_LIBUNISTRING if it is defined.
47290         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
47291         autoconf >= 2.64.
47292         Reported by Ludovic Courtès <ludo@gnu.org>.
47294 2010-05-27  Jim Meyering  <meyering@redhat.com>
47296         maint.mk: also prohibit "#undef" of always-defined symbols
47297         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
47298         Allow more than one space before the symbol name.
47299         (sc_prohibit_always-defined_macros): Use grep's -E, now that
47300         the regexp uses alternation.
47302 2010-05-26  Eric Blake  <eblake@redhat.com>
47304         maint.mk: avoid echo -e
47305         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
47306         Convert all uses of echo -* to printf.
47307         Reported by Matthias Bolte.
47309 2010-05-25  Bruno Haible  <bruno@clisp.org>
47311         Update to GNU gettext 0.18, part 2.
47312         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
47313         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
47315 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47317         Add missing include in test-pwrite.c.
47318         * tests/test-pwrite.c: Include string.h, for strcmp.
47320 2010-05-24  Bruno Haible  <bruno@clisp.org>
47322         * NEWS: Mention requirement for Automake option 'subdir-objects'.
47324 2010-05-24  Bruno Haible  <bruno@clisp.org>
47326         Don't use conversion with transliteration in u{8,16,32}_strcoll.
47327         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
47328         iconveh_error argument.
47329         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
47330         U_STRCONV_TO_LOCALE.
47331         * lib/unistr/u16-strcoll.c: Likewise.
47332         * lib/unistr/u32-strcoll.c: Likewise.
47333         * modules/unistr/u8-strcoll (Depends-on): Add
47334         uniconv/u8-strconv-to-enc, localcharset. Remove
47335         uniconv/u8-strconv-to-locale.
47336         (configure.ac): Bump version number.
47337         * modules/unistr/u16-strcoll (Depends-on): Add
47338         uniconv/u16-strconv-to-enc, localcharset. Remove
47339         uniconv/u16-strconv-to-locale.
47340         (configure.ac): Bump version number.
47341         * modules/unistr/u32-strcoll (Depends-on): Add
47342         uniconv/u32-strconv-to-enc, localcharset. Remove
47343         uniconv/u32-strconv-to-locale.
47344         (configure.ac): Bump version number.
47346 2010-05-24  Bruno Haible  <bruno@clisp.org>
47348         Avoid a test failure on NetBSD 5.0.
47349         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
47350         an iconv() bug.
47352 2010-05-24  Bruno Haible  <bruno@clisp.org>
47354         Adjust #include directive style.
47355         * modules/regex (Includes): Recommend to write <regex.h>.
47357 2010-05-24  Bruno Haible  <bruno@clisp.org>
47359         regex: Don't require alloca.
47360         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
47361         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
47362         only inside if (0).
47364 2010-05-23  Jim Meyering  <meyering@redhat.com>
47366         test-renameat.c: include <sys/stat.h>
47367         * tests/test-renameat.c: Include <sys/stat.h>; required for
47368         definition of S_IS* macros.
47370 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
47372         Update maintainer documentation for 'relocatable-prog' module.
47373         * doc/relocatable-maint.texi: Update.
47374         Comments by Bruno Haible.
47376 2010-05-23  Bruno Haible  <bruno@clisp.org>
47378         git-merge-changelog: Enable --split-merged-entry by default.
47379         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
47380         (usage): Don't mention this option any more.
47381         Reported by Ralf Wildenhues.
47383 2010-05-23  Jim Meyering  <meyering@redhat.com>
47385         test-pwrite: do not leave behind a test file named "out"
47386         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
47387         The trivial-looking use of init.sh is really necessary.
47388         It ensures that the temporary file, "out", is created in
47389         a temporary directory, and removed upon termination.
47390         * tests/test-pwrite.sh: Re-add file.
47391         * modules/pwrite-tests: Reference it.
47393 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47395         Fix output redirection buglet in init.sh.
47396         * tests/init.sh: Fix redirection of stderr.
47398 2010-05-20  Simon Josefsson  <simon@josefsson.org>
47400         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
47402 2010-05-17  Simon Josefsson  <simon@josefsson.org>
47404         * modules/valgrind-tests: New file.
47405         * m4/valgrind-tests.m4: New file.
47406         * doc/valgrind-tests.texi: New file.
47407         * doc/gnulib.texi (Running self-tests under valgrind): New
47408         section.
47410 2010-05-19  Bruno Haible  <bruno@clisp.org>
47412         Clean up dead code in recent commit.
47413         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
47414         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
47415         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
47416         Suggested by Paolo Bonzini.
47418 2010-05-19  Bruno Haible  <bruno@clisp.org>
47420         Avoid valgrind error reports from libunistring.
47421         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
47422         * modules/libunistring (Files): Add it.
47423         * modules/libunistring-optional (Files): Likewise.
47425 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
47426             Bruno Haible  <bruno@clisp.org>
47428         New module 'libunistring-optional'.
47429         * modules/libunistring-optional: New file.
47430         * m4/libunistring-base.m4: New file.
47431         * m4/libunistring-optional.m4: New file.
47432         * lib/unicase.in.h: Renamed from lib/unicase.h.
47433         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
47434         * lib/unictype.in.h: Renamed from lib/unictype.h.
47435         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
47436         * lib/uniname.in.h: Renamed from lib/uniname.h.
47437         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
47438         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
47439         * lib/unistr.in.h: Renamed from lib/unistr.h.
47440         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
47441         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
47442         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
47443         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
47444         gl_LIBUNISTRING. If the library was found, determine the installed
47445         version and set LIBUNISTRING_VERSION.
47446         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
47447         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
47448         handle a configuration option --with-included-libunistring.
47449         * modules/libunistring (Files): Add m4/absolute-header.m4.
47450         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
47451         Add m4/libunistring-base.m4.
47452         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
47453         (Makefile.am): Build unicase.h from unicase.in.h.
47454         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
47455         Add m4/libunistring-base.m4.
47456         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
47457         (Makefile.am): Build uniconv.h from uniconv.in.h.
47458         * modules/unictype/base (Files): Use unictype.in.h instead of
47459         unictype.h. Add m4/libunistring-base.m4.
47460         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
47461         (Makefile.am): Build unictype.h from unictype.in.h.
47462         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
47463         Add m4/libunistring-base.m4.
47464         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
47465         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
47466         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
47467         Add m4/libunistring-base.m4.
47468         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
47469         (Makefile.am): Build uniname.h from uniname.in.h.
47470         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
47471         Add m4/libunistring-base.m4.
47472         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
47473         (Makefile.am): Build uninorm.h from uninorm.in.h.
47474         * modules/unistdio/base (Files): Use unistdio.in.h instead of
47475         unistdio.h. Add m4/libunistring-base.m4.
47476         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
47477         (Makefile.am): Build unistdio.h from unistdio.in.h.
47478         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
47479         Add m4/libunistring-base.m4.
47480         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
47481         (Makefile.am): Build unistr.h from unistr.in.h.
47482         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
47483         Add m4/libunistring-base.m4.
47484         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
47485         (Makefile.am): Build unitypes.h from unitypes.in.h.
47486         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
47487         Add m4/libunistring-base.m4.
47488         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
47489         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
47490         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
47491         uniwidth.h. Add m4/libunistring-base.m4.
47492         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
47493         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
47494         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
47495         instead of augmenting lib_SOURCES.
47496         * modules/unicase/empty-suffix-context: Likewise.
47497         * modules/unicase/locale-language: Likewise.
47498         * modules/unicase/tolower: Likewise.
47499         * modules/unicase/totitle: Likewise.
47500         * modules/unicase/toupper: Likewise.
47501         * modules/unicase/u8-casecmp: Likewise.
47502         * modules/unicase/u8-casecoll: Likewise.
47503         * modules/unicase/u8-casefold: Likewise.
47504         * modules/unicase/u8-casexfrm: Likewise.
47505         * modules/unicase/u8-ct-casefold: Likewise.
47506         * modules/unicase/u8-ct-tolower: Likewise.
47507         * modules/unicase/u8-ct-totitle: Likewise.
47508         * modules/unicase/u8-ct-toupper: Likewise.
47509         * modules/unicase/u8-is-cased: Likewise.
47510         * modules/unicase/u8-is-casefolded: Likewise.
47511         * modules/unicase/u8-is-lowercase: Likewise.
47512         * modules/unicase/u8-is-titlecase: Likewise.
47513         * modules/unicase/u8-is-uppercase: Likewise.
47514         * modules/unicase/u8-prefix-context: Likewise.
47515         * modules/unicase/u8-suffix-context: Likewise.
47516         * modules/unicase/u8-tolower: Likewise.
47517         * modules/unicase/u8-totitle: Likewise.
47518         * modules/unicase/u8-toupper: Likewise.
47519         * modules/unicase/u16-casecmp: Likewise.
47520         * modules/unicase/u16-casecoll: Likewise.
47521         * modules/unicase/u16-casefold: Likewise.
47522         * modules/unicase/u16-casexfrm: Likewise.
47523         * modules/unicase/u16-ct-casefold: Likewise.
47524         * modules/unicase/u16-ct-tolower: Likewise.
47525         * modules/unicase/u16-ct-totitle: Likewise.
47526         * modules/unicase/u16-ct-toupper: Likewise.
47527         * modules/unicase/u16-is-cased: Likewise.
47528         * modules/unicase/u16-is-casefolded: Likewise.
47529         * modules/unicase/u16-is-lowercase: Likewise.
47530         * modules/unicase/u16-is-titlecase: Likewise.
47531         * modules/unicase/u16-is-uppercase: Likewise.
47532         * modules/unicase/u16-prefix-context: Likewise.
47533         * modules/unicase/u16-suffix-context: Likewise.
47534         * modules/unicase/u16-tolower: Likewise.
47535         * modules/unicase/u16-totitle: Likewise.
47536         * modules/unicase/u16-toupper: Likewise.
47537         * modules/unicase/u32-casecmp: Likewise.
47538         * modules/unicase/u32-casecoll: Likewise.
47539         * modules/unicase/u32-casefold: Likewise.
47540         * modules/unicase/u32-casexfrm: Likewise.
47541         * modules/unicase/u32-ct-casefold: Likewise.
47542         * modules/unicase/u32-ct-tolower: Likewise.
47543         * modules/unicase/u32-ct-totitle: Likewise.
47544         * modules/unicase/u32-ct-toupper: Likewise.
47545         * modules/unicase/u32-is-cased: Likewise.
47546         * modules/unicase/u32-is-casefolded: Likewise.
47547         * modules/unicase/u32-is-lowercase: Likewise.
47548         * modules/unicase/u32-is-titlecase: Likewise.
47549         * modules/unicase/u32-is-uppercase: Likewise.
47550         * modules/unicase/u32-prefix-context: Likewise.
47551         * modules/unicase/u32-suffix-context: Likewise.
47552         * modules/unicase/u32-tolower: Likewise.
47553         * modules/unicase/u32-totitle: Likewise.
47554         * modules/unicase/u32-toupper: Likewise.
47555         * modules/unicase/ulc-casecmp: Likewise.
47556         * modules/unicase/ulc-casecoll: Likewise.
47557         * modules/unicase/ulc-casexfrm: Likewise.
47558         * modules/uniconv/u8-conv-from-enc: Likewise.
47559         * modules/uniconv/u8-conv-to-enc: Likewise.
47560         * modules/uniconv/u8-strconv-from-enc: Likewise.
47561         * modules/uniconv/u8-strconv-from-locale: Likewise.
47562         * modules/uniconv/u8-strconv-to-enc: Likewise.
47563         * modules/uniconv/u8-strconv-to-locale: Likewise.
47564         * modules/uniconv/u16-conv-from-enc: Likewise.
47565         * modules/uniconv/u16-conv-to-enc: Likewise.
47566         * modules/uniconv/u16-strconv-from-enc: Likewise.
47567         * modules/uniconv/u16-strconv-from-locale: Likewise.
47568         * modules/uniconv/u16-strconv-to-enc: Likewise.
47569         * modules/uniconv/u16-strconv-to-locale: Likewise.
47570         * modules/uniconv/u32-conv-from-enc: Likewise.
47571         * modules/uniconv/u32-conv-to-enc: Likewise.
47572         * modules/uniconv/u32-strconv-from-enc: Likewise.
47573         * modules/uniconv/u32-strconv-from-locale: Likewise.
47574         * modules/uniconv/u32-strconv-to-enc: Likewise.
47575         * modules/uniconv/u32-strconv-to-locale: Likewise.
47576         * modules/unictype/bidicategory-byname: Likewise.
47577         * modules/unictype/bidicategory-name: Likewise.
47578         * modules/unictype/bidicategory-of: Likewise.
47579         * modules/unictype/bidicategory-test: Likewise.
47580         * modules/unictype/block-list: Likewise.
47581         * modules/unictype/block-test: Likewise.
47582         * modules/unictype/category-C: Likewise.
47583         * modules/unictype/category-Cc: Likewise.
47584         * modules/unictype/category-Cf: Likewise.
47585         * modules/unictype/category-Cn: Likewise.
47586         * modules/unictype/category-Co: Likewise.
47587         * modules/unictype/category-Cs: Likewise.
47588         * modules/unictype/category-L: Likewise.
47589         * modules/unictype/category-Ll: Likewise.
47590         * modules/unictype/category-Lm: Likewise.
47591         * modules/unictype/category-Lo: Likewise.
47592         * modules/unictype/category-Lt: Likewise.
47593         * modules/unictype/category-Lu: Likewise.
47594         * modules/unictype/category-M: Likewise.
47595         * modules/unictype/category-Mc: Likewise.
47596         * modules/unictype/category-Me: Likewise.
47597         * modules/unictype/category-Mn: Likewise.
47598         * modules/unictype/category-N: Likewise.
47599         * modules/unictype/category-Nd: Likewise.
47600         * modules/unictype/category-Nl: Likewise.
47601         * modules/unictype/category-No: Likewise.
47602         * modules/unictype/category-P: Likewise.
47603         * modules/unictype/category-Pc: Likewise.
47604         * modules/unictype/category-Pd: Likewise.
47605         * modules/unictype/category-Pe: Likewise.
47606         * modules/unictype/category-Pf: Likewise.
47607         * modules/unictype/category-Pi: Likewise.
47608         * modules/unictype/category-Po: Likewise.
47609         * modules/unictype/category-Ps: Likewise.
47610         * modules/unictype/category-S: Likewise.
47611         * modules/unictype/category-Sc: Likewise.
47612         * modules/unictype/category-Sk: Likewise.
47613         * modules/unictype/category-Sm: Likewise.
47614         * modules/unictype/category-So: Likewise.
47615         * modules/unictype/category-Z: Likewise.
47616         * modules/unictype/category-Zl: Likewise.
47617         * modules/unictype/category-Zp: Likewise.
47618         * modules/unictype/category-Zs: Likewise.
47619         * modules/unictype/category-and: Likewise.
47620         * modules/unictype/category-and-not: Likewise.
47621         * modules/unictype/category-byname: Likewise.
47622         * modules/unictype/category-name: Likewise.
47623         * modules/unictype/category-none: Likewise.
47624         * modules/unictype/category-of: Likewise.
47625         * modules/unictype/category-or: Likewise.
47626         * modules/unictype/category-test: Likewise.
47627         * modules/unictype/combining-class: Likewise.
47628         * modules/unictype/ctype-alnum: Likewise.
47629         * modules/unictype/ctype-alpha: Likewise.
47630         * modules/unictype/ctype-blank: Likewise.
47631         * modules/unictype/ctype-cntrl: Likewise.
47632         * modules/unictype/ctype-digit: Likewise.
47633         * modules/unictype/ctype-graph: Likewise.
47634         * modules/unictype/ctype-lower: Likewise.
47635         * modules/unictype/ctype-print: Likewise.
47636         * modules/unictype/ctype-punct: Likewise.
47637         * modules/unictype/ctype-space: Likewise.
47638         * modules/unictype/ctype-upper: Likewise.
47639         * modules/unictype/ctype-xdigit: Likewise.
47640         * modules/unictype/decimal-digit: Likewise.
47641         * modules/unictype/digit: Likewise.
47642         * modules/unictype/mirror: Likewise.
47643         * modules/unictype/numeric: Likewise.
47644         * modules/unictype/property-alphabetic: Likewise.
47645         * modules/unictype/property-ascii-hex-digit: Likewise.
47646         * modules/unictype/property-bidi-arabic-digit: Likewise.
47647         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
47648         * modules/unictype/property-bidi-block-separator: Likewise.
47649         * modules/unictype/property-bidi-boundary-neutral: Likewise.
47650         * modules/unictype/property-bidi-common-separator: Likewise.
47651         * modules/unictype/property-bidi-control: Likewise.
47652         * modules/unictype/property-bidi-embedding-or-override: Likewise.
47653         * modules/unictype/property-bidi-eur-num-separator: Likewise.
47654         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
47655         * modules/unictype/property-bidi-european-digit: Likewise.
47656         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
47657         * modules/unictype/property-bidi-left-to-right: Likewise.
47658         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
47659         * modules/unictype/property-bidi-other-neutral: Likewise.
47660         * modules/unictype/property-bidi-pdf: Likewise.
47661         * modules/unictype/property-bidi-segment-separator: Likewise.
47662         * modules/unictype/property-bidi-whitespace: Likewise.
47663         * modules/unictype/property-byname: Likewise.
47664         * modules/unictype/property-combining: Likewise.
47665         * modules/unictype/property-composite: Likewise.
47666         * modules/unictype/property-currency-symbol: Likewise.
47667         * modules/unictype/property-dash: Likewise.
47668         * modules/unictype/property-decimal-digit: Likewise.
47669         * modules/unictype/property-default-ignorable-code-point: Likewise.
47670         * modules/unictype/property-deprecated: Likewise.
47671         * modules/unictype/property-diacritic: Likewise.
47672         * modules/unictype/property-extender: Likewise.
47673         * modules/unictype/property-format-control: Likewise.
47674         * modules/unictype/property-grapheme-base: Likewise.
47675         * modules/unictype/property-grapheme-extend: Likewise.
47676         * modules/unictype/property-grapheme-link: Likewise.
47677         * modules/unictype/property-hex-digit: Likewise.
47678         * modules/unictype/property-hyphen: Likewise.
47679         * modules/unictype/property-id-continue: Likewise.
47680         * modules/unictype/property-id-start: Likewise.
47681         * modules/unictype/property-ideographic: Likewise.
47682         * modules/unictype/property-ids-binary-operator: Likewise.
47683         * modules/unictype/property-ids-trinary-operator: Likewise.
47684         * modules/unictype/property-ignorable-control: Likewise.
47685         * modules/unictype/property-iso-control: Likewise.
47686         * modules/unictype/property-join-control: Likewise.
47687         * modules/unictype/property-left-of-pair: Likewise.
47688         * modules/unictype/property-line-separator: Likewise.
47689         * modules/unictype/property-logical-order-exception: Likewise.
47690         * modules/unictype/property-lowercase: Likewise.
47691         * modules/unictype/property-math: Likewise.
47692         * modules/unictype/property-non-break: Likewise.
47693         * modules/unictype/property-not-a-character: Likewise.
47694         * modules/unictype/property-numeric: Likewise.
47695         * modules/unictype/property-other-alphabetic: Likewise.
47696         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
47697         * modules/unictype/property-other-grapheme-extend: Likewise.
47698         * modules/unictype/property-other-id-continue: Likewise.
47699         * modules/unictype/property-other-id-start: Likewise.
47700         * modules/unictype/property-other-lowercase: Likewise.
47701         * modules/unictype/property-other-math: Likewise.
47702         * modules/unictype/property-other-uppercase: Likewise.
47703         * modules/unictype/property-paired-punctuation: Likewise.
47704         * modules/unictype/property-paragraph-separator: Likewise.
47705         * modules/unictype/property-pattern-syntax: Likewise.
47706         * modules/unictype/property-pattern-white-space: Likewise.
47707         * modules/unictype/property-private-use: Likewise.
47708         * modules/unictype/property-punctuation: Likewise.
47709         * modules/unictype/property-quotation-mark: Likewise.
47710         * modules/unictype/property-radical: Likewise.
47711         * modules/unictype/property-sentence-terminal: Likewise.
47712         * modules/unictype/property-soft-dotted: Likewise.
47713         * modules/unictype/property-space: Likewise.
47714         * modules/unictype/property-terminal-punctuation: Likewise.
47715         * modules/unictype/property-test: Likewise.
47716         * modules/unictype/property-titlecase: Likewise.
47717         * modules/unictype/property-unassigned-code-value: Likewise.
47718         * modules/unictype/property-unified-ideograph: Likewise.
47719         * modules/unictype/property-uppercase: Likewise.
47720         * modules/unictype/property-variation-selector: Likewise.
47721         * modules/unictype/property-white-space: Likewise.
47722         * modules/unictype/property-xid-continue: Likewise.
47723         * modules/unictype/property-xid-start: Likewise.
47724         * modules/unictype/property-zero-width: Likewise.
47725         * modules/unictype/scripts: Likewise.
47726         * modules/unictype/syntax-c-ident: Likewise.
47727         * modules/unictype/syntax-c-whitespace: Likewise.
47728         * modules/unictype/syntax-java-ident: Likewise.
47729         * modules/unictype/syntax-java-whitespace: Likewise.
47730         * modules/unilbrk/u8-possible-linebreaks: Likewise.
47731         * modules/unilbrk/u8-width-linebreaks: Likewise.
47732         * modules/unilbrk/u16-possible-linebreaks: Likewise.
47733         * modules/unilbrk/u16-width-linebreaks: Likewise.
47734         * modules/unilbrk/u32-possible-linebreaks: Likewise.
47735         * modules/unilbrk/u32-width-linebreaks: Likewise.
47736         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
47737         * modules/unilbrk/ulc-width-linebreaks: Likewise.
47738         * modules/uniname/uniname: Likewise.
47739         * modules/uninorm/canonical-decomposition: Likewise.
47740         * modules/uninorm/composition: Likewise.
47741         * modules/uninorm/decomposing-form: Likewise.
47742         * modules/uninorm/decomposition: Likewise.
47743         * modules/uninorm/filter: Likewise.
47744         * modules/uninorm/nfc: Likewise.
47745         * modules/uninorm/nfd: Likewise.
47746         * modules/uninorm/nfkc: Likewise.
47747         * modules/uninorm/nfkd: Likewise.
47748         * modules/uninorm/u8-normalize: Likewise.
47749         * modules/uninorm/u8-normcmp: Likewise.
47750         * modules/uninorm/u8-normcoll: Likewise.
47751         * modules/uninorm/u8-normxfrm: Likewise.
47752         * modules/uninorm/u16-normalize: Likewise.
47753         * modules/uninorm/u16-normcmp: Likewise.
47754         * modules/uninorm/u16-normcoll: Likewise.
47755         * modules/uninorm/u16-normxfrm: Likewise.
47756         * modules/uninorm/u32-normalize: Likewise.
47757         * modules/uninorm/u32-normcmp: Likewise.
47758         * modules/uninorm/u32-normcoll: Likewise.
47759         * modules/uninorm/u32-normxfrm: Likewise.
47760         * modules/unistdio/u8-asnprintf: Likewise.
47761         * modules/unistdio/u8-asprintf: Likewise.
47762         * modules/unistdio/u8-snprintf: Likewise.
47763         * modules/unistdio/u8-sprintf: Likewise.
47764         * modules/unistdio/u8-u8-asnprintf: Likewise.
47765         * modules/unistdio/u8-u8-asprintf: Likewise.
47766         * modules/unistdio/u8-u8-snprintf: Likewise.
47767         * modules/unistdio/u8-u8-sprintf: Likewise.
47768         * modules/unistdio/u8-u8-vasnprintf: Likewise.
47769         * modules/unistdio/u8-u8-vasprintf: Likewise.
47770         * modules/unistdio/u8-u8-vsnprintf: Likewise.
47771         * modules/unistdio/u8-u8-vsprintf: Likewise.
47772         * modules/unistdio/u8-vasnprintf: Likewise.
47773         * modules/unistdio/u8-vasprintf: Likewise.
47774         * modules/unistdio/u8-vsnprintf: Likewise.
47775         * modules/unistdio/u8-vsprintf: Likewise.
47776         * modules/unistdio/u16-asnprintf: Likewise.
47777         * modules/unistdio/u16-asprintf: Likewise.
47778         * modules/unistdio/u16-snprintf: Likewise.
47779         * modules/unistdio/u16-sprintf: Likewise.
47780         * modules/unistdio/u16-u16-asnprintf: Likewise.
47781         * modules/unistdio/u16-u16-asprintf: Likewise.
47782         * modules/unistdio/u16-u16-snprintf: Likewise.
47783         * modules/unistdio/u16-u16-sprintf: Likewise.
47784         * modules/unistdio/u16-u16-vasnprintf: Likewise.
47785         * modules/unistdio/u16-u16-vasprintf: Likewise.
47786         * modules/unistdio/u16-u16-vsnprintf: Likewise.
47787         * modules/unistdio/u16-u16-vsprintf: Likewise.
47788         * modules/unistdio/u16-vasnprintf: Likewise.
47789         * modules/unistdio/u16-vasprintf: Likewise.
47790         * modules/unistdio/u16-vsnprintf: Likewise.
47791         * modules/unistdio/u16-vsprintf: Likewise.
47792         * modules/unistdio/u32-asnprintf: Likewise.
47793         * modules/unistdio/u32-asprintf: Likewise.
47794         * modules/unistdio/u32-snprintf: Likewise.
47795         * modules/unistdio/u32-sprintf: Likewise.
47796         * modules/unistdio/u32-u32-asnprintf: Likewise.
47797         * modules/unistdio/u32-u32-asprintf: Likewise.
47798         * modules/unistdio/u32-u32-snprintf: Likewise.
47799         * modules/unistdio/u32-u32-sprintf: Likewise.
47800         * modules/unistdio/u32-u32-vasnprintf: Likewise.
47801         * modules/unistdio/u32-u32-vasprintf: Likewise.
47802         * modules/unistdio/u32-u32-vsnprintf: Likewise.
47803         * modules/unistdio/u32-u32-vsprintf: Likewise.
47804         * modules/unistdio/u32-vasnprintf: Likewise.
47805         * modules/unistdio/u32-vasprintf: Likewise.
47806         * modules/unistdio/u32-vsnprintf: Likewise.
47807         * modules/unistdio/u32-vsprintf: Likewise.
47808         * modules/unistdio/ulc-asnprintf: Likewise.
47809         * modules/unistdio/ulc-asprintf: Likewise.
47810         * modules/unistdio/ulc-fprintf: Likewise.
47811         * modules/unistdio/ulc-snprintf: Likewise.
47812         * modules/unistdio/ulc-sprintf: Likewise.
47813         * modules/unistdio/ulc-vasnprintf: Likewise.
47814         * modules/unistdio/ulc-vasprintf: Likewise.
47815         * modules/unistdio/ulc-vfprintf: Likewise.
47816         * modules/unistdio/ulc-vsnprintf: Likewise.
47817         * modules/unistdio/ulc-vsprintf: Likewise.
47818         * modules/unistr/u8-check: Likewise.
47819         * modules/unistr/u8-chr: Likewise.
47820         * modules/unistr/u8-cmp: Likewise.
47821         * modules/unistr/u8-cmp2: Likewise.
47822         * modules/unistr/u8-cpy: Likewise.
47823         * modules/unistr/u8-cpy-alloc: Likewise.
47824         * modules/unistr/u8-endswith: Likewise.
47825         * modules/unistr/u8-mblen: Likewise.
47826         * modules/unistr/u8-mbsnlen: Likewise.
47827         * modules/unistr/u8-mbtouc: Likewise.
47828         * modules/unistr/u8-mbtouc-unsafe: Likewise.
47829         * modules/unistr/u8-mbtoucr: Likewise.
47830         * modules/unistr/u8-move: Likewise.
47831         * modules/unistr/u8-next: Likewise.
47832         * modules/unistr/u8-prev: Likewise.
47833         * modules/unistr/u8-set: Likewise.
47834         * modules/unistr/u8-startswith: Likewise.
47835         * modules/unistr/u8-stpcpy: Likewise.
47836         * modules/unistr/u8-stpncpy: Likewise.
47837         * modules/unistr/u8-strcat: Likewise.
47838         * modules/unistr/u8-strchr: Likewise.
47839         * modules/unistr/u8-strcmp: Likewise.
47840         * modules/unistr/u8-strcoll: Likewise.
47841         * modules/unistr/u8-strcpy: Likewise.
47842         * modules/unistr/u8-strcspn: Likewise.
47843         * modules/unistr/u8-strdup: Likewise.
47844         * modules/unistr/u8-strlen: Likewise.
47845         * modules/unistr/u8-strmblen: Likewise.
47846         * modules/unistr/u8-strmbtouc: Likewise.
47847         * modules/unistr/u8-strncat: Likewise.
47848         * modules/unistr/u8-strncmp: Likewise.
47849         * modules/unistr/u8-strncpy: Likewise.
47850         * modules/unistr/u8-strnlen: Likewise.
47851         * modules/unistr/u8-strpbrk: Likewise.
47852         * modules/unistr/u8-strrchr: Likewise.
47853         * modules/unistr/u8-strspn: Likewise.
47854         * modules/unistr/u8-strstr: Likewise.
47855         * modules/unistr/u8-strtok: Likewise.
47856         * modules/unistr/u8-to-u16: Likewise.
47857         * modules/unistr/u8-to-u32: Likewise.
47858         * modules/unistr/u8-uctomb: Likewise.
47859         * modules/unistr/u16-check: Likewise.
47860         * modules/unistr/u16-chr: Likewise.
47861         * modules/unistr/u16-cmp: Likewise.
47862         * modules/unistr/u16-cmp2: Likewise.
47863         * modules/unistr/u16-cpy: Likewise.
47864         * modules/unistr/u16-cpy-alloc: Likewise.
47865         * modules/unistr/u16-endswith: Likewise.
47866         * modules/unistr/u16-mblen: Likewise.
47867         * modules/unistr/u16-mbsnlen: Likewise.
47868         * modules/unistr/u16-mbtouc: Likewise.
47869         * modules/unistr/u16-mbtouc-unsafe: Likewise.
47870         * modules/unistr/u16-mbtoucr: Likewise.
47871         * modules/unistr/u16-move: Likewise.
47872         * modules/unistr/u16-next: Likewise.
47873         * modules/unistr/u16-prev: Likewise.
47874         * modules/unistr/u16-set: Likewise.
47875         * modules/unistr/u16-startswith: Likewise.
47876         * modules/unistr/u16-stpcpy: Likewise.
47877         * modules/unistr/u16-stpncpy: Likewise.
47878         * modules/unistr/u16-strcat: Likewise.
47879         * modules/unistr/u16-strchr: Likewise.
47880         * modules/unistr/u16-strcmp: Likewise.
47881         * modules/unistr/u16-strcoll: Likewise.
47882         * modules/unistr/u16-strcpy: Likewise.
47883         * modules/unistr/u16-strcspn: Likewise.
47884         * modules/unistr/u16-strdup: Likewise.
47885         * modules/unistr/u16-strlen: Likewise.
47886         * modules/unistr/u16-strmblen: Likewise.
47887         * modules/unistr/u16-strmbtouc: Likewise.
47888         * modules/unistr/u16-strncat: Likewise.
47889         * modules/unistr/u16-strncmp: Likewise.
47890         * modules/unistr/u16-strncpy: Likewise.
47891         * modules/unistr/u16-strnlen: Likewise.
47892         * modules/unistr/u16-strpbrk: Likewise.
47893         * modules/unistr/u16-strrchr: Likewise.
47894         * modules/unistr/u16-strspn: Likewise.
47895         * modules/unistr/u16-strstr: Likewise.
47896         * modules/unistr/u16-strtok: Likewise.
47897         * modules/unistr/u16-to-u32: Likewise.
47898         * modules/unistr/u16-to-u8: Likewise.
47899         * modules/unistr/u16-uctomb: Likewise.
47900         * modules/unistr/u32-check: Likewise.
47901         * modules/unistr/u32-chr: Likewise.
47902         * modules/unistr/u32-cmp: Likewise.
47903         * modules/unistr/u32-cmp2: Likewise.
47904         * modules/unistr/u32-cpy: Likewise.
47905         * modules/unistr/u32-cpy-alloc: Likewise.
47906         * modules/unistr/u32-endswith: Likewise.
47907         * modules/unistr/u32-mblen: Likewise.
47908         * modules/unistr/u32-mbsnlen: Likewise.
47909         * modules/unistr/u32-mbtouc: Likewise.
47910         * modules/unistr/u32-mbtouc-unsafe: Likewise.
47911         * modules/unistr/u32-mbtoucr: Likewise.
47912         * modules/unistr/u32-move: Likewise.
47913         * modules/unistr/u32-next: Likewise.
47914         * modules/unistr/u32-prev: Likewise.
47915         * modules/unistr/u32-set: Likewise.
47916         * modules/unistr/u32-startswith: Likewise.
47917         * modules/unistr/u32-stpcpy: Likewise.
47918         * modules/unistr/u32-stpncpy: Likewise.
47919         * modules/unistr/u32-strcat: Likewise.
47920         * modules/unistr/u32-strchr: Likewise.
47921         * modules/unistr/u32-strcmp: Likewise.
47922         * modules/unistr/u32-strcoll: Likewise.
47923         * modules/unistr/u32-strcpy: Likewise.
47924         * modules/unistr/u32-strcspn: Likewise.
47925         * modules/unistr/u32-strdup: Likewise.
47926         * modules/unistr/u32-strlen: Likewise.
47927         * modules/unistr/u32-strmblen: Likewise.
47928         * modules/unistr/u32-strmbtouc: Likewise.
47929         * modules/unistr/u32-strncat: Likewise.
47930         * modules/unistr/u32-strncmp: Likewise.
47931         * modules/unistr/u32-strncpy: Likewise.
47932         * modules/unistr/u32-strnlen: Likewise.
47933         * modules/unistr/u32-strpbrk: Likewise.
47934         * modules/unistr/u32-strrchr: Likewise.
47935         * modules/unistr/u32-strspn: Likewise.
47936         * modules/unistr/u32-strstr: Likewise.
47937         * modules/unistr/u32-strtok: Likewise.
47938         * modules/unistr/u32-to-u16: Likewise.
47939         * modules/unistr/u32-to-u8: Likewise.
47940         * modules/unistr/u32-uctomb: Likewise.
47941         * modules/uniwbrk/u8-wordbreaks: Likewise.
47942         * modules/uniwbrk/u16-wordbreaks: Likewise.
47943         * modules/uniwbrk/u32-wordbreaks: Likewise.
47944         * modules/uniwbrk/ulc-wordbreaks: Likewise.
47945         * modules/uniwbrk/wordbreak-property: Likewise.
47946         * modules/uniwidth/u8-strwidth: Likewise.
47947         * modules/uniwidth/u8-width: Likewise.
47948         * modules/uniwidth/u16-strwidth: Likewise.
47949         * modules/uniwidth/u16-width: Likewise.
47950         * modules/uniwidth/u32-strwidth: Likewise.
47951         * modules/uniwidth/u32-width: Likewise.
47952         * modules/uniwidth/width: Likewise.
47953         * modules/unicase/cased-tests (Makefile.am): Link all test programs
47954         with $(LIBUNISTRING).
47955         * modules/unicase/ignorable-tests: Likewise.
47956         * modules/unicase/locale-language-tests: Likewise.
47957         * modules/unicase/tolower-tests: Likewise.
47958         * modules/unicase/totitle-tests: Likewise.
47959         * modules/unicase/toupper-tests: Likewise.
47960         * modules/unicase/u8-casecmp-tests: Likewise.
47961         * modules/unicase/u8-casecoll-tests: Likewise.
47962         * modules/unicase/u8-casefold-tests: Likewise.
47963         * modules/unicase/u8-is-cased-tests: Likewise.
47964         * modules/unicase/u8-is-casefolded-tests: Likewise.
47965         * modules/unicase/u8-is-lowercase-tests: Likewise.
47966         * modules/unicase/u8-is-titlecase-tests: Likewise.
47967         * modules/unicase/u8-is-uppercase-tests: Likewise.
47968         * modules/unicase/u8-tolower-tests: Likewise.
47969         * modules/unicase/u8-totitle-tests: Likewise.
47970         * modules/unicase/u8-toupper-tests: Likewise.
47971         * modules/unicase/u16-casecmp-tests: Likewise.
47972         * modules/unicase/u16-casecoll-tests: Likewise.
47973         * modules/unicase/u16-casefold-tests: Likewise.
47974         * modules/unicase/u16-is-cased-tests: Likewise.
47975         * modules/unicase/u16-is-casefolded-tests: Likewise.
47976         * modules/unicase/u16-is-lowercase-tests: Likewise.
47977         * modules/unicase/u16-is-titlecase-tests: Likewise.
47978         * modules/unicase/u16-is-uppercase-tests: Likewise.
47979         * modules/unicase/u16-tolower-tests: Likewise.
47980         * modules/unicase/u16-totitle-tests: Likewise.
47981         * modules/unicase/u16-toupper-tests: Likewise.
47982         * modules/unicase/u32-casecmp-tests: Likewise.
47983         * modules/unicase/u32-casecoll-tests: Likewise.
47984         * modules/unicase/u32-casefold-tests: Likewise.
47985         * modules/unicase/u32-is-cased-tests: Likewise.
47986         * modules/unicase/u32-is-casefolded-tests: Likewise.
47987         * modules/unicase/u32-is-lowercase-tests: Likewise.
47988         * modules/unicase/u32-is-titlecase-tests: Likewise.
47989         * modules/unicase/u32-is-uppercase-tests: Likewise.
47990         * modules/unicase/u32-tolower-tests: Likewise.
47991         * modules/unicase/u32-totitle-tests: Likewise.
47992         * modules/unicase/u32-toupper-tests: Likewise.
47993         * modules/unicase/ulc-casecmp-tests: Likewise.
47994         * modules/unicase/ulc-casecoll-tests: Likewise.
47995         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
47996         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
47997         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
47998         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
47999         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
48000         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
48001         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
48002         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
48003         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
48004         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
48005         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
48006         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
48007         * modules/unictype/bidicategory-byname-tests: Likewise.
48008         * modules/unictype/bidicategory-name-tests: Likewise.
48009         * modules/unictype/bidicategory-of-tests: Likewise.
48010         * modules/unictype/bidicategory-test-tests: Likewise.
48011         * modules/unictype/block-list-tests: Likewise.
48012         * modules/unictype/block-of-tests: Likewise.
48013         * modules/unictype/block-test-tests: Likewise.
48014         * modules/unictype/category-C-tests: Likewise.
48015         * modules/unictype/category-Cc-tests: Likewise.
48016         * modules/unictype/category-Cf-tests: Likewise.
48017         * modules/unictype/category-Cn-tests: Likewise.
48018         * modules/unictype/category-Co-tests: Likewise.
48019         * modules/unictype/category-Cs-tests: Likewise.
48020         * modules/unictype/category-L-tests: Likewise.
48021         * modules/unictype/category-Ll-tests: Likewise.
48022         * modules/unictype/category-Lm-tests: Likewise.
48023         * modules/unictype/category-Lo-tests: Likewise.
48024         * modules/unictype/category-Lt-tests: Likewise.
48025         * modules/unictype/category-Lu-tests: Likewise.
48026         * modules/unictype/category-M-tests: Likewise.
48027         * modules/unictype/category-Mc-tests: Likewise.
48028         * modules/unictype/category-Me-tests: Likewise.
48029         * modules/unictype/category-Mn-tests: Likewise.
48030         * modules/unictype/category-N-tests: Likewise.
48031         * modules/unictype/category-Nd-tests: Likewise.
48032         * modules/unictype/category-Nl-tests: Likewise.
48033         * modules/unictype/category-No-tests: Likewise.
48034         * modules/unictype/category-P-tests: Likewise.
48035         * modules/unictype/category-Pc-tests: Likewise.
48036         * modules/unictype/category-Pd-tests: Likewise.
48037         * modules/unictype/category-Pe-tests: Likewise.
48038         * modules/unictype/category-Pf-tests: Likewise.
48039         * modules/unictype/category-Pi-tests: Likewise.
48040         * modules/unictype/category-Po-tests: Likewise.
48041         * modules/unictype/category-Ps-tests: Likewise.
48042         * modules/unictype/category-S-tests: Likewise.
48043         * modules/unictype/category-Sc-tests: Likewise.
48044         * modules/unictype/category-Sk-tests: Likewise.
48045         * modules/unictype/category-Sm-tests: Likewise.
48046         * modules/unictype/category-So-tests: Likewise.
48047         * modules/unictype/category-Z-tests: Likewise.
48048         * modules/unictype/category-Zl-tests: Likewise.
48049         * modules/unictype/category-Zp-tests: Likewise.
48050         * modules/unictype/category-Zs-tests: Likewise.
48051         * modules/unictype/category-and-not-tests: Likewise.
48052         * modules/unictype/category-and-tests: Likewise.
48053         * modules/unictype/category-byname-tests: Likewise.
48054         * modules/unictype/category-name-tests: Likewise.
48055         * modules/unictype/category-none-tests: Likewise.
48056         * modules/unictype/category-of-tests: Likewise.
48057         * modules/unictype/category-or-tests: Likewise.
48058         * modules/unictype/category-test-withtable-tests: Likewise.
48059         * modules/unictype/combining-class-tests: Likewise.
48060         * modules/unictype/ctype-alnum-tests: Likewise.
48061         * modules/unictype/ctype-alpha-tests: Likewise.
48062         * modules/unictype/ctype-blank-tests: Likewise.
48063         * modules/unictype/ctype-cntrl-tests: Likewise.
48064         * modules/unictype/ctype-digit-tests: Likewise.
48065         * modules/unictype/ctype-graph-tests: Likewise.
48066         * modules/unictype/ctype-lower-tests: Likewise.
48067         * modules/unictype/ctype-print-tests: Likewise.
48068         * modules/unictype/ctype-punct-tests: Likewise.
48069         * modules/unictype/ctype-space-tests: Likewise.
48070         * modules/unictype/ctype-upper-tests: Likewise.
48071         * modules/unictype/ctype-xdigit-tests: Likewise.
48072         * modules/unictype/decimal-digit-tests: Likewise.
48073         * modules/unictype/digit-tests: Likewise.
48074         * modules/unictype/mirror-tests: Likewise.
48075         * modules/unictype/numeric-tests: Likewise.
48076         * modules/unictype/property-alphabetic-tests: Likewise.
48077         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
48078         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
48079         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
48080         * modules/unictype/property-bidi-block-separator-tests: Likewise.
48081         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
48082         * modules/unictype/property-bidi-common-separator-tests: Likewise.
48083         * modules/unictype/property-bidi-control-tests: Likewise.
48084         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
48085         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
48086         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
48087         * modules/unictype/property-bidi-european-digit-tests: Likewise.
48088         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
48089         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
48090         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
48091         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
48092         * modules/unictype/property-bidi-pdf-tests: Likewise.
48093         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
48094         * modules/unictype/property-bidi-whitespace-tests: Likewise.
48095         * modules/unictype/property-byname-tests: Likewise.
48096         * modules/unictype/property-combining-tests: Likewise.
48097         * modules/unictype/property-composite-tests: Likewise.
48098         * modules/unictype/property-currency-symbol-tests: Likewise.
48099         * modules/unictype/property-dash-tests: Likewise.
48100         * modules/unictype/property-decimal-digit-tests: Likewise.
48101         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
48102         * modules/unictype/property-deprecated-tests: Likewise.
48103         * modules/unictype/property-diacritic-tests: Likewise.
48104         * modules/unictype/property-extender-tests: Likewise.
48105         * modules/unictype/property-format-control-tests: Likewise.
48106         * modules/unictype/property-grapheme-base-tests: Likewise.
48107         * modules/unictype/property-grapheme-extend-tests: Likewise.
48108         * modules/unictype/property-grapheme-link-tests: Likewise.
48109         * modules/unictype/property-hex-digit-tests: Likewise.
48110         * modules/unictype/property-hyphen-tests: Likewise.
48111         * modules/unictype/property-id-continue-tests: Likewise.
48112         * modules/unictype/property-id-start-tests: Likewise.
48113         * modules/unictype/property-ideographic-tests: Likewise.
48114         * modules/unictype/property-ids-binary-operator-tests: Likewise.
48115         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
48116         * modules/unictype/property-ignorable-control-tests: Likewise.
48117         * modules/unictype/property-iso-control-tests: Likewise.
48118         * modules/unictype/property-join-control-tests: Likewise.
48119         * modules/unictype/property-left-of-pair-tests: Likewise.
48120         * modules/unictype/property-line-separator-tests: Likewise.
48121         * modules/unictype/property-logical-order-exception-tests: Likewise.
48122         * modules/unictype/property-lowercase-tests: Likewise.
48123         * modules/unictype/property-math-tests: Likewise.
48124         * modules/unictype/property-non-break-tests: Likewise.
48125         * modules/unictype/property-not-a-character-tests: Likewise.
48126         * modules/unictype/property-numeric-tests: Likewise.
48127         * modules/unictype/property-other-alphabetic-tests: Likewise.
48128         * modules/unictype/property-other-default-ignorable-code-point-tests:
48129         Likewise.
48130         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
48131         * modules/unictype/property-other-id-continue-tests: Likewise.
48132         * modules/unictype/property-other-id-start-tests: Likewise.
48133         * modules/unictype/property-other-lowercase-tests: Likewise.
48134         * modules/unictype/property-other-math-tests: Likewise.
48135         * modules/unictype/property-other-uppercase-tests: Likewise.
48136         * modules/unictype/property-paired-punctuation-tests: Likewise.
48137         * modules/unictype/property-paragraph-separator-tests: Likewise.
48138         * modules/unictype/property-pattern-syntax-tests: Likewise.
48139         * modules/unictype/property-pattern-white-space-tests: Likewise.
48140         * modules/unictype/property-private-use-tests: Likewise.
48141         * modules/unictype/property-punctuation-tests: Likewise.
48142         * modules/unictype/property-quotation-mark-tests: Likewise.
48143         * modules/unictype/property-radical-tests: Likewise.
48144         * modules/unictype/property-sentence-terminal-tests: Likewise.
48145         * modules/unictype/property-soft-dotted-tests: Likewise.
48146         * modules/unictype/property-space-tests: Likewise.
48147         * modules/unictype/property-terminal-punctuation-tests: Likewise.
48148         * modules/unictype/property-test-tests: Likewise.
48149         * modules/unictype/property-titlecase-tests: Likewise.
48150         * modules/unictype/property-unassigned-code-value-tests: Likewise.
48151         * modules/unictype/property-unified-ideograph-tests: Likewise.
48152         * modules/unictype/property-uppercase-tests: Likewise.
48153         * modules/unictype/property-variation-selector-tests: Likewise.
48154         * modules/unictype/property-white-space-tests: Likewise.
48155         * modules/unictype/property-xid-continue-tests: Likewise.
48156         * modules/unictype/property-xid-start-tests: Likewise.
48157         * modules/unictype/property-zero-width-tests: Likewise.
48158         * modules/unictype/scripts-tests: Likewise.
48159         * modules/unictype/syntax-c-ident-tests: Likewise.
48160         * modules/unictype/syntax-c-whitespace-tests: Likewise.
48161         * modules/unictype/syntax-java-ident-tests: Likewise.
48162         * modules/unictype/syntax-java-whitespace-tests: Likewise.
48163         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
48164         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
48165         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
48166         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
48167         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
48168         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
48169         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
48170         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
48171         * modules/uniname/uniname-tests: Likewise.
48172         * modules/uninorm/canonical-decomposition-tests: Likewise.
48173         * modules/uninorm/compat-decomposition-tests: Likewise.
48174         * modules/uninorm/composition-tests: Likewise.
48175         * modules/uninorm/decomposing-form-tests: Likewise.
48176         * modules/uninorm/decomposition-tests: Likewise.
48177         * modules/uninorm/filter-tests: Likewise.
48178         * modules/uninorm/nfc-tests: Likewise.
48179         * modules/uninorm/nfd-tests: Likewise.
48180         * modules/uninorm/nfkc-tests: Likewise.
48181         * modules/uninorm/nfkd-tests: Likewise.
48182         * modules/uninorm/u8-normcmp-tests: Likewise.
48183         * modules/uninorm/u8-normcoll-tests: Likewise.
48184         * modules/uninorm/u16-normcmp-tests: Likewise.
48185         * modules/uninorm/u16-normcoll-tests: Likewise.
48186         * modules/uninorm/u32-normcmp-tests: Likewise.
48187         * modules/uninorm/u32-normcoll-tests: Likewise.
48188         * modules/unistdio/u8-asnprintf-tests: Likewise.
48189         * modules/unistdio/u8-vasnprintf-tests: Likewise.
48190         * modules/unistdio/u8-vasprintf-tests: Likewise.
48191         * modules/unistdio/u8-vsnprintf-tests: Likewise.
48192         * modules/unistdio/u8-vsprintf-tests: Likewise.
48193         * modules/unistdio/u16-asnprintf-tests: Likewise.
48194         * modules/unistdio/u16-vasnprintf-tests: Likewise.
48195         * modules/unistdio/u16-vasprintf-tests: Likewise.
48196         * modules/unistdio/u16-vsnprintf-tests: Likewise.
48197         * modules/unistdio/u16-vsprintf-tests: Likewise.
48198         * modules/unistdio/u32-asnprintf-tests: Likewise.
48199         * modules/unistdio/u32-vasnprintf-tests: Likewise.
48200         * modules/unistdio/u32-vasprintf-tests: Likewise.
48201         * modules/unistdio/u32-vsnprintf-tests: Likewise.
48202         * modules/unistdio/u32-vsprintf-tests: Likewise.
48203         * modules/unistdio/ulc-asnprintf-tests: Likewise.
48204         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
48205         * modules/unistdio/ulc-vasprintf-tests: Likewise.
48206         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
48207         * modules/unistdio/ulc-vsprintf-tests: Likewise.
48208         * modules/unistr/u8-check-tests: Likewise.
48209         * modules/unistr/u8-chr-tests: Likewise.
48210         * modules/unistr/u8-cmp-tests: Likewise.
48211         * modules/unistr/u8-cmp2-tests: Likewise.
48212         * modules/unistr/u8-cpy-alloc-tests: Likewise.
48213         * modules/unistr/u8-cpy-tests: Likewise.
48214         * modules/unistr/u8-mblen-tests: Likewise.
48215         * modules/unistr/u8-mbsnlen-tests: Likewise.
48216         * modules/unistr/u8-mbtouc-tests: Likewise.
48217         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
48218         * modules/unistr/u8-mbtoucr-tests: Likewise.
48219         * modules/unistr/u8-move-tests: Likewise.
48220         * modules/unistr/u8-next-tests: Likewise.
48221         * modules/unistr/u8-prev-tests: Likewise.
48222         * modules/unistr/u8-set-tests: Likewise.
48223         * modules/unistr/u8-stpcpy-tests: Likewise.
48224         * modules/unistr/u8-stpncpy-tests: Likewise.
48225         * modules/unistr/u8-strcat-tests: Likewise.
48226         * modules/unistr/u8-strcmp-tests: Likewise.
48227         * modules/unistr/u8-strcoll-tests: Likewise.
48228         * modules/unistr/u8-strcpy-tests: Likewise.
48229         * modules/unistr/u8-strdup-tests: Likewise.
48230         * modules/unistr/u8-strlen-tests: Likewise.
48231         * modules/unistr/u8-strmblen-tests: Likewise.
48232         * modules/unistr/u8-strmbtouc-tests: Likewise.
48233         * modules/unistr/u8-strncat-tests: Likewise.
48234         * modules/unistr/u8-strncmp-tests: Likewise.
48235         * modules/unistr/u8-strncpy-tests: Likewise.
48236         * modules/unistr/u8-strnlen-tests: Likewise.
48237         * modules/unistr/u8-to-u16-tests: Likewise.
48238         * modules/unistr/u8-to-u32-tests: Likewise.
48239         * modules/unistr/u8-uctomb-tests: Likewise.
48240         * modules/unistr/u16-check-tests: Likewise.
48241         * modules/unistr/u16-chr-tests: Likewise.
48242         * modules/unistr/u16-cmp-tests: Likewise.
48243         * modules/unistr/u16-cmp2-tests: Likewise.
48244         * modules/unistr/u16-cpy-alloc-tests: Likewise.
48245         * modules/unistr/u16-cpy-tests: Likewise.
48246         * modules/unistr/u16-mblen-tests: Likewise.
48247         * modules/unistr/u16-mbsnlen-tests: Likewise.
48248         * modules/unistr/u16-mbtouc-tests: Likewise.
48249         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
48250         * modules/unistr/u16-mbtoucr-tests: Likewise.
48251         * modules/unistr/u16-move-tests: Likewise.
48252         * modules/unistr/u16-next-tests: Likewise.
48253         * modules/unistr/u16-prev-tests: Likewise.
48254         * modules/unistr/u16-set-tests: Likewise.
48255         * modules/unistr/u16-stpcpy-tests: Likewise.
48256         * modules/unistr/u16-stpncpy-tests: Likewise.
48257         * modules/unistr/u16-strcat-tests: Likewise.
48258         * modules/unistr/u16-strcmp-tests: Likewise.
48259         * modules/unistr/u16-strcoll-tests: Likewise.
48260         * modules/unistr/u16-strcpy-tests: Likewise.
48261         * modules/unistr/u16-strdup-tests: Likewise.
48262         * modules/unistr/u16-strlen-tests: Likewise.
48263         * modules/unistr/u16-strmblen-tests: Likewise.
48264         * modules/unistr/u16-strmbtouc-tests: Likewise.
48265         * modules/unistr/u16-strncat-tests: Likewise.
48266         * modules/unistr/u16-strncmp-tests: Likewise.
48267         * modules/unistr/u16-strncpy-tests: Likewise.
48268         * modules/unistr/u16-strnlen-tests: Likewise.
48269         * modules/unistr/u16-to-u32-tests: Likewise.
48270         * modules/unistr/u16-to-u8-tests: Likewise.
48271         * modules/unistr/u16-uctomb-tests: Likewise.
48272         * modules/unistr/u32-check-tests: Likewise.
48273         * modules/unistr/u32-chr-tests: Likewise.
48274         * modules/unistr/u32-cmp-tests: Likewise.
48275         * modules/unistr/u32-cmp2-tests: Likewise.
48276         * modules/unistr/u32-cpy-alloc-tests: Likewise.
48277         * modules/unistr/u32-cpy-tests: Likewise.
48278         * modules/unistr/u32-mblen-tests: Likewise.
48279         * modules/unistr/u32-mbsnlen-tests: Likewise.
48280         * modules/unistr/u32-mbtouc-tests: Likewise.
48281         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
48282         * modules/unistr/u32-mbtoucr-tests: Likewise.
48283         * modules/unistr/u32-move-tests: Likewise.
48284         * modules/unistr/u32-next-tests: Likewise.
48285         * modules/unistr/u32-prev-tests: Likewise.
48286         * modules/unistr/u32-set-tests: Likewise.
48287         * modules/unistr/u32-stpcpy-tests: Likewise.
48288         * modules/unistr/u32-stpncpy-tests: Likewise.
48289         * modules/unistr/u32-strcat-tests: Likewise.
48290         * modules/unistr/u32-strcmp-tests: Likewise.
48291         * modules/unistr/u32-strcoll-tests: Likewise.
48292         * modules/unistr/u32-strcpy-tests: Likewise.
48293         * modules/unistr/u32-strdup-tests: Likewise.
48294         * modules/unistr/u32-strlen-tests: Likewise.
48295         * modules/unistr/u32-strmblen-tests: Likewise.
48296         * modules/unistr/u32-strmbtouc-tests: Likewise.
48297         * modules/unistr/u32-strncat-tests: Likewise.
48298         * modules/unistr/u32-strncmp-tests: Likewise.
48299         * modules/unistr/u32-strncpy-tests: Likewise.
48300         * modules/unistr/u32-strnlen-tests: Likewise.
48301         * modules/unistr/u32-to-u16-tests: Likewise.
48302         * modules/unistr/u32-to-u8-tests: Likewise.
48303         * modules/unistr/u32-uctomb-tests: Likewise.
48304         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
48305         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
48306         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
48307         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
48308         * modules/uniwidth/u8-strwidth-tests: Likewise.
48309         * modules/uniwidth/u8-width-tests: Likewise.
48310         * modules/uniwidth/u16-strwidth-tests: Likewise.
48311         * modules/uniwidth/u16-width-tests: Likewise.
48312         * modules/uniwidth/u32-strwidth-tests: Likewise.
48313         * modules/uniwidth/u32-width-tests: Likewise.
48314         * modules/uniwidth/width-tests: Likewise.
48316 2010-05-18  Richard Jones  <rjones@redhat.com>
48318         doc: users.txt: list hivex
48319         * users.txt: Add hivex.
48321 2010-05-18  Richard Jones  <rjones@redhat.com>
48323         doc: users.txt: list febootstrap
48324         * users.txt: Add febootstrap.
48326 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
48328         bootstrap: fix an error when gnulib is not used as a git submodule
48329         * build-aux/bootstrap (gnulib_path): If its length is zero then
48330         assign "gnulib" to it.
48331         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
48333 2010-05-16  Bruno Haible  <bruno@clisp.org>
48335         Avoid autoconf warnings about AM_ICONV.
48336         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
48337         2.64.
48339 2010-05-16  Bruno Haible  <bruno@clisp.org>
48341         absolute-header: Make the macro usable in more situations.
48342         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
48343         from gl_ABSOLUTE_HEADER.
48344         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
48346 2010-05-16  James Youngman  <jay@gnu.org>
48348         doc: update users.txt
48349         * users.txt: Add CSSC.
48351 2010-05-16  Jim Meyering  <meyering@redhat.com>
48353         init.sh: fix an error in the previous change; add more comments
48354         * tests/init.sh: Compare exit code in loop against 9, not 2.
48355         Patch by Bruno Haible.
48356         Make the two tests more similar by adding an empty "then" clause.
48357         Add comments.
48359         init.sh: avoid unnecessary shell re-exec
48360         * tests/init.sh: Improve the re-exec-required check to first test the
48361         current shell.  If it passes the test, do not search for a shell that
48362         does pass, and do not re-exec.  This test is particularly contorted to
48363         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
48364         of $(...) evokes a syntax error and causes immediate shell exit with
48365         status 2.  Bruno Haible reported that the re-exec made it impossible
48366         to single-step through any init.sh-using script.
48368 2010-05-16  Bruno Haible  <bruno@clisp.org>
48370         Fix collision between gnulib's and libintl's printf replacements.
48371         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
48372         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
48373         (printf): When using GNU C, map the __printf__ function to rpl_printf
48374         via __asm__. When not using GNU C, define rpl_printf instead of
48375         __printf__.
48376         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
48377         commit.
48378         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
48379         commit.
48380         * m4/asm-underscore.m4: New file.
48381         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
48382         * modules/stdio (Files): Add m4/asm-underscore.m4.
48383         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
48384         Reported by Ben Pfaff.
48386 2010-05-16  Bruno Haible  <bruno@clisp.org>
48388         verify: Avoid skipping the test on openSUSE 11.0.
48389         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
48391 2010-05-13  Bruno Haible  <bruno@clisp.org>
48393         Avoid useless warnings from G++.
48394         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
48395         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
48396         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
48398 2010-05-11  Jim Meyering  <meyering@redhat.com>
48400         maint.mk: tweak preceding change
48401         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
48402         regexps tighter by anchoring at EOL, and make the new group "shy"
48403         for slightly decreased overhead.
48405 2010-05-11  Eric Blake  <eblake@redhat.com>
48407         maint.mk: gnulib doesn't guarantee NSIG
48408         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
48410 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
48412         test-pwrite.c: Remove unused variable declaration.
48413         * tests/test-pwrite.c (main): Remove read_buf declaration.
48415         Remove useless test-pwrite.sh file.
48416         * tests/test-pwrite.sh: Delete file.
48417         * modules/pwrite-tests: Remove references.
48418         Reported by Bruno Haible.
48420 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
48422         init.sh: fix a typo
48423         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
48425 2010-05-10  Jim Meyering  <meyering@redhat.com>
48427         maint.mk: avoid using a temporary file in the always-defined-macros check
48428         * top/maint.mk (.re-defmac): Remove rule.
48429         (gl_trap_): Remove definition.
48430         (sc_prohibit_always-defined_macros): Rewrite not to create and
48431         depend on a temporary file.  Instead, depend on GNU grep's ability
48432         to read a list of regular expressions from stdin when given "-f -".
48434 2010-05-09  Bruno Haible  <bruno@clisp.org>
48436         Update to GNU gettext 0.18, part 1.
48437         * m4/gettext.m4: Update to GNU gettext 0.18.
48438         * m4/intl.m4: Likewise.
48439         * m4/po.m4: Likewise.
48440         * modules/gettext (Files): Add m4/fcntl-o.m4.
48441         (configure.ac): Require gettext infrastructure from version 0.18.
48443 2010-05-09  Jim Meyering  <meyering@redhat.com>
48445         init.sh: enable MALLOC_PERTURB_
48446         * tests/init.sh: Enable glibc's malloc-perturbing option.
48448         maint.mk: improve sc_cross_check_PATH_usage_in_tests
48449         With my recent change in init.sh from the two-line form:
48450             -#   : ${srcdir=.}
48451             -#   . "$srcdir/init.sh"; path_prepend_ .
48452             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
48453         I noticed that using the one-line form would cause this test
48454         to fail with a false-positive, or to stop working altogether,
48455         depending on whether help-version changed or all the tests did.
48456         * top/maint.mk (_hv_regex): Remove this definition.
48457         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
48458         (_hv_regex_strong): Use a stronger regex to check for conformance.
48459         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
48460         Give a separate diagnostic for lack of conforming use.
48462         maint.mk: prohibit definition of symbols defined by gnulib
48463         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
48464         definition of symbols defined by gnulib.
48466 2010-05-09  Bruno Haible  <bruno@clisp.org>
48468         acl: Avoid test failure on Cygwin-hosted mingw.
48469         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
48471 2010-05-09  Bruno Haible  <bruno@clisp.org>
48473         error: Use system's fcntl function.
48474         * lib/error.c (fcntl): Undefine.
48476 2010-05-09  Jim Meyering  <meyering@redhat.com>
48478         verify: adjust formatting to be more consistent
48479         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
48480         argument-list '('s, and after one comma.
48482 2010-05-09  Bruno Haible  <bruno@clisp.org>
48484         error: More reliable output on mingw.
48485         * lib/error.c: Include <windows.h>.
48486         (is_open): New function.
48487         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
48488         defined.
48490 2010-05-09  Bruno Haible  <bruno@clisp.org>
48492         vasnprintf: Fix syntax errors in libintl build on mingw.
48493         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
48494         pad_ourselves and prec_ourselves after use.
48496 2010-05-08  Bruno Haible  <bruno@clisp.org>
48498         * lib/config.charset: Update comments for Cygwin 1.7.
48499         * lib/localcharset.c: Likewise.
48501 2010-05-07  Jim Meyering  <meyering@redhat.com>
48503         init.sh: improve comments
48504         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
48505         . "${srcdir=.}/init.sh"; path_prepend_ .
48506         Add a note about path_prepend_ and the alternative of using
48507         TESTS_ENVIRONMENT.
48509 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
48511         exclude: Unescape hashed patterns in wildcard mode.
48512         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
48513         to the hash list.
48514         * tests/test-exclude8.sh: New test case.
48515         * modules/exclude-tests: Add new test.
48517 2010-05-05  Eric Blake  <eblake@redhat.com>
48519         verify: automate tests
48520         * modules/verify-tests: New module.
48521         * tests/test-verify.sh: New file.
48522         * tests/test-verify.c: Guard each negative test with a unique id.
48523         Also avoid warning about unused left hand of comma expressions.
48525 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
48527         Further improvements to verify.h, suggested by Eric Blake.
48528         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
48529         the GL_* versions, to avoid collision with OpenGL.
48530         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
48531         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
48532         than testing merely whether it's defined.
48534         Modify verify.h to pacify gcc -Wredundant_decls.
48535         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
48536         These use the prefix "GL_" since they're likely to be useful elsewhere.
48537         We may need to break them out into a different .h file.
48538         (__COUNTER__): Define to 0 if the compiler doesn't support it.
48539         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
48540         of verify_function__.
48542 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
48544         Tests for module pwrite.
48545         * modules/pwrite-tests: New file.
48546         * tests/test-pwrite.sh: New file.
48547         * tests/test-pwrite.c: New file.
48549         New module pwrite.
48550         * lib/unistd.in.h (pwrite): New declaration.
48551         * lib/pwrite.c: New file, from glibc with modifications.
48552         * m4/pwrite.m4: New file.
48553         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
48554         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
48555         REPLACE_PWRITE.
48556         * modules/pwrite: New file.
48557         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
48558         REPLACE_PWRITE.
48559         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
48560         * doc/posix-functions/pwrite.texi: Mention the new module.
48562 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
48564         pread: Update documentation.
48565         * doc/posix-functions/pread.texi: Mention the 'pread' module.
48567 2010-05-04  Eric Blake  <eblake@redhat.com>
48569         docs: update cygwin progress
48570         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
48571         this bug.
48572         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
48573         Added in cygwin 1.7.2.
48574         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
48575         Likewise.
48576         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
48577         Likewise.
48578         * doc/glibc-functions/dup3.texi (dup3): Likewise.
48579         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
48580         * doc/glibc-functions/accept4.texi (accept4): Likewise.
48581         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
48582         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
48583         Mention nproc module.
48584         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
48585         bug in cygwin 1.7.5 addition.
48586         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
48587         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
48588         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
48589         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
48590         1.7.5.
48591         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
48592         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
48593         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
48594         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
48595         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
48596         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
48597         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
48598         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
48599         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
48600         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
48601         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
48602         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
48603         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
48604         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
48605         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
48606         Likewise.
48607         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
48608         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
48609         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
48610         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
48611         Likewise.
48612         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
48613         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
48614         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
48615         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
48616         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
48617         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
48618         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
48619         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
48620         Likewise.
48621         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
48622         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
48623         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
48624         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
48625         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
48626         Likewise.
48627         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
48628         Likewise.
48629         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
48630         Likewise.
48631         * doc/glibc-functions/xdrrec_endofrecord.texi
48632         (xdrrec_endofrecord): Likewise.
48633         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
48634         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
48635         Likewise.
48636         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
48637         Likewise.
48639 2010-05-04  Jim Meyering  <meyering@redhat.com>
48641         gendocs.sh: make its "-s FILE" option more useful
48642         * build-aux/gendocs.sh: When honoring the -s FILE option, update
48643         $PACKAGE to reflect the probably-different basename of "FILE".
48645 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
48647         bootstrap: don't ignore download_po_files failure
48648         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
48649         failure.
48651 2010-05-03  Jim Meyering  <meyering@redhat.com>
48653         maint.mk: allow to pass options to gendocs.sh
48654         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
48655         (gendocs_options_): New overridable variable.
48657         gnu-web-doc-update: don't ignore configure or build failure
48658         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
48660         announce-gen: backslash-escape '@'s in --help output
48661         * build-aux/announce-gen: Fix syntax errors.
48663         maint.mk, announce-gen: allow project-specific announcement mail headers
48664         * top/maint.mk (translation_project_): Define default.
48665         (announcement_Cc_, announcement_mail_headers_): Likewise.
48666         (announcement): Invoke announce-gen with new --mail-headers option.
48667         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
48669         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
48670         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
48671         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
48672         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
48673         line in the "err2" output file when running "make check" in verbose
48674         mode (i.e., with set -x enabled).
48676 2010-05-03  Bruno Haible  <bruno@clisp.org>
48678         wctob: Fix for weird platforms.
48679         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
48680         argument value.
48682 2010-05-03  Jim Meyering  <meyering@redhat.com>
48684         maint.mk: prohibit unwarranted use of <strings.h>
48685         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
48686         strings.h in a file that does not also use strcasecmp, strncasecmp,
48687         ffs or ffsll.
48689         maint.mk: remove obsolete comments
48690         * top/maint.mk: Remove stale, commented-out rules.
48692 2010-05-02  Bruno Haible  <bruno@clisp.org>
48694         wcwidth: Declare also when it's aliased.
48695         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
48696         macro.
48698 2010-05-02  Bruno Haible  <bruno@clisp.org>
48700         Fix regression from 2010-04-25.
48701         * gnulib-tool (func_modules_transitive_closure): Check the status of
48702         all modules, not only of the tests that are of the form foo-tests where
48703         foo is a module.
48705 2010-05-02  Bruno Haible  <bruno@clisp.org>
48707         wctob: Work around nasty Cygwin 1.7.2 bug.
48708         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
48709         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
48711 2010-05-01  Bruno Haible  <bruno@clisp.org>
48713         fpurge: Sharper test.
48714         * tests/test-fpurge.c (main): Add one more ftell check.
48715         * modules/fpurge-tests (Depends-on): Add ftell.
48716         Suggested by Eric Blake.
48718 2010-05-01  Bruno Haible  <bruno@clisp.org>
48720         ftello: Another test.
48721         * tests/test-ftello3.c: New file.
48722         * modules/ftello-tests (Files): Add it.
48723         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
48724         MOSTLYCLEANFILES.
48726         ftell: Another test.
48727         * tests/test-ftell3.c: New file.
48728         * modules/ftell-tests (Files): Add it.
48729         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
48730         MOSTLYCLEANFILES.
48732 2010-05-01  Bruno Haible  <bruno@clisp.org>
48734         ftell, ftello: Work around Solaris bug.
48735         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
48736         * lib/ftello.c: Include stdio-impl.h.
48737         (ftello): On Solaris, when _IOWRT is set, compute the result without
48738         looking at _IOREAD.
48739         * modules/ftello (Files): Add lib/stdio-impl.h.
48740         * doc/posix-functions/ftell.texi: Mention Solaris bug.
48741         * doc/posix-functions/ftello.texi: Likewise.
48742         Reported by Eric Blake.
48744 2010-05-01  Bruno Haible  <bruno@clisp.org>
48746         freading: Adapt to special meaning of _IOREAD flag on Solaris.
48747         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
48748         the _IOWRT flag is also set.
48750 2010-05-01  Bruno Haible  <bruno@clisp.org>
48752         Fix doc about a HP-UX stdio bug.
48753         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
48754         * doc/posix-functions/ftello.texi: Likewise.
48756 2010-05-01  Bruno Haible  <bruno@clisp.org>
48758         lseek test: Fix failure on Solaris.
48759         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
48760         output.
48762 2010-04-30  Jim Meyering  <meyering@redhat.com>
48764         bootstrap: don't ignore failure to generate po*/Makevars
48765         * build-aux/bootstrap (with_gettext): Don't ignore failure
48766         to create po/Makevars or runtime-po/Makevars.
48768 2010-04-29  Eric Blake  <eblake@redhat.com>
48770         headers: relax license to LGPLv2+
48771         * modules/fcntl-h (License): Relax license.
48772         * modules/getopt-posix (License): Likewise.
48773         * modules/locale (License): Likewise.
48774         * modules/math (License): Likewise.
48775         * modules/pty (License): Likewise.
48776         * modules/sched (License): Likewise.
48777         * modules/search (License): Likewise.
48778         * modules/spawn (License): Likewise.
48779         * modules/stdarg (License): Likewise.
48780         * modules/sysexits (License): Likewise.
48782 2010-04-29  Jim Meyering  <meyering@redhat.com>
48784         inttypes: relax license to LGPLv2+
48785         * modules/inttypes (License): Relax license.
48787 2010-04-29  Simon Josefsson  <simon@josefsson.org>
48789         * top/maint.mk (indent): Run twice to produce idempotent results.
48791 2010-04-28  Bruno Haible  <bruno@clisp.org>
48793         getdate: Generate getdate.c in the source directory.
48794         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
48795         MOSTLYCLEANFILES.
48796         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
48798 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
48800         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
48801         is not declared as a const *; avoid warnings in that case.
48803 2010-04-28  Eric Blake  <eblake@redhat.com>
48805         canonicalize-lgpl: avoid compiler warning
48806         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
48807         declaration' / 'extraneous semicolon' warning with some compilers.
48808         Reported by Andreas Gruenbacher.
48810 2010-04-28  Jim Meyering  <meyering@redhat.com>
48812         init.sh: ensure a more reliable exit status when exiting via trap
48813         * tests/init.sh (setup_): Don't rely on $? in signal handler.
48814         Inspired by patches from Dmitry V. Levin.
48815         Also trap on signal 3 (SIGQUIT).
48817 2010-04-27  Bruno Haible  <bruno@clisp.org>
48819         Update doc about utimes().
48820         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
48821         'utimens' module.
48822         Reported by Andreas Gruenbacher <agruen@suse.de>.
48824 2010-04-27  Eric Blake  <eblake@redhat.com>
48826         full-read, full-write: relax license
48827         * modules/full-read (License): Drop to LGPLv2+.
48828         * modules/full-write (License): Likewise.
48829         * modules/safe-read (License): Likewise.
48830         * modules/safe-write (License): Likewise.
48832         pthread: mention library for linking
48833         * modules/pthread (Link): Mention $(LIB_PTHREAD).
48835 2010-04-27  Jim Meyering  <meyering@redhat.com>
48837         maint.mk: fix a bug introduced in last change
48838         * top/maint.mk (gl_assured_headers_): Now that all names are on
48839         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
48840         is not anchored to end of word, it should be adequate.
48842         maint.mk: avoid side-effect in latest syntax-check
48843         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
48844         to run commands via $(shell...), and hence to incur cost only when
48845         the new rule is actually run.
48847         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
48848         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
48849         and use that to create a regexp used to detect all #if HAVE_..._H uses.
48850         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
48851         (gl_assured_headers_, az_, AZ_): Define.
48852         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
48854 2010-04-26  Jim Meyering  <jim@meyering.net>
48855             Bruno Haible  <bruno@clisp.org>
48857         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
48858         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
48859         Prompted by an exchange with Gilles Espinasse.
48861 2010-04-26  Jim Meyering  <meyering@redhat.com>
48863         git-version-gen: aesthetic tweak
48864         * build-aux/git-version-gen: Use "$nl" rather than a literal,
48865         so that the command remains on a single line.
48867 2010-04-26  Eric Blake  <eblake@redhat.com>
48869         git-version-gen: allow use on EBCDIC hosts
48870         * build-aux/git-version-gen (dirty): Use literal rather than tying
48871         ourselves to ascii.
48872         Reported by Steve Goetze.
48874 2010-04-25  Bruno Haible  <bruno@clisp.org>
48876         netdb: Add support for GNULIB_POSIXCHECK.
48877         * lib/netdb.in.h: Include warn-on-use.h.
48878         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
48879         functions are used when GNULIB_POSIXCHECK is defined and the
48880         getaddrinfo module is not in use.
48881         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
48882         freeaddrinfo, gai_strerror, getnameinfo are declared.
48883         * modules/netdb (Depends-on): Add warn-on-use.
48884         (Makefile.am): Include warn-on-use.h in netdb.h.
48886 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
48888         build: avoid "make check" failure without .git/ directory
48889         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
48890         there is no .git/ directory.
48892 2010-04-25  Bruno Haible  <bruno@clisp.org>
48894         ptsname: Fix misuse of ttyname_r.
48895         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
48896         of errno.
48898 2010-04-25  Bruno Haible  <bruno@clisp.org>
48900         ttyname_r: Make it work on Solaris 10.
48901         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
48902         if the system function has the POSIX declaration. Test whether the
48903         function fails if the buffer is less than 128 bytes large.
48904         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
48905         system's ttyname_r function. Provide a reasonably large buffer.
48906         * modules/ttyname_r (Depends-on): Add extensions.
48907         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
48909 2010-04-25  Bruno Haible  <bruno@clisp.org>
48911         Use the 'extensions' module for some more functions on Solaris.
48912         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
48913         module.
48914         * doc/posix-functions/ctime_r.texi: Likewise.
48915         * doc/posix-functions/getgrgid_r.texi: Likewise.
48916         * doc/posix-functions/getgrnam_r.texi: Likewise.
48917         * doc/posix-functions/getpwnam_r.texi: Likewise.
48918         * doc/posix-functions/getpwuid_r.texi: Likewise.
48919         * doc/posix-functions/readdir_r.texi: Likewise.
48920         * doc/posix-functions/sigwait.texi: Likewise.
48921         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
48922         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
48924 2010-04-25  Bruno Haible  <bruno@clisp.org>
48926         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
48927         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
48928         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
48929         * lib/ttyname_r.c: Include <limits.h>.
48930         (ttyname_r): Define using the system's ttyname_r function, if it exists
48931         and not on Solaris.
48932         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
48933         set.
48934         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
48935         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
48936         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
48937         Reported by Simon Josefsson.
48939 2010-04-25  Bruno Haible  <bruno@clisp.org>
48941         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
48942         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
48943         * doc/posix-functions/ctime_r.texi: Likewise.
48944         * doc/posix-functions/getgrgid_r.texi: Likewise.
48945         * doc/posix-functions/getgrnam_r.texi: Likewise.
48946         * doc/posix-functions/getlogin_r.texi: Likewise.
48947         * doc/posix-functions/getpwnam_r.texi: Likewise.
48948         * doc/posix-functions/getpwuid_r.texi: Likewise.
48949         * doc/posix-functions/readdir_r.texi: Likewise.
48950         * doc/posix-functions/sigwait.texi: Likewise.
48951         * doc/posix-functions/ttyname_r.texi: Likewise.
48952         Reported by Simon Josefsson.
48954 2010-04-25  Bruno Haible  <bruno@clisp.org>
48956         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
48957         * gnulib-tool (func_usage): Document that --with-*-tests options apply
48958         also to --create-testdir.
48959         (func_acceptable): Don't consider the status of *-tests modules here.
48960         (func_modules_transitive_closure): Consider it here, before including a
48961         test module.
48962         (func_import, func_create_testdir): Set inc_all_direct_tests,
48963         inc_all_indirect_tests.
48964         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
48965         --create-testdir and --create-megatestdir.
48967 2010-04-25  Bruno Haible  <bruno@clisp.org>
48969         gnulib-tool: Add --without-*-tests options.
48970         * gnulib-tool (func_usage): Document the --without-*-tests options.
48971         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
48972         excl_unportable_tests): New variables.
48973         Fail if they are specified with --import or --update.
48974         (func_acceptable): Respect the excl_*_tests variables.
48975         (func_import): Set the excl_*_tests variables to empty.
48977 2010-04-25  Simon Josefsson  <simon@josefsson.org>
48978             Bruno Haible  <bruno@clisp.org>
48980         Work around a MacOS X 10.4 bug with openpty.
48981         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
48982         * tests/test-openpty.c (main): Close the master side explicitly.
48984 2010-04-25  Bruno Haible  <bruno@clisp.org>
48986         strnlen: Fix a C++ test error on MacOS X and Solaris.
48987         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
48988         the function is not declared.
48989         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
48990         Simon Josefsson.
48992 2010-04-24  Bruno Haible  <bruno@clisp.org>
48994         Avoid a gcc warning.
48995         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
48996         of correct type for %08lx directive.
48997         Reported by Eric Blake.
48999 2010-04-24  Bruno Haible  <bruno@clisp.org>
49001         vasnprintf: Correct errno value in case of out-of-memory.
49002         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
49003         or sprintf. Use the errno value from SNPRINTF or sprintf.
49004         Reported by Ian Beckwith <ianb@erislabs.net>.
49006 2010-04-24  Bruno Haible  <bruno@clisp.org>
49008         ansi-c++-opt: Find correct compiler when cross-compiling.
49009         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
49010         AC_CHECK_PROGS.
49011         Reported by Simon Josefsson.
49013 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
49015         vc-list-files: Add support for subversion
49016         * build-aux/vc-list-files: Use "svn list" to generate the list of
49017         files controlled by subversion.
49019 2010-04-23  Jim Meyering  <meyering@redhat.com>
49021         vc-list-files tests: convert to use init.sh
49022         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
49023         path_prepend_.
49024         Use Exit, not exit.
49025         Use skip_ rather than open coding it.
49026         Remove trap set-up and compare definitions.
49027         * tests/test-vc-list-files-git.sh: Likewise.
49028         * modules/vc-list-files-tests (Files): Add tests/init.sh.
49030 2010-04-22  Simon Josefsson  <simon@josefsson.org>
49032         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
49033         backup files.
49035 2010-04-21  Simon Josefsson  <simon@josefsson.org>
49037         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
49039 2010-04-20  Eric Blake  <eblake@redhat.com>
49041         tests: be robust to ignored SIGPIPE
49042         * tests/test-select-in.sh: Consume all output.
49043         * tests/test-lseek.sh: Check correct exit status, while avoiding
49044         EPIPE.
49046 2010-04-20  Simon Josefsson  <simon@josefsson.org>
49047             Bruno Haible  <bruno@clisp.org>
49049         visibility: Don't use -fvisibility if it leads to a warning.
49050         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
49051         yes, don't pretend that visibility works if it leads to a warning.
49052         Reported by Mike Gran <spk121@yahoo.com>.
49054 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
49056         * build-aux/bootstrap: Use "git -h" for testing for supported options
49057         instead of "git --help".  The short-form option only shows a summary,
49058         and doesn't layout the full man page.  Grep for the full option name
49059         in the summary, too.
49061 2010-04-19  Bruno Haible  <bruno@clisp.org>
49063         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
49064         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
49065         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
49066         mention of RELOCATABLE_STRIP.
49067         Reported by Sylvain Beucler <beuc@beuc.net>.
49069 2010-04-19  Bruno Haible  <bruno@clisp.org>
49071         * lib/diffseq.h: Fix typo in comment.
49072         Reported by Eric Blake.
49074 2010-04-19  Bruno Haible  <bruno@clisp.org>
49076         ioctl: Move autoconf macro to a .m4 file.
49077         * m4/ioctl.m4: New file, extracted from modules/ioctl.
49078         * modules/ioctl (Files): Add it.
49079         (configure.ac): Simply invoke gl_FUNC_IOCTL.
49080         Reported by Ian Beckwith <ianb@erislabs.net>.
49082 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
49083             Bruno Haible  <bruno@clisp.org>
49085         diffseq: Accommodate use-case with abstract arrays.
49086         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
49087         is not defined.
49088         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
49089         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
49091 2010-04-18  Bruno Haible  <bruno@clisp.org>
49093         * doc/posix-headers/stdbool.texi: More precise wording.
49095 2010-04-17  Jim Meyering  <meyering@redhat.com>
49097         maint.mk: use gnu-style indentation in an embedded perl script
49098         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
49099         Rename variable: s/two/last_two_bytes/
49101 2010-04-16  Eric Blake  <eblake@redhat.com>
49103         test-stdbool: skip test that fails with Solaris CC
49104         * tests/test-stdbool.c (f): Skip test that causes compilation
49105         error under buggy C++ compiler.
49106         * lib/stdbool.in.h: Document the limitation.
49107         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
49109         setenv: allow compilation with C++
49110         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
49111         register keyword.
49113         stdint: allow test to pass with C++
49114         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
49116         getopt: allow compilation with C++
49117         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
49118         struct.
49119         * lib/getopt.c (_getopt_internal_r): Use correct type.
49120         Reported by Dagobert Michelson, via Joel E. Denny.
49122 2010-04-16  Bruno Haible  <bruno@clisp.org>
49124         Override netdb.h always.
49125         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
49126         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
49127         Reported by Ludovic Courtès <ludo@gnu.org>.
49129 2010-04-15  Bruno Haible  <bruno@clisp.org>
49131         openpty: Fix mistake from 2010-03-21.
49132         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
49133         Reported by Simon Josefsson.
49135 2010-04-15  Eric Blake  <eblake@redhat.com>
49137         test-forkpty: fix expected signature
49138         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
49139         Reported by Simon Josefsson.
49141 2010-04-15  Jim Meyering  <meyering@redhat.com>
49143         maint.mk: texinfo_suffix_re_: correct the default regexp
49144         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
49146         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
49147         make it configurable via texinfo_suffix_re_.
49149 2010-04-14  Eric Blake  <eblake@redhat.com>
49151         strtok_r: relax license to LGPLv2+
49152         * modules/strtok_r (License): Relax license.
49153         Reported by Matthias Bolte.
49155 2010-04-14  Simon Josefsson  <simon@josefsson.org>
49157         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
49158         version 1.4.4 by default instead of requiring the libgcrypt
49159         version used during build.  This makes it possible to use the
49160         application with older but still binary compatible libgcrypt
49161         versions.
49163 2010-04-13  Eric Blake  <eblake@redhat.com>
49165         getopt-gnu: match recent glibc fixes and posix ruling
49166         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
49167         '+' handling, when requesting extensions.
49168         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
49169         'W;' handling.
49170         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
49171         * doc/posix-functions/getopt.texi (getopt): Document this.
49172         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
49173         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
49174         Likewise.
49176         getopt: merge bug fixes from glibc
49177         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
49178         diagnostics.  Honor '+:' correctly.  Reject ';'.
49180         getopt-posix: detect MacOS bug
49181         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
49182         optind when missing a required argument.
49183         * doc/posix-functions/getopt.texi (getopt): Document the bug.
49184         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
49185         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
49186         Likewise.
49188         getopt-posix: avoid spurious failure on Solaris
49189         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
49190         an indicator that setting optind=1 is sufficient for reset.
49192         getopt-posix: avoid spurious failure on FreeBSD
49193         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
49194         in POSIX mode, since the m4 test uses it.
49196         gnulib-tool: silence warning on BSD sh
49197         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
49199 2010-04-13  Jim Meyering  <meyering@redhat.com>
49201         doc: users.txt: GNU patch now uses gnulib
49202         * users.txt: Add patch.
49204 2010-04-12  Jim Meyering  <meyering@redhat.com>
49206         maint.mk: generate more concise timing data for syntax-check rules
49207         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
49208         " done" from each line that reports a syntax-check test duration.
49210 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
49212         git-version-gen: use "git update-index..." rather than "git status"
49213         * build-aux/git-version-gen: Use git update-index --refresh, not
49214         "git status".  With some versions of git, "git status" would fail
49215         to update the index and result in an unwarranted "-dirty" suffix.
49217 2010-04-11  Jim Meyering  <meyering@redhat.com>
49219         openat: correct formatting (no semantic change)
49220         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
49221         Suggested by Bruno Haible.
49223 2010-04-11  Bruno Haible  <bruno@clisp.org>
49225         Stricter declaration checking in testdirs.
49226         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
49227         If for_tests is true, augment AM_CPPFLAGS to define
49228         GNULIB_STRICT_CHECKING.
49229         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
49230         GNULIB_STRICT_CHECKING is defined, verify that the function is
49231         declared.
49233 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
49234             Bruno Haible  <bruno@clisp.org>
49236         libunistring: Improve configure output.
49237         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
49238         Don't say "consider installing GNU libunistring" when checking again
49239         with libiconv.
49241 2010-04-11  Bruno Haible  <bruno@clisp.org>
49243         libunistring: Correct value of $LTLIBUNISTRING.
49244         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
49245         correct the value of $LTLIBUNISTRING.
49247 2010-04-11  Bruno Haible  <bruno@clisp.org>
49249         havelib: Add static libraries to LIBS in the right order.
49250         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
49251         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
49253 2010-04-11  Bruno Haible  <bruno@clisp.org>
49255         libunistring: Detect libunistring also when it depends on libiconv.
49256         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
49257         the second AC_LIB_HAVE_LINKFLAGS invocation.
49259 2010-04-11  James Youngman  <jay@gnu.org>
49261         close-stream: declare local scalars to be "const"
49262         * lib/close-stream.c (close_stream): Make boolean variables const
49263         to document the fact that we set but do not change them.
49265 2010-04-11  Bruno Haible  <bruno@clisp.org>
49267         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
49269 2010-04-11  Jim Meyering  <meyering@redhat.com>
49271         maint.mk: don't include dist-check.mk
49272         * top/maint.mk: Remove bogus include directive.
49274         maint.mk: improve empty-line-at-EOF check
49275         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
49276         solution, rather than tail+Perl-based one.  The latter would read
49277         a few kilobytes from the end of each file, and did not handle empty
49278         files properly.
49280         maint.mk: print the elapsed time for each syntax-check rule
49281         * top/maint.mk (sc_m_rules_): Save start time in a file.
49282         (sc_z_rules_): New rules: remove temp file and print elapsed time.
49283         (local-check): Interpose the .z rules
49285 2010-04-11  Jim Meyering  <meyering@redhat.com>
49287         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
49288         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
49289         empty file with one that ends in an empty line.
49291 2010-04-10  Bruno Haible  <bruno@clisp.org>
49293         mkdir: Make it work on mingw64.
49294         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
49295         * lib/mkdir.c: Update comment.
49296         Reported by Roman Donchenko (Роман Донченко) <dxdragon@yandex.ru>.
49298 2010-04-10  Bruno Haible  <bruno@clisp.org>
49300         Don't override improved macro from newer autoconf.
49301         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
49302         autoconf >= 2.62.
49303         Reported by Joel E. Denny <jdenny@clemson.edu>.
49305 2010-04-10  Jim Meyering  <meyering@redhat.com>
49307         maint.mk: new syntax-check rule: prohibit empty lines at end of file
49308         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
49310         maint.mk: correct a diagnostic
49311         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
49312         in diagnostic; now use $prohibit.
49314 2010-04-10  Bruno Haible  <address@hidden>
49316         fchownat: Fix a C++ test error on Solaris 8.
49317         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
49318         the function does not exist.
49320 2010-04-10  Bruno Haible  <bruno@clisp.org>
49322         vasnprintf: Add more tests.
49323         * tests/test-vasnprintf-posix.c: Include <errno.h>.
49324         (test_function): Test converting an invalid wide string.
49326         vasnprintf: Correct handling of unconvertible wide string arguments.
49327         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
49328         VASNPRINTF.
49329         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
49330         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
49331         smaller than the expected maximum need for the directive. Set errno to
49332         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
49333         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
49334         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
49335         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
49336         * modules/vasnprintf (Files): Add m4/printf.m4.
49337         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
49339 2010-04-10  Bruno Haible  <bruno@clisp.org>
49341         vasnprintf: Fix crash in %ls directive.
49342         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
49343         string is passed as argument to %ls, with no precision and no width.
49344         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
49346 2010-04-10  Bruno Haible  <bruno@clisp.org>
49348         vasnprintf: Fix multiple test failures on mingw.
49349         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
49350         _snprintf, or snwprintf, not _snwprintf.
49352 2010-04-10  Bruno Haible  <bruno@clisp.org>
49354         write: Fix a C++ test error on mingw.
49355         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
49357 2010-04-10  Bruno Haible  <bruno@clisp.org>
49359         vasnprintf test: Reduce code duplication.
49360         * tests/test-vasnprintf.c (test_function): New function, extracted from
49361         test_vasnprintf.
49362         (test_vasnprintf, test_asnprintf): Invoke it.
49364 2010-04-10  Bruno Haible  <bruno@clisp.org>
49366         strnlen: Fix warning in C++ mode on MacOS X.
49367         * lib/string.in.h (strnlen): Use the modern idiom.
49368         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
49369         defining strnlen as a macro already in <config.h>.
49370         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
49371         REPLACE_STRNLEN.
49372         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
49373         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
49375 2010-04-08  James Youngman  <jay@gnu.org>
49377         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
49378         the example.
49380 2010-04-09  Jim Meyering  <meyering@redhat.com>
49382         maint.mk: print better diagnostic when there is no $(_hv_file)
49383         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
49384         announce that when $(_hv_file) (aka help-version) does not exist.
49386         init.sh: run tr in the "C" locale to avoid multibyte interpretation
49387         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
49388         not try to interpret its random input bytes.  Jarno Rajahalme reported
49389         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
49390         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
49391         (mktempd_): Likewise, just in case.
49393         ftruncate: add two years to projected module removal date: 2012
49394         * m4/ftruncate.m4: Adjust comments.
49396         ftruncate: mark module as obsolete; even MinGW provides it, now
49397         * modules/ftruncate (Status): Obsolete.
49398         (Notice): Say that.
49399         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
49400         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
49402 2010-04-08  Bruno Haible  <bruno@clisp.org>
49404         Fix side effects from tests-related modules.
49405         * modules/dprintf-posix (Comment): New section.
49406         * modules/fprintf-posix (Comment): Likewise.
49407         * modules/obstack-printf-posix (Comment): Likewise.
49408         * modules/printf-posix (Comment): Likewise.
49409         * modules/snprintf-posix (Comment): Likewise.
49410         * modules/sprintf-posix (Comment): Likewise.
49411         * modules/vasnprintf-posix (Comment): Likewise.
49412         * modules/vasprintf-posix (Comment): Likewise.
49413         * modules/vdprintf-posix (Comment): Likewise.
49414         * modules/vfprintf-posix (Comment): Likewise.
49415         * modules/vprintf-posix (Comment): Likewise.
49416         * modules/vsnprintf-posix (Comment): Likewise.
49417         * modules/vsprintf-posix (Comment): Likewise.
49418         * modules/xprintf-posix (Comment): Likewise.
49419         * modules/xvasprintf-posix (Comment): Likewise.
49420         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
49421         * modules/floorf-tests (Depends-on): Likewise.
49422         * modules/round-tests (Depends-on): Likewise.
49423         * modules/roundf-tests (Depends-on): Likewise.
49424         * modules/trunc-tests (Depends-on): Likewise.
49425         * modules/truncf-tests (Depends-on): Likewise.
49426         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
49427         'fprintf-posix' module is not present.
49428         * tests/test-floorf2.c (check): Likewise.
49429         * tests/test-trunc2.c (check): Likewise.
49430         * tests/test-truncf2.c (check): Likewise.
49431         * tests/test-round2.c (equal): Likewise.
49432         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
49434 2010-04-07  Karl Berry  <karl@gnu.org>
49436         * config/srclist.txt,
49437         * config/srclistvars.sh,
49438         * config/srclist-update: doc fixes.
49440 2010-04-07  Jim Meyering  <meyering@redhat.com>
49442         maint.mk: add a PATH crosschecking syntax-check rule
49443         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
49444         Useful if you use a test like the one in help-version (coreutils,
49445         diffutils, grep, gzip) that ensures $(VERSION) matches what is
49446         printed by prog --version.
49448 2010-04-06  Bruno Haible  <bruno@clisp.org>
49450         Fix link error on mingw.
49451         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
49452         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
49454 2010-04-06  Bruno Haible  <bruno@clisp.org>
49456         Assume rmdir exists.
49457         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
49459 2010-04-06  Giuseppe Scrivano  <gscrivano@gnu.org>
49461         doc: update users.txt
49462         * users.txt: Add gcal.
49464 2010-04-06  Jim Meyering  <meyering@redhat.com>
49466         init.sh: simply unset TMPDIR rather than risking env -i
49467         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
49468         although it probably works fine on all Unix-based systems, some
49469         systems (Cygwin?) cannot tolerate a totally cleared environment.
49470         Suggestion from Eric Blake.
49472 2010-04-06  Jim Meyering  <meyering@redhat.com>
49474         init.sh: portability fix: use env's POSIX-specified -i option not -u
49475         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
49476         than unportable env -u.  Solaris 5.11's env lacks support for -u.
49478 2010-04-05  Bruno Haible  <bruno@clisp.org>
49480         btowc: Work around Cygwin 1.7.2 bug.
49481         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
49482         does not map NUL to 0.
49483         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
49485 2010-04-05  Bruno Haible  <bruno@clisp.org>
49487         Make the multithread modules work on Cygwin 1.7.2.
49488         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
49489         imported symbols can be declared weak, so that it returns "no" on
49490         Cygwin 1.7.2.
49492 2010-04-05  Bruno Haible  <bruno@clisp.org>
49494         Use the module 'strncat'.
49495         * modules/unistr/u8-strncat (Depends-on): Add strncat.
49497         Tests for module 'strncat'.
49498         * modules/strncat-tests: New file.
49499         * tests/test-strncat.c: New file.
49501         New module 'strncat'.
49502         * lib/string.in.h (strncat): New declaration.
49503         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
49504         * m4/strncat.m4: New file, based on m4/memchr.m4.
49505         * modules/strncat: New file.
49506         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
49507         is declared.
49508         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
49509         REPLACE_STRNCAT.
49510         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
49511         REPLACE_STRNCAT.
49512         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
49513         module.
49514         * tests/test-string-c++.cc: Check signature of strncat.
49516 2010-04-05  Jim Meyering  <meyering@redhat.com>
49518         xstrtoumax-tests: convert to use init.sh
49519         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
49520         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
49521         Use Exit, not exit.
49522         Remove uses of $EXEEXT and "./" to run a program in the current dir.
49524         xstrtoimax-tests: convert to use init.sh
49525         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
49526         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
49527         Use Exit, not exit.
49528         Remove uses of $EXEEXT and "./" to run a program in the current dir.
49530 2010-04-05  Bruno Haible  <bruno@clisp.org>
49532         sys_socket: Avoid #define replacements in C++ mode.
49533         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
49534         warning to the function if possible, rather than #defining the symbol
49535         to a dysfunctional alias.
49537 2010-04-05  Bruno Haible  <bruno@clisp.org>
49539         fseeko: Fix C++ test error on mingw.
49540         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
49541         gl_FUNC_FSEEKO.
49542         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
49543         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
49544         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
49545         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
49547 2010-04-05  Bruno Haible  <bruno@clisp.org>
49549         duplocale: Improve test output.
49550         * tests/test-duplocale.c (main): Print reason for skipped test.
49552 2010-04-05  Bruno Haible  <bruno@clisp.org>
49554         Assume rmdir exists.
49555         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
49556         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
49558 2010-04-05  Bruno Haible  <bruno@clisp.org>
49560         Fix link error on Solaris 8 with cc.
49561         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
49563 2010-04-05  Bruno Haible  <bruno@clisp.org>
49565         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
49566         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
49568 2010-04-05  Bruno Haible  <bruno@clisp.org>
49570         vasprintf: Update documentation.
49571         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
49573 2010-04-05  Bruno Haible  <bruno@clisp.org>
49575         ptsname: Improve test.
49576         * tests/test-ptsname.c (main): Also try the various master names of BSD
49577         systems.
49579 2010-04-05  Bruno Haible  <bruno@clisp.org>
49581         memchr: Avoid a possible C++ test error.
49582         * lib/string.in.h (memchr): Provide declaration if function is missing.
49583         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
49584         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
49585         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
49586         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
49588 2010-04-05  Bruno Haible  <bruno@clisp.org>
49590         strtok_r: Improve idiom.
49591         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
49592         AC_LIBOBJ is used.
49594 2010-04-05  Bruno Haible  <bruno@clisp.org>
49596         strdup: Improve idiom.
49597         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
49598         AC_LIBOBJ is used.
49599         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
49600         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
49601         when AC_LIBOBJ is used.
49603 2010-04-05  Bruno Haible  <bruno@clisp.org>
49605         mbsinit, mbrtowc, wcrtomb: Improve idioms.
49606         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
49607         don't set REPLACE_MBSINIT to 1.
49608         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
49609         don't set REPLACE_MBRTOWC to 1.
49610         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
49611         exist, don't set REPLACE_MBSRTOWCS to 1.
49612         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
49613         exist, don't set REPLACE_MBSNRTOWCS to 1.
49614         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
49615         don't set REPLACE_WCRTOMB to 1.
49616         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
49617         exist, don't set REPLACE_WCSRTOMBS to 1.
49618         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
49619         exist, don't set REPLACE_WCSNRTOMBS to 1.
49621 2010-04-05  Bruno Haible  <bruno@clisp.org>
49623         ldexpl: Improve idiom.
49624         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
49625         make sure to set HAVE_DECL_LDEXPL to 0.
49627 2010-04-05  Jim Meyering  <meyering@redhat.com>
49629         xstrtol-tests: convert to use init.sh
49630         * modules/xstrtol-tests (Files): Add tests/init.sh.
49631         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
49632         Use Exit, not exit.
49633         Remove uses of $EXEEXT and "./" to run a program in the current dir.
49635         atexit-tests: convert to use init.sh
49636         * modules/atexit-tests (Files): Add tests/init.sh.
49637         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
49638         Use Exit, not exit.
49639         Remove uses of $EXEEXT and "./" to run a program in the current dir.
49641         init.sh: fix typo
49642         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
49644         init.sh: make it easier for a test script to write to the tty, ...
49645         when using automake's parallel-tests mode.
49646         * tests/init.sh (stderr_fileno_): Define overridable variable.
49647         (warn_): New function, to use it.
49648         (fail_, skip_, framework_failure_): Use warn_.
49650 2010-04-04  Bruno Haible  <bruno@clisp.org>
49652         btowc: Avoid warning.
49653         * lib/btowc.c: Include <stdlib.h>.
49654         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
49656 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
49657             Bruno Haible  <bruno@clisp.org>
49659         wchar: Port to NetBSD 1.5.
49660         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
49661         * lib/wctype.in.h (WEOF): Likewise.
49663 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
49664             Bruno Haible  <bruno@clisp.org>
49666         Port extended stdio to NetBSD 1.5.
49667         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
49668         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
49669         older.
49671 2010-04-04  Bruno Haible  <bruno@clisp.org>
49673         string: Remove unused substitution.
49674         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
49675         HAVE_DECL_STRERROR.
49676         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
49678 2010-04-04  Bruno Haible  <bruno@clisp.org>
49680         strtod: Avoid a possible C++ test error.
49681         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
49682         set REPLACE_STRTOD.
49684 2010-04-04  Bruno Haible  <bruno@clisp.org>
49686         strerror: Update documentation.
49687         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
49689 2010-04-04  Bruno Haible  <bruno@clisp.org>
49691         stdio: Fix some C++ test errors on Solaris 8 with GCC.
49692         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
49693         _GL_CXXALIAS_SYS_CAST.
49695 2010-04-04  Bruno Haible  <bruno@clisp.org>
49697         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
49698         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
49699         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
49700         REPLACE_FREXPL to 1.
49701         * doc/posix-functions/frexpl.texi: Update documentation.
49703 2010-04-04  Bruno Haible  <bruno@clisp.org>
49705         math: Fix some C++ test errors on Solaris 8 and Cygwin.
49706         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
49708 2010-04-04  Bruno Haible  <bruno@clisp.org>
49710         Implement nanosleep for native Windows.
49711         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
49713 2010-04-04  Bruno Haible  <bruno@clisp.org>
49715         math: Fix some C++ test errors on Solaris 8.
49716         * lib/math.in.h (truncf, trunc): Use simpler idiom.
49718 2010-04-04  Bruno Haible  <bruno@clisp.org>
49720         math: Fix some C++ test errors on Cygwin.
49721         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
49722         truncl): Provide declaration if the system does not have it.
49723         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
49724         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
49725         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
49726         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
49727         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
49728         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
49729         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
49730         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
49731         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
49732         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
49733         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
49734         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
49735         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
49736         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
49737         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
49738         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
49739         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
49740         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
49741         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
49742         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
49743         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
49744         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
49746 2010-04-04  Bruno Haible  <bruno@clisp.org>
49748         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
49749         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
49750         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
49751         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
49752         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
49753         * m4/isinf.m4 (gl_ISINF): Likewise.
49754         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
49756 2010-04-04  Bruno Haible  <bruno@clisp.org>
49758         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
49759         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
49761 2010-04-04  Bruno Haible  <bruno@clisp.org>
49763         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
49764         * modules/tmpfile (configure.ac): Update.
49766         tmpfile: Fix C++ test error on mingw.
49767         * lib/stdio.in.h (tmpfile): New declaration.
49768         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
49769         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
49770         * modules/tmpfile (Depends-on): Add stdio.
49771         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
49772         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
49773         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
49774         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
49775         REPLACE_TMPFILE.
49776         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
49778 2010-04-04  Bruno Haible  <bruno@clisp.org>
49780         ioctl: Fix C++ test error on mingw.
49781         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
49782         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
49783         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
49785 2010-04-03  Bruno Haible  <bruno@clisp.org>
49787         wcwidth: Fix C++ test error on mingw.
49788         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
49789         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
49790         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
49792 2010-04-03  Bruno Haible  <bruno@clisp.org>
49794         nanosleep: Fix C++ test error on mingw.
49795         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
49796         * lib/time.in.h (nanosleep): Use modern idiom.
49797         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
49798         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
49799         REPLACE_NANOSLEEP to 1.
49800         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
49801         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
49803 2010-04-03  Bruno Haible  <bruno@clisp.org>
49805         strptime: Fix C++ test error on mingw.
49806         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
49807         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
49808         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
49809         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
49810         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
49811         not REPLACE_STRPTIME.
49812         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
49813         REPLACE_STRPTIME.
49815 2010-04-03  Bruno Haible  <bruno@clisp.org>
49817         timegm: Fix C++ test error on mingw.
49818         * lib/time.in.h (timegm): Use modern idiom.
49819         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
49820         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
49821         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
49822         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
49824 2010-04-03  Bruno Haible  <bruno@clisp.org>
49826         timegm: Assume declaration if function exists.
49827         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
49828         if it exists. Don't clobber ac_cv_func_timegm.
49830 2010-04-03  Bruno Haible  <bruno@clisp.org>
49832         time_r: Fix C++ test error on mingw.
49833         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
49834         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
49835         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
49836         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
49837         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
49839 2010-04-03  Bruno Haible  <bruno@clisp.org>
49841         time_r: Minor updates.
49842         * modules/time_r (Description): Mention the provided functions.
49843         * lib/time_r.c: Don't include <string.h>.
49844         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
49845         * doc/posix-functions/localtime_r.texi: Likewise.
49847 2010-04-03  Bruno Haible  <bruno@clisp.org>
49849         time: Fix regression introduced on 2010-03-08.
49850         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
49851         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
49853 2010-04-03  Jim Meyering  <meyering@redhat.com>
49855         maint.mk: don't silently disable project-specific syntax-check rules
49856         * top/maint.mk (_prohibit_regexp): Define, to help people realize
49857         that they need to convert their project-specific syntax-check rules
49858         to use the new _sc_search_regexp.
49860 2010-04-03  Bruno Haible  <bruno@clisp.org>
49862         fchdir: Fix regression introduced on 2010-03-08.
49863         * lib/unistd.in.h (fchdir): Fix declaration.
49864         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
49865         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
49866         REPLACE_FCHDIR.
49867         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
49868         REPLACE_FCHDIR.
49870 2010-04-03  Bruno Haible  <bruno@clisp.org>
49872         getpagesize: Fix C++ test error on mingw.
49873         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
49874         system does not declare the function.
49875         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
49876         declared.
49877         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
49878         HAVE_DECL_GETPAGESIZE.
49879         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
49881 2010-04-03  Bruno Haible  <bruno@clisp.org>
49883         stdio: Make C++ tests work on mingw.
49884         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
49885         does not declare the function.
49887 2010-04-03  Bruno Haible  <bruno@clisp.org>
49889         ftello: Fix C++ test error on mingw.
49890         * lib/stdio.in.h (ftello): Use modern idiom.
49891         * lib/ftello.c (ftello): Renamed from rpl_ftello.
49892         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
49893         is missing and that it needs to be replaced.
49894         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
49895         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
49896         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
49898 2010-04-03  Bruno Haible  <bruno@clisp.org>
49900         fseeko: Fix C++ test error on mingw.
49901         * lib/stdio.in.h (fseeko): Use modern idiom.
49902         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
49903         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
49904         is missing and that it needs to be replaced.
49905         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
49906         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
49907         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
49909 2010-04-03  Bruno Haible  <bruno@clisp.org>
49911         mkstemp: Fix C++ test error on mingw.
49912         * lib/stdlib.in.h (mkstemp): Use modern idiom.
49913         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
49914         function is missing and that it needs to be replaced.
49915         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
49916         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
49918 2010-04-03  Bruno Haible  <bruno@clisp.org>
49920         stpncpy: Fix C++ test error on mingw.
49921         * lib/string.in.h (stpncpy): Use modern idiom.
49922         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
49923         function is missing and that it needs to be replaced.
49924         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
49925         REPLACE_STPNCPY.
49926         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
49928 2010-04-03  Bruno Haible  <bruno@clisp.org>
49930         sys_stat: Fix C++ test error on mingw.
49931         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
49932         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
49934 2010-04-03  Bruno Haible  <bruno@clisp.org>
49936         pty: Update doc.
49937         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
49939 2010-04-03  Bruno Haible  <bruno@clisp.org>
49941         unistd: Fix C++ test error on mingw.
49942         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
49944 2010-04-03  Bruno Haible  <bruno@clisp.org>
49946         Update doc regarding mingw.
49947         * doc/glibc-functions/openpty.texi: Update regarding mingw.
49948         * doc/glibc-functions/login_tty.texi: Likewise.
49949         * doc/glibc-functions/forkpty.texi: Likewise.
49951 2010-04-03  Bruno Haible  <bruno@clisp.org>
49953         stdlib: Avoid compilation failure of c-strtold on mingw.
49954         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
49956 2010-04-03  Bruno Haible  <bruno@clisp.org>
49958         locale: Make C++ tests work on Cygwin and mingw.
49959         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
49960         cannot provide the function.
49961         Reported by Simon Josefsson.
49963 2010-04-03  Bruno Haible  <bruno@clisp.org>
49965         localename: Port to MacOS X 10.6.
49966         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
49967         memory layout of the locales in MacOS X 10.6 as well.
49968         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
49970 2010-04-02  Bruno Haible  <bruno@clisp.org>
49972         gnulib-tool: Ensure that long-running tests are executed last.
49973         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
49974         running tests after the one for the other tests.
49976 2010-04-02  Bruno Haible  <bruno@clisp.org>
49978         gnulib-tool: Ensure the tests in the main directory are executed first.
49979         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
49980         start with the current directory.
49982 2010-04-02  Bruno Haible  <bruno@clisp.org>
49984         Tests for module 'havelib', moved here from GNU gettext.
49985         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
49986         modifications.
49987         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
49988         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
49989         with modifications.
49990         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
49991         modifications.
49992         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
49993         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
49994         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
49995         with modifications.
49996         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
49997         with modifications.
49998         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
49999         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
50000         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
50001         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
50002         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
50003         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
50004         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
50005         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
50006         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
50007         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
50008         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
50009         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
50010         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
50011         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
50012         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
50013         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
50014         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
50015         with modifications.
50016         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
50017         with modifications.
50018         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
50019         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
50020         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
50021         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
50022         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
50023         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
50024         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
50025         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
50026         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
50027         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
50028         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
50029         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
50030         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
50031         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
50032         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
50033         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
50034         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
50035         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
50036         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
50037         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
50038         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
50039         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
50040         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
50041         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
50042         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
50043         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
50044         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
50045         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
50046         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
50047         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
50048         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
50049         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
50050         * tests/havelib/rpathx/rpathx.c: New file, from
50051         gettext/autoconf-lib-link.
50052         * tests/havelib/rpathx/Makefile.am: New file, from
50053         gettext/autoconf-lib-link.
50054         * tests/havelib/rpathx/configure.ac: New file, from
50055         gettext/autoconf-lib-link with modifications.
50056         * tests/havelib/rpathy/rpathy.c: New file, from
50057         gettext/autoconf-lib-link.
50058         * tests/havelib/rpathy/Makefile.am: New file, from
50059         gettext/autoconf-lib-link.
50060         * tests/havelib/rpathy/configure.ac: New file, from
50061         gettext/autoconf-lib-link with modifications.
50062         * tests/havelib/rpathz/rpathz.c: New file, from
50063         gettext/autoconf-lib-link.
50064         * tests/havelib/rpathz/Makefile.am: New file, from
50065         gettext/autoconf-lib-link.
50066         * tests/havelib/rpathz/configure.ac: New file, from
50067         gettext/autoconf-lib-link with modifications.
50068         * tests/havelib/rpathlx/usex.c: New file, from
50069         gettext/autoconf-lib-link.
50070         * tests/havelib/rpathlx/Makefile.am: New file, from
50071         gettext/autoconf-lib-link.
50072         * tests/havelib/rpathlx/configure.ac: New file, from
50073         gettext/autoconf-lib-link with modifications.
50074         * tests/havelib/rpathly/usey.c: New file, from
50075         gettext/autoconf-lib-link.
50076         * tests/havelib/rpathly/Makefile.am: New file, from
50077         gettext/autoconf-lib-link.
50078         * tests/havelib/rpathly/configure.ac: New file, from
50079         gettext/autoconf-lib-link with modifications.
50080         * tests/havelib/rpathlz/usez.c: New file, from
50081         gettext/autoconf-lib-link.
50082         * tests/havelib/rpathlz/Makefile.am: New file, from
50083         gettext/autoconf-lib-link.
50084         * tests/havelib/rpathlz/configure.ac: New file, from
50085         gettext/autoconf-lib-link with modifications.
50086         * tests/havelib/rpathlyx/usey.c: New file, from
50087         gettext/autoconf-lib-link.
50088         * tests/havelib/rpathlyx/Makefile.am: New file, from
50089         gettext/autoconf-lib-link.
50090         * tests/havelib/rpathlyx/configure.ac: New file, from
50091         gettext/autoconf-lib-link with modifications.
50092         * tests/havelib/rpathlzyx/usez.c: New file, from
50093         gettext/autoconf-lib-link.
50094         * tests/havelib/rpathlzyx/Makefile.am: New file, from
50095         gettext/autoconf-lib-link.
50096         * tests/havelib/rpathlzyx/configure.ac: New file, from
50097         gettext/autoconf-lib-link with modifications.
50098         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
50099         with modifications.
50101 2010-04-02  Bruno Haible  <bruno@clisp.org>
50103         gnulib-tool: Create distributed built sources also for the tests.
50104         * gnulib-tool (func_create_testdir): Also generate distributed built
50105         sources in the tests directory.
50107 2010-04-02  Bruno Haible  <bruno@clisp.org>
50109         gnulib-tool: Obey user's environment variables.
50110         * gnulib-tool (func_create_testdir): When creating built sources,
50111         respect the environment variables for autoconf, automake, etc. given by
50112         the user.
50114 2010-04-02  Bruno Haible  <bruno@clisp.org>
50116         gnulib-tool: Provide the value of --m4-base to modules.
50117         * gnulib-tool (func_import, func_create_testdir): Emit a definition
50118         of gl_m4_base.
50120 2010-04-02  Eric Blake  <eblake@redhat.com>
50122         maint.mk: fix some fallout
50123         * NEWS: Document the incompatible change, and its effect on cfg.mk.
50124         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
50126 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
50128         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
50129         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
50130         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
50131         (sc_cast_of_x_alloc_return_value): Likewise.
50132         (sc_cast_of_alloca_return_value): Likewise.
50133         (sc_space_tab): Likewise.
50134         (sc_prohibit_atoi_atof): Likewise.
50135         (sc_prohibit_magic_number_exit): Likewise.
50136         (sc_error_exit_success): Likewise.
50137         (sc_file_system): Likewise.
50138         (sc_prohibit_have_config_h): Likewise.
50139         (sc_require_config_h): Likewise.
50140         (sc_prohibit_HAVE_MBRTOWC): Likewise.
50141         (sc_obsolete_symbols): Likewise.
50142         (sc_changelog): Likewise.
50143         (sc_program_name): Likewise.
50144         (sc_the_the): Likewise.
50145         (sc_trailing_blank): Likewise.
50146         (sc_two_space_separator_in_usage): Likewise.
50147         (sc_useless_cpp_parens): Likewise.
50148         (sc_GPL_version): Likewise.
50149         (sc_GFDL_version): Likewise.
50150         (sc_texinfo_acronym): Likewise.
50151         (sc_prohibit_cvs_keyword): Likewise.
50152         (sc_prohibit_stat_st_blocks): Likewise.
50153         (sc_prohibit_S_IS_definition): Likewise.
50154         (sc_redundant_const): Likewise.
50155         (sc_makefile_TAB_only_indentation): Likewise.
50156         (sc_m4_quote_check): Likewise.
50157         (sc_makefile_path_separator_check): Likewise.
50158         (sc_copyright_check): Likewise.
50159         (sc_Wundef_boolean): Likewise.
50160         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
50162         maint.mk: match 0 or more whitespace-before-function-call '('
50163         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
50164         that have zero or two-and-more spaces between the function name
50165         and the open parenthesis.
50166         (sc_error_message_warn_fatal): Likewise.
50167         (sc_error_message_uppercase): Likewise.
50168         (sc_error_message_period): Likewise.
50170 2010-03-31  Eric Blake  <eblake@redhat.com>
50172         maint.mk: check for [ as well as test
50173         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
50174         Based on a libvirt report by Matthias Bolte.
50176         gnumakefile: don't squelch _version output
50177         * top/GNUmakefile (_version): Create one-shot dependency rather
50178         than using $(shell) when version must be regenerated.
50179         (_autoreconf): Run verbosely, by default.
50181         sys_time: avoid compiler warnings
50182         * lib/sys_time.in.h (includes): Ensure gcc pragma is
50183         unconditional, fixing regression from 2010-03-29.
50184         Reported by Simon Josefsson.
50186 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
50188         maint.mk: s/_header_without_use/_sc_header_without_use/
50189         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
50190         (sc_prohibit_assert_without_use): Use the new name.
50191         (sc_prohibit_close_stream_without_use): Likewise.
50192         (sc_prohibit_getopt_without_use): Likewise.
50193         (sc_prohibit_quotearg_without_use): Likewise.
50194         (sc_prohibit_quote_without_use): Likewise.
50195         (sc_prohibit_long_options_without_use): Likewise.
50196         (sc_prohibit_inttostr_without_use): Likewise.
50197         (sc_prohibit_ignore_value_without_use): Likewise.
50198         (sc_prohibit_error_without_use): Likewise.
50199         (sc_prohibit_xalloc_without_use): Likewise.
50200         (sc_prohibit_hash_without_use): Likewise.
50201         (sc_prohibit_hash_pjw_without_use): Likewise.
50202         (sc_prohibit_safe_read_without_use): Likewise.
50203         (sc_prohibit_argmatch_without_use): Likewise.
50204         (sc_prohibit_canonicalize_without_use): Likewise.
50205         (sc_prohibit_root_dev_ino_without_use): Likewise.
50206         (sc_prohibit_openat_without_use): Likewise.
50207         (sc_prohibit_c_ctype_without_use): Likewise.
50208         (sc_prohibit_signal_without_use): Likewise.
50209         (sc_prohibit_intprops_without_use): Likewise.
50211 2010-03-30  Eric Blake  <eblake@redhat.com>
50213         maint: improve module indicators
50214         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
50215         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
50216         columns, and avoid extra macro expansion.
50218         fdopendir: work around FreeBSD bug
50219         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
50220         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
50221         * modules/dirent (Makefile.am): Substitute it.
50222         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
50223         declaration.
50224         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
50225         fix.
50226         Reported by Christian Weisgerber <naddy@mips.inka.de>.
50228 2010-03-29  Bruno Haible  <bruno@clisp.org>
50230         Emit #pragma system_header after the inclusion guard, not before.
50231         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
50232         guard that spans the entire file, not before. This enables an
50233         optimization in GCC's preprocessor.
50234         * lib/ctype.in.h: Likewise.
50235         * lib/dirent.in.h: Likewise.
50236         * lib/errno.in.h: Likewise.
50237         * lib/float.in.h: Likewise.
50238         * lib/getopt.in.h: Likewise.
50239         * lib/iconv.in.h: Likewise.
50240         * lib/langinfo.in.h: Likewise.
50241         * lib/locale.in.h: Likewise.
50242         * lib/math.in.h: Likewise.
50243         * lib/netdb.in.h: Likewise.
50244         * lib/netinet_in.in.h: Likewise.
50245         * lib/pty.in.h: Likewise.
50246         * lib/sched.in.h: Likewise.
50247         * lib/se-selinux.in.h: Likewise.
50248         * lib/search.in.h: Likewise.
50249         * lib/spawn.in.h: Likewise.
50250         * lib/stdarg.in.h: Likewise.
50251         * lib/stdint.in.h: Likewise.
50252         * lib/string.in.h: Likewise.
50253         * lib/strings.in.h: Likewise.
50254         * lib/sys_file.in.h: Likewise.
50255         * lib/sys_ioctl.in.h: Likewise.
50256         * lib/sys_time.in.h: Likewise.
50257         * lib/sys_times.in.h: Likewise.
50258         * lib/sys_utsname.in.h: Likewise.
50259         * lib/sys_wait.in.h: Likewise.
50260         * lib/sysexits.in.h: Likewise.
50261         * lib/wctype.in.h: Likewise.
50263 2010-03-28  James Youngman  <jay@gnu.org>
50265         save-cwd: don't leak a file descriptor when the caller execs.
50266         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
50267         saved file descriptor.
50268         * modules/save-cwd (Depends-on): Depend on cloexec.
50270 2010-03-29  Bruno Haible  <bruno@clisp.org>
50272         Remove vestiges of fts-lgpl module.
50273         * lib/fts_.h: Assume GNULIB_FTS is 1.
50274         * lib/fts.c: Likewise.
50275         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
50277 2010-03-28  Bruno Haible  <bruno@clisp.org>
50279         Fix definition of tests witness macro.
50280         * gnulib-tool (func_import): Fix definition of witness macro.
50282 2010-03-28  Bruno Haible  <bruno@clisp.org>
50284         Fix ioctl's protoype on glibc systems.
50285         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
50286         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
50287         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
50288         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
50289         signature. If not, arrange to replace the ioctl function.
50290         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
50291         REPLACE_IOCTL.
50292         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
50293         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
50294         Reported by Ludovic Courtès <ludo@gnu.org>.
50296 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
50298         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
50299         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
50300         made it so grep -r --include=GLOB* ... did not work.
50302 2010-03-26  Jim Meyering  <meyering@redhat.com>
50303             Eric Blake  <eblake@redhat.com>
50305         maint.mk: prohibit use of test's -o and -a operators
50306         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
50308 2010-03-28  Bruno Haible  <bruno@clisp.org>
50310         Remove unused GNULIB_XYZ macro definitions.
50311         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
50312         invocation.
50314 2010-03-28  Bruno Haible  <bruno@clisp.org>
50316         Mark privileged tests modules.
50317         * modules/idpriv-drop-tests (Status): New section.
50318         * modules/idpriv-droptemp-tests (Status): New section.
50320 2010-03-28  Bruno Haible  <bruno@clisp.org>
50322         Split C++ tests into separate tests modules.
50323         * modules/dirent-c++-tests: New file, extracted from
50324         modules/dirent-tests.
50325         * modules/dirent-tests: Depend on it.
50326         * modules/fcntl-h-c++-tests: New file, extracted from
50327         modules/fcntl-h-tests.
50328         * modules/fcntl-h-tests: Depend on it.
50329         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
50330         * modules/glob-tests: Depend on it.
50331         * modules/iconv-h-c++-tests: New file, extracted from
50332         modules/iconv-h-tests.
50333         * modules/iconv-h-tests: Depend on it.
50334         * modules/langinfo-c++-tests: New file, extracted from
50335         modules/langinfo-tests.
50336         * modules/langinfo-tests: Depend on it.
50337         * modules/locale-c++-tests: New file, extracted from
50338         modules/locale-tests.
50339         * modules/locale-tests: Depend on it.
50340         * modules/math-c++-tests: New file, extracted from modules/math-tests.
50341         * modules/math-tests: Depend on it.
50342         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
50343         * modules/pty-tests: Depend on it.
50344         * modules/search-c++-tests: New file, extracted from
50345         modules/search-tests.
50346         * modules/search-tests: Depend on it.
50347         * modules/signal-c++-tests: New file, extracted from
50348         modules/signal-tests.
50349         * modules/signal-tests: Depend on it.
50350         * modules/spawn-c++-tests: New file, extracted from
50351         modules/spawn-tests.
50352         * modules/spawn-tests: Depend on it.
50353         * modules/stdio-c++-tests: New file, extracted from
50354         modules/stdio-tests.
50355         * modules/stdio-tests: Depend on it.
50356         * modules/stdlib-c++-tests: New file, extracted from
50357         modules/stdlib-tests.
50358         * modules/stdlib-tests: Depend on it.
50359         * modules/string-c++-tests: New file, extracted from
50360         modules/string-tests.
50361         * modules/string-tests: Depend on it.
50362         * modules/sys_ioctl-c++-tests: New file, extracted from
50363         modules/sys_ioctl-tests.
50364         * modules/sys_ioctl-tests: Depend on it.
50365         * modules/sys_select-c++-tests: New file, extracted from
50366         modules/sys_select-tests.
50367         * modules/sys_select-tests: Depend on it.
50368         * modules/sys_socket-c++-tests: New file, extracted from
50369         modules/sys_socket-tests.
50370         * modules/sys_socket-tests: Depend on it.
50371         * modules/sys_stat-c++-tests: New file, extracted from
50372         modules/sys_stat-tests.
50373         * modules/sys_stat-tests: Depend on it.
50374         * modules/sys_time-c++-tests: New file, extracted from
50375         modules/sys_time-tests.
50376         * modules/sys_time-tests: Depend on it.
50377         * modules/time-c++-tests: New file, extracted from modules/time-tests.
50378         * modules/time-tests: Depend on it.
50379         * modules/unistd-c++-tests: New file, extracted from
50380         modules/unistd-tests.
50381         * modules/unistd-tests: Depend on it.
50382         * modules/wchar-c++-tests: New file, extracted from
50383         modules/wchar-tests.
50384         * modules/wchar-tests: Depend on it.
50385         * modules/wctype-c++-tests: New file, extracted from
50386         modules/wctype-tests.
50387         * modules/wctype-tests: Depend on it.
50388         Reported by Simon Josefsson.
50390 2010-03-28  Bruno Haible  <bruno@clisp.org>
50392         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
50393         * gnulib-tool (func_exists_module): New function, extracted from
50394         func_verify_module.
50395         (func_verify_module): Use it.
50396         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
50397         'foo' only if 'foo' exists.
50398         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
50399         module.
50401 2010-03-28  Bruno Haible  <bruno@clisp.org>
50403         gnulib-tool: Add support for special categories of tests.
50404         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
50405         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
50406         (func_usage): Document them.
50407         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
50408         inc_unportable_tests, inc_all_tests): New variables.
50409         (func_acceptable): Consider these variables.
50410         (func_modules_transitive_closure): Make it work when the 'Status' field
50411         consists of multiple words.
50412         (func_import): Store and restore the values of inc_cxx_tests,
50413         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
50414         inc_all_tests in gnulib-comp.m4.
50415         (func_create_testdir): Set inc_all_tests to true.
50416         * doc/gnulib.texi (Extra tests modules): New section.
50417         Suggested by Jim Meyering.
50419 2010-03-28  Bruno Haible  <bruno@clisp.org>
50421         ansi-c++-opt: Allow turning off the C++ build by default.
50422         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
50423         gl_CXX_CHOICE_DEFAULT_NO is defined.
50424         Requested by Eric Blake.
50426 2010-03-28  Bruno Haible  <bruno@clisp.org>
50428         unistd: Avoid #define replacements in C++ mode.
50429         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
50430         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
50431         setsockopt, shutdown, select): In C++, attach a warning to the function
50432         if possible, rather than #defining the symbol to a dysfunctional alias.
50433         Reported by John W. Eaton <jwe@gnu.org>.
50435 2010-03-28  Bruno Haible  <bruno@clisp.org>
50437         Fix link errors on mingw.
50438         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
50439         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
50440         $(LIBSOCKET).
50441         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
50442         $(LIBSOCKET).
50444 2010-03-28  Bruno Haible  <bruno@clisp.org>
50445             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50447         lib-ignore: Determine different options for different compilers.
50448         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
50449         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
50450         Add comments.
50451         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
50452         * NEWS: Mention the change.
50454 2010-03-27  Bruno Haible  <bruno@clisp.org>
50456         Remove unused GNULIB_XYZ macro definitions.
50457         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
50458         * modules/fseek (configure.ac): Likewise.
50459         * modules/ioctl (configure.ac): Likewise.
50460         * modules/open (configure.ac): Likewise.
50461         * modules/stdlib-safer (configure.ac): Likewise.
50463 2010-03-27  Bruno Haible  <bruno@clisp.org>
50465         Add a remark about certain modules.
50466         * modules/malloc (Comment): New section.
50467         * modules/realloc (Comment): Likewise.
50468         * modules/sigpipe (Comment): Likewise.
50470 2010-03-27  Bruno Haible  <bruno@clisp.org>
50472         Resolve conflict between the two kinds of module indicators.
50473         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
50474         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
50475         * modules/canonicalize (configure.ac): Invoke
50476         gl_MODULE_INDICATOR_FOR_TESTS.
50477         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
50478         GNULIB_XYZ.
50479         * tests/test-dirent-c++.cc: Likewise.
50480         * tests/test-dirent-safer.c: Likewise.
50481         * tests/test-dup2.c: Likewise.
50482         * tests/test-fchdir.c: Likewise.
50483         * tests/test-fcntl-h-c++.cc: Likewise.
50484         * tests/test-getopt.c: Likewise.
50485         * tests/test-getopt.h: Likewise.
50486         * tests/test-langinfo-c++.cc: Likewise.
50487         * tests/test-locale-c++.cc: Likewise.
50488         * tests/test-math-c++.cc: Likewise.
50489         * tests/test-pty-c++.cc: Likewise.
50490         * tests/test-search-c++.cc: Likewise.
50491         * tests/test-signal-c++.cc: Likewise.
50492         * tests/test-spawn-c++.cc: Likewise.
50493         * tests/test-stdio-c++.cc: Likewise.
50494         * tests/test-stdlib-c++.cc: Likewise.
50495         * tests/test-string-c++.cc: Likewise.
50496         * tests/test-sys_ioctl-c++.cc: Likewise.
50497         * tests/test-sys_select-c++.cc: Likewise.
50498         * tests/test-sys_socket-c++.cc: Likewise.
50499         * tests/test-sys_stat-c++.cc: Likewise.
50500         * tests/test-sys_time-c++.cc: Likewise.
50501         * tests/test-time-c++.cc: Likewise.
50502         * tests/test-unistd-c++.cc: Likewise.
50503         * tests/test-wchar-c++.cc: Likewise.
50504         * tests/uninorm/test-u8-nfc.c: Likewise.
50505         * tests/uninorm/test-u8-nfd.c: Likewise.
50506         * tests/uninorm/test-u8-nfkc.c: Likewise.
50507         * tests/uninorm/test-u8-nfkd.c: Likewise.
50508         * tests/uninorm/test-u16-nfc.c: Likewise.
50509         * tests/uninorm/test-u16-nfd.c: Likewise.
50510         * tests/uninorm/test-u16-nfkc.c: Likewise.
50511         * tests/uninorm/test-u16-nfkd.c: Likewise.
50512         * tests/uninorm/test-u32-nfc.c: Likewise.
50513         * tests/uninorm/test-u32-nfc-big.c: Likewise.
50514         * tests/uninorm/test-u32-nfd.c: Likewise.
50515         * tests/uninorm/test-u32-nfd-big.c: Likewise.
50516         * tests/uninorm/test-u32-nfkc.c: Likewise.
50517         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
50518         * tests/uninorm/test-u32-nfkd.c: Likewise.
50519         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
50520         * tests/uninorm/test-u32-normalize-big.c: Likewise.
50522 2010-03-27  Bruno Haible  <bruno@clisp.org>
50524         Distinguish two kinds of module indicators.
50525         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
50526         gl_MODULE_INDICATOR.
50527         (gl_MODULE_INDICATOR): New macro.
50528         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
50529         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
50530         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
50531         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
50532         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
50533         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
50534         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
50535         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
50536         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
50537         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
50538         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
50539         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
50540         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
50541         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
50542         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
50543         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
50544         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
50545         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
50546         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
50547         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
50548         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
50549         * modules/cloexec (configure.ac): Likewise.
50550         * modules/getopt-gnu (configure.ac): Likewise.
50551         * modules/uninorm/u8-normalize (configure.ac): Likewise.
50552         * modules/uninorm/u16-normalize (configure.ac): Likewise.
50553         * modules/uninorm/u32-normalize (configure.ac): Likewise.
50554         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
50556 2010-03-27  Bruno Haible  <bruno@clisp.org>
50558         New module description field 'Comment'.
50559         * gnulib-tool: New option --extract-comment.
50560         (func_usage): Document it.
50561         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
50562         (func_get_comment): New function.
50563         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
50565 2010-03-27  Bruno Haible  <bruno@clisp.org>
50567         Addendum to 2010-02-07 commit.
50568         * gnulib-tool (func_usage): Document --extract-applicability option.
50570 2010-03-27  Bruno Haible  <bruno@clisp.org>
50572         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
50573         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
50574         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
50575         rather than link errors.
50577 2010-03-27  Bruno Haible  <bruno@clisp.org>
50579         Avoid side effects from tests-related modules on the compilation of lib.
50580         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
50581         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
50582         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
50583         parameter. Emit into AM_CPPFLAGS a definition of the designated C
50584         macro.
50585         (func_import): Define a witness macro. Assign it a value that depends
50586         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
50587         tests-related modules.
50588         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
50589         Reported by Jim Meyering.
50591 2010-03-27  Bruno Haible  <bruno@clisp.org>
50593         Factorize common .m4 code.
50594         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
50595         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
50596         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
50597         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
50598         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
50599         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
50600         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
50601         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
50602         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
50603         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
50604         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
50605         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
50606         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
50607         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
50608         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
50609         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
50610         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
50611         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
50612         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
50613         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
50614         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
50615         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
50616         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
50617         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
50618         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
50619         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
50620         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
50621         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
50622         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
50623         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
50624         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
50625         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
50627 2010-03-27  Bruno Haible  <bruno@clisp.org>
50629         Fix a compilation error on Cygwin with g++ >= 4.3.
50630         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
50631         if it is undefined or if we alias it to chmod.
50632         (lstat): Don't warn about the use of this function if it is undefined
50633         or if we alias it to stat.
50634         Reported by Simon Josefsson.
50636 2010-03-27  Bruno Haible  <bruno@clisp.org>
50638         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
50639         * modules/getlogin (configure.ac): Update.
50641         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
50642         * modules/getlogin_r (configure.ac): Update.
50644         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
50645         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
50646         * modules/inet_ntop (configure.ac): Update.
50648         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
50649         * modules/inet_pton (configure.ac): Update.
50651         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
50652         * modules/mbslen (configure.ac): Update.
50654         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
50655         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
50656         * modules/forkpty (configure.ac): Update.
50657         * modules/openpty (configure.ac): Update.
50659 2010-03-26  Simon Josefsson  <simon@josefsson.org>
50661         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
50662         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
50664 2010-03-25  Eric Blake  <eblake@redhat.com>
50666         maint: use pragma consistently across replacement headers
50667         * lib/ctype.in.h (system_header): Hoist for consistent placement.
50668         * lib/dirent.in.h (system_header): Likewise.
50669         * lib/errno.in.h (system_header): Likewise.
50670         * lib/float.in.h (system_header): Likewise.
50671         * lib/getopt.in.h (system_header): Likewise.
50672         * lib/iconv.in.h (system_header): Likewise.
50673         * lib/inttypes.in.h (system_header): Likewise.
50674         * lib/langinfo.in.h (system_header): Likewise.
50675         * lib/locale.in.h (system_header): Likewise.
50676         * lib/math.in.h (system_header): Likewise.
50677         * lib/netdb.in.h (system_header): Likewise.
50678         * lib/netinet_in.in.h (system_header): Likewise.
50679         * lib/pty.in.h (system_header): Likewise.
50680         * lib/sched.in.h (system_header): Likewise.
50681         * lib/se-selinux.in.h (system_header): Likewise.
50682         * lib/search.in.h (system_header): Likewise.
50683         * lib/spawn.in.h (system_header): Likewise.
50684         * lib/stdarg.in.h (system_header): Likewise.
50685         * lib/stdint.in.h (system_header): Likewise.
50686         * lib/string.in.h (system_header): Likewise.
50687         * lib/strings.in.h (system_header): Likewise.
50688         * lib/sys_file.in.h (system_header): Likewise.
50689         * lib/sys_ioctl.in.h (system_header): Likewise.
50690         * lib/sys_socket.in.h (system_header): Likewise.
50691         * lib/sys_times.in.h (system_header): Likewise.
50692         * lib/sys_utsname.in.h (system_header): Likewise.
50693         * lib/sys_wait.in.h (system_header): Likewise.
50694         * lib/sysexits.in.h (system_header): Likewise.
50695         * lib/unistd.in.h (system_header): Likewise.
50696         * lib/wctype.in.h (system_header): Likewise.
50698         arpa/inet: fix mingw compilation warning
50699         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
50700         Reported by Matthew Bolte.
50702 2010-03-25  Bruno Haible  <bruno@clisp.org>
50704         Avoid collision between gnulib wrapper and libintl wrapper.
50705         * lib/printf.c (printf): Don't define if a printf wrapper is already
50706         defined in intl/printf.c.
50707         Reported by Michel Boaventura <michel@michelboaventura.com>.
50709 2010-03-25  Bruno Haible  <bruno@clisp.org>
50711         Use ANSI C.
50712         * lib/readutmp.h (getutent): Provide ANSI C prototype.
50714 2010-03-25  Bruno Haible  <bruno@clisp.org>
50716         Minor formatting changes.
50717         * lib/acosl.c: Insert space before function argument list.
50718         * lib/argz.c: Likewise.
50719         * lib/asinl.c: Likewise.
50720         * lib/expl.c: Likewise.
50721         * lib/gen-uni-tables.c: Likewise.
50722         * lib/gettext.h: Likewise.
50723         * lib/glthread/lock.h: Likewise.
50724         * lib/tanl.c: Likewise.
50725         * lib/uniname/uniname.c: Likewise.
50726         * tests/test-idpriv-drop.c: Likewise.
50727         * tests/test-idpriv-droptemp.c: Likewise.
50728         * tests/test-lock.c: Likewise.
50729         * tests/test-tls.c: Likewise.
50730         * lib/argp-help.c: Insert space before function-like macro argument
50731         list.
50732         * lib/memcmp.c: Likewise.
50733         * tests/test-base64.c: Likewise.
50734         * lib/localename.c: Insert space before sizeof's argument list.
50735         * lib/safe-alloc.h: Likewise.
50736         * lib/file-set.h: Insert space before macro argument list.
50737         * tests/test-argp.c: Likewise.
50738         * lib/argp-namefrob.h: Insert space before function parameter list.
50739         * lib/getaddrinfo.c: Likewise.
50740         * lib/netdb.in.h: Likewise.
50741         * lib/parse-duration.h: Likewise.
50742         * lib/parse-duration.c: Likewise.
50743         * lib/poll.c: Likewise.
50744         * lib/select.c: Likewise.
50745         * lib/trim.h: Likewise.
50746         * tests/test-usleep.c: Likewise.
50747         * lib/ldexpl.c: Insert space before function parameter list and before
50748         function argument list.
50749         * lib/logl.c: Likewise.
50750         * lib/sqrtl.c: Likewise.
50751         * lib/trim.c: Likewise.
50752         * lib/cosl.c: Use GNU style indentation. Insert space before function
50753         argument list.
50754         * lib/sinl.c: Likewise.
50755         * lib/tsearch.c: Insert space after 'for'.
50756         Reported by Jim Meyering.
50758 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
50760         * maint.mk (sc_Wundef_boolean): Check for the presence of the
50761         config header before grepping, as it's not present before
50762         autoreconf/configure are run.  Reported by Simon Josefsson.
50764 2010-03-23  Bruno Haible  <bruno@clisp.org>
50766         pt_chown: Make it work with automake < 1.11.
50767         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
50768         Reported by Simon Josefsson.
50770 2010-03-23  Bruno Haible  <bruno@clisp.org>
50772         pt_chown: Don't depend on GPLed modules.
50773         * lib/pt_chown.c: Don't include idpriv.h.
50774         (main): Don't drop privileges.
50775         * modules/pt_chown (Depends-on): Remove idpriv-drop.
50776         Reported by Simon Josefsson.
50778 2010-03-24  Simon Josefsson  <simon@josefsson.org>
50780         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
50781         suggestions from karl@freefriends.org (Karl Berry).
50783 2010-03-22  Eric Blake  <eblake@redhat.com>
50785         gethostname: further tweaks
50786         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
50787         are overriding gethostname.
50788         Suggested by Bruno Haible.
50790 2010-03-21  Bruno Haible  <bruno@clisp.org>
50792         Fix comments.
50793         * lib/forkpty.c (rpl_forkpty): Fix comment.
50794         * lib/openpty.c (rpl_openpty): Likewise.
50795         Reported by Eric Blake.
50797 2010-03-22  Eric Blake  <eblake@redhat.com>
50799         gethostname: fix build on mingw
50800         * lib/unistd.in.h (includes): Work around fact that mingw
50801         <winsock2.h> re-includes <unistd.h>, by avoiding any
50802         redeclarations if we are being included by <winsock2.h>.
50803         Reported by Matthias Bolte.
50805 2010-03-21  Bruno Haible  <bruno@clisp.org>
50807         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
50808         * lib/forkpty.c (forkpty): New replacement function, from glibc with
50809         modifications.
50810         * lib/pty.in.h (forkpty): Update declaration. Add comments.
50811         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
50812         provide the replacement.
50813         * modules/forkpty (Depends-on): Add openpty, login_tty.
50814         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
50815         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
50816         * doc/glibc-functions/forkpty.texi: More supported platforms.
50817         * config/srclist.txt: Add forkpty.c (commented).
50819 2010-03-21  Bruno Haible  <bruno@clisp.org>
50821         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
50822         (Makefile.am): Verify that PTY_LIB is defined.
50824         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
50826 2010-03-21  Bruno Haible  <bruno@clisp.org>
50828         Tests for module 'login_tty'.
50829         * modules/login_tty-tests: New file.
50830         * tests/test-login_tty.c: New file.
50832         New module 'login_tty'.
50833         * lib/login_tty.c: New file.
50834         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
50835         * modules/login_tty: New file.
50836         * doc/glibc-functions/login_tty.texi: Mention the new module.
50838 2010-03-21  Bruno Haible  <bruno@clisp.org>
50840         login_tty: Documentation.
50841         * doc/glibc-functions/login_tty.texi: New file.
50842         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
50844 2010-03-21  Bruno Haible  <bruno@clisp.org>
50846         pty: Consistent macro naming.
50847         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
50848         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
50849         * modules/pty (configure.ac): Update.
50851 2010-03-21  Bruno Haible  <bruno@clisp.org>
50853         Tests for openpty: Make stricter.
50854         * tests/test-openpty.c (main): Add test of canonical processing and
50855         erase.
50856         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
50858         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
50859         * lib/openpty.c (openpty): New replacement function.
50860         * lib/pty.in.h: Include <termios.h>.
50861         (openpty): Update declaration. Add comments.
50862         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
50863         is not declared, arrange to provide the replacement. Check for _getpty
50864         and posix_openpt.
50865         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
50866         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
50867         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
50868         * modules/pty-tests (test_pty_c___LDADD): New variable.
50869         * doc/glibc-functions/openpty.texi: More supported platforms.
50871 2010-03-21  Bruno Haible  <bruno@clisp.org>
50873         setenv: Tweaks.
50874         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
50875         the test program.
50876         * doc/posix-functions/setenv.texi: Update platforms list.
50878 2010-03-21  Bruno Haible  <bruno@clisp.org>
50880         New module 'unlockpt'.
50881         * lib/unlockpt.c: New file, from glibc with modifications.
50882         * m4/unlockpt.m4: New file.
50883         * modules/unlockpt: New file.
50884         * lib/stdlib.in.h (unlockpt): New declaration.
50885         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
50886         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
50887         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
50888         HAVE_UNLOCKPT.
50889         * doc/posix-functions/unlockpt.texi: Mention the new module.
50890         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
50891         * config/srclist.txt: Add unlockpt.c (commented).
50893 2010-03-21  Jim Meyering  <meyering@redhat.com>
50895         maint.mk: prohibit inclusion of "intprops.h" without use
50896         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
50898 2010-03-21  Bruno Haible  <bruno@clisp.org>
50900         New module 'grantpt'.
50901         * lib/grantpt.c: New file, from glibc with modifications.
50902         * m4/grantpt.m4: New file.
50903         * modules/grantpt: New file.
50904         * lib/stdlib.in.h (grantpt): New declaration.
50905         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
50906         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
50907         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
50908         HAVE_GRANTPT.
50909         * doc/posix-functions/grantpt.texi: Mention the new module.
50910         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
50911         * config/srclist.txt: Add grantpt.c (commented).
50913 2010-03-21  Bruno Haible  <bruno@clisp.org>
50915         New module 'pt_chown'.
50916         * lib/pt_chown.c: New file, from glibc with modifications.
50917         * lib/pty-private.h: New file, from glibc with modifications.
50918         * modules/pt_chown: New file.
50919         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
50921 2010-03-21  Bruno Haible  <bruno@clisp.org>
50923         Tests for module 'ptsname'.
50924         * modules/ptsname-tests: New file.
50925         * tests/test-ptsname.c: New file.
50927         New module 'ptsname'.
50928         * lib/ptsname.c: New file, from glibc with modifications.
50929         * m4/ptsname.m4: New file.
50930         * modules/ptsname: New file.
50931         * lib/stdlib.in.h (ptsname): New declaration.
50932         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
50933         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
50934         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
50935         HAVE_PTSNAME.
50936         * doc/posix-functions/ptsname.texi: Mention the new module.
50937         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
50938         * config/srclist.txt: Add ptsname.c (commented).
50940 2010-03-21  Bruno Haible  <bruno@clisp.org>
50942         Tests for module 'ttyname_r'.
50943         * modules/ttyname_r-tests: New file.
50944         * tests/test-ttyname_r.c: New file.
50946         New module 'ttyname_r'.
50947         * lib/ttyname_r.c: New file.
50948         * m4/ttyname_r.m4: New file.
50949         * modules/ttyname_r: New file.
50950         * lib/unistd.in.h (ttyname_r): New declaration.
50951         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
50952         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
50953         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
50954         HAVE_TTYNAME_R.
50955         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
50956         * doc/posix-functions/ttyname_r.texi: Mention the new module.
50958 2010-03-20  Bruno Haible  <bruno@clisp.org>
50960         signal: Undefine macro definitions in C++ mode.
50961         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
50962         sigfillset): Undefine macro definitions from the system header in C++
50963         mode.
50964         Reported by John W. Eaton <jwe@gnu.org>.
50966 2010-03-20  Bruno Haible  <bruno@clisp.org>
50968         Ensure no #include statements inside extern "C" { ... }.
50969         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
50970         contain #include statements.
50971         * lib/time.in.h: Likewise.
50973 2010-03-20  Bruno Haible  <bruno@clisp.org>
50975         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
50976         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
50977         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
50978         Reported by John W. Eaton <jwe@gnu.org>.
50980 2010-03-20  Bruno Haible  <bruno@clisp.org>
50982         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
50983         Reported by Jim Meyering.
50985 2010-03-20  Bruno Haible  <bruno@clisp.org>
50987         pipe: Set errno upon failure.
50988         * lib/pipe.h: Specify that when -1 is returned, errno is set.
50989         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
50990         errno value in error message.
50992 2010-03-20  Bruno Haible  <bruno@clisp.org>
50993             Jim Meyering  <meyering@redhat.com>
50995         lchown: Avoid "unused variable" warning.
50996         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
50998 2010-03-20  Bruno Haible  <bruno@clisp.org>
51000         Work around unlink() bug on MacOS X 10.5.6.
51001         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
51002         attempting to unlink a parent directory.
51003         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
51004         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
51005         activate for the replacement function.
51006         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
51008 2010-03-20  Bruno Haible  <bruno@clisp.org>
51010         Fix link errors on Solaris 8.
51011         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
51012         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
51014 2010-03-19  Jim Meyering  <meyering@redhat.com>
51016         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
51017         The _LIBC implementation of build_range_exp correctly honors the
51018         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
51019         However, the non-_LIBC implementation would ignore that syntax-bit
51020         flag and return REG_ERANGE unconditionally.
51021         This change makes it honor that flag.
51022         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
51023         Make two pointer parameters "const".
51024         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
51025         (parse_bracket_exp): Update caller.
51027         regex.m4: correct the reversed range endpoint ([b-a]) test
51028         * m4/regex.m4: When requiring that [b-a] evoke failure,
51029         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
51030         test pass once again for x86-based systems.
51032 2010-03-19  Bruno Haible  <bruno@clisp.org>
51034         scandir: Fix link error on Solaris 8.
51035         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
51036         macros.
51038 2010-03-19  Bruno Haible  <bruno@clisp.org>
51040         getusershell: Fix documentation.
51041         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
51042         module.
51043         * doc/glibc-functions/setusershell.texi: Likewise.
51045         getusershell: Provide declaration, missing on Solaris 9.
51046         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
51047         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
51048         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
51049         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
51050         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
51051         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
51052         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
51053         HAVE_GETUSERSHELL.
51054         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
51056 2010-03-19  Bruno Haible  <bruno@clisp.org>
51058         wctype: Provide iswblank function.
51059         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
51060         exists and is fine.
51061         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
51062         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
51063         * tests/test-wctype.c (main): Re-enable the iswblank tests.
51064         * doc/posix-functions/iswblank.texi: Update.
51066 2010-03-19  Bruno Haible  <bruno@clisp.org>
51068         Tests of module 'pty' in C++ mode.
51069         * modules/pty-tests: New file.
51070         * tests/test-pty-c++.cc: New file.
51071         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
51073 2010-03-19  Eric Blake  <eblake@redhat.com>
51075         logb: fix documentation
51076         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
51077         1.5 declaration bug.
51079         forkpty, openpty: prefer glibc's const-safe prototype
51080         * lib/forkpty.c (rpl_forkpty): New file.
51081         * lib/openpty.c (rpl_openpty): Likewise.
51082         * modules/forkpty (Files): Distribute it.
51083         * modules/openpty (Files): Likewise.
51084         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
51085         check...
51086         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
51087         replacement for non-const BSD signature.
51088         * modules/pty (Makefile.am): Substitute witnesses.
51089         * lib/pty.in.h (forkpty, openpty): Declare replacements.
51090         * tests/test-forkpty.c: Update signature check.
51091         * tests/test-openpty.c: Likewise.
51092         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
51093         * doc/glibc-functions/openpty.texi (openpty): Likewise.
51095         forkpty, openpty: split functions into new modules
51096         * modules/pty (Makefile.am): Substitute new witnesses.
51097         (Libraries): Move library detection...
51098         * modules/forkpty: ...into new module.
51099         * modules/openpty: Another new module.
51100         * modules/pty-tests: Rename and split...
51101         * modules/forkpty-tests: ...to this...
51102         * modules/openpty-tests: ...and this.
51103         * tests/test-pty.c: Rename and split...
51104         * tests/test-forkpty.c: ...to this...
51105         * tests/test-openpty.c: ...and this.
51106         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
51107         (gl_PTY): Split library searching...
51108         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
51109         (gl_FORKPTY, gl_OPENPTY): New macros.
51110         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
51111         * NEWS: Mention the split.
51112         * MODULES.html.sh (Misc): Document the modules.
51113         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
51114         * doc/glibc-functions/openpty.texi (openpty): Likewise.
51116         pty: improve replacement header
51117         * lib/pty.in.h: New file.
51118         * modules/pty (Files): Ship it.
51119         (Makefile.am): Always build replacement.
51120         * m4/pty.m4: Rename...
51121         * m4/pty_h.m4: ...to this.
51122         (gl_PTY): Modernize setting of witness macros; update check of
51123         forkpty to take proper advantage of cache.
51124         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
51126         getopt: avoid compiler warning
51127         * lib/getopt.c (attribute_hidden): Remove unused macro.
51129 2010-03-18  Bruno Haible  <bruno@clisp.org>
51131         Fix link errors on Solaris 8.
51132         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
51133         * modules/search-tests (test_search_c___LDADD): Likewise.
51134         * modules/signal-tests (test_signal_c___LDADD): Likewise.
51135         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
51136         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
51137         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
51138         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
51139         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
51140         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
51142 2010-03-18  Bruno Haible  <bruno@clisp.org>
51144         Fix bug introduced on 2010-03-14.
51145         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
51146         (gl_SPAWN_H): Require it.
51147         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
51148         Reported by Simon Josefsson.
51150 2010-03-18  Bruno Haible  <bruno@clisp.org>
51152         Fix typo introduced on 2009-12-31.
51153         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
51154         posix_spawn_file_actions_adddup2.
51156 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
51157         and Eric Blake  <eblake@redhat.com>
51159         test-vc-list-files-git: make more robust
51160         * tests/test-vc-list-files-git.sh: Unset problematic environment
51161         variables.  Chain commands together.
51163 2010-03-17  Ludovic Courtès  <ludo@gnu.org>  (tiny change)
51165         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
51166         `AC_CHECK_DECL' invocation.
51168 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
51170         * lib/inttostr.c (inttostr): Make sure the invocation of verify
51171         appears before executable statements. Suggested by Petr Sumbera
51172         <Petr.Sumbera@Sun.COM>.
51174 2010-03-14  Bruno Haible  <bruno@clisp.org>
51176         * tests/test-flock.c (test_exclusive): Comment out a test that causes
51177         portability problems. Instead use a simpler test.
51178         (main): Check that invalid arguments are rejected only on Linux.
51180 2010-03-14  Bruno Haible  <bruno@clisp.org>
51182         Fix bug introduced on 2009-12-31.
51183         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
51184         gl_PREREQ_SYS_H_WINSOCK2 always.
51185         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
51186         SYS_SOCKET_H variable.
51187         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
51188         Update comments.
51189         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
51190         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
51191         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
51192         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
51193         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
51195 2010-03-14  Bruno Haible  <bruno@clisp.org>
51197         Fix values returned by sinl, cosl.
51198         * lib/trigl.h: Add specification comments.
51199         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
51200         that combines the values from the precomputed table with the values of
51201         the Chebyshev polynomials.
51203 2010-03-14  Bruno Haible  <bruno@clisp.org>
51205         Fix compilation error when modules 'posix_spawn[p]' are not used.
51206         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
51207         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
51209 2010-03-14  Bruno Haible  <bruno@clisp.org>
51211         Fix compilation error on mingw when module 'time_r' is not used.
51212         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
51213         is 1.
51214         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
51215         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
51216         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
51217         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
51219 2010-03-14  Bruno Haible  <bruno@clisp.org>
51221         Fix compilation error with Sun C.
51222         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
51223         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
51224         instead of GCC specific ULONG_LONG_MAX.
51225         * lib/xstrtoll.c: Likewise.
51226         * lib/xstrtoull.c: Likewise.
51228 2010-03-13  Bruno Haible  <bruno@clisp.org>
51230         Allow the user to disable C++ code and tests.
51231         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
51232         (gl_PROG_ANSI_CXX): Require it.
51234 2010-03-13  Bruno Haible  <bruno@clisp.org>
51236         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
51237         cases.
51239 2010-03-13  Bruno Haible  <bruno@clisp.org>
51241         Test that gnulib does not break the standard C++ headers.
51242         * tests/test-locale-c++2.cc: New file.
51243         * modules/locale-tests (Files): Add it.
51244         (Makefile.am): Compile it for test-locale-c++.
51245         * tests/test-math-c++2.cc: New file.
51246         * modules/math-tests (Files): Add it.
51247         (Makefile.am): Compile it for test-math-c++.
51248         * tests/test-signal-c++2.cc: New file.
51249         * modules/signal-tests (Files): Add it.
51250         (Makefile.am): Compile it for test-signal-c++.
51251         * tests/test-stdio-c++2.cc: New file.
51252         * modules/stdio-tests (Files): Add it.
51253         (Makefile.am): Compile it for test-stdio-c++.
51254         * tests/test-stdlib-c++2.cc: New file.
51255         * modules/stdlib-tests (Files): Add it.
51256         (Makefile.am): Compile it for test-stdlib-c++.
51257         * tests/test-string-c++2.cc: New file.
51258         * modules/string-tests (Files): Add it.
51259         (Makefile.am): Compile it for test-string-c++.
51260         * tests/test-time-c++2.cc: New file.
51261         * modules/time-tests (Files): Add it.
51262         (Makefile.am): Compile it for test-time-c++.
51263         Reported by John W. Eaton <jwe@gnu.org>.
51265 2010-03-13  Bruno Haible  <bruno@clisp.org>
51267         * gnulib-tool (func_usage): Clarify which options are available for
51268         --create-testdir and --create-megatestdir.
51270 2010-03-13  Bruno Haible  <bruno@clisp.org>
51272         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
51273         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
51274         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
51275         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
51276         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
51277         when appropriate.
51278         Reported by Jim Meyering.
51280 2010-03-12  Simon Josefsson  <simon@josefsson.org>
51282         * gnulib-tool (func_import): Explain origin of code.
51284 2010-03-12  Bruno Haible  <bruno@clisp.org>
51286         Fix problem with automake's definition of CXXLINK.
51287         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
51288         Reported by Simon Josefsson and Ludovic Courtès.
51290 2010-03-12  Bruno Haible  <bruno@clisp.org>
51292         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
51293         stable releases.
51295 2010-03-11  Bruno Haible  <bruno@clisp.org>
51297         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
51298         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
51299         whether the system provides one variant or multiple variants of the
51300         function.
51301         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
51302         C++ compilers.
51303         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
51304         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
51305         Reported by Jim Meyering.
51307 2010-03-09  Simon Josefsson  <simon@josefsson.org>
51309         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
51311 2010-03-08  Bruno Haible  <bruno@clisp.org>
51313         gnulib-tool: Add support for --libtool in --create-testdir.
51314         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
51315         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
51317 2010-03-08  Eric Blake  <eblake@redhat.com>
51319         gnulib-tool.texi: mention possibility of git submodule
51320         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
51321         submodules.
51322         * doc/.gitignore: Ignore another generated file.
51324 2010-03-08  Karl Berry  <karl@gnu.org>
51326         * doc/gnulib-tool.texi (VCS Issues): Mention third option
51327         of committing gnulib files while skipping others.
51329 2010-03-07  Bruno Haible  <bruno@clisp.org>
51331         Tests of module 'wctype' in C++ mode.
51332         * tests/test-wctype-c++.cc: New file.
51333         * modules/wctype-tests (Files): Add it and tests/signature.h.
51334         (Depends-on): Add ansi-c++-opt.
51335         (Makefile.am): Arrange to compile and run test-wctype-c++.
51337         Tests of module 'wchar' in C++ mode.
51338         * tests/test-wchar-c++.cc: New file.
51339         * modules/wchar-tests (Files): Add it and tests/signature.h.
51340         (Depends-on): Add ansi-c++-opt.
51341         (Makefile.am): Arrange to compile and run test-wchar-c++.
51342         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
51343         gl_MODULE_INDICATOR.
51345         Tests of module 'unistd' in C++ mode.
51346         * tests/test-unistd-c++.cc: New file.
51347         * modules/unistd-tests (Files): Add it and tests/signature.h.
51348         (Depends-on): Add ansi-c++-opt.
51349         (Makefile.am): Arrange to compile and run test-unistd-c++.
51350         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
51351         gl_MODULE_INDICATOR.
51353         Tests of module 'time' in C++ mode.
51354         * tests/test-time-c++.cc: New file.
51355         * modules/time-tests (Files): Add it and tests/signature.h.
51356         (Depends-on): Add ansi-c++-opt.
51357         (Makefile.am): Arrange to compile and run test-time-c++.
51358         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
51360         Tests of module 'sys_time' in C++ mode.
51361         * tests/test-sys_time-c++.cc: New file.
51362         * modules/sys_time-tests (Files): Add it and tests/signature.h.
51363         (Depends-on): Add ansi-c++-opt.
51364         (Makefile.am): Arrange to compile and run test-sys_time-c++.
51365         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
51366         gl_MODULE_INDICATOR.
51368         Tests of module 'sys_stat' in C++ mode.
51369         * tests/test-sys_stat-c++.cc: New file.
51370         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
51371         (Depends-on): Add ansi-c++-opt.
51372         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
51373         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
51374         gl_MODULE_INDICATOR.
51376         Tests of module 'sys_socket' in C++ mode.
51377         * tests/test-sys_socket-c++.cc: New file.
51378         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
51379         (Depends-on): Add ansi-c++-opt.
51380         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
51381         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
51382         gl_MODULE_INDICATOR.
51384         Tests of module 'sys_select' in C++ mode.
51385         * tests/test-sys_select-c++.cc: New file.
51386         * modules/sys_select-tests (Files): Add it and tests/signature.h.
51387         (Depends-on): Add ansi-c++-opt.
51388         (Makefile.am): Arrange to compile and run test-sys_select-c++.
51389         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
51390         gl_MODULE_INDICATOR.
51392         Tests of module 'sys_ioctl' in C++ mode.
51393         * tests/test-sys_ioctl-c++.cc: New file.
51394         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
51395         (Depends-on): Add ansi-c++-opt.
51396         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
51397         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
51398         gl_MODULE_INDICATOR.
51400         Tests of module 'string' in C++ mode.
51401         * tests/test-string-c++.cc: New file.
51402         * modules/string-tests (Files): Add it and tests/signature.h.
51403         (Depends-on): Add ansi-c++-opt.
51404         (Makefile.am): Arrange to compile and run test-string-c++.
51405         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
51406         gl_MODULE_INDICATOR.
51408         Tests of module 'stdlib' in C++ mode.
51409         * tests/test-stdlib-c++.cc: New file.
51410         * modules/stdlib-tests (Files): Add it and tests/signature.h.
51411         (Depends-on): Add ansi-c++-opt.
51412         (Makefile.am): Arrange to compile and run test-stdlib-c++.
51413         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
51414         gl_MODULE_INDICATOR.
51416         Tests of module 'stdio' in C++ mode.
51417         * tests/test-stdio-c++.cc: New file.
51418         * modules/stdio-tests (Files): Add it and tests/signature.h.
51419         (Depends-on): Add ansi-c++-opt.
51420         (Makefile.am): Arrange to compile and run test-stdio-c++.
51421         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
51422         gl_MODULE_INDICATOR.
51424         Tests of module 'spawn' in C++ mode.
51425         * tests/test-spawn-c++.cc: New file.
51426         * modules/spawn-tests (Files): Add it and tests/signature.h.
51427         (Depends-on): Add ansi-c++-opt.
51428         (Makefile.am): Arrange to compile and run test-spawn-c++.
51429         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
51430         gl_MODULE_INDICATOR.
51432         Tests of module 'signal' in C++ mode.
51433         * tests/test-signal-c++.cc: New file.
51434         * modules/signal-tests (Files): Add it and tests/signature.h.
51435         (Depends-on): Add ansi-c++-opt.
51436         (Makefile.am): Arrange to compile and run test-signal-c++.
51437         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
51438         gl_MODULE_INDICATOR.
51440         Tests of module 'search' in C++ mode.
51441         * tests/test-search-c++.cc: New file.
51442         * modules/search-tests (Files): Add it and tests/signature.h.
51443         (Depends-on): Add ansi-c++-opt.
51444         (Makefile.am): Arrange to compile and run test-search-c++.
51445         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
51446         gl_MODULE_INDICATOR.
51448         Tests of module 'math' in C++ mode.
51449         * tests/test-math-c++.cc: New file.
51450         * modules/math-tests (Files): Add it and tests/signature.h.
51451         (Depends-on): Add ansi-c++-opt.
51452         (Makefile.am): Arrange to compile and run test-math-c++.
51453         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
51455         Tests of module 'locale' in C++ mode.
51456         * tests/test-locale-c++.cc: New file.
51457         * modules/locale-tests (Files): Add it and tests/signature.h.
51458         (Depends-on): Add ansi-c++-opt.
51459         (Makefile.am): Arrange to compile and run test-locale-c++.
51460         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
51461         gl_MODULE_INDICATOR.
51463         Tests of module 'langinfo' in C++ mode.
51464         * tests/test-langinfo-c++.cc: New file.
51465         * modules/langinfo-tests (Files): Add it and tests/signature.h.
51466         (Depends-on): Add ansi-c++-opt.
51467         (Makefile.am): Arrange to compile and run test-langinfo-c++.
51468         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
51469         gl_MODULE_INDICATOR.
51471         Tests of module 'iconv-h' in C++ mode.
51472         * tests/test-iconv-h-c++.cc: New file.
51473         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
51474         (Depends-on): Add ansi-c++-opt.
51475         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
51477         Tests of module 'glob' in C++ mode.
51478         * tests/test-glob-c++.cc: New file.
51479         * modules/glob-tests (Files): Add it.
51480         (Depends-on): Add ansi-c++-opt.
51481         (Makefile.am): Arrange to compile and run test-glob-c++.
51483         Tests of module 'fcntl-h' in C++ mode.
51484         * tests/test-fcntl-h-c++.cc: New file.
51485         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
51486         (Depends-on): Add ansi-c++-opt.
51487         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
51488         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
51489         gl_MODULE_INDICATOR.
51491         Tests of module 'dirent' in C++ mode.
51492         * tests/test-dirent-c++.cc: New file.
51493         * modules/dirent-tests (Files): Add it and tests/signature.h.
51494         (Depends-on): Add ansi-c++-opt.
51495         (Makefile.am): Arrange to compile and run test-dirent-c++.
51496         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
51497         gl_MODULE_INDICATOR.
51499         New module 'ansi-c++-opt'.
51500         * modules/ansi-c++-opt: New file.
51501         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
51503         Document C++ namespace mode.
51504         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
51506         wctype: Avoid #define replacements in C++ mode.
51507         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
51508         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
51509         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
51510         In C++, define a namespaced alias symbol.
51511         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
51512         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
51513         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
51514         rule.
51516         wchar: Avoid #define replacements in C++ mode.
51517         * lib/wchar.in.h: Include c++defs.h.
51518         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
51519         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
51520         symbol.
51521         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
51522         * modules/wchar (Depends-on): Add c++defs.
51523         (Makefile.am): Update wchar.h rule.
51525         unistd: Avoid #define replacements in C++ mode.
51526         * lib/unistd.in.h: Include c++defs.h.
51527         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
51528         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
51529         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
51530         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
51531         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
51532         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
51533         symbol.
51534         (environ): Update.
51535         * modules/unistd (Depends-on): Add c++defs.
51536         (Makefile.am): Update unistd.h rule.
51538         time: Avoid #define replacements in C++ mode.
51539         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
51540         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
51541         define a namespaced alias symbol.
51542         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
51543         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
51544         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
51545         * modules/time (Depends-on): Add c++defs, warn-on-use.
51546         (Makefile.am): Update time.h rule.
51547         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
51548         * modules/nanosleep (configure.ac): Likewise.
51549         * modules/strptime (configure.ac): Likewise.
51550         * modules/timegm (configure.ac): Likewise.
51552         sys_time: Avoid #define replacements in C++ mode.
51553         * lib/sys_time.in.h: Include c++defs.h.
51554         (gettimeofday): In C++, define a namespaced alias symbol.
51555         * modules/sys_time (Depends-on): Add c++defs.
51556         (Makefile.am): Update sys/time.h rule.
51558         sys_stat: Avoid #define replacements in C++ mode.
51559         * lib/sys_stat.in.h: Include c++defs.h.
51560         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
51561         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
51562         namespaced alias symbol.
51563         In C++, define a namespaced alias symbol.
51564         * modules/sys_stat (Depends-on): Add c++defs.
51565         (Makefile.am): Update sys/stat.h rule.
51567         sys_socket: Avoid #define replacements in C++ mode.
51568         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
51569         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
51570         definitions also when the system has a <sys/socket.h>.
51571         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
51572         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
51573         In C++, define a namespaced alias symbol.
51574         * modules/sys_socket (Depends-on): Add c++defs.
51575         (Makefile.am): Update sys/socket.h rule.
51577         sys_select: Avoid #define replacements in C++ mode.
51578         * lib/sys_select.in.h: Include c++defs.h. Enable the function
51579         definitions also when the system has a <sys/select.h>.
51580         (select): In C++, define a namespaced alias symbol.
51581         * modules/sys_select (Depends-on): Add c++defs.
51582         (Makefile.am): Update sys/select.h rule.
51584         sys_ioctl: Avoid #define replacements in C++ mode.
51585         * lib/sys_ioctl.in.h: Include c++defs.h.
51586         (ioctl): In C++, define a namespaced alias symbol.
51587         * modules/sys_ioctl (Depends-on): Add c++defs.
51588         (Makefile.am): Update sys/ioctl.h rule.
51590         string: Avoid #define replacements in C++ mode.
51591         * lib/string.in.h: Include c++defs.h.
51592         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
51593         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
51594         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
51595         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
51596         strsignal, strverscmp): In C++, define a namespaced alias symbol.
51597         * modules/string (Depends-on): Add c++defs.
51598         (Makefile.am): Update string.h rule.
51600         stdlib: Avoid #define replacements in C++ mode.
51601         * lib/stdlib.in.h: Include c++defs.h.
51602         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
51603         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
51604         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
51605         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
51606         symbol.
51607         * modules/stdlib (Depends-on): Add c++defs.
51608         (Makefile.am): Update stdlib.h rule.
51610         stdio: Avoid #define replacements in C++ mode.
51611         * lib/stdio.in.h: Include c++defs.h.
51612         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
51613         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
51614         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
51615         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
51616         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
51617         namespaced alias symbol.
51618         * modules/stdio (Depends-on): Add c++defs.
51619         (Makefile.am): Update stdio.h rule.
51621         spawn: Avoid #define replacements in C++ mode.
51622         * lib/spawn.in.h: Include c++defs.h.
51623         (posix_spawn, posix_spawnp, posix_spawnattr_init,
51624         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
51625         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
51626         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
51627         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
51628         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
51629         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
51630         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
51631         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
51632         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
51633         In C++, define a namespaced alias symbol.
51634         * modules/spawn (Depends-on): Add c++defs.
51635         (Makefile.am): Update spawn.h rule.
51637         signal: Avoid #define replacements in C++ mode.
51638         * lib/signal.in.h: Include c++defs.h.
51639         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
51640         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
51641         namespaced alias symbol.
51642         * modules/signal (Depends-on): Add c++defs.
51643         (Makefile.am): Update signal.h rule.
51645         search: Avoid #define replacements in C++ mode.
51646         * lib/search.in.h: Include c++defs.h.
51647         (_gl_search_compar_fn, _gl_search_action_fn): New types.
51648         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
51649         symbol.
51650         * modules/search (Depends-on): Add c++defs.
51651         (Makefile.am): Update search.h rule.
51653         math: Avoid #define replacements in C++ mode.
51654         * lib/math.in.h: Include c++defs.h.
51655         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
51656         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
51657         trunc, truncl): In C++, define a namespaced alias symbol.
51658         * modules/math (Depends-on): Add c++defs.
51659         (Makefile.am): Update math.h rule.
51661         locale: Avoid #define replacements in C++ mode.
51662         * lib/locale.in.h: Include c++defs.h.
51663         (duplocale): In C++, define a namespaced alias symbol.
51664         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
51665         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
51666         * modules/locale (Depends-on): Add c++defs.
51667         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
51669         langinfo: Avoid #define replacements in C++ mode.
51670         * lib/langinfo.in.h: Include c++defs.h.
51671         (nl_langinfo): In C++, define a namespaced alias symbol.
51672         * modules/langinfo (Depends-on): Add c++defs.
51673         (Makefile.am): Update langinfo.h rule.
51675         iconv-h: Avoid #define replacements in C++ mode.
51676         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
51677         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
51678         symbol.
51679         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
51680         whenever iconv is present.
51681         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
51682         (Makefile.am): Update iconv.h rule.
51684         glob: Avoid #define replacements in C++ mode.
51685         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
51686         (_gl_glob_errfunc_fn): New type.
51687         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
51688         symbol.
51689         * modules/glob (Depends-on): Add c++defs, warn-on-use.
51690         (Makefile.am): Update glob.h rule.
51692         fcntl-h: Avoid #define replacements in C++ mode.
51693         * lib/fcntl.in.h: Include c++defs.h.
51694         (fcntl, open, openat): In C++, define a namespaced alias symbol.
51695         * modules/fcntl-h (Depends-on): Add c++defs.
51696         (Makefile.am): Update fcntl.h rule.
51698         dirent: Avoid #define replacements in C++ mode.
51699         * lib/dirent.in.h: Include c++defs.h.
51700         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
51701         namespaced alias symbol.
51702         (dirfd): Update declaration.
51703         * modules/dirent (Depends-on): Add c++defs.
51704         (Makefile.am): Update dirent.h rule.
51706         ctype: Make it usable in C++ code.
51707         * lib/ctype.in.h: Include c++defs.h.
51708         (isblank): Declare as extern "C".
51709         * modules/ctype (Depends-on): Add c++defs.
51710         (Makefile.am): Update ctype.h rule.
51712         New module 'c++defs'.
51713         * modules/c++defs: New file.
51714         * build-aux/c++defs.h: New file.
51715         Reported by John W. Eaton <jwe@gnu.org>.
51717 2010-03-07  Bruno Haible  <bruno@clisp.org>
51719         logb: Provide missing declaration for Cygwin.
51720         * lib/math.in.h (logb): New declaration.
51721         * m4/logb.m4: New file.
51722         * modules/logb (Files): Add m4/logb.m4.
51723         (Depends-on): Add math.
51724         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
51725         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
51726         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
51727         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
51728         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
51730 2010-03-07  Bruno Haible  <bruno@clisp.org>
51732         Fix test-cond link error.
51733         * tests/test-cond.c: Include <stdio.h>.
51735 2010-03-07  Bruno Haible  <bruno@clisp.org>
51737         Fix test-dirent-safer link error.
51738         * modules/dirent-safer-tests (Makefile.am): Define
51739         test_dirent_safer_LDADD.
51741 2010-03-07  Bruno Haible  <bruno@clisp.org>
51743         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
51744         among default module list.
51746 2010-03-07  Bruno Haible  <bruno@clisp.org>
51748         Fix link error on platforms with GNU libiconv.
51749         * modules/unistr/u8-strcoll-tests (Makefile): Define
51750         test_u8_strcoll_LDADD.
51751         * modules/unistr/u16-strcoll-tests (Makefile): Define
51752         test_u16_strcoll_LDADD.
51753         * modules/unistr/u32-strcoll-tests (Makefile): Define
51754         test_u32_strcoll_LDADD.
51756 2010-03-07  Bruno Haible  <bruno@clisp.org>
51758         Use POSIX declarations for socket functions.
51759         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
51760         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
51761         rpl_sendto): Change declaration to match POSIX.
51762         * lib/connect.c (rpl_connect): Likewise.
51763         * lib/accept.c (rpl_accept): Likewise.
51764         * lib/bind.c (rpl_bind): Likewise.
51765         * lib/getpeername.c (rpl_getpeername): Likewise.
51766         * lib/getsockname.c (rpl_getsockname): Likewise.
51767         * lib/recv.c (rpl_recv): Likewise.
51768         * lib/send.c (rpl_send): Likewise.
51769         * lib/recvfrom.c (rpl_recvfrom): Likewise.
51770         * lib/sendto.c (rpl_sendto): Likewise.
51772 2010-03-06  Bruno Haible  <bruno@clisp.org>
51774         Clarify access, euidaccess, faccessat.
51775         * doc/posix-functions/faccessat.texi: Mention security problem under
51776         "Other problems", not "Portability problems".
51777         * doc/posix-functions/access.texi: Likewise. Mention a related security
51778         problem.
51779         * doc/glibc-functions/euidaccess.texi: Mention security problems.
51780         * lib/euidaccess.c: Add comments about platforms.
51781         * lib/unistd.in.h (access, euidaccess): Add warnings.
51783 2010-03-07  Bruno Haible  <bruno@clisp.org>
51785         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
51786         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
51787         (POSIX_SPAWN_SETSCHEDULER): Likewise.
51788         (POSIX_SPAWN_USEVFORK): Define in a way that works when
51789         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
51790         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
51791         declare when POSIX_SPAWN_SETSCHEDULER is zero.
51792         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
51793         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
51794         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
51795         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
51796         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
51797         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
51798         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
51799         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
51800         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
51801         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
51802         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
51803         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
51804         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
51805         Likewise.
51806         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
51807         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
51808         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
51809         Likewise.
51810         * tests/test-spawn.c (main): Make it work when
51811         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
51813 2010-03-07  Bruno Haible  <bruno@clisp.org>
51815         Fix incorrect Makefile.am generation in German locale.
51816         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
51817         Execute sed command with character range in C locale.
51819 2010-03-06  Bruno Haible  <bruno@clisp.org>
51821         Tests for module 'iconv-h'.
51822         * modules/iconv-h-tests: New file.
51823         * tests/test-iconv-h.c: New file.
51825         New module 'iconv-h'.
51826         * modules/iconv-h: New file.
51827         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
51828         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
51829         (configure.ac): Remove gl_ICONV_H.
51830         (Makefile.am): Remove rule for iconv.h.
51832 2010-03-06  Bruno Haible  <bruno@clisp.org>
51834         More consistent naming of *.m4 files.
51835         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
51836         * modules/wctype (Files): Update.
51838         More consistent naming of *.m4 files.
51839         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
51840         * modules/wchar (Files): Update.
51842 2010-03-06  Jim Meyering  <meyering@redhat.com>
51844         euidaccess: relax license to LGPLv2+
51845         * modules/euidaccess (License): Relax to LGPLv2+.
51847 2010-03-06  Bruno Haible  <bruno@clisp.org>
51849         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
51850         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
51851         (Makefile.am): Augment lib_SOURCES instead.
51853 2010-03-04  Jim Meyering  <meyering@redhat.com>
51855         utime: remove obsolete module
51856         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
51857         unnecessary for years, and has been marked as obsolete for 10 months.
51858         * modules/utime: Remove file.
51859         * lib/utime.c: Remove file.
51860         * m4/utime.m4: Remove file.
51861         * m4/utimes-null.m4: Remove file.
51862         * doc/posix-functions/utime.texi (utime): Remove reference to
51863         the module.  Move the sole "fixed by gnulib" item into the
51864         "problems not fixed by Gnulib" list.
51865         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
51867 2010-03-05  Simon Josefsson  <simon@josefsson.org>
51869         * modules/exit (License): Relax license to LGPLv2+.
51870         (Status): Mark as obsolete.
51871         * NEWS: Mention deprecated 'exit' module.
51872         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
51873         of now obsolete 'exit'.
51875 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51877         fts-lgpl: remove unused module
51878         * modules/fts-lgpl: Remove.
51879         * MODULES.html.sh (func_all_modules): Adjust.
51880         * check-module (find_included_lib_files): Adjust.
51881         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
51883 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
51885         copy-acl: enhance Solaris ACL error handling
51886         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
51887         * lib/set-mode-acl.c (qset_acl): Likewise.
51889 2010-03-02  Bruno Haible  <bruno@clisp.org>
51891         spawn: Don't override the system defined values on FreeBSD 8.
51892         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
51893         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
51894         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
51895         if HAVE_POSIX_SPAWN is 1.
51896         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
51898 2010-03-01  Bruno Haible  <bruno@clisp.org>
51900         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
51901         regarding Automake.
51903 2010-02-25  Bruno Haible  <bruno@clisp.org>
51905         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
51906         * gnulib-tool: Define 'echo' as a function only before the ksh alias
51907         setting, not afterwards.
51908         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
51910 2010-02-24  Eric Blake  <eblake@redhat.com>
51912         bootstrap, git-version-gen: use timestamp
51913         * build-aux/git-version-gen (scriptversion): Force UTC.
51914         * build-aux/bootstrap (scriptversion): New variable.
51916         bootstrap: allow older git
51917         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
51918         older than 1.6.4.  Requested by the libvirt project.
51920 2010-02-23  Eric Blake  <eblake@redhat.com>
51922         warn-on-use: work with old autoconf
51923         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
51924         AS_VAR semantics of autoconf 2.60.
51925         Reported by Bruno Haible.
51927         bootstrap: improve some comments
51928         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
51929         clarification comments.
51931         gettimeofday: provide correct function
51932         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
51933         when replacement is declared, otherwise provide gettimeofday.
51934         Reported by Michael Goffioul.
51936 2010-02-23  Jim Meyering  <meyering@redhat.com>
51938         lib-ignore: relax license to "unlimited", not LGPLv2+
51939         * modules/lib-ignore (License): Relax to "unlimited".
51941 2010-02-23  Jim Meyering  <meyering@redhat.com>
51943         lib-ignore: relax license to LGPLv2+
51944         * modules/lib-ignore (License): Relax to LGPLv2+.
51946 2010-02-22  Eric Blake  <eblake@redhat.com>
51948         lseek: avoid bash 3.2 broken pipe bug
51949         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
51950         warning from bash 3.2.
51951         Reported by Ben Pfaff, with analysis from Bruno Haible.
51953         bootstrap: support non-FSF copyright holder
51954         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
51955         bootstrap.conf override of COPYRIGHT_HOLDER.
51956         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
51958         bootstrap: interoperate with gettext 0.14.1
51959         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
51961         bootstrap: allow for alternate submodule location
51962         * build-aux/bootstrap (gnulib_path): New variable; use instead of
51963         hardcoding submodule location.
51964         (gnulib_mk): Allow direct use of Makefile.am.
51966         bootstrap: use GNULIB_SRCDIR to reduce disk usage
51967         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
51968         rather than reconfiguring where the submodule points.
51970         gettimeofday: restore support for platforms that lack function
51971         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
51972         replacement if function is missing.
51973         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
51974         * modules/sys_time (Makefile.am): Substitute it.
51975         * lib/sys_time.in.h (gettimeofday): Check it.
51976         Reported by Michael Goffioul.
51978 2010-02-21  Bruno Haible  <bruno@clisp.org>
51980         * lib/stdio.in.h (obstack_printf): Fix typo.
51982 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
51984         vc-list-files: use bzr ls's -R option
51985         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
51986         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
51988 2010-02-21  Jim Meyering  <meyering@redhat.com>
51990         init.sh: fix EXEEXT shims to work also for names like test-prog
51991         * tests/init.sh: Re-exec a better shell, when needed.
51992         If the current shell lacks support for posix $(...), an init.sh-using
51993         test will now try to find a shell that supports that.  If EXEEXT is
51994         nonempty, we also require support for hyphen-in-alias-name and shell
51995         substitutions like ${var#glob}.  Failure to find such a shell results
51996         in a skipped test.
51998 2010-02-21  Bruno Haible  <bruno@clisp.org>
52000         Really work around "broken pipe" error message from bash 3.2.
52001         * gnulib-tool (func_reset_sigpipe): Remove function.
52002         (echo): In bash 3.2, define to a function that uses printf.
52003         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
52005 2010-02-20  Bruno Haible  <bruno@clisp.org>
52007         Restore support for automake 1.9.6 with autoconf 2.61.
52008         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
52009         Reported by James Youngman <jay@gnu.org>.
52011 2010-02-20  Bruno Haible  <bruno@clisp.org>
52013         Improve *printf warning condition.
52014         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
52015         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
52016         and the function is overridden due to SIGPIPE emulation.
52018 2010-02-20  Bruno Haible  <bruno@clisp.org>
52020         * lib/stdio.in.h: Tweak comments.
52022 2010-02-19  Bruno Haible  <bruno@clisp.org>
52024         Make it easier to find modules. New gnulib-tool option '--find'.
52025         * gnulib-tool: New option --find.
52026         (func_usage): Document it.
52027         (func_sanitize_modulelist): New function, extracted from
52028         func_all_modules.
52029         (func_all_modules): Invoke it.
52030         * doc/gnulib-tool.texi (Which modules?): New node.
52032 2010-02-18  Markus Duft  <mduft@gentoo.org>  (tiny change)
52034         * lib/sys_select.in.h: Provide select replacement even if
52035         sys/select.h exists on a system, for Interix.
52037 2010-02-18  Jim Meyering  <meyering@redhat.com>
52039         init.sh: don't use $(...) just yet
52040         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
52041         to accommodate e.g., Solaris' /bin/sh.
52043 2010-02-17  Bruno Haible  <bruno@clisp.org>
52045         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
52046         Reported by Ludovic Courtès <ludo@gnu.org>.
52048 2010-02-16  Simon Josefsson  <simon@josefsson.org>
52050         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
52051         linking with -lintl.
52053 2010-02-17  Simon Josefsson  <simon@josefsson.org>
52055         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
52056         if not provided by the system's netdb.h.  Reported by
52057         ludo@gnu.org (Ludovic Courtès).
52059 2010-02-15  Jim Meyering  <meyering@redhat.com>
52061         init.sh: improve portability and efficiency
52062         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
52063         "dummy" in a for loop.
52064         Use '!', not '^' to select the complement of a character set used
52065         in a "case" statement.
52066         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
52067         Suggestions from Eric Blake.
52069         init.sh: automatically accommodate programs with the .exe suffix
52070         Automatically arrange for an invocation of "prog" to execute the
52071         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
52072         may use the simpler "prog", yet still work when built on a system
52073         that requires specifying the added suffix.
52074         Do this by constructing a function named "prog" that invokes
52075         "prog.exe" for each .exe file in selected directories.
52076         * tests/init.sh (find_exe_basenames_): New function.
52077         (create_exe_shim_functions_): New function.
52078         (path_prepend_): Use it.
52080         maint.mk: mark syntax-check sc_*.m rules as .PHONY
52081         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
52082         "make -t syntax-check" doesn't create a ton of sc_*.m files.
52084 2010-02-14  Jim Meyering  <meyering@redhat.com>
52086         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
52087         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
52088         (sc_prohibit_hash_pjw_without_use): New rule.
52090         maint.mk: allow the default upload destination dir to be overridden
52091         * top/maint.mk (upload_dest_dir_): Define with a default that
52092         preserves the status quo.
52093         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
52094         Reported by Peter Simons.
52096         maint.mk: prohibit inclusion of "hash.h" without_use
52097         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
52099 2010-02-10  Jim Meyering  <meyering@redhat.com>
52101         maint.mk: prohibit inclusion of "ignore-value.h" without_use
52102         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
52104 2010-02-09  Eric Blake  <ebb9@byu.net>
52105         and Bruno Haible  <bruno@clisp.org>
52107         obstack-printf-posix: ensure declaration
52108         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
52109         extracted from gl_FUNC_OBSTACK_PRINTF.
52110         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
52111         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
52112         Likewise.
52113         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
52114         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
52115         0.
52117 2010-02-08  Bruno Haible  <bruno@clisp.org>
52119         gnulib-tool: Fix typo in 2010-02-07 commit.
52120         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
52121         Reported by Eric Blake.
52123 2010-02-07  Bruno Haible  <bruno@clisp.org>
52125         gnulib-tool: Fix up caching patches.
52126         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
52127         option --no-cache. Use associative arrays when supported by the shell.
52128         (sed_comments): New variable.
52129         (modcache): Renamed from do_cache.
52130         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
52131         abbreviate unnecessarily.
52132         (have_associative): New variable.
52133         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
52134         way also for ksh and zsh.
52135         (func_init_sed_convert_to_cache_statements): New function, extracted
52136         from func_cache_lookup_module. Add support for associative arrays.
52137         Don't set the c_MODULE_cached variable here. Ignore all lines before
52138         the first field header. Remove only the final newline, not all trailing
52139         newlines. Support empty fields correctly. Limit the use of 'eval' to
52140         assignments.
52141         (func_get_description, func_get_status, func_get_notice,
52142         func_get_applicability, func_get_filelist, func_get_dependencies,
52143         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
52144         func_get_automake_snippet, func_get_include_directive,
52145         func_get_link_directive, func_get_license, func_get_maintainer):
52146         Update documentation. List the unoptimized code first. Add support for
52147         associative arrays. Limit the use of 'eval' to assignments.
52148         (func_get_applicability): Undo stylistic pessimisations.
52149         (func_get_automake_snippet, func_get_include_directive): Reduce code
52150         duplication.
52151         (func_modules_transitive_closure, func_modules_add_dummy,
52152         func_modules_notice, func_modules_to_filelist, func_add_file,
52153         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
52154         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
52155         func_create_testdir, func_create_megatestdir): Update documentation.
52157 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52159         * gnulib-tool (func_cache_lookup_module): Store the module name
52160         belonging to the cache variable; error out if two different
52161         module names map to the same cache variable name.
52163 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52165         gnulib-tool: Make caching optional.
52166         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
52167         Update matching short versions of --no-changelog.
52168         (func_usage): Update.
52169         (sed_extract_cache_prog): Renamed from ...
52170         (sed_extract_prog): ... this; revert to old extraction script.
52171         (func_get_description, func_get_status)
52172         (func_get_notice, func_get_applicability, func_get_filelist)
52173         (func_get_dependencies, func_get_autoconf_early_snippet)
52174         (func_get_autoconf_snippet, func_get_automake_snippet)
52175         (func_get_include_directive, func_get_link_directive)
52176         (func_get_license, func_get_maintainer): If $do_cache is false,
52177         use old, non-caching extraction scripts.
52178         Suggestion by Bruno Haible.
52180 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52182         gnulib-tool: cache module metainformation.
52183         * gnulib-tool (sed_extract_prog): Match newline before each
52184         header, and rewrite header to a shell variable suffix.
52185         (func_cache_var, func_cache_lookup_module): New functions,
52186         to turn a module name into a cache variable prefix, and to
52187         look up and cache module metainformation.
52188         (func_get_description, func_get_status)
52189         (func_get_notice, func_get_applicability, func_get_filelist)
52190         (func_get_dependencies, func_get_autoconf_early_snippet)
52191         (func_get_autoconf_snippet, func_get_automake_snippet)
52192         (func_get_include_directive, func_get_link_directive)
52193         (func_get_license, func_get_maintainer): Use
52194         func_cache_lookup_module.
52196 2010-02-07  Bruno Haible  <bruno@clisp.org>
52198         fnctl: Fix missing dependency.
52199         * modules/fcntl (Depends-on): Add getdtablesize.
52200         Reported by John W. Eaton <jwe@gnu.org>.
52202 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
52204         Argp: fix recognition of short alias options.
52206         * lib/argp-parse.c (convert_options): Fix improper use of
52207         `|' between character values.
52208         * tests/test-argp.c (group1_option): New alias option
52209         --read (-r).
52210         (group1_parser): Special handling for 'r'.
52211         (test15): New test case.
52212         (test_fun): Add test15.
52213         * tests/test-argp-2.sh: Update expected --help and --usage
52214         outputs.
52216 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
52218         * tests/test-argp.c: Fix indentation.
52220 2010-02-04  Eric Blake  <ebb9@byu.net>
52222         gettimeofday: expose type of second argument
52223         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
52224         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
52225         * tests/test-gettimeofday.c: Use it to silence warning.
52226         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
52227         the issue.
52229 2010-02-03  Jim Meyering  <meyering@redhat.com>
52231         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
52232         * lib/regcomp.c (TYPE_SIGNED): Define.
52233         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
52235         regcomp.c: avoid a new -Wshadow warning
52236         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
52238 2010-02-01  Jim Meyering  <meyering@redhat.com>
52240         removing useless parentheses in cpp #define directives
52241         For motivation, see commit c0221df4, "define STREQ(a,b)
52242         consistently, removing useless parentheses"
52243         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
52244         * lib/mountlist.c (MNT_IGNORE): Likewise.
52245         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
52247 2010-02-01  Eric Blake  <ebb9@byu.net>
52249         sys_time: use link-warning
52250         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
52251         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
52252         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
52253         * modules/sys_time (Depends-on): Add warn-on-use.
52254         (Makefile.am): Always build replacement.
52255         (configure.ac): Update substitutions.
52256         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
52257         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
52258         bother with SYS_TIME_H.
52259         * modules/gettimeofday (configure.ac): Declare indicator.
52260         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
52261         in use.
52263         closein-tests: silence compiler warning
52264         * tests/test-closein.c (main): Ignore fread result.
52265         * modules/closein-tests (Depends-on): Add ignore-value.
52267         tests: silence warning about system return
52268         * tests/test-areadlink-with-size.c (main): Ignore system result.
52269         * tests/test-areadlink.c (main): Likewise.
52270         * tests/test-areadlinkat-with-size.c (main): Likewise.
52271         * tests/test-areadlinkat.c (main): Likewise.
52272         * tests/test-canonicalize-lgpl.c (main): Likewise.
52273         * tests/test-canonicalize.c (main): Likewise.
52274         * tests/test-chown.c (main): Likewise.
52275         * tests/test-fchownat.c (main): Likewise.
52276         * tests/test-fdutimensat.c (main): Likewise.
52277         * tests/test-fstatat.c (main): Likewise.
52278         * tests/test-futimens.c (main): Likewise.
52279         * tests/test-lchown.c (main): Likewise.
52280         * tests/test-link.c (main): Likewise.
52281         * tests/test-linkat.c (main): Likewise.
52282         * tests/test-lstat.c (main): Likewise.
52283         * tests/test-mkdir.c (main): Likewise.
52284         * tests/test-mkdirat.c (main): Likewise.
52285         * tests/test-mkfifo.c (main): Likewise.
52286         * tests/test-mkfifoat.c (main): Likewise.
52287         * tests/test-mknod.c (main): Likewise.
52288         * tests/test-readlink.c (main): Likewise.
52289         * tests/test-remove.c (main): Likewise.
52290         * tests/test-rename.c (main): Likewise.
52291         * tests/test-renameat.c (main): Likewise.
52292         * tests/test-rmdir.c (main): Likewise.
52293         * tests/test-symlink.c (main): Likewise.
52294         * tests/test-symlinkat.c (main): Likewise.
52295         * tests/test-unlink.c (main): Likewise.
52296         * tests/test-unlinkat.c (main): Likewise.
52297         * tests/test-utimens.c (main): Likewise.
52298         * tests/test-utimensat.c (main): Likewise.
52299         * modules/areadlink-tests (Depends-on): Add ignore-value.
52300         * modules/areadlink-with-size-tests (Depends-on): Likewise.
52301         * modules/areadlinkat-tests (Depends-on): Likewise.
52302         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
52303         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
52304         * modules/canonicalize-tests (Depends-on): Likewise.
52305         * modules/chown-tests (Depends-on): Likewise.
52306         * modules/fdutimensat-tests (Depends-on): Likewise.
52307         * modules/futimens-tests (Depends-on): Likewise.
52308         * modules/lchown-tests (Depends-on): Likewise.
52309         * modules/link-tests (Depends-on): Likewise.
52310         * modules/linkat-tests (Depends-on): Likewise.
52311         * modules/lstat-tests (Depends-on): Likewise.
52312         * modules/mkdir-tests (Depends-on): Likewise.
52313         * modules/mkfifo-tests (Depends-on): Likewise.
52314         * modules/mkfifoat-tests (Depends-on): Likewise.
52315         * modules/mknod-tests (Depends-on): Likewise.
52316         * modules/openat-tests (Depends-on): Likewise.
52317         * modules/readlink-tests (Depends-on): Likewise.
52318         * modules/remove-tests (Depends-on): Likewise.
52319         * modules/rename-tests (Depends-on): Likewise.
52320         * modules/renameat-tests (Depends-on): Likewise.
52321         * modules/rmdir-tests (Depends-on): Likewise.
52322         * modules/symlink-tests (Depends-on): Likewise.
52323         * modules/symlinkat-tests (Depends-on): Likewise.
52324         * modules/unlink-tests (Depends-on): Likewise.
52325         * modules/utimens-tests (Depends-on): Likewise.
52326         * modules/utimensat-tests (Depends-on): Likewise.
52328 2010-01-31  Bruno Haible  <bruno@clisp.org>
52330         Perform the same test for many <math.h> functions.
52331         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
52332         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
52333         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
52334         of gl_MATHFUNC.
52335         * modules/acos (configure.ac): Likewise.
52336         * modules/asin (configure.ac): Likewise.
52337         * modules/atan (configure.ac): Likewise.
52338         * modules/atan2 (configure.ac): Likewise.
52339         * modules/cbrt (configure.ac): Likewise.
52340         * modules/copysign (configure.ac): Likewise.
52341         * modules/cos (configure.ac): Likewise.
52342         * modules/cosh (configure.ac): Likewise.
52343         * modules/erf (configure.ac): Likewise.
52344         * modules/erfc (configure.ac): Likewise.
52345         * modules/exp (configure.ac): Likewise.
52346         * modules/fmod (configure.ac): Likewise.
52347         * modules/hypot (configure.ac): Likewise.
52348         * modules/j0 (configure.ac): Likewise.
52349         * modules/j1 (configure.ac): Likewise.
52350         * modules/jn (configure.ac): Likewise.
52351         * modules/lgamma (configure.ac): Likewise.
52352         * modules/log (configure.ac): Likewise.
52353         * modules/log10 (configure.ac): Likewise.
52354         * modules/log1p (configure.ac): Likewise.
52355         * modules/pow (configure.ac): Likewise.
52356         * modules/remainder (configure.ac): Likewise.
52357         * modules/sin (configure.ac): Likewise.
52358         * modules/sinh (configure.ac): Likewise.
52359         * modules/tan (configure.ac): Likewise.
52360         * modules/tanh (configure.ac): Likewise.
52361         * modules/y0 (configure.ac): Likewise.
52362         * modules/y1 (configure.ac): Likewise.
52363         * modules/yn (configure.ac): Likewise.
52364         Suggested by Paolo Bonzini.
52366 2010-01-31  Bruno Haible  <bruno@clisp.org>
52368         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
52370 2010-01-31  Bruno Haible  <bruno@clisp.org>
52372         Work around getdelim() bug on FreeBSD 8.0.
52373         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
52374         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
52375         not work.
52376         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
52377         is 1.
52378         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
52379         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
52380         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
52381         a non-zero size.
52382         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
52384 2010-01-31  Bruno Haible  <bruno@clisp.org>
52386         Work around getline() bug on FreeBSD 8.0.
52387         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
52388         and a non-zero size.
52389         * tests/test-getline.c (main): Likewise.
52390         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
52391         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
52393 2010-01-28  Eric Blake  <ebb9@byu.net>
52395         regex: fix build failure
52396         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
52397         platforms.
52399 2010-01-28  Jim Meyering  <meyering@redhat.com>
52401         regex: do not ignore memory allocation failure
52402         * lib/regex_internal.c (create_cd_newstate): Detect
52403         re_node_set_init_copy failure.   Extracted from glibc commit
52404         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
52406         regex: sync more white-space changes from libc
52407         * lib/regex_internal.c: White-space only changes.
52408         * lib/regexec.c: Likewise.
52410         regex: add many uses of __attribute_warn_unused_result__
52411         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
52412         * lib/regexec.c: Likewise.
52413         Extracted from a messy glibc commit.
52415         regcomp.c: spelling and merge-artifact from glibc
52416         * lib/regcomp.c: Merge remainder of glibc's
52417         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
52419         regcomp.c: sync white-space changes from glibc
52420         * lib/regcomp.c: Merge to accommodate white space
52421         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
52423         regcomp.c: do not ignore internal return values
52424         * lib/regcomp.c: Do not ignore internal return values.
52425         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
52426         but without its white-space changes and spelling fixes.
52428         regex_internal.h: define __attribute_warn_unused_result__
52429         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
52431         maint: add a syntax-check rule to check for vulnerable Makefile.in
52432         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
52434 2010-01-27  Jim Meyering  <meyering@redhat.com>
52436         ncftpput-ftp: clean up spaces
52437         * build-aux/ncftpput-ftp: Make Copyright line consistent.
52438         Remove trailing blanks.
52440 2010-01-27  Simon Josefsson  <simon@josefsson.org>
52442         * build-aux/git-version-gen: Fix copyright statement.
52443         * build-aux/gnupload: Likewise.
52444         * tests/test-arcfour.c: Likewise.
52445         * tests/test-arctwo.c: Likewise.
52446         * tests/test-count-one-bits.c: Likewise.
52447         * tests/test-crc.c: Likewise.
52448         * tests/test-des.c: Likewise.
52449         * tests/test-gc-arcfour.c: Likewise.
52450         * tests/test-gc-arctwo.c: Likewise.
52451         * tests/test-gc-des.c: Likewise.
52452         * tests/test-gc-hmac-md5.c: Likewise.
52453         * tests/test-gc-hmac-sha1.c: Likewise.
52454         * tests/test-gc-md2.c: Likewise.
52455         * tests/test-gc-md4.c: Likewise.
52456         * tests/test-gc-md5.c: Likewise.
52457         * tests/test-gc-pbkdf2-sha1.c: Likewise.
52458         * tests/test-gc-rijndael.c: Likewise.
52459         * tests/test-gc-sha1.c: Likewise.
52460         * tests/test-gc.c: Likewise.
52461         * tests/test-gethostname.c: Likewise.
52462         * tests/test-gettimeofday.c: Likewise.
52463         * tests/test-hash.c: Likewise.
52464         * tests/test-hmac-md5.c: Likewise.
52465         * tests/test-hmac-sha1.c: Likewise.
52466         * tests/test-md2.c: Likewise.
52467         * tests/test-md4.c: Likewise.
52468         * tests/test-md5.c: Likewise.
52469         * tests/test-memchr.c: Likewise.
52470         * tests/test-memchr2.c: Likewise.
52471         * tests/test-memcmp.c: Likewise.
52472         * tests/test-memmem.c: Likewise.
52473         * tests/test-memrchr.c: Likewise.
52474         * tests/test-rawmemchr.c: Likewise.
52475         * tests/test-read-file.c: Likewise.
52476         * tests/test-rijndael.c: Likewise.
52477         * tests/test-sockets.c: Likewise.
52478         * tests/test-strchrnul.c: Likewise.
52479         * tests/test-strstr.c: Likewise.
52480         * tests/test-strtod.c: Likewise.
52481         * build-aux/ncftpput-ftp: Likewise.
52483 2010-01-26  Eric Blake  <ebb9@byu.net>
52485         ignore-value: update recommended header name
52486         * modules/ignore-value (Include): Only use <> for headers that
52487         exist in glibc.
52489 2010-01-26  Jim Meyering  <meyering@redhat.com>
52491         test-userspec.c: avoid compiler warnings
52492         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
52493         and "initialization discards qualifiers..." warnings.
52494         Put the first "uid" in its own scope, and make char* members "const".
52496 2010-01-25  Bruno Haible  <bruno@clisp.org>
52498         gnulib-tool: Make warning diagnostics consistent.
52499         * gnulib-tool (func_warning): New function.
52500         Use it everywhere where gnulib-tool produces output to stderr and it is
52501         not a fatal error.
52503 2010-01-25  Bruno Haible  <bruno@clisp.org>
52505         Fix test dependencies.
52506         * modules/xstrtol-tests (Depends-on): Add inttypes.
52507         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
52509 2010-01-25  Pádraig Brady  <P@draigBrady.com>
52511         syntax-check: detect incorrect boolean macro values in config.h
52512         * modules/maintainer-makefile (configure.ac): Parameterize the location
52513         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
52514         The logic is from Eric Blake and the location indicated by Jim Meyering.
52515         Note the more natural CONFIG_HEADER name is prohibited by automake
52516         for backwards compatibility reasons.
52517         * top/maint.mk (sc_Wundef_boolean): New rule.
52519 2010-01-25  Jim Meyering  <meyering@redhat.com>
52521         bootstrap: detect MacOS 10.6's shasum, too
52522         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
52523         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
52525 2010-01-23  Jim Meyering  <meyering@redhat.com>
52527         xstrtoll: new module
52528         * modules/xstrtoll: New file.
52529         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
52530         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
52531         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
52532         ./configure fails if you use this module and lack "long long".
52533         * modules/xstrtoll-tests: New module.
52534         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
52535         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
52536         new init.sh-based test framework.
52538 2010-01-24  Bruno Haible  <bruno@clisp.org>
52540         Tests for module 'yn'.
52541         * modules/yn-tests: New file.
52542         * tests/test-yn.c: New file.
52544         Tests for module 'y1'.
52545         * modules/y1-tests: New file.
52546         * tests/test-y1.c: New file.
52548         Tests for module 'y0'.
52549         * modules/y0-tests: New file.
52550         * tests/test-y0.c: New file.
52552         Tests for module 'tanh'.
52553         * modules/tanh-tests: New file.
52554         * tests/test-tanh.c: New file.
52556         Tests for module 'tan'.
52557         * modules/tan-tests: New file.
52558         * tests/test-tan.c: New file.
52560         Tests for module 'sqrt'.
52561         * modules/sqrt-tests: New file.
52562         * tests/test-sqrt.c: New file.
52564         Tests for module 'sinh'.
52565         * modules/sinh-tests: New file.
52566         * tests/test-sinh.c: New file.
52568         Tests for module 'sin'.
52569         * modules/sin-tests: New file.
52570         * tests/test-sin.c: New file.
52572         Tests for module 'rint'.
52573         * modules/rint-tests: New file.
52574         * tests/test-rint.c: New file.
52576         Tests for module 'remainder'.
52577         * modules/remainder-tests: New file.
52578         * tests/test-remainder.c: New file.
52580         Tests for module 'pow'.
52581         * modules/pow-tests: New file.
52582         * tests/test-pow.c: New file.
52584         Tests for module 'nextafter'.
52585         * modules/nextafter-tests: New file.
52586         * tests/test-nextafter.c: New file.
52588         Tests for module 'modf'.
52589         * modules/modf-tests: New file.
52590         * tests/test-modf.c: New file.
52592         Tests for module 'logb'.
52593         * modules/logb-tests: New file.
52594         * tests/test-logb.c: New file.
52596         Tests for module 'log1p'.
52597         * modules/log1p-tests: New file.
52598         * tests/test-log1p.c: New file.
52600         Tests for module 'log10'.
52601         * modules/log10-tests: New file.
52602         * tests/test-log10.c: New file.
52604         Tests for module 'log'.
52605         * modules/log-tests: New file.
52606         * tests/test-log.c: New file.
52608         Tests for module 'lgamma'.
52609         * modules/lgamma-tests: New file.
52610         * tests/test-lgamma.c: New file.
52612         Tests for module 'ldexp'.
52613         * modules/ldexp-tests: New file.
52614         * tests/test-ldexp.c: New file.
52616         Tests for module 'jn'.
52617         * modules/jn-tests: New file.
52618         * tests/test-jn.c: New file.
52620         Tests for module 'j1'.
52621         * modules/j1-tests: New file.
52622         * tests/test-j1.c: New file.
52624         Tests for module 'j0'.
52625         * modules/j0-tests: New file.
52626         * tests/test-j0.c: New file.
52628         Tests for module 'hypot'.
52629         * modules/hypot-tests: New file.
52630         * tests/test-hypot.c: New file.
52632         Tests for module 'fmod'.
52633         * modules/fmod-tests: New file.
52634         * tests/test-fmod.c: New file.
52636         Tests for module 'fabs'.
52637         * modules/fabs-tests: New file.
52638         * tests/test-fabs.c: New file.
52640         Tests for module 'exp'.
52641         * modules/exp-tests: New file.
52642         * tests/test-exp.c: New file.
52644         Tests for module 'erfc'.
52645         * modules/erfc-tests: New file.
52646         * tests/test-erfc.c: New file.
52648         Tests for module 'erf'.
52649         * modules/erf-tests: New file.
52650         * tests/test-erf.c: New file.
52652         Tests for module 'cosh'.
52653         * modules/cosh-tests: New file.
52654         * tests/test-cosh.c: New file.
52656         Tests for module 'cos'.
52657         * modules/cos-tests: New file.
52658         * tests/test-cos.c: New file.
52660         Tests for module 'copysign'.
52661         * modules/copysign-tests: New file.
52662         * tests/test-copysign.c: New file.
52664         Tests for module 'cbrt'.
52665         * modules/cbrt-tests: New file.
52666         * tests/test-cbrt.c: New file.
52668         Tests for module 'atan2'.
52669         * modules/atan2-tests: New file.
52670         * tests/test-atan2.c: New file.
52672         Tests for module 'atan'.
52673         * modules/atan-tests: New file.
52674         * tests/test-atan.c: New file.
52676         Tests for module 'asin'.
52677         * modules/asin-tests: New file.
52678         * tests/test-asin.c: New file.
52680         Tests for module 'acos'.
52681         * modules/acos-tests: New file.
52682         * tests/test-acos.c: New file.
52684 2010-01-24  Bruno Haible  <bruno@clisp.org>
52686         Fix tests for common <math.h> functions.
52687         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
52688         code snippet that references the function pointer, rather than merely
52689         calling the function. Substitute the FUNC_LIBM variable.
52690         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
52691         * modules/acos (configure.ac): Likewise.
52692         * modules/asin (configure.ac): Likewise.
52693         * modules/atan (configure.ac): Likewise.
52694         * modules/atan2 (configure.ac): Likewise.
52695         * modules/cbrt (configure.ac): Likewise.
52696         * modules/copysign (configure.ac): Likewise.
52697         * modules/cos (configure.ac): Likewise.
52698         * modules/cosh (configure.ac): Likewise.
52699         * modules/erf (configure.ac): Likewise.
52700         * modules/erfc (configure.ac): Likewise.
52701         * modules/exp (configure.ac): Likewise.
52702         * modules/fabs (configure.ac): Likewise.
52703         * modules/fmod (configure.ac): Likewise.
52704         * modules/hypot (configure.ac): Likewise.
52705         * modules/j0 (configure.ac): Likewise.
52706         * modules/j1 (configure.ac): Likewise.
52707         * modules/jn (configure.ac): Likewise.
52708         * modules/ldexp (configure.ac): Likewise.
52709         * modules/lgamma (configure.ac): Likewise.
52710         * modules/log (configure.ac): Likewise.
52711         * modules/log10 (configure.ac): Likewise.
52712         * modules/log1p (configure.ac): Likewise.
52713         * modules/logb (configure.ac): Likewise.
52714         * modules/modf (configure.ac): Likewise.
52715         * modules/nextafter (configure.ac): Likewise.
52716         * modules/pow (configure.ac): Likewise.
52717         * modules/remainder (configure.ac): Likewise.
52718         * modules/rint (configure.ac): Likewise.
52719         * modules/sin (configure.ac): Likewise.
52720         * modules/sinh (configure.ac): Likewise.
52721         * modules/tan (configure.ac): Likewise.
52722         * modules/tanh (configure.ac): Likewise.
52723         * modules/y0 (configure.ac): Likewise.
52724         * modules/y1 (configure.ac): Likewise.
52725         * modules/yn (configure.ac): Likewise.
52727 2010-01-24  Bruno Haible  <bruno@clisp.org>
52729         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
52730         * tests/test-acosl.c (x): New variable.
52731         (main): Store argument in x and fetch it from x.
52732         * tests/test-asinl.c (x): New variable.
52733         (main): Store argument in x and fetch it from x.
52734         * tests/test-atanl.c (x): New variable.
52735         (main): Store argument in x and fetch it from x.
52736         * tests/test-cosl.c (x): New variable.
52737         (main): Store argument in x and fetch it from x.
52738         * tests/test-expl.c (x): New variable.
52739         (main): Store argument in x and fetch it from x.
52740         * tests/test-logl.c (x): New variable.
52741         (main): Store argument in x and fetch it from x.
52742         * tests/test-sinl.c (x): New variable.
52743         (main): Store argument in x and fetch it from x.
52744         * tests/test-sqrtl.c (x): New variable.
52745         (main): Store argument in x and fetch it from x.
52746         * tests/test-tanl.c (x): New variable.
52747         (main): Store argument in x and fetch it from x.
52749 2010-01-24  Bruno Haible  <bruno@clisp.org>
52751         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
52752         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
52753         assignments to the initial TESTS_ENVIRONMENT.
52754         * doc/gnulib.texi (Unit test modules): Document it.
52755         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
52756         TESTS_ENVIRONMENT.
52757         * modules/btowc-tests (Makefile.am): Likewise.
52758         * modules/c-stack-tests (Makefile.am): Likewise.
52759         * modules/c-strcase-tests (Makefile.am): Likewise.
52760         * modules/copy-file-tests (Makefile.am): Likewise.
52761         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
52762         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
52763         * modules/mbrtowc-tests (Makefile.am): Likewise.
52764         * modules/mbscasecmp-tests (Makefile.am): Likewise.
52765         * modules/mbscasestr-tests (Makefile.am): Likewise.
52766         * modules/mbschr-tests (Makefile.am): Likewise.
52767         * modules/mbscspn-tests (Makefile.am): Likewise.
52768         * modules/mbsinit-tests (Makefile.am): Likewise.
52769         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
52770         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
52771         * modules/mbspbrk-tests (Makefile.am): Likewise.
52772         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
52773         * modules/mbsrchr-tests (Makefile.am): Likewise.
52774         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
52775         * modules/mbsspn-tests (Makefile.am): Likewise.
52776         * modules/mbsstr-tests (Makefile.am): Likewise.
52777         * modules/nl_langinfo-tests (Makefile.am): Likewise.
52778         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
52779         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
52780         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
52781         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
52782         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
52783         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
52784         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
52785         * modules/wcrtomb-tests (Makefile.am): Likewise.
52786         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
52787         * modules/wcsrtombs-tests (Makefile.am): Likewise.
52788         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
52789         assignments from TESTS_ENVIRONMENT.
52790         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
52791         augmentation.
52792         * modules/argp-version-etc-tests (Makefile.am): Likewise.
52793         * modules/atexit-tests (Makefile.am): Likewise.
52794         * modules/binary-io-tests (Makefile.am): Likewise.
52795         * modules/closein-tests (Makefile.am): Likewise.
52796         * modules/dprintf-posix-tests (Makefile.am): Likewise.
52797         * modules/exclude-tests (Makefile.am): Likewise.
52798         * modules/fflush-tests (Makefile.am): Likewise.
52799         * modules/fpending-tests (Makefile.am): Likewise.
52800         * modules/fprintf-posix-tests (Makefile.am): Likewise.
52801         * modules/freadahead-tests (Makefile.am): Likewise.
52802         * modules/freadptr-tests (Makefile.am): Likewise.
52803         * modules/freadseek-tests (Makefile.am): Likewise.
52804         * modules/fseek-tests (Makefile.am): Likewise.
52805         * modules/fseeko-tests (Makefile.am): Likewise.
52806         * modules/ftell-tests (Makefile.am): Likewise.
52807         * modules/ftello-tests (Makefile.am): Likewise.
52808         * modules/idpriv-drop-tests (Makefile.am): Likewise.
52809         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
52810         * modules/lseek-tests (Makefile.am): Likewise.
52811         * modules/parse-duration-tests (Makefile.am): Likewise.
52812         * modules/perror-tests (Makefile.am): Likewise.
52813         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
52814         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
52815         * modules/pipe-tests (Makefile.am): Likewise.
52816         * modules/pread-tests (Makefile.am): Likewise.
52817         * modules/printf-posix-tests (Makefile.am): Likewise.
52818         * modules/select-tests (Makefile.am): Likewise.
52819         * modules/sigpipe-tests (Makefile.am): Likewise.
52820         * modules/tsearch-tests (Makefile.am): Likewise.
52821         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
52822         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
52823         * modules/uniname/uniname-tests (Makefile.am): Likewise.
52824         * modules/uniwidth/width-tests (Makefile.am): Likewise.
52825         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
52826         * modules/version-etc-tests (Makefile.am): Likewise.
52827         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
52828         * modules/vprintf-posix-tests (Makefile.am): Likewise.
52829         * modules/xalloc-die-tests (Makefile.am): Likewise.
52830         * modules/xprintf-posix-tests (Makefile.am): Likewise.
52831         * modules/xstrtoimax-tests (Makefile.am): Likewise.
52832         * modules/xstrtol-tests (Makefile.am): Likewise.
52833         * modules/xstrtoumax-tests (Makefile.am): Likewise.
52834         * modules/yesno-tests (Makefile.am): Likewise.
52835         Suggested by Jim Meyering.
52837 2010-01-24  Bruno Haible  <bruno@clisp.org>
52839         More documentation.
52840         * doc/gnulib.texi (Writing modules): New chapter.
52841         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
52842         the new chapter.
52844 2010-01-24  Jim Meyering  <meyering@redhat.com>
52846         maint.mk: do not prepend "./" after filtering
52847         * top/maint.mk (_prepend_srcdir_prefix): New variable
52848         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
52849         "./" when $(srcdir) is ".".
52851         define STREQ(a,b) consistently, removing useless parentheses
52852         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
52853         since the only risk is that "a" or "b" contains an unparenthesized
52854         comma, but if either did that, STREQ would have 3 or more arguments.
52855         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
52856         * lib/fts.c (STREQ): Remove unnecessary parentheses.
52857         * lib/hash-triple.c (STREQ): Likewise.
52858         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
52859         * lib/getugroups.c (STREQ): Likewise.
52861 2010-01-23  Jim Meyering  <meyering@redhat.com>
52863         maint.mk: fix syntax-check in a non-srcdir build directory
52864         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
52865         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
52867 2010-01-22  Jim Meyering  <meyering@redhat.com>
52869         userspec: add unit tests
52870         * tests/test-userspec.c: New file.
52871         * modules/userspec-tests: Likewise.
52873 2010-01-21  Jim Meyering  <meyering@redhat.com>
52875         maint.mk: handle source file names containing "." robustly
52876         * top/maint.mk (_dot_escaped_srcdir): Define.
52877         (VC_LIST): Use it in LHS of sed substitution.
52879 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
52881         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
52882         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
52883         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
52884         from a non-srcdir build.
52886 2010-01-20  Eric Blake  <ebb9@byu.net>
52888         warn-on-use: use instead of link-warning
52889         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
52890         * modules/unistd (Depends-on, Makefile.am): Likewise.
52891         * modules/arpa_inet (Depends-on): Replace link-warning with
52892         warn-on-use.
52893         (Makefile.am): Update rules accordingly.
52894         * modules/ctype (Depends-on, Makefile.am): Likewise.
52895         * modules/dirent (Depends-on, Makefile.am): Likewise.
52896         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
52897         * modules/inttypes (Depends-on, Makefile.am): Likewise.
52898         * modules/langinfo (Depends-on, Makefile.am): Likewise.
52899         * modules/locale (Depends-on, Makefile.am): Likewise.
52900         * modules/math (Depends-on, Makefile.am): Likewise.
52901         * modules/search (Depends-on, Makefile.am): Likewise.
52902         * modules/signal (Depends-on, Makefile.am): Likewise.
52903         * modules/spawn (Depends-on, Makefile.am): Likewise.
52904         * modules/stdlib (Depends-on, Makefile.am): Likewise.
52905         * modules/string (Depends-on, Makefile.am): Likewise.
52906         * modules/strings (Depends-on, Makefile.am): Likewise.
52907         * modules/sys_file (Depends-on, Makefile.am): Likewise.
52908         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
52909         * modules/sys_select (Depends-on, Makefile.am): Likewise.
52910         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
52911         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
52912         * modules/sys_times (Depends-on, Makefile.am): Likewise.
52913         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
52914         * modules/wchar (Depends-on, Makefile.am): Likewise.
52915         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
52916         should be poisoned.
52917         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
52918         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
52919         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
52920         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
52921         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
52922         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
52923         * m4/math_h.m4 (gl_MATH_H): Likewise.
52924         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
52925         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
52926         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
52927         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
52928         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
52929         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
52930         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
52931         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
52932         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
52933         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
52934         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
52935         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
52936         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
52937         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
52938         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
52939         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
52940         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
52941         GL_LINK_WARNING.
52942         * lib/ctype.in.h: Likewise.
52943         * lib/dirent.in.h: Likewise.
52944         * lib/fcntl.in.h: Likewise.
52945         * lib/inttypes.in.h: Likewise.
52946         * lib/langinfo.in.h: Likewise.
52947         * lib/locale.in.h: Likewise.
52948         * lib/math.in.h: Likewise.
52949         * lib/search.in.h: Likewise.
52950         * lib/signal.in.h: Likewise.
52951         * lib/spawn.in.h: Likewise.
52952         * lib/stdio.in.h: Likewise.
52953         * lib/stdlib.in.h: Likewise.
52954         * lib/string.in.h: Likewise.
52955         * lib/strings.in.h: Likewise.
52956         * lib/sys_file.in.h: Likewise.
52957         * lib/sys_ioctl.in.h: Likewise.
52958         * lib/sys_select.in.h: Likewise.
52959         * lib/sys_socket.in.h: Likewise.
52960         * lib/sys_stat.in.h: Likewise.
52961         * lib/sys_times.in.h: Likewise.
52962         * lib/sys_utsname.in.h: Likewise.
52963         * lib/unistd.in.h: Likewise.
52964         * lib/wchar.in.h: Likewise.
52966 2010-01-20  Bruno Haible  <bruno@clisp.org>
52968         Avoid duplicate -lm.
52969         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
52970         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
52971         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
52972         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
52973         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
52974         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
52975         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
52976         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
52977         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
52978         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
52979         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
52980         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
52981         Reported by Paolo Bonzini.
52983 2010-01-19  Bruno Haible  <bruno@clisp.org>
52985         langinfo, nl_langinfo: Relicense under LGPLv2+.
52986         * modules/langinfo (License): Change to LGPLv2+.
52987         * modules/nl_langinfo (License): Likewise.
52988         Patch by David Lutterkort <lutter@redhat.com>.
52990 2010-01-19  Bruno Haible  <bruno@clisp.org>
52992         Avoid compilation error with cc on OSF/1 5.1.
52993         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
52994         statement, not before.
52995         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
52997 2010-01-18  Bruno Haible  <bruno@clisp.org>
52999         Avoid a link error due to the __printf__ symbol.
53000         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
53001         and 2.6.x.
53002         (__format__, __printf__): Remove definitions.
53003         * lib/argp-fmtstream.h: Likewise.
53004         * lib/argp.h: Likewise.
53005         * lib/error.h: Likewise.
53006         * lib/vasnprintf.h: Likewise.
53007         * lib/xprintf.h: Likewise.
53008         * lib/xvasprintf.h: Likewise.
53009         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
53011 2010-01-18  Bruno Haible  <bruno@clisp.org>
53013         Tests for module 'tanl'.
53014         * modules/tanl-tests: New file.
53015         * tests/test-tanl.c: New file.
53017         Tests for module 'sqrtl'.
53018         * modules/sqrtl-tests: New file.
53019         * tests/test-sqrtl.c: New file.
53021         Tests for module 'sinl'.
53022         * modules/sinl-tests: New file.
53023         * tests/test-sinl.c: New file.
53025         Tests for module 'logl'.
53026         * modules/logl-tests: New file.
53027         * tests/test-logl.c: New file.
53029         Tests for module 'expl'.
53030         * modules/expl-tests: New file.
53031         * tests/test-expl.c: New file.
53033         Tests for module 'cosl'.
53034         * modules/cosl-tests: New file.
53035         * tests/test-cosl.c: New file.
53037         Tests for module 'atanl'.
53038         * modules/atanl-tests: New file.
53039         * tests/test-atanl.c: New file.
53041         Tests for module 'asinl'.
53042         * modules/asinl-tests: New file.
53043         * tests/test-asinl.c: New file.
53045         Tests for module 'acosl'.
53046         * modules/acosl-tests: New file.
53047         * tests/test-acosl.c: New file.
53049         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
53050         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
53051         tanl): Use the standard gnulib idiom.
53052         * lib/cosl.c: Don't include trigl.c and sincosl.c.
53053         * lib/sinl.c: Likewise.
53054         * lib/tanl.c: Don't include trigl.c.
53055         (kernel_tanl): Make static.
53056         * lib/sincosl.c: Include trigl.h first.
53057         * lib/trigl.c: Likewise.
53058         * m4/acosl.m4: New file.
53059         * m4/asinl.m4: New file.
53060         * m4/atanl.m4: New file.
53061         * m4/cosl.m4: New file.
53062         * m4/expl.m4: New file.
53063         * m4/logl.m4: New file.
53064         * m4/sinl.m4: New file.
53065         * m4/sqrtl.m4: New file.
53066         * m4/tanl.m4: New file.
53067         * m4/mathl.m4: Remove file.
53068         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
53069         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
53070         Don't initialize GNULIB_MATHL.
53071         * modules/acosl: New file.
53072         * modules/asinl: New file.
53073         * modules/atanl: New file.
53074         * modules/cosl: New file.
53075         * modules/expl: New file.
53076         * modules/logl: New file.
53077         * modules/sinl: New file.
53078         * modules/sqrtl: New file.
53079         * modules/tanl: New file.
53080         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
53081         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
53082         substitute GNULIB_MATHL.
53083         * modules/mathl: Rewritten.
53084         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
53085         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
53086         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
53087         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
53088         * doc/posix-functions/expl.texi: Mention the 'expl' module.
53089         * doc/posix-functions/logl.texi: Mention the 'logl' module.
53090         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
53091         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
53092         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
53094 2010-01-18  Bruno Haible  <bruno@clisp.org>
53096         sqrt: Make gl_FUNC_SQRT requirable.
53097         * m4/sqrt.m4: New file.
53098         * modules/sqrt (Files): Add it.
53099         (configure.ac): Invoke gl_FUNC_SQRT.
53101 2010-01-18  Bruno Haible  <bruno@clisp.org>
53103         New modules for common <math.h> functions.
53104         * m4/mathfunc.m4: New file.
53105         * modules/acos: New file.
53106         * modules/asin: New file.
53107         * modules/atan: New file.
53108         * modules/atan2: New file.
53109         * modules/cbrt: New file.
53110         * modules/copysign: New file.
53111         * modules/cos: New file.
53112         * modules/cosh: New file.
53113         * modules/erf: New file.
53114         * modules/erfc: New file.
53115         * modules/exp: New file.
53116         * modules/fabs: New file.
53117         * modules/fmod: New file.
53118         * modules/hypot: New file.
53119         * modules/j0: New file.
53120         * modules/j1: New file.
53121         * modules/jn: New file.
53122         * modules/ldexp: New file.
53123         * modules/lgamma: New file.
53124         * modules/log: New file.
53125         * modules/log10: New file.
53126         * modules/log1p: New file.
53127         * modules/logb: New file.
53128         * modules/modf: New file.
53129         * modules/nextafter: New file.
53130         * modules/pow: New file.
53131         * modules/remainder: New file.
53132         * modules/rint: New file.
53133         * modules/sin: New file.
53134         * modules/sinh: New file.
53135         * modules/sqrt: New file.
53136         * modules/tan: New file.
53137         * modules/tanh: New file.
53138         * modules/y0: New file.
53139         * modules/y1: New file.
53140         * modules/yn: New file.
53141         * doc/posix-functions/acos.texi: Mention the 'acos' module.
53142         * doc/posix-functions/asin.texi: Mention the 'asin' module.
53143         * doc/posix-functions/atan.texi: Mention the 'atan' module.
53144         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
53145         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
53146         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
53147         * doc/posix-functions/cos.texi: Mention the 'cos' module.
53148         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
53149         * doc/posix-functions/erf.texi: Mention the 'erf' module.
53150         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
53151         * doc/posix-functions/exp.texi: Mention the 'exp' module.
53152         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
53153         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
53154         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
53155         * doc/posix-functions/j0.texi: Mention the 'j0' module.
53156         * doc/posix-functions/j1.texi: Mention the 'j1' module.
53157         * doc/posix-functions/jn.texi: Mention the 'jn' module.
53158         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
53159         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
53160         * doc/posix-functions/log.texi: Mention the 'log' module.
53161         * doc/posix-functions/log10.texi: Mention the 'log10' module.
53162         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
53163         * doc/posix-functions/logb.texi: Mention the 'logb' module.
53164         * doc/posix-functions/modf.texi: Mention the 'modf' module.
53165         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
53166         * doc/posix-functions/pow.texi: Mention the 'pow' module.
53167         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
53168         * doc/posix-functions/rint.texi: Mention the 'rint' module.
53169         * doc/posix-functions/sin.texi: Mention the 'sin' module.
53170         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
53171         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
53172         * doc/posix-functions/tan.texi: Mention the 'tan' module.
53173         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
53174         * doc/posix-functions/y0.texi: Mention the 'y0' module.
53175         * doc/posix-functions/y1.texi: Mention the 'y1' module.
53176         * doc/posix-functions/yn.texi: Mention the 'yn' module.
53178 2010-01-18  Jim Meyering  <meyering@redhat.com>
53180         ignore-value: relax license to LGPLv2+
53181         * modules/ignore-value (License): Relax to LGPLv2+.
53183         getdate: don't leak when TZ contains two or more '"'s
53184         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
53185         double quote in TZ after the first one.
53187         readtokens: do not leak internal token_lengths buffer
53188         * lib/readtokens.c (readtokens): Free the local, lengths,
53189         when the supplied "token_lengths" parameter is NULL.
53191 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53193         Fix a couple of missing LIBTHREAD link failures on AIX.
53194         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
53195         $(LIBTHREAD).
53196         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
53198         Link test-poll against INET_PTON_LIB.
53199         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
53200         for inet_pton on Solaris 10.
53202 2010-01-17  Bruno Haible  <bruno@clisp.org>
53204         unistdio/*-sprintf: Fix typo in module description.
53205         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
53206         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
53207         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
53208         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
53209         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
53210         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
53211         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
53212         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
53214 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53216         gnulib-tool: fix filelist for AIX, HP-UX ksh.
53217         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
53218         variables in shell case patterns, for AIX and HP-UX ksh.
53220         Split large sed scripts, for HP-UX sed.
53221         * modules/stdio: Split sed scripts around 50 sed commands,
53222         to avoid HP-UX limit of 99 commands, in the near future.
53223         * modules/string: Likewise.
53224         * modules/unistd: Likewise.
53226         gnulib-tool: avoid writing in the current directory.
53227         * gnulib-tool (func_emit_lib_Makefile_am)
53228         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
53229         not in the current directory, so concurrent gnulib-tool
53230         instances do not interfere.
53232 2010-01-16  Jim Meyering  <meyering@redhat.com>
53234         doc: update users.txt
53235         * users.txt: Add grep.
53236         (diffutils, gzip): Update URLs.
53238 2010-01-12  Bruno Haible  <bruno@clisp.org>
53240         posix_spawn: Avoid test failure on Cygwin.
53241         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
53242         characters.
53243         Reported by Simon Josefsson.
53245 2010-01-12  Bruno Haible  <bruno@clisp.org>
53247         * tests/test-cond.c (main): When skipping the test, show the reason.
53249 2010-01-12  Simon Josefsson  <simon@josefsson.org>
53251         * lib/striconv.c (str_cd_iconv): Avoid if before free.
53253 2010-01-12  Simon Josefsson  <simon@josefsson.org>
53255         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
53256         VC_LIST_ALWAYS_EXCLUDE_REGEX.
53258 2010-01-12  Eric Blake  <ebb9@byu.net>
53260         build: guarantee AS_VAR_IF
53261         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
53262         (gl_AS_VAR_IF): Move...
53263         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
53264         Reported by Simon Josefsson.
53266 2010-01-12  Simon Josefsson  <simon@josefsson.org>
53268         * lib/stdio.in.h: Fix typo.
53270 2010-01-12  Simon Josefsson  <simon@josefsson.org>
53272         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
53273         libgpg-error.
53275 2010-01-12  Simon Josefsson  <simon@josefsson.org>
53277         * tests/test-xalloc-die.sh: Use $EXEEXT.
53279 2010-01-12  Simon Josefsson  <simon@josefsson.org>
53280             Bruno Haible  <bruno@clisp.org>
53282         getlogin, getlogin_r: Avoid test failure.
53283         * tests/test-getlogin.c: Include <stdio.h>.
53284         (main): Skip the test when the function fails because stdin is not a
53285         tty.
53286         * tests/test-getlogin_r.c: Include <stdio.h>.
53287         (main): Skip the test when the function fails because stdin is not a
53288         tty.
53290 2010-01-11  Eric Blake  <ebb9@byu.net>
53292         tests: avoid more large file warnings
53293         * tests/test-fflush.c: Avoid warning about ftell use.
53294         * tests/test-fseek.c: Avoid warning about fseek use.
53296 2010-01-10  Bruno Haible  <bruno@clisp.org>
53298         nproc: Work better on Linux when /proc and /sys are not mounted.
53299         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
53300         as lower bound when, on glibc/Linux systems,
53301         sysconf (_SC_NPROCESSORS_CONF) returns 1.
53302         Suggested by Pádraig Brady <P@draigbrady.com>.
53303         Reported by Dmitry V. Levin <ldv@altlinux.org>.
53305         nproc: Refactor.
53306         * lib/nproc.c (num_processors_via_affinity_mask): New function,
53307         extracted from num_processors.
53308         (num_processors): Call it.
53310 2010-01-11  Jim Meyering  <meyering@redhat.com>
53312         utimecmp: avoid new warning from upcoming gcc-4.5.0
53313         * lib/utimecmp.c (BILLION): Define using #define rather than an
53314         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
53316 2010-01-11  Eric Blake  <ebb9@byu.net>
53318         math: add portability warnings for classification macros
53319         * modules/math (Depends-on): Add warn-on-use.
53320         (Makefile.am): Provide new substitutions.
53321         * m4/math_h.m4 (gl_MATH_H): Require inline.
53322         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
53323         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
53324         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
53325         implement warnings.
53327         unistd: warn on use of environ without module
53328         * modules/unistd (Depends-on): Add warn-on-use.
53329         (Makefile.am): Provide new substitutions.
53330         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
53331         * lib/unistd.in.h (environ): Wrap with a warning helper function.
53333         stdio: warn on suspicious uses
53334         * modules/stdio (Depends-on): Add warn-on-use.
53335         (Makefile.am): Provide new substitutions.
53336         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
53337         fseeko.
53338         * lib/stdio.in.h (gets): Always warn on use.
53339         (fseek, ftell): Adjust when warnings are issued, and honor
53340         _GL_NO_LARGE_FILES as a way to silence the warning.
53341         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
53342         any warning about large file offsets.
53343         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
53344         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
53345         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
53346         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
53347         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
53348         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
53349         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
53350         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
53352         warn-on-use: new module
53353         * modules/warn-on-use: New file.
53354         * build-aux/warn-on-use.h: Likewise.
53355         * m4/warn-on-use.m4: Likewise.
53356         * MODULES.html.sh (Support for building): Mention it.
53358 2010-01-10  Bruno Haible  <bruno@clisp.org>
53360         Tests for module 'unistr/u32-strdup'.
53361         * modules/unistr/u32-strdup-tests: New file.
53362         * tests/unistr/test-u32-strdup.c: New file.
53364         Tests for module 'unistr/u16-strdup'.
53365         * modules/unistr/u16-strdup-tests: New file.
53366         * tests/unistr/test-u16-strdup.c: New file.
53368         Tests for module 'unistr/u8-strdup'.
53369         * modules/unistr/u8-strdup-tests: New file.
53370         * tests/unistr/test-u8-strdup.c: New file.
53371         * tests/unistr/test-strdup.h: New file.
53373         Tests for module 'unistr/u32-strncmp'.
53374         * modules/unistr/u32-strncmp-tests: New file.
53375         * tests/unistr/test-u32-strncmp.c: New file.
53377         Tests for module 'unistr/u16-strncmp'.
53378         * modules/unistr/u16-strncmp-tests: New file.
53379         * tests/unistr/test-u16-strncmp.c: New file.
53381         Tests for module 'unistr/u8-strncmp'.
53382         * modules/unistr/u8-strncmp-tests: New file.
53383         * tests/unistr/test-u8-strncmp.c: New file.
53384         * tests/unistr/test-strncmp.h: New file.
53386         Tests for module 'unistr/u32-strcoll'.
53387         * modules/unistr/u32-strcoll-tests: New file.
53388         * tests/unistr/test-u32-strcoll.c: New file.
53390         Tests for module 'unistr/u16-strcoll'.
53391         * modules/unistr/u16-strcoll-tests: New file.
53392         * tests/unistr/test-u16-strcoll.c: New file.
53394         Tests for module 'unistr/u8-strcoll'.
53395         * modules/unistr/u8-strcoll-tests: New file.
53396         * tests/unistr/test-u8-strcoll.c: New file.
53398         Tests for module 'unistr/u32-strcmp'.
53399         * modules/unistr/u32-strcmp-tests: New file.
53400         * tests/unistr/test-u32-strcmp.c: New file.
53401         * tests/unistr/test-u32-strcmp.h: New file.
53403         Tests for module 'unistr/u16-strcmp'.
53404         * modules/unistr/u16-strcmp-tests: New file.
53405         * tests/unistr/test-u16-strcmp.c: New file.
53406         * tests/unistr/test-u16-strcmp.h: New file.
53408         Tests for module 'unistr/u8-strcmp'.
53409         * modules/unistr/u8-strcmp-tests: New file.
53410         * tests/unistr/test-u8-strcmp.c: New file.
53411         * tests/unistr/test-u8-strcmp.h: New file.
53412         * tests/unistr/test-strcmp.h: New file.
53414         Tests for module 'unistr/u32-strncat'.
53415         * modules/unistr/u32-strncat-tests: New file.
53416         * tests/unistr/test-u32-strncat.c: New file.
53418         Tests for module 'unistr/u16-strncat'.
53419         * modules/unistr/u16-strncat-tests: New file.
53420         * tests/unistr/test-u16-strncat.c: New file.
53422         Tests for module 'unistr/u8-strncat'.
53423         * modules/unistr/u8-strncat-tests: New file.
53424         * tests/unistr/test-u8-strncat.c: New file.
53425         * tests/unistr/test-strncat.h: New file.
53427         Tests for module 'unistr/u32-strcat'.
53428         * modules/unistr/u32-strcat-tests: New file.
53429         * tests/unistr/test-u32-strcat.c: New file.
53431         Tests for module 'unistr/u16-strcat'.
53432         * modules/unistr/u16-strcat-tests: New file.
53433         * tests/unistr/test-u16-strcat.c: New file.
53435         Tests for module 'unistr/u8-strcat'.
53436         * modules/unistr/u8-strcat-tests: New file.
53437         * tests/unistr/test-u8-strcat.c: New file.
53438         * tests/unistr/test-strcat.h: New file.
53440         Tests for module 'unistr/u32-stpncpy'.
53441         * modules/unistr/u32-stpncpy-tests: New file.
53442         * tests/unistr/test-u32-stpncpy.c: New file.
53444         Tests for module 'unistr/u16-stpncpy'.
53445         * modules/unistr/u16-stpncpy-tests: New file.
53446         * tests/unistr/test-u16-stpncpy.c: New file.
53448         Tests for module 'unistr/u8-stpncpy'.
53449         * modules/unistr/u8-stpncpy-tests: New file.
53450         * tests/unistr/test-u8-stpncpy.c: New file.
53451         * tests/unistr/test-stpncpy.h: New file.
53453         Tests for module 'unistr/u32-strncpy'.
53454         * modules/unistr/u32-strncpy-tests: New file.
53455         * tests/unistr/test-u32-strncpy.c: New file.
53457         Tests for module 'unistr/u16-strncpy'.
53458         * modules/unistr/u16-strncpy-tests: New file.
53459         * tests/unistr/test-u16-strncpy.c: New file.
53461         Tests for module 'unistr/u8-strncpy'.
53462         * modules/unistr/u8-strncpy-tests: New file.
53463         * tests/unistr/test-u8-strncpy.c: New file.
53464         * tests/unistr/test-strncpy.h: New file.
53466         Tests for module 'unistr/u32-stpcpy'.
53467         * modules/unistr/u32-stpcpy-tests: New file.
53468         * tests/unistr/test-u32-stpcpy.c: New file.
53470         Tests for module 'unistr/u16-stpcpy'.
53471         * modules/unistr/u16-stpcpy-tests: New file.
53472         * tests/unistr/test-u16-stpcpy.c: New file.
53474         Tests for module 'unistr/u8-stpcpy'.
53475         * modules/unistr/u8-stpcpy-tests: New file.
53476         * tests/unistr/test-u8-stpcpy.c: New file.
53477         * tests/unistr/test-stpcpy.h: New file.
53479         Tests for module 'unistr/u32-strcpy'.
53480         * modules/unistr/u32-strcpy-tests: New file.
53481         * tests/unistr/test-u32-strcpy.c: New file.
53483         Tests for module 'unistr/u16-strcpy'.
53484         * modules/unistr/u16-strcpy-tests: New file.
53485         * tests/unistr/test-u16-strcpy.c: New file.
53487         Tests for module 'unistr/u8-strcpy'.
53488         * modules/unistr/u8-strcpy-tests: New file.
53489         * tests/unistr/test-u8-strcpy.c: New file.
53490         * tests/unistr/test-strcpy.h: New file.
53492         Tests for module 'unistr/u32-strnlen'.
53493         * modules/unistr/u32-strnlen-tests: New file.
53494         * tests/unistr/test-u32-strnlen.c: New file.
53496         Tests for module 'unistr/u16-strnlen'.
53497         * modules/unistr/u16-strnlen-tests: New file.
53498         * tests/unistr/test-u16-strnlen.c: New file.
53500         Tests for module 'unistr/u8-strnlen'.
53501         * modules/unistr/u8-strnlen-tests: New file.
53502         * tests/unistr/test-u8-strnlen.c: New file.
53503         * tests/unistr/test-strnlen.h: New file.
53505         Tests for module 'unistr/u32-strlen'.
53506         * modules/unistr/u32-strlen-tests: New file.
53507         * tests/unistr/test-u32-strlen.c: New file.
53509         Tests for module 'unistr/u16-strlen'.
53510         * modules/unistr/u16-strlen-tests: New file.
53511         * tests/unistr/test-u16-strlen.c: New file.
53513         Tests for module 'unistr/u8-strlen'.
53514         * modules/unistr/u8-strlen-tests: New file.
53515         * tests/unistr/test-u8-strlen.c: New file.
53517         Tests for module 'unistr/u32-prev'.
53518         * modules/unistr/u32-prev-tests: New file.
53519         * tests/unistr/test-u32-prev.c: New file.
53521         Tests for module 'unistr/u16-prev'.
53522         * modules/unistr/u16-prev-tests: New file.
53523         * tests/unistr/test-u16-prev.c: New file.
53525         Tests for module 'unistr/u8-prev'.
53526         * modules/unistr/u8-prev-tests: New file.
53527         * tests/unistr/test-u8-prev.c: New file.
53529         Tests for module 'unistr/u32-next'.
53530         * modules/unistr/u32-next-tests: New file.
53531         * tests/unistr/test-u32-next.c: New file.
53533         Tests for module 'unistr/u16-next'.
53534         * modules/unistr/u16-next-tests: New file.
53535         * tests/unistr/test-u16-next.c: New file.
53537         Tests for module 'unistr/u8-next'.
53538         * modules/unistr/u8-next-tests: New file.
53539         * tests/unistr/test-u8-next.c: New file.
53541         Tests for module 'unistr/u32-strmbtouc'.
53542         * modules/unistr/u32-strmbtouc-tests: New file.
53543         * tests/unistr/test-u32-strmbtouc.c: New file.
53545         Tests for module 'unistr/u16-strmbtouc'.
53546         * modules/unistr/u16-strmbtouc-tests: New file.
53547         * tests/unistr/test-u16-strmbtouc.c: New file.
53549         Tests for module 'unistr/u8-strmbtouc'.
53550         * modules/unistr/u8-strmbtouc-tests: New file.
53551         * tests/unistr/test-u8-strmbtouc.c: New file.
53553         Tests for module 'unistr/u32-strmblen'.
53554         * modules/unistr/u32-strmblen-tests: New file.
53555         * tests/unistr/test-u32-strmblen.c: New file.
53557         Tests for module 'unistr/u16-strmblen'.
53558         * modules/unistr/u16-strmblen-tests: New file.
53559         * tests/unistr/test-u16-strmblen.c: New file.
53561         Tests for module 'unistr/u8-strmblen'.
53562         * modules/unistr/u8-strmblen-tests: New file.
53563         * tests/unistr/test-u8-strmblen.c: New file.
53565         Tests for module 'unistr/u32-cpy-alloc'.
53566         * modules/unistr/u32-cpy-alloc-tests: New file.
53567         * tests/unistr/test-u32-cpy-alloc.c: New file.
53569         Tests for module 'unistr/u16-cpy-alloc'.
53570         * modules/unistr/u16-cpy-alloc-tests: New file.
53571         * tests/unistr/test-u16-cpy-alloc.c: New file.
53573         Tests for module 'unistr/u8-cpy-alloc'.
53574         * modules/unistr/u8-cpy-alloc-tests: New file.
53575         * tests/unistr/test-u8-cpy-alloc.c: New file.
53576         * tests/unistr/test-cpy-alloc.h: New file.
53578         Tests for module 'unistr/u32-mbsnlen'.
53579         * modules/unistr/u32-mbsnlen-tests: New file.
53580         * tests/unistr/test-u32-mbsnlen.c: New file.
53582         Tests for module 'unistr/u16-mbsnlen'.
53583         * modules/unistr/u16-mbsnlen-tests: New file.
53584         * tests/unistr/test-u16-mbsnlen.c: New file.
53586         Tests for module 'unistr/u8-mbsnlen'.
53587         * modules/unistr/u8-mbsnlen-tests: New file.
53588         * tests/unistr/test-u8-mbsnlen.c: New file.
53590         Tests for module 'unistr/u32-chr'.
53591         * modules/unistr/u32-chr-tests: New file.
53592         * tests/unistr/test-u32-chr.c: New file.
53594         Tests for module 'unistr/u16-chr'.
53595         * modules/unistr/u16-chr-tests: New file.
53596         * tests/unistr/test-u16-chr.c: New file.
53598         Tests for module 'unistr/u8-chr'.
53599         * modules/unistr/u8-chr-tests: New file.
53600         * tests/unistr/test-u8-chr.c: New file.
53601         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
53603         Tests for module 'unistr/u32-cmp2'.
53604         * modules/unistr/u32-cmp2-tests: New file.
53605         * tests/unistr/test-u32-cmp2.c: New file.
53607         Tests for module 'unistr/u16-cmp2'.
53608         * modules/unistr/u16-cmp2-tests: New file.
53609         * tests/unistr/test-u16-cmp2.c: New file.
53611         Tests for module 'unistr/u8-cmp2'.
53612         * modules/unistr/u8-cmp2-tests: New file.
53613         * tests/unistr/test-u8-cmp2.c: New file.
53614         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
53616         Tests for module 'unistr/u32-cmp'.
53617         * modules/unistr/u32-cmp-tests: New file.
53618         * tests/unistr/test-u32-cmp.c: New file.
53620         Tests for module 'unistr/u16-cmp'.
53621         * modules/unistr/u16-cmp-tests: New file.
53622         * tests/unistr/test-u16-cmp.c: New file.
53624         Tests for module 'unistr/u8-cmp'.
53625         * modules/unistr/u8-cmp-tests: New file.
53626         * tests/unistr/test-u8-cmp.c: New file.
53627         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
53629         Tests for module 'unistr/u32-set'.
53630         * modules/unistr/u32-set-tests: New file.
53631         * tests/unistr/test-u32-set.c: New file.
53633         Tests for module 'unistr/u16-set'.
53634         * modules/unistr/u16-set-tests: New file.
53635         * tests/unistr/test-u16-set.c: New file.
53637         Tests for module 'unistr/u8-set'.
53638         * modules/unistr/u8-set-tests: New file.
53639         * tests/unistr/test-u8-set.c: New file.
53640         * tests/unistr/test-set.h: New file.
53642         Tests for module 'unistr/u32-move'.
53643         * modules/unistr/u32-move-tests: New file.
53644         * tests/unistr/test-u32-move.c: New file.
53646         Tests for module 'unistr/u16-move'.
53647         * modules/unistr/u16-move-tests: New file.
53648         * tests/unistr/test-u16-move.c: New file.
53650         Tests for module 'unistr/u8-move'.
53651         * modules/unistr/u8-move-tests: New file.
53652         * tests/unistr/test-u8-move.c: New file.
53653         * tests/unistr/test-move.h: New file.
53655         Tests for module 'unistr/u32-cpy'.
53656         * modules/unistr/u32-cpy-tests: New file.
53657         * tests/unistr/test-u32-cpy.c: New file.
53659         Tests for module 'unistr/u16-cpy'.
53660         * modules/unistr/u16-cpy-tests: New file.
53661         * tests/unistr/test-u16-cpy.c: New file.
53663         Tests for module 'unistr/u8-cpy'.
53664         * modules/unistr/u8-cpy-tests: New file.
53665         * tests/unistr/test-u8-cpy.c: New file.
53666         * tests/unistr/test-cpy.h: New file.
53668 2010-01-09  Bruno Haible  <bruno@clisp.org>
53670         Tests for module 'unistr/u32-uctomb'.
53671         * modules/unistr/u32-uctomb-tests: New file.
53672         * tests/unistr/test-u32-uctomb.c: New file.
53674         Tests for module 'unistr/u16-uctomb'.
53675         * modules/unistr/u16-uctomb-tests: New file.
53676         * tests/unistr/test-u16-uctomb.c: New file.
53678         Tests for module 'unistr/u8-uctomb'.
53679         * modules/unistr/u8-uctomb-tests: New file.
53680         * tests/unistr/test-u8-uctomb.c: New file.
53682         Tests for module 'unistr/u32-mbtoucr'.
53683         * modules/unistr/u32-mbtoucr-tests: New file.
53684         * tests/unistr/test-u32-mbtoucr.c: New file.
53686         Tests for module 'unistr/u16-mbtoucr'.
53687         * modules/unistr/u16-mbtoucr-tests: New file.
53688         * tests/unistr/test-u16-mbtoucr.c: New file.
53690         Tests for module 'unistr/u8-mbtoucr'.
53691         * modules/unistr/u8-mbtoucr-tests: New file.
53692         * tests/unistr/test-u8-mbtoucr.c: New file.
53694         Tests for module 'unistr/u32-mbtouc'.
53695         * modules/unistr/u32-mbtouc-tests: New file.
53696         * tests/unistr/test-u32-mbtouc.c: New file.
53698         Tests for module 'unistr/u16-mbtouc'.
53699         * modules/unistr/u16-mbtouc-tests: New file.
53700         * tests/unistr/test-u16-mbtouc.c: New file.
53702         Tests for module 'unistr/u8-mbtouc'.
53703         * modules/unistr/u8-mbtouc-tests: New file.
53704         * tests/unistr/test-u8-mbtouc.c: New file.
53706         Tests for module 'unistr/u32-mbtouc-unsafe'.
53707         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
53708         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
53709         * tests/unistr/test-u32-mbtouc.h: New file.
53711         Tests for module 'unistr/u16-mbtouc-unsafe'.
53712         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
53713         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
53714         * tests/unistr/test-u16-mbtouc.h: New file.
53716         Tests for module 'unistr/u8-mbtouc-unsafe'.
53717         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
53718         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
53719         * tests/unistr/test-u8-mbtouc.h: New file.
53721         Tests for module 'unistr/u32-mblen'.
53722         * modules/unistr/u32-mblen-tests: New file.
53723         * tests/unistr/test-u32-mblen.c: New file.
53725         Tests for module 'unistr/u16-mblen'.
53726         * modules/unistr/u16-mblen-tests: New file.
53727         * tests/unistr/test-u16-mblen.c: New file.
53729         Tests for module 'unistr/u8-mblen'.
53730         * modules/unistr/u8-mblen-tests: New file.
53731         * tests/unistr/test-u8-mblen.c: New file.
53733         Tests for module 'unistr/u32-to-u16'.
53734         * modules/unistr/u32-to-u16-tests: New file.
53735         * tests/unistr/test-u32-to-u16.c: New file.
53737         Tests for module 'unistr/u32-to-u8'.
53738         * modules/unistr/u32-to-u8-tests: New file.
53739         * tests/unistr/test-u32-to-u8.c: New file.
53741         Tests for module 'unistr/u16-to-u32'.
53742         * modules/unistr/u16-to-u32-tests: New file.
53743         * tests/unistr/test-u16-to-u32.c: New file.
53745         Tests for module 'unistr/u16-to-u8'.
53746         * modules/unistr/u16-to-u8-tests: New file.
53747         * tests/unistr/test-u16-to-u8.c: New file.
53749         Tests for module 'unistr/u8-to-u32'.
53750         * modules/unistr/u8-to-u32-tests: New file.
53751         * tests/unistr/test-u8-to-u32.c: New file.
53753         Tests for module 'unistr/u8-to-u16'.
53754         * modules/unistr/u8-to-u16-tests: New file.
53755         * tests/unistr/test-u8-to-u16.c: New file.
53757         Tests for module 'unistr/u32-check'.
53758         * modules/unistr/u32-check-tests: New file.
53759         * tests/unistr/test-u32-check.c: New file.
53761         Tests for module 'unistr/u16-check'.
53762         * modules/unistr/u16-check-tests: New file.
53763         * tests/unistr/test-u16-check.c: New file.
53765         Tests for module 'unistr/u8-check'.
53766         * modules/unistr/u8-check-tests: New file.
53767         * tests/unistr/test-u8-check.c: New file.
53769         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
53770         (category_equals): New function.
53771         (main): Add more tests.
53772         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
53774         * tests/unictype/test-bidi_byname.c (main): Add more tests.
53776 2010-01-10  Bruno Haible  <bruno@clisp.org>
53778         unistr/u*-strcoll: Try harder to distinguish different strings.
53779         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
53780         compare s1 and s2 to see if they are different.
53782 2010-01-10  Bruno Haible  <bruno@clisp.org>
53784         unistr/u*-stpncpy: Fix the return value.
53785         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
53786         description of the return value consistent with stpncpy in glibc.
53787         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
53788         written non-NUL unit.
53790 2010-01-10  Bruno Haible  <bruno@clisp.org>
53792         unistr/u*-next: Add missing dependencies.
53793         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
53794         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
53795         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
53797 2010-01-10  Bruno Haible  <bruno@clisp.org>
53799         unistr/u8-mbsnlen: Fix return value for incomplete character.
53800         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
53801         u8_mblen.
53802         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
53803         Remove unistr/u8-mblen.
53804         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
53805         u16_mblen.
53806         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
53807         Remove unistr/u16-mblen.
53809 2010-01-10  Bruno Haible  <bruno@clisp.org>
53811         wchar: Fix compilation error when <wchar.h> is used from coreutils.
53812         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
53813         Reported by Brian Gough <bjg@gnu.org> and
53814         Chris Clayton <chris2553@googlemail.com> via
53815         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
53817 2010-01-09  Bruno Haible  <bruno@clisp.org>
53819         unistr/u16-to-u32: Reject invalid input.
53820         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
53821         u16_mbtouc.
53822         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
53823         Remove unistr/u16-mbtouc.
53825         unistr/u16-to-u8: Reject invalid input.
53826         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
53827         u16_mbtouc.
53828         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
53829         Remove unistr/u16-mbtouc.
53831         unistr/u8-to-u32: Reject invalid input.
53832         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
53833         u8_mbtouc.
53834         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
53835         Remove unistr/u8-mbtouc.
53837         unistr/u8-to-u16: Reject invalid input.
53838         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
53839         u8_mbtouc.
53840         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
53841         Remove unistr/u8-mbtouc.
53843 2010-01-09  Bruno Haible  <bruno@clisp.org>
53845         Tests for module 'getlogin'.
53846         * modules/getlogin-tests: New file.
53847         * tests/test-getlogin.c: New file.
53849         New module 'getlogin'.
53850         * lib/unistd.in.h (getlogin): New declaration.
53851         * lib/getlogin.c: New file.
53852         * m4/getlogin.m4: New file.
53853         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
53854         HAVE_GETLOGIN.
53855         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
53856         HAVE_GETLOGIN.
53857         * modules/getlogin: New file.
53858         * doc/posix-functions/getlogin.texi: Mention the new module.
53859         Reported by John W. Eaton <jwe@gnu.org>.
53861 2010-01-09  Bruno Haible  <bruno@clisp.org>
53863         getlogin_r: Support for native Windows.
53864         * lib/getlogin_r.c: Include <windows.h>
53865         (getlogin_r): Implement for native Windows.
53866         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
53867         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
53868         via John W. Eaton <jwe@gnu.org>.
53870 2010-01-09  Bruno Haible  <bruno@clisp.org>
53872         getlogin_r: Small fixes.
53873         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
53874         succeeds.
53875         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
53876         before testing whether getlogin_r is declared. No need to set
53877         HAVE_DECL_GETLOGIN_R to 1.
53878         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
53880 2010-01-09  Bruno Haible  <bruno@clisp.org>
53882         * lib/unistd.in.h (getlogin_r): Add comment.
53884 2010-01-09  Bruno Haible  <bruno@clisp.org>
53886         Tests for module 'getlogin_r'.
53887         * modules/getlogin_r-tests: New file.
53888         * tests/test-getlogin_r.c: New file.
53890 2010-01-09  Jim Meyering  <meyering@redhat.com>
53892         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
53893         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
53894         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
53896 2010-01-08  Simon Josefsson  <simon@josefsson.org>
53898         * lib/dup2.c (rpl_dup2): Improve comment.
53900 2010-01-08  Eric Blake  <ebb9@byu.net>
53902         maint.mk: allow packages to add makefile @@ exceptions
53903         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
53904         (sc_makefile_check): Rename...
53905         (sc_makefile_at_at_check): ...to this, and use hook.
53907         dup2: work around mingw bug
53908         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
53909         Reported by Simon Josefsson.
53911 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
53913         glob: Fix C++ compilation.
53914         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
53915         C++.
53917 2010-01-07  Bruno Haible  <bruno@clisp.org>
53919         Fix indentation of wctype.in.h, broken since 2007-01-06.
53920         * lib/wctype.in.h: Fix indentation of preprocessor directives.
53922 2010-01-07  Bruno Haible  <bruno@clisp.org>
53924         mbslen: Avoid collision with system function.
53925         * lib/string.in.h [MirBSD]: Include <wchar.h>.
53926         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
53927         * m4/mbslen.m4: New file.
53928         * modules/mbslen (Files): Add it.
53929         (configure.ac): Invoke gl_MBSLEN.
53930         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
53931         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
53932         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
53933         via Ian Beckwith <ianb@erislabs.net>.
53935 2010-01-07  Bruno Haible  <bruno@clisp.org>
53937         dirent: Document the last fix.
53938         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
53940 2010-01-07  Bruno Haible  <bruno@clisp.org>
53942         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
53943         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
53944         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
53945         va_list are defined.
53946         * doc/posix-headers/stdio.texi: Document the bug of missing types.
53947         Reported by Eric Blake.
53949 2010-01-07  Bruno Haible  <bruno@clisp.org>
53951         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
53952         * modules/xlist (Depends-on): Add 'list',
53953         * modules/xoset (Depends-on): Add 'oset'.
53954         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
53956 2010-01-07  Bruno Haible  <bruno@clisp.org>
53958         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
53959         * doc/posix-functions/strncasecmp.texi: Likewise.
53961 2010-01-07  Bruno Haible  <bruno@clisp.org>
53963         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
53965 2010-01-07  John W. Eaton  <jwe@octave.org>
53967         wctype: allow C++ use
53968         * lib/wctype.in.h: Add extern "C" block for C++.
53970 2010-01-06  Eric Blake  <ebb9@byu.net>
53972         maint.mk: detect incorrect GFDL usage
53973         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
53975 2010-01-06  Jim Meyering  <meyering@redhat.com>
53976         and Eric Blake  <ebb9@byu.net>
53978         maint.mk: ignore multi-line copyright in NEWS
53979         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
53981 2010-01-06  Eric Blake  <ebb9@byu.net>
53983         select: add missing dependency
53984         * modules/select-tests (Depends-on): Move sockets dependency...
53985         * modules/select (Depends-on): ...here.
53986         Reported by Ian Beckwith.
53988         doc: regenerate INSTALL
53989         * doc/INSTALL: Reflect recent autoconf update.
53990         * doc/INSTALL.ISO: Likewise.
53991         * doc/INSTALL.UTF-8: Likewise.
53993         pread: fix compilation on glibc
53994         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
53995         Reported by Ralf Wildenhues.
53997         dirent: fix test failure
53998         * lib/dirent.in.h (includes): Guarantee ino_t.
53999         Reported by Ralf Wildenhues.
54001 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
54003         linkat, renameat: avoid bad free
54004         * lib/at-func2.c (at_func2): Fix typo.
54005         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
54007 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54009         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
54010         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
54011         to avoid failure of symlink test later.
54013 2010-01-06  Eric Blake  <ebb9@byu.net>
54015         stdio, unistd: guarantee ssize_t
54016         * lib/unistd.in.h (includes): Ensure that types required by POSIX
54017         2008 are exposed when needed.
54018         * lib/stdio.in.h (includes): Likewise.
54019         Reported by Ralf Wildenhues.
54021 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
54023         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
54024         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
54025         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
54027 2010-01-06  Jim Meyering  <meyering@redhat.com>
54029         readtokens: this module *does* require xalloc.h
54030         It uses only functions that were omitted by the old syntax-check rule.
54031         * lib/readtokens.c: Include "xalloc.h" once again.
54032         * modules/readtokens (Depends-on): Add xalloc.
54033         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
54035 2010-01-05  Eric Blake  <ebb9@byu.net>
54037         maint: support 'make announcement' from a VPATH build
54038         * top/maint.mk (announcement): Look for correct NEWS file.
54040 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
54042         utimens (fdutimens): ignore a negative FD, per contract
54043         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
54044         when we have a valid file descriptor.  Otherwise, using a brand
54045         new glibc (with just-patched futimens that now fails with EBADF)
54046         would cause this function to fail with ENOSYS.
54047         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
54048         See also http://bugzilla.redhat.com/552320.
54050 2010-01-05  Eric Blake  <ebb9@byu.net>
54052         strcase: document what it provides
54053         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
54054         gnulib module.
54055         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
54056         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
54058 2010-01-05  Jim Meyering  <meyering@redhat.com>
54060         maint: remove useless inclusions of "xalloc.h"
54061         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
54062         * lib/readtokens.c: Likewise.
54063         * lib/same.c: Likewise.
54064         * modules/getloadavg (Depends-on): Remove xalloc.
54065         * modules/readtokens: Likewise.
54066         * modules/same: Likewise.
54068         maint.mk: include 4 more function names in alloca.h-checking regexp
54069         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
54070         regexp.  Before, we would give a false-positive (saying alloca.h
54071         is included unnecessarily) when the only uses involved omitted symbols.
54073         xalloc.h: use consistent formatting
54074         * lib/xalloc.h: Move declarations to start in the first column.
54076 2010-01-05  Eric Blake  <ebb9@byu.net>
54078         mkdir: avoid xalloc
54079         * lib/mkdir.c (includes): Drop unused header.
54080         Reported by John W. Eaton.
54082 2010-01-04  Jim Meyering  <meyering@redhat.com>
54084         nl_langinfo: avoid configure-time syntax error
54085         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
54086         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
54087         the empty string.  Don't let that provoke a shell syntax error.
54089         regcomp, regexec, fnmatch: avoid array bounds read error
54090         * lib/regcomp.c (build_equiv_class): From glibc:
54091         Use only the low 24 bits of a findidx return value as an index
54092         into the weights array.  Patch by Ulrich Drepper:
54093         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
54094         * lib/regexec.c (check_node_accept_bytes): Likewise.
54095         * lib/fnmatch_loop.c (FCT): Likewise.
54097         regcomp: skip collseq lookup when there are no rules
54098         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
54099         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
54101         regcomp: recognize ill-formed { } expressions
54102         * lib/regcomp.c (parse_dup_op): From glibc:
54103         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
54105         regcomp: fix typo in comment
54106         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
54107         s/satisfy/satisfies/.
54109         regcomp: sync from glibc: remove dead store
54110         * lib/regcomp.c (duplicate_node_closure): Remove useless
54111         search_duplicated_node call and dead store.
54113         regcomp: sync from glibc; always use nl_langinfo
54114         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
54115         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
54116         * modules/regex (Depends-on): Add nl_langinfo.
54118 2010-01-04  Eric Blake  <ebb9@byu.net>
54120         fdopendir: fix configure test
54121         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
54123 2010-01-01  Bruno Haible  <bruno@clisp.org>
54125         wchar: Remove unused configure check.
54126         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
54128 2010-01-01  Eric Blake  <ebb9@byu.net>
54130         headers: make check of system header explicit
54131         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
54132         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
54133         ourselves.
54134         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
54135         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
54136         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
54137         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
54138         internals.
54139         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
54140         missing.
54141         Suggested by Bruno Haible.
54143 2010-01-01  Jim Meyering  <meyering@redhat.com>
54145         ChangeLog: tweak to eliminate unnecessary copyright line
54146         * ChangeLog: Remove a copyright line that was mistakenly updated
54147         by today's update-copyright run.  Reported by Eric Blake.
54149         test-update-copyright: don't let envvar setting cause test failure
54150         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
54152 2010-01-01  Bruno Haible  <bruno@clisp.org>
54154         localename: Avoid gcc warning.
54155         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
54156         function if it is not used.
54158 2010-01-01  Jim Meyering  <meyering@redhat.com>
54160         update nearly all FSF copyright year lists to include 2010
54161         Use the same procedure as for 2009, outlined in
54162         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
54164         version-etc: set COPYRIGHT_YEAR to 2010
54165         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
54167 2009-12-31  Eric Blake  <ebb9@byu.net>
54169         doc: correct availability of cygwin 1.5.x getopt
54170         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
54171         variables.
54172         * doc/posix-functions/opterr.texi (opterr): Likewise.
54173         * doc/posix-functions/optind.texi (optind): Likewise.
54174         * doc/posix-functions/optopt.texi (optopt): Likewise.
54175         * doc/posix-functions/tzname.texi (tzname): Likewise.
54177         openat: update maintainer
54178         * modules/openat (Maintainer): Add myself.
54180         utimens: avoid shadowing warning
54181         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
54182         buffers into one, to avoid shadowing, as well as avoiding a
54183         redundant stat.
54184         Reported by Jim Meyering.
54186         test-dup2: avoid compiler warning
54187         * tests/test-dup2.c (is_inheritable): Only define if used.
54189 2010-01-01  Bruno Haible  <bruno@clisp.org>
54191         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
54192         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
54193         defined, use wctomb instead of wcrtomb.
54195 2010-01-01  Bruno Haible  <bruno@clisp.org>
54197         iconv: Reject native Solaris iconv.
54198         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
54199         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
54201 2009-12-31  Bruno Haible  <bruno@clisp.org>
54203         * tests/test-signal.c (main): Remove test of 'SIG'.
54205 2009-12-31  Bruno Haible  <bruno@clisp.org>
54207         spawn: Fix incomplete fix.
54208         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
54209         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
54210         warnings for GNULIB_POSIXCHECK again.
54211         Reported by Eric Blake.
54213 2009-12-31  Bruno Haible  <bruno@clisp.org>
54215         Avoid namespace pollution on glibc systems.
54216         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
54217         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
54218         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
54219         glibc systems.
54221 2009-12-31  Bruno Haible  <bruno@clisp.org>
54223         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
54224         (gl_REPLACE_WCHAR_H): Turn into a no-op.
54225         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
54226         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
54227         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
54228         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
54229         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
54231 2009-12-31  Bruno Haible  <bruno@clisp.org>
54233         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
54234         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
54235         afterwards.
54237 2009-12-31  Bruno Haible  <bruno@clisp.org>
54239         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
54240         SYS_UTSNAME_H.
54242 2009-12-31  Bruno Haible  <bruno@clisp.org>
54244         spawn: Fix misapplied patch.
54245         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
54246         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
54247         warnings for GNULIB_POSIXCHECK.
54249 2009-12-31  Bruno Haible  <bruno@clisp.org>
54251         times: Update after sys_times changed.
54252         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
54253         * modules/times (Files): Add it.
54254         (configure.ac): Invoke gl_FUNC_TIMES.
54256 2009-12-31  Bruno Haible  <bruno@clisp.org>
54258         Use AC_C_INLINE where necessary.
54259         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
54260         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
54261         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
54262         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
54263         * m4/mbfile.m4 (gl_MBFILE): Likewise.
54264         * m4/mbiter.m4 (gl_MBITER): Likewise.
54265         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
54266         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
54267         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
54268         * modules/u64 (configure.ac): Likewise.
54270 2009-12-31  Bruno Haible  <bruno@clisp.org>
54272         Use AC_C_INLINE instead of module 'inline' where possible.
54273         * modules/inline (Description): Clarify purpose.
54274         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
54275         * modules/count-one-bits (Depends-on): Remove inline.
54276         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
54277         * modules/openat (Depends-on): Remove inline.
54278         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
54279         instead of depending on module 'inline'.
54280         * modules/filevercmp (Depends-on, configure.ac): Likewise.
54281         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
54282         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
54283         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
54284         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
54285         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
54286         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
54287         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
54288         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
54289         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
54290         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
54291         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
54292         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
54293         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
54294         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
54295         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
54296         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
54297         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
54298         Likewise.
54299         * modules/unictype/property-ascii-hex-digit (Depends-on,
54300         configure.ac): Likewise.
54301         * modules/unictype/property-bidi-arabic-digit (Depends-on,
54302         configure.ac): Likewise.
54303         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
54304         configure.ac): Likewise.
54305         * modules/unictype/property-bidi-block-separator (Depends-on,
54306         configure.ac): Likewise.
54307         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
54308         configure.ac): Likewise.
54309         * modules/unictype/property-bidi-common-separator (Depends-on,
54310         configure.ac): Likewise.
54311         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
54312         Likewise.
54313         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
54314         configure.ac): Likewise.
54315         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
54316         configure.ac): Likewise.
54317         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
54318         configure.ac): Likewise.
54319         * modules/unictype/property-bidi-european-digit (Depends-on,
54320         configure.ac): Likewise.
54321         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
54322         configure.ac): Likewise.
54323         * modules/unictype/property-bidi-left-to-right (Depends-on,
54324         configure.ac): Likewise.
54325         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
54326         configure.ac): Likewise.
54327         * modules/unictype/property-bidi-other-neutral (Depends-on,
54328         configure.ac): Likewise.
54329         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
54330         Likewise.
54331         * modules/unictype/property-bidi-segment-separator (Depends-on,
54332         configure.ac): Likewise.
54333         * modules/unictype/property-bidi-whitespace (Depends-on,
54334         configure.ac): Likewise.
54335         * modules/unictype/property-combining (Depends-on, configure.ac):
54336         Likewise.
54337         * modules/unictype/property-composite (Depends-on, configure.ac):
54338         Likewise.
54339         * modules/unictype/property-currency-symbol (Depends-on,
54340         configure.ac): Likewise.
54341         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
54342         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
54343         Likewise.
54344         * modules/unictype/property-default-ignorable-code-point (Depends-on,
54345         configure.ac): Likewise.
54346         * modules/unictype/property-deprecated (Depends-on, configure.ac):
54347         Likewise.
54348         * modules/unictype/property-diacritic (Depends-on, configure.ac):
54349         Likewise.
54350         * modules/unictype/property-extender (Depends-on, configure.ac):
54351         Likewise.
54352         * modules/unictype/property-format-control (Depends-on, configure.ac):
54353         Likewise.
54354         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
54355         Likewise.
54356         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
54357         Likewise.
54358         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
54359         Likewise.
54360         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
54361         Likewise.
54362         * modules/unictype/property-hyphen (Depends-on, configure.ac):
54363         Likewise.
54364         * modules/unictype/property-id-continue (Depends-on, configure.ac):
54365         Likewise.
54366         * modules/unictype/property-id-start (Depends-on, configure.ac):
54367         Likewise.
54368         * modules/unictype/property-ideographic (Depends-on, configure.ac):
54369         Likewise.
54370         * modules/unictype/property-ids-binary-operator (Depends-on,
54371         configure.ac): Likewise.
54372         * modules/unictype/property-ids-trinary-operator (Depends-on,
54373         configure.ac): Likewise.
54374         * modules/unictype/property-ignorable-control (Depends-on,
54375         configure.ac): Likewise.
54376         * modules/unictype/property-iso-control (Depends-on, configure.ac):
54377         Likewise.
54378         * modules/unictype/property-join-control (Depends-on, configure.ac):
54379         Likewise.
54380         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
54381         Likewise.
54382         * modules/unictype/property-line-separator (Depends-on, configure.ac):
54383         Likewise.
54384         * modules/unictype/property-logical-order-exception (Depends-on,
54385         configure.ac): Likewise.
54386         * modules/unictype/property-lowercase (Depends-on, configure.ac):
54387         Likewise.
54388         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
54389         * modules/unictype/property-non-break (Depends-on, configure.ac):
54390         Likewise.
54391         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
54392         Likewise.
54393         * modules/unictype/property-numeric (Depends-on, configure.ac):
54394         Likewise.
54395         * modules/unictype/property-other-alphabetic (Depends-on,
54396         configure.ac): Likewise.
54397         * modules/unictype/property-other-default-ignorable-code-point
54398         (Depends-on, configure.ac): Likewise.
54399         * modules/unictype/property-other-grapheme-extend (Depends-on,
54400         configure.ac): Likewise.
54401         * modules/unictype/property-other-id-continue (Depends-on,
54402         configure.ac): Likewise.
54403         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
54404         Likewise.
54405         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
54406         Likewise.
54407         * modules/unictype/property-other-math (Depends-on, configure.ac):
54408         Likewise.
54409         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
54410         Likewise.
54411         * modules/unictype/property-paired-punctuation (Depends-on,
54412         configure.ac): Likewise.
54413         * modules/unictype/property-paragraph-separator (Depends-on,
54414         configure.ac): Likewise.
54415         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
54416         Likewise.
54417         * modules/unictype/property-pattern-white-space (Depends-on,
54418         configure.ac): Likewise.
54419         * modules/unictype/property-private-use (Depends-on, configure.ac):
54420         Likewise.
54421         * modules/unictype/property-punctuation (Depends-on, configure.ac):
54422         Likewise.
54423         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
54424         Likewise.
54425         * modules/unictype/property-radical (Depends-on, configure.ac):
54426         Likewise.
54427         * modules/unictype/property-sentence-terminal (Depends-on,
54428         configure.ac): Likewise.
54429         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
54430         Likewise.
54431         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
54432         * modules/unictype/property-terminal-punctuation (Depends-on,
54433         configure.ac): Likewise.
54434         * modules/unictype/property-titlecase (Depends-on, configure.ac):
54435         Likewise.
54436         * modules/unictype/property-unassigned-code-value (Depends-on,
54437         configure.ac): Likewise.
54438         * modules/unictype/property-unified-ideograph (Depends-on,
54439         configure.ac): Likewise.
54440         * modules/unictype/property-uppercase (Depends-on, configure.ac):
54441         Likewise.
54442         * modules/unictype/property-variation-selector (Depends-on,
54443         configure.ac): Likewise.
54444         * modules/unictype/property-white-space (Depends-on, configure.ac):
54445         Likewise.
54446         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
54447         Likewise.
54448         * modules/unictype/property-xid-start (Depends-on, configure.ac):
54449         Likewise.
54450         * modules/unictype/property-zero-width (Depends-on, configure.ac):
54451         Likewise.
54452         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
54453         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
54454         Likewise.
54456 2009-12-31  Bruno Haible  <bruno@clisp.org>
54458         Remove unnecessary AC_C_INLINE invocation.
54459         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
54460         since 2009-08-21.
54462 2009-12-31  Jim Meyering  <meyering@redhat.com>
54464         maint.mk: don't require explicit gpg_key_ID in cfg.mk
54465         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
54466         With this change, we can all remove the gpg_key_ID = ... definition
54467         from our respective cfg.mk files.
54469         maint.mk: create announcement template in ~/, not in /tmp
54470         * top/maint.mk (emit_upload_commands): Adjust.
54471         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
54472         Remove temporary file, .ci-msg.
54474 2009-12-31  Eric Blake  <ebb9@byu.net>
54476         link-warning: always build headers with link warnings
54477         * modules/arpa_inet (Makefile.am): Always build replacement
54478         header.
54479         * modules/ctype (Makefile.am): Likewise.
54480         * modules/dirent (Makefile.am): Likewise.
54481         * modules/inttypes (Makefile.am): Likewise.
54482         * modules/langinfo (Makefile.am): Likewise.
54483         * modules/locale (Makefile.am): Likewise.
54484         * modules/spawn (Makefile.am): Likewise.
54485         * modules/sys_file (Makefile.am): Likewise.
54486         * modules/sys_ioctl (Makefile.am): Likewise.
54487         * modules/sys_select (Makefile.am): Likewise.
54488         * modules/sys_socket (Makefile.am): Likewise.
54489         * modules/sys_times (Makefile.am): Likewise.
54490         * modules/sys_utsname (Makefile.am): Likewise.
54491         * modules/sys_wait (Makefile.am): Likewise.
54492         * modules/wchar (Makefile.am): Likewise.
54493         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
54494         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
54495         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
54496         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
54497         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
54498         Likewise.
54499         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
54500         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
54501         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
54502         Likewise.
54503         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
54504         Likewise.
54505         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
54506         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
54507         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
54508         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
54509         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
54510         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
54511         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
54512         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
54513         (gl_WCHAR_H_DEFAULTS): Likewise.
54515 2009-12-31  Eric Blake  <ebb9@byu.net>
54517         signal, spawn: use link warnings
54518         * lib/signal.in.h (sigset_t): Make unconditional.
54519         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
54520         (sigpending, sigprocmask, sigaction): Add link warnings.
54521         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
54522         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
54523         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
54524         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
54525         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
54526         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
54527         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
54528         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
54529         (posix_spawn_file_actions_destroy)
54530         (posix_spawn_file_actions_addopen)
54531         (posix_spawn_file_actions_addclose)
54532         (posix_spawn_file_actions_adddup2): Likewise.
54533         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
54534         * tests/test-signal.c (main): Enhance test.
54536         spawn: improve wrapper support
54537         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
54538         (gl_SPAWN_H_DEFAULTS): New defaults.
54539         * modules/spawn (Makefile.am): Substitute them.
54540         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
54541         Only declare if missing or broken.
54543         sys_times, sys_utsname: use include_next
54544         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
54545         header.
54546         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
54547         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
54548         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
54549         * modules/sys_times (Depends-on): Add include_next.
54550         (Makefile.am): Substitute additional values.
54551         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
54552         * lib/sys_times.in.h (includes): Include native header, if
54553         available.
54554         * lib/sys_utsname.in.h (includes): Likewise.
54555         * tests/test-sys_times.c (main): Enhance test.
54557         fdutimensat: revert prior patch
54558         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
54559         utimens.h.
54560         Reported by Bruno Haible.
54562 2009-12-30  Eric Blake  <ebb9@byu.net>
54564         sys_wait: drop link-warning dependency
54565         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
54566         link-warning efforts.
54567         * lib/sys_wait.in.h: Likewise.
54569         fdutimensat: remove bogus dependency
54570         * modules/fdutimensat (Depends-on): Drop inline.
54572         unistd: fix typo
54573         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
54575 2009-12-30  Bruno Haible  <bruno@clisp.org>
54577         Fix compilation error with Solaris cc.
54578         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
54579         * lib/unicase/u16-is-invariant.c: Likewise.
54580         * lib/unicase/u32-is-invariant.c: Likewise.
54581         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
54583 2009-12-30  Bruno Haible  <bruno@clisp.org>
54585         Fix test crash.
54586         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
54587         locales.
54588         Reported by Simon Josefsson <simon@josefsson.org>.
54590 2009-12-30  Bruno Haible  <bruno@clisp.org>
54592         Fix compilation error on most platforms.
54593         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
54594         Reported by Simon Josefsson <simon@josefsson.org>
54595         and Nelson H. F. Beebe <beebe@math.utah.edu>.
54597 2009-12-30  Eric Blake  <ebb9@byu.net>
54599         futimens, utimensat: work around ntfs-3g bug
54600         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
54601         a ctime bug is present, and expand workaround to cover ntfs-3g.
54602         * lib/utimens.c (fdutimens, lutimens): Likewise.
54603         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
54604         (validate_timespec): Adjust return value.
54605         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
54606         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
54607         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
54609 2009-12-29  Eric Blake  <ebb9@byu.net>
54611         link-warning: make usage consistent
54612         * modules/ctype (Depends-on): Add link-warning.
54613         (Makefile.am): Update rules accordingly.
54614         * modules/langinfo (Depends-on, Makefile.am): Likewise.
54615         * modules/locale (Depends-on, Makefile.am): Likewise.
54616         * modules/sys_file (Makefile.am): Likewise.
54617         * modules/getopt-posix (Makefile.am): Delete unused link warning
54618         efforts.
54619         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
54620         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
54621         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
54622         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
54624         stdio: remove unused variables
54625         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
54626         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
54627         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
54629         tests: test more substitute headers
54630         * modules/ctype-tests: New file.
54631         * modules/dirent-tests: Likewise.
54632         * modules/spawn-tests: Likewise.
54633         * modules/sys_file-tests: Likewise.
54634         * modules/sys_ioctl-tests: Likewise.
54635         * modules/sys_wait-tests: Likewise.
54636         * tests/test-ctype.c: Likewise.
54637         * tests/test-dirent.c: Likewise.
54638         * tests/test-spawn.c: Likewise.
54639         * tests/test-sys_file.c: Likewise.
54640         * tests/test-sys_ioctl.c: Likewise.
54641         * tests/test-sys_wait.c: Likewise.
54642         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
54643         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
54644         whether or not flock is in use.
54646         tests: remove License section from module
54647         * modules/arpa_inet-tests: Remove unneeded section.
54648         * modules/byteswap-tests: Likewise.
54649         * modules/ceilf-tests: Likewise.
54650         * modules/ceill-tests: Likewise.
54651         * modules/crypto/des-tests: Likewise.
54652         * modules/crypto/gc-arcfour-tests: Likewise.
54653         * modules/crypto/gc-arctwo-tests: Likewise.
54654         * modules/crypto/gc-des-tests: Likewise.
54655         * modules/crypto/gc-hmac-md5-tests: Likewise.
54656         * modules/crypto/gc-hmac-sha1-tests: Likewise.
54657         * modules/crypto/gc-md2-tests: Likewise.
54658         * modules/crypto/gc-md4-tests: Likewise.
54659         * modules/crypto/gc-md5-tests: Likewise.
54660         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
54661         * modules/crypto/gc-rijndael-tests: Likewise.
54662         * modules/crypto/gc-sha1-tests: Likewise.
54663         * modules/crypto/gc-tests: Likewise.
54664         * modules/crypto/md2-tests: Likewise.
54665         * modules/crypto/md4-tests: Likewise.
54666         * modules/fcntl-h-tests: Likewise.
54667         * modules/floorf-tests: Likewise.
54668         * modules/floorl-tests: Likewise.
54669         * modules/frexp-nolibm-tests: Likewise.
54670         * modules/frexp-tests: Likewise.
54671         * modules/frexpl-nolibm-tests: Likewise.
54672         * modules/frexpl-tests: Likewise.
54673         * modules/getaddrinfo-tests: Likewise.
54674         * modules/inttypes-tests: Likewise.
54675         * modules/isfinite-tests: Likewise.
54676         * modules/isinf-tests: Likewise.
54677         * modules/ldexpl-tests: Likewise.
54678         * modules/locale-tests: Likewise.
54679         * modules/math-tests: Likewise.
54680         * modules/netdb-tests: Likewise.
54681         * modules/netinet_in-tests: Likewise.
54682         * modules/printf-frexp-tests: Likewise.
54683         * modules/printf-frexpl-tests: Likewise.
54684         * modules/priv-set-tests: Likewise.
54685         * modules/random_r-tests: Likewise.
54686         * modules/round-tests: Likewise.
54687         * modules/roundf-tests: Likewise.
54688         * modules/roundl-tests: Likewise.
54689         * modules/search-tests: Likewise.
54690         * modules/select-tests: Likewise.
54691         * modules/signal-tests: Likewise.
54692         * modules/stdbool-tests: Likewise.
54693         * modules/stddef-tests: Likewise.
54694         * modules/stdint-tests: Likewise.
54695         * modules/stdio-tests: Likewise.
54696         * modules/stdlib-tests: Likewise.
54697         * modules/string-tests: Likewise.
54698         * modules/strings-tests: Likewise.
54699         * modules/sys_select-tests: Likewise.
54700         * modules/sys_socket-tests: Likewise.
54701         * modules/sys_stat-tests: Likewise.
54702         * modules/sys_time-tests: Likewise.
54703         * modules/sys_utsname-tests: Likewise.
54704         * modules/sysexits-tests: Likewise.
54705         * modules/time-tests: Likewise.
54706         * modules/trunc-tests: Likewise.
54707         * modules/truncf-tests: Likewise.
54708         * modules/truncl-tests: Likewise.
54709         * modules/tsearch-tests: Likewise.
54710         * modules/unistd-tests: Likewise.
54711         * modules/wchar-tests: Likewise.
54712         * modules/wctype-tests: Likewise.
54714         tests: fix license on several tests
54715         * tests/test-des.c: Update to GPLv3+.
54716         * tests/test-flock.c: Likewise.
54717         * tests/test-fsync.c: Likewise.
54718         * tests/test-futimens.h: Likewise.
54719         * tests/test-gc-arcfour.c: Likewise.
54720         * tests/test-gc-arctwo.c: Likewise.
54721         * tests/test-gc-des.c: Likewise.
54722         * tests/test-gc-hmac-md5.c: Likewise.
54723         * tests/test-gc-hmac-sha1.c: Likewise.
54724         * tests/test-gc-md2.c: Likewise.
54725         * tests/test-gc-md4.c: Likewise.
54726         * tests/test-gc-md5.c: Likewise.
54727         * tests/test-gc-pbkdf2-sha1.c: Likewise.
54728         * tests/test-gc-rijndael.c: Likewise.
54729         * tests/test-gc-sha1.c: Likewise.
54730         * tests/test-gc.c: Likewise.
54731         * tests/test-getcwd.c: Likewise.
54732         * tests/test-link.c: Likewise.
54733         * tests/test-link.h: Likewise.
54734         * tests/test-lutimens.h: Likewise.
54735         * tests/test-md2.c: Likewise.
54736         * tests/test-md4.c: Likewise.
54737         * tests/test-mkdir.h: Likewise.
54738         * tests/test-rename.c: Likewise.
54739         * tests/test-rename.h: Likewise.
54740         * tests/test-safe-alloc.c: Likewise.
54741         * tests/test-utimens-common.h: Likewise.
54742         * tests/test-utimens.h: Likewise.
54744         maint: sync license texts
54745         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
54746         * doc/gpl-3.0.texi: Revert copyright year update.
54747         * doc/lgpl-3.0.texi: Likewise.
54749 2009-12-29  Jim Meyering  <meyering@redhat.com>
54751         update nearly all FSF copyright year lists to include 2009
54752         The files named by the following are exempted:
54753             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
54754               test -f "$dst" && { echo "$dst"; continue; }
54755               test -d "$dst" || continue
54756               echo "$dst"/$(basename "$src")
54757             done > exempt
54758             git ls-files tests/unictype >> exempt
54759         In the remaining files, convert to all-interval notation if
54760         - there is already at least one year interval like 2000-2003
54761         - the file is maintained by me
54762         - the file is in lib/uni*/, where that style already prevails
54763         Otherwise, use update-copyright's default.
54765 2009-12-29  Simon Josefsson  <simon@josefsson.org>
54766         and Eric Blake  <ebb9@byu.net>
54768         tests: don't require debug system() to pass
54769         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
54770         * tests/test-rmdir.h (test_rmdir_func): Likewise.
54771         * tests/test-unlink.h (test_unlink_func): Likewise.
54772         * tests/test-fstatat.c (main): ...into callers.
54773         * tests/test-lstat.c (main): Likewise.
54774         * tests/test-rmdir.c (main): Likewise.
54775         * tests/test-unlink.c (main): Likewise.
54776         * tests/test-unlinkat.c (main): Likewise.
54777         * tests/test-areadlink-with-size.c (main): Don't require a
54778         debug-only system call to pass, aiding cross-testing to mingw.
54779         * tests/test-areadlink.c (main): Likewise.
54780         * tests/test-areadlinkat-with-size.c (main): Likewise.
54781         * tests/test-areadlinkat.c (main): Likewise.
54782         * tests/test-canonicalize-lgpl.c (main): Likewise.
54783         * tests/test-canonicalize.c (main): Likewise.
54784         * tests/test-chown.c (main): Likewise.
54785         * tests/test-fchownat.c (main): Likewise.
54786         * tests/test-lchown.c (main): Likewise.
54787         * tests/test-fdutimensat.c (main): Likewise.
54788         * tests/test-futimens.c (main): Likewise.
54789         * tests/test-link.c (main): Likewise.
54790         * tests/test-linkat.c (main): Likewise.
54791         * tests/test-mkdir.c (main): Likewise.
54792         * tests/test-mkdirat.c (main): Likewise.
54793         * tests/test-mkfifo.c (main): Likewise.
54794         * tests/test-mkfifoat.c (main): Likewise.
54795         * tests/test-mknod.c (main): Likewise.
54796         * tests/test-readlink.c (main): Likewise.
54797         * tests/test-remove.c (main): Likewise.
54798         * tests/test-rename.c (main): Likewise.
54799         * tests/test-renameat.c (main): Likewise.
54800         * tests/test-symlink.c (main): Likewise.
54801         * tests/test-symlinkat.c (main): Likewise.
54802         * tests/test-utimens.c (main): Likewise.
54803         * tests/test-utimensat.c (main): Likewise.
54805 2009-12-29  Simon Josefsson  <simon@josefsson.org>
54807         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
54808         on $(UNUSED_PARAMETER_H) to avoid build failure.
54810 2009-12-28  Jim Meyering  <meyering@redhat.com>
54812         update-copyright: you may specify a max. line length other than 72
54813         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
54815         maint: use consistent FSF copyright line syntax
54816         * lib/posixtm.c: Add missing comma in FSF copyright line.
54817         * lib/posixtm.h: Likewise.
54818         * lib/getugroups.c: Add missing ", Inc.".
54820         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
54821         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
54822         FSF copyright line.  Remove trailing blanks.
54824 2009-12-28  Eric Blake  <ebb9@byu.net>
54826         test-dup2: reduce dependencies
54827         * modules/cloexec (Configure.ac): Set witness.
54828         * modules/dup2-tests (Depends-on): Drop cloexec.
54829         * tests/test-dup2.c (main): Skip portion of test if cloexec module
54830         not present.
54831         Suggested by Bruno Haible.
54833 2009-12-26  Bruno Haible  <bruno@clisp.org>
54835         Remove an unneeded dependency.
54836         * modules/fseterr (Depends-on): Remove dup2.
54838 2009-12-26  Eric Blake  <ebb9@byu.net>
54840         tests: use macros.h in more places
54841         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
54842         (ASSERT_STREAM): Provide default of stderr.
54843         * tests/test-dirent-safer.c: Include macros.h, using alternate
54844         stream for assertions.
54845         * tests/test-dup-safer.c: Likewise.
54846         * tests/test-freopen-safer.c: Likewise.
54847         * tests/test-getopt.c: Likewise.
54848         * tests/test-openat-safer.c: Likewise.
54849         * tests/test-pipe.c: Likewise.
54850         * tests/test-popen-safer.c: Likewise.
54851         * modules/dirent-safer-tests (Files): Include macros.h.
54852         * modules/unistd-safer-tests (Files): Likewise.
54853         * modules/freopen-safer-tests (Files): Likewise.
54854         * modules/getopt-posix-tests (Files): Likewise.
54855         * modules/openat-safer-tests (Files): Likewise.
54856         * modules/pipe-tests (Files): Likewise.
54858 2009-12-26  Bruno Haible  <bruno@clisp.org>
54860         javacomp-script: Portability fix.
54861         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
54862         that it also works on Solaris.
54864 2009-12-26  Bruno Haible  <bruno@clisp.org>
54866         localename: Fix storage allocation of gl_locale_name_thread's result.
54867         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
54868         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
54869         all platforms that have 'uselocale'.
54870         (gl_locale_name_thread_unsafe): New function, extracted from
54871         gl_locale_name_thread.
54872         (gl_locale_name_thread): Call struniq on all platforms that have
54873         'uselocale'.
54874         * tests/test-localename.c (test_locale_name_thread): Check that the
54875         resulting strings are permanently allocated.
54876         * modules/localename-tests (Depends-on): Add strdup.
54878 2009-12-26  Bruno Haible  <bruno@clisp.org>
54880         * tests/test-localename.c (categories): Fill in the strings.
54882 2009-12-26  Jim Meyering  <meyering@redhat.com>
54884         isdir: complete the removal of m4/isdir.m4
54885         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
54887         isdir: clean up, since at least grep still uses it
54888         * lib/isdir.c: Include "isdir.h".
54889         (S_ISDIR): Remove now-unneeded definition.
54890         * modules/isdir (Files): Add lib/isdir.h.
54891         * lib/isdir.h: New file, with declaration.
54892         * m4/isdir.m4: Remove file -- unneeded.
54894 2009-12-25  Bruno Haible  <bruno@clisp.org>
54896         selinux-h: Make generated .h files standalone.
54897         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
54898         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
54899         * lib/se-selinux.in.h: Likewise.
54900         * modules/selinux-h (Depends-on): Add unused-parameter.
54901         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
54902         selinux/selinux.h and selinux/context.h.
54903         Suggested by Eric Blake.
54905 2009-12-25  Bruno Haible  <bruno@clisp.org>
54907         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
54908         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
54909         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
54910         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
54911         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
54913 2009-12-24  Bruno Haible  <bruno@clisp.org>
54915         openat: Fix warning.
54916         * lib/openat-proc.c: Include <unistd.h>.
54918 2009-12-24  Bruno Haible  <bruno@clisp.org>
54920         New module 'unused-parameter'.
54921         * build-aux/unused-parameter.h: New file, extracted from earlier
54922         gnulib-common.m4.
54923         * modules/unused-parameter: New file.
54924         * lib/unistr.h: Include unused-parameter.h.
54925         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
54926         _GL_UNUSED.
54927         * modules/unistr/base (Depends-on): Add unused-parameter.
54929 2009-12-24  Bruno Haible  <bruno@clisp.org>
54931         Add missing dependencies to 'extensions' module.
54932         * m4/extensions.m4: Add comment.
54933         * modules/accept4 (Depends-on): Add extensions.
54934         * modules/dup3 (Depends-on): Likewise.
54935         * modules/fcntl (Depends-on): Likewise.
54936         * modules/futimens (Depends-on): Likewise.
54937         * modules/mknod (Depends-on): Likewise.
54938         * modules/pipe2 (Depends-on): Likewise.
54939         * modules/stat-time (Depends-on): Likewise.
54940         * modules/strcasestr-simple (Depends-on): Likewise.
54941         * modules/strsignal (Depends-on): Likewise.
54942         * modules/utimensat (Depends-on): Likewise.
54943         * modules/localcharset (Depends-on): Likewise. Needed because of
54944         gl_FCNTL_O_FLAGS.
54945         * modules/wcrtomb (Depends-on): Likewise. Needed because of
54946         AC_TYPE_MBSTATE_T.
54947         * modules/wcsnrtombs (Depends-on): Likewise.
54948         * modules/wcsrtombs (Depends-on): Likewise.
54950 2009-12-24  Bruno Haible  <bruno@clisp.org>
54952         binary-io: Avoid gcc warning due to SET_BINARY.
54953         * lib/binary-io.h (SET_BINARY): Cast the result to void.
54954         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
54956 2009-12-24  Bruno Haible  <bruno@clisp.org>
54958         Avoid future namespace pollution on glibc systems.
54959         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
54960         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
54961         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
54962         glibc systems.
54964 2009-12-24  Bruno Haible  <bruno@clisp.org>
54966         Refactor common macros used in tests.
54967         * tests/macros.h: New file.
54968         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
54969         and/or <stdlib.h>, if appropriate.
54970         (ASSERT, SIZEOF): Remove macros.
54971         * tests/test-areadlink-with-size.c: Likewise.
54972         * tests/test-areadlinkat.c: Likewise.
54973         * tests/test-areadlinkat-with-size.c: Likewise.
54974         * tests/test-argmatch.c: Likewise.
54975         * tests/test-argv-iter.c: Likewise.
54976         * tests/test-array-mergesort.c: Likewise.
54977         * tests/test-array_list.c: Likewise.
54978         * tests/test-array_oset.c: Likewise.
54979         * tests/test-avltree_list.c: Likewise.
54980         * tests/test-avltree_oset.c: Likewise.
54981         * tests/test-avltreehash_list.c: Likewise.
54982         * tests/test-base64.c: Likewise.
54983         * tests/test-binary-io.c: Likewise.
54984         * tests/test-bitrotate.c: Likewise.
54985         * tests/test-btowc.c: Likewise.
54986         * tests/test-byteswap.c: Likewise.
54987         * tests/test-c-ctype.c: Likewise.
54988         * tests/test-c-stack.c: Likewise.
54989         * tests/test-c-strcasecmp.c: Likewise.
54990         * tests/test-c-strcasestr.c: Likewise.
54991         * tests/test-c-strncasecmp.c: Likewise.
54992         * tests/test-c-strstr.c: Likewise.
54993         * tests/test-canonicalize-lgpl.c: Likewise.
54994         * tests/test-canonicalize.c: Likewise.
54995         * tests/test-carray_list.c: Likewise.
54996         * tests/test-ceilf1.c: Likewise.
54997         * tests/test-ceilf2.c: Likewise.
54998         * tests/test-ceill.c: Likewise.
54999         * tests/test-chown.c: Likewise.
55000         * tests/test-cloexec.c: Likewise.
55001         * tests/test-copy-acl.c: Likewise.
55002         * tests/test-copy-file.c: Likewise.
55003         * tests/test-count-one-bits.c: Likewise.
55004         * tests/test-dprintf-posix.c: Likewise.
55005         * tests/test-dup2.c: Likewise.
55006         * tests/test-dup3.c: Likewise.
55007         * tests/test-duplocale.c: Likewise.
55008         * tests/test-fbufmode.c: Likewise.
55009         * tests/test-fchdir.c: Likewise.
55010         * tests/test-fchownat.c: Likewise.
55011         * tests/test-fcntl-safer.c: Likewise.
55012         * tests/test-fcntl.c: Likewise.
55013         * tests/test-fdopendir.c: Likewise.
55014         * tests/test-fdutimensat.c: Likewise.
55015         * tests/test-fflush2.c: Likewise.
55016         * tests/test-file-has-acl.c: Likewise.
55017         * tests/test-filevercmp.c: Likewise.
55018         * tests/test-flock.c: Likewise.
55019         * tests/test-floorf1.c: Likewise.
55020         * tests/test-floorf2.c: Likewise.
55021         * tests/test-floorl.c: Likewise.
55022         * tests/test-fnmatch.c: Likewise.
55023         * tests/test-fopen.h: Likewise.
55024         * tests/test-fpending.c: Likewise.
55025         * tests/test-fprintf-posix.c: Likewise.
55026         * tests/test-fpurge.c: Likewise.
55027         * tests/test-freadable.c: Likewise.
55028         * tests/test-freadahead.c: Likewise.
55029         * tests/test-freading.c: Likewise.
55030         * tests/test-freadptr.c: Likewise.
55031         * tests/test-freadptr2.c: Likewise.
55032         * tests/test-freadseek.c: Likewise.
55033         * tests/test-freopen.c: Likewise.
55034         * tests/test-frexp.c: Likewise.
55035         * tests/test-frexpl.c: Likewise.
55036         * tests/test-fseek.c: Likewise.
55037         * tests/test-fseeko.c: Likewise.
55038         * tests/test-fstatat.c: Likewise.
55039         * tests/test-fstrcmp.c: Likewise.
55040         * tests/test-fsync.c: Likewise.
55041         * tests/test-ftell.c: Likewise.
55042         * tests/test-ftello.c: Likewise.
55043         * tests/test-func.c: Likewise.
55044         * tests/test-futimens.c: Likewise.
55045         * tests/test-fwritable.c: Likewise.
55046         * tests/test-fwriting.c: Likewise.
55047         * tests/test-getcwd.c: Likewise.
55048         * tests/test-getdate.c: Likewise.
55049         * tests/test-getdelim.c: Likewise.
55050         * tests/test-getdtablesize.c: Likewise.
55051         * tests/test-getgroups.c: Likewise.
55052         * tests/test-getline.c: Likewise.
55053         * tests/test-getndelim2.c: Likewise.
55054         * tests/test-glob.c: Likewise.
55055         * tests/test-hash.c: Likewise.
55056         * tests/test-i-ring.c: Likewise.
55057         * tests/test-iconv-utf.c: Likewise.
55058         * tests/test-iconv.c: Likewise.
55059         * tests/test-idpriv-drop.c: Likewise.
55060         * tests/test-idpriv-droptemp.c: Likewise.
55061         * tests/test-inet_ntop.c: Likewise.
55062         * tests/test-inet_pton.c: Likewise.
55063         * tests/test-isblank.c: Likewise.
55064         * tests/test-isfinite.c: Likewise.
55065         * tests/test-isinf.c: Likewise.
55066         * tests/test-isnan.c: Likewise.
55067         * tests/test-isnand.h: Likewise.
55068         * tests/test-isnanf.h: Likewise.
55069         * tests/test-isnanl.h: Likewise.
55070         * tests/test-lchown.c: Likewise.
55071         * tests/test-ldexpl.c: Likewise.
55072         * tests/test-link.c: Likewise.
55073         * tests/test-linkat.c: Likewise.
55074         * tests/test-linked_list.c: Likewise.
55075         * tests/test-linkedhash_list.c: Likewise.
55076         * tests/test-localename.c: Likewise.
55077         * tests/test-lseek.c: Likewise.
55078         * tests/test-lstat.c: Likewise.
55079         * tests/test-mbmemcasecmp.c: Likewise.
55080         * tests/test-mbmemcasecoll.c: Likewise.
55081         * tests/test-mbrtowc.c: Likewise.
55082         * tests/test-mbscasecmp.c: Likewise.
55083         * tests/test-mbscasestr1.c: Likewise.
55084         * tests/test-mbscasestr2.c: Likewise.
55085         * tests/test-mbscasestr3.c: Likewise.
55086         * tests/test-mbscasestr4.c: Likewise.
55087         * tests/test-mbschr.c: Likewise.
55088         * tests/test-mbscspn.c: Likewise.
55089         * tests/test-mbsinit.c: Likewise.
55090         * tests/test-mbsncasecmp.c: Likewise.
55091         * tests/test-mbsnrtowcs.c: Likewise.
55092         * tests/test-mbspbrk.c: Likewise.
55093         * tests/test-mbspcasecmp.c: Likewise.
55094         * tests/test-mbsrchr.c: Likewise.
55095         * tests/test-mbsrtowcs.c: Likewise.
55096         * tests/test-mbsspn.c: Likewise.
55097         * tests/test-mbsstr1.c: Likewise.
55098         * tests/test-mbsstr2.c: Likewise.
55099         * tests/test-mbsstr3.c: Likewise.
55100         * tests/test-memchr.c: Likewise.
55101         * tests/test-memchr2.c: Likewise.
55102         * tests/test-memcmp.c: Likewise.
55103         * tests/test-memmem.c: Likewise.
55104         * tests/test-memrchr.c: Likewise.
55105         * tests/test-mkdir.c: Likewise.
55106         * tests/test-mkdirat.c: Likewise.
55107         * tests/test-mkfifo.c: Likewise.
55108         * tests/test-mkfifoat.c: Likewise.
55109         * tests/test-mknod.c: Likewise.
55110         * tests/test-nanosleep.c: Likewise.
55111         * tests/test-nl_langinfo.c: Likewise.
55112         * tests/test-obstack-printf.c: Likewise.
55113         * tests/test-open.c: Likewise.
55114         * tests/test-openat.c: Likewise.
55115         * tests/test-pipe-filter-gi1.c: Likewise.
55116         * tests/test-pipe-filter-gi2-main.c: Likewise.
55117         * tests/test-pipe-filter-ii1.c: Likewise.
55118         * tests/test-pipe-filter-ii2-main.c: Likewise.
55119         * tests/test-pipe2.c: Likewise.
55120         * tests/test-popen.h: Likewise.
55121         * tests/test-posixtm.c: Likewise.
55122         * tests/test-pread.c: Likewise.
55123         * tests/test-printf-frexp.c: Likewise.
55124         * tests/test-printf-frexpl.c: Likewise.
55125         * tests/test-printf-posix.c: Likewise.
55126         * tests/test-priv-set.c: Likewise.
55127         * tests/test-quotearg.c: Likewise.
55128         * tests/test-random_r.c: Likewise.
55129         * tests/test-rawmemchr.c: Likewise.
55130         * tests/test-rbtree_list.c: Likewise.
55131         * tests/test-rbtree_oset.c: Likewise.
55132         * tests/test-rbtreehash_list.c: Likewise.
55133         * tests/test-readlink.c: Likewise.
55134         * tests/test-remove.c: Likewise.
55135         * tests/test-rename.c: Likewise.
55136         * tests/test-renameat.c: Likewise.
55137         * tests/test-rmdir.c: Likewise.
55138         * tests/test-round1.c: Likewise.
55139         * tests/test-roundf1.c: Likewise.
55140         * tests/test-roundl.c: Likewise.
55141         * tests/test-safe-alloc.c: Likewise.
55142         * tests/test-sameacls.c: Likewise.
55143         * tests/test-set-mode-acl.c: Likewise.
55144         * tests/test-setenv.c: Likewise.
55145         * tests/test-sigaction.c: Likewise.
55146         * tests/test-signbit.c: Likewise.
55147         * tests/test-sleep.c: Likewise.
55148         * tests/test-snprintf-posix.c: Likewise.
55149         * tests/test-snprintf.c: Likewise.
55150         * tests/test-sprintf-posix.c: Likewise.
55151         * tests/test-stat-time.c: Likewise.
55152         * tests/test-stat.c: Likewise.
55153         * tests/test-strcasestr.c: Likewise.
55154         * tests/test-strchrnul.c: Likewise.
55155         * tests/test-strerror.c: Likewise.
55156         * tests/test-striconv.c: Likewise.
55157         * tests/test-striconveh.c: Likewise.
55158         * tests/test-striconveha.c: Likewise.
55159         * tests/test-strsignal.c: Likewise.
55160         * tests/test-strstr.c: Likewise.
55161         * tests/test-strtod.c: Likewise.
55162         * tests/test-strverscmp.c: Likewise.
55163         * tests/test-symlink.c: Likewise.
55164         * tests/test-symlinkat.c: Likewise.
55165         * tests/test-trunc1.c: Likewise.
55166         * tests/test-trunc2.c: Likewise.
55167         * tests/test-truncf1.c: Likewise.
55168         * tests/test-truncf2.c: Likewise.
55169         * tests/test-truncl.c: Likewise.
55170         * tests/test-uname.c: Likewise.
55171         * tests/test-unlink.c: Likewise.
55172         * tests/test-unlinkat.c: Likewise.
55173         * tests/test-unsetenv.c: Likewise.
55174         * tests/test-usleep.c: Likewise.
55175         * tests/test-utimens.c: Likewise.
55176         * tests/test-utimensat.c: Likewise.
55177         * tests/test-vasnprintf-posix.c: Likewise.
55178         * tests/test-vasnprintf-posix2.c: Likewise.
55179         * tests/test-vasnprintf.c: Likewise.
55180         * tests/test-vasprintf-posix.c: Likewise.
55181         * tests/test-vasprintf.c: Likewise.
55182         * tests/test-vdprintf-posix.c: Likewise.
55183         * tests/test-vfprintf-posix.c: Likewise.
55184         * tests/test-vprintf-posix.c: Likewise.
55185         * tests/test-vsnprintf-posix.c: Likewise.
55186         * tests/test-vsnprintf.c: Likewise.
55187         * tests/test-vsprintf-posix.c: Likewise.
55188         * tests/test-wcrtomb.c: Likewise.
55189         * tests/test-wcsnrtombs.c: Likewise.
55190         * tests/test-wcsrtombs.c: Likewise.
55191         * tests/test-wctype.c: Likewise.
55192         * tests/test-wcwidth.c: Likewise.
55193         * tests/test-xfprintf-posix.c: Likewise.
55194         * tests/test-xmemdup0.c: Likewise.
55195         * tests/test-xprintf-posix.c: Likewise.
55196         * tests/test-xvasprintf.c: Likewise.
55197         * tests/unicase/test-locale-language.c: Likewise.
55198         * tests/unicase/test-mapping-part1.h: Likewise.
55199         * tests/unicase/test-predicate-part1.h: Likewise.
55200         * tests/unicase/test-u8-casecmp.c: Likewise.
55201         * tests/unicase/test-u8-casecoll.c: Likewise.
55202         * tests/unicase/test-u8-casefold.c: Likewise.
55203         * tests/unicase/test-u8-is-cased.c: Likewise.
55204         * tests/unicase/test-u8-is-casefolded.c: Likewise.
55205         * tests/unicase/test-u8-is-lowercase.c: Likewise.
55206         * tests/unicase/test-u8-is-titlecase.c: Likewise.
55207         * tests/unicase/test-u8-is-uppercase.c: Likewise.
55208         * tests/unicase/test-u8-tolower.c: Likewise.
55209         * tests/unicase/test-u8-totitle.c: Likewise.
55210         * tests/unicase/test-u8-toupper.c: Likewise.
55211         * tests/unicase/test-u16-casecmp.c: Likewise.
55212         * tests/unicase/test-u16-casecoll.c: Likewise.
55213         * tests/unicase/test-u16-casefold.c: Likewise.
55214         * tests/unicase/test-u16-is-cased.c: Likewise.
55215         * tests/unicase/test-u16-is-casefolded.c: Likewise.
55216         * tests/unicase/test-u16-is-lowercase.c: Likewise.
55217         * tests/unicase/test-u16-is-titlecase.c: Likewise.
55218         * tests/unicase/test-u16-is-uppercase.c: Likewise.
55219         * tests/unicase/test-u16-tolower.c: Likewise.
55220         * tests/unicase/test-u16-totitle.c: Likewise.
55221         * tests/unicase/test-u16-toupper.c: Likewise.
55222         * tests/unicase/test-u32-casecmp.c: Likewise.
55223         * tests/unicase/test-u32-casecoll.c: Likewise.
55224         * tests/unicase/test-u32-casefold.c: Likewise.
55225         * tests/unicase/test-u32-is-cased.c: Likewise.
55226         * tests/unicase/test-u32-is-casefolded.c: Likewise.
55227         * tests/unicase/test-u32-is-lowercase.c: Likewise.
55228         * tests/unicase/test-u32-is-titlecase.c: Likewise.
55229         * tests/unicase/test-u32-is-uppercase.c: Likewise.
55230         * tests/unicase/test-u32-tolower.c: Likewise.
55231         * tests/unicase/test-u32-totitle.c: Likewise.
55232         * tests/unicase/test-u32-toupper.c: Likewise.
55233         * tests/unicase/test-ulc-casecmp.c: Likewise.
55234         * tests/unicase/test-ulc-casecoll.c: Likewise.
55235         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
55236         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
55237         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
55238         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
55239         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
55240         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
55241         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
55242         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
55243         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
55244         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
55245         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
55246         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
55247         * tests/unictype/test-bidi_byname.c: Likewise.
55248         * tests/unictype/test-bidi_name.c: Likewise.
55249         * tests/unictype/test-bidi_of.c: Likewise.
55250         * tests/unictype/test-bidi_test.c: Likewise.
55251         * tests/unictype/test-block_list.c: Likewise.
55252         * tests/unictype/test-block_of.c: Likewise.
55253         * tests/unictype/test-block_test.c: Likewise.
55254         * tests/unictype/test-categ_and.c: Likewise.
55255         * tests/unictype/test-categ_and_not.c: Likewise.
55256         * tests/unictype/test-categ_byname.c: Likewise.
55257         * tests/unictype/test-categ_name.c: Likewise.
55258         * tests/unictype/test-categ_none.c: Likewise.
55259         * tests/unictype/test-categ_of.c: Likewise.
55260         * tests/unictype/test-categ_or.c: Likewise.
55261         * tests/unictype/test-categ_test_withtable.c: Likewise.
55262         * tests/unictype/test-combining.c: Likewise.
55263         * tests/unictype/test-decdigit.c: Likewise.
55264         * tests/unictype/test-digit.c: Likewise.
55265         * tests/unictype/test-mirror.c: Likewise.
55266         * tests/unictype/test-numeric.c: Likewise.
55267         * tests/unictype/test-pr_byname.c: Likewise.
55268         * tests/unictype/test-pr_test.c: Likewise.
55269         * tests/unictype/test-predicate-part1.h: Likewise.
55270         * tests/unictype/test-scripts.c: Likewise.
55271         * tests/unictype/test-sy_c_ident.c: Likewise.
55272         * tests/unictype/test-sy_java_ident.c: Likewise.
55273         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
55274         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
55275         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
55276         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
55277         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
55278         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
55279         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
55280         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
55281         * tests/uninorm/test-canonical-decomposition.c: Likewise.
55282         * tests/uninorm/test-compat-decomposition.c: Likewise.
55283         * tests/uninorm/test-composition.c: Likewise.
55284         * tests/uninorm/test-decomposing-form.c: Likewise.
55285         * tests/uninorm/test-decomposition.c: Likewise.
55286         * tests/uninorm/test-u8-nfc.c: Likewise.
55287         * tests/uninorm/test-u8-nfd.c: Likewise.
55288         * tests/uninorm/test-u8-nfkc.c: Likewise.
55289         * tests/uninorm/test-u8-nfkd.c: Likewise.
55290         * tests/uninorm/test-u8-normcmp.c: Likewise.
55291         * tests/uninorm/test-u8-normcoll.c: Likewise.
55292         * tests/uninorm/test-u16-nfc.c: Likewise.
55293         * tests/uninorm/test-u16-nfd.c: Likewise.
55294         * tests/uninorm/test-u16-nfkc.c: Likewise.
55295         * tests/uninorm/test-u16-nfkd.c: Likewise.
55296         * tests/uninorm/test-u16-normcmp.c: Likewise.
55297         * tests/uninorm/test-u16-normcoll.c: Likewise.
55298         * tests/uninorm/test-u32-nfc.c: Likewise.
55299         * tests/uninorm/test-u32-nfd.c: Likewise.
55300         * tests/uninorm/test-u32-nfkc.c: Likewise.
55301         * tests/uninorm/test-u32-nfkd.c: Likewise.
55302         * tests/uninorm/test-u32-normalize-big.c: Likewise.
55303         * tests/uninorm/test-u32-normcmp.c: Likewise.
55304         * tests/uninorm/test-u32-normcoll.c: Likewise.
55305         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
55306         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
55307         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
55308         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
55309         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
55310         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
55311         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
55312         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
55313         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
55314         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
55315         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
55316         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
55317         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
55318         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
55319         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
55320         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
55321         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
55322         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
55323         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
55324         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
55325         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
55326         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
55327         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
55328         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
55329         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
55330         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
55331         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
55332         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
55333         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
55334         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
55335         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
55336         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
55337         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
55338         * tests/uniwidth/test-u8-strwidth.c: Likewise.
55339         * tests/uniwidth/test-u8-width.c: Likewise.
55340         * tests/uniwidth/test-u16-strwidth.c: Likewise.
55341         * tests/uniwidth/test-u16-width.c: Likewise.
55342         * tests/uniwidth/test-u32-strwidth.c: Likewise.
55343         * tests/uniwidth/test-u32-width.c: Likewise.
55344         * tests/uniwidth/test-uc_width.c: Likewise.
55345         * tests/uniwidth/test-uc_width2.c: Likewise.
55346         * modules/acl-tests (Files): Add tests/macros.h.
55347         * modules/areadlink-tests (Files): Likewise.
55348         * modules/areadlink-with-size-tests (Files): Likewise.
55349         * modules/areadlinkat-tests (Files): Likewise.
55350         * modules/areadlinkat-with-size-tests (Files): Likewise.
55351         * modules/argmatch-tests (Files): Likewise.
55352         * modules/argv-iter-tests (Files): Likewise.
55353         * modules/array-list-tests (Files): Likewise.
55354         * modules/array-mergesort-tests (Files): Likewise.
55355         * modules/array-oset-tests (Files): Likewise.
55356         * modules/avltree-list-tests (Files): Likewise.
55357         * modules/avltree-oset-tests (Files): Likewise.
55358         * modules/avltreehash-list-tests (Files): Likewise.
55359         * modules/base64-tests (Files): Likewise.
55360         * modules/binary-io-tests (Files): Likewise.
55361         * modules/bitrotate-tests (Files): Likewise.
55362         * modules/btowc-tests (Files): Likewise.
55363         * modules/byteswap-tests (Files): Likewise.
55364         * modules/c-ctype-tests (Files): Likewise.
55365         * modules/c-stack-tests (Files): Likewise.
55366         * modules/c-strcase-tests (Files): Likewise.
55367         * modules/c-strcasestr-tests (Files): Likewise.
55368         * modules/c-strstr-tests (Files): Likewise.
55369         * modules/canonicalize-lgpl-tests (Files): Likewise.
55370         * modules/canonicalize-tests (Files): Likewise.
55371         * modules/carray-list-tests (Files): Likewise.
55372         * modules/ceilf-tests (Files): Likewise.
55373         * modules/ceill-tests (Files): Likewise.
55374         * modules/chown-tests (Files): Likewise.
55375         * modules/cloexec-tests (Files): Likewise.
55376         * modules/copy-file-tests (Files): Likewise.
55377         * modules/count-one-bits-tests (Files): Likewise.
55378         * modules/dprintf-posix-tests (Files): Likewise.
55379         * modules/dup2-tests (Files): Likewise.
55380         * modules/dup3-tests (Files): Likewise.
55381         * modules/duplocale-tests (Files): Likewise.
55382         * modules/fbufmode-tests (Files): Likewise.
55383         * modules/fchdir-tests (Files): Likewise.
55384         * modules/fcntl-safer-tests (Files): Likewise.
55385         * modules/fcntl-tests (Files): Likewise.
55386         * modules/fdopendir-tests (Files): Likewise.
55387         * modules/fdutimensat-tests (Files): Likewise.
55388         * modules/fflush-tests (Files): Likewise.
55389         * modules/filevercmp-tests (Files): Likewise.
55390         * modules/flock-tests (Files): Likewise.
55391         * modules/floorf-tests (Files): Likewise.
55392         * modules/floorl-tests (Files): Likewise.
55393         * modules/fnmatch-tests (Files): Likewise.
55394         * modules/fopen-safer-tests (Files): Likewise.
55395         * modules/fopen-tests (Files): Likewise.
55396         * modules/fpending-tests (Files): Likewise.
55397         * modules/fprintf-posix-tests (Files): Likewise.
55398         * modules/fpurge-tests (Files): Likewise.
55399         * modules/freadable-tests (Files): Likewise.
55400         * modules/freadahead-tests (Files): Likewise.
55401         * modules/freading-tests (Files): Likewise.
55402         * modules/freadptr-tests (Files): Likewise.
55403         * modules/freadseek-tests (Files): Likewise.
55404         * modules/freopen-tests (Files): Likewise.
55405         * modules/frexp-nolibm-tests (Files): Likewise.
55406         * modules/frexp-tests (Files): Likewise.
55407         * modules/frexpl-nolibm-tests (Files): Likewise.
55408         * modules/frexpl-tests (Files): Likewise.
55409         * modules/fseek-tests (Files): Likewise.
55410         * modules/fseeko-tests (Files): Likewise.
55411         * modules/fstrcmp-tests (Files): Likewise.
55412         * modules/fsync-tests (Files): Likewise.
55413         * modules/ftell-tests (Files): Likewise.
55414         * modules/ftello-tests (Files): Likewise.
55415         * modules/func-tests (Files): Likewise.
55416         * modules/futimens-tests (Files): Likewise.
55417         * modules/fwritable-tests (Files): Likewise.
55418         * modules/fwriting-tests (Files): Likewise.
55419         * modules/getcwd-tests (Files): Likewise.
55420         * modules/getdate-tests (Files): Likewise.
55421         * modules/getdelim-tests (Files): Likewise.
55422         * modules/getdtablesize-tests (Files): Likewise.
55423         * modules/getgroups-tests (Files): Likewise.
55424         * modules/getline-tests (Files): Likewise.
55425         * modules/getndelim2-tests (Files): Likewise.
55426         * modules/glob-tests (Files): Likewise.
55427         * modules/hash-tests (Files): Likewise.
55428         * modules/i-ring-tests (Files): Likewise.
55429         * modules/iconv-tests (Files): Likewise.
55430         * modules/iconv_open-utf-tests (Files): Likewise.
55431         * modules/idpriv-drop-tests (Files): Likewise.
55432         * modules/idpriv-droptemp-tests (Files): Likewise.
55433         * modules/inet_ntop-tests (Files): Likewise.
55434         * modules/inet_pton-tests (Files): Likewise.
55435         * modules/isblank-tests (Files): Likewise.
55436         * modules/isfinite-tests (Files): Likewise.
55437         * modules/isinf-tests (Files): Likewise.
55438         * modules/isnan-tests (Files): Likewise.
55439         * modules/isnand-nolibm-tests (Files): Likewise.
55440         * modules/isnand-tests (Files): Likewise.
55441         * modules/isnanf-nolibm-tests (Files): Likewise.
55442         * modules/isnanf-tests (Files): Likewise.
55443         * modules/isnanl-nolibm-tests (Files): Likewise.
55444         * modules/isnanl-tests (Files): Likewise.
55445         * modules/lchown-tests (Files): Likewise.
55446         * modules/ldexpl-tests (Files): Likewise.
55447         * modules/link-tests (Files): Likewise.
55448         * modules/linkat-tests (Files): Likewise.
55449         * modules/linked-list-tests (Files): Likewise.
55450         * modules/linkedhash-list-tests (Files): Likewise.
55451         * modules/localename-tests (Files): Likewise.
55452         * modules/lseek-tests (Files): Likewise.
55453         * modules/lstat-tests (Files): Likewise.
55454         * modules/mbmemcasecmp-tests (Files): Likewise.
55455         * modules/mbmemcasecoll-tests (Files): Likewise.
55456         * modules/mbrtowc-tests (Files): Likewise.
55457         * modules/mbscasecmp-tests (Files): Likewise.
55458         * modules/mbscasestr-tests (Files): Likewise.
55459         * modules/mbschr-tests (Files): Likewise.
55460         * modules/mbscspn-tests (Files): Likewise.
55461         * modules/mbsinit-tests (Files): Likewise.
55462         * modules/mbsncasecmp-tests (Files): Likewise.
55463         * modules/mbsnrtowcs-tests (Files): Likewise.
55464         * modules/mbspbrk-tests (Files): Likewise.
55465         * modules/mbspcasecmp-tests (Files): Likewise.
55466         * modules/mbsrchr-tests (Files): Likewise.
55467         * modules/mbsrtowcs-tests (Files): Likewise.
55468         * modules/mbsspn-tests (Files): Likewise.
55469         * modules/mbsstr-tests (Files): Likewise.
55470         * modules/memchr-tests (Files): Likewise.
55471         * modules/memchr2-tests (Files): Likewise.
55472         * modules/memcmp-tests (Files): Likewise.
55473         * modules/memmem-tests (Files): Likewise.
55474         * modules/memrchr-tests (Files): Likewise.
55475         * modules/mkdir-tests (Files): Likewise.
55476         * modules/mkfifo-tests (Files): Likewise.
55477         * modules/mkfifoat-tests (Files): Likewise.
55478         * modules/mknod-tests (Files): Likewise.
55479         * modules/nanosleep-tests (Files): Likewise.
55480         * modules/nl_langinfo-tests (Files): Likewise.
55481         * modules/obstack-printf-tests (Files): Likewise.
55482         * modules/open-tests (Files): Likewise.
55483         * modules/openat-tests (Files): Likewise.
55484         * modules/pipe-filter-gi-tests (Files): Likewise.
55485         * modules/pipe-filter-ii-tests (Files): Likewise.
55486         * modules/pipe2-tests (Files): Likewise.
55487         * modules/popen-safer-tests (Files): Likewise.
55488         * modules/popen-tests (Files): Likewise.
55489         * modules/posixtm-tests (Files): Likewise.
55490         * modules/pread-tests (Files): Likewise.
55491         * modules/printf-frexp-tests (Files): Likewise.
55492         * modules/printf-frexpl-tests (Files): Likewise.
55493         * modules/printf-posix-tests (Files): Likewise.
55494         * modules/priv-set-tests (Files): Likewise.
55495         * modules/quotearg-tests (Files): Likewise.
55496         * modules/random_r-tests (Files): Likewise.
55497         * modules/rawmemchr-tests (Files): Likewise.
55498         * modules/rbtree-list-tests (Files): Likewise.
55499         * modules/rbtree-oset-tests (Files): Likewise.
55500         * modules/rbtreehash-list-tests (Files): Likewise.
55501         * modules/readlink-tests (Files): Likewise.
55502         * modules/remove-tests (Files): Likewise.
55503         * modules/rename-tests (Files): Likewise.
55504         * modules/renameat-tests (Files): Likewise.
55505         * modules/rmdir-tests (Files): Likewise.
55506         * modules/round-tests (Files): Likewise.
55507         * modules/roundf-tests (Files): Likewise.
55508         * modules/roundl-tests (Files): Likewise.
55509         * modules/safe-alloc-tests (Files): Likewise.
55510         * modules/setenv-tests (Files): Likewise.
55511         * modules/sigaction-tests (Files): Likewise.
55512         * modules/signbit-tests (Files): Likewise.
55513         * modules/sleep-tests (Files): Likewise.
55514         * modules/snprintf-posix-tests (Files): Likewise.
55515         * modules/snprintf-tests (Files): Likewise.
55516         * modules/sprintf-posix-tests (Files): Likewise.
55517         * modules/stat-tests (Files): Likewise.
55518         * modules/stat-time-tests (Files): Likewise.
55519         * modules/strcasestr-tests (Files): Likewise.
55520         * modules/strchrnul-tests (Files): Likewise.
55521         * modules/strerror-tests (Files): Likewise.
55522         * modules/striconv-tests (Files): Likewise.
55523         * modules/striconveh-tests (Files): Likewise.
55524         * modules/striconveha-tests (Files): Likewise.
55525         * modules/strsignal-tests (Files): Likewise.
55526         * modules/strstr-tests (Files): Likewise.
55527         * modules/strtod-tests (Files): Likewise.
55528         * modules/strverscmp-tests (Files): Likewise.
55529         * modules/symlink-tests (Files): Likewise.
55530         * modules/symlinkat-tests (Files): Likewise.
55531         * modules/trunc-tests (Files): Likewise.
55532         * modules/truncf-tests (Files): Likewise.
55533         * modules/truncl-tests (Files): Likewise.
55534         * modules/uname-tests (Files): Likewise.
55535         * modules/unicase/cased-tests (Files): Likewise.
55536         * modules/unicase/ignorable-tests (Files): Likewise.
55537         * modules/unicase/locale-language-tests (Files): Likewise.
55538         * modules/unicase/tolower-tests (Files): Likewise.
55539         * modules/unicase/totitle-tests (Files): Likewise.
55540         * modules/unicase/toupper-tests (Files): Likewise.
55541         * modules/unicase/u8-casecmp-tests (Files): Likewise.
55542         * modules/unicase/u8-casecoll-tests (Files): Likewise.
55543         * modules/unicase/u8-casefold-tests (Files): Likewise.
55544         * modules/unicase/u8-is-cased-tests (Files): Likewise.
55545         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
55546         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
55547         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
55548         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
55549         * modules/unicase/u8-tolower-tests (Files): Likewise.
55550         * modules/unicase/u8-totitle-tests (Files): Likewise.
55551         * modules/unicase/u8-toupper-tests (Files): Likewise.
55552         * modules/unicase/u16-casecmp-tests (Files): Likewise.
55553         * modules/unicase/u16-casecoll-tests (Files): Likewise.
55554         * modules/unicase/u16-casefold-tests (Files): Likewise.
55555         * modules/unicase/u16-is-cased-tests (Files): Likewise.
55556         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
55557         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
55558         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
55559         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
55560         * modules/unicase/u16-tolower-tests (Files): Likewise.
55561         * modules/unicase/u16-totitle-tests (Files): Likewise.
55562         * modules/unicase/u16-toupper-tests (Files): Likewise.
55563         * modules/unicase/u32-casecmp-tests (Files): Likewise.
55564         * modules/unicase/u32-casecoll-tests (Files): Likewise.
55565         * modules/unicase/u32-casefold-tests (Files): Likewise.
55566         * modules/unicase/u32-is-cased-tests (Files): Likewise.
55567         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
55568         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
55569         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
55570         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
55571         * modules/unicase/u32-tolower-tests (Files): Likewise.
55572         * modules/unicase/u32-totitle-tests (Files): Likewise.
55573         * modules/unicase/u32-toupper-tests (Files): Likewise.
55574         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
55575         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
55576         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
55577         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
55578         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
55579         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
55580         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
55581         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
55582         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
55583         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
55584         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
55585         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
55586         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
55587         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
55588         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
55589         * modules/unictype/bidicategory-name-tests (Files): Likewise.
55590         * modules/unictype/bidicategory-of-tests (Files): Likewise.
55591         * modules/unictype/bidicategory-test-tests (Files): Likewise.
55592         * modules/unictype/block-list-tests (Files): Likewise.
55593         * modules/unictype/block-of-tests (Files): Likewise.
55594         * modules/unictype/block-test-tests (Files): Likewise.
55595         * modules/unictype/category-C-tests (Files): Likewise.
55596         * modules/unictype/category-Cc-tests (Files): Likewise.
55597         * modules/unictype/category-Cf-tests (Files): Likewise.
55598         * modules/unictype/category-Cn-tests (Files): Likewise.
55599         * modules/unictype/category-Co-tests (Files): Likewise.
55600         * modules/unictype/category-Cs-tests (Files): Likewise.
55601         * modules/unictype/category-L-tests (Files): Likewise.
55602         * modules/unictype/category-Ll-tests (Files): Likewise.
55603         * modules/unictype/category-Lm-tests (Files): Likewise.
55604         * modules/unictype/category-Lo-tests (Files): Likewise.
55605         * modules/unictype/category-Lt-tests (Files): Likewise.
55606         * modules/unictype/category-Lu-tests (Files): Likewise.
55607         * modules/unictype/category-M-tests (Files): Likewise.
55608         * modules/unictype/category-Mc-tests (Files): Likewise.
55609         * modules/unictype/category-Me-tests (Files): Likewise.
55610         * modules/unictype/category-Mn-tests (Files): Likewise.
55611         * modules/unictype/category-N-tests (Files): Likewise.
55612         * modules/unictype/category-Nd-tests (Files): Likewise.
55613         * modules/unictype/category-Nl-tests (Files): Likewise.
55614         * modules/unictype/category-No-tests (Files): Likewise.
55615         * modules/unictype/category-P-tests (Files): Likewise.
55616         * modules/unictype/category-Pc-tests (Files): Likewise.
55617         * modules/unictype/category-Pd-tests (Files): Likewise.
55618         * modules/unictype/category-Pe-tests (Files): Likewise.
55619         * modules/unictype/category-Pf-tests (Files): Likewise.
55620         * modules/unictype/category-Pi-tests (Files): Likewise.
55621         * modules/unictype/category-Po-tests (Files): Likewise.
55622         * modules/unictype/category-Ps-tests (Files): Likewise.
55623         * modules/unictype/category-S-tests (Files): Likewise.
55624         * modules/unictype/category-Sc-tests (Files): Likewise.
55625         * modules/unictype/category-Sk-tests (Files): Likewise.
55626         * modules/unictype/category-Sm-tests (Files): Likewise.
55627         * modules/unictype/category-So-tests (Files): Likewise.
55628         * modules/unictype/category-Z-tests (Files): Likewise.
55629         * modules/unictype/category-Zl-tests (Files): Likewise.
55630         * modules/unictype/category-Zp-tests (Files): Likewise.
55631         * modules/unictype/category-Zs-tests (Files): Likewise.
55632         * modules/unictype/category-and-not-tests (Files): Likewise.
55633         * modules/unictype/category-and-tests (Files): Likewise.
55634         * modules/unictype/category-byname-tests (Files): Likewise.
55635         * modules/unictype/category-name-tests (Files): Likewise.
55636         * modules/unictype/category-none-tests (Files): Likewise.
55637         * modules/unictype/category-of-tests (Files): Likewise.
55638         * modules/unictype/category-or-tests (Files): Likewise.
55639         * modules/unictype/category-test-withtable-tests (Files): Likewise.
55640         * modules/unictype/combining-class-tests (Files): Likewise.
55641         * modules/unictype/ctype-alnum-tests (Files): Likewise.
55642         * modules/unictype/ctype-alpha-tests (Files): Likewise.
55643         * modules/unictype/ctype-blank-tests (Files): Likewise.
55644         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
55645         * modules/unictype/ctype-digit-tests (Files): Likewise.
55646         * modules/unictype/ctype-graph-tests (Files): Likewise.
55647         * modules/unictype/ctype-lower-tests (Files): Likewise.
55648         * modules/unictype/ctype-print-tests (Files): Likewise.
55649         * modules/unictype/ctype-punct-tests (Files): Likewise.
55650         * modules/unictype/ctype-space-tests (Files): Likewise.
55651         * modules/unictype/ctype-upper-tests (Files): Likewise.
55652         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
55653         * modules/unictype/decimal-digit-tests (Files): Likewise.
55654         * modules/unictype/digit-tests (Files): Likewise.
55655         * modules/unictype/mirror-tests (Files): Likewise.
55656         * modules/unictype/numeric-tests (Files): Likewise.
55657         * modules/unictype/property-alphabetic-tests (Files): Likewise.
55658         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
55659         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
55660         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
55661         Likewise.
55662         * modules/unictype/property-bidi-block-separator-tests (Files):
55663         Likewise.
55664         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
55665         Likewise.
55666         * modules/unictype/property-bidi-common-separator-tests (Files):
55667         Likewise.
55668         * modules/unictype/property-bidi-control-tests (Files): Likewise.
55669         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
55670         Likewise.
55671         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
55672         Likewise.
55673         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
55674         Likewise.
55675         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
55676         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
55677         Likewise.
55678         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
55679         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
55680         Likewise.
55681         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
55682         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
55683         * modules/unictype/property-bidi-segment-separator-tests (Files):
55684         Likewise.
55685         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
55686         * modules/unictype/property-byname-tests (Files): Likewise.
55687         * modules/unictype/property-combining-tests (Files): Likewise.
55688         * modules/unictype/property-composite-tests (Files): Likewise.
55689         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
55690         * modules/unictype/property-dash-tests (Files): Likewise.
55691         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
55692         * modules/unictype/property-default-ignorable-code-point-tests (Files):
55693         Likewise.
55694         * modules/unictype/property-deprecated-tests (Files): Likewise.
55695         * modules/unictype/property-diacritic-tests (Files): Likewise.
55696         * modules/unictype/property-extender-tests (Files): Likewise.
55697         * modules/unictype/property-format-control-tests (Files): Likewise.
55698         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
55699         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
55700         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
55701         * modules/unictype/property-hex-digit-tests (Files): Likewise.
55702         * modules/unictype/property-hyphen-tests (Files): Likewise.
55703         * modules/unictype/property-id-continue-tests (Files): Likewise.
55704         * modules/unictype/property-id-start-tests (Files): Likewise.
55705         * modules/unictype/property-ideographic-tests (Files): Likewise.
55706         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
55707         * modules/unictype/property-ids-trinary-operator-tests (Files):
55708         Likewise.
55709         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
55710         * modules/unictype/property-iso-control-tests (Files): Likewise.
55711         * modules/unictype/property-join-control-tests (Files): Likewise.
55712         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
55713         * modules/unictype/property-line-separator-tests (Files): Likewise.
55714         * modules/unictype/property-logical-order-exception-tests (Files):
55715         Likewise.
55716         * modules/unictype/property-lowercase-tests (Files): Likewise.
55717         * modules/unictype/property-math-tests (Files): Likewise.
55718         * modules/unictype/property-non-break-tests (Files): Likewise.
55719         * modules/unictype/property-not-a-character-tests (Files): Likewise.
55720         * modules/unictype/property-numeric-tests (Files): Likewise.
55721         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
55722         * modules/unictype/property-other-default-ignorable-code-point-tests
55723         (Files): Likewise.
55724         * modules/unictype/property-other-grapheme-extend-tests (Files):
55725         Likewise.
55726         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
55727         * modules/unictype/property-other-id-start-tests (Files): Likewise.
55728         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
55729         * modules/unictype/property-other-math-tests (Files): Likewise.
55730         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
55731         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
55732         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
55733         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
55734         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
55735         * modules/unictype/property-private-use-tests (Files): Likewise.
55736         * modules/unictype/property-punctuation-tests (Files): Likewise.
55737         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
55738         * modules/unictype/property-radical-tests (Files): Likewise.
55739         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
55740         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
55741         * modules/unictype/property-space-tests (Files): Likewise.
55742         * modules/unictype/property-terminal-punctuation-tests (Files):
55743         Likewise.
55744         * modules/unictype/property-test-tests (Files): Likewise.
55745         * modules/unictype/property-titlecase-tests (Files): Likewise.
55746         * modules/unictype/property-unassigned-code-value-tests (Files):
55747         Likewise.
55748         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
55749         * modules/unictype/property-uppercase-tests (Files): Likewise.
55750         * modules/unictype/property-variation-selector-tests (Files): Likewise.
55751         * modules/unictype/property-white-space-tests (Files): Likewise.
55752         * modules/unictype/property-xid-continue-tests (Files): Likewise.
55753         * modules/unictype/property-xid-start-tests (Files): Likewise.
55754         * modules/unictype/property-zero-width-tests (Files): Likewise.
55755         * modules/unictype/scripts-tests (Files): Likewise.
55756         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
55757         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
55758         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
55759         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
55760         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
55761         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
55762         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
55763         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
55764         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
55765         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
55766         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
55767         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
55768         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
55769         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
55770         * modules/uninorm/composition-tests (Files): Likewise.
55771         * modules/uninorm/decomposing-form-tests (Files): Likewise.
55772         * modules/uninorm/decomposition-tests (Files): Likewise.
55773         * modules/uninorm/filter-tests (Files): Likewise.
55774         * modules/uninorm/nfc-tests (Files): Likewise.
55775         * modules/uninorm/nfd-tests (Files): Likewise.
55776         * modules/uninorm/nfkc-tests (Files): Likewise.
55777         * modules/uninorm/nfkd-tests (Files): Likewise.
55778         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
55779         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
55780         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
55781         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
55782         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
55783         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
55784         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
55785         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
55786         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
55787         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
55788         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
55789         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
55790         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
55791         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
55792         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
55793         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
55794         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
55795         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
55796         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
55797         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
55798         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
55799         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
55800         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
55801         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
55802         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
55803         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
55804         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
55805         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
55806         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
55807         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
55808         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
55809         * modules/uniwidth/u8-width-tests (Files): Likewise.
55810         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
55811         * modules/uniwidth/u16-width-tests (Files): Likewise.
55812         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
55813         * modules/uniwidth/u32-width-tests (Files): Likewise.
55814         * modules/uniwidth/width-tests (Files): Likewise.
55815         * modules/unlink-tests (Files): Likewise.
55816         * modules/unsetenv-tests (Files): Likewise.
55817         * modules/usleep-tests (Files): Likewise.
55818         * modules/utimens-tests (Files): Likewise.
55819         * modules/utimensat-tests (Files): Likewise.
55820         * modules/vasnprintf-posix-tests (Files): Likewise.
55821         * modules/vasnprintf-tests (Files): Likewise.
55822         * modules/vasprintf-posix-tests (Files): Likewise.
55823         * modules/vasprintf-tests (Files): Likewise.
55824         * modules/vdprintf-posix-tests (Files): Likewise.
55825         * modules/vfprintf-posix-tests (Files): Likewise.
55826         * modules/vprintf-posix-tests (Files): Likewise.
55827         * modules/vsnprintf-posix-tests (Files): Likewise.
55828         * modules/vsnprintf-tests (Files): Likewise.
55829         * modules/vsprintf-posix-tests (Files): Likewise.
55830         * modules/wcrtomb-tests (Files): Likewise.
55831         * modules/wcsnrtombs-tests (Files): Likewise.
55832         * modules/wcsrtombs-tests (Files): Likewise.
55833         * modules/wctype-tests (Files): Likewise.
55834         * modules/wcwidth-tests (Files): Likewise.
55835         * modules/xmemdup0-tests (Files): Likewise.
55836         * modules/xprintf-posix-tests (Files): Likewise.
55837         * modules/xvasprintf-tests (Files): Likewise.
55839 2009-12-24  Eric Blake  <ebb9@byu.net>
55841         test-nanosleep: fix typo
55842         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
55843         patch.
55844         Reported by Bruno Haible.
55846 2009-12-24  Bruno Haible  <bruno@clisp.org>
55848         Reduce namespace pollution on glibc systems.
55849         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
55850         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
55851         systems.
55852         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
55853         <getopt.h> on glibc systems.
55854         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
55855         systems.
55856         * lib/fcntl.c: Include <unistd.h> here instead.
55858 2009-12-24  Bruno Haible  <bruno@clisp.org>
55860         * lib/stdlib.in.h (includes): Fix typo in today's commit.
55862 2009-12-24  Eric Blake  <ebb9@byu.net>
55864         tests: add signature checks
55865         * tests/signature.h (SIGNATURE_CHECK): New file.
55866         * modules/atexit-tests (Files): Use it.
55867         * modules/btowc-tests (Files): Likewise.
55868         * modules/canonicalize-lgpl-tests (Files): Likewise.
55869         * modules/ceilf-tests (Files): Likewise.
55870         * modules/ceill-tests (Files): Likewise.
55871         * modules/chown-tests (Files): Likewise.
55872         * modules/dprintf-posix-tests (Files): Likewise.
55873         * modules/dup2-tests (Files): Likewise.
55874         * modules/dup3-tests (Files): Likewise.
55875         * modules/duplocale-tests (Files): Likewise.
55876         * modules/fchdir-tests (Files): Likewise.
55877         * modules/fcntl-tests (Files): Likewise.
55878         * modules/fdopendir-tests (Files): Likewise.
55879         * modules/fflush-tests (Files): Likewise.
55880         * modules/flock-tests (Files): Likewise.
55881         * modules/floorf-tests (Files): Likewise.
55882         * modules/floorl-tests (Files): Likewise.
55883         * modules/fnmatch-tests (Files): Likewise.
55884         * modules/fopen-tests (Files): Likewise.
55885         * modules/fprintf-posix-tests (Files): Likewise.
55886         * modules/freopen-tests (Files): Likewise.
55887         * modules/frexp-nolibm-tests (Files): Likewise.
55888         * modules/frexp-tests (Files): Likewise.
55889         * modules/frexpl-nolibm-tests (Files): Likewise.
55890         * modules/frexpl-tests (Files): Likewise.
55891         * modules/fseek-tests (Files): Likewise.
55892         * modules/fseeko-tests (Files): Likewise.
55893         * modules/fsync-tests (Files): Likewise.
55894         * modules/ftell-tests (Files): Likewise.
55895         * modules/ftello-tests (Files): Likewise.
55896         * modules/futimens-tests (Files): Likewise.
55897         * modules/getaddrinfo-tests (Files): Likewise.
55898         * modules/getcwd-tests (Files): Likewise.
55899         * modules/getdelim-tests (Files): Likewise.
55900         * modules/getdtablesize-tests (Files): Likewise.
55901         * modules/getgroups-tests (Files): Likewise.
55902         * modules/gethostname-tests (Files): Likewise.
55903         * modules/getline-tests (Files): Likewise.
55904         * modules/getopt-posix-tests (Files): Likewise.
55905         * modules/gettimeofday-tests (Files): Likewise.
55906         * modules/glob-tests (Files): Likewise.
55907         * modules/iconv-tests (Files): Likewise.
55908         * modules/inet_ntop-tests (Files): Likewise.
55909         * modules/inet_pton-tests (Files): Likewise.
55910         * modules/isblank-tests (Files): Likewise.
55911         * modules/lchown-tests (Files): Likewise.
55912         * modules/ldexpl-tests (Files): Likewise.
55913         * modules/link-tests (Files): Likewise.
55914         * modules/linkat-tests (Files): Likewise.
55915         * modules/lseek-tests (Files): Likewise.
55916         * modules/lstat-tests (Files): Likewise.
55917         * modules/mbrtowc-tests (Files): Likewise.
55918         * modules/mbsinit-tests (Files): Likewise.
55919         * modules/mbsnrtowcs-tests (Files): Likewise.
55920         * modules/mbsrtowcs-tests (Files): Likewise.
55921         * modules/memchr-tests (Files): Likewise.
55922         * modules/memcmp-tests (Files): Likewise.
55923         * modules/memmem-tests (Files): Likewise.
55924         * modules/memrchr-tests (Files): Likewise.
55925         * modules/mkdir-tests (Files): Likewise.
55926         * modules/mkfifo-tests (Files): Likewise.
55927         * modules/mkfifoat-tests (Files): Likewise.
55928         * modules/mknod-tests (Files): Likewise.
55929         * modules/nanosleep-tests (Files): Likewise.
55930         * modules/nl_langinfo-tests (Files): Likewise.
55931         * modules/obstack-printf-tests (Files): Likewise.
55932         * modules/open-tests (Files): Likewise.
55933         * modules/openat-tests (Files): Likewise.
55934         * modules/perror-tests (Files): Likewise.
55935         * modules/pipe2-tests (Files): Likewise.
55936         * modules/poll-tests (Files): Likewise.
55937         * modules/popen-tests (Files): Likewise.
55938         * modules/posix_spawn-tests (Files): Likewise.
55939         * modules/posix_spawnp-tests (Files): Likewise.
55940         * modules/pread-tests (Files): Likewise.
55941         * modules/printf-posix-tests (Files): Likewise.
55942         * modules/pty-tests (Files): Likewise.
55943         * modules/random_r-tests (Files): Likewise.
55944         * modules/rawmemchr-tests (Files): Likewise.
55945         * modules/readlink-tests (Files): Likewise.
55946         * modules/remove-tests (Files): Likewise.
55947         * modules/rename-tests (Files): Likewise.
55948         * modules/renameat-tests (Files): Likewise.
55949         * modules/rmdir-tests (Files): Likewise.
55950         * modules/round-tests (Files): Likewise.
55951         * modules/roundf-tests (Files): Likewise.
55952         * modules/roundl-tests (Files): Likewise.
55953         * modules/select-tests (Files): Likewise.
55954         * modules/setenv-tests (Files): Likewise.
55955         * modules/sigaction-tests (Files): Likewise.
55956         * modules/sleep-tests (Files): Likewise.
55957         * modules/snprintf-posix-tests (Files): Likewise.
55958         * modules/snprintf-tests (Files): Likewise.
55959         * modules/sprintf-posix-tests (Files): Likewise.
55960         * modules/stat-tests (Files): Likewise.
55961         * modules/strcasestr-tests (Files): Likewise.
55962         * modules/strchrnul-tests (Files): Likewise.
55963         * modules/strerror-tests (Files): Likewise.
55964         * modules/strsignal-tests (Files): Likewise.
55965         * modules/strstr-tests (Files): Likewise.
55966         * modules/strtod-tests (Files): Likewise.
55967         * modules/strverscmp-tests (Files): Likewise.
55968         * modules/symlink-tests (Files): Likewise.
55969         * modules/symlinkat-tests (Files): Likewise.
55970         * modules/times-tests (Files): Likewise.
55971         * modules/trunc-tests (Files): Likewise.
55972         * modules/truncf-tests (Files): Likewise.
55973         * modules/truncl-tests (Files): Likewise.
55974         * modules/tsearch-tests (Files): Likewise.
55975         * modules/uname-tests (Files): Likewise.
55976         * modules/unlink-tests (Files): Likewise.
55977         * modules/unsetenv-tests (Files): Likewise.
55978         * modules/usleep-tests (Files): Likewise.
55979         * modules/utimensat-tests (Files): Likewise.
55980         * modules/vasprintf-tests (Files): Likewise.
55981         * modules/vdprintf-posix-tests (Files): Likewise.
55982         * modules/vfprintf-posix-tests (Files): Likewise.
55983         * modules/vprintf-posix-tests (Files): Likewise.
55984         * modules/vsnprintf-posix-tests (Files): Likewise.
55985         * modules/vsnprintf-tests (Files): Likewise.
55986         * modules/vsprintf-posix-tests (Files): Likewise.
55987         * modules/wcrtomb-tests (Files): Likewise.
55988         * modules/wcsnrtombs-tests (Files): Likewise.
55989         * modules/wcsrtombs-tests (Files): Likewise.
55990         * modules/wcwidth-tests (Files): Likewise.
55991         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
55992         * tests/test-isinf.c (isinf): Likewise.
55993         * tests/test-isnan.c (isnan): Likewise.
55994         * tests/test-signbit.c (signbit): Likewise.
55995         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
55996         declaration, either as macro or with correct signature.
55997         (select): Ensure function under test is declared with correct
55998         signature in correct header.
55999         * tests/test-atexit.c (atexit): Likewise.
56000         * tests/test-btowc.c (btowc): Likewise.
56001         * tests/test-canonicalize-lgpl.c (realpath)
56002         (canonicalize_file_name): Likewise.
56003         * tests/test-ceilf1.c (ceilf): Likewise.
56004         * tests/test-ceill.c (ceill): Likewise.
56005         * tests/test-chown.c (chown): Likewise.
56006         * tests/test-dprintf-posix.c (dprintf): Likewise.
56007         * tests/test-dup2.c (dup2): Likewise.
56008         * tests/test-dup3.c (dup3): Likewise.
56009         * tests/test-duplocale.c (duplocale): Likewise.
56010         * tests/test-fchdir.c (fchdir): Likewise.
56011         * tests/test-fchownat.c (fchownat): Likewise.
56012         * tests/test-fcntl.c (fcntl): Likewise.
56013         * tests/test-fdopendir.c (fdopendir): Likewise.
56014         * tests/test-fflush.c (fflush): Likewise.
56015         * tests/test-flock.c (flock): Likewise.
56016         * tests/test-floorf1.c (floorf): Likewise.
56017         * tests/test-floorl.c (floorl): Likewise.
56018         * tests/test-fnmatch.c (fnmatch): Likewise.
56019         * tests/test-fopen.c (fopen): Likewise.
56020         * tests/test-fprintf-posix.c (fprintf): Likewise.
56021         * tests/test-freopen.c (freopen): Likewise.
56022         * tests/test-frexp.c (frexp): Likewise.
56023         * tests/test-frexpl.c (frexpl): Likewise.
56024         * tests/test-fseek.c (fseek): Likewise.
56025         * tests/test-fseeko.c (fseeko): Likewise.
56026         * tests/test-fstatat.c (fstatat): Likewise.
56027         * tests/test-fsync.c (fsync): Likewise.
56028         * tests/test-ftell.c (ftell): Likewise.
56029         * tests/test-ftello.c (ftello): Likewise.
56030         * tests/test-futimens.c (futimens): Likewise.
56031         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
56032         (gai_strerror): Likewise.
56033         * tests/test-getcwd.c (getcwd): Likewise.
56034         * tests/test-getdelim.c (getdelim): Likewise.
56035         * tests/test-getdtablesize.c (getdtablesize): Likewise.
56036         * tests/test-getgroups.c (getgroups): Likewise.
56037         * tests/test-gethostname.c (gethostname): Likewise.
56038         * tests/test-getline.c (getline): Likewise.
56039         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
56040         Likewise.
56041         * tests/test-gettimeofday.c (gettimeofday): Likewise.
56042         * tests/test-glob.c (glob, globfree): Likewise.
56043         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
56044         * tests/test-inet_ntop.c (inet_ntop): Likewise.
56045         * tests/test-inet_pton.c (inet_pton): Likewise.
56046         * tests/test-isblank.c (isblank): Likewise.
56047         * tests/test-lchown.c (lchown): Likewise.
56048         * tests/test-ldexpl.c (ldexpl): Likewise.
56049         * tests/test-link.c (link): Likewise.
56050         * tests/test-linkat.c (linkat): Likewise.
56051         * tests/test-lseek.c (lseek): Likewise.
56052         * tests/test-lstat.c (lstat): Likewise.
56053         * tests/test-mbrtowc.c (mbrtowc): Likewise.
56054         * tests/test-mbsinit.c (mbsinit): Likewise.
56055         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
56056         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
56057         * tests/test-memchr.c (memchr): Likewise.
56058         * tests/test-memcmp.c (memcmp): Likewise.
56059         * tests/test-memmem.c (memmem): Likewise.
56060         * tests/test-memrchr.c (memrchr): Likewise.
56061         * tests/test-mkdir.c (mkdir): Likewise.
56062         * tests/test-mkdirat.c (mkdirat): Likewise.
56063         * tests/test-mkfifo.c (mkfifo): Likewise.
56064         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
56065         * tests/test-mknod.c (mknod): Likewise.
56066         * tests/test-nanosleep.c (nanosleep): Likewise.
56067         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
56068         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
56069         Likewise.
56070         * tests/test-open.c (open): Likewise.
56071         * tests/test-openat.c (openat): Likewise.
56072         * tests/test-perror.c (perror): Likewise.
56073         * tests/test-pipe2.c (pipe2): Likewise.
56074         * tests/test-poll.c (poll): Likewise.
56075         * tests/test-popen.c (popen, pclose): Likewise.
56076         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
56077         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
56078         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
56079         (posix_spawn_file_actions_destroy)
56080         (posix_spawn_file_actions_addclose)
56081         (posix_spawn_file_actions_addopen)
56082         (posix_spawn_file_actions_adddup2): Likewise.
56083         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
56084         * tests/test-pread.c (pread): Likewise.
56085         * tests/test-printf-posix.c (printf): Likewise.
56086         * tests/test-pty.c (openpty, forkpty): Likewise.
56087         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
56088         (random_r): Likewise.
56089         * tests/test-rawmemchr.c (rawmemchr): Likewise.
56090         * tests/test-readlink.c (readlink): Likewise.
56091         * tests/test-remove.c (remove): Likewise.
56092         * tests/test-rename.c (rename): Likewise.
56093         * tests/test-renameat.c (renameat): Likewise.
56094         * tests/test-rmdir.c (rmdir): Likewise.
56095         * tests/test-round1.c (round): Likewise.
56096         * tests/test-roundf1.c (roundf): Likewise.
56097         * tests/test-roundl.c (roundl): Likewise.
56098         * tests/test-setenv.c (setenv): Likewise.
56099         * tests/test-sigaction.c (sigaction): Likewise.
56100         * tests/test-sleep.c (sleep): Likewise.
56101         * tests/test-snprintf.c (snprintf): Likewise.
56102         * tests/test-sprintf-posix.c (sprintf): Likewise.
56103         * tests/test-stat.c (stat): Likewise.
56104         * tests/test-stpncpy.c (stpncpy): Likewise.
56105         * tests/test-strcasestr.c (strcasestr): Likewise.
56106         * tests/test-strchrnul.c (strchrnul): Likewise.
56107         * tests/test-strerror.c (strerror): Likewise.
56108         * tests/test-strsignal.c (strsignal): Likewise.
56109         * tests/test-strstr.c (strstr): Likewise.
56110         * tests/test-strtod.c (strtod): Likewise.
56111         * tests/test-strverscmp.c (strverscmp): Likewise.
56112         * tests/test-symlink.c (symlink): Likewise.
56113         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
56114         * tests/test-times.c (times): Likewise.
56115         * tests/test-trunc1.c (trunc): Likewise.
56116         * tests/test-truncf1.c (truncf): Likewise.
56117         * tests/test-truncl.c (truncl): Likewise.
56118         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
56119         Likewise.
56120         * tests/test-uname.c (uname): Likewise.
56121         * tests/test-unlink.c (unlink): Likewise.
56122         * tests/test-unlinkat.c (unlinkat): Likewise.
56123         * tests/test-unsetenv.c (unsetenv): Likewise.
56124         * tests/test-usleep.c (usleep): Likewise.
56125         * tests/test-utimensat.c (utimensat): Likewise.
56126         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
56127         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
56128         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
56129         * tests/test-vprintf-posix.c (vprintf): Likewise.
56130         * tests/test-vsnprintf.c (vsnprintf): Likewise.
56131         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
56132         * tests/test-wcrtomb.c (wcrtomb): Likewise.
56133         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
56134         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
56135         * tests/test-wcwidth.c (wcwidth): Likewise.
56137         build: pull in conditional headers during GNULIB_POSIXCHECK
56138         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
56139         definitions from any conditionally-included headers.
56140         * lib/stdlib.in.h (includes): Likewise.
56141         * lib/unistd.in.h (includes): Likewise.
56143 2009-12-24  Bruno Haible  <bruno@clisp.org>
56145         * tests/test-argv-iter.c: Include header file being tested immediately
56146         after config.h.
56147         * tests/test-base64.c: Likewise.
56148         * tests/test-flock.c: Likewise.
56149         * tests/test-fsync.c: Likewise.
56150         * tests/test-getdate.c: Likewise.
56151         * tests/test-getndelim2.c: Likewise.
56152         * tests/test-isfinite.c: Likewise.
56153         * tests/test-isinf.c: Likewise.
56154         * tests/test-strerror.c: Likewise.
56155         * tests/test-strsignal.c: Likewise.
56157 2009-12-23  Eric Blake  <ebb9@byu.net>
56159         unistd: work around cygwin bug
56160         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
56161         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
56162         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
56164 2009-12-23  Bruno Haible  <bruno@clisp.org>
56166         localename: More tests.
56167         * tests/test-localename.c (SIZEOF): New macro.
56168         (categories): New variable.
56169         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
56170         test_locale_name_default): Add test w.r.t. thread locale.
56171         (test_locale_name_thread): New function.
56172         (main): Invoke it.
56174         localename: Make aware of thread locale.
56175         * lib/localename.h (gl_locale_name_thread): New declaration.
56176         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
56177         behaviour with respect to thread locale.
56178         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
56179         <langinfo.h>, glthread/lock.h.
56180         (SIZE_BITS): New macro.
56181         (string_hash): New function.
56182         (struct hash_node): New type.
56183         (HASH_TABLE_SIZE): New macro.
56184         (struniq_hash_table, struniq_lock): New variables.
56185         (struniq): New function.
56186         (gl_locale_name_thread): New function.
56187         (gl_locale_name): Invoke it.
56188         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
56189         * modules/localename (Depends-on): Add lock.
56190         Reported by Mike Gran <spk121@yahoo.com>.
56192 2009-12-23  Eric Blake  <ebb9@byu.net>
56194         va-args: new module
56195         * modules/va-args: New file.
56196         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
56197         * MODULES.html.sh (Core language properties): Mention it.
56199         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
56200         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
56201         named alias for __attribute__((__unused__)).
56202         * lib/chown.c: Update client.
56203         * lib/fchmodat.c: Likewise.
56204         * lib/fts.c: Likewise.
56205         * lib/getdate.y: Likewise.
56206         * lib/getgroups.c: Likewise.
56207         * lib/getopt.c: Likewise.
56208         * lib/getugroups.c: Likewise.
56209         * lib/mkdir.c: Likewise.
56210         * lib/mkfifo.c: Likewise.
56211         * lib/mkfifoat.c: Likewise.
56212         * lib/mknod.c: Likewise.
56213         * lib/mknodat.c: Likewise.
56214         * lib/readlink.c: Likewise.
56215         * lib/se-context.in.h: Likewise.
56216         * lib/se-selinux.in.h: Likewise.
56217         * lib/sockets.c: Likewise.
56218         * lib/symlink.c: Likewise.
56219         * lib/symlinkat.c: Likewise.
56220         * lib/unicodeio.c: Likewise.
56221         * lib/unistr.h: Likewise.
56222         * tests/test-areadlink.c: Likewise.
56223         * tests/test-areadlinkat.c: Likewise.
56224         * tests/test-filenamecat.c: Likewise.
56225         * tests/test-fseeko.c: Likewise.
56226         * tests/test-ftello.c: Likewise.
56227         * tests/test-getdate.c: Likewise.
56228         * tests/test-getgroups.c: Likewise.
56229         * tests/test-gethostname.c: Likewise.
56230         * tests/test-quotearg.c: Likewise.
56231         * tests/test-version-etc.c: Likewise.
56232         * tests/test-xalloc-die.c: Likewise.
56233         * tests/test-xfprintf-posix.c: Likewise.
56234         * tests/test-xprintf-posix.c: Likewise.
56235         * tests/test-xvasprintf.c: Likewise.
56237         tests: avoid compiler warnings
56238         * tests/test-fcntl.c (main): Delete unused parameters.
56239         * tests/test-freopen-safer.c (main): Likewise.
56240         * tests/test-xalloc-die.c (main): Mark unused parameters.
56241         * tests/test-fseeko.c (main): Likewise.
56242         * tests/test-ftello.c (main): Likewise.
56243         * tests/test-nanosleep.c (main): Avoid declaration warning.
56244         * tests/test-sleep.c (main): Likewise.
56245         * tests/test-unsetenv.c (main): Silence warning about string
56246         literal.
56247         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
56249 2009-12-23  Bruno Haible  <bruno@clisp.org>
56251         * tests/test-localename.c (test_locale_name): New function, extracted
56252         from main. Also test mixed situations.
56253         (test_locale_name_posix, test_locale_name_environ,
56254         test_locale_name_default): New functions.
56255         (main): Invoke them all.
56256         * modules/localename-tests (configure.ac): Test for newlocale.
56258 2009-12-23  Bruno Haible  <bruno@clisp.org>
56260         unistd: Ensure getcwd gets declared before being overridden.
56261         * lib/unistd.in.h: Conditionally include <io.h>.
56263 2009-12-22  Bruno Haible  <bruno@clisp.org>
56265         wchar: Diagnose broken combination of glibc and gcc versions and flags.
56266         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
56267         (gl_WCHAR_H): Invoke it.
56268         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
56269         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
56270         Reported by Karl Berry <karl@freefriends.org>.
56272 2009-12-22  Eric Blake  <ebb9@byu.net>
56274         math, unistd: avoid redundant includes
56275         * lib/math.in.h (isnan): No need to re-include <math.h>.
56276         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
56278         getsubopt: work around cygwin bug
56279         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
56280         avoid conflicting with system getsubopt.
56281         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
56282         bug.
56284         getopt: synchronize from glibc
56285         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
56286         parameter order.  Adjust all callers.
56287         (_getopt_internal_r, main): Adjust quoting in error messages.
56288         Drop considerations for outdated POSIX 1003.2 error message.
56289         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
56290         callers.
56291         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
56293         test-getopt: test stderr behavior
56294         * modules/getopt-posix-tests (Depends-on): Add dup2.
56295         * tests/test-getopt.c (ASSERT): Avoid stderr.
56296         (main): Move stderr to a temporary file.
56297         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
56298         Instead, add parameter to inform caller if output occurred.
56299         (test_getopt): Adjust all existing tests to expect silence, and
56300         add new tests of leading ":".
56301         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
56302         glibc shortcomings with leading "-:" or "+:" in optstring.
56303         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
56304         Likewise.
56305         * doc/posix-functions/getopt.texi (getopt): Likewise.
56307         test-getopt: enhance test
56308         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
56309         supports optind=0.
56310         * tests/test-getopt.c (OPTIND_MIN): Move...
56311         * tests/test-getopt.h (OPTIND_MIN): ...here.
56312         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
56313         Require that optind=0 works, since modern BSD supports it in
56314         addition to optreset, and since coreutils expects it.
56315         (test_getopt_long_only): New test.
56316         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
56317         glibc shortcomings with 'W;', and enforcement of optind=0.
56318         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
56319         Likewise.
56321 2009-12-21  Bruno Haible  <bruno@clisp.org>
56323         localename: Improvements for MacOS X and Cygwin.
56324         * lib/localename.h (gl_locale_name_environ): New declaration.
56325         * lib/localename.c (gl_locale_name_environ): New function, extracted from
56326         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
56327         (gl_locale_name_posix): Invoke it.
56328         (gl_locale_name_default): Add comments. Use Windows native API also on
56329         Cygwin.
56331 2009-12-21  Bruno Haible  <bruno@clisp.org>
56333         Update list of Win32 locale ids.
56334         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
56335         (LANG_SAMI): Renamed from LANG_SAAMI.
56336         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
56337         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
56338         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
56339         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
56340         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
56341         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
56342         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
56343         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
56344         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
56345         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
56346         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
56347         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
56348         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
56349         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
56350         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
56351         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
56352         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
56353         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
56354         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
56355         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
56356         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
56357         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
56358         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
56359         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
56360         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
56361         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
56362         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
56363         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
56364         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
56365         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
56366         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
56367         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
56368         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
56369         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
56370         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
56371         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
56372         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
56373         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
56374         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
56375         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
56376         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
56377         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
56378         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
56379         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
56380         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
56381         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
56382         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
56383         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
56384         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
56385         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
56386         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
56387         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
56388         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
56389         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
56390         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
56391         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
56392         Add more languages and countries for Sami, Sorbian. Add more countries
56393         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
56394         for Pashto. Change country for Syriac, Tswana.
56396 2009-12-21  Eric Blake  <ebb9@byu.net>
56398         test-utimens: avoid spurious failure
56399         * tests/test-chown.h (nap): Factor...
56400         * tests/nap.h: ...into new file.
56401         * tests/test-lchown.h (nap): Avoid duplication.
56402         * tests/test-utimens-common.h (nap): Use shared implementation,
56403         necessary on file systems with 1-second resolution.
56404         * modules/chown-tests (Files): Include new file.
56405         * modules/fdutimensat-tests (Files): Likewise.
56406         * modules/futimens-tests (Files): Likewise.
56407         * modules/lchown-tests (Files): Likewise.
56408         * modules/openat-tests (Files): Likewise.
56409         * modules/utimens-tests (Files): Likewise.
56410         * modules/utimensat-tests (Files): Likewise.
56412 2009-12-19  Eric Blake  <ebb9@byu.net>
56414         futimens, utimensat: work around Linux bug
56415         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
56416         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
56417         * lib/utimensat.c (rpl_utimensat): Work around it.
56418         * lib/futimens.c (rpl_futimens): Adjust comment.
56420         utimens: work around Linux ctime bug
56421         * lib/utimens.c (detect_ctime_bug): New helper function.
56422         (update_timespec): Differentiate between workaround needed for
56423         this bug vs. what is needed for systems that lack utimensat.
56424         (fdutimens, lutimens): Work around bug.
56426         utimens: check for ctime update
56427         * tests/test-utimens-common.h (check_ctime): Define.
56428         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
56429         * tests/test-futimens.h (test_futimens): Likewise.
56430         * tests/test-lutimens.h (test_lutimens): Likewise.
56431         * doc/posix-functions/futimens.texi (futimens): Document the bug.
56432         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
56434 2009-12-19  Bruno Haible  <bruno@clisp.org>
56436         dprintf-posix: Check against memory leak fixed on 2009-12-15.
56437         * tests/test-dprintf-posix2.sh: New file.
56438         * tests/test-dprintf-posix2.c: New file.
56439         * modules/dprintf-posix-tests (Files): Add them.
56440         (configure.ac): Check for getrlimit and setrlimit.
56441         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
56443 2009-12-19  Bruno Haible  <bruno@clisp.org>
56445         fprintf-posix: Check against memory leak fixed on 2009-12-15.
56446         * tests/test-fprintf-posix3.sh: New file.
56447         * tests/test-fprintf-posix3.c: New file.
56448         * modules/fprintf-posix-tests (Files): Add them.
56449         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
56451 2009-12-19  Eric Blake  <ebb9@byu.net>
56453         dirfd: fix prototype
56454         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
56455         * lib/dirfd.c (dirfd): Likewise.
56457         canonicalize: reduce memory usage
56458         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
56459         allocation to size.
56460         Reported by Solar Designer <solar@openwall.com>.
56462 2009-12-19  Bruno Haible  <bruno@clisp.org>
56464         New module attribute 'Applicability'.
56465         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
56466         * gnulib-tool: New option --extract-applicability.
56467         (func_usage): Document it.
56468         (sed_extract_prog): Recognize it.
56469         (func_get_applicability): New function.
56470         (func_import): Generalize handling of 'link-warning' module.
56471         * modules/link-warning (Applicability): New section.
56472         * modules/arg-nonnull (Applicability): New section.
56473         Repoted by Simon Josefsson <simon@josefsson.org>.
56475 2009-12-19  Bruno Haible  <bruno@clisp.org>
56477         fflush: tweak
56478         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
56479         * lib/fseeko.c (rpl_fseeko): Likewise.
56481 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
56483         * lib/gl_list.h: Fix typo in comment.
56485 2009-12-16  Eric Blake  <ebb9@byu.net>
56487         fcntl: use to simplify other modules
56488         * modules/cloexec (Depends-on): Add fcntl.
56489         * modules/fchdir (Depends-on): Likewise.
56490         * modules/fd-safer-flag (Depends-on): Likewise.
56491         * modules/unistd-safer (Depends-on): Likewise.
56492         * modules/dup3 (configure.ac): Set module indicator.
56493         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
56494         missing.
56495         * lib/fchdir.c (_gl_register_dup): Fix comment.
56496         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
56497         * lib/dup-safer.c (dup_safer): Likewise.
56498         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
56499         * lib/dup3.c (dup3): Likewise.
56500         * tests/test-fchdir.c (main): Enhance test.
56501         Fixes a dup_cloexec bug reported by Ondřej Vašík.
56503         fcntl: port portions of fcntl to mingw
56504         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
56505         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
56506         replacement for mingw.
56507         * modules/fcntl (Description): Update.
56508         (Depends-on): Add dup2.
56509         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
56510         * modules/fcntl-h (Makefile.am): Substitute it.
56511         * lib/fcntl.in.h (fcntl): Update declaration.
56512         (F_DUPFD, F_GETFD): New macros, when needed.
56513         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
56514         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
56515         * tests/test-fcntl.c (check_flags, main): Enhance test for items
56516         we now guarantee.
56518         fcntl: work around cygwin bug in F_DUPFD
56519         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
56520         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
56521         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
56522         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
56523         * doc/posix-functions/fcntl.texi (fcntl): Document it.
56525         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
56526         * modules/fcntl (Files): List new files.
56527         (configure.ac): Run a test.
56528         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
56529         * lib/fcntl.c (rpl_fcntl): Likewise.
56530         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
56531         (gl_FCNTL_H): Always replace fcntl.h.
56532         * modules/fcntl-h (Makefile.am): Substitute witnesses.
56533         * lib/fcntl.in.h (fcntl): Declare replacement.
56534         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
56535         needed, plus a witness.
56536         * doc/posix-functions/fcntl.texi (fcntl): Document this.
56537         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
56538         * tests/test-fcntl.c: New file.
56539         * modules/fcntl-tests: Likewise.
56541         binary-io: avoid potential compilation warning
56542         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
56543         directives.
56545         fflush: avoid compilation error on NetBSD
56546         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
56547         between off_t and fpos_t, since the latter is sometimes a struct.
56548         * lib/fseeko.c (rpl_fseeko): Likewise.
56549         Reported by Alexander Nasonov <alnsn@yandex.ru>.
56551 2009-12-15  Eric Blake  <ebb9@byu.net>
56553         fcntl-h, stdio, sys_ioctl: fix declarations
56554         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
56555         function must not take arguments.
56556         * lib/sys_ioctl.in.h (ioctl): Likewise.
56557         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
56558         (open): Add a link warning.
56560 2009-12-15  Jim Meyering  <meyering@redhat.com>
56562         areadlink, areadlink-with-size: relax license to LGPLv2+
56563         * modules/areadlink (License): Relax to LGPLv2+.
56564         * modules/areadlink-with-size (License): Likewise.
56566 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
56567             Bruno Haible  <bruno@clisp.org>
56569         *printf: Fix memory leak.
56570         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
56571         * lib/vfprintf.c (vfprintf): Likewise.
56572         * lib/dprintf.c (dprintf): Likewise.
56573         * lib/vdprintf.c (vdprintf): Likewise.
56575 2009-12-14  Eric Blake  <ebb9@byu.net>
56577         accept4: adjust module dependencies
56578         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
56580         utimens: one more try at avoiding compiler warning
56581         * lib/utimens.c (lutimens): Lower scope of result.
56583 2009-12-13  Bruno Haible  <bruno@clisp.org>
56585         Move the malloc checking from module 'list' to new module 'xlist'.
56586         * modules/xlist: New file.
56587         * lib/gl_xlist.h: New file.
56588         * lib/gl_xlist.c: New file.
56589         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
56590         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
56591         gl_list_add_last, gl_list_add_before, gl_list_add_after,
56592         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
56593         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
56594         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
56595         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
56596         gl_sortedlist_nx_add): New declarations.
56597         (struct gl_list_implementation): Rename and change methods accordingly.
56598         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
56599         (gl_list_nx_create): Renamed from gl_list_create.
56600         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
56601         (gl_list_nx_set_at): Renamed from gl_list_set_at.
56602         (gl_list_nx_add_first): Renamed from gl_list_add_first.
56603         (gl_list_nx_add_last): Renamed from gl_list_add_last.
56604         (gl_list_nx_add_before): Renamed from gl_list_add_before.
56605         (gl_list_nx_add_after): Renamed from gl_list_add_after.
56606         (gl_list_nx_add_at): Renamed from gl_list_add_at.
56607         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
56608         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
56609         gl_list_create_empty.
56610         (gl_list_nx_create): Renamed from gl_list_create.
56611         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
56612         (gl_list_nx_set_at): Renamed from gl_list_set_at.
56613         (gl_list_nx_add_first): Renamed from gl_list_add_first.
56614         (gl_list_nx_add_last): Renamed from gl_list_add_last.
56615         (gl_list_nx_add_before): Renamed from gl_list_add_before.
56616         (gl_list_nx_add_after): Renamed from gl_list_add_after.
56617         (gl_list_nx_add_at): Renamed from gl_list_add_at.
56618         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
56619         * lib/gl_array_list.c: Don't include xalloc.h.
56620         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
56621         NULL upon out-of-memory.
56622         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
56623         out-of-memory.
56624         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
56625         Change return type to 'int'.
56626         (gl_array_nx_set_at): Renamed from gl_array_set_at.
56627         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
56628         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
56629         upon out-of-memory.
56630         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
56631         upon out-of-memory.
56632         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
56633         upon out-of-memory.
56634         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
56635         upon out-of-memory.
56636         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
56637         out-of-memory.
56638         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
56639         Update.
56640         (gl_array_list_implementation): Update.
56641         * lib/gl_carray_list.c: Don't include xalloc.h.
56642         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
56643         Return NULL upon out-of-memory.
56644         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
56645         out-of-memory.
56646         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
56647         Change return type to 'int'.
56648         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
56649         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
56650         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
56651         upon out-of-memory.
56652         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
56653         upon out-of-memory.
56654         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
56655         out-of-memory.
56656         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
56657         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
56658         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
56659         Update.
56660         (gl_carray_list_implementation): Update.
56661         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
56662         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
56663         gl_linked_create_empty. Return NULL upon out-of-memory.
56664         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
56665         out-of-memory.
56666         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
56667         Change return type to 'int'. Return -1 upon out-of-memory.
56668         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
56669         out-of-memory.
56670         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
56671         upon out-of-memory.
56672         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
56673         upon out-of-memory.
56674         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
56675         NULL upon out-of-memory.
56676         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
56677         upon out-of-memory.
56678         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
56679         out-of-memory.
56680         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
56681         Update.
56682         * lib/gl_linked_list.c: Don't include xalloc.h.
56683         (gl_linked_list_implementation): Update.
56684         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
56685         (add_to_bucket): Change return type to 'int'.
56686         (gl_linkedhash_list_implementation): Update.
56687         * lib/gl_anytree_list1.h (free_subtree): New function.
56688         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
56689         gl_tree_create_empty. Return NULL upon out-of-memory.
56690         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
56691         Change return type to 'int'. Return -1 upon out-of-memory.
56692         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
56693         out-of-memory.
56694         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
56695         (gl_tree_remove_node): New function, moved here from
56696         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
56697         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
56698         Update.
56699         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
56700         malloc, not xmalloc. Return NULL upon out-of-memory.
56701         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
56702         out-of-memory.
56703         (gl_tree_remove_node_from_tree): New function, extracted from
56704         gl_tree_remove_node.
56705         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
56706         upon out-of-memory.
56707         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
56708         out-of-memory.
56709         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
56710         upon out-of-memory.
56711         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
56712         upon out-of-memory.
56713         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
56714         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
56715         not xmalloc. Return NULL upon out-of-memory.
56716         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
56717         out-of-memory.
56718         (gl_tree_remove_node_from_tree): New function, extracted from
56719         gl_tree_remove_node.
56720         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
56721         upon out-of-memory.
56722         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
56723         out-of-memory.
56724         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
56725         upon out-of-memory.
56726         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
56727         upon out-of-memory.
56728         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
56729         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
56730         gl_anytree_list1.h before gl_anyavltree_list2.h.
56731         (gl_avltree_list_implementation): Update.
56732         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
56733         gl_anytree_list1.h before gl_anyavltree_list2.h.
56734         (gl_rbtree_list_implementation): Update.
56735         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
56736         Change return type to 'int'. Return -1 upon out-of-memory. Use
56737         __builtin_expect.
56738         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
56739         (gl_avltreehash_list_implementation): Update.
56740         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
56741         (gl_rbtreehash_list_implementation): Update.
56742         * modules/array-list (Depends-on): Remove xalloc.
56743         * modules/carray-list (Depends-on): Likewise.
56744         * modules/linked-list (Depends-on): Likewise.
56745         * modules/linkedhash-list (Depends-on): Likewise.
56746         * modules/avltree-list (Depends-on): Likewise.
56747         * modules/rbtree-list (Depends-on): Likewise.
56748         * modules/avltreehash-list (Depends-on): Likewise.
56749         * modules/rbtreehash-list (Depends-on): Likewise.
56751         * modules/xsublist: New file.
56752         * lib/gl_xsublist.h: New file.
56753         * lib/gl_xsublist.c: New file.
56754         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
56755         (gl_sublist_nx_create): New declaration.
56756         * lib/gl_sublist.c: Don't include xalloc.h.
56757         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
56758         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
56759         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
56760         Change return type to 'int'. Return -1 upon out-of-memory.
56761         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
56762         upon out-of-memory.
56763         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
56764         NULL upon out-of-memory.
56765         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
56766         upon out-of-memory.
56767         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
56768         NULL upon out-of-memory.
56769         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
56770         NULL upon out-of-memory.
56771         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
56772         upon out-of-memory.
56773         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
56774         (gl_sublist_list_implementation): Update.
56775         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
56776         upon out-of-memory.
56777         * modules/sublist (Depends-on): Remove xalloc.
56779         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
56780         * tests/test-carray_list.c: Likewise.
56781         * tests/test-linked_list.c: Likewise.
56782         * tests/test-linkedhash_list.c: Likewise.
56783         * tests/test-avltree_list.c: Likewise.
56784         * tests/test-rbtree_list.c: Likewise.
56785         * tests/test-avltreehash_list.c: Likewise.
56786         * tests/test-rbtreehash_list.c: Likewise.
56787         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
56788         * modules/carray-list-tests (Makefile.am): Likewise.
56789         * modules/linked-list-tests (Makefile.am): Likewise.
56790         * modules/linkedhash-list-tests (Makefile.am): Likewise.
56791         * modules/avltree-list-tests (Makefile.am): Likewise.
56792         * modules/rbtree-list-tests (Makefile.am): Likewise.
56793         * modules/avltreehash-list-tests (Makefile.am): Likewise.
56794         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
56796         * NEWS: Mention the changes.
56798         * lib/clean-temp.c: Include gl_xlist.h.
56799         * modules/clean-temp (Depends-on): Add xlist.
56801         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
56802         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
56804         * tests/test-array_oset.c: Include gl_xlist.h.
56805         * modules/array-oset-tests (Depends-on): Add xlist.
56807         Reported by José E. Marchesi <jemarch@gnu.org>.
56809 2009-12-13  Bruno Haible  <bruno@clisp.org>
56811         Move the malloc checking from module 'oset' to new module 'xoset'.
56812         * modules/xoset: New file.
56813         * lib/gl_xoset.h: New file.
56814         * lib/gl_xoset.c: New file.
56815         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
56816         declarations.
56817         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
56818         (struct gl_oset_implementation): Rename and change methods accordingly.
56819         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
56820         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
56821         'int'. Mark as __warn_unused_result__.
56822         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
56823         gl_oset_create_empty.
56824         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
56825         'int'.
56826         * lib/gl_array_oset.c: Don't include xalloc.h.
56827         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
56828         malloc, not xmalloc.
56829         (grow): Change return type to 'int'. Don't call xalloc_die.
56830         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
56831         to 'int'.
56832         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
56833         'int'.
56834         (gl_array_oset_implementation): Update.
56835         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
56836         gl_tree_create_empty.
56837         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
56838         'int'.
56839         * lib/gl_avltree_oset.c: Don't include xalloc.h.
56840         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
56841         xmalloc.
56842         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
56843         not xmalloc.
56844         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
56845         xmalloc.
56846         (gl_avltree_oset_implementation): Update.
56847         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
56848         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
56849         xmalloc.
56850         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
56851         not xmalloc.
56852         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
56853         xmalloc.
56854         (gl_rbtree_oset_implementation): Update.
56855         * modules/array-oset (Depends-on): Remove xalloc.
56856         * modules/avltree-oset (Depends-on): Likewise.
56857         * modules/rbtree-oset (Depends-on): Likewise.
56858         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
56859         * tests/test-avltree_oset.c: Likewise.
56860         * tests/test-rbtree_oset.c: Likewise.
56861         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
56862         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
56863         * modules/rbtree-oset-tests (Makefile.am): Likewise.
56864         * NEWS: Mention the change.
56866 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
56868         maint.mk: allow a project to override release-prep commands
56869         * top/maint.mk (alpha, beta, stable): Move release-preparatory
56870         commands into a new rule.
56871         (release-prep): New rule.
56872         (release-prep-hook): New overridable variable.
56874 2009-12-13  Bruno Haible  <bruno@clisp.org>
56876         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
56878 2009-12-13  Jim Meyering  <meyering@redhat.com>
56880         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
56881         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
56883 2009-12-12  Bruno Haible  <bruno@clisp.org>
56885         duplocale: Tweak.
56886         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
56888 2009-12-12  Karl Berry  <karl@gnu.org>
56890         * config/srclist.txt (strtoll.c): tab changes, no more sync.
56892 2009-12-12  Bruno Haible  <bruno@clisp.org>
56894         * m4/po.m4: Undo incorrect untabification.
56896 2009-12-12  Bruno Haible  <bruno@clisp.org>
56898         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
56899         * modules/c-strtod (Depends-on): Add locale.
56900         * modules/c-strtold (Depends-on): Likewise.
56902 2009-12-12  Bruno Haible  <bruno@clisp.org>
56904         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
56906 2009-12-11  Eric Blake  <ebb9@byu.net>
56908         setenv: relax requirement in light of POSIX ruling
56909         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
56910         not NULL.
56911         * tests/test-setenv.c (main): Relax test.
56912         * tests/test-unsetenv.c (main): Likewise.
56913         * doc/posix-functions/setenv.texi (setenv): Document this.
56914         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
56916 2009-12-11  Bruno Haible  <bruno@clisp.org>
56918         New module 'fd-safer-flag'.
56919         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
56920         * lib/dup-safer.c (dup_safer_flag): Remove function.
56921         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
56922         * lib/fd-safer.c (fd_safer_flag): Remove function.
56923         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
56924         * modules/cloexec (configure.ac): Drop indicator macro.
56925         * modules/fd-safer-flag: New file.
56926         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
56927         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
56928         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
56930 2009-12-11  Bruno Haible  <bruno@clisp.org>
56932         Tests for module 'nl_langinfo'.
56933         * modules/nl_langinfo-tests: New file.
56934         * tests/test-nl_langinfo.sh: New file.
56935         * tests/test-nl_langinfo.c: New file.
56937         New module 'nl_langinfo'.
56938         * lib/nl_langinfo.c: New file.
56939         * m4/nl_langinfo.m4: New file.
56940         * modules/nl_langinfo: New file.
56941         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
56943 2009-12-11  Bruno Haible  <bruno@clisp.org>
56945         Tests for module 'langinfo'.
56946         * modules/langinfo-tests: New file.
56947         * tests/test-langinfo.c: New file.
56949         New module 'langinfo'.
56950         * lib/langinfo.in.h: New file.
56951         * m4/langinfo_h.m4: New file.
56952         * modules/langinfo: New file.
56953         * doc/posix-headers/langinfo.texi: Mention the new module.
56955 2009-12-11  Bruno Haible  <bruno@clisp.org>
56957         * lib/config.charset: Untabify.
56959 2009-12-11  Bruno Haible  <bruno@clisp.org>
56961         * modules/unistd-safer (configure.ac): Drop indicator macro.
56963 2009-12-11  Bruno Haible  <bruno@clisp.org>
56965         Move pipe2-safer code to its own file.
56966         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
56967         * lib/pipe-safer.c (pipe2_safer): Remove function.
56968         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
56969         (Makefile.am): Add it to lib_SOURCES.
56971 2009-12-10  Bruno Haible  <bruno@clisp.org>
56973         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
56975 2009-12-10  Bruno Haible  <bruno@clisp.org>
56977         Declare which arguments expect non-NULL values, for GCC and clang.
56978         * build-aux/arg-nonnull.h: New file.
56979         * modules/arg-nonnull: New file.
56980         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
56981         (inet_ntop, inet_pton): Use it.
56982         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
56983         (closedir, dirfd, opendir, scandir, alphasort): Use it.
56984         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
56985         (open, openat): Use it.
56986         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
56987         (fnmatch): Use it.
56988         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
56989         (getopt, getopt_long, getopt_long_only): Use it.
56990         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
56991         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
56992         Use it.
56993         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
56994         (iconv_open): Use it.
56995         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
56996         (strtoimax, strtoumax): Use it.
56997         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
56998         (duplocale): Use it.
56999         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
57000         (frexp, frexpl): Use it.
57001         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
57002         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
57003         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
57004         (tsearch, tfind, tdelete, twalk): Use it.
57005         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
57006         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
57007         sigpending): Use it.
57008         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
57009         (posix_spawn, posix_spawnp, posix_spawnattr_init,
57010         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
57011         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
57012         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
57013         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
57014         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
57015         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
57016         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
57017         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
57018         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
57019         Use it.
57020         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
57021         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
57022         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
57023         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
57024         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
57025         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
57026         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
57027         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
57028         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
57029         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
57030         strtoull, unsetenv): Use it.
57031         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
57032         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
57033         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
57034         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
57035         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
57036         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
57037         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
57038         (strcasecmp, strncasecmp): Use it.
57039         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
57040         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
57041         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
57042         rpl_setsockopt): Use it.
57043         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
57044         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
57045         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
57046         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
57047         (gettimeofday): Use it.
57048         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
57049         (times): Use it.
57050         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
57051         (uname): Use it.
57052         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
57053         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
57054         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
57055         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
57056         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
57057         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
57058         unlinkat, write): Use it.
57059         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
57060         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
57061         * lib/argv-iter.h: Include arg-nonnull.h.
57062         (_ATTRIBUTE_NONNULL_): Remove macro.
57063         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
57064         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
57065         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
57066         optimization.
57067         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
57068         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
57069         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
57070         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
57071         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
57072         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
57073         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
57074         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
57075         * modules/arpa_inet (Depends-on): Add arg-nonnull.
57076         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
57077         * modules/dirent (Depends-on): Add arg-nonnull.
57078         (Makefile.am): Insert arg-nonnull.h into dirent.h.
57079         * modules/fcntl-h (Depends-on): Add arg-nonnull.
57080         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
57081         * modules/fnmatch (Depends-on): Add arg-nonnull.
57082         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
57083         * modules/getopt-posix (Depends-on): Add arg-nonnull.
57084         (Makefile.am): Insert arg-nonnull.h into getopt.h.
57085         * modules/glob (Depends-on): Add arg-nonnull.
57086         (Makefile.am): Insert arg-nonnull.h into glob.h.
57087         * modules/iconv_open (Depends-on): Add arg-nonnull.
57088         (Makefile.am): Insert arg-nonnull.h into iconv.h.
57089         * modules/inttypes (Depends-on): Add arg-nonnull.
57090         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
57091         * modules/locale (Depends-on): Add arg-nonnull.
57092         (Makefile.am): Insert arg-nonnull.h into locale.h.
57093         * modules/math (Depends-on): Add arg-nonnull.
57094         (Makefile.am): Insert arg-nonnull.h into math.h.
57095         * modules/netdb (Depends-on): Add arg-nonnull.
57096         (Makefile.am): Insert arg-nonnull.h into netdb.h.
57097         * modules/search (Depends-on): Add arg-nonnull.
57098         (Makefile.am): Insert arg-nonnull.h into search.h.
57099         * modules/signal (Depends-on): Add arg-nonnull.
57100         (Makefile.am): Insert arg-nonnull.h into signal.h.
57101         * modules/spawn (Depends-on): Add arg-nonnull.
57102         (Makefile.am): Insert arg-nonnull.h into spawn.h.
57103         * modules/stdio (Depends-on): Add arg-nonnull.
57104         (Makefile.am): Insert arg-nonnull.h into stdio.h.
57105         * modules/stdlib (Depends-on): Add arg-nonnull.
57106         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
57107         * modules/string (Depends-on): Add arg-nonnull.
57108         (Makefile.am): Insert arg-nonnull.h into string.h.
57109         * modules/strings (Depends-on): Add arg-nonnull.
57110         (Makefile.am): Insert arg-nonnull.h into strings.h.
57111         * modules/sys_socket (Depends-on): Add arg-nonnull.
57112         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
57113         * modules/sys_stat (Depends-on): Add arg-nonnull.
57114         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
57115         * modules/sys_time (Depends-on): Add arg-nonnull.
57116         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
57117         * modules/sys_times (Depends-on): Add arg-nonnull.
57118         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
57119         * modules/sys_utsname (Depends-on): Add arg-nonnull.
57120         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
57121         * modules/time (Depends-on): Add arg-nonnull.
57122         (Makefile.am): Insert arg-nonnull.h into time.h.
57123         * modules/unistd (Depends-on): Add arg-nonnull.
57124         (Makefile.am): Insert arg-nonnull.h into unistd.h.
57125         * modules/wchar (Depends-on): Add arg-nonnull.
57126         (Makefile.am): Insert arg-nonnull.h into wchar.h.
57127         * modules/argv-iter (Depends-on): Add arg-nonnull.
57128         * tests/test-canonicalize.c (null_ptr): New function.
57129         (main): Use it.
57130         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
57131         (main): Use it.
57132         * tests/test-memmem.c (null_ptr): New function.
57133         (main): Use it.
57134         Reported by Jim Meyering.
57136 2009-12-10  Bruno Haible  <bruno@clisp.org>
57138         Use spaces for indentation, not tabs.
57139         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
57140         * m4/*.m4: Untabify.
57141         * build-aux/*.h: Untabify.
57142         * tests/**/*.[hc]: Untabify.
57143         * README: New section "Indent with spaces, not TABs", based on
57144         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
57145         * NEWS: Mention the change.
57147 2009-12-10  Bruno Haible  <bruno@clisp.org>
57149         pty test: Fix link error.
57150         * modules/pty-tests (Makefile.am): Add the default LDADD value to
57151         test_pty_LDADD.
57153 2009-12-07  Simon Josefsson  <simon@josefsson.org>
57155         * modules/pty: New file.
57156         * modules/pty-tests: New file.
57157         * m4/pty.m4: New file.
57158         * tests/test-pty.c: New file.
57159         * doc/glibc-headers/pty.texi: Modified.
57160         * doc/glibc-functions/forkpty.texi: Modified.
57161         * doc/glibc-functions/openpty.texi: Modified.
57163 2009-12-10  Bruno Haible  <bruno@clisp.org>
57165         Avoid syntax error in C++ mode.
57166         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
57168 2009-12-10  Bruno Haible  <bruno@clisp.org>
57170         Use sed with option -e.
57171         * gnulib-tool (func_version, func_emit_copyright_notice,
57172         func_emit_initmacro_end, func_import, func_create_testdir): Pass
57173         option -e to sed.
57174         * modules/link-warning (Makefile.am): Likewise.
57176 2009-12-10  Jim Meyering  <meyering@redhat.com>
57178         mgetgroups: do not write bytes beyond end of malloc'd buffer
57179         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
57180         username, we call getgroups with a one-element-shorter buffer,
57181         but still told it the length was original, max_n_groups.
57183 2009-12-09  Eric Blake  <ebb9@byu.net>
57185         cloexec: relax license
57186         * modules/cloexec (Maintainer): Add myself.
57187         (License): Use LGPL, not GPL.
57189         link-warning: optimize generation
57190         * modules/link-warning (Makefile.am): Reduce process usage.
57192 2009-12-09  Bruno Haible  <bruno@clisp.org>
57194         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
57195         workaround was added on 2009-11-17.
57197 2009-12-09  Jim Meyering  <meyering@redhat.com>
57198             Bruno Haible  <bruno@clisp.org>
57200         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
57201         * modules/link-warning (Makefile.am): Make the comment-removing sed
57202         command more robust in the face of bootstrap-prepended comment lines.
57204 2009-12-09  Bruno Haible  <bruno@clisp.org>
57206         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
57207         most one group.
57209 2009-12-09  Simon Josefsson  <simon@josefsson.org>
57210             Bruno Haible  <bruno@clisp.org>
57212         * build-aux/link-warning.h: Add copyright notice.
57213         * modules/link-warning (Makefile.am): Generate link-warning.h from
57214         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
57215         * NEWS: Mention change in link-warning module.
57216         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
57217         * modules/dirent (Makefile.am): Add dependency to dirent.h.
57218         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
57219         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
57220         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
57221         * modules/math (Makefile.am): Add dependency to math.h.
57222         * modules/search (Makefile.am): Add dependency to search.h.
57223         * modules/signal (Makefile.am): Add dependency to signal.h.
57224         * modules/spawn (Makefile.am): Add dependency to spawn.h.
57225         * modules/stdio (Makefile.am): Add dependency to stdio.h.
57226         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
57227         * modules/string (Makefile.am): Add dependency to string.h.
57228         * modules/strings (Makefile.am): Add dependency to strings.h.
57229         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
57230         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
57231         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
57232         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
57233         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
57234         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
57235         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
57236         * modules/unistd (Makefile.am): Add dependency to unistd.h.
57237         * modules/wchar (Makefile.am): Add dependency to wchar.h.
57239 2009-12-09  Bruno Haible  <bruno@clisp.org>
57241         fchdir: Optimize away rpl_fstat when possible.
57242         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
57243         REPLACE_OPEN_DIRECTORY.
57244         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
57246 2009-12-09  Bruno Haible  <bruno@clisp.org>
57248         * lib/fchdir.c: Update comment.
57250 2009-12-09  Bruno Haible  <bruno@clisp.org>
57252         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
57254 2009-12-08  Eric Blake  <ebb9@byu.net>
57256         fchdir: avoid memory leak on re-registration.
57257         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
57259 2009-12-08  Jim Meyering  <meyering@redhat.com>
57261         init.sh: avoid Solaris 10 /bin/sh portability problem
57262         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
57263         sourced script:
57264           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
57265           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
57266           bar
57267         tests/init.sh relied on that, accepting a --set-path=DIR argument,
57268         and two tests used that idiom.
57269         * tests/init.sh: Update suggested usage comments.
57270         (path_prepend_): New function, to be used in place
57271         of the --src-path=DIR option.
57272         (setup_): Move PATH-prepending code into path_prepend_.
57273         * tests/test-pread.sh: Adapt to new usage.
57274         * tests/test-xalloc-die.sh: Likewise.
57276 2009-12-08  Simon Josefsson  <simon@josefsson.org>
57278         * doc/gnulib.texi (Glibc pty.h): Add.
57279         * doc/glibc-functions/forkpty.texi: Add.
57280         * doc/glibc-functions/openpty.texi: Add.
57281         Suggested by Bruno Haible.
57283 2009-12-08  Eric Blake  <ebb9@byu.net>
57285         fchdir: fix logic bugs
57286         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
57287         * tests/test-fchdir.c (main): Enhance test.
57288         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
57289         is in use.
57291         dup2: fix logic bugs
57292         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
57293         REPLACE_DUP2 to decide when rpl_dup2 is needed.
57294         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
57295         exists.
57296         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
57298 2009-12-07  Eric Blake  <ebb9@byu.net>
57300         unlink: fix m4 detection
57301         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
57303         unistd-safer: add unit test
57304         * modules/unistd-safer-tests: New file.
57305         * tests/test-dup-safer.c: Likewise.
57306         * tests/test-cloexec.c (setmode): Avoid compiler warning.
57307         * tests/test-dup2.c (setmode): Likewise.
57308         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
57310         cloexec: preserve text vs. binary across dup_cloexec
57311         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
57312         mode.
57313         * modules/dup2-tests (Depends-on): Add binary-io.
57314         * modules/cloexec-tests (Depends-on): Likewise.
57315         * tests/test-dup2.c (setmode, is_mode): New helpers.
57316         (main): Add tests that translation mode is preserved.
57317         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
57318         Reported by Bruno Haible.
57320         mgetgroups: reduce duplicate listings
57321         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
57322         resulting array.
57323         * tests/test-chown.h (test_chown): Simplify client.
57324         * tests/test-lchown.h (test_lchown): Likewise.
57326 2009-12-06  Bruno Haible  <bruno@clisp.org>
57328         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
57329         value.
57331 2009-12-06  Bruno Haible  <bruno@clisp.org>
57333         * lib/progname.c: Include stdio.h, stdlib.h.
57334         (set_program_name): Reject a NULL argument.
57336 2009-12-05  Eric Blake  <ebb9@byu.net>
57338         pipe2-safer: new module
57339         * modules/pipe2-safer: New file.
57340         * lib/unistd-safer.h (pipe2_safer): New prototype.
57341         * lib/unistd--.h (pipe2): New wrapper.
57342         * lib/pipe-safer.c (pipe2_safer): New function.
57343         * modules/pipe (Depends-on): Add pipe2-safer.
57344         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
57346         stdlib-safer: preserve cloexec flag for mkostemp[s]
57347         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
57348         fd_safer_flag.
57350         unistd-safer: allow preservation of cloexec status via flag
57351         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
57352         prototypes.
57353         * lib/dup-safer.c (dup_safer_flag): New function.
57354         * lib/fd-safer.c (fd_safer_flag): Likewise.
57355         * modules/cloexec (configure.ac): Set witness.
57357         test-dup2: enhance test
57358         * modules/dup2-tests (Depends-on): Add cloexec.
57359         * tests/test-dup2.c (main): Enhance test.
57361         cloexec: add dup_cloexec
57362         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
57363         header and comments.
57364         * lib/cloexec.c (set_cloexec_flag): Add comments.
57365         (dup_cloexec): New function, with mingw implementation borrowed
57366         from...
57367         * lib/w32spawn.h (dup_noinherit): ...here.
57368         * modules/execute (Depends-on): Add cloexec.
57369         * modules/pipe (Depends-on): Likewise.
57370         * modules/cloexec (Depends-on): Add dup2.
57371         * modules/cloexec-tests (Files): New file.
57372         * tests/test-cloexec.c: Likewise.
57374         test-xalloc-die: fix test for mingw
57375         * modules/xalloc-die-tests (Files): Add tests/init.sh.
57376         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
57377         directory and .exe suffix off argv[0] output.
57379         test-fseeko: fix test for mingw
57380         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
57381         than undefining fseek, so test will pass on mingw.
57383 2009-12-05  Bruno Haible  <bruno@clisp.org>
57385         * lib/progname.h (set_program_name): Clarify specification.
57386         * lib/progname.c (set_program_name): Likewise.
57387         Reported by Jim Meyering.
57389 2009-12-05  Jim Meyering  <meyering@redhat.com>
57391         maint.mk: backslash-escape parens in default regexp
57392         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
57393         backslash-escape the literal parentheses.
57395         maint.mk: news-date-check: use grep -E
57396         * top/maint.mk (today): Define a Make variable, not a...
57397         (news-date-check): ...shell variable.
57398         (news-date-regexp): Use the Make variable.
57399         Use grep's -E option.  Change the failing diagnostic to mention
57400         the variable, $(news-date-regexp).
57402 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
57404         maintainer-makefile: allow customization of NEWS entry format
57405         * top/maint.mk (news-date-regexp): New overridable variable.
57406         (news-date-check): Use it.
57408 2009-12-04  Eric Blake  <ebb9@byu.net>
57410         mgetgroups: add xgetgroups, and avoid ENOSYS failures
57411         * lib/mgetgroups.h (xgetgroups): New prototype.
57412         * lib/mgetgroups.c (xgetgroups): New wrapper.
57413         (mgetgroups): Handle ENOSYS.
57414         * modules/mgetgroups (Depends-on): Add realloc.
57415         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
57417         mgetgroups: avoid argument promotion issues with -1
57418         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
57419         for invalid gid_t.
57420         * tests/test-chown.h (getegid, test_chown): Likewise.
57421         * tests/test-lchown.h (getegid, test_lchown): Likewise.
57423 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
57425         exclude: Fix header file problems.
57426         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
57428 2009-12-01  Jim Meyering  <meyering@redhat.com>
57430         fts: fts_open: do not let an empty string cause immediate failure
57431         This is required in support of GNU rm, for which the command
57432         "rm A '' B" must process and remove both A and B, in spite of
57433         the empty string argument.
57434         * lib/fts.c (fts_open): Do not let the presence of an empty string
57435         cause fts_open to fail immediately.  Most fts-using tools must be
57436         able to process all arguments, in order, and can be expected to
57437         diagnose such arguments themselves.
57439 2009-11-30  Eric Blake  <ebb9@byu.net>
57441         utimens: fix compilation error
57442         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
57443         Declare variable at right scope.
57445 2009-11-29  Jim Meyering  <meyering@redhat.com>
57447         bootstrap: handle perl-5.11's changed --version output
57448         * build-aux/bootstrap (get_version): Handle perl separately,
57449         since perl-5.11's --version output is different.
57451 2009-11-28  Jim Meyering  <meyering@redhat.com>
57453         userspec: depend on the inttostr module, too
57454         * modules/userspec (Depends-on): Add inttostr.
57456         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
57457         * lib/userspec.c (parse_with_separator): Do not accept a user ID
57458         number of MAXUID when it evaluates to (uid_t) -1.
57459         Likewise for group ID.  Reported by Matt McCutchen in
57460         <http://savannah.gnu.org/bugs/?28113>
57462         userspec: reformat to use spaces, not TABs
57463         * lib/userspec.c: Expand TABs to spaces.
57464         Add Emacs' "indent-tabs-mode: nil" hint.
57466 2009-11-27  Eric Blake  <ebb9@byu.net>
57468         getopt-gnu: flush out another BSD bug
57469         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
57470         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
57471         flush out BSD bug.
57472         * tests/test-getopt.h (test_getopt): End lists with NULL.
57473         * tests/test-getopt_long.h (test_getopt_long): Likewise.
57474         (test_getopt_long_posix): Enhance test.
57475         * modules/getopt-posix-tests (Depends-on): Add stdbool.
57476         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
57477         getopt-gnu.
57478         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
57479         Likewise.
57481 2009-11-27  Simon Josefsson  <simon@josefsson.org>
57483         * modules/idpriv-droptemp-tests (Notice): Fix text.
57485 2009-11-27  Jim Meyering  <meyering@redhat.com>
57487         test-xalloc-die: avoid spurious failure due to libtool argv difference
57488         In a libtool-enabled project, this test would fail due to a difference
57489         in the emitted program name, e.g.,
57490         -test-xalloc-die: memory exhausted
57491         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
57492         Use program to avoid that.
57493         * modules/xalloc-die-tests (Depends-on): Add progname.
57494         * tests/test-xalloc-die.c: Include progname.h".
57495         (program_name): Remove decl.
57496         (main): Call set_program_name.
57497         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
57499 2009-11-26  Richard Jones  <rjones@redhat.com>
57501         w32sock: leave win32 error in place.
57502         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
57504 2009-11-26  Eric Blake  <ebb9@byu.net>
57506         init.sh: suggest to use skip_ and fail_ functions in comments
57507         * tests/init.sh: Add a sentence.
57509 2009-11-25  Bruno Haible  <bruno@clisp.org>
57511         init.sh: add documentation in comments
57512         * tests/init.sh: Add some developer and user documentation.
57514 2009-11-26  Jim Meyering  <meyering@redhat.com>
57516         init.sh: accommodate even those who specify bogus srcdir manually
57517         * tests/init.sh: Normally, srcdir is guaranteed by automake and
57518         configure-time tests to be sanitized, so that there is no need to
57519         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
57520         (with no double quotes) suffices.  However, since tests may be
57521         invoked manually, and since you may explicitly set srcdir to the
57522         name of a directory containing spaces, do quote its uses here.
57523         * tests/test-pread.sh: Likewise.
57524         Suggested by Bruno Haible.
57526         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
57527         * tests/test-pread.sh: Write no data into the pipe, because
57528         test-pread actually reads none.  This avoids a diagnostic,
57529         "bash: echo: write error: Broken pipe", that arises in the unusual
57530         event something is ignoring SIGPIPE, and might be interpreted
57531         as some sort of failure.  Reported by Bruno Haible.
57533 2009-11-25  Jim Meyering  <meyering@redhat.com>
57535         test-pread: cover failure with ESPIPE and EINVAL
57536         * tests/test-pread.c (main): Test for failure, too.
57537         * tests/test-pread.sh: Invoke with stdin on a pipe.
57538         Suggested by Eric Blake.
57540         pread: improvement and fix
57541         * modules/pread (Depends-on): Depend on lseek, for portability to
57542         e.g., mingw.  Suggested by Eric Blake.
57543         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
57545         unistd.in.h: correct declaration of pread
57546         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
57547         Reported by Richard W.M. Jones.
57549         test-pread.sh: distribute the test script
57550         * modules/pread-tests (Files): Include test-pread.sh.
57552         test-pread.sh: clean up
57553         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
57554         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
57555         That is unnecessary, since it's always ".".
57556         Suggestion from Eric Blake.
57558         test-pread.sh: make executable
57559         * tests/test-pread.sh: Set executable bit.
57560         Reported by Eric Blake.
57562         correct typo in test-pread.sh
57563         * tests/test-pread.sh: Add #! line.
57565         test pread
57566         * tests/test-pread.c: New file.
57567         * tests/test-pread.sh: Likewise.
57568         * modules/pread-tests: Likewise.
57570         pread: new module
57571         * modules/pread: New file.
57572         * lib/unistd.in.h (pread): Define/declare.
57573         * lib/pread.c (pread): New file.
57574         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
57575         * modules/unistd (Makefile.am): Substitute witnesses.
57576         * doc/posix-functions/pread.texi (pread): Update.
57577         * MODULES.html.sh: Add pread.
57579 2009-11-25  Jim Meyering  <meyering@redhat.com>
57581         tests/init.sh: new file to be used via most *.sh tests
57582         * tests/init.sh: New file.
57584 2009-11-25  Eric Blake  <ebb9@byu.net>
57586         utimens: work around older Linux failure with symlinks
57587         * lib/utimens.c (lutimensat_works_really): New variable.
57588         (fdutimens, lutimens): Use it to manage kernels that support
57589         nanosecond times on files, but not on symlinks.
57590         Reported by Ondřej Vašík.
57592         utimes: fix configure grammar
57593         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
57595 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
57597         regex: Fix fastmap for multibyte character ranges.
57598         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
57599         characters when a multibyte character range is included.
57601 2009-11-22  Andy Wingo  <wingo@pobox.com>
57603         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
57604         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
57606 2009-11-24  Bruno Haible  <bruno@clisp.org>
57608         doc: Most *_l functions exist in MacOS X 10.5.
57609         * doc/posix-functions/duplocale.texi: Update platforms list.
57610         * doc/posix-functions/freelocale.texi: Likewise.
57611         * doc/posix-functions/newlocale.texi: Likewise.
57612         * doc/posix-functions/uselocale.texi: Likewise.
57613         * doc/posix-functions/isalnum_l.texi: Likewise.
57614         * doc/posix-functions/isalpha_l.texi: Likewise.
57615         * doc/posix-functions/isblank_l.texi: Likewise.
57616         * doc/posix-functions/iscntrl_l.texi: Likewise.
57617         * doc/posix-functions/isdigit_l.texi: Likewise.
57618         * doc/posix-functions/isgraph_l.texi: Likewise.
57619         * doc/posix-functions/islower_l.texi: Likewise.
57620         * doc/posix-functions/isprint_l.texi: Likewise.
57621         * doc/posix-functions/ispunct_l.texi: Likewise.
57622         * doc/posix-functions/isspace_l.texi: Likewise.
57623         * doc/posix-functions/isupper_l.texi: Likewise.
57624         * doc/posix-functions/iswalnum_l.texi: Likewise.
57625         * doc/posix-functions/iswalpha_l.texi: Likewise.
57626         * doc/posix-functions/iswblank_l.texi: Likewise.
57627         * doc/posix-functions/iswcntrl_l.texi: Likewise.
57628         * doc/posix-functions/iswctype_l.texi: Likewise.
57629         * doc/posix-functions/iswdigit_l.texi: Likewise.
57630         * doc/posix-functions/iswgraph_l.texi: Likewise.
57631         * doc/posix-functions/iswlower_l.texi: Likewise.
57632         * doc/posix-functions/iswprint_l.texi: Likewise.
57633         * doc/posix-functions/iswpunct_l.texi: Likewise.
57634         * doc/posix-functions/iswspace_l.texi: Likewise.
57635         * doc/posix-functions/iswupper_l.texi: Likewise.
57636         * doc/posix-functions/iswxdigit_l.texi: Likewise.
57637         * doc/posix-functions/isxdigit_l.texi: Likewise.
57638         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
57639         * doc/posix-functions/strcasecmp_l.texi: Likewise.
57640         * doc/posix-functions/strcoll_l.texi: Likewise.
57641         * doc/posix-functions/strfmon_l.texi: Likewise.
57642         * doc/posix-functions/strftime_l.texi: Likewise.
57643         * doc/posix-functions/strncasecmp_l.texi: Likewise.
57644         * doc/posix-functions/strxfrm_l.texi: Likewise.
57645         * doc/posix-functions/tolower_l.texi: Likewise.
57646         * doc/posix-functions/toupper_l.texi: Likewise.
57647         * doc/posix-functions/towctrans_l.texi: Likewise.
57648         * doc/posix-functions/towlower_l.texi: Likewise.
57649         * doc/posix-functions/towupper_l.texi: Likewise.
57650         * doc/posix-functions/wcscoll_l.texi: Likewise.
57651         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
57652         * doc/posix-functions/wctrans_l.texi: Likewise.
57653         * doc/posix-functions/wctype_l.texi: Likewise.
57654         * doc/glibc-functions/strptime_l.texi: Likewise.
57655         * doc/glibc-functions/strtod_l.texi: Likewise.
57656         * doc/glibc-functions/strtof_l.texi: Likewise.
57657         * doc/glibc-functions/strtol_l.texi: Likewise.
57658         * doc/glibc-functions/strtold_l.texi: Likewise.
57659         * doc/glibc-functions/strtoll_l.texi: Likewise.
57660         * doc/glibc-functions/strtoul_l.texi: Likewise.
57661         * doc/glibc-functions/strtoull_l.texi: Likewise.
57662         * doc/glibc-functions/wcsftime_l.texi: Likewise.
57663         * doc/glibc-functions/wcstod_l.texi: Likewise.
57664         * doc/glibc-functions/wcstof_l.texi: Likewise.
57665         * doc/glibc-functions/wcstol_l.texi: Likewise.
57666         * doc/glibc-functions/wcstold_l.texi: Likewise.
57667         * doc/glibc-functions/wcstoll_l.texi: Likewise.
57668         * doc/glibc-functions/wcstoul_l.texi: Likewise.
57669         * doc/glibc-functions/wcstoull_l.texi: Likewise.
57671 2009-11-24  Bruno Haible  <bruno@clisp.org>
57673         duplocale: Fix logic bug.
57674         * lib/duplocale.c: Don't include <langinfo.h>.
57675         (_NL_LOCALE_NAME): Remove macro.
57676         (rpl_duplocale): Use setlocale instead of nl_langinfo.
57677         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
57679 2009-11-23  Jim Meyering  <meyering@redhat.com>
57681         test-update-copyright: don't hard-code /usr/bin/perl
57682         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
57683         perl to print the current year.  Gilles Espinasse reported that
57684         the replaced use of perl was hard-coded as /usr/bin/perl.
57686 2009-11-23  Bruno Haible  <bruno@clisp.org>
57688         duplocale: Add support for glibc 2.3.x.
57689         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
57691 2009-11-22  Bruno Haible  <bruno@clisp.org>
57693         vasnprintf: Tiny optimization.
57694         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
57695         MacOS X.
57697 2009-11-22  Bruno Haible  <bruno@clisp.org>
57699         Tests for module 'duplocale'.
57700         * modules/duplocale-tests: New file.
57701         * tests/test-duplocale.c: New file.
57703         New module 'duplocale'.
57704         * m4/duplocale.m4: New file.
57705         * lib/locale.in.h (duplocale): New declaration.
57706         * lib/duplocale.c: New file.
57707         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
57708         gl_LOCALE_H_DEFAULTS): New macros.
57709         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
57710         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
57711         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
57712         REPLACE_DUPLOCALE.
57713         * modules/duplocale: New file.
57714         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
57716 2009-11-22  Bruno Haible  <bruno@clisp.org>
57718         * modules/locale-tests (configure.ac): Test for newlocale function.
57719         * tests/test-locale.c: When the system has extended locale functions,
57720         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
57722         locale: Make locale_t available when possible.
57723         * lib/locale.in.h: Include <xlocale.h> when it exists.
57724         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
57725         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
57726         * modules/locale (Depends-on): Add extensions.
57727         (Makefile.am): Also substitute HAVE_XLOCALE_H.
57728         * doc/posix-headers/locale.texi: Document the problem with locale_t.
57730 2009-11-22  Bruno Haible  <bruno@clisp.org>
57732         Add comments.
57733         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
57734         invocation.
57735         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
57736         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
57737         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
57739 2009-11-22  Bruno Haible  <bruno@clisp.org>
57741         error: account for the possibility of freopen (stdout).
57742         * lib/error.c: Include <unistd.h>.
57743         (flush_stdout): New function, extracted from error and error_at_line.
57744         Determine stdout's fd dynamically.
57745         (error, error_at_line): Invoke flush_stdout.
57746         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
57747         * modules/error (Depends-on): Add unistd.
57749 2009-11-22  Bruno Haible  <bruno@clisp.org>
57751         diffseq: Add comment.
57752         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
57754 2009-11-22  Jim Meyering  <meyering@redhat.com>
57756         c-stack: avoid defining an unused static function
57757         * lib/c-stack.c (find_stack_direction): Do not define this function
57758         when it will not be used.
57760         diffseq: avoid spurious gcc warnings
57761         * lib/diffseq.h (IF_LINT2): Define.
57762         (compareseq): Use it to initialize two members of "part".
57763         This avoids two used-uninitialized warnings.
57765 2009-11-21  Jim Meyering  <meyering@redhat.com>
57767         c-stack: avoid "ignoring return value of `write'" warning
57768         * lib/c-stack.c: Include "ignore-value.h".
57769         (die): Explicitly ignore each write return value.
57770         * modules/c-stack (Depends-on): Add ignore-value.
57772 2009-11-21  Bruno Haible  <bruno@clisp.org>
57774         diffseq: reduce scope of variable 'best'.
57775         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
57776         variable, earlier used for two different purposes.
57778 2009-11-21  Jim Meyering  <meyering@redhat.com>
57780         diffseq: remove useless assignment to "best"
57781         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
57782         assignment.  At that point "best" is already guaranteed to be zero.
57784 2009-11-20  Eric Blake  <ebb9@byu.net>
57786         build: mention ftp redirector in release announcements
57787         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
57788         values that used to come from cfg.mk; mention FTP redirect URL.
57789         * build-aux/announce-gen: Mention the mirror list.
57790         Suggested by Karl Berry.
57792         nanosleep: improve port to mingw
57793         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
57794         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
57795         LIB_NANOSLEEP, but only when needed.
57796         * modules/select (Link): Document LIBSOCKET.
57797         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
57798         enough.
57800         nanosleep: work around cygwin bug
57801         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
57802         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
57803         bug.
57804         (getnow): Delete, not needed.
57805         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
57806         LIB_CLOCK_GETTIME.
57807         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
57808         clock-time, gettime.
57809         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
57810         bug.
57811         * modules/nanosleep-tests: New test.
57812         * tests/test-nanosleep.c: New file.
57814         sleep: work around cygwin bug
57815         * lib/sleep.c (rpl_sleep): Work around the bug.
57816         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
57817         (gl_PREREQ_SLEEP): Delete unused macro.
57818         * modules/sleep (Depends-on): Add verify.
57819         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
57820         * modules/unistd (Makefile.am): Substitute witness.
57821         * lib/unistd.in.h (sleep): Update prototype.
57822         * doc/posix-functions/sleep.texi (sleep): Document the bug.
57823         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
57824         * modules/sleep-tests (Depends-on): Check for alarm.
57826 2009-11-20  Jim Meyering  <meyering@redhat.com>
57828         maint.mk: improve sc_prohibit_magic_number_exit
57829         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
57830         so it does not match uses like System.exit(1).
57831         Add comments showing how to correct all offenders.
57833 2009-11-19  Eric Blake  <ebb9@byu.net>
57835         xalloc-die-tests: add missing library
57836         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
57838         test-xvasprintf: silence compiler warnings
57839         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
57840         empty string from gcc.
57842 2009-11-19  Jim Meyering  <meyering@redhat.com>
57844         xfreopen: new module, from coreutils
57845         * modules/xfreopen: New module.
57846         * lib/xfreopen.c: New file.
57847         * lib/xfreopen.h: New file.
57848         * MODULES.html.sh (File stream based Input/Output"): Add it.
57850 2009-11-19  Eric Blake  <ebb9@byu.net>
57852         manywarnings: depend on warnings
57853         * modules/manywarnings (Depends-on): Add warnings.
57855         build: avoid compiler warnings
57856         * lib/select.c (rpl_select): Delete unused variable.
57857         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
57859 2009-11-18  Eric Blake  <ebb9@byu.net>
57861         tests: avoid false negative with --with-packager
57862         * tests/test-version-etc.sh: Discard packager information.
57863         * tests/test-argp-version-etc-1.sh: Likewise.
57864         Reported by Mike Frysinger.
57866         utimens: fix regression on Solaris
57867         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
57868         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
57869         can only change fd timestamps via futimesat.  Instead, use an
57870         additional witness macro to avoid BSD bug.
57871         Reported by Jim Meyering.
57873 2009-11-17  Eric Blake  <ebb9@byu.net>
57875         usleep: use it to simplify tests
57876         * modules/stat-time-tests (Depends-on): Add usleep.
57877         (configure.ac): Drop usleep check.
57878         * modules/chown-tests (Depends-on, configure.ac): Likewise.
57879         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
57880         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
57881         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
57882         * modules/openat-tests (Depends-on, configure.ac): Likewise.
57883         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
57884         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
57885         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
57886         Likewise.
57887         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
57888         * tests/test-lchown.h (nap): Likewise.
57889         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
57890         * tests/test-stat-time.c (nap): Likewise.
57891         * tests/test-utimens-common.h (nap): Update comments.
57893         usleep: new module
57894         * modules/usleep: New file.
57895         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
57896         * lib/usleep.c (usleep): Likewise.
57897         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
57898         * modules/unistd (Makefile.am): Substitute witnesses.
57899         * lib/unistd.in.h (usleep): Add declaration.
57900         * doc/pastposix-functions/usleep.texi (usleep): Document this.
57901         * MODULES.html.sh (Date and time): Likewise.
57902         * modules/usleep-tests (Depends-on): New test.
57903         * tests/test-usleep.c: New file.
57905         chown: work around OpenBSD bug
57906         * lib/chown.c (rpl_chown): Work around the bug.
57907         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
57908         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
57909         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
57910         * modules/chown (Depends-on): Add stdbool.
57911         * modules/lchown (Depends-on): Likewise.
57912         * doc/posix-functions/chown.texi (chown): Document the bug.
57913         * doc/posix-functions/lchown.texi (lchown): Likewise.
57914         * tests/test-lchown.h (test_chown): Relax test.
57916         mkstemp: avoid conflict with C++ keyword template
57917         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
57918         * lib/mkostemp.c (mkostemp): Likewise.
57919         * lib/mkostemps.c (mkostemps): Likewise.
57920         * lib/mkstemp.c (mkstemp): Likewise.
57921         * lib/mkstemps.c (mkstemps): Likewise.
57923         xalloc-die-tests: optimize
57924         * tests/test-xalloc-die.sh: Reduce number of processes.
57926 2009-11-17  Simon Josefsson  <simon@josefsson.org>
57928         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
57929         patch from ludo@gnu.org (Ludovic Courtès).
57931 2009-11-17  Jim Meyering  <meyering@redhat.com>
57933         version-etc: use proper license string
57934         * modules/version-etc (License): Use LGPL, not LGPLv3+.
57935         * modules/version-etc-fsf: Likewise.
57937 2009-11-17  Simon Josefsson  <simon@josefsson.org>
57939         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
57940         printed to stdout.  Deal with EOL differences.
57942 2009-11-17  Eric Blake  <ebb9@byu.net>
57944         unsetenv: work around Solaris bug
57945         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
57946         * lib/unsetenv.c (rpl_unsetenv): Work around it.
57947         Reported by Jim Meyering.
57949         vasnprintf: avoid compiler warnings
57950         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
57951         variables.
57952         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
57954 2009-11-17  Simon Josefsson  <simon@josefsson.org>
57956         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
57957         settings since xalloc-die is no longer the self test,
57958         xalloc-die.sh is.
57960 2009-11-17  Jim Meyering  <meyering@redhat.com>
57962         test-xalloc-die.sh: make the code agree with the commit log
57963         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
57964         at the end, just in case you happen to have a test-xalloc-die
57965         program in some other PATH directory.
57967         test-xalloc-die.sh: fix a portability bug
57968         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
57969         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
57970         Otherwise, argv[0] (as often seen in diagnostics) would be too
57971         system-dependent, sometimes with, and sometimes without the leading "./".
57973         version-etc-fsf: relax license to LGPLv3+
57974         * modules/version-etc-fsf (License): Relax license.
57976 2009-11-16  Eric Blake  <ebb9@byu.net>
57978         xalloc-die-tests: avoid printing null pointer
57979         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
57980         shell script.
57981         * tests/test-xalloc-die.c (program_name): Declare.
57982         * tests/test-xalloc-die.sh (tmpfiles): New file.
57984         setenv, unsetenv: work around various bugs
57985         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
57986         (setenv) [HAVE_SETENV]: Work around bugs.
57987         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
57988         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
57989         for bugs.
57990         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
57991         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
57992         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
57993         * modules/stdlib (Makefile.am): Update substitutions.
57994         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
57995         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
57996         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
57997         * modules/setenv-tests: New test.
57998         * modules/unsetenv-tests: Likewise.
57999         * tests/test-setenv.c: New file.
58000         * tests/test-unsetenv.c: Likewise.
58002 2009-11-16  Jim Meyering  <meyering@redhat.com>
58004         version-etc: relax license to LGPLv3+
58005         * modules/version-etc (License): Relax license.
58007         better AC_REQUIRE expanded-before-required-warning avoidance
58008         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
58009         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
58010         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
58011         which is no longer needed.
58013 2009-11-16  Eric Blake  <ebb9@byu.net>
58015         test-freading: clean up temporary file
58016         * tests/test-freading.c (main): Remove file on success, and use
58017         ASSERT more liberally.
58018         Reported by Jim Meyering.
58020 2009-11-16  Jim Meyering  <meyering@redhat.com>
58022         avoid new AC_REQUIRE expanded-before-required warnings
58023         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
58024         merely using it.
58025         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
58026         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
58028 2009-11-15  Simon Josefsson  <simon@josefsson.org>
58030         * tests/test-xalloc-die.c: New file.
58031         * modules/xalloc-die-tests: New file.
58032         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
58033         XFAIL_TESTS so it can be appended by modules.
58035 2009-11-15  Simon Josefsson  <simon@josefsson.org>
58037         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
58038         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
58040 2009-11-14  Eric Blake  <ebb9@byu.net>
58042         fnmatch: avoid compiler warning
58043         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
58044         to silence compiler warning about mismatch signedness in ?:.
58045         Reported by Robert Millan.
58047         intprops: add double-inclusion guard
58048         * lib/intprops.h: Allow idempotent includes.
58049         Suggested by Bruce Korb.
58051         openat: detect Solaris fchownat bug
58052         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
58053         penalizing glibc chownat when only lchownat is broken.
58054         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
58055         trailing slash bugs.
58056         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
58057         * modules/openat-tests (Files): Include more files.
58058         (Depends-on): Add mgetgroups, sleep, stat-time.
58059         (configure.ac): Add additional checks.
58060         (Makefile.am): Build new test.
58061         * tests/test-fchownat.c: New file.
58063         lchown: detect Solaris and FreeBSD bug
58064         * lib/lchown.c (rpl_lchown): Work around bug.
58065         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
58066         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
58067         * modules/unistd (Makefile.am): Populate it.
58068         * lib/unistd.in.h (lchown): Update declaration.
58069         * doc/posix-functions/lchown.texi (lchown): Document the bug.
58070         * modules/lchown-tests: New file.
58071         * tests/test-lchown.h (test_lchown): Likewise.
58072         * tests/test-lchown.c (main): Likewise.
58074         chown: detect Solaris and FreeBSD bug
58075         * lib/chown.c (rpl_chown): Work around bug.
58076         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
58077         (gl_PREREQ_CHOWN): Delete.
58078         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
58079         * modules/unistd (Makefile.am): Populate it.
58080         * lib/unistd.in.h (chown): Update declaration.
58081         * lib/lchown.c (chown): Update client.
58082         * modules/lchown (Depends-on): Add lstat.
58083         * doc/posix-functions/chown.texi (chown): Document the bug.
58084         * doc/posix-functions/getgroups.texi (getgroups): Document
58085         getgroups pitfall.
58086         * modules/chown-tests: New file.
58087         * tests/test-chown.h (test_chown): Likewise.
58088         * tests/test-chown.c (main): Likewise.
58090 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
58092         gnulib-tool: correctly detect absence of m4 directories
58093         * gnulib-tool: Avoid extra newline on data passed to wc -l.
58095 2009-11-14  Jim Meyering  <meyering@redhat.com>
58097         maint.mk: Prohibit inclusion of "xalloc.h" without use.
58098         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
58100 2009-11-14  John W. Eaton  <jwe@gnu.org>
58102         strftime.h: wrap function declaration in extern "C" block
58103         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
58105 2009-11-13  Eric Blake  <ebb9@byu.net>
58107         getgroups: avoid compiler warning
58108         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
58110         getgroups: work around FreeBSD bug
58111         * lib/getgroups.c (rpl_getgroups): Work around the bug.
58112         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
58113         * doc/posix-functions/getgroups.texi (getgroups): Document it.
58114         * tests/test-getgroups.c (main): Fix buffer overrun.
58116         getgroups: avoid compilation failure
58117         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
58118         * modules/getgroups (Depends-on): Add stdint.
58120 2009-11-13  Jim Meyering  <meyering@redhat.com>
58122         test-getgroups: avoid compilation failure
58123         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
58125 2009-11-13  Eric Blake  <ebb9@byu.net>
58127         mgetgroups: new module, taken from coreutils
58128         * modules/mgetgroups: New file.
58129         * lib/mgetgroups.h: Likewise.
58130         * lib/mgetgroups.c (mgetgroups): Likewise.
58131         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
58132         * MODULES.html.sh (Users and groups): Mention it.
58134         getgroups: don't expose GETGROUPS_T to user
58135         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
58136         an element at a time if GETGROUPS_T is wrong size.
58137         * lib/getugroups.h (getugroups): Change signature.
58138         * lib/unistd.in.h (getgroups): Likewise.
58139         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
58140         signature needs fixing.
58141         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
58142         AC_TYPE_GETGROUPS.
58143         * modules/group-member (Depends-on): Add getgroups.
58144         * lib/group-member.c (group_info, get_group_info): Use gid_t.
58145         (group_member): Rely on getgroups replacement.
58146         * lib/getugroups.c (getugroups): Use gid_t.
58147         * tests/test-getgroups.c (main): Likewise.
58148         * NEWS: Mention the signature change.
58149         * doc/posix-functions/getgroups.texi (getgroups): Mention the
58150         problem with signature.
58151         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
58152         GETGROUPS_T is still useful for setgroups.
58154         getgroups, getugroups: provide stubs for mingw
58155         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
58156         * lib/getugroups.c (getugroups): Likewise.
58157         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
58158         function.  Modernize replacement scheme.
58159         (gl_PREREQ_GETGROUPS): Delete.
58160         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
58161         * modules/getgroups (configure.ac): Declare witness.
58162         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
58163         * modules/unistd (Depends-on): Substitute witness.
58164         * lib/unistd.in.h (getgroups): Declare replacement.
58166         getgroups: avoid calling exit
58167         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
58168         drop xalloc.
58169         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
58170         dependencies.
58171         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
58172         exiting, in the rare case of malloc failure.
58174         getgroups: fix logic error
58175         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
58176         has more than 20 groups.
58177         * modules/getgroups-tests: New test.
58178         * tests/test-getgroups.c: New file.
58180 2009-11-13  Simon Josefsson  <simon@josefsson.org>
58182         * tests/test-base64.c: Improve.
58184 2009-11-13  Simon Josefsson  <simon@josefsson.org>
58186         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
58187         Blake <ebb9@byu.net>.
58189 2009-11-13  Simon Josefsson  <simon@josefsson.org>
58191         * tests/test-xvasprintf.c: Add %s%s related checks.
58193 2009-11-12  Eric Blake  <ebb9@byu.net>
58195         version-etc: match standards.texi style
58196         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
58197         and use <> only for URLs.
58199 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
58201         fts: do not fail on a submount during traversal
58202         * lib/fts.c (fts_build): Read the stat info again after opening
58203         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
58204         Original report at http://bugzilla.redhat.com/501848.
58206 2009-11-12  Jim Meyering  <meyering@redhat.com>
58208         bootstrap: sync from coreutils
58209         * build-aux/bootstrap (bootstrap_epilogue): New function.
58210         Use git_modules_config in one more place.  This make bootstrap's
58211         --gnulib-srcdir option more useful for testing.
58213         bootstrap: generalize autoheader check
58214         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
58215         AC_CONFIG_HEADERS.
58217 2009-11-11  Eric Blake  <ebb9@byu.net>
58219         mkfifoat: use new modules for Solaris and BSD bugs
58220         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
58221         * lib/mkfifoat.c (mknodat): Split...
58222         * lib/mknodat.c (mknodat): ...into new file.
58223         * modules/mkfifoat (Files): Ship new file.
58224         (Depends-on): Add mkfifo, mknod.
58225         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
58226         (Depends-on): Add symlink.
58227         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
58228         redundant with test_mkfifo.h.
58229         (do_mkfifoat, do_mknodat): New helpers.
58231         mknod: new module
58232         * modules/mknod: New file.
58233         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
58234         * lib/mknod.c (mknod): Likewise.
58235         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
58236         defaults.
58237         * modules/sys_stat (Makefile.am): Substitute them.
58238         * lib/sys_stat.in.h (mknod): Declare replacement.
58239         * MODULES.html.sh (Support for systems lacking POSIX:2008):
58240         Document it.
58241         * doc/posix-functions/mknod.texi (mknod): Likewise.
58242         * modules/mknod-tests: New test.
58243         * tests/test-mknod.c: Likewise.
58245         mkfifo: new module
58246         * modules/mkfifo: New file.
58247         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
58248         * lib/mkfifo.c (mkfifo): Likewise.
58249         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
58250         defaults.
58251         * modules/sys_stat (Makefile.am): Substitute them.
58252         * lib/sys_stat.in.h (mkfifo): Declare replacement.
58253         * MODULES.html.sh (Support for systems lacking POSIX:2008):
58254         Document it.
58255         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
58256         * modules/mkfifo-tests: New test.
58257         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
58258         from test-mkfifoat.c.
58259         * tests/test-mkfifo.c: New file.
58261         readlink: detect FreeBSD bug
58262         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
58263         slash on symlink.
58264         * doc/posix-functions/readlink.texi (readlink): Document the bug.
58265         * tests/test-readlink.h (test_readlink): Enhance test.
58267         symlink: detect FreeBSD bug
58268         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
58269         slash on symlink.
58270         * doc/posix-functions/symlink.texi (symlink): Document the bug.
58271         * tests/test-symlink.h (test_symlink): Enhance test.
58273 2009-11-10  Eric Blake  <ebb9@byu.net>
58275         link: detect FreeBSD bug
58276         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
58277         symlink.
58278         * doc/posix-functions/link.texi (link): Document the bug.
58279         * tests/test-link.h (test_link): Enhance test.
58280         * tests/test-linkat.c (main): Update caller.
58282         unlink, remove: detect FreeBSD bug
58283         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
58284         slash on symlink.
58285         * doc/posix-functions/unlink.texi (unlink): Document the bug.
58286         * doc/posix-functions/remove.texi (remove): Likewise.
58287         * tests/test-unlink.h (test_unlink): Enhance test.
58288         * tests/test-remove.c (main): Likewise.
58290 2009-11-09  Eric Blake  <ebb9@byu.net>
58292         rename: detect FreeBSD bug
58293         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
58294         slash on symlink.
58295         * modules/renameat-tests (Depends-on): Add filenamecat.
58296         * tests/test-rename.h (test_rename): Allow one more errno.
58297         * tests/test-renameat.c (main): Likewise.
58298         * doc/posix-functions/rename.texi (rename): Document the bug.
58300         open: detect FreeBSD bug
58301         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
58302         symlink.
58303         * doc/posix-functions/open.texi (open): Document the bug.
58304         * doc/posix-functions/utimes.texi (utimes): Likewise.
58305         * tests/test-open.h (test_open): Add parameters, and test symlink
58306         handling.
58307         * tests/test-open.c (main): Adjust caller.
58308         * tests/test-fcntl-safer.c (main): Likewise.
58309         * modules/open-tests (Depends-on): Add stdbool, symlink.
58310         * modules/fcntl-safer-tests (Depends-on): Likewise.
58311         * tests/test-openat.c (main): Add test-open tests.
58313         stat: detect FreeBSD bug
58314         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
58315         symlink.
58316         * doc/posix-functions/stat.texi (stat): Document the bug.
58317         * tests/test-stat.h (test_stat_func): Add argument.
58318         * tests/test-stat.c (main): Adjust caller.
58319         * tests/test-fstatat.c (main): Likewise.
58320         * modules/stat-tests (Depends-on): Add stdbool, symlink.
58321         Reported by Jim Meyering.
58323 2009-11-09  James Youngman  <jay@gnu.org>
58325         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
58326         * lib/strftime.c: Correct placement of #include "ignore-value.h".
58328 2009-11-08  Jim Meyering  <meyering@redhat.com>
58330         utimens: remove invalid futimesat call
58331         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
58332         It used the file descriptor of the target file as the DIR_FD
58333         parameter and NULL as the file name.  That caused failure with
58334         errno == EFAULT on FreeBSD-8.0-rc2
58336 2009-11-07  Eric Blake  <ebb9@byu.net>
58338         fflush, freadseek: use fseeko, not fseek
58339         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
58340         (clear_ungetc_buffer): Avoid potential problems on large files.
58341         * lib/freadseek.c (freadseek): Likewise.
58342         * modules/freadseek (Depends-on): Add fseeko.
58343         * modules/fseek (configure.ac): Set a witness.
58344         * tests/test-fflush.c (main): Use fseeko.
58345         * tests/test-fpurge.c (fseek): Disable link warning.
58346         * tests/test-freadable.c (fseek): Likewise.
58347         * tests/test-freading.c (fseek): Likewise.
58348         * tests/test-fseeko.c (fseek): Likewise.
58349         * tests/test-ftell.c (fseek): Likewise.
58350         * tests/test-ftello.c (fseek): Likewise.
58351         * tests/test-fwritable.c (fseek): Likewise.
58352         * tests/test-fwriting.c (fseek): Likewise.
58354 2009-11-06  Simon Josefsson  <simon@josefsson.org>
58356         * modules/memchr (Depends-on): Drop getpagesize dependency.
58358 2009-11-06  Simon Josefsson  <simon@josefsson.org>
58360         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
58361         Reported by Ludovic Courtès.
58362         * build-aux/pmccabe2html: Improve example usage.
58363         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
58365 2009-11-06  Jim Meyering  <meyering@redhat.com>
58367         do-release-commit-and-tag: New module.
58368         Automate the release-commit and tag process.
58369         * build-aux/do-release-commit-and-tag: New script, from coreutils.
58370         * modules/do-release-commit-and-tag: New file.
58371         * MODULES.html.sh (Support for maintaining and releasing): Add it.
58373 2009-11-06  Simon Josefsson  <simon@josefsson.org>
58375         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
58376         because test-select.c uses inet_pton.
58378 2009-11-06  Simon Josefsson  <simon@josefsson.org>
58380         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
58381         GETADDRINFO_LIB.  Bump serial number.
58382         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
58383         Suggested by Eric Blake <ebb9@byu.net>.
58385 2009-11-05  Eric Blake  <ebb9@byu.net>
58387         strtod: detect darwin bug
58388         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
58389         Reported by Leo Davis.
58391         freopen-safer: new module
58392         * modules/freopen-safer: New module.
58393         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
58394         * lib/freopen-safer.c (freopen_safer): New file.
58395         * lib/stdio-safer.h (freopen_safer): New declaration.
58396         * lib/stdio--.h (freopen): New override.
58397         * MODULES.html.sh (File stream based Input/Output): Mention it.
58398         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
58399         freopen-safer module.
58400         * doc/posix-functions/stderr.texi (stderr): Likewise.
58401         * doc/posix-functions/stdin.texi (stdin): Likewise.
58402         * doc/posix-functions/stdout.texi (stdout): Likewise.
58403         * modules/freopen-safer-tests: New test.
58404         * tests/test-reopen-safer.c: New file.
58406 2009-11-05  Jim Meyering  <meyering@redhat.com>
58408         maint.mk: Prohibit inclusion of "close-stream.h" without use.
58409         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
58411 2009-11-05  Simon Josefsson  <simon@josefsson.org>
58413         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
58415 2009-11-05  Simon Josefsson  <simon@josefsson.org>
58417         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
58419 2009-11-05  Simon Josefsson  <simon@josefsson.org>
58421         Fix link error.
58422         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
58423         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
58425 2009-11-05  Simon Josefsson  <simon@josefsson.org>
58427         * tests/test-func.c: Also test value of __func__.
58429 2009-11-05  Simon Josefsson  <simon@josefsson.org>
58431         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
58432         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
58434 2009-11-05  Bruno Haible  <bruno@clisp.org>
58436         Fix link error.
58437         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
58438         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
58439         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
58441 2009-11-05  Bruno Haible  <bruno@clisp.org>
58443         Tests for module 'inet_pton'.
58444         * modules/inet_pton-tests: New file.
58445         * tests/test-inet_pton.c: New file.
58447 2009-11-05  Bruno Haible  <bruno@clisp.org>
58449         Tests for module 'inet_ntop'.
58450         * modules/inet_ntop-tests: New file.
58451         * tests/test-inet_ntop.c: New file.
58453 2009-11-04  Eric Blake  <ebb9@byu.net>
58455         stdlib-safer: wrap all mkstemp variants
58456         * modules/mkostemp (configure.ac): Set witness.
58457         * modules/mkostemps (configure.ac): Likewise.
58458         * modules/mkstemps (configure.ac): Likewise.
58459         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
58460         (mkstemps_safer): Wrap more functions.
58461         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
58462         wrapping.
58463         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
58464         (mkstemps_safer): Implement the wrappers.
58466         mkstemps, mkostemps: new modules
58467         * modules/mkostemps: New module.
58468         * modules/mkstemps: Likewise.
58469         * lib/mkostemps.c (mkostemps): New file.
58470         * lib/mkstemps.c (mkstemps): Likewise.
58471         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
58472         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
58473         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
58474         * modules/stdlib (Makefile.am): Substitute them.
58475         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
58476         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
58477         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
58478         * doc/gnulib.texi (Glibc stdlib.h): Include them.
58479         * MODULES.html.sh (File system functions): Mention them.
58481         tempname: resync from glibc
58482         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
58483         same values for __GT_FILE as glibc.  Abort even when assertions
58484         are disabled.
58485         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
58486         match its value otherwise.  Allow idempotent inclusion.
58487         * lib/mkdtemp.c (mkdtemp): Adjust caller.
58488         * lib/mkostemp.c (mkostemp): Likewise.
58489         * lib/mkstemp.c (mkstemp): Likewise.
58490         * lib/tmpfile.c (tmpfile): Likewise.
58491         * NEWS: Document this.
58493         utimens: fix use of futimens on older Linux
58494         * lib/utimens.c (fdutimens): Use updated, rather than original,
58495         timespec to avoid bug in older Linux kernel.
58496         Reported by Simon Josefsson.
58498 2009-11-04  Bruno Haible  <bruno@clisp.org>
58500         Make num_processors more flexible and consistent.
58501         * lib/nproc.h (enum nproc_query): New type.
58502         (num_processors): Add a 'query' argument.
58503         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
58504         (num_processors): Add a 'query' argument. Test the value of the
58505         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
58506         mingw, count the number of CPUs available for the current process.
58507         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
58508         Check for sched_getaffinity and sched_getaffinity_np.
58509         * modules/nproc (Depends-on): Add c-ctype, extensions.
58510         * NEWS: Mention the change.
58512 2009-11-03  Bruno Haible  <bruno@clisp.org>
58514         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
58516 2009-11-03  Jim Meyering  <meyering@redhat.com>
58518         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
58519         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
58520         if it is defined.
58522 2009-11-02  Eric Blake  <ebb9@byu.net>
58524         mktime, timegm: share common declaration
58525         * lib/mktime-internal.h: New file.
58526         * lib/mktime.c: Use it rather than open-coding a declaration.
58527         * lib/timegm.c: Likewise.
58528         * modules/mktime (Files): Ship it.
58529         * modules/timegm (Files): Likewise.
58530         Suggested by Bruno Haible.
58532         test-update-copyright: update test to match script changes
58533         * tests/test-update-copyright.sh: Avoid hard-coding perl
58534         location.  Don't update *.bak created by earlier runs.
58536 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
58537             Simon Josefsson  <simon@josefsson.org>
58538             Bruno Haible  <bruno@clisp.org>
58540         Fix link error on Solaris 8.
58541         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
58542         also in libnsl. Define also INET_PTON_LIB.
58543         * modules/inet_pton (Link): New section.
58545 2009-11-02  Simon Josefsson  <simon@josefsson.org>
58546             Bruno Haible  <bruno@clisp.org>
58548         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
58549         * modules/inet_ntop (Link): New section.
58550         Reported by Boyan Kasarov <bkasarov@gmail.com>.
58552 2009-11-02  Eric Blake  <ebb9@byu.net>
58554         maint: avoid compiler warnings in m4 macros
58555         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
58556         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
58558 2009-11-02  Simon Josefsson  <simon@josefsson.org>
58560         * m4/pmccabe2html.m4: Remove file.
58561         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
58562         function.  Change maintainer.
58563         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
58564         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
58565         Courtès).
58567 2009-10-31  Eric Blake  <ebb9@byu.net>
58569         fseeko: fix m4 regression
58570         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
58571         regression from 2009-10-27.
58572         Reported by Ralf Wildenhues.
58574 2009-10-31  Jim Meyering  <meyering@redhat.com>
58576         inttostr: aesthetics and improved (compile-time) safety
58577         Define inttype_is_signed rather than inttype_is_unsigned,
58578         since the sole use is via "#if inttype_is_signed".
58579         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
58580         inttype_is_unsigned.
58581         * lib/offtostr.c (inttype_is_signed): Likewise.
58582         * lib/uinttostr.c (inttype_is_signed): Likewise.
58583         * lib/umaxtostr.c (inttype_is_signed): Likewise.
58584         * lib/inttostr.c (inttostr): Use verify to cross-check the
58585         inttype_is_signed value and the signedness of the actual type.
58586         * modules/inttostr (Depends-on): Add verify.
58588 2009-10-30  Eric Blake  <ebb9@byu.net>
58590         build: avoid compiler warnings
58591         * lib/fchmodat.c (lchmod): Mark unused variables.
58592         * lib/getopt.c (_getopt_initialize): Likewise.
58593         * lib/mktime.c (__mktime_internal): Provide prototype.
58594         * lib/inttostr.c (inttostr): Avoid compiler warning even with
58595         older gcc that do not understand #pragma GCC diagnostic.
58596         * lib/uinttostr.c (inttype_is_unsigned): Define.
58597         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
58599 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
58601         stat: fix compilation on AIX
58602         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
58603         only see struct stat64.
58605 2009-10-30  Eric Blake  <ebb9@byu.net>
58607         exclude: make more robust
58608         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
58609         rather than masking a coding bug.
58610         Suggested by Bruno Haible.
58612 2009-10-30  Jim Meyering  <meyering@redhat.com>
58614         perl scripts: remove #!/usr/bin/perl in favor of more portable...
58615         Rather than putting #!/usr/bin/perl on the first line,
58616         start with a variant of what's recommended by "man perlrun" that
58617         invokes the first "perl" program from your shell's search path.
58618         * build-aux/gitlog-to-changelog: Replace #!... as above.
58619         Add a "Local Variables" perl mode setting.
58620         Prompted by a patch from Ludovic Courtès.
58621         Improved by Eric Blake.
58622         * build-aux/useless-if-before-free: Likewise.
58623         * build-aux/announce-gen: Likewise.
58624         * build-aux/update-copyright: Likewise.
58626 2009-10-29  Eric Blake  <ebb9@byu.net>
58628         filenamecat-lgpl: adjust clients
58629         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
58630         filenamecat.
58631         * modules/renameat (Depends-on): Likewise.
58633         filenamecat: split into filenamecat-lgpl
58634         * modules/filenamecat-lgpl: New module.
58635         * modules/filenamecat (Files): Move library-safe files into
58636         filenamecat-lgpl.
58637         (Depends-on): Add filenamecat-lgpl.
58638         (configure.ac): Declare witness.
58639         * lib/filenamecat.h (file_name_concat): Only declare when using
58640         GPL module.
58641         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
58642         Move...
58643         * lib/filenamecat-lgpl.c: ...into new file.
58644         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
58645         (gl_FILE_NAME_CONCAT): Use it.
58646         * MODULES.html.sh (File system functions): Mention new module.
58648         argp: avoid memory leak
58649         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
58650         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
58651         base_name, since the latter malloc()s and can call exit().
58652         Leak introduced 2006-07-03.
58654         dirname-lgpl: adjust clients that don't need full dirname
58655         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
58656         * modules/filenamecat (Depends-on): Likewise.
58657         * modules/linkat (Depends-on): Likewise.
58658         * modules/mkancesdirs (Depends-on): Likewise.
58659         * modules/mkdir (Depends-on): Likewise.
58660         * modules/openat (Depends-on): Likewise.
58661         * modules/savewd (Depends-on): Likewise.
58662         * modules/rename (Depends-on): Likewise.
58663         (License): Relax license.
58664         * modules/mkdir-tests (Depends-on): Drop progname.
58665         (Makefile.am): Delete unneeded LDADD.
58666         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
58668         dirname: split into dirname-lgpl
58669         * modules/dirname-lgpl: New module.
58670         * modules/dirname (Files): Move library-safe files into
58671         dirname-lgpl.
58672         (Depends-on): Add dirname-lgpl.
58673         (configure.ac): Declare witness.
58674         * modules/double-slash-root (License): Relax license.
58675         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
58676         module.
58677         * lib/dirname.c (dir_len, mdir_name): Move...
58678         * lib/dirname-lgpl.c: ...into new file.
58679         * lib/basename.c (last_component, base_len): Move...
58680         * lib/basename-lgpl.c: ...into new file.
58681         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
58682         (gl_DIRNAME): Use it.
58683         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
58684         Mention new module.
58685         * modules/dirname-tests (Depends-on): Add progname.
58686         * tests/test-dirname.c (program_name): Delete.
58688         mkdir: make safe for libraries
58689         * modules/mkdir (Depends-on): Drop xalloc.
58690         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
58691         exit.
58693         tests: avoid some compiler warnings
58694         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
58695         literals.
58696         * tests/test-memchr.c (main): Avoid type mismatch.
58697         * tests/test-arpa_inet.c (main): Avoid unused parameters.
58698         * tests/test-base64.c (main): Likewise.
58699         * tests/test-getdelim.c (main): Likewise.
58700         * tests/test-gethostname.c (main): Likewise.
58701         * tests/test-getline.c (main): Likewise.
58702         * tests/test-netinet_in.c (main): Likewise.
58703         * tests/test-select.c (open_server_socket, main): Likewise.
58704         * tests/test-select-stdin.c (main): Likewise.
58705         * tests/test-sockets.c (main): Likewise.
58706         * tests/test-strsignal.c (main): Likewise.
58707         * tests/test-sys_select.c (main): Likewise.
58708         * tests/test-sys_socket.c (main): Likewise.
58709         * tests/test-u64.c (main): Likewise.
58710         * tests/test-xfprintf-posix.c (main): Likewise.
58711         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
58713         sockets: avoid compiler warning
58714         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
58716         maint: detect usage(1) and other suspicious exits
58717         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
58719 2009-10-29  Jim Meyering  <meyering@redhat.com>
58721         timespec: long-to-int truncation could make timespec_cmp malfunction
58722         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
58723         a multiple of 2^32 nanoseconds as no difference.
58725 2009-10-28  Jim Meyering  <meyering@redhat.com>
58727         fprintftime: wrap macro code argument in "do {...} while(0)"
58728         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
58729         cpy macro must be a statement that can be followed by a semicolon.
58730         Now that the else clause contains a comment and is hence longer
58731         than one line, I require curly braces.  That in turn requires
58732         that we wrap this code block in the standard do...while(0).
58734         fprintftime: remove stray semicolon from previous change
58735         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
58737         fprintftime: avoid a warning about ignored fwrite return value
58738         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
58739         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
58740         that is unsafe.
58741         * modules/fprintftime (Depends-on): Add ignore-value.
58743         exclude: avoid an unwarranted warning
58744         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
58746 2009-10-27  Eric Blake  <ebb9@byu.net>
58748         fseek: avoid compilation failure when fflush is replaced
58749         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
58750         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
58751         module is in use.
58752         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
58753         module is not in use; since REPLACE_FSEEK worked otherwise.
58754         (GNULIB_FTELLO): Likewise for ftell.
58755         Reported by Ian Beckwith and others.
58757 2009-10-27  Bruno Haible  <bruno@clisp.org>
58759         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
58760         Reported by Jim Meyering.
58762 2009-10-27  Jim Meyering  <jim@meyering.net>
58763             Bruno Haible  <bruno@clisp.org>
58765         Avoid warning despite dropping the return value of fwrite.
58766         * lib/unicodeio.c: Include ignore-value.h.
58767         (fwrite_success_callback): Explicitly ignore fwrite's return value.
58768         * modules/unicodeio (Depends-on): Add ignore-value.
58770 2009-10-26  Eric Blake  <ebb9@byu.net>
58772         areadlinkat: fix fallback path
58773         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
58774         pointer and zero.
58776 2009-10-22  Pádraig Brady  <P@draigBrady.com>
58778         Use a better IO block size for modern systems
58779         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
58780         * lib/md2.c: Likewise.
58781         * lib/md4.c: Likewise.
58782         * lib/md5.c: Likewise.
58783         * lib/sha1.c: Likewise.
58784         * lib/sha256.c: Likewise.
58785         * lib/sha512.c: Likewise.
58787 2009-10-22  Eric Blake  <ebb9@byu.net>
58789         tests: avoid several compiler warnings
58790         * tests/test-getcwd.c (main): Avoid buffer underflow.
58791         * tests/test-getdate.c (main): String literals are not safe with
58792         putenv, so use setenv.  Declare unused argument.
58793         * modules/getdate-tests (Depends-on): Add setenv.
58794         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
58795         problems with string literals in char *.
58796         * tests/test-hash.c (main): Avoid shadowing declaration.
58797         (insert_new): Treat string literals as char const *.
58798         * tests/test-getopt.h (test_getopt): Likewise.
58799         (getopt_loop): Alter types to minimize casting elsewhere.
58800         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
58801         (test_getopt_long_posix): Likewise.
58802         (do_getopt_long): Add wrapper to minimize casting.
58803         * tests/test-atexit.c (clear_temp_file): Use void.
58804         * tests/test-areadlink-with-size.c (main): Declare unused
58805         arguments.
58806         * tests/test-areadlink.c (main): Likewise.
58807         * tests/test-areadlinkat-with-size.c (main): Likewise.
58808         * tests/test-areadlinkat.c (main): Likewise.
58809         * tests/test-canonicalize-lgpl.c (main): Likewise.
58810         * tests/test-canonicalize.c (main): Likewise.
58811         * tests/test-dirent-safer.c (main): Likewise.
58812         * tests/test-dirname.c (main): Likewise.
58813         * tests/test-dup2.c (main): Likewise.
58814         * tests/test-fchdir.c (main): Likewise.
58815         * tests/test-fcntl-h.c (main): Likewise.
58816         * tests/test-fcntl-safer.c (main): Likewise.
58817         * tests/test-fdopendir.c (main): Likewise.
58818         * tests/test-fdutimensat.c (main): Likewise.
58819         * tests/test-fflush.c (main): Likewise.
58820         * tests/test-filenamecat.c (main): Likewise.
58821         * tests/test-filevercmp.c (main): Likewise.
58822         * tests/test-fopen-safer.c (main): Likewise.
58823         * tests/test-fopen.c (main): Likewise.
58824         * tests/test-fpending.c (main): Likewise.
58825         * tests/test-fpurge.c (main): Likewise.
58826         * tests/test-freading.c (main): Likewise.
58827         * tests/test-fstatat.c (main): Likewise.
58828         * tests/test-fsync.c (main): Likewise.
58829         * tests/test-futimens.c (main): Likewise.
58830         * tests/test-getndelim2.c (main): Likewise.
58831         * tests/test-gettimeofday.c (main): Likewise.
58832         * tests/test-getopt.c (main): Likewise.
58833         * tests/test-i-ring.c (main): Likewise.
58834         * tests/test-inttypes.c (main): Likewise.
58835         * tests/test-link.c (main): Likewise.
58836         * tests/test-lstat.c (main): Likewise.
58837         * tests/test-math.c (main): Likewise.
58838         * tests/test-md5.c (main): Likewise.
58839         * tests/test-memchr2.c (main): Likewise.
58840         * tests/test-memrchr.c (main): Likewise.
58841         * tests/test-mkdir.c (main): Likewise.
58842         * tests/test-mkdirat.c (main): Likewise.
58843         * tests/test-mkfifoat.c (main): Likewise.
58844         * tests/test-open.c (main): Likewise.
58845         * tests/test-openat-safer.c (main): Likewise.
58846         * tests/test-openat.c (main): Likewise.
58847         * tests/test-quotearg.c (main): Likewise.
58848         * tests/test-rawmemchr.c (main): Likewise.
58849         * tests/test-readlink.c (main): Likewise.
58850         * tests/test-remove.c (main): Likewise.
58851         * tests/test-rename.c (main): Likewise.
58852         * tests/test-renameat.c (main): Likewise.
58853         * tests/test-rmdir.c (main): Likewise.
58854         * tests/test-sha1.c (main): Likewise.
58855         * tests/test-signal.c (main): Likewise.
58856         * tests/test-sigaction.c (main): Likewise.
58857         * tests/test-stat.c (main): Likewise.
58858         * tests/test-stat-time.c (main): Likewise.
58859         * tests/test-stddef.c (main): Likewise.
58860         * tests/test-stdint.c (main): Likewise.
58861         * tests/test-stdio.c (main): Likewise.
58862         * tests/test-stdlib.c (main): Likewise.
58863         * tests/test-strchrnul.c (main): Likewise.
58864         * tests/test-strerror.c (main): Likewise.
58865         * tests/test-string.c (main): Likewise.
58866         * tests/test-strtod.c (main): Likewise.
58867         * tests/test-strverscmp.c (main): Likewise.
58868         * tests/test-symlink.c (main): Likewise.
58869         * tests/test-symlinkat.c (main): Likewise.
58870         * tests/test-sys_stat.c (main): Likewise.
58871         * tests/test-sys_time.c (main): Likewise.
58872         * tests/test-time.c (main): Likewise.
58873         * tests/test-unistd.c (main): Likewise.
58874         * tests/test-unlink.c (main): Likewise.
58875         * tests/test-unlinkat.c (main): Likewise.
58876         * tests/test-utimens.c (main): Likewise.
58877         * tests/test-utimensat.c (main): Likewise.
58878         * tests/test-version-etc.c (main): Likewise.
58879         * tests/test-wchar.c (main): Likewise.
58880         * tests/test-wctype.c (main): Likewise.
58881         * tests/test-xprintf-posix.c (main): Likewise.
58882         * tests/test-posixtm.c (main): Likewise.
58883         (STREQ): Delete unused macro.
58884         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
58885         shadowed variables.
58886         * tests/test-memchr.c (main): Likewise.
58888 2009-10-21  Eric Blake  <ebb9@byu.net>
58890         areadlinkat: avoid failure on older glibc
58891         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
58892         rather than mis-comparing 0 against FUNC_RESULT of char*.
58894 2009-10-21  Bruno Haible  <bruno@clisp.org>
58896         * modules/stpncpy (License): Relicense under LGPLv2+.
58897         Reported by David Lutterkort <lutter@redhat.com>.
58899 2009-10-20  Eric Blake  <ebb9@byu.net>
58901         utimensat: work around Solaris 9 bug
58902         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
58903         has trailing slash bugs.
58904         * tests/test-lutimens.h (test_lutimens): Enhance test.
58905         * tests/test-utimens.h (test_utimens): Likewise.
58906         * doc/posix-functions/utime.texi (utime): Enhance documentation.
58907         * doc/posix-functions/utimes.texi (utimes): Likewise.
58908         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
58909         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
58910         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
58911         * doc/posix-functions/futimens.texi (futimens): Likewise.
58913         fdutimensat: new module
58914         * modules/fdutimensat: New file.
58915         * lib/fdutimensat.c (fdutimensat): Likewise.
58916         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
58917         * MODULES.html.sh (File system functions): Mention module.
58918         * modules/fdutimensat-tests: New test.
58919         * tests/test-fdutimensat.c: Likewise.
58921         doc: regenerate INSTALL
58922         * doc/INSTALL: Reflect recent autoconf update.
58923         * doc/INSTALL.ISO: Likewise.
58924         * doc/INSTALL.UTF-8: Likewise.
58926 2009-10-20  Pádraig Brady  <P@draigBrady.com>
58928         acl: warn if ACL support is not detected
58929         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
58931 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
58933         * lib/nproc.h: Add extern "C" block for C++.
58935 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
58936             Bruno Haible  <bruno@clisp.org>
58938         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
58939         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
58940         * doc/posix-functions/isalpha.texi: Likewise.
58941         * doc/posix-functions/isblank.texi: Likewise.
58942         * doc/posix-functions/iscntrl.texi: Likewise.
58943         * doc/posix-functions/isdigit.texi: Likewise.
58944         * doc/posix-functions/isgraph.texi: Likewise.
58945         * doc/posix-functions/islower.texi: Likewise.
58946         * doc/posix-functions/isprint.texi: Likewise.
58947         * doc/posix-functions/ispunct.texi: Likewise.
58948         * doc/posix-functions/isspace.texi: Likewise.
58949         * doc/posix-functions/isupper.texi: Likewise.
58950         * doc/posix-functions/isxdigit.texi: Likewise.
58952 2009-10-18  Bruno Haible  <bruno@clisp.org>
58954         Tests for module 'isblank'.
58955         * modules/isblank-tests: New file.
58956         * tests/test-isblank.c: New file.
58958         New module 'isblank'.
58959         * lib/isblank.c: New file.
58960         * m4/isblank.m4: New file.
58961         * modules/isblank: New file.
58962         * doc/posix-functions/isblank.texi: Mention the new module.
58964 2009-10-18  Bruno Haible  <bruno@clisp.org>
58966         New module 'ctype'.
58967         * lib/ctype.in.h: New file.
58968         * m4/ctype.m4: New file.
58969         * modules/ctype: New file.
58970         * doc/posix-headers/ctype.texi: Mention the new module.
58972 2009-10-18  Jim Meyering  <meyering@redhat.com>
58974         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
58975         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
58976         right after its initialization, rather than farther down.
58977         Keeping these in close proximity makes it easier to ensure
58978         that each such variable is initialized.  E.g.,
58980             LIB_CLOCK_GETTIME=
58981             AC_SUBST([LIB_CLOCK_GETTIME])
58983         This change also increments these serial numbers.
58984         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
58985         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
58986         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
58988 2009-10-18  Bruno Haible  <bruno@clisp.org>
58990         Don't let environment variables perturb build.
58991         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
58992         (gl_PREREQ_GETHRXTIME): ... not here.
58994 2009-10-18  Bruno Haible  <bruno@clisp.org>
58996         Avoid symlink attack in localcharset module.
58997         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
58998         (O_NOFOLLOW): Define fallback.
58999         (get_charset_aliases): Don't open the file if it is a symbolic link.
59000         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
59001         gl_FCNTL_H.
59002         (gl_FCNTL_H): Require it.
59003         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
59004         * modules/localcharset (Files): Add m4/fcntl_h.m4.
59005         Reported by Fergal Glynn <fglynn@veracode.com>.
59007 2009-10-18  Bruno Haible  <bruno@clisp.org>
59009         Implement nproc for mingw.
59010         * lib/nproc.c: Include <windows.h>
59011         (num_processors): On native Windows platforms, try GetSystemInfo.
59013 2009-10-18  Bruno Haible  <bruno@clisp.org>
59015         Implement nproc for IRIX.
59016         * lib/nproc.c: Include <sys/sysmp.h>.
59017         (num_processors): On IRIX systems, try sysmp.
59018         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
59020 2009-10-18  Bruno Haible  <bruno@clisp.org>
59022         Implement nproc for HP-UX.
59023         * lib/nproc.c: Include <sys/pstat.h>
59024         (num_processors): On HP-UX systems, try pstat_getdynamic.
59025         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
59026         pstat_getdynamic.
59028 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
59029             Bruno Haible  <bruno@clisp.org>
59031         Implement nproc for NetBSD, OpenBSD.
59032         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
59033         (ARRAY_SIZE): New macro.
59034         (num_processors): On BSD systems, try sysctl of HW_NCPU.
59035         * m4/nproc.m4: New file.
59036         * modules/nproc (Files): Add m4/nproc.m4.
59037         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
59038         (Makefile.am): Instead, augment lib_SOURCES.
59040 2009-10-18  Bruno Haible  <bruno@clisp.org>
59042         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
59043         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
59044         sys/param.h.
59046 2009-10-16  Eric Blake  <ebb9@byu.net>
59048         utimensat: new module
59049         * modules/utimensat: New file.
59050         * lib/utimensat.c (utimensat): Likewise.
59051         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
59052         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
59053         so we can work around Linux bugs.
59054         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
59055         * modules/sys_stat (Makefile.am): Substitute them.
59056         * lib/sys_stat.in.h (utimensat): Declare it.
59057         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
59058         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
59059         * modules/utimensat-tests: New test.
59060         * tests/test-utimensat.c: Likewise.
59062         utimens: let lutimens work on non-symlinks
59063         * lib/utimens.c (lutimens): Fall back to utimens rather than
59064         failing with ENOSYS, when file is not a symlink.
59065         (utimens): Reduce redirection.
59066         * tests/test-lutimens.h (test_lutimens): Update test to cover
59067         non-symlinks.
59068         * tests/test-utimens.h (test_utimens): Update test to cover
59069         symlinks.
59070         * tests/test-utimens.c (main): Update caller.
59072         utimens: cache whether utimensat syscall works
59073         * lib/utimens.c (utimensat_works_really): New cache variable.
59074         (fdutimens, lutimens): Use it to avoid failing syscall.
59076         test-stat-time, test-utimens: improve portability
59077         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
59078         ext4 on alpha, and for cygwin.
59079         * tests/test-utimens-common.h: New file.
59080         (nap): Factor delays into single function.
59081         * tests/test-lutimens.h (test_lutimens): Use new header.
59082         * tests/test-futimens.h (test_futimens): Likewise.
59083         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
59084         timestamps to occur from same machine, as was done previously for
59085         test_utimens.
59086         * modules/utimens-tests (Files): Ship new file.
59087         * modules/futimens-tests (Files): Likewise.
59088         Reported in part by Jim Meyering.
59090         sys_stat: sort replacement declarations
59091         * lib/sys_stat.in.h: Sort declarations.
59092         * lib/futimens.c (futimens): Fix typo.
59094 2009-10-15  Jim Meyering  <meyering@redhat.com>
59096         don't let environment settings perturb build
59097         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
59098         could cause a configure-time and/or build-time malfunction.
59099         Typically, a configure-time function-in-library test is performed
59100         via code like this:
59102           LIB_VAR=
59103           AC_SUBST([LIB_VAR])
59104           prefix_saved_LIBS=$LIBS
59105             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
59106                        [test "$ac_cv_search_FUNC" = "none required" ||
59107                         LIB_VAR=$ac_cv_search_FUNC])
59108           LIBS=$prefix_saved_LIBS
59110         However, in each of the files affected by this change, the LIB_VAR=
59111         initialization was omitted.  Thus, when set in the environment, its
59112         value would propagate into generated Makefiles when FUNC is not found
59113         in LIB_NAME.
59114         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
59115         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
59116         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
59118 2009-10-14  Eric Blake  <ebb9@byu.net>
59120         fchdir: avoid infinite recursion in mingw
59121         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
59122         recursing.
59124         test-stat-time: port to mingw
59125         * tests/test-stat-time.c (force_unlink): Return a value.
59126         (test_ctime) [W32]: Fix compilation error.
59127         (nap): Don't call usleep with too large an argument.  Use
59128         force_unlink.
59129         * doc/pastposix-functions/usleep.texi (usleep): Document the
59130         portability issue.
59132 2009-10-13  Jim Meyering  <meyering@redhat.com>
59134         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
59135         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
59136         * modules/pipe-filter-ii: Likewise.
59137         * modules/sys_socket-tests: Likewise.
59138         * modules/tsearch-tests: Likewise.
59139         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
59140         (check): Depend on it.
59142 2009-10-12  Eric Blake  <ebb9@byu.net>
59144         utimens-tests: port to NFS file systems
59145         * tests/test-utimens.h (test_utimens): Refactor utimecmp
59146         comparisons to avoid spurious failures from timestamp drift
59147         between NFS machines.
59149 2009-10-12  Eric Blake  <ebb9@byu.net>
59151         stat-time-tests: minor cleanups
59152         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
59153         * tests/test-stat-time.c (nap): Separate assignment from call.
59154         Suggested by Paolo Bonzini and Bruno Haible.
59156         sys_stat: guarantee struct timespec
59157         * lib/sys_stat.in.h (includes): Always include <time.h>
59158         * modules/sys_stat (Depends-on): Add time.
59159         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
59160         mode_t permission values.
59161         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
59162         get at subsecond timestamps.
59164 2009-10-10  Eric Blake  <ebb9@byu.net>
59166         futimens: new module
59167         * modules/futimens: New file.
59168         * lib/futimens.c (futimens): Likewise.
59169         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
59170         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
59171         we can work around Linux bugs.
59172         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
59173         * modules/sys_stat (Makefile.am): Substitute them.
59174         * lib/sys_stat.in.h (futimens): Declare it.
59175         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
59176         * doc/posix-functions/futimens.texi (futimens): Likewise.
59177         * modules/futimens-tests: New test.
59178         * tests/test-futimens.c: Likewise.
59180         utimens: introduce fdutimens
59181         * lib/utimens.h (fdutimens): New prototype.
59182         * lib/utimens.c (gl_futimens): Move guts...
59183         (fdutimens): ...to new interface.
59184         * tests/test-utimens.c (do_fdutimens): Use it.
59186         utimens: add UTIME_NOW and UTIME_OMIT support
59187         * lib/utimens.c (validate_timespec, update_timespec): New helper
59188         functions.
59189         (gl_futimens, lutimens): Use them.
59190         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
59191         stdbool, sys_stat.
59192         (Link): Mention resulting library dependency.
59193         * modules/utimecmp (Link): Likewise.
59194         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
59195         (Makefile.am): Pick up library dependency.
59196         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
59197         definition.
59198         * tests/test-sys_stat.c: Test the definitions.
59199         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
59200         * NEWS: Document library dependency.
59202         utimecmp: support symlink timestamps
59203         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
59204         hashing when possible.  Use pathconf when available.
59205         (SYSCALL_RESOLUTION): Recognize tighter resolution.
59206         * modules/utimecmp (Depends-on): Add lstat.
59208         utimens: add lutimens interface
59209         * lib/utimens.c (lutimens): New function.
59210         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
59211         * lib/utimens.h (lutimens): Declare new interface.
59212         * tests/test-utimens.c (main): Enhance test.
59213         * tests/test-lutimens.h (test_lutimens): New file.
59214         * modules/utimens-tests (Files): Distribute it.
59215         (Depends-on): Add symlink.
59216         (configure.ac): Check for usleep.
59218         utimens: validate futimens usage
59219         * lib/utimens.c (gl_futimens): Require valid fd up front, using
59220         fewer syscalls on failure later on.  Avoid compiler warning on
59221         mingw.
59222         * modules/utimens (Depends-on): Add dup2.
59224         utimens: add test
59225         * modules/utimens-tests: New test.
59226         * tests/test-utimens.h: New file.
59227         * tests/test-futimens.h: Likewise.
59228         * tests/test-utimens.c: Likewise.
59230         doc: mention timestamp portability issues
59231         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
59232         instead.
59233         * doc/posix-functions/utime.texi (utime): Likewise.
59234         * doc/posix-functions/utimes.texi (utimes): Likewise.
59235         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
59236         instead.
59237         * doc/posix-functions/futimens.texi (futimens): Mention utimens
59238         module.
59239         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
59240         Mention weakness with symlink timestamps.
59241         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
59242         to utimensat/futimens instead.
59243         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
59245         test-dup2: enhance test
59246         * tests/test-dup2.c (main): Also check AT_FDCWD.
59248         test-stat-time: avoid more spurious failures
59249         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
59250         xfs; and avoid race if the two timestamps cross quantization edge.
59252         relocatable: prefer 'file system' over 'filesystem'
59253         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
59254         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
59255         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
59256         * doc/relocatable.texi (Enabling Relocatability): Likewise.
59257         * lib/relocatable.c (compute_curr_prefix): Likewise.
59259 2009-10-10  Jim Meyering  <meyering@redhat.com>
59261         stat-time-tests: check for the usleep function
59262         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
59264 2009-10-10  Bruno Haible  <bruno@clisp.org>
59266         * modules/xnanosleep: Put the Link section after the Include section.
59268 2009-10-09  Eric Blake  <ebb9@byu.net>
59270         dup2: work around FreeBSD 6.1 bug
59271         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
59272         * doc/posix-functions/dup2.texi (dup2): Document it.
59273         Reported by Nelson H. F. Beebe and Jim Meyering.
59275         test-stat-time: port to buggy NFS clients
59276         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
59277         (test_ctime): Also skip test if mtime and ctime are skewed.
59279         maint: prefer 'file system' over 'filesystem'
59280         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
59281         * doc/posix-functions/lstat.texi (lstat): Likewise.
59282         * lib/file-has-acl.c (file_has_acl): Likewise.
59283         * lib/fwriteerror.c [TEST]: Likewise.
59284         * tests/test-areadlink.h (test_areadlink): Likewise.
59285         * tests/test-areadlinkat-with-size.c (main): Likewise.
59286         * tests/test-areadlinkat.c (main): Likewise.
59287         * tests/test-canonicalize-lgpl.c (main): Likewise.
59288         * tests/test-canonicalize.c (main): Likewise.
59289         * tests/test-fstatat.c (main): Likewise.
59290         * tests/test-linkat.c (main): Likewise.
59291         * tests/test-lstat.h (test_lstat_func): Likewise.
59292         * tests/test-mkdir.h (test_mkdir): Likewise.
59293         * tests/test-readlink.h (test_readlink): Likewise.
59294         * tests/test-remove.c (main): Likewise.
59295         * tests/test-rename.h (test_rename): Likewise.
59296         * tests/test-renameat.c (main): Likewise.
59297         * tests/test-rmdir.h (test_rmdir_func): Likewise.
59298         * tests/test-symlink.h (test_symlink): Likewise.
59299         * tests/test-symlinkat.c (main): Likewise.
59300         * tests/test-unlink.h (test_unlink_func): Likewise.
59301         * tests/test-unlinkat.c (main): Likewise.
59303         maint: make realtime library usage explicit
59304         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
59305         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
59306         * modules/settime (Link): Likewise.
59307         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
59309         test-stat-time: speed up execution
59310         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
59311         warning on mingw.
59312         (nap): New helper function.
59313         (prepare_test): Use it to reduce sleep time.
59314         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
59315         execution.
59316         * modules/stat-time-tests (configure.ac): Check for usleep.
59318 2009-10-09  Jim Meyering  <meyering@redhat.com>
59320         selinux-h: always use getfilecon wrappers
59321         * lib/getfilecon.c: New file.
59322         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
59323         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
59324         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
59325         (fgetfilecon): Provide a stub.
59326         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
59327         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
59328         file unconditionally.
59329         When <selinux/selinux.h> is found, arrange to use wrappers.
59330         * modules/selinux-h (Files): Add getfilecon.c.
59331         (Makefile.am): Substitute include-next-related bits
59332         into the now-always-generated selinux/selinux.h file.
59333         * doc/glibc-functions/lgetfilecon.texi: New file.
59334         * doc/glibc-functions/fgetfilecon.texi: New file.
59335         * doc/glibc-functions/getfilecon.texi: New file.
59336         * doc/glibc-functions/getfilecon-desc.texi: New file.
59337         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
59338         which to pull in the new files.
59339         * MODULES.html.sh (Misc): Add selinux-h.
59341 2009-10-08  Jim Meyering  <meyering@redhat.com>
59343         unistd: fix comment typo
59344         * lib/unistd.in.h (euidaccess): Fix a comment typo.
59346 2009-10-08  Eric Blake  <ebb9@byu.net>
59348         areadlink: use SIZE_MAX consistently
59349         * modules/areadlink (Depends-on): Add stdint.
59350         * modules/areadlink-with-size (Depends-on): Likewise.
59351         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
59352         gives NULL; drop sys/types, since unistd gives size_t; and add
59353         stdint for SIZE_MAX.
59354         (SIZE_MAX): Rely on headers.
59355         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
59356         and add stdint.
59357         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
59358         (SIZE_MAX): Likewise.
59359         (INITIAL_BUF_SIZE): Turn into enum.
59360         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
59362 2009-10-08  Jim Meyering  <meyering@redhat.com>
59364         areadlinkat: avoid compilation failure
59365         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
59366         Fix typo in comment.
59368 2009-10-07  Eric Blake  <ebb9@byu.net>
59370         areadlinkat-with-size: new module
59371         * modules/areadlinkat-with-size: New module.
59372         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
59373         * lib/areadlink.h (areadlinkat): Declare it.
59374         * MODULES.html.sh (File system functions): Mention it.
59375         * modules/areadlinkat-with-size-tests: New test.
59376         * tests/test-areadlinkat-with-size.c: New file.
59378         xreadlinkat: new module
59379         * modules/xreadlinkat: New module.
59380         * lib/xreadlinkat.c (xreadlinkat): New file.
59381         * lib/xreadlink.h (xreadlinkat): Declare it.
59382         * MODULES.html.sh (File system functions): Mention it.
59384         areadlinkat: new module
59385         * lib/at-func.c (FUNC_FAIL): New define.
59386         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
59387         * modules/areadlinkat: New module.
59388         * lib/linkat.c (areadlinkat): Move...
59389         * lib/areadlinkat.c (areadlinkat): ...to new file.
59390         * lib/areadlink.h (areadlinkat): Declare it.
59391         * modules/linkat (Depends-on): Add areadlinkat.
59392         * MODULES.html.sh (File system functions): Mention it.
59393         * modules/areadlinkat-tests: New test.
59394         * tests/test-areadlinkat.c: New file.
59396         areadlink, areadlink-with-size: add tests
59397         * modules/areadlink-tests: New test.
59398         * modules/areadlink-with-size-tests: Likewise.
59399         * tests/test-areadlink.h: New file.
59400         * tests/test-areadlink.c: Likewise.
59401         * tests/test-areadlink-with-size.c: Likewise.
59403         maint: minor cleanups
59404         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
59405         _UNUSED_PARAMETER_ instead.
59406         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
59407         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
59408         * modules/linkat-tests (Files): Distribute test-link.h.
59410         openat, utimens: whitespace cleanup
59411         * lib/openat.c: Prefer space throughout, rather than mix of 8
59412         spaces vs. tabs.
59413         * lib/at-func.c: Likewise.
59414         * lib/utimens.c: Likewise.
59416         openat: avoid using wrong fd
59417         * lib/openat.c (openat_permissive): Reject user's fd if saving the
59418         working directory chooses same fd.
59419         * lib/at-func.c (AT_FUNC_NAME): Likewise.
59421         mkdir, mkdirat: fix cygwin 1.5.x bug
59422         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
59423         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
59424         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
59425         bug.
59426         (gl_PREREQ_MKDIR): Delete unused macro.
59427         * modules/mkdir (Files): Track file rename.
59428         (configure.ac): Update macro name.
59429         * modules/openat (Depends-on): Add mkdir.
59430         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
59432         mkdir, mkdirat: add tests
59433         * modules/mkdir-tests: New test.
59434         * tests/test-mkdir.h: New file.
59435         * tests/test-mkdir.c: Likewise.
59436         * tests/test-mkdirat.c: Likewise.
59437         * modules/openat-tests (Files): Add new files.
59438         (Makefile.am): Run new test.
59440 2009-10-06  Eric Blake  <ebb9@byu.net>
59442         doc: tweak *at function documentation
59443         * doc/posix-functions/faccessat.texi (faccessat): Mention
59444         known issue with replacement.
59445         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
59446         * doc/posix-functions/linkat.texi (linkat): Likewise.
59447         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
59448         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
59449         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
59450         * doc/posix-functions/renameat.texi (renameat): Likewise.
59451         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
59453         openat: fix GNU/Hurd bug in unlinkat
59454         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
59455         broken.
59456         * doc/posix-functions/unlink.texi (unlink): Document this.
59457         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
59459         fdopendir: fix GNU/Hurd bug
59460         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
59461         allowing non-directory fds.
59462         * lib/fdopendir.c (rpl_fdopendir): Work around it.
59463         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
59464         * modules/dirent (Makefile.am): Substitute it.
59465         * lib/dirent.in.h (fdopendir): Declare replacement.
59466         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
59467         * tests/test-fdopendir.c (main): Test something other than
59468         /dev/null, since on Hurd that behaves like a directory.
59470         test-symlink: port to GNU/Hurd
59471         * tests/test-symlink.h (test_symlink): Relax expected errno.
59473         doc: tweak more cygwin information
59474         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
59475         now compatible with glibc.
59476         * doc/posix-functions/getopt.texi (getopt): Likewise.
59478         getopt-gnu: add another test
59479         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
59480         guarantee behavior relied on by m4.
59481         * tests/test-getopt.c (main): Use it.
59482         * modules/getopt-posix-tests (Depends-on): Add setenv.
59483         See http://lists.gnu.org/r/bug-m4/2006-09/msg00028.html.
59485         getopt: fix compilation on darwin
59486         * lib/getopt.in.h (includes): Leave breadcrumbs during system
59487         include.
59488         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
59489         Reported by Ludovic Courtès.
59491 2009-10-06  Bruno Haible  <bruno@clisp.org>
59493         * modules/size_max (Description): Discourage its use.
59494         Reported by Simon Josefsson.
59496 2009-10-06  Jim Meyering  <meyering@redhat.com>
59498         linkat: avoid compilation failure
59499         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
59501 2009-10-05  Eric Blake  <ebb9@byu.net>
59503         linkat: support Linux 2.6.17
59504         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
59505         linkat on Linux, but allow cache variable override.
59506         * lib/linkat.c (rpl_linkat): Define override.
59507         * modules/linkat (Depends-on): Add symlinkat.
59508         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
59509         * modules/unistd (Makefile.am): Substitute it.
59510         * lib/unistd.in.h (linkat): Declare replacement.
59511         Reported by Pádraig Brady.
59513         quotearg: port test to systems with C.UTF-8 locale
59514         * tests/test-quotearg.c (struct result_strings): Add another
59515         member, differentiating between C.ASCII and C.UTF-8 handling.
59516         (compare_strings): Add parameter.
59517         (main): Adjust all callers.
59519         getopt: avoid clash with FreeBSD _getopt_internal
59520         * lib/getopt.in.h (_getopt_internal): Override the name.
59521         * lib/getopt_int.h (includes): Pick up any overrides.
59522         Reported by Reuben Thomas.
59524         hash: allow C89 compilation
59525         * lib/hash.c (check_tuning): Move declaration before statement.
59526         Reported by Reuben Thomas.
59528 2009-10-05  Karl Berry  <karl@gnu.org>
59530         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
59532 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
59533             Bruno Haible  <bruno@clisp.org>
59535         * lib/uname.c (uname): Use a table-driven algorithm to compute
59536         Windows NT versions.
59538 2009-10-04  Bruno Haible  <bruno@clisp.org>
59540         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
59541         program_invocation_short_name.
59542         * modules/progname (configure.ac): Test for presence of
59543         program_invocation_short_name.
59544         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
59546 2009-10-04  Bruno Haible  <bruno@clisp.org>
59548         * lib/progname.c (set_program_name): Fix comment.
59549         Reported by Jim Meyering.
59551 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
59552             Bruno Haible  <bruno@clisp.org>
59554         * lib/uname.c: Include <string.h>.
59555         (uname): Do only one call to GetVersionEx in the common case.
59557 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
59558             Bruno Haible  <bruno@clisp.org>
59560         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
59561         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
59562         (uname): Add support for Windows CE and various non-x86 CPU types.
59564 2009-10-03  Bruno Haible  <bruno@clisp.org>
59566         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
59567         invocation to tests/configure.ac.
59568         Reported by Ian Beckwith <ianb@erislabs.net>.
59570 2009-10-02  Eric Blake  <ebb9@byu.net>
59572         fchdir: avoid compiler warning
59573         * lib/fchdir.c (canonicalize_file_name)
59574         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
59576         test-open: support mingw errno values
59577         * tests/test-open.h (test_open): Relax test.
59578         * tests/test-fopen.h (test_fopen): Likewise.
59579         * tests/test-openat-safer.c (main): Likewise.
59581         open: fix opening directory on mingw
59582         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
59584         test-open: on GNU/Hurd, /dev/null is a directory
59585         * tests/test-fopen.h (main): Rename...
59586         (test_fopen): ...to this.  Use a guaranteed non-directory when
59587         confirming open behavior on trailing slash.
59588         * tests/test-openat-safer.c (main): Likewise.
59589         * tests/test-open.h (main): Likewise....
59590         (test_open): ...to this.
59591         * tests/test-fopen.c (main): Adjust caller.
59592         * tests/test-fopen-safer.c (main): Likewise.
59593         * tests/test-open.c (main): Likewise.
59594         * tests/test-fcntl-safer.c (main): Likewise.
59595         Reported by Samuel Thibault.
59597         rename, fchdir: don't ignore chdir failure
59598         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
59599         * lib/rename.c (rpl_rename) [W32]: Likewise.
59600         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
59601         an empty destination directory if source cannot be renamed,
59602         although there is still possibility for failure.
59603         * doc/posix-functions/rename.texi (rename): Document the race.
59604         Reported by Jim Meyering.
59606         maint: cleanup whitespace in recent commits
59607         * lib/rename.c (rpl_rename): Remove tabs.
59608         * tests/test-link.h (test_link): Likewise.
59609         * lib/fchdir.c (get_name): Likewise.
59610         Reported by Jim Meyering.
59612 2009-10-02  Ben Pfaff  <blp@gnu.org>
59614         relocatable-prog-wrapper: Add missing dependency on
59615         double-slash-root.
59616         * modules/relocatable-prog-wrapper: Add dependency.
59617         Reported by Ian Beckwith <ianb@erislabs.net>.
59619 2009-10-02  Eric Blake  <ebb9@byu.net>
59621         renameat: fix Solaris bugs
59622         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
59623         needed fixing.
59624         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
59625         * modules/stdio (Makefile.am): Substitute it.
59626         * lib/stdio.in.h (renameat): Declare replacement.
59627         * lib/renameat.c (rpl_renameat): Implement fix.
59629         renameat: new module
59630         * modules/renameat: New file.
59631         * lib/renameat.c (renameat): Likewise.
59632         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
59633         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
59634         * modules/stdio (Makefile.am): Substitute them.
59635         * lib/stdio.in.h (renameat): Declare it.
59636         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
59637         * doc/posix-functions/renameat.texi (renameat): Likewise.
59638         * modules/renameat-tests: New test.
59639         * tests/test-renameat.c: Likewise.
59641         rename: fix mingw bugs
59642         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
59643         directory overwrite bugs.
59645         rename: fix another cygwin 1.5 bug
59646         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
59647         checks.
59648         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
59649         unnecessary cygwin workarounds.  Also work around bug with moving
59650         full directory onto an empty one.
59651         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
59653         rename-dest-slash: merge into rename module
59654         * modules/rename-dest-slash (Status): Mark obsolete.
59655         (Depends-on): Add rename.
59656         (Files): Let rename do it all.
59657         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
59658         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
59659         * m4/rename-dest-slash.m4: ...so this file can be deleted.
59660         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
59661         * lib/rename.c (rpl_rename): Update comments.
59663         rename: fix cygwin 1.5.x bugs
59664         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
59665         * lib/rename.c (rpl_rename): Work around them.
59666         * modules/rename (Depends-on): Add same-inode.
59668         rename: fix Solaris 10 bug
59669         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
59670         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
59671         was the only bug.
59673         rename: fix Solaris 9 bug
59674         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
59675         on non-directory.  Avoid calling exit.
59676         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
59677         strdup.
59678         * modules/rename-tests (Depends-on): Drop lstat.
59679         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
59680         (gl_PREREQ_RENAME): Delete unused macro.
59682         rename-dest-slash: fix NetBSD bug
59683         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
59684         links.
59685         * modules/rename-dest-slash (Depends-on): Add same-inode.
59687         rename-tests: new test, exposes several platform bugs
59688         * modules/rename-tests: New file.
59689         * tests/test-rename.h: Likewise.
59690         * tests/test-rename.c: Likewise.
59691         * doc/posix-functions/rename.texi (rename): Improve documentation,
59692         including bugs that will eventually be fixed in gnulib.
59694 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
59696         * lib/uname.c: Include <stdlib.h>
59697         (uname): Assume version info is available.
59699 2009-10-02  Jim Meyering  <meyering@redhat.com>
59701         gnu-web-doc-update: correct --help output
59702         * build-aux/gnu-web-doc-update: Make --help output relevant.
59704         gnu-web-doc-update: add standard options
59705         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
59707         gnu-web-doc-update: New module.
59708         Use this script to automatically update the on-line web documentation
59709         for your GNU project at http://www.gnu.org/software/$pkg/manual/
59710         * modules/gnu-web-doc-update: New file, from coreutils.
59711         * build-aux/gnu-web-doc-update: New script.
59713 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
59715         link: LoadLibrary is not needed.
59716         * lib/link.c: Use GetModuleHandle.
59718 2009-10-01  Eric Blake  <ebb9@byu.net>
59720         getopt: bump serial number
59721         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
59722         change.
59724         tests: tighten link, rmdir, and remove tests
59725         * tests/test-link.h (includes): No need to use <config.h> here.
59726         Clean up if directory hard link was created, otherwise test for
59727         trailing '.'.
59728         * tests/test-linkat.c (main): Simplify.
59729         * tests/test-remove.c (main): Enhance test for trailing '.'.
59730         * tests/test-rmdir.h (test_rmdir_func): Likewise.
59732 2009-10-01  Jim Meyering  <meyering@redhat.com>
59734         maint.mk: requiring "make major" was annoying, for a "minor" release.
59735         What is intended is "stable", to contrast with alpha and beta,
59736         so require "make stable", not "make major".
59737         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
59738         (get_tool_versions): Likewise.
59739         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
59741 2009-09-30  Ben Pfaff  <blp@gnu.org>
59743         Fix broken build of replacement for Windows tmpfile().
59744         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
59745         flags argument added along with the 'mkostemp' module.
59747 2009-09-28  Bruno Haible  <bruno@clisp.org>
59749         Avoid identifier clash with POSIX function 'remove' defined as a macro.
59750         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
59751         to 'remove_elt'.
59752         (gl_list_remove): Update.
59753         * lib/gl_list.c (gl_list_remove): Update.
59754         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
59755         to 'remove_elt'.
59756         (gl_oset_remove): Update.
59757         * lib/gl_list.c (gl_oset_remove): Update.
59758         Reported by Eric Blake.
59760 2009-09-28  Eric Blake  <ebb9@byu.net>
59762         doc: mention yet more cygwin 1.7 status
59763         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
59764         cygwin.
59765         * doc/glibc-functions/execvpe.texi (execvpe): New file.
59766         * doc/gnulib.texi (Glibc unistd.h): Mention it.
59768         argp: fix test failure
59769         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
59770         that are not upper-case.  Pass correct range to tolower.
59772 2009-09-27  Jim Meyering  <meyering@redhat.com>
59774         test-yesno: work around sparc-dash here-document infelicity
59775         Without this change, the literal \177 byte in a here document
59776         would make dash 0.5.5.1-3 access uninitialized memory.
59777         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
59778         Instead, use a marker, "@", and filter through tr to create the desired
59779         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
59781 2009-09-27  Bruno Haible  <bruno@clisp.org>
59783         Disable untested support for new flavours of ACLs on AIX.
59784         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
59785         progress.
59786         * lib/set-mode-acl.c (qset_acl): Likewise.
59788 2008-12-07  Bruno Haible  <bruno@clisp.org>
59790         Add support for new flavours of ACLs on AIX. (Untested.)
59791         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
59792         (file_has_acl): Add support for newer AIX.
59793         * lib/set-mode-acl.c (qset_acl): Likewise.
59794         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
59795         Rainer Tammer <tammer@tammer.net>.
59797 2009-09-26  Eric Blake  <ebb9@byu.net>
59799         argp: fix compilation of getopt
59800         * lib/getopt.in.h (includes): Use different guard than glibc.
59801         Reported by Sergey Poznyakoff.
59803         doc: mention more cygwin 1.7 status
59804         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
59805         bug.
59806         * doc/posix-functions/execl.texi (execl): Likewise.
59807         * doc/posix-functions/execle.texi (execle): Likewise.
59808         * doc/posix-functions/execlp.texi (execlp): Likewise.
59809         * doc/posix-functions/execv.texi (execv): Likewise.
59810         * doc/posix-functions/execve.texi (execve): Likewise.
59811         * doc/posix-functions/execvp.texi (execvp): Likewise.
59812         * doc/glibc-functions/canonicalize_file_name.texi
59813         (canonicalize_file_name): Cygwin 1.7 now provides this.
59814         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
59815         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
59816         on AT_SYMLINK_NOFOLLOW.
59818 2009-09-24  Eric Blake  <ebb9@byu.net>
59820         test-linkat: make test more robust
59821         * tests/test-linkat.c (main): Avoid collision with EEXIST.
59823         getopt: fix inclusion guards for cygwin
59824         * modules/getopt-posix (Depends-on): Add include-next.
59825         (Makefile.am): Substitute more items in replacement header.
59826         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
59827         <getopt.h>.
59828         * lib/getopt.in.h (includes): Use split inclusion guard, and
59829         prefer <getopt.h> over include <unistd.h> when one is present.
59830         (option): Also override name of 'struct option'.
59832         same-inode: revert prior change; it is not yet ready
59833         * NEWS: Undo mention of this change.
59834         * lib/same-inode.h (same-inode.h): Undo tri-state change.
59835         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
59836         * lib/cycle-check.c (cycle_check): Likewise.
59837         * lib/same.c (same_name): Likewise.
59838         * lib/at-func2.c (at_func2): Likewise.
59840 2009-09-23  Eric Blake  <ebb9@byu.net>
59842         linkat: new module
59843         * modules/linkat: New file.
59844         * lib/at-func2.c (at_func2): Likewise.
59845         * lib/linkat.c (linkat): Likewise.
59846         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
59847         * lib/openat-priv.h (at_func2): Add declaration.
59848         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
59849         * modules/unistd (Makefile.am): Substitute them.
59850         * lib/unistd.in.h (linkat): Declare it.
59851         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
59852         * doc/posix-functions/linkat.texi (linkat): Likewise.
59853         * doc/posix-functions/link.texi (link): Tweak wording.
59854         * tests/test-link.c (main): Move guts...
59855         * tests/test-link.h (test_link): ...into new file.
59856         * modules/linkat-tests: New test.
59857         * tests/test-linkat.c: Likewise.
59858         * modules/link-tests (Files): Ship new file.
59859         (Depends-on): Add stdbool.
59861         dirname: add library-safe mdir_name
59862         * lib/dirname.h (mdir_name): New prototype.
59863         * lib/dirname.c (dir_name): Move guts...
59864         (mdir_name): ...to new function that avoids xalloc_die.
59866         fchdir: another mingw fix
59867         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
59868         * lib/fchdir.c (get_name): New helper method; skips canonicalize
59869         on mingw (where it has not yet been ported), and make it optional
59870         elsewhere.
59871         (_gl_register_fd): Use it.
59873         same-inode: make SAME_INODE tri-state, to port to mingw
59874         * NEWS: Mention this change.
59875         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
59876         st_ino always being 0.
59877         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
59878         * lib/cycle-check.c (cycle_check): Likewise.
59879         * lib/same.c (same_name): Likewise.
59881         lstat: avoid mingw compilation error
59882         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
59883         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
59884         lstat ourselves.
59885         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
59886         was adequate.
59887         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
59888         the checks for lstat.
59889         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
59891         link: fix test failure on Solaris 9
59892         * lib/link.c (rpl_link): Don't assume link will catch bogus
59893         trailing slash on source.
59895         test-symlinkat: enhance test
59896         * tests/test-readlink.c (main): Move guts...
59897         * tests/test-readlink.h (test_readlink): ...into new file.
59898         * tests/test-symlink.c (main): Move guts...
59899         * tests/test-symlink.h (test_symlink): ...into new file.
59900         * tests/test-symlinkat.c (main): Use new files for further
59901         coverage.
59902         (do_symlink, do_readlink): New helper functions.
59903         * modules/symlink-tests (Files): Ship new file.
59904         (Depends-on): Add stdbool.
59905         * modules/readlink-tests (Files): Ship new file.
59906         (Depends-on): Add stdbool.
59907         * modules/symlinkat-tests (Files): Use new files.
59909 2009-09-23  Eric Blake  <ebb9@byu.net>
59911         readlink: document portability issue with symlink length
59912         * doc/posix-functions/lstat.texi (lstat): Mention that some file
59913         systems have bogus st_size on symlinks, and mention the
59914         areadlink-with-size module.
59915         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
59916         * doc/posix-functions/readlink.texi (readlink): Mention the
59917         areadlink module, and ERANGE failure.
59918         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
59919         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
59921         readlink: fix Solaris 9 bug with trailing slash
59922         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
59923         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
59924         * doc/posix-functions/readlink.texi (readlink): Document this.
59925         * modules/readlink-tests: New test.
59926         * tests/test-readlink.c: Likewise.
59928         readlink: fix cygwin 1.5.x bug with return type
59929         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
59930         * lib/unistd.in.h (readlink): Use ssize_t.
59931         * lib/readlink.c (readlink): Likewise.
59932         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
59933         * modules/unistd (Makefile.am): Substitute it.
59934         * lib/unistd.in.h (readlink): Declare replacement.
59935         * doc/posix-functions/readlink.texi (readlink): Document this.
59937         symlink: use throughout gnulib
59938         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
59939         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
59940         symlink is not used.
59941         * modules/symlinkat (Depends-on): Add symlink.
59942         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
59943         * modules/canonicalize-tests (Depends-on): Likewise.
59944         * modules/lstat-tests (Depends-on): Likewise.
59945         * modules/openat-tests (Depends-on): Likewise.
59946         * modules/remove-tests (Depends-on): Likewise.
59947         * modules/rmdir-tests (Depends-on): Likewise.
59948         * modules/unlink-tests (Depends-on): Likewise.
59949         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
59950         * tests/test-canonicalize.c (symlink): Likewise.
59951         * tests/test-fstatat.c (symlink): Likewise.
59952         * tests/test-lstat.c (symlink): Likewise.
59953         * tests/test-remove.c (symlink): Likewise.
59954         * tests/test-rmdir.c (symlink): Likewise.
59955         * tests/test-unlink.c (symlink): Likewise.
59956         * tests/test-unlinkat.c (symlink): Likewise.
59958         symlink: new module, for Solaris 9 bug
59959         * modules/symlink: New file.
59960         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
59961         * lib/symlink.c: Likewise.
59962         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
59963         * modules/unistd (Makefile.am): Substitute them.
59964         * lib/unistd.in.h (symlink): Declare replacement.
59965         * MODULES.html.sh (File system functions): Mention it.
59966         * doc/posix-functions/symlink.texi (symlink): Likewise.
59967         * modules/symlink-tests: New test.
59968         * tests/test-symlink.c: Likewise.
59970 2009-09-23  Bruno Haible  <bruno@clisp.org>
59972         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
59973         when needed.
59974         Test case: gnulib-tool --import --with-tests atexit inttypes.
59975         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
59977 2009-09-23  Bruno Haible  <bruno@clisp.org>
59979         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
59980         subcommand, not in a subshell.
59982 2009-09-22  Eric Blake  <ebb9@byu.net>
59984         unistd: sort replacement declarations
59985         * lib/unistd.in.h: Sort declarations.
59987         open, openat: minor optimization
59988         * lib/open.c (open): If open succeeded, len is non-zero.
59989         * lib/openat.c (rpl_openat): Likewise.
59991         link-follow: ensure correct result
59992         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
59993         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
59994         distinguish between possible failures.
59996 2009-09-21  Eric Blake  <ebb9@byu.net>
59998         fts: avoid compiler warning
59999         * lib/fts.c (dirent_inode_sort_may_be_useful)
60000         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
60002 2009-09-19  Bruno Haible  <bruno@clisp.org>
60004         * lib/progreloc.c (canonicalize_file_name): New declaration.
60006 2009-09-19  Eric Blake  <ebb9@byu.net>
60008         link: fix quoting
60009         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
60011         openat: fix openat bugs on Solaris 9
60012         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
60013         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
60014         * modules/openat (Depends-on): Add open.
60015         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
60016         * modules/fcntl-h (Makefile.am): Substitute it.
60017         * lib/fcntl.in.h (openat): Declare replacement.
60018         * doc/posix-functions/openat.texi (openat): Document this.
60020         openat: move fstatat and unlinkat into correct files
60021         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
60022         compiled.
60023         * lib/openat.c (fstatat, unlinkat): Move...
60024         * lib/fstatat.c (fstatat): ...into correct files.
60025         * lib/unlinkat.c (unlinkat): Likewise.
60027         openat: fix unlinkat bugs on Solaris 9
60028         * lib/unlinkat.c (unlinkat): New file.
60029         * modules/openat (Depends-on): Add unlink.
60030         (Files): Distribute it.
60031         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
60032         trailing slash behavior is broken.
60033         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
60034         * modules/unistd (Makefile.am): Substitute it.
60035         * lib/unistd.in.h (unlinkat): Declare replacement.
60036         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
60038         openat: fix fstatat bugs on Solaris 9
60039         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
60040         stat.
60041         * doc/posix-functions/fstatat.texi (fstatat): Document this.
60043         test-unlinkat: enhance test, to expose Solaris 9 bug
60044         * tests/test-unlink.c (main): Factor guts...
60045         * tests/test-unlink.h (test_rmdir_func): ...into new file.
60046         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
60047         * tests/test-rmdir.c (main): Adjust caller.
60048         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
60049         (unlinker): New helper function.
60050         (rmdirat): Enhance check.
60051         * modules/rmdir-tests (Depends-on): Add stdbool.
60052         * modules/unlink-tests (Depends-on): Likewise.
60053         (Files): Add test-unlink.h.
60054         * modules/openat-tests (Files): Likewise.
60055         (Depends-on): Add unlinkdir.
60057         test-fstatat: new test, to expose Solaris 9 bugs
60058         * tests/test-stat.c (main): Factor guts...
60059         * tests/test-stat.h (test_stat_func): ...into new file.
60060         * tests/test-lstat.c (main): Factor guts...
60061         * tests/test-lstat.h (test_lstat_func): ...into new file.
60062         * tests/test-fstatat.c: New file.
60063         * modules/stat-tests (Files): Add test-stat.h.
60064         * modules/lstat-tests (Files): Add test-lstat.h.
60065         (Depends-on): Add stdbool.
60066         * modules/openat-tests (Depends-on): Add pathmax.
60067         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
60068         (Makefile.am): Run new test.
60070         remove: new module, for mingw and Solaris 9 bugs
60071         * modules/remove: New file.
60072         * lib/remove.c: Likewise.
60073         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
60074         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
60075         * modules/stdio (Makefile.am): Use them.
60076         * lib/stdio.in.h (remove): Declare replacement.
60077         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
60078         * doc/posix-functions/remove.texi (remove): Likewise.
60079         * modules/remove-tests: New test.
60080         * tests/test-remove.c: Likewise.
60082         unlink: new module, for Solaris 9 bug
60083         * modules/unlink: New file.
60084         * lib/unlink.c: Likewise.
60085         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
60086         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
60087         * modules/unistd (Makefile.am): Use them.
60088         * lib/unistd.in.h (stat): Declare replacement.
60089         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
60090         * doc/posix-functions/unlink.texi (unlink): Likewise.
60091         * modules/unlink-tests: New test.
60092         * tests/test-unlink.c: Likewise.
60094         lstat: fix Solaris 9 bug
60095         * lib/lstat.c (lstat): Also check for trailing slash on
60096         non-symlink, non-directories.  Use stat module to simplify logic.
60097         * doc/posix-functions/lstat.texi (lstat): Document it.
60098         * modules/lstat-tests (Depends-on): Add errno, same-inode.
60099         (configure.ac): Check for symlink.
60100         * tests/test-lstat.c (main): Add more tests.
60102         stat: add as dependency to other modules
60103         * modules/chown (Depends-on): Add stat.
60104         * modules/euidaccess (Depends-on): Likewise.
60105         * modules/fchdir (Depends-on): Likewise.
60106         * modules/isdir (Depends-on): Likewise.
60107         * modules/link (Depends-on): Likewise.
60108         * modules/lstat (Depends-on): Likewise.
60109         * modules/mkdir-p (Depends-on): Likewise.
60110         * modules/modechange (Depends-on): Likewise.
60111         * modules/open (Depends-on): Likewise.
60112         * modules/readlink (Depends-on): Likewise.
60113         * modules/same (Depends-on): Likewise.
60115         stat: fix Solaris 9 bug
60116         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
60117         slash.
60118         * lib/stat.c (rpl_stat): Work around it.
60119         * doc/posix-functions/stat.texi (stat): Update documentation.
60121         stat: new module, for mingw bug
60122         * modules/stat: New file.
60123         * lib/stat.c: Likewise.
60124         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
60125         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
60126         * modules/sys_stat (Makefile.am): Use them.
60127         * lib/sys_stat.in.h (stat): Declare replacement.
60128         * lib/openat.c (fstatat): Deal with lstat and stat being function
60129         macros.
60130         * modules/openat (Depends-on): Add inline.
60131         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
60132         * doc/posix-functions/stat.texi (stat): Likewise.
60133         * modules/stat-tests: New test.
60134         * tests/test-stat.c: Likewise.
60136 2009-09-19  Jim Meyering  <meyering@redhat.com>
60138         syntax-check: detect unnecessary inclusion of canonicalize.h
60139         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
60141 2009-09-19  Eric Blake  <ebb9@byu.net>
60143         canonicalize-lgpl: adjust clients to use correct header
60144         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
60145         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
60146         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
60147         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
60148         * lib/progreloc.c (includes): Likewise.
60150 2009-09-19  Jim Meyering  <meyering@redhat.com>
60152         test-posixtm.c: correct a comment
60153         * tests/test-posixtm.c: Correct first-line comment.
60154         Spotted by Eric Blake.
60156 2009-09-16  Jim Meyering  <meyering@redhat.com>
60158         posixtm-tests: make T const-correct; add a test case
60159         * tests/test-posixtm.c (T): Declare const.
60160         Add a test for -(2^31+1).
60161         Remove useless can-succeed-only-in-2002 test.
60163         posixtm-tests: adjust the sole failing test
60164         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
60165         expected output matches what mktime now produces.  Cross-checked via
60166         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
60168         posixtm: move #ifdef'd tests into a new module
60169         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
60170         * tests/test-posixtm.c: ... this new file.
60171         * modules/posixtm-tests: New module.
60173 2009-09-19  Eric Blake  <ebb9@byu.net>
60175         openat: simplify use of at-func.c
60176         * lib/at-func.c (includes): Include prerequisites here, to
60177         simplify requirements on client files.
60178         * lib/openat-priv.h: Add double-inclusion guard.
60179         * lib/faccessat.c (includes): Simplify.
60180         * lib/fchmodat.c (includes): Likewise.
60181         * lib/fchownat.c (includes): Likewise.
60182         * lib/mkdirat.c (includes): Likewise.
60183         * lib/mkfifoat.c (includes): Likewise.
60184         * lib/symlinkat.c (includes): Likewise.
60186         openat: allow return of fd 0
60187         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
60188         * modules/save-cwd (Depends-on): Replace fcntl-safer with
60189         unistd-safer.
60190         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
60191         <fcntl.h>; this module does not leak fds.
60192         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
60193         must be allowed to return 0, leaving openat_safer to add the
60194         safety.
60195         (openat_permissive): Avoid writing to just-opened fd 2 if
60196         restoring the current directory fails.
60197         * lib/openat-die.c (openat_restore_fail): Add comment.
60198         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
60199         (save_cwd): Guarantee safe fd, but without use of open_safer.
60200         * tests/test-openat.c: New test.
60201         * modules/openat-tests (Files, Makefile.am): Distribute and build
60202         new file.
60204         relocatable-prog-wrapper: fix build
60205         * modules/relocatable-prog-wrapper (Files): Update name of
60206         canonicalize m4 file, broken on 2009-09-17.
60207         Reported by emad hajjar <aleppos@hotmail.com>.
60209 2009-09-19  Bruno Haible  <bruno@clisp.org>
60211         * lib/safe-alloc.h: Use the standard header with GPL copyright.
60212         * lib/safe-alloc.c: Likewise.
60213         Reported by Ian Beckwith <ianb@erislabs.net>.
60215 2009-09-18  Bruno Haible  <bruno@clisp.org>
60217         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
60218         Reported by <erobles@sensacd.com.mx>.
60220 2009-09-17  Eric Blake  <ebb9@byu.net>
60222         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
60223         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
60224         slashes when checking if last component is missing.
60225         * tests/test-canonicalize.c (main): Test this.
60227         canonicalize, canonicalize-lgpl: honor // if distinct from /
60228         * modules/canonicalize (Files): Add double-slash-root.m4.
60229         * modules/canonicalize-lgpl (Files): Likewise.
60230         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
60231         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
60232         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
60233         fallback definition.
60234         (canonicalize_filename_mode): Use it to protect //.
60235         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
60236         (__realpath): Likewise.
60237         * tests/test-canonicalize.c (main): Test this.
60238         * tests/test-canonicalize-lgpl.c (main): Likewise.
60239         * modules/canonicalize-tests (Depends-on): Add same-inode.
60240         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
60242         canonicalize-lgpl: fix glibc bug with trailing slash
60243         * m4/canonicalize-lgpl.m4: Move contents...
60244         * m4/canonicalize.m4: ...here.
60245         (gl_CANONICALIZE_LGPL): Factor realpath check...
60246         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
60247         glibc 2.3.5 bug, fixed 2005-04-27.
60248         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
60249         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
60250         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
60251         * modules/canonicalize-lgpl (Files): Manage file rename.
60252         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
60253         * modules/stdlib (Makefile.am): Substitute witness.
60254         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
60255         is needed.
60256         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
60257         replacement is required.
60258         * lib/canonicalize.c (canonicalize_file_name): Likewise.
60259         * doc/glibc-functions/canonicalize_file_name.texi
60260         (canonicalize_file_name): Document this.
60261         * doc/posix-functions/realpath.texi (realpath): Likewise.
60263         canonicalize-lgpl: reject non-directory with trailing slash
60264         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
60265         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
60266         catches failures in glibc 2.3.5.
60267         * tests/test-canonicalize.c (main): Likewise.
60269         canonicalize-lgpl: use native realpath if it works
60270         * lib/canonicalize-lgpl.c (realpath): Guard with
60271         FUNC_REALPATH_WORKS.
60272         * lib/stdlib.in.h (realpath): Make declaration optional based on
60273         HAVE_REALPATH.
60274         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
60275         native realpath works.
60276         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
60277         * modules/stdlib (Makefile.am): Substitute witness.
60279         canonicalize, canonicalize-lgpl: use <stdlib.h>
60280         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
60281         (Include): Mention <stdlib.h>.
60282         (configure.ac): Mention functions we provide.
60283         * modules/canonicalize (configure.ac): Likewise.
60284         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
60285         realpath if canonicalize_file_name is missing.
60286         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
60287         * modules/stdlib (Makefile.am): Substitute witnesses.
60288         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
60289         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
60290         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
60291         * NEWS: Document this.
60292         * doc/glibc-functions/canonicalize_file_name.texi
60293         (canonicalize_file_name): Likewise.
60294         * doc/posix-functions/realpath.texi (realpath): Likewise.
60295         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
60297         test-canonicalize: consolidate into single C program
60298         * tests/test-canonicalize.sh: Delete; move setup into...
60299         * tests/test-canonicalize.c (main): ...the program, making it
60300         easier to run in debugger.  Add some tests.
60301         * modules/canonicalize-tests (Files): Remove unused file.
60302         (Depends-on): Add progname.
60303         (configure.ac, Makefile.am): Simplify.
60305         test-canonicalize-lgpl: consolidate into single C program
60306         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
60307         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
60308         easier to run in debugger.  Add some tests.
60309         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
60310         (configure.ac, Makefile.am): Simplify.
60312         canonicalize: avoid resolvepath
60313         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
60314         unnecessary checks.
60315         * lib/canonicalize.c (includes): Simplify.
60316         (canonicalize_file_name): Drop resolvepath implementation.
60317         * modules/canonicalize (Depends-on): Drop filenamecat.
60319         canonicalize: don't lose errno
60320         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
60321         over calls to free.
60323         canonicalize: simplify errno handling
60324         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
60325         assignment.
60327         canonicalize, canonicalize-lgpl: update module dependencies
60328         * modules/canonicalize (Depends-on): Add extensions, lstat,
60329         pathmax, stdlib.
60330         (Files): Drop pathmax.h.
60331         (configure.ac): Adjust macro name.
60332         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
60333         lstat, stdlib, sys_stat.
60334         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
60335         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
60336         extensions.
60337         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
60338         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
60339         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
60340         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
60341         declaration, if available.
60342         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
60343         we can rely on the readlink module.
60344         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
60345         (includes): Use <unistd.h> unconditionally.
60347 2009-09-17  Eric Blake  <ebb9@byu.net>
60349         maint: make Include sections of modules consistent
60350         * modules/alloca: Use only header name; no need to list #include.
60351         * modules/alloca-opt: Likewise.
60352         * modules/arpa_inet: Likewise.
60353         * modules/canon-host: Likewise.
60354         * modules/configmake: Likewise.
60355         * modules/dirent: Likewise.
60356         * modules/eealloc: Likewise.
60357         * modules/environ: Likewise.
60358         * modules/fchdir: Likewise.
60359         * modules/fcntl: Likewise.
60360         * modules/fcntl-h: Likewise.
60361         * modules/gethrxtime: Likewise.
60362         * modules/gettime: Likewise.
60363         * modules/ignore-value: Likewise.
60364         * modules/inet_ntop: Likewise.
60365         * modules/inet_pton: Likewise.
60366         * modules/inttypes: Likewise.
60367         * modules/isnand-nolibm: Likewise.
60368         * modules/isnanf-nolibm: Likewise.
60369         * modules/mbchar: Likewise.
60370         * modules/mbfile: Likewise.
60371         * modules/mbiter: Likewise.
60372         * modules/mbuiter: Likewise.
60373         * modules/netdb: Likewise.
60374         * modules/netinet_in: Likewise.
60375         * modules/nproc: Likewise.
60376         * modules/pagealign_alloc: Likewise.
60377         * modules/poll: Likewise.
60378         * modules/printf-frexp: Likewise.
60379         * modules/pthread: Likewise.
60380         * modules/putenv: Likewise.
60381         * modules/random_r: Likewise.
60382         * modules/relocatable-prog: Likewise.
60383         * modules/search: Likewise.
60384         * modules/select: Likewise.
60385         * modules/selinux-h: Likewise.
60386         * modules/settime: Likewise.
60387         * modules/signal: Likewise.
60388         * modules/size_max: Likewise.
60389         * modules/socklen: Likewise.
60390         * modules/ssize_t: Likewise.
60391         * modules/stdarg: Likewise.
60392         * modules/stdbool: Likewise.
60393         * modules/stddef: Likewise.
60394         * modules/stdint: Likewise.
60395         * modules/stdio: Likewise.
60396         * modules/stdlib: Likewise.
60397         * modules/string: Likewise.
60398         * modules/strings: Likewise.
60399         * modules/sys_file: Likewise.
60400         * modules/sys_ioctl: Likewise.
60401         * modules/sys_select: Likewise.
60402         * modules/sys_socket: Likewise.
60403         * modules/sys_stat: Likewise.
60404         * modules/sys_time: Likewise.
60405         * modules/sys_times: Likewise.
60406         * modules/sys_utsname: Likewise.
60407         * modules/sys_wait: Likewise.
60408         * modules/sysexits: Likewise.
60409         * modules/time: Likewise.
60410         * modules/times: Likewise.
60411         * modules/tmpfile: Likewise.
60412         * modules/trim: Likewise.
60413         * modules/unistd: Likewise.
60414         * modules/wchar: Likewise.
60415         * modules/wctype: Likewise.
60417 2009-09-17  Bruno Haible  <bruno@clisp.org>
60419         Make getdate.y compile on QNX and NetBSD 5 / i386.
60420         * m4/getdate.m4 (gl_GETDATE): Conditionally define
60421         TIME_T_FITS_IN_LONG_INT.
60422         * lib/getdate.y (long_time_t): New type.
60423         (relative_time): Change type of 'seconds' field to long_time_t.
60424         (get_date): Update types of local variables. Check against overflow
60425         during conversion from long_time_t to time_t.
60426         Reported by Matt Kraai <kraai@ftbfs.org>
60427         and Hasso Tepper <hasso@netbsd.org>.
60429 2009-09-17  Bruno Haible  <bruno@clisp.org>
60431         * modules/COPYING: Update copyright years.
60432         * modules/README: Likeiwse.
60433         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
60434         Reported by Ian Beckwith <ianb@erislabs.net>.
60436 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
60438         * users.txt: Update references for gnuit package.
60440 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
60442         * m4/getdelim.m4: Fix typo in copyright line.
60444 2009-09-17  Bruno Haible  <bruno@clisp.org>
60446         * lib/atoll.c: Use the standard header with GPL copyright.
60447         * lib/argz.in.h: Likewise.
60448         * lib/glob.c: Likewise.
60449         * lib/glob-libc.h: Likewise.
60450         * lib/random_r.c: Likewise.
60451         * lib/siglist.h: Likewise.
60452         * lib/strsignal.c: Likewise.
60453         Reported by Ian Beckwith <ianb@erislabs.net>.
60455 2009-09-17  Eric Blake  <ebb9@byu.net>
60457         rmdir: ensure correct dependency order
60458         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
60460 2009-09-17  Bruno Haible  <bruno@clisp.org>
60462         Disable assertion that fails on NetBSD 5 / i386.
60463         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
60464         Reported by Sam Steingold <sds@gnu.org>
60465         and Hasso Tepper <hasso@netbsd.org>.
60467 2009-09-16  Eric Blake  <ebb9@byu.net>
60469         unlinkdir: port to mingw
60470         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
60471         on which no one can unlink a directory.
60473         stdlib: sort witness names
60474         * modules/stdlib (Makefile.am): Sort replacements.
60475         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
60476         * lib/stdlib.in.h: Likewise.
60478         parse-duration-tests: avoid link failure
60479         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
60480         LIBINTL.
60481         Reported by Tom G. Christensen.
60483         openat-tests: ensure unlinkat behaves like rmdir
60484         * tests/test-rmdir.c (main): Factor guts...
60485         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
60486         * modules/rmdir-tests (Files): Ship new file.
60487         * modules/openat-tests: New test.
60488         * tests/test-unlinkat.c: Likewise.
60490         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
60491         * modules/rmdir-errno (Status, Notice): Now obsolete.
60493         rmdir: work around cygwin 1.5.x and mingw bugs
60494         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
60495         * lib/rmdir.c (rmdir): Work around it.
60496         * modules/rmdir (Status, Notice): No longer obsolete.
60497         (Files): Add dos.m4.
60498         (Depends-on): Add unistd.
60499         (configure.ac): Set witnesses.
60500         (License): Relax to LGPLv2+.
60501         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
60502         * modules/unistd (Makefile.am): Substitute witnesses.
60503         * lib/unistd.in.h (rmdir): Declare replacement.
60504         * doc/posix-functions/rmdir.texi (rmdir): Document this.
60505         * modules/rmdir-tests: New tests.
60506         * tests/test-rmdir.c: Likewise.
60508 2009-09-15  Eric Blake  <ebb9@byu.net>
60510         fchdir: improve use of replacement functions
60511         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
60512         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
60513         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
60514         REPLACE_CLOSEDIR.
60515         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
60516         * modules/sys_stat (Makefile.am): Substitute correct witness.
60517         * modules/dirent (Makefile.am): Likewise.
60518         * modules/unistd (Makefile.am): Likewise.
60519         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
60520         * lib/unistd.in.h (dup): Likewise.
60521         * lib/sys_stat.in.h (fstat): Likewise.
60523         maint: ignore gnulib-tool temp files
60524         * .gitignore: Ignore files created during gnulib-tool --test.
60526 2009-09-13  Jim Meyering  <meyering@redhat.com>
60528         posixtm: don't reject a time that specify "60" as the number of seconds
60529         * lib/posixtm.c (posixtime): The code to reject invalid dates
60530         would also reject a time specified with the .60 suffix.
60531         But POSIX allows that, in order to accommodate leap seconds.
60532         So don't reject it.
60533         (main): Adjust tests accordingly.
60534         * modules/posixtm (Depends-on): Add stpcpy.
60536 2009-09-11  Jim Meyering  <meyering@redhat.com>
60538         announce-gen: include [$release_type] in emitted Subject:
60539         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
60540         e.g., [stable] in the emitted Subject: line.
60542 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60544         Remove obsolete macros from several modules.
60545         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
60546         obsolete Autoconf macros with their modern counterparts.
60547         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
60548         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
60549         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
60550         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
60551         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
60552         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
60553         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
60554         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
60555         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
60556         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
60557         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
60558         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
60559         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
60560         * m4/sockets.m4 (gl_SOCKETS): Likewise.
60561         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
60562         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
60563         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
60564         * m4/time_r.m4 (gl_TIME_R): Likewise.
60565         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
60566         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
60567         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
60569         Fix copyright header in build-aux scripts.
60570         * build-aux/git-version-gen: Fix copyright header to match GPLv3
60571         recommendation.
60572         * build-aux/ncftpput-ftp: Likewise.
60573         * build-aux/update-copyright: Likewise.
60575 2009-09-09  Eric Blake  <ebb9@byu.net>
60577         test-link: allow Linux choice of errno
60578         * tests/test-link.c (main): Relax test for alternate error.
60580         strndup: fix improper m4 caching
60581         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
60582         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
60583         (gl_PREREQ_STRNDUP): Delete.
60584         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
60585         * modules/string (Makefile.am): Substitute it.
60586         * lib/string.in.h (strndup): Modernize prototype.
60588         getcwd: port to mingw
60589         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
60590         different from the POSIX assumptions made throughout the getcwd
60591         module; fortunately, the mingw getcwd does not need replacement.
60592         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
60593         * modules/getcwd-tests: New test.
60594         * tests/test-getcwd.c: Likewise.
60596         link: fix platform bugs
60597         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
60598         * lib/link.c (link): Work around them.  Fix related mingw bug.
60599         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
60600         * modules/unistd (Makefile.am): Substitute it.
60601         * lib/unistd.in.h (link): Declare replacement.
60602         * doc/posix-functions/link.texi (link): Document this.
60603         * modules/link (Depends-on): Add strdup-posix, sys_stat.
60605         test-link: consolidate into single C program, test more cases
60606         * tests/test-link.sh: Delete.
60607         * tests/test-link.c: Test more error conditions.  Exposes bugs on
60608         at least Cygwin and Solaris.
60609         * modules/link-tests (Files): Remove unused file.
60610         (Depends-on): Add errno, sys_stat.
60611         (Makefile.am): Simplify.
60613 2009-09-08  Bruno Haible  <bruno@clisp.org>
60615         Work around towlower, towupper bug on mingw.
60616         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
60617         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
60618         * doc/posix-functions/towlower.texi: Mention the mingw bug.
60619         * doc/posix-functions/towupper.texi: Likewise.
60620         Reported by Eric Blake.
60622 2009-09-08  Jim Meyering  <meyering@redhat.com>
60624         build: don't try to run autoheader if we don't use it
60625         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
60626         is not used in configure.ac.
60628 2009-09-08  Eric Blake  <ebb9@byu.net>
60630         euidaccess: fix compilation error
60631         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
60633         rawmemchr: relax license
60634         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
60635         okay.
60636         Reported by Jim Meyering.
60638         mkfifoat: new module
60639         * modules/mkfifoat: New file.
60640         * lib/mkfifoat.c: Likewise.
60641         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
60642         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
60643         * modules/sys_stat (Makefile.am): Use them.
60644         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
60645         * MODULES.html.sh (File system functions): Mention module.
60646         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
60647         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
60648         * modules/mkfifoat-tests: New test.
60649         * tests/test-mkfifoat.c: Likewise.
60651         strchrnul: relax license
60652         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
60653         okay.
60654         Reported by Jim Meyering.
60656 2009-09-08  Eric Blake  <ebb9@byu.net>
60658         fstatat: fix compilation on Solaris
60659         * lib/fstatat.c (includes): Add fcntl.h.
60660         Reported by Pádraig Brady.
60662 2009-09-07  Eric Blake  <ebb9@byu.net>
60664         rename: modernize replacement
60665         * modules/rename (Depends-on): Add stdio.
60666         (configure.ac): Declare witness.
60667         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
60668         stdio take care of replacement.
60669         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
60670         * modules/stdio (Makefile.am): Substitute them.
60671         * lib/stdio.in.h (rename): Declare replacement.
60672         * lib/rename.c (includes): Allow cross-compilation to non-windows
60673         machines.
60674         * doc/posix-functions/rename.texi (rename): Improve
60675         documentation.
60677         stdio: sort witness names
60678         * modules/stdio (Makefile.am): Sort replacements.
60679         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
60680         * lib/stdio.in.h: Likewise.
60682         getcwd: minor cleanups
60683         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
60684         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
60686         openat: provide more convenience names
60687         * modules/faccessat (configure.ac): Add C witness.
60688         * lib/unistd.in.h (readlinkat): Fix typo.
60689         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
60690         convenience wrappers.
60691         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
60692         wrappers in syntax checks.
60694 2009-09-06  Eric Blake  <ebb9@byu.net>
60696         doc: fix comments in recent patches
60697         * lib/faccessat.c: Mention correct function.
60698         * lib/fchmodat.c: Likewise.
60699         * lib/fchownat.c: Likewise.
60700         * lib/symlinkat.c: Likewise.
60701         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
60702         constants.
60704         faccessat, symlinkat: continue cleanup of previous patch
60705         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
60706         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
60707         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
60708         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
60709         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
60710         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
60711         set.
60713 2009-09-06  Bruno Haible  <bruno@clisp.org>
60715         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
60716         (fstatat): Declare if GNULIB_FSTATAT is set.
60717         (mkdirat): Declare if GNULIB_MKDIRAT is set.
60718         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
60719         (unlinkat): Declare if GNULIB_UNLINKAT is set.
60720         * modules/fcntl-h (Files): Remove m4/openat.m4.
60721         * modules/sys_stat (Files): Remove m4/openat.m4.
60722         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
60723         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
60724         * modules/unistd (Files): Remove m4/openat.m4.
60725         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
60726         GNULIB_OPENAT.
60727         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
60728         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
60729         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
60730         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
60731         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
60732         gl_OPENAT_DEFAULTS.
60733         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
60734         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
60735         Don't require gl_OPENAT_DEFAULTS.
60736         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
60737         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
60738         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
60739         (gl_OPENAT_DEFAULTS): Remove macro.
60741 2009-09-06  Bruno Haible  <bruno@clisp.org>
60743         * modules/openat (configure.ac): Remove unneeded witness.
60745 2009-09-06  Bruno Haible  <bruno@clisp.org>
60747         Set errno to ENOSYS when a function is entirely unsupported.
60748         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
60749         EOPNOTSUPP.
60750         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
60751         * modules/chown (Depends-on): Remove errno.
60753 2009-09-06  Bruno Haible  <bruno@clisp.org>
60755         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
60757 2009-09-06  Bruno Haible  <bruno@clisp.org>
60759         * lib/sys_stat.in.h: Fix preprocessor command indentation.
60761 2009-09-06  Ben Pfaff  <blp@gnu.org>
60762             Bruno Haible  <bruno@clisp.org>
60764         Work around a glibc bug in strtok_r.
60765         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
60766         Undefine if UNDEFINE_STRTOK_R is set.
60767         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
60768         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
60769         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
60770         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
60771         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
60772         UNDEFINE_STRTOK_R.
60773         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
60775 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
60777         exclude: minor fix
60778         * lib/exclude.c: Include wctype.h
60780 2009-09-06  Akim Demaille  <demaille@gostai.com>
60782         bootstrap: improve error message
60783         * build-aux/bootstrap (find_tool): Upon failure, report the list
60784         of candidates.
60785         Honor the initial value of the envvar.
60787 2009-09-05  Eric Blake  <ebb9@byu.net>
60789         symlinkat: new module
60790         * modules/symlinkat: New file.
60791         * lib/symlinkat.c: Likewise.
60792         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
60793         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
60794         * modules/unistd (Makefile.am): Use them.
60795         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
60796         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
60797         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
60798         * MODULES.html.sh (File system functions): Mention module.
60799         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
60800         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
60801         * modules/symlinkat-tests: New test.
60802         * tests/test-symlinkat.c: Likewise.
60804         test-openat-safer: add more checks
60805         * tests/test-openat-safer.c (main): Check more code paths.
60807 2009-09-05  Jim Meyering  <meyering@redhat.com>
60809         syntax-check: detect unnecessary inclusion of openat.h
60810         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
60812 2009-09-05  Bruno Haible  <bruno@clisp.org>
60814         Support towlower, towupper.
60815         * doc/posix-functions/towlower.texi: Mention module wctype.
60816         * doc/posix-functions/towupper.texi: Likewise.
60817         * lib/wctype.in.h (towlower, towupper): New functions.
60818         * tests/test-wctype.c: Include stdio.h, stdlib.h.
60819         (ASSERT): New macro.
60820         (e): New variable.
60821         (main): Test also towlower, towupper. Test WEOF argument.
60822         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
60824 2009-09-05  Bruno Haible  <bruno@clisp.org>
60826         Fix conversion behaviour when the input is invalid.
60827         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
60828         mark occurring in first pass of indirect conversion.
60829         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
60830         input.
60831         Found by clang's static analyzer.
60833 2009-09-05  Bruno Haible  <bruno@clisp.org>
60835         * tests/test-striconveh.c (main): Test indirect conversion on platforms
60836         where direct conversion is possible.
60838 2009-09-04  Eric Blake  <ebb9@byu.net>
60840         openat: fail with ENOENT on empty name
60841         * lib/openat-proc.c (openat_proc_name): Special-case the empty
60842         buffer.
60844         link-follow: fix logic bug in prior patch
60845         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
60846         reversed sense of yes and no in prior patch.  Avoid confusing
60847         compilation failure with desired semantics.
60849         link-follow: accommodate mingw and cross-compilation
60850         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
60851         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
60852         cross-compilation results to -1, to make linkat easier to
60853         implement when cross-compiling.  Trivially support mingw.
60854         * modules/link-follow (configure.ac): Call new name.
60855         * NEWS: Mention this.
60857 2009-09-03  Eric Blake  <ebb9@byu.net>
60859         faccessat: compile replacement
60860         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
60861         needed.
60863         fts: fix compilation error
60864         * lib/fts.c (includes): Re-add "openat.h", for
60865         openat_needs_fchdir.
60867         faccessat: new module
60868         * modules/faccessat: New file.
60869         * lib/faccessat.c: Likewise.
60870         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
60871         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
60872         * modules/unistd (Makefile.am): Use it.
60873         * lib/unistd.in.h (faccessat): Declare it.
60874         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
60875         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
60876         * MODULES.html.sh (File system functions): Mention it.
60877         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
60878         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
60880         euidaccess: prefer POSIX over non-standard implementation
60881         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
60882         * lib/euidaccess.c (euidaccess): Use it if available.
60884         openat: make template easier to use
60885         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
60886         AT_FUNC_F2 to be undefined.
60887         (VALIDATE_FLAG): New macro; use it to reject bad flags.
60888         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
60889         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
60890         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
60891         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
60892         Likewise.
60893         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
60894         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
60895         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
60896         Likewise.
60898         openat: declare in POSIX headers
60899         * NEWS: Mention this.
60900         * modules/openat (configure.ac): Declare witnesses.
60901         (Depends-on): Add fcntl-h, sys_stat, unistd.
60902         (Include): Mention correct headers.
60903         * modules/fcntl-h (Depends-on): Add link-warning.
60904         (Files): Add openat.m4.
60905         (Makefile.am): Substitute witnesses.
60906         * modules/sys_stat (Files, Makefile.am): Likewise.
60907         * modules/unistd (Files, Makefile.am): Likewise.
60908         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
60909         (gl_OPENAT_DEFAULTS): New macro.
60910         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
60911         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
60912         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
60913         (SYS_STAT_H): Remove unused variable.
60914         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
60915         * lib/fcntl--.h (includes): Remove unneeded header.
60916         * lib/openat-safer.c (includes): Likewise.
60917         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
60918         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
60919         appropriate headers.
60920         (__OPENAT_PREFIX): Delete.
60921         * lib/fcntl.in.h (openat): Provide declaration.
60922         (AT_FDCWD): Fix Solaris bug.
60923         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
60924         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
60925         * lib/fchmodat.c (includes):  Adjust to find declaration.
60926         * lib/fchownat.c (includes): Likewise.
60927         * lib/mkdirat.c (includes): Likewise.
60928         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
60929         still visible.
60931 2009-09-02  Eric Blake  <ebb9@byu.net>
60933         errno: use consistently
60934         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
60935         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
60936         * lib/canonicalize.c (ELOOP): Likewise.
60937         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
60938         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
60939         * lib/lchown.c (EOPNOTSUPP): Likewise.
60940         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
60941         * lib/savewd.c (ESTALE): Likewise.
60942         * lib/settime.c (ENOSYS): Likewise.
60943         * lib/utimens.c (ENOSYS): Likewise.
60944         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
60945         * lib/chdir-safer.c (ELOOP): Likewise.
60946         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
60947         * modules/c-stack (Depends-on): Add errno.
60948         * modules/canonicalize (Depends-on): Likewise.
60949         * modules/chdir-safer (Depends-on): Likewise.
60950         * modules/fdopendir (Depends-on): Likewise.
60951         * modules/inet_ntop (Depends-on): Likewise.
60952         * modules/inet_pton (Depends-on): Likewise.
60953         * modules/lchown (Depends-on): Likewise.
60954         * modules/openat (Depends-on): Likewise.
60955         * modules/savewd (Depends-on): Likewise.
60956         * modules/settime (Depends-on): Likewise.
60957         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
60959         fts: avoid leaking fds
60960         * modules/fts (Depends-on): Add cloexec.
60961         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
60962         flag.
60964         fts: make directory fds more robust
60965         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
60966         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
60968         backupfile, chdir-long, fts, savedir: make safer
60969         * lib/backupfile.c (includes): Use "dirent--.h", since
60970         numbered_backup can write to stderr during readdir.
60971         * lib/savedir.c (includes): Likewise.
60972         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
60973         emulation can write to stderr on failure.
60974         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
60975         * lib/getcwd.c: Document why opendir_safer is unused.
60976         * lib/glob.c: Likewise.
60977         * lib/scandir.c: Likewise.
60978         * lib/openat-proc.c: Likewise, for open_safer.
60979         * modules/backupfile (Depends-on): Add dirent-safer.
60980         * modules/savedir (Depends-on): Likewise.
60981         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
60982         * modules/chdir-long (Depends-on): Add openat-safer.
60984         openat-safer: new module
60985         * modules/openat-safer: New file.
60986         * lib/openat-safer.c: Likewise.
60987         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
60988         * lib/fcntl-safer.h (openat_safer): Declare.
60989         * lib/fcntl--.h (openat): Override.
60990         * MODULES.html.sh (File descriptor based I/O): Mention it.
60991         * lib/openat.h: Add double-inclusion guards.
60992         * lib/openat.c (includes): Only include "fcntl-safer.h", not
60993         "fcntl--.h", so we can implement openat.
60994         * modules/openat-safer-tests: New test.
60995         * tests/test-openat-safer.c: New file.
60997         dirent-safer: new module
60998         * modules/dirent-safer: New file.
60999         * lib/dirent--.h: Likewise.
61000         * lib/dirent-safer.h: Likewise.
61001         * lib/opendir-safer.c: Likewise.
61002         * m4/dirent-safer.m4: Likewise.
61003         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
61004         * modules/dirent-safer-tests: New test.
61005         * tests/test-dirent-safer.c: New file.
61006         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
61008         fdopendir: optimize on mingw
61009         * lib/unistd.in.h (_gl_directory_name): New prototype.
61010         * lib/fchdir.c (_gl_directory_name): Implement it.
61011         (fchdir): Use it to simplify implementation.
61012         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
61013         fchdir, when available, to avoid calling [f]chdir().
61015         fdopendir: split into its own module
61016         * lib/openat.c (fdopendir): Move...
61017         * lib/fdopendir.c: ...into new file.
61018         * modules/fdopendir: New module.
61019         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
61020         * modules/openat (Depends-on): Add fdopendir.
61021         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
61022         fdopendir here.
61023         * modules/savedir (Depends-on): Only need fdopendir, not full
61024         openat.
61025         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
61026         * lib/openat.h (fdopendir): Drop prototype.
61027         * lib/dirent.in.h (fdopendir): Provide prototype.
61028         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
61029         * modules/dirent (Makefile.am): Substitute them.
61030         * MODULES.html.sh (File system functions): Mention it.
61031         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
61032         * modules/fdopendir-tests: New file.
61033         * tests/test-fdopendir.c: Likewise.
61035         fchdir: use more consistent macro convention
61036         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
61037         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
61038         REPLACE_FCHDIR, rather than relying on config.h macros.
61039         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
61040         inside a single make-time REPLACE_FCHDIR block, rather than using
61041         the config.h FCHDIR_REPLACEMENT.
61042         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
61043         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
61044         Manage fstat replacement.
61045         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
61046         REPLACE_FCHDIR.
61047         * modules/sys_stat (Files): Add m4/unistd_h.m4.
61048         (Makefile.am): Substitute REPLACE_FCHDIR.
61049         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
61050         FCHDIR_REPLACEMENT.
61051         * lib/dup-safer.c (dup_safer): Likewise.
61052         * lib/dup2.c (rpl_dup2): Likewise.
61053         * lib/dup3.c (rpl_dup3): Likewise.
61054         * lib/open.c (rpl_open): Likewise.
61056         fchdir: simplify error handling, and support dup3
61057         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
61058         stdbool, malloc-posix, realloc-posix.
61059         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
61060         (ensure_dirs_slot): Return false on allocation failure.
61061         (rpl_dup2): Delete.
61062         (_gl_register_dup): New function.
61063         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
61064         (_gl_register_fd): Close fd on allocation failure.
61065         * lib/fcntl.in.h (_gl_register_fd): Update signature.
61066         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
61067         prototype.
61068         (rpl_dup2_fchdir): Delete prototype.
61069         * lib/open.c (open): Update caller.
61070         * lib/dup2.c (dup2): Track fchdir metadata.
61071         * lib/dup3.c (dup3): Likewise.
61072         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
61073         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
61075 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61077         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
61078         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
61079         don't pass arguments to AC_OUTPUT.
61081 2009-09-02  Bruno Haible  <bruno@clisp.org>
61083         * modules/mkdtemp (License): Relicense under LGPLv2+.
61084         Reported by Paolo Bonzini.
61086 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61088         Replace uses of obsolete autoconf macros in Jim's modules.
61089         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
61090         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
61091         can evoke a warning from autoconf when run with -Wobsolete
61092         enabled.  They were declared obsolete for good reasons (see
61093         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
61094         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
61095         should not continue using the deprecated macros.
61096         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
61097         obsolete Autoconf macros with modern counterparts.
61098         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
61099         * m4/dos.m4 (gl_AC_DOS): Likewise.
61100         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
61101         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
61102         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
61103         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
61104         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
61105         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
61106         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
61107         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
61108         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
61109         Likewise.
61110         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
61111         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
61112         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
61113         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
61114         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
61115         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
61117 2009-09-01  Eric Blake  <ebb9@byu.net>
61119         fchdir: fix off-by-one bug in previous patch
61120         * lib/fchdir.c (rpl_fstat): Use correct bounds.
61121         (_gl_unregister_fd): Delete useless if.
61123 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
61125         maint.mk: sort the list of syntax-check rules
61126         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
61127         easier to get a sense of progress when the rules are run sequentially
61128         and take a long time.
61130 2009-09-01  Simon Josefsson  <simon@josefsson.org>
61132         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
61133         * modules/netinet_in: Likewise.
61134         * modules/sys_file: Likewise.
61135         * modules/sys_ioctl: Likewise.
61136         * modules/sys_select: Likewise.
61137         * modules/sys_socket: Likewise.
61138         * modules/sys_stat: Likewise.
61139         * modules/sys_time: Likewise.
61140         * modules/sys_times: Likewise.
61141         * modules/sys_utsname: Likewise.
61142         * modules/sys_wait: Likewise.
61144 2009-09-01  Jim Meyering  <meyering@redhat.com>
61146         fts: help ensure that return values are not ignored
61147         * lib/fts_.h (__GNUC_PREREQ): Define.
61148         (__attribute_warn_unused_result__): Define.
61149         (fts_children, fts_close, fts_open, fts_read): Declare with
61150         __attribute_warn_unused_result__.
61152         fts: fts_close now fails also when closing a dir file descriptor fails
61153         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
61154         and propagate to caller, along with errno.
61156         announce-gen: correct formatting in --help output
61157         * build-aux/announce-gen (usage): Move the one-line description in
61158         --help output "up", to where it belongs, just after Usage:.
61160 2009-08-31  Eric Blake  <ebb9@byu.net>
61162         fchdir: port to mingw
61163         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
61164         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
61165         opened, then use a substitute.
61166         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
61167         replacement.
61168         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
61169         (_gl_register_fd): No need to check stat if open already filters
61170         all directories.
61171         (fchdir): Fix error condition to match POSIX.
61172         * modules/fchdir (Depends-on): Add sys_stat.
61173         * doc/posix-functions/open.texi (open): Document the limitation.
61174         * modules/fchdir-tests: New file.
61175         * tests/test-fchdir.c: Likewise.
61177         canonicalize: allow cross-testing from cygwin to mingw
61178         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
61179         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
61180         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
61181         Likewise.
61182         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
61183         target does not support symlinks.
61184         * tests/test-canonicalize-lgpl.sh: Likewise.
61186         chown: avoid compilation warning on mingw
61187         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
61188         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
61189         mingw.
61190         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
61191         * modules/chown (Depends-on): Add errno.
61193 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
61195         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
61196         command.
61198 2009-08-31  Jim Meyering  <meyering@redhat.com>
61200         canonicalize: remove useless initialization
61201         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
61202         initialization of local, "end".
61204 2009-08-30  Bruno Haible  <bruno@clisp.org>
61206         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
61207         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
61208         ENOSYS.
61210 2009-08-30  Bruno Haible  <bruno@clisp.org>
61212         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
61213         /usr/xpg4/bin/tr when it exists.
61214         * tests/test-pipe-filter-gi1.sh: Likewise.
61216 2009-08-30  Bruno Haible  <bruno@clisp.org>
61218         Work around deficient /usr/bin/id program on Solaris.
61219         * tests/test-file-has-acl.sh (ID): New variable.
61220         * tests/test-set-mode-acl.sh (ID): Likewise.
61221         * tests/test-copy-acl.sh (ID): Likewise.
61222         * tests/test-copy-file.sh (ID): Likewise.
61224 2009-08-30  Bruno Haible  <bruno@clisp.org>
61226         New module 'xstriconveh'.
61227         * lib/xstriconveh.h: New file.
61228         * lib/xstriconveh.c: New file.
61229         * modules/xstriconveh: New file.
61231 2009-08-30  Bruno Haible  <bruno@clisp.org>
61233         Make it easier to use mem_cd_iconveh.
61234         * lib/striconveh.h (iconveh_t): New type.
61235         (iconveh_open, iconveh_close): New declarations.
61236         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
61237         with a single 'const iconveh_t *' argument.
61238         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
61239         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
61240         with a single 'const iconveh_t *' argument.
61241         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
61242         * tests/test-striconveh.c (main): Update.
61243         * NEWS: Mention the change.
61245 2009-08-30  Bruno Haible  <bruno@clisp.org>
61247         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
61248         problem.
61250 2009-08-30  Bruno Haible  <bruno@clisp.org>
61252         Work around iconv_open problem on Solaris.
61253         * lib/iconv_open-solaris.gperf: New file.
61254         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
61255         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
61256         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
61257         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
61258         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
61259         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
61261 2009-08-29  Jim Meyering  <meyering@redhat.com>
61263         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
61264         * top/maint.mk (cvs-check): Remove target; it was just an alias
61265         to the better-named vc-diff-check.
61266         (maintainer-distcheck): Remove rule.  It was used only from
61267         the (alpha/beta/major) target, and all of its commands but one
61268         were coreutils-specific.
61269         (vc-dist): Remove rule.
61270         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
61271         Run vc-diff-check, not vc-dist.
61272         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
61274 2009-08-27  Bruno Haible  <bruno@clisp.org>
61276         * tests/test-bitrotate.c (main): Remove test that uses a shift count
61277         of 0.
61279 2009-08-27  Bruno Haible  <bruno@clisp.org>
61281         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
61282         compilers.
61283         * doc/func.texi: Document the SunPRO C bug.
61285 2009-08-27  Bruno Haible  <bruno@clisp.org>
61287         Fix link error on Solaris.
61288         * tests/test-parse-duration.c (xstrdup): Remove function.
61290 2009-08-26  Pádraig Brady  <P@draigbrady.com>
61292         ignore-value: handle pointer types, too
61293         * lib/ignore-value.h (__attribute__): Remove definition.
61294         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
61295         of a more concise and more-often effective "(void) i" statement.
61296         (ignore_ptr): New function to suppress warnings from functions that
61297         return pointers, and to make it explicit that one function doesn't
61298         handle all cases.
61300 2009-08-25  Bruno Haible  <bruno@clisp.org>
61302         dup2: work around a Linux bug.
61303         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
61304         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
61305         * doc/posix-functions/dup2.texi: Mention the Linux bug.
61306         Reported by Simon Josefsson.
61308 2009-08-25  Jim Meyering  <meyering@redhat.com>
61310         libguestfs uses gnulib
61311         * users.txt: Add libguestfs.
61313 2009-08-24  Eric Blake  <ebb9@byu.net>
61315         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
61316         * lib/pipe2.c (includes): Add binary-io.h.
61317         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
61319 2009-08-24  Bruno Haible  <bruno@clisp.org>
61321         Tolerate declared but missing accept4 syscall.
61322         * lib/accept4.c (accept4): Invoke original accept4 function first, if
61323         available.
61324         * lib/sys_socket.in.h (accept4): If the function is already present,
61325         override it.
61326         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
61327         * modules/accept4 (Makefile.am): Compile accept4.c always.
61328         Reported by Paolo Bonzini and Eric Blake.
61330 2009-08-23  Bruno Haible  <bruno@clisp.org>
61332         New module 'accept4'.
61333         * lib/sys_socket.in.h (accept4): New declaration.
61334         * lib/accept4.c: New file.
61335         * m4/accept4.m4: New file.
61336         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
61337         GNULIB_ACCEPT4, HAVE_ACCEPT4.
61338         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
61339         HAVE_ACCEPT4.
61340         * modules/accept4: New file.
61341         * doc/glibc-functions/accept4.texi: Mention the new module.
61343 2009-08-24  Jim Meyering  <meyering@redhat.com>
61345         progname: also set global program_invocation_name, when possible
61346         Before this change, a libtool-enabled program that calls glibc's
61347         error function would report the program name as
61348         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
61349         * modules/progname (configure.ac): Check for a declaration of
61350         program_invocation_name.
61351         * lib/progname.c:  Include <errno.h>.
61352         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
61353         Set program_invocation_name.
61355 2009-08-23  Bruno Haible  <bruno@clisp.org>
61357         * lib/dup3.c: Include <string.h>.
61359 2009-08-23  Bruno Haible  <bruno@clisp.org>
61361         * lib/dup3.c (dup3): Test only once whether the system actually exists.
61362         * lib/pipe2.c (pipe2): Likewise.
61363         Suggested by Eric Blake.
61365 2009-08-23  Bruno Haible  <bruno@clisp.org>
61367         Tolerate declared but missing dup3 syscall.
61368         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
61369         * lib/unistd.in.h (dup3): If the function is already present,
61370         override it.
61371         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
61372         * modules/dup3 (Makefile.am): Compile dup3.c always.
61373         Reported by Paolo Bonzini.
61375 2009-08-23  Bruno Haible  <bruno@clisp.org>
61377         Tolerate declared but missing pipe2 syscall.
61378         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
61379         available.
61380         * lib/unistd.in.h (pipe2): If the function is already present,
61381         override it.
61382         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
61383         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
61384         Reported by Paolo Bonzini.
61386 2009-08-23  Bruno Haible  <bruno@clisp.org>
61388         * lib/pipe2.c (pipe2): Move #ifs inside function.
61390 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
61392         quotearg: document limitations of quote_these_too
61393         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
61394         those limitations are created.
61395         * lib/quotearg.h (set_char_quoting): Document that digits and
61396         letters that are special after backslash are not permitted.
61397         (quotearg_char): Cross-reference set_char_quoting documentation.
61399 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
61401         quotearg: implement custom_quoting_style
61402         * lib/quotearg.c: (struct quoting_options): Add left_quote and
61403         right_quote fields.
61404         (set_custom_quoting): New public function.
61405         (quotearg_buffer_restyled): Add left_quote and right_quote
61406         arguments, handle them very much like locale quoting, and update
61407         all uses.
61408         (quotearg_n_custom): New public function.
61409         (quotearg_n_custom_mem): New public function.
61410         (quotearg_custom): New public function.
61411         (quotearg_custom_mem): New public function.
61412         * lib/quotearg.h: Prototype and document new public functions.
61413         (enum quoting_style): For escape_quoting_style and
61414         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
61415         ignored even though they're otherwise like c_quoting_style.
61416         Add custom_quoting_style member and document with comparison to
61417         clocale_quoting_style.
61418         * tests/test-quotearg.c (custom_quotes): New array.
61419         (custom_results): New array.
61420         (main): Extend to test custom quoting.
61422 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
61424         quotearg: fix right quote escaping when it's in quote_these_too
61425         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
61426         quote, be sure to prepend only one backslash.
61427         * tests/test-quotearg.c (use_quote_double_quotes): New function.
61428         (main): Test it.
61430 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
61432         quotearg-tests: test escaping of embedded locale quotes
61433         * tests/test-quotearg.c (struct result_strings): Add member for
61434         new input.
61435         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
61436         (inputs): Add new input.
61437         (results_g): Add expected results.
61438         (flag_results): Likewise.
61439         (locale_results): Likewise.
61440         (compare_strings): Check those.
61442 2009-08-23  Bruno Haible  <bruno@clisp.org>
61444         Tests for module 'dup3'.
61445         * modules/dup3-tests: New file.
61446         * tests/test-dup3.c: New file.
61448         New module 'dup3'.
61449         * lib/unistd.in.h (dup3): New declaration.
61450         * lib/dup3.c: New file.
61451         * m4/dup3.m4: New file.
61452         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
61453         HAVE_DUP3.
61454         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
61455         * modules/dup3: New file.
61456         * doc/glibc-functions/dup3.texi: Mention the new module.
61458 2009-08-23  Bruno Haible  <bruno@clisp.org>
61460         Tweak the dup2 test.
61461         * tests/test-dup2.c (main): Create the test file empty. Verify that an
61462         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
61463         the test file is still empty. Fix argument order of lseek.
61465 2009-08-23  Bruno Haible  <bruno@clisp.org>
61467         Avoid test link errors when the modules getopt-gnu, gettext are used.
61468         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
61469         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
61471 2009-08-23  Bruno Haible  <bruno@clisp.org>
61473         Fix getdtablesize() on mingw.
61474         * lib/getdtablesize.c (getdtablesize): Implement differently.
61475         * lib/unistd.in.h (getdtablesize): Improve comment.
61477 2009-08-23  Bruno Haible  <bruno@clisp.org>
61479         New module 'mkostemp'.
61480         Based on Ulrich Drepper's 2007-08-10 change in glibc.
61481         * lib/stdlib.in.h (mksotemp): New declaration.
61482         * lib/mkostemp.c: New file, from glibc with modifications.
61483         * lib/tempname.h (GT_FILE): Remove outdated comment.
61484         (gen_tempname): Add flags argument.
61485         * lib/tempname.c (__GT_BIGFILE): Remove macro.
61486         (__GT_FILE): Map to 1.
61487         (small_open, large_open): Remove macros.
61488         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
61489         * lib/mkstemp.c (mkstemp): Update.
61490         * lib/mkdtemp.c (mkdtemp): Likewise.
61491         * m4/mkostemp.m4: New file.
61492         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
61493         HAVE_MKOSTEMP.
61494         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
61495         HAVE_MKOSTEMP.
61496         * modules/mkostemp: New file, based on modules/mkstemp.
61497         * doc/glibc-functions/mkostemp.texi: Mention the new module.
61498         * NEWS: Mention the change.
61500 2009-08-23  Bruno Haible  <bruno@clisp.org>
61502         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
61503         Reported by Eric Blake.
61505 2009-08-23  Bruno Haible  <bruno@clisp.org>
61507         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
61508         Reported by Eric Blake.
61510 2009-08-23  Bruno Haible  <bruno@clisp.org>
61512         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
61513         * modules/pipe2 (Depends-on): Likewise.
61515 2009-08-23  Eric Blake  <ebb9@byu.net>
61517         fcntl-h: add O_TTY_INIT support
61518         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
61519         * tests/test-fcntl-h.c (o): Test it.
61520         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
61522         fcntl-h: rename from fcntl, in preparation for fcntl(2)
61523         * modules/fcntl: Move <fcntl.h> header replacement...
61524         * modules/fcntl-h: ...to new name, so as not to collide with
61525         like-named function.
61526         * tests/test-fcntl.c: Rename...
61527         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
61528         * modules/fcntl-tests: Rename...
61529         * modules/fcntl-h-tests: ...to this.  Update test file name.
61530         * modules/chdir-long (Depends-on): Update clients.
61531         * modules/chdir-safer (Depends-on): Likewise.
61532         * modules/fcntl-safer (Depends-on): Likewise.
61533         * modules/fts (Depends-on): Likewise.
61534         * modules/mkancesdirs (Depends-on): Likewise.
61535         * modules/mkdir-p (Depends-on): Likewise.
61536         * modules/open (Depends-on): Likewise.
61537         * modules/savewd (Depends-on): Likewise.
61538         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
61539         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
61541 2009-08-22  Bruno Haible  <bruno@clisp.org>
61543         * modules/binary-io (License): Relicense under LGPL.
61544         * modules/pipe2 (License): Likewise.
61546 2009-08-22  Bruno Haible  <bruno@clisp.org>
61548         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
61549         return value.
61550         * lib/pipe-filter-gi.c (filter_init): Likewise.
61551         Reported by Eric Blake.
61553 2009-08-22  Bruno Haible  <bruno@clisp.org>
61555         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
61556         * modules/pipe (Depends-on): Add pipe2.
61558 2009-08-22  Bruno Haible  <bruno@clisp.org>
61560         Tests for module 'pipe2'.
61561         * modules/pipe2-tests: New file.
61562         * tests/test-pipe2.c: New file.
61564         New module 'pipe2'.
61565         * lib/unistd.in.h (pipe2): New declaration.
61566         * lib/pipe2.c: New file.
61567         * m4/pipe2.m4: New file.
61568         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
61569         HAVE_PIPE2.
61570         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
61571         * modules/pipe2: New file.
61572         * doc/glibc-functions/pipe2.texi: Mention the new module.
61574 2009-08-22  Bruno Haible  <bruno@clisp.org>
61576         Reference some new glibc functions.
61577         * doc/glibc-functions/accept4.texi: New file.
61578         * doc/glibc-functions/dup3.texi: New file.
61579         * doc/glibc-functions/mkostemp.texi: New file.
61580         * doc/glibc-functions/pipe2.texi: New file.
61581         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
61582         (Glibc sys/socket.h): Refer to accept4.
61583         (Glibc unistd.h): Refer to dup3, pipe2.
61584         Reported by Eric Blake.
61586 2009-08-22  Jim Meyering  <meyering@redhat.com>
61587             Bruno Haible  <bruno@clisp.org>
61589         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
61590         This makes it so packages using automake-1.11's silent-rules option
61591         can print e.g., a single "GEN    configmake.h" line, rather than
61592         the 30+ statements that perform the job.  If you want to see the
61593         actual commands, you can still run "make V=1".
61594         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
61595         so that make output is abbreviated when those variables are defined
61596         appropriately.
61597         * modules/argz: Likewise.
61598         * modules/arpa_inet: Likewise.
61599         * modules/byteswap: Likewise.
61600         * modules/configmake: Likewise.
61601         * modules/dirent: Likewise.
61602         * modules/errno: Likewise.
61603         * modules/fcntl: Likewise.
61604         * modules/float: Likewise.
61605         * modules/fnmatch: Likewise.
61606         * modules/getopt-posix: Likewise.
61607         * modules/glob: Likewise.
61608         * modules/iconv_open: Likewise.
61609         * modules/inttypes: Likewise.
61610         * modules/localcharset: Likewise.
61611         * modules/locale: Likewise.
61612         * modules/math: Likewise.
61613         * modules/netdb: Likewise.
61614         * modules/netinet_in: Likewise.
61615         * modules/poll: Likewise.
61616         * modules/posix_spawnp-tests: Likewise.
61617         * modules/sched: Likewise.
61618         * modules/search: Likewise.
61619         * modules/selinux-h: Likewise.
61620         * modules/signal: Likewise.
61621         * modules/spawn: Likewise.
61622         * modules/stdarg: Likewise.
61623         * modules/stdbool: Likewise.
61624         * modules/stddef: Likewise.
61625         * modules/stdint: Likewise.
61626         * modules/stdio: Likewise.
61627         * modules/stdlib: Likewise.
61628         * modules/string: Likewise.
61629         * modules/strings: Likewise.
61630         * modules/sys_file: Likewise.
61631         * modules/sys_ioctl: Likewise.
61632         * modules/sys_select: Likewise.
61633         * modules/sys_socket: Likewise.
61634         * modules/sys_stat: Likewise.
61635         * modules/sys_time: Likewise.
61636         * modules/sys_times: Likewise.
61637         * modules/sys_utsname: Likewise.
61638         * modules/sys_wait: Likewise.
61639         * modules/sysexits: Likewise.
61640         * modules/time: Likewise.
61641         * modules/unistd: Likewise.
61642         * modules/wchar: Likewise.
61643         * modules/wctype: Likewise.
61645 2009-08-22  Jim Meyering  <meyering@redhat.com>
61647         announce-gen: detect write failure
61648         * build-aux/announce-gen: Add Coda at end.
61649         Remove equivalent-but-more-verbose block at top.
61651 2009-08-19  Akim Demaille  <demaille@gostai.com>
61653         bootstrap: --help to stdout.
61654         * bootstrap (usage): Don't send --help to stderr.
61655         Use a here doc instead of a long string.
61657 2009-08-21  Eric Blake  <ebb9@byu.net>
61659         test-popen-safer: split from test-popen
61660         * tests/test-popen.c (main): Move...
61661         * tests/test-popen.h: ...into new file.
61662         * tests/test-popen-safer2.c: New file.
61663         * modules/popen-tests (Files): Add test-popen.h.
61664         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
61665         Suggested by Bruno Haible.
61667         test-fcntl-safer: split from test-open
61668         * tests/test-open.c (main): Move...
61669         * tests/test-open.h: ...into new file.
61670         * tests/test-fcntl-safer.c: New file.
61671         * modules/open-tests (Files): Add test-open.h.
61672         * modules/fcntl-safer-tests: New file.
61673         Suggested by Bruno Haible.
61675         test-fopen-safer: split from test-fopen
61676         * tests/test-fopen.c (main): Move...
61677         * tests/test-fopen.h: ...into new file.
61678         * tests/test-fopen-safer.c: New file.
61679         * modules/fopen-tests (Files): Add test-fopen.h.
61680         * modules/fopen-safer-tests: New file.
61681         Suggested by Bruno Haible.
61683 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
61685         popen-safer: test O_CLOEXEC at run-time.
61686         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
61688 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
61690         fcntl: move more flags to the header
61691         * lib/cloexec.c: Do not define FD_CLOEXEC here.
61692         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
61693         * lib/fcntl.in.h: Do both things here.
61695 2009-08-21  Jim Meyering  <meyering@redhat.com>
61697         consistently remove $@-t before redirecting to it
61698         * modules/argz: Remove $@-t and $@ before redirecting to the former.
61699         * modules/alloca-opt: Likewise.
61700         * modules/byteswap: Likewise.
61701         * modules/fnmatch: Likewise.
61702         * modules/getopt-posix: Likewise.
61703         * modules/glob: Likewise.
61704         * modules/poll: Likewise.
61705         * modules/posix_spawnp-tests: Likewise.
61706         * modules/sys_socket: Likewise.
61707         * modules/sysexits: Likewise.
61709 2009-08-21  Eric Blake  <ebb9@byu.net>
61711         popen: simplify access to original popen
61712         * lib/popen.c (rpl_popen): No need to worry about popen being a
61713         macro.
61714         Reported by Bruno Haible.
61716 2009-08-20  Eric Blake  <ebb9@byu.net>
61718         build: avoid some compiler warnings
61719         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
61720         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
61721         type.
61722         (new_exclude_segment, excluded_file_pattern_p)
61723         (excluded_file_name_p): Reduce scope.
61724         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
61725         old-style declaration.
61727 2009-08-20  Simon Josefsson  <simon@josefsson.org>
61729         * tests/test-exclude1.sh: Handle Windows EOL.
61730         * tests/test-exclude2.sh: Likewise.
61731         * tests/test-exclude3.sh: Likewise.
61732         * tests/test-exclude4.sh: Likewise.
61733         * tests/test-exclude5.sh: Likewise.
61734         * tests/test-exclude6.sh: Likewise.
61735         * tests/test-exclude7.sh: Likewise.
61737 2009-08-19  Akim Demaille  <demaille@gostai.com>
61739         bootstrap: find sha1sum when named gsha1sum.
61740         * bootstrap (find_tool): New.
61741         ($SHA1SUM): New.
61742         Use it.
61744 2009-08-20  Jim Meyering  <meyering@redhat.com>
61746         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
61747         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
61748         expression that converts "." in a file name to "\." in the resulting
61749         regexp.  Start with a dummy statement, so that prior shell variable
61750         definitions are expanded portably.  Reported by Simon Josefsson.
61752 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
61754         Fix polling for writeability of a screen buffer.
61755         * lib/poll.c: Distinguish input and screen buffers for the
61756         Win32 implementation.
61757         * lib/select.c: Likewise.
61759 2009-08-19  Eric Blake  <ebb9@byu.net>
61761         popen-safer: prevent popen from clobbering std descriptors
61762         * modules/popen-safer: New file.
61763         * lib/popen-safer.c: Likewise.
61764         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
61765         * lib/stdio--.h (popen): Provide override.
61766         * lib/stdio-safer.h (popen_safer): Provide declaration.
61767         * tests/test-popen.c (includes): Partially test this.
61768         * modules/popen-safer-tests: New file, for more tests.
61769         * tests/test-popen-safer.c: Likewise.
61770         * MODULES.html.sh (file stream based Input/Output): Mention it.
61772         tests: test some of the *-safer modules
61773         * modules/fopen-safer (Depends-on): Add fopen.
61774         * modules/fcntl-safer (Depends-on): Add fcntl.
61775         * modules/stdlib-safer (Depends-on): Add stdlib.
61776         (configure.ac): Set indicator.
61777         * modules/unistd-safer (configure.ac): Likewise.
61778         * modules/tmpfile-safer (configure.ac): Likewise.
61779         (Depends-on): Add tmpfile.
61780         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
61781         active.
61782         * tests/test-fopen.c (includes): Test safer versions when they are
61783         in use.
61784         * tests/test-open.c (includes): Likewise.
61786         popen: fix cygwin 1.5 bug when stdin closed
61787         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
61788         * modules/popen: New file.
61789         * modules/popen-tests: Likewise.
61790         * tests/test-popen.c: Likewise.
61791         * m4/popen.m4: Likewise.
61792         * lib/popen.c: Likewise.
61793         * lib/stdio.in.h (popen): New declaration.
61794         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
61795         * modules/stdio (Makefile.am): Likewise.
61796         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
61798 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
61800         maint.mk: give full control over update-copyright exclusions
61801         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
61802         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
61803         (update-copyright): Don't force inclusion of top-level
61804         ChangeLog.  Don't force exclusion of all COPYING files, but make
61805         them the default exclusion instead.
61807 2009-08-16  Bruno Haible  <bruno@clisp.org>
61809         Fix test failures on Solaris 10.
61810         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
61811         tests when Solaris iconv() is used.
61812         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
61813         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
61814         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
61815         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
61816         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
61818 2009-08-16  Bruno Haible  <bruno@clisp.org>
61820         Fix test failures on Solaris 10.
61821         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
61822         'tr' program and pass it as first argument.
61823         * tests/test-pipe-filter-gi1.sh: Likewise.
61824         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
61825         program as first argument.
61826         * tests/test-pipe-filter-gi1.c (main): Likewise.
61828 2009-08-16  Eric Blake  <ebb9@byu.net>
61830         fpurge: fix previous commits
61831         * modules/fpurge (Makefile.am): Make replacement conditional,
61832         partially reverting 2007-04-29 change; missed in previous
61833         attempt.
61834         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
61835         is missing.
61837 2009-08-16  Bruno Haible  <bruno@clisp.org>
61839         Clarify fpurge's effect on the file position.
61840         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
61841         * tests/test-fpurge.c (main): Make a second pass for checking the file
61842         position.
61844 2009-08-16  Bruno Haible  <bruno@clisp.org>
61846         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
61847         declaration of fpurge is missing.
61848         * tests/test-fpurge.c (main): Check that the file has not more contents
61849         than expected. Close the file before removing it.
61851 2009-08-15  Eric Blake  <ebb9@byu.net>
61853         fpurge: don't wrap working cygwin implementation
61854         * lib/fpurge.c (fpurge): Fix comment typo.
61855         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
61856         1.7 to avoid replacement.
61857         * tests/test-fpurge.c (main): Enhance test.
61859 2009-08-15  Eric Blake  <ebb9@byu.net>
61860         and Jim Meyering  <meyering@redhat.com>
61862         test-update-copyright: skip if perl is insufficient
61863         * tests/test-update-copyright.sh: Failure to run maintainer tool
61864         should not cause testsuite failure on cygwin 1.5.
61866 2009-08-14  Eric Blake  <ebb9@byu.net>
61868         doc: mention more functions added in cygwin 1.7.0
61869         * doc/posix-headers/limits.texi (limits.h): Update for recent
61870         cygwin additions.
61871         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
61872         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
61873         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
61874         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
61875         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
61877 2009-08-14  Eric Blake  <ebb9@byu.net>
61879         maint.mk: simplify update-copyright rule
61880         * top/maint.mk (update-copyright-local): Delete, and document how
61881         to do it in cfg.mk instead.
61882         (update-copyright-exclude-regexp): Delete, and document how to do
61883         it in .x-update-copyright instead.
61884         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
61885         exclude ChangeLog.
61887 2009-08-14  Bruno Haible  <bruno@clisp.org>
61889         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
61891 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
61893         maint.mk: support update-copyright-env
61894         * top/maint.mk (update-copyright-env): Define place-holder.
61895         (update-copyright): Expand $(update-copyright-env) before
61896         invoking update-copyright.
61898 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
61900         update-copyright: implement forced reformatting
61901         * build-aux/update-copyright: Implement and document
61902         UPDATE_COPYRIGHT_FORCE.
61903         * tests/test-update-copyright.sh: Test it.
61905 2009-08-14  Eric Blake  <ebb9@byu.net>
61906         and Bruno Haible  <bruno@clisp.org>
61908         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
61909         * tests/test-locale.c: Revert previous patch related to NULL.
61910         * tests/test-stdio.c: Likewise.
61911         * tests/test-stdlib.c: Likewise.
61912         * tests/test-string.c: Likewise.
61913         * tests/test-unistd.c: Likewise.
61914         * modules/time-tests (Depends-on): Add verify.
61915         * modules/wchar-tests (Depends-on): Likewise.
61916         * tests/test-time.c: Test for NULL compliance.
61917         * tests/test-wchar.c: Likewise.
61918         * modules/locale (Depends-on): Add stddef.
61919         * modules/stdio (Depends-on): Likewise.
61920         * modules/stdlib (Depends-on): Likewise.
61921         * modules/string (Depends-on): Likewise.
61922         * modules/time (Depends-on): Likewise.
61923         * modules/unistd (Depends-on): Likewise.
61924         * modules/wchar (Depends-on): Likewise.
61925         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
61926         * lib/stdlib.in.h (includes): Likewise.
61927         * lib/string.in.h (includes): Likewise.
61928         * lib/time.in.h (includes): Likewise.
61929         * lib/unistd.in.h (includes): Likewise.
61930         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
61931         replaced.
61932         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
61933         * m4/stddef_h.m4: New file.
61934         * modules/stddef: Likewise.
61935         * lib/stddef.in.h: Likewise.
61936         * modules/stddef-tests: Likewise.
61937         * tests/test-stddef.c: Likewise.
61938         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
61939         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
61940         * doc/posix-headers/locale.texi (locale.h): Likewise.
61941         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
61942         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
61943         * doc/posix-headers/string.texi (string.h): Likewise.
61944         * doc/posix-headers/time.texi (time.h): Likewise.
61945         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
61946         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
61948 2009-08-14  Eric Blake  <ebb9@byu.net>
61950         doc: improve git diff of texinfo files
61951         * .gitattributes: Add rule for *.texi files, with hint on how to
61952         use it.
61953         Copied from m4, and based on a report by Bruno Haible.
61955 2009-08-14  Bruno Haible  <bruno@clisp.org>
61957         Disable multithread support by default on Cygwin 1.5.x for real.
61958         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
61960 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
61962         update-copyright: much ado about intervals
61963         * build-aux/update-copyright: Implement and document
61964         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
61965         of copyright year intervals.
61966         Also, document UPDATE_COPYRIGHT_YEAR.
61967         * tests/test-update-copyright.sh: Test it.
61969         update-copyright: convert 2-digit to 4-digit years
61970         * build-aux/update-copyright: Implement and document.
61971         * tests/test-update-copyright.sh: Update.
61973 2009-08-14  Jim Meyering  <meyering@redhat.com>
61975         test-exclude: avoid coreutils "make check" failure
61976         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
61977         just as in test-argmatch.c.
61979 2009-08-13  Eric Blake  <ebb9@byu.net>
61981         test-dup2: fix bad assumption
61982         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
61983         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
61985         test-version-etc: fix CRLF portability issue
61986         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
61987         recognize \r.
61988         * tests/test-argp-version-etc-1.sh: Likewise.
61990         getopt: update client modules
61991         * modules/argp (Depends-on): Use getopt-gnu.
61992         * modules/git-merge-changelog (Depends-on): Likewise.
61993         * modules/long-options (Depends-on): Likewise.
61994         * modules/xstrtol (Depends-on): Likewise.
61996 2009-08-13  Simon Josefsson  <simon@josefsson.org>
61998         * tests/test-version-etc.sh: Don't fail on different
61999         project/version.  Don't fail on CRLF differences.  Rewrite to use
62000         multiple -e instead of multiple sed forks, suggested by Eric Blake
62001         <ebb9@byu.net>.
62002         * tests/test-argp-version-etc-1.sh: Likewise.
62004 2009-08-13  Simon Josefsson  <simon@josefsson.org>
62006         * tests/test-version-etc.sh: Don't fail on different
62007         project/version.
62009 2009-08-12  Bruno Haible  <bruno@clisp.org>
62011         Tests for modules 'getopt-posix', 'getopt-gnu'.
62012         * modules/getopt-posix-tests: New file.
62013         * tests/test-getopt.c: New file.
62014         * tests/test-getopt.h: New file.
62015         * tests/test-getopt_long.h: New file.
62017         New modules 'getopt-posix', 'getopt-gnu'.
62018         * modules/getopt-gnu: New file, renamed from modules/getopt.
62019         * modules/getopt-posix: New file.
62020         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
62021         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
62022         (gl_GETOPT): Remove macro.
62023         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
62024         Disable the test against BSD systems that declare optreset. Test
62025         against mingw bug. Test against lack of support of optional arguments
62026         on many platforms.
62027         * doc/glibc-headers/getopt.texi: Update module name and list of
62028         relevant platforms.
62029         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
62030         'getopt-gnu' and more portability problems.
62031         * NEWS: Mention the changes.
62033 2009-08-12  Bruno Haible  <bruno@clisp.org>
62035         Ensure that optarg etc. get declared by <unistd.h>.
62036         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
62037         AC_USE_SYSTEM_EXTENSIONS.
62038         * modules/getopt (Depends-on): Add 'extensions'.
62040 2009-08-12  Bruno Haible  <bruno@clisp.org>
62042         Avoid test link errors.
62043         * modules/pipe-filter-ii-tests (Makefile.am): Define
62044         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
62045         * modules/pipe-filter-gi-tests (Makefile.am): Define
62046         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
62047         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
62049 2009-08-12  Bruno Haible  <bruno@clisp.org>
62051         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
62052         gl_GETOPT_SUBSTITUTE before.
62053         (gl_GETOPT): Use it.
62054         * m4/argp.m4 (gl_ARGP): Update.
62055         Reported by Sergey Poznyakoff.
62057         * m4/getopt.m4: Reorder macros.
62058         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
62059         (gl_GETOPT_SUBSTITUTE): Remove macro.
62061 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
62063         Minor improvement in gitlog-to-changelog
62065         * build-aux/gitlog-to-changelog: New option `--format' makes
62066         output format string configurable.
62068 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
62070         Optimize exclude: use hash tables for non-wildcard patterns.
62072         * lib/exclude.c: Include hash.h and mbuiter.h
62073         (struct exclude_pattern, exclude_segment): New data types.
62074         (struct exclude): Rewrite.
62075         (fnmatch_pattern_has_wildcards): New function.
62076         (new_exclude_segment, free_exclude_segment): New functions.
62077         (excluded_file_pattern_p, excluded_file_name_p): New functions.
62078         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
62079         * lib/exclude.h (is_fnmatch_pattern): New prototype.
62080         * modules/exclude: Depend on hash and mbuiter.
62082         * modules/exclude-tests: New file.
62083         * tests/test-exclude.c: New file.
62084         * tests/test-exclude1.sh: New file.
62085         * tests/test-exclude2.sh: New file.
62086         * tests/test-exclude3.sh: New file.
62087         * tests/test-exclude4.sh: New file.
62088         * tests/test-exclude5.sh: New file.
62089         * tests/test-exclude6.sh: New file.
62090         * tests/test-exclude7.sh: New file.
62092 2009-08-12  Bruno Haible  <bruno@clisp.org>
62094         Ensure that getopt() gets declared by <unistd.h>.
62095         * lib/unistd.in.h: Conditionally include getopt.h.
62096         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
62097         Set GNULIB_UNISTD_H_GETOPT.
62098         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
62099         GNULIB_UNISTD_H_GETOPT.
62100         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
62102 2009-08-12  Bruno Haible  <bruno@clisp.org>
62104         Clarify logic.
62105         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
62106         gl_replace_getopt instead of GETOPT_H.
62108 2009-08-12  Bruno Haible  <bruno@clisp.org>
62110         * m4/getopt.m4: Add comments.
62112 2009-08-12  Bruno Haible  <bruno@clisp.org>
62114         Disable multithread support by default on Cygwin 1.5.x.
62115         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
62116         set gl_use_threads=no if not specified otherwise.
62118 2009-08-11  Bruno Haible  <bruno@clisp.org>
62120         Avoid compilation error on NetBSD 5.0.
62121         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
62122         * tests/test-stdio.c: Likewise.
62123         * tests/test-stdlib.c: Likewise.
62124         * tests/test-string.c: Likewise.
62125         * tests/test-unistd.c: Likewise.
62126         Reported by Greg Troxel <gdt@ir.bbn.com>
62127         at <https://savannah.gnu.org/support/?106973>.
62129 2009-08-11  Bruno Haible  <bruno@clisp.org>
62131         * modules/dup2-tests (Depends-on): Remove close.
62133         Undo 2009-07-19 commit.
62134         * modules/acl-tests (Depends-on): Remove close.
62135         * modules/binary-io-tests (Depends-on): Likewise.
62136         * modules/closein-tests (Depends-on): Likewise.
62137         * modules/flock-tests (Depends-on): Likewise.
62138         * modules/fsync-tests (Depends-on): Likewise.
62139         * modules/lseek-tests (Depends-on): Likewise.
62140         * modules/pipe-tests (Depends-on): Likewise.
62141         * modules/posix_spawn-tests (Depends-on): Likewise.
62142         * modules/posix_spawnp-tests (Depends-on): Likewise.
62143         * modules/stat-time-tests (Depends-on): Likewise.
62144         * modules/yesno-tests (Depends-on): Likewise.
62146 2009-08-10  Bruno Haible  <bruno@clisp.org>
62148         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
62150 2009-08-10  Bruno Haible  <bruno@clisp.org>
62152         Fix a gcc warning.
62153         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
62155 2009-08-10  Bruno Haible  <bruno@clisp.org>
62157         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
62158         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
62159         not only the first time.
62160         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
62161         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
62162         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
62163         is 1, not only the first time.
62165 2009-08-10  Bruno Haible  <bruno@clisp.org>
62167         Make it possible to use module 'gethostname' without module 'close'.
62168         * lib/unistd.in.h (close): Evoke a link error only if
62169         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
62170         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
62171         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
62172         * modules/unistd (Makefile.am): Substitute
62173         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
62174         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
62175         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
62176         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
62177         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
62178         * modules/sys_ioctl (Makefile.am): Substitute
62179         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
62180         * modules/socket (configure.ac): On native Windows, set
62181         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
62182         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
62183         Reported by Sam Steingold <sds@gnu.org>.
62185 2009-08-10  Bruno Haible  <bruno@clisp.org>
62187         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
62188         * modules/ioctl (configure.ac): Likewise.
62190 2009-08-10  Bruno Haible  <bruno@clisp.org>
62192         Avoid collision between gnulib wrapper and libintl wrapper.
62193         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
62194         already defined in intl/printf.c.
62195         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
62196         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
62198 2009-08-09  Bruno Haible  <bruno@clisp.org>
62200         Make <sys/select.h> really self-contained, also on Solaris 10.
62201         * lib/sys_select.in.h: Include <string.h>.
62202         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
62203         Solaris 10 problem.
62204         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
62205         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
62206         Reported by Jim Meyering.
62208 2009-08-09  Bruno Haible  <bruno@clisp.org>
62210         Avoid warnings from 'aclocal' that are due to a use of macro name
62211         AM_XGETTEXT_OPTION that is not defined in automake.
62212         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
62213         automake.
62214         * modules/error (configure.ac): Likewise.
62215         * modules/propername (configure.ac): Likewise.
62216         * modules/vasprintf (configure.ac): Likewise.
62217         * modules/verror (configure.ac): Likewise.
62218         * modules/xprintf (configure.ac): Likewise.
62219         * modules/xvasprintf (configure.ac): Likewise.
62221 2009-08-08  Bruno Haible  <bruno@clisp.org>
62223         Avoid compilation error in C++ mode.
62224         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
62225         Reported by Sam Steingold <sds@gnu.org>.
62227 2009-08-08  Bruno Haible  <bruno@clisp.org>
62229         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
62230         for the various Unix platforms.
62231         * doc/posix-headers/limits.texi: Update platforms list regarding
62232         HOST_NAME_MAX.
62233         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
62235 2009-08-07  Jim Meyering  <meyering@redhat.com>
62237         selinux-at: fix typo in a comment
62238         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
62239         Spotted by Paolo Bonzini.
62241         selinux-at: remove redundant m4 code, add documentation
62242         * modules/selinux-at (configure.ac): Remove redundant code.
62243         LIB_SELINUX is already set via the dependent module, selinux-h.
62244         (Include): Add quotes around selinux-at.h.
62245         * lib/selinux-at.h: Add documentation.
62246         Reported by Bruno Haible in
62247         http://marc.info/?l=gnulib-bug&m=124958988300749
62249 2009-08-07  Bruno Haible  <bruno@clisp.org>
62251         Avoid link error on MacOS X 10.3 and 10.4.
62252         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
62253         on non-ELF systems.
62254         * lib/argp-pv.c (argp_program_version): Likewise.
62255         Reported by Simon Josefsson.
62257 2009-08-07  Simon Josefsson  <simon@josefsson.org>
62259         * tests/test-version-etc.sh: Use $EXEEXT.
62261 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
62263         update-copyright: update documentation to point to maint.mk
62264         * build-aux/update-copyright: Here.
62266 2009-08-06  Jim Meyering  <meyering@redhat.com>
62268         maint.mk: support update-copyright-local
62269         * top/maint.mk (update-copyright-local): Define place-holder.
62270         (update-copyright): Depend on $(update-copyright-local).
62272 2009-08-06  Jim Meyering  <meyering@redhat.com>
62274         selinux-at: new module
62275         Initially written for coreutils, this module will soon be
62276         used by findutils, too.
62277         * MODULES.html.sh [Misc]: Add selinux-at.
62278         * lib/selinux-at.h: New file, from coreutils.
62279         * lib/selinux-at.c: Likewise.
62280         * modules/selinux-at: Likewise.
62281         (License): Change from LGPL to GPL, since it depends
62282         on the GPL'd openat module.
62284         doc: update README
62285         * README: Remove references to cogito.
62286         Remove cvs-repo-updating instructions from 2007.
62287         Don't imply that CVS is better if you have limited disk space.
62289 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
62291         update-copyright: support C-style comments
62292         * build-aux/update-copyright: Implement and document.
62293         * tests/test-update-copyright.sh: Test.
62295 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
62297         update-copyright: support omitted "(C)"
62298         * build-aux/update-copyright: Implement and document.  Also,
62299         allow variable whitespace before "(C)".
62300         * tests/test-update-copyright.sh: Test.
62302 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
62304         update-copyright: don't trip on non-FSF copyright statements
62305         * build-aux/update-copyright: Fix so that the first correctly
62306         formatted FSF copyright statement is recognized no matter what
62307         appears before it.  Update documentation.
62308         * tests/test-update-copyright.sh: Test that.
62310 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
62312         update-copyright: clean up code a little
62313         * build-aux/update-copyright: Append "_re" to the name of any
62314         variable holding a regular expression.
62315         Replace "old" and "new" with "stmt" in variable names.
62316         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
62317         handled correctly.
62318         Format code more consistently.
62320 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
62322         update-copyright-tests: improve portability
62323         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
62324         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
62326 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
62328         update-copyright: support @copyright{} and &copy;
62329         * build-aux/update-copyright: Implement and document.
62330         * tests/test-update-copyright.sh: Test.
62332 2009-08-04  Jim Meyering  <meyering@redhat.com>
62334         update-copyright-tests: correctly test EOL=\r\n handling
62335         * tests/test-update-copyright.sh: Put \r at the end of some lines
62336         for the dos-eol tests.  Based on a patch by Joel E. Denny.
62338         maint.mk: make update-copyright exclusion list more configurable
62339         * top/maint.mk (update-copyright): Default to excluding COPYING,
62340         but allow an override, in case someone does want to update that file.
62342         maint.mk: don't update copyright date in COPYING
62343         * top/maint.mk (update-copyright): Exclude COPYING.
62345         maint.mk: add a copyright-updating rule
62346         * top/maint.mk (update-copyright): New rule.
62347         Derived from coreutils/Makefile.am.
62349         update-copyright: rename some variables
62350         * build-aux/update-copyright: Rename a few variables for clarity.
62351         Tweak syntax.  List Joel E. Denny as coauthor.
62353 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
62355         update-copyright: fix bug for 2-digit last year and add tests
62356         * build-aux/update-copyright: Fix bug.
62357         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
62358         specified.
62359         * modules/update-copyright-tests: New
62360         * tests/test-update-copyright.sh: New.
62362 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
62364         update-copyright: handle leading tabs in line prefix
62365         * build-aux/update-copyright: Count leading tabs as 8 spaces
62366         when computing margin.  This helps with the formatting of
62367         ChangeLogs, for example.
62368         Fix documentation a little.
62370 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
62372         update-copyright: support EOL=\r\n
62373         * build-aux/update-copyright: Implement that.
62375 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
62377         update-copyright: automatically format copyright statements
62378         * build-aux/update-copyright: Implement that.
62379         Also, be a little more predictable and safer by always failing
62380         when the full copyright format is not perfectly recognized as an
62381         unbroken whole.  Discussed at
62382         <http://lists.gnu.org/r/bug-gnulib/2009-07/msg00131.html>.
62383         Rewrite documentation.
62385 2009-08-03  Bruno Haible  <bruno@clisp.org>
62387         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
62389 2009-08-02  Bruno Haible  <bruno@clisp.org>
62391         Tests for module 'uname'.
62392         * modules/uname-tests: New file.
62393         * tests/test-uname.c: New file.
62395         New module 'uname'.
62396         * lib/uname.c: New file.
62397         * m4/uname.m4: New file.
62398         * modules/uname: New file.
62399         * doc/posix-functions/uname.texi: Mention the new module.
62401 2009-08-02  Bruno Haible  <bruno@clisp.org>
62403         Tests for module 'sys_utsname'.
62404         * modules/sys_utsname-tests: New file.
62405         * tests/test-sys_utsname.c: New file.
62407         New module 'sys_utsname'.
62408         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
62409         * m4/sys_utsname_h.m4: New file.
62410         * modules/sys_utsname: New file.
62411         * doc/posix-headers/sys_utsname.texi: Mention the new module.
62413 2009-08-02  Bruno Haible  <bruno@clisp.org>
62415         Implicitly initialize the sockets library.
62416         * lib/gethostname.c: Include sockets.h.
62417         (rpl_gethostname): Invoke gl_sockets_startup.
62418         * lib/socket.c: Include sockets.h.
62419         (rpl_socket): Invoke gl_sockets_startup.
62420         * modules/gethostname (Depends-on): Add sockets.
62421         * modules/socket (Depends-on): Likewise.
62422         * tests/test-poll.c: Don't include sockets.h.
62423         (main): Don't invoke gl_sockets_startup.
62424         * tests/test-select.c: Don't include sockets.h.
62425         (main): Don't invoke gl_sockets_startup.
62427 2009-08-02  Bruno Haible  <bruno@clisp.org>
62429         Allow multiple calls to gl_sockets_startup.
62430         * lib/sockets.c (initialized_sockets_version): New variable.
62431         (gl_sockets_startup): Do nothing if already called for this or a higher
62432         version.
62433         (gl_sockets_cleanup): Reset initialized_sockets_version.
62435 2009-08-03  Simon Josefsson  <simon@josefsson.org>
62437         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
62438         different project/version.
62440 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
62441             Bruno Haible  <bruno@clisp.org>
62443         Tests for module 'pipe-filter-gi'.
62444         * modules/pipe-filter-gi-tests: New file.
62445         * tests/test-pipe-filter-gi1.sh: New file.
62446         * tests/test-pipe-filter-gi1.c: New file.
62447         * tests/test-pipe-filter-gi2.sh: New file.
62448         * tests/test-pipe-filter-gi2-main.c: New file.
62449         * tests/test-pipe-filter-gi2-child.c: New file.
62451         New module 'pipe-filter-gi'.
62452         * lib/pipe-filter-gi.c: New file.
62453         * modules/pipe-filter-gi: New file.
62455 2009-08-02  Bruno Haible  <bruno@clisp.org>
62456             Paolo Bonzini  <bonzini@gnu.org>
62458         Tests for module 'pipe-filter-ii'.
62459         * modules/pipe-filter-ii-tests: New file.
62460         * tests/test-pipe-filter-ii1.sh: New file.
62461         * tests/test-pipe-filter-ii1.c: New file.
62462         * tests/test-pipe-filter-ii2.sh: New file.
62463         * tests/test-pipe-filter-ii2-main.c: New file.
62464         * tests/test-pipe-filter-ii2-child.c: New file.
62466         New module 'pipe-filter-ii'.
62467         * lib/pipe-filter.h: New file.
62468         * lib/pipe-filter-ii.c: New file.
62469         * lib/pipe-filter-aux.h: New file.
62470         * modules/pipe-filter-ii: New file.
62472 2009-08-02  Simon Josefsson  <simon@josefsson.org>
62474         * lib/gc-libgcrypt.c: Change copyright to FSF.
62475         * lib/gc-gnulib.c: Likewise.
62477 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
62479         * lib/gethostname.c: Include limits.h.
62481 2009-08-02  Simon Josefsson  <simon@josefsson.org>
62482             Bruno Haible  <bruno@clisp.org>
62484         Ensure HOST_NAME_MAX as part of the gethostname module.
62485         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
62486         define also HOST_NAME_MAX.
62487         * tests/test-gethostname.c: Include <limits.h>.
62488         (main): Check also HOST_NAME_MAX.
62489         * doc/posix-headers/limits.texi: Document the mingw problem.
62491 2009-08-02  Bruno Haible  <bruno@clisp.org>
62493         * lib/gethostname.c (gethostname): Fix handling of large len argument.
62494         Add comments.
62496 2009-03-31  Simon Josefsson  <simon@josefsson.org>
62498         * lib/gethostname.c: Add Windows wrapper.
62499         * m4/gethostname.m4: Look for gethostname in -lws2_32.
62500         * modules/gethostname: Depend on sys_socket & errno, for also
62501         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
62502         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
62504 2009-07-31  Jim Meyering  <meyering@redhat.com>
62506         getloadavg: fix symbol name in comment
62507         * lib/getloadavg.c: Correct a typo I introduced when adding
62508         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
62509         Matt Kraai spotted the problem.
62511 2009-07-29  Matt Kraai  <mkraai@beckman.com>
62513         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
62514         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
62515         code also if ! defined N_NAME_POINTER.
62516         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
62517         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
62518         but the n_name member is a 12-byte array.
62520 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
62522         update-copyright: generalize comment handling
62523         * build-aux/update-copyright: Handle copyright statements
62524         within more comment styles.
62525         Document usage.
62526         Report any file with an external copyright holder or parse failure.
62528 2009-07-29  Jim Meyering  <meyering@redhat.com>
62530         mktime: correct setting of REPLACE_MKTIME
62531         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
62533         update-copyright: new module
62534         * modules/update-copyright: New file.
62535         * build-aux/update-copyright: New file.
62536         * MODULES.html.sh (maint+release support): Add update-copyright.
62538 2009-07-27  Bruno Haible  <bruno@clisp.org>
62540         Fix compilation error when <ctime> is used and mktime is replaced.
62541         * lib/time.in.h (mktime): New declaration.
62542         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
62543         REPLACE_MKTIME instead of defining mktime in config.h.
62544         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
62545         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
62546         Reported by Ross McFarland <rwmcfa1@neces.com>.
62548 2009-07-27  Bruno Haible  <bruno@clisp.org>
62550         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
62551         Reported by Matt Kraai <mkraai@beckman.com>.
62553 2009-07-25  Jim Meyering  <meyering@redhat.com>
62555         maint.mk: avoid warnings about missing files
62556         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
62557         diagnostic when .prev-version does not exist.
62558         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
62559         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
62560         nonexistent cfg.mk.
62561         Suggestions from Simon Josefsson.
62563 2009-07-25  Bruno Haible  <bruno@clisp.org>
62565         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
62566         defined as macros. Needed on QNX 6.4.1.
62567         Reported by Matt Kraai <mkraai@beckman.com>.
62569 2009-07-23  Jim Meyering  <meyering@redhat.com>
62571         maint.mk: invoke "make dist" with a working value of XZ_OPT
62572         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
62574 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
62576         Make fseeko.c compile on QNX.
62577         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
62579 2009-07-22  Peter Simons  <simons@cryp.to>
62581         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
62582         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
62583         * lib/md4.h: Likewise.
62584         * lib/md5.h: Likewise.
62585         * lib/sha1.h: Likewise.
62586         * lib/sha256.h: Likewise.
62587         * lib/sha512.h: Likewise.
62589         tests-sha1: don't assign literal string to 'char *' variable
62590         * tests/test-sha1.c (main): Declare locals with "const" to match
62591         attributes of the right hand side.
62593 2009-07-21  Eric Blake  <ebb9@byu.net>
62595         dup2: fix more mingw problems
62596         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
62597         fd to itself.
62598         * doc/posix-functions/dup2.texi (dup2): Document the bug.
62599         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
62600         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
62601         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
62602         care of mingw bugs.
62604 2009-07-21  Jim Meyering  <meyering@redhat.com>
62606         vc-list-files: avoid failure when /bin/sh is dash
62607         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
62608         On some Debian based systems, /bin/sh is a symlink to dash, and running
62609         this command would omit the "/" following each 'tests' prefix:
62610           dash -x build-aux/vc-list-files -C . tests
62611         That is because bash and dash work differently:
62612           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
62613           bash ok
62614           dash odd
62616 2009-07-21  Eric Blake  <ebb9@byu.net>
62618         dup2-tests: test previous patch
62619         * modules/dup2-tests: New file.
62620         * tests/test-dup2.c: Likewise.
62621         * tests/test-open.c (main): Avoid unspecified behavior.
62622         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
62623         test.
62625         dup2: work around mingw and cygwin 1.5 bug
62626         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
62627         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
62628         * modules/unistd (Makefile.am): Substitute it.
62629         * lib/unistd.in.h (dup2): Declare the replacement.
62630         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
62631         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
62632         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
62633         * modules/execute (Depends-on): Add dup2.
62634         * modules/fseterr (Depends-on): Likewise.
62635         * modules/pipe (Depends-on): Likewise.
62636         * modules/posix_spawn-internal (Depends-on): Likewise.
62638 2009-07-21  Bruno Haible  <bruno@clisp.org>
62640         * modules/.gitattributes: New file.
62642 2009-07-20  Bruno Haible  <bruno@clisp.org>
62644         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
62645         (main): Use it.
62647 2009-07-20  Eric Blake  <ebb9@byu.net>
62649         test-pipe: make a bit more robust.
62650         * tests/test-pipe.c (myerr): Allow error messages regardless of
62651         what we do to stderr.
62652         (test_pipe): Rearrange to avoid deadlock.
62653         (child_main): Try a larger read, to ensure we avoided deadlock.
62654         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
62655         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
62656         if misused.
62658 2009-07-19  Jim Meyering  <meyering@redhat.com>
62660         fts: avoid false-positive cycle-detection
62661         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
62662         for each new command line argument.
62664 2009-07-19  Bruno Haible  <bruno@clisp.org>
62666         Fix build error on mingw with the modules sys_select and unistd.
62667         * modules/acl-tests (Depends-on): Add close.
62668         * modules/binary-io-tests (Depends-on): Likewise.
62669         * modules/closein-tests (Depends-on): Likewise.
62670         * modules/flock-tests (Depends-on): Likewise.
62671         * modules/fsync-tests (Depends-on): Likewise.
62672         * modules/lseek-tests (Depends-on): Likewise.
62673         * modules/pipe-tests (Depends-on): Likewise.
62674         * modules/posix_spawn-tests (Depends-on): Likewise.
62675         * modules/posix_spawnp-tests (Depends-on): Likewise.
62676         * modules/stat-time-tests (Depends-on): Likewise.
62677         * modules/yesno-tests (Depends-on): Likewise.
62679 2009-07-19  Bruno Haible  <bruno@clisp.org>
62681         Unify conditionals.
62682         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
62683         macros, not at the compiler macros.
62684         * lib/pipe.c: Likewise.
62685         * lib/execute.c: Likewise.
62686         * lib/spawni.c: Likewise.
62688 2009-07-19  Bruno Haible  <bruno@clisp.org>
62690         Fix handling of closed stdin/stdout/stderr on mingw.
62691         * lib/w32spawn.h: Include unistd.h.
62692         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
62693         file descriptor with O_NOINHERIT flag.
62694         (fd_safer_noinherit): New function, based on fd-safer.c.
62695         (dup_safer_noinherit): New function, based on dup-safer.c.
62696         (undup_safer_noinherit): New function.
62697         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
62698         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
62699         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
62700         instead of fd_safer.
62701         * tests/test-pipe.c: Include <windows.h>.
62702         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close()
62703         result.
62705         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
62706         from main.
62707         (test_pipe): Pass an extra argument for disambiguation.
62708         (main): Invoke parent_main or child_main.
62710         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
62711         consistently.
62713 2009-07-18  Eric Blake  <ebb9@byu.net>
62715         test-pipe: fix mingw build
62716         * tests/test-pipe.c (main): Avoid fcntl on mingw.
62718 2009-07-18  Bruno Haible  <bruno@clisp.org>
62720         * modules/pipe-tests (Makefile.am): Fix typo.
62722 2009-07-18  Eric Blake  <ebb9@byu.net>
62724         error: fix mingw build
62725         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
62726         Reported by Bruno Haible.
62728         error: avoid undefined use of stdout
62729         * lib/error.c (error, error_at_line): Check that fd 1 is open
62730         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
62731         is handling faults and the close_stdout module wants to report the
62732         detection of closed stdout as an error.
62734 2009-07-17  Eric Blake  <ebb9@byu.net>
62736         pipe: be robust in face of closed fds
62737         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
62738         should cause child to misbehave.
62739         * modules/pipe-tests: New module.
62740         * tests/test-pipe.c: New file.
62741         * tests/test-pipe.sh: New file.
62742         Reported by Akim Demaille.
62744 2009-07-14  Bruno Haible  <bruno@clisp.org>
62746         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
62747         Reported by anonymous kc.
62749 2009-07-07  Jim Meyering  <meyering@redhat.com>
62751         maint.mk: don't look for translatable strings in *.m4 or *.mk
62752         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
62753         when searching for translatable strings.
62755 2009-07-05  Jim Meyering  <meyering@redhat.com>
62757         remove superfluous parentheses in STREQ definition
62758         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
62759         * lib/getugroups.c (STREQ): Likewise.
62760         * lib/fnmatch.c (STREQ): Likewise.
62761         Spotted by Bruno Haible.
62763 2009-07-04  Jim Meyering  <meyering@redhat.com>
62765         argv-iter: new module
62766         * MODULES.html.sh: Add argv-iter.
62767         * lib/argv-iter.c, lib/argv-iter.h: New files.
62768         * modules/argv-iter: New file.
62769         * modules/argv-iter-tests: New file.
62770         * tests/test-argv-iter.c: Test it.
62772 2009-07-04  Bruno Haible  <bruno@clisp.org>
62774         Fix assertion.
62775         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
62776         contains more exact copies of a given entry than file2, leave the extra
62777         copies unpaired rather than aborting.
62778         Reported by Eric Blake.
62780 2009-07-02  Bruno Haible  <bruno@clisp.org>
62782         Speedup git-merge-changelog for git cherry-pick.
62783         * lib/git-merge-changelog.c (struct entries_mapping): New type.
62784         (entries_mapping_get): New function, extracted from compute_mapping.
62785         (entries_mapping_reverse_get): New function.
62786         (compute_mapping): Add a 'full' argument. Return the result in a
62787         'struct entries_mapping'.
62788         (main): Update. Access the mappings through entries_mapping_get.
62789         Reported by Eric Blake.
62791 2009-07-02  Bruno Haible  <bruno@clisp.org>
62793         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
62794         best_i.
62796 2009-07-02  Bruno Haible  <bruno@clisp.org>
62798         Speed up approximate search for matching ChangeLog entries.
62799         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
62800         argument. Call fstrcmp_bounded instead of fstrcmp.
62801         (compute_mapping, try_split_merged_entry, main): Update callers.
62803 2009-07-02  Bruno Haible  <bruno@clisp.org>
62805         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
62807 2009-06-30  Bruno Haible  <bruno@clisp.org>
62809         Reduce the number of uc_is_cased calls.
62810         * lib/unicase.h (casing_suffix_context_t): Add
62811         'first_char_except_ignorable' field.
62812         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
62813         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
62814         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
62815         Update initializer.
62816         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
62817         case-ignorable characters.
62818         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
62819         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
62820         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
62821         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
62822         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
62824 2009-06-30  Bruno Haible  <bruno@clisp.org>
62826         Tests for module 'unicase/ignorable'.
62827         * modules/unicase/ignorable-tests: New file.
62828         * tests/unicase/test-ignorable.c: New file, generated by
62829         gen-uni-tables.
62831         Tests for module 'unicase/cased'.
62832         * modules/unicase/cased-tests: New file.
62833         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
62834         * tests/unicase/test-predicate-part1.h: New file, derived from
62835         tests/unictype/test-predicate-part1.h.
62836         * tests/unicase/test-predicate-part2.h: New file, same as
62837         tests/unictype/test-predicate-part2.h.
62839         Fix evaluation of "Before C" condition of FINAL_SIGMA.
62840         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
62841         (output_casing_properties): New function.
62842         (main): Call it.
62843         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
62844         * lib/unicase/cased.c: Include unictype/bitmap.h.
62845         (uc_is_cased): Define through a bitmap lookup.
62846         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
62847         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
62848         (uc_is_case_ignorable): Define through a bitmap lookup.
62849         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
62850         lib/unictype/bitmap.h.
62851         (Depends-on): Add inline. Clean up.
62852         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
62853         lib/unictype/bitmap.h.
62854         (Depends-on): Add inline. Clean up.
62855         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
62856         recognition.
62857         * tests/unicase/test-u16-tolower.c (main): Likewise.
62858         * tests/unicase/test-u32-tolower.c (main): Likewise.
62860 2009-06-30  Bruno Haible  <bruno@clisp.org>
62862         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
62863         * lib/unicase/u16-casemap.c: Likewise.
62864         * lib/unicase/u32-casemap.c: Likewise.
62866 2009-06-29  Bruno Haible  <bruno@clisp.org>
62868         Define u32_casefold as a wrapper around u32_ct_casefold.
62869         * lib/unicase/u32-casefold.c: Update.
62870         * modules/unicase/u32-casefold (Depends-on): Add
62871         unicase/u32-ct-casefold, unicase/empty-prefix-context,
62872         unicase/empty-suffix-context. Clean up.
62874         Define u16_casefold as a wrapper around u16_ct_casefold.
62875         * lib/unicase/u16-casefold.c: Update.
62876         * modules/unicase/u16-casefold (Depends-on): Add
62877         unicase/u16-ct-casefold, unicase/empty-prefix-context,
62878         unicase/empty-suffix-context. Clean up.
62880         Define u8_casefold as a wrapper around u8_ct_casefold.
62881         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
62882         * lib/unicase/u8-casefold.c: Update.
62883         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
62884         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
62886         Define u32_totitle as a wrapper around u32_ct_totitle.
62887         * lib/unicase/u32-totitle.c: Update.
62888         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
62889         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
62891         Define u16_totitle as a wrapper around u16_ct_totitle.
62892         * lib/unicase/u16-totitle.c: Update.
62893         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
62894         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
62896         Define u8_totitle as a wrapper around u8_ct_totitle.
62897         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
62898         functions.
62899         (FUNC): Delegate to U_CT_TOTITLE.
62900         * lib/unicase/u8-totitle.c: Update.
62901         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
62902         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
62904         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
62905         invocation.
62906         * modules/unicase/u32-tolower (Depends-on): Add
62907         unicase/empty-prefix-context, unicase/empty-suffix-context.
62909         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
62910         invocation.
62911         * modules/unicase/u16-tolower (Depends-on): Add
62912         unicase/empty-prefix-context, unicase/empty-suffix-context.
62914         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
62915         * modules/unicase/u8-tolower (Depends-on): Add
62916         unicase/empty-prefix-context, unicase/empty-suffix-context.
62918         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
62919         invocation.
62920         * modules/unicase/u32-toupper (Depends-on): Add
62921         unicase/empty-prefix-context, unicase/empty-suffix-context.
62923         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
62924         invocation.
62925         * modules/unicase/u16-toupper (Depends-on): Add
62926         unicase/empty-prefix-context, unicase/empty-suffix-context.
62928         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
62929         * modules/unicase/u8-toupper (Depends-on): Add
62930         unicase/empty-prefix-context, unicase/empty-suffix-context.
62932         New module 'unicase/u32-ct-casefold'.
62933         * lib/unicase/u32-ct-casefold.c: New file.
62934         * modules/unicase/u32-ct-casefold: New file.
62936         New module 'unicase/u16-ct-casefold'.
62937         * lib/unicase/u16-ct-casefold.c: New file.
62938         * modules/unicase/u16-ct-casefold: New file.
62940         New module 'unicase/u8-ct-casefold'.
62941         * lib/unicase/u8-ct-casefold.c: New file.
62942         * lib/unicase/u-ct-casefold.h: New file, derived from
62943         lib/unicase/u-casefold.h.
62944         * modules/unicase/u8-ct-casefold: New file.
62946         New module 'unicase/u32-ct-totitle'.
62947         * lib/unicase/u32-ct-totitle.c: New file.
62948         * modules/unicase/u32-ct-totitle: New file.
62950         New module 'unicase/u16-ct-totitle'.
62951         * lib/unicase/u16-ct-totitle.c: New file.
62952         * modules/unicase/u16-ct-totitle: New file.
62954         New module 'unicase/u8-ct-totitle'.
62955         * lib/unicase/u8-ct-totitle.c: New file.
62956         * lib/unicase/u-ct-totitle.h: New file, derived from
62957         lib/unicase/u-totitle.h.
62958         * modules/unicase/u8-ct-totitle: New file.
62960         New module 'unicase/u32-ct-tolower'.
62961         * lib/unicase/u32-ct-tolower.c: New file.
62962         * modules/unicase/u32-ct-tolower: New file.
62964         New module 'unicase/u16-ct-tolower'.
62965         * lib/unicase/u16-ct-tolower.c: New file.
62966         * modules/unicase/u16-ct-tolower: New file.
62968         New module 'unicase/u8-ct-tolower'.
62969         * lib/unicase/u8-ct-tolower.c: New file.
62970         * modules/unicase/u8-ct-tolower: New file.
62972         New module 'unicase/u32-ct-toupper'.
62973         * lib/unicase/u32-ct-toupper.c: New file.
62974         * modules/unicase/u32-ct-toupper: New file.
62976         New module 'unicase/u16-ct-toupper'.
62977         * lib/unicase/u16-ct-toupper.c: New file.
62978         * modules/unicase/u16-ct-toupper: New file.
62980         New module 'unicase/u8-ct-toupper'.
62981         * lib/unicase/u8-ct-toupper.c: New file.
62982         * modules/unicase/u8-ct-toupper: New file.
62984         Add context arguments to u*_casemap functions.
62985         * lib/unicase/unicasemap.h: Include unicase.h.
62986         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
62987         suffix_context arguments.
62988         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
62989         functions.
62990         (FUNC): Add prefix_context and suffix_context arguments. Use
62991         uc_is_cased and uc_is_case_ignorable.
62992         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
62993         * lib/unicase/u16-casemap.c: Likewise.
62994         * lib/unicase/u32-casemap.c: Likewise.
62995         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
62996         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
62997         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
62998         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
62999         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
63000         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
63002         New module 'unicase/u32-suffix-context'.
63003         * lib/unicase/u32-suffix-context.c: New file.
63004         * modules/unicase/u32-suffix-context: New file.
63006         New module 'unicase/u16-suffix-context'.
63007         * lib/unicase/u16-suffix-context.c: New file.
63008         * modules/unicase/u16-suffix-context: New file.
63010         New module 'unicase/u8-suffix-context'.
63011         * lib/unicase/u8-suffix-context.c: New file.
63012         * lib/unicase/u-suffix-context.h: New file.
63013         * modules/unicase/u8-suffix-context: New file.
63015         New module 'unicase/empty-suffix-context'.
63016         * lib/unicase/empty-suffix-context.c: New file.
63017         * modules/unicase/empty-suffix-context: New file.
63019         New module 'unicase/u32-prefix-context'.
63020         * lib/unicase/u32-prefix-context.c: New file.
63021         * modules/unicase/u32-prefix-context: New file.
63023         New module 'unicase/u16-prefix-context'.
63024         * lib/unicase/u16-prefix-context.c: New file.
63025         * modules/unicase/u16-prefix-context: New file.
63027         New module 'unicase/u8-prefix-context'.
63028         * lib/unicase/u8-prefix-context.c: New file.
63029         * lib/unicase/u-prefix-context.h: New file.
63030         * lib/unicase/context.h: New file.
63031         * modules/unicase/u8-prefix-context: New file.
63033         New module 'unicase/empty-prefix-context'.
63034         * lib/unicase/empty-prefix-context.c: New file.
63035         * modules/unicase/empty-prefix-context: New file.
63037         New module 'unicase/ignorable'.
63038         * lib/unicase/ignorable.c: New file.
63039         * modules/unicase/ignorable: New file.
63041         New module 'unicase/cased'.
63042         * lib/unicase/caseprop.h: New file.
63043         * lib/unicase/cased.c: New file.
63044         * modules/unicase/cased: New file.
63046         New functions for case mapping of substrings.
63047         * lib/unicase.h (casing_prefix_context_t): New type.
63048         (unicase_empty_prefix_context): New variable.
63049         (u8_casing_prefix_context, u16_casing_prefix_context,
63050         u32_casing_prefix_context, u8_casing_prefixes_context,
63051         u16_casing_prefixes_context, u32_casing_prefixes_context): New
63052         declarations.
63053         (casing_suffix_context_t): New type.
63054         (unicase_empty_suffix_context): New variable.
63055         (u8_casing_suffix_context, u16_casing_suffix_context,
63056         u32_casing_suffix_context, u8_casing_suffixes_context,
63057         u16_casing_suffixes_context, u32_casing_suffixes_context,
63058         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
63059         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
63060         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
63061         declarations.
63063 2009-06-28  Jim Meyering  <meyering@redhat.com>
63065         boostrap: indent only with spaces
63066         * build-aux/bootstrap: Indent only with spaces, never TABs.
63068         bootstrap: split long lines
63069         * build-aux/bootstrap: Keep line length < 80.
63071         bootstrap: sync from coreutils
63072         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
63073         just as autoreconf does.  Verify a list of prerequisite
63074         package-name,version-number pairs if defined in bootstrap.conf.
63075         Refer to README-prereq, if prerequisites are not satisfied.
63077 2009-06-27  Eric Blake  <ebb9@byu.net>
63079         tests: add test for bogus NULL definition
63080         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
63081         * tests/test-stdlib.c: Likewise.
63082         * tests/test-string.c: Likewise.
63083         * tests/test-locale.c: Likewise.
63084         * tests/test-unistd.c: Likewise.
63085         * modules/stdio-tests (Depends-on): Add verify.
63086         * modules/stdlib-tests (Depends-on): Likewise.
63087         * modules/string-tests (Depends-on): Likewise.
63088         * modules/locale-tests (Depends-on): Likewise.
63089         * modules/unistd-tests (Depends-on): Likewise.
63091 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
63093         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
63094         self-explaining comment.
63095         * m4/selinux-selinux-h: Update serial.
63096         (gl_LIBSELINUX): New macro, adding a warning for missing development
63097         packages to code extracted from...
63098         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
63099         Add warning for missing development packages here, too.
63101 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
63103         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
63105 2009-06-25  Eric Blake  <ebb9@byu.net>
63107         version-etc: fix regression
63108         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
63109         gcc.
63110         (version_etc): Use it, to catch bugs with trailing NULL.
63111         * lib/version-etc.c (version_etc_arn): Delete unused argument.
63112         (version_etc_va): Fix logic bug.
63113         * modules/version-etc-tests: Add test.
63114         * tests/test-version-etc.c: New file.
63115         * tests/test-version-etc.sh: Likewise.
63117 2009-06-25  Sam Steingold  <sds@gnu.org>
63119         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
63120         mbtowc declaration.
63122 2009-06-25  Eric Blake  <ebb9@byu.net>
63124         fpurge: migrate into <stdio.h>
63125         * lib/fpurge.h: Delete...
63126         * lib/stdio.in.h (fpurge): ...and declare here, instead.
63127         * lib/fpurge.c (fpurge): Change declaring header.
63128         * modules/fpurge (Files): Drop deleted file.
63129         (Depends-on): Add stdio.
63130         (configure.ac): Set witness.
63131         * modules/stdio (Makefile.am): Support fpurge macros.
63132         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
63133         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
63134         * lib/fflush.c: Update client.
63135         * tests/test-fpurge.c: Likewise.
63136         * NEWS: Mention the change.
63138 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
63140         * lib/argp-version-etc.c (program_authors): Add const
63141         qualifier.
63142         * lib/version-etc.c: Fix typos in the comments.
63143         * modules/argp-version-etc: Depends on version-etc.
63145 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
63147         argp-version-etc: new module.
63149         * lib/argp-version-etc.c: New file.
63150         * lib/argp-version-etc.h: New file.
63151         * modules/argp-version-etc: New file.
63152         * modules/argp-version-etc-tests: New file.
63153         * tests/test-argp-version-etc.c: New test.
63154         * tests/test-argp-version-etc-1.sh: New test.
63156 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
63158         Provide additional interfaces and documentation for version-etc
63159         module.
63161         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
63162         interfaces.
63163         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
63164         prototypes.
63166 2009-06-24  Bruno Haible  <bruno@clisp.org>
63168         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
63169         HAVE_LIB${NAME} macro.
63170         Reported by Sam Steingold <sds@gnu.org>.
63172 2009-06-23  Simon Josefsson  <simon@josefsson.org>
63174         * modules/hash-tests (test_hash_LDADD): Link to libintl when
63175         needed.
63177 2009-06-21  Bruno Haible  <bruno@clisp.org>
63179         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
63180         work.
63181         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
63182         together with LIB${NAME}, LTLIB${NAME}.
63183         Reported by Sam Steingold <sds@gnu.org>.
63185 2009-06-20  Jim Meyering  <meyering@redhat.com>
63187         tests: make sc_require_test_exit_idiom more generic
63188         * top/maint.mk (Exit_witness_file): New overridable variable.
63189         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
63190         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
63192 2009-06-19  Jim Meyering  <meyering@redhat.com>
63194         hash: reverse order of src/dst parameters in an internal interface
63195         * lib/hash.c (transfer_entries): Reverse order of parameters to
63196         put DST before SRC.  Adjust callers.
63198         tests: test-hash: avoid wholesale duplication
63199         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
63200         Instead, use a loop and add a single conditional.
63202         tests: test-hash: allow seed selection via a command line argument
63203         * tests/test-hash.c (get_seed): New function.
63204         (main): Use it.
63206 2009-06-19  Eric Blake  <ebb9@byu.net>
63208         hash: avoid memory leak on allocation failure
63209         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
63210         failure.  Factor repeated algorithm...
63211         (transfer_entries): ...into new helper routine.
63212         (hash_delete): React to hash_rehash return value.
63214         hash: reduce memory pressure in hash_rehash no-op case
63215         * lib/hash.c (next_prime): Avoid overflow.
63216         (hash_initialize): Factor bucket size computation...
63217         (compute_bucket_size): ...into new helper function.
63218         (hash_rehash): Use new function and open coding to reduce memory
63219         pressure, and avoid a memory leak in USE_OBSTACK code.
63220         Reported by Jim Meyering.
63222 2009-06-18  Eric Blake  <ebb9@byu.net>
63224         hash: make rotation more obvious
63225         * modules/hash (Depends-on): Add bitrotate and stdint.
63226         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
63227         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
63228         (SIZE_MAX): Rely on headers for definition.
63229         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
63230         (raw_hasher): Use rotr_sz.
63231         Suggested by Jim Meyering.
63233         hash: fix memory leak in last patch
63234         * lib/hash.c (hash_rehash): Avoid memory leak.
63236         hash: avoid no-op rehashing
63237         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
63239         hash: provide default callback functions
63240         * lib/hash.c (raw_hasher, raw_comparator): New functions.
63241         (hash_initialize): Use them as defaults.
63242         * tests/test-hash.c (main): Test this.
63244         hash: minor optimization
63245         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
63246         when possible.
63247         (hash_initialize): Document this promise.
63248         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
63249         * tests/test-hash.c (hash_compare_strings): Test this.
63251 2009-06-18  Bruno Haible  <bruno@clisp.org>
63253         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
63254         going to be replaced anyway.
63256 2009-06-18  Bruno Haible  <bruno@clisp.org>
63258         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
63259         in one place.
63260         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
63261         be replaced anyway.
63263 2009-06-18  Eric Blake  <ebb9@byu.net>
63265         hash: check for resize before insertion
63266         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
63267         threshold before insertion, so that a pathological hash_rehash
63268         that fills every bucket can still trigger another rehash.
63270 2009-06-18  Jim Meyering  <meyering@redhat.com>
63272         hash-tests: add a loop around the small tests
63273         * tests/test-hash.c (main): Repeat small tests with selected
63274         small initial table sizes.
63276 2009-06-17  Eric Blake  <ebb9@byu.net>
63278         hash: minor cleanups
63279         * lib/hash.h (hash_entry): Make opaque, by moving...
63280         * lib/hash.c (hash_entry): ...here.
63281         (hash_insert): Clarify restrictions on what can be inserted.
63282         (hash_get_next): Clarify when it is safe to remove an element
63283         during traversal.
63284         (check_tuning): Skip verification when tuning is known safe.
63285         (hash_initialize): Clarify restrictions on tuning.
63287 2009-06-17  Jim Meyering  <jim@meyering.net>
63288         and Eric Blake  <ebb9@byu.net>
63290         hash-tests: new module
63291         * modules/hash-tests: New file.
63292         * tests/test-hash.c: New file.
63294 2009-06-17  Eric Blake  <ebb9@byu.net>
63296         strstr-simple: document new module
63297         * MODULES.html.sh: Document new module.
63299         strstr, strcasestr: replace on platforms with broken memchr
63300         * modules/strstr: Split into...
63301         * modules/strstr-simple: ...new module that does not care about
63302         performance, but does care about glibc bug.
63303         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
63304         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
63305         if platform memchr is broken, per Debian bug 521737.
63306         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
63307         memchr.
63308         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
63309         * doc/posix-functions/strstr.texi (strstr): Document the fix.
63310         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
63311         * modules/mountlist (Depends-on): Add strstr-simple.
63312         * modules/gen-uni-tables (Depends-on): Likewise.
63313         * modules/argz (Depends-on): Add strstr.
63315 2009-06-17  Bruno Haible  <bruno@clisp.org>
63317         * modules/posix_spawn-internal (Depends-on): Add errno.
63319 2009-06-17  Bruno Haible  <bruno@clisp.org>
63321         Define missing ESTALE on Interix 3.5.
63322         * lib/errno.in.h (ESTALE): Assign a value if missing.
63323         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
63324         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
63325         missing.
63326         * doc/posix-headers/errno.texi: Mention the Interix bug.
63327         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
63329 2009-06-15  Eric Blake  <ebb9@byu.net>
63331         memchr, memchr2: add valgrind exception
63332         * lib/memchr.valgrind: New file.
63333         * lib/memchr2.valgrind: New file.
63334         * modules/memchr (Files): Distribute valgrind file.
63335         * modules/memchr2 (Files): Likewise.
63337         docs: memchr is no longer obsolete
63338         * MODULES.html.sh: Move memchr from obsolete to string.h section.
63339         * lib/string.in.h (memchr): Simplify logic.
63341 2009-06-14  Jim Meyering  <meyering@redhat.com>
63343         link-follow: fix the "checking..." message to not mention trailing slash
63344         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
63345         never considered trailing slashes.
63347 2009-06-14  Bruno Haible  <bruno@clisp.org>
63349         * m4/memchr.m4: Mention also the bug on IA-64.
63350         * doc/posix-functions/memchr.texi: Likewise.
63352 2009-06-12  Eric Blake  <ebb9@byu.net>
63354         memchr: detect broken x86_64 and alpha implementations
63355         * modules/memchr-tests (Depends-on): Move mmap detection...
63356         * modules/memchr (Depends-on): ...here.
63357         (configure.ac): Set indicator.
63358         * lib/string.in.h (memchr): Declare replacement.
63359         * modules/string (Makefile.am): Trigger replacement.
63360         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
63361         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
63362         bugs.
63363         * doc/posix-functions/memchr.texi (memchr): Document the bug.
63364         * modules/getpagesize (License): Relax license.
63366 2009-06-11  Bruno Haible  <bruno@clisp.org>
63368         * lib/idpriv.h: Add more references.
63370 2009-06-08  Bruno Haible  <bruno@clisp.org>
63372         Tests for module 'idpriv-droptemp'.
63373         * modules/idpriv-droptemp-tests: New file.
63374         * tests/test-idpriv-droptemp.sh: New file.
63375         * tests/test-idpriv-droptemp.su.sh: New file.
63376         * tests/test-idpriv-droptemp.c: New file.
63378         New module 'idpriv-droptemp'.
63379         * lib/idpriv-droptemp.c: New file.
63380         * modules/idpriv-droptemp: New file.
63382 2009-06-08  Bruno Haible  <bruno@clisp.org>
63384         Tests for module 'idpriv-drop'.
63385         * modules/idpriv-drop-tests: New file.
63386         * tests/test-idpriv-drop.sh: New file.
63387         * tests/test-idpriv-drop.su.sh: New file.
63388         * tests/test-idpriv-drop.c: New file.
63390         New module 'idpriv-drop'.
63391         * lib/idpriv.h: New file.
63392         * lib-idpriv-drop.c: New file.
63393         * m4/idpriv.m4: New file.
63394         * modules/idpriv-drop: New file.
63396 2009-06-08  Bruno Haible  <bruno@clisp.org>
63398         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
63399         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
63400         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
63401         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
63402         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
63403         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
63404         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
63406 2009-06-08  Eric Blake  <ebb9@byu.net>
63408         test-strstr: use memory fence, when possible
63409         * tests/test-strstr.c (main): Use memory fence, in order to be
63410         more likely to trigger Debian bug 521737.
63411         * modules/strstr-tests (Files): Pull in additional files.
63413         memchr: no longer obsolete, for wider field testing
63414         * modules/memchr (Status, Notice): Delete, this module is no
63415         longer obsolete.
63416         * modules/vasnprintf (Depends-on): Add memchr.
63418 2009-06-07  Jim Meyering  <meyering@redhat.com>
63420         hash: declare some functions with the warn_unused_result attribute
63421         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
63423 2009-06-07  Bruno Haible  <bruno@clisp.org>
63425         * tests/test-alignof.c: Don't test int64_t if it does not exist.
63426         Reported by Eric Blake.
63428 2009-06-06  Eric Blake  <ebb9@byu.net>
63430         test-alignof: fix typo with long double
63431         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
63432         compiler error.
63434 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
63436         Escape non-texinfo { and }s.
63437         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
63438         markup error.
63440 2009-06-04  Jim Meyering  <meyering@redhat.com>
63442         gitlog-to-changelog: don't infloop on an empty commit log
63443         * build-aux/gitlog-to-changelog: Warn about an empty log message.
63444         Reported by Boris Petersen <transacid@centerim.org>.
63446 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
63448         version-etc: extend for packagers
63449         Add three new configure options, intended for packagers:
63450           --with-packager="packager name"
63451           --with-packager-version="packager-specific version"
63452           --with-packager-bug-reports="packager bug reporting"
63453         An example with coreutils:
63454           $ ./configure \
63455             --with-packager=Gentoo \
63456             --with-packager-bug-report=http://bugs.gentoo.org/ \
63457             --with-packager-version="patchset 1.6"
63458           $ ./src/ls --version | head -n2
63459           ls (GNU coreutils) 7.1-dirty
63460           Packaged by Gentoo (patchset 1.6)
63461         Note that the bug reporting info via --help doesn't show up because
63462         coreutils uses its own custom emit_bug_reporting_address() implementation
63463         in src/system.h.  If it didn't, it'd look like:
63464           $ ./src/ls --help | tail -n4
63465           Report bugs to <bug-coreutils@gnu.org>.
63466           Report Gentoo bugs to <http://bugs.gentoo.org/>.
63467           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
63468           General help using GNU software: <http://www.gnu.org/gethelp/>.
63469         * lib/version-etc.c: Print new information, if provided.
63470         * m4/version-etc.m4: New file.
63471         * modules/version-etc (Files): Add m4/version-etc.m4.
63472         (configure.ac): Add gl_VERSION_ETC.
63474 2009-05-31  Bruno Haible  <bruno@clisp.org>
63476         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
63477         and 'int64_t'.
63478         * modules/alignof-tests (Dependencies): Add stdint.
63479         Reported by Eric Blake.
63481 2009-05-31  Bruno Haible  <bruno@clisp.org>
63483         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
63484         restriction due to compiler bugs.
63485         Reported by Eric Blake.
63487 2009-05-31  Simon Josefsson  <simon@josefsson.org>
63488             Bruno Haible  <bruno@clisp.org>
63490         Fix test-alignof failure.
63491         * lib/alignof.h (alignof_slot): New macro.
63492         (alignof_type): New macro, with the same semantics as the previous
63493         'alignof'.
63494         (alignof): Alias to alignof_slot.
63495         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
63496         check that the results are usable as constant expressions.
63498 2009-05-31  Bruno Haible  <bruno@clisp.org>
63500         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
63501         * tests/test-memchr.c (main): Check that memchr does not read past the
63502         first occurrence of the byte.
63503         * tests/test-strstr.c (main): Update comment.
63504         Suggested by Eric Blake.
63506 2009-05-30  Bruno Haible  <bruno@clisp.org>
63508         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
63509         detail how to use dumpbin.
63510         Reported by David Byron <dbyron@dbyron.com>.
63512 2009-06-02  Simon Josefsson  <simon@josefsson.org>
63514         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
63516 2009-06-02  Simon Josefsson  <simon@josefsson.org>
63518         * m4/manywarnings.m4: Add GCC 4.4 warnings.
63520 2009-05-28  Bruno Haible  <bruno@clisp.org>
63522         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
63523         build-aux/ files.
63525 2009-05-28  Simon Josefsson  <simon@josefsson.org>
63527         * gnulib-tool (func_import): Transform license on build-aux/ files too.
63529 2009-05-27  Simon Josefsson  <simon@josefsson.org>
63531         * gnulib-tool (sed_transform_main_lib_file)
63532         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
63533         regexps.
63535 2009-05-26  Simon Josefsson  <simon@josefsson.org>
63537         * tests/test-strstr.c: Add another self-test.
63538         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
63539         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
63541 2009-05-23  Bruno Haible  <bruno@clisp.org>
63543         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
63544         change.
63546 2009-05-21  Bruno Haible  <bruno@clisp.org>
63548         Simplify use of mode_t varargs.
63549         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
63550         uses 'mode_t' or 'int'.
63551         * lib/openat.c (openat): Likewise.
63552         * lib/open-safer.c (open_safer): Likewise.
63553         * m4/mode_t.m4: New file.
63554         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
63555         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
63556         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
63557         * modules/open (Files): Add m4/mode_t.m4.
63558         * modules/openat (Files): Likewise.
63559         * modules/fcntl-safer (Files): Likewise.
63560         Suggested by Eric Blake.
63562 2009-05-21  Pádraig Brady  <P@draigbrady.com>
63564         * doc/glibc-functions/fallocate.texi: New file.
63565         * doc/gnulib.texi: Include it.
63567 2009-05-21  Eric Blake  <ebb9@byu.net>
63568             Bruno Haible  <bruno@clisp.org>
63570         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
63571         invocations.
63572         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
63574 2009-05-21  Eric Blake  <ebb9@byu.net>
63575             Bruno Haible  <bruno@clisp.org>
63577         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
63578         include_next. Fix of 2008-11-20 commit.
63579         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
63580         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
63581         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
63582         NEXT_MATH_H.
63583         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
63584         instead of NEXT_MATH_H.
63586 2009-05-21  Bruno Haible  <bruno@clisp.org>
63588         Avoid redefinition warnings for SIZE_MAX.
63589         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
63590         Reported by Simon Josefsson.
63592 2009-05-21  Bruno Haible  <bruno@clisp.org>
63594         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
63595         AC_CACHE_VAL.
63597 2009-05-20  Bruno Haible  <bruno@clisp.org>
63599         Make zeroptr.h work on mingw.
63600         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
63601         mprotect.
63602         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
63603         * modules/memchr2-tests (configure.ac): Likewise.
63604         * modules/memcmp-tests (configure.ac): Likewise.
63605         * modules/memmem-tests (configure.ac): Likewise.
63606         * modules/memrchr-tests (configure.ac): Likewise.
63607         Reported by Simon Josefsson.
63609 2009-05-20  Simon Josefsson  <simon@josefsson.org>
63611         * tests/test-glob.c: Include string.h for strcmp prototype.
63613 2009-05-20  Simon Josefsson  <simon@josefsson.org>
63615         * modules/getdelim (Depends-on): Add explicit stdint, although it
63616         was implicitly already pulled in via realloc-posix.
63617         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
63619 2009-05-20  Simon Josefsson  <simon@josefsson.org>
63621         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
63622         G. Christensen" <tgc@jupiterrise.com>.
63623         * m4/sys_socket_h.m4: Check for sa_family_t.
63624         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
63625         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
63626         * tests/test-sys_socket.c: Check that sa_family_t works.
63628 2009-05-18  Eric Blake  <ebb9@byu.net>
63630         maint.mk: allow gnulib_dir in VPATH build
63631         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
63633 2009-05-15  Jim Meyering  <meyering@redhat.com>
63635         maint.mk: Give gnulib_dir a default definition.
63636         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
63637         Thus, most packages no longer need to specify this variable in cfg.mk
63639 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
63641         rename.m4: fix typos that would make non-mingw cross-configure fail
63642         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
63644 2009-05-13  Eric Blake  <ebb9@byu.net>
63646         mmap-anon: avoid out-of-order autoconf expansion
63647         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
63648         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
63649         * modules/memchr-tests (Depends-on): Add extensions.
63650         * modules/memchr2-tests (Depends-on): Add extensions.
63651         * modules/memcmp-tests (Depends-on): Add extensions.
63652         * modules/memmem-tests (Depends-on): Add extensions.
63653         * modules/memrchr-tests (Depends-on): Add extensions.
63655 2009-05-13  Bruno Haible  <bruno@clisp.org>
63657         Make some tests ISO C 99 compliant.
63658         * tests/zerosize-ptr.h: New file.
63659         * tests/test-memchr.c: Include zerosize-ptr.h.
63660         (main): Use a zero-size object pointer instead of NULL.
63661         * tests/test-memchr2.c: Include zerosize-ptr.h.
63662         (main): Use a zero-size object pointer instead of NULL.
63663         * tests/test-memcmp.c: Include zerosize-ptr.h.
63664         (main): Use a zero-size object pointer instead of NULL.
63665         * tests/test-memmem.c: Include zerosize-ptr.h.
63666         (main): Use a zero-size object pointer instead of NULL.
63667         * tests/test-memrchr.c: Include zerosize-ptr.h.
63668         (main): Use a zero-size object pointer instead of NULL.
63669         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
63670         m4/mmap-anon.m4.
63671         (Depends-on): Add getpagesize.
63672         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
63673         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
63674         m4/mmap-anon.m4.
63675         (Depends-on): Add getpagesize.
63676         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
63677         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
63678         m4/mmap-anon.m4.
63679         (Depends-on): Add getpagesize.
63680         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
63681         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
63682         m4/mmap-anon.m4.
63683         (Depends-on): Add getpagesize.
63684         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
63685         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
63686         m4/mmap-anon.m4.
63687         (Depends-on): Add getpagesize.
63688         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
63690 2009-05-12  Bruno Haible  <bruno@clisp.org>
63692         Tests for module 'alignof'.
63693         * modules/alignof-tests: New file.
63694         * tests/test-alignof.c: New file.
63696 2009-05-12  Bruno Haible  <bruno@clisp.org>
63698         Fix alignof macro.
63699         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
63700         vendor compilers that are always correct.
63702 2009-05-12  Bruno Haible  <bruno@clisp.org>
63704         Make the MAP_ANONYMOUS detection work on HP-UX 11.
63705         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
63706         not whether its fully works.
63708 2009-05-12  Bruno Haible  <bruno@clisp.org>
63710         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
63712 2009-05-12  Jim Meyering  <meyering@redhat.com>
63714         * top/maint.mk: Adjust backslash alignment.
63716 2009-05-11  Simon Josefsson  <simon@josefsson.org>
63718         * top/maint.mk: Make $(srcdir)/build-aux configurable.
63720 2009-05-11  Eric Blake  <ebb9@byu.net>
63722         argp: avoid undefined behavior
63723         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
63724         macros.
63726 2009-05-08  Simon Josefsson  <simon@josefsson.org>
63728         * tests/test-vc-list-files-git.sh: Do git config of user.email and
63729         user.name to prevent git commit from complaining.
63731 2009-05-10  Bruno Haible  <bruno@clisp.org>
63733         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
63734         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
63735         it rewrites every file name only once.
63736         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
63738 2009-05-08  Bruno Haible  <bruno@clisp.org>
63740         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
63741         instead of 'max'.
63743 2009-05-08  Simon Josefsson  <simon@josefsson.org>
63745         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
63746         sockaddr_storage test.
63748 2009-05-07  Simon Josefsson  <simon@josefsson.org>
63750         * modules/sys_socket (Makefile.am): Substitute
63751         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
63752         * m4/sys_socket_h.m4: Check for sockaddr_storage.
63753         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
63754         * tests/test-sys_socket.c: Check sockaddr_storage.
63756 2009-05-08  Bruno Haible  <bruno@clisp.org>
63758         New module 'alignof'.
63759         * lib/alignof.h: New file.
63760         * modules/alignof: New file.
63762 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
63763             Bruno Haible  <bruno@clisp.org>
63765         Fix test-file-has-acl on FreeBSD.
63766         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
63767         mask is implicitly added.
63768         * tests/test-file-has-acl.c: Include <signal.h>.
63769         (main): Terminate the test after 5 seconds.
63770         * modules/acl-tests (configure.ac): Check for alarm function.
63772 2009-05-04  Bruno Haible  <bruno@clisp.org>
63774         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
63775         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
63776         * modules/errno (configure.ac): Drop AC_REQUIRE.
63777         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
63778         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
63780 2009-05-04  Simon Josefsson  <simon@josefsson.org>
63782         * modules/glob-tests: New module.
63783         * tests/test-glob.c: Add.
63785 2009-05-04  Simon Josefsson  <simon@josefsson.org>
63787         * modules/fnmatch-tests: New module.
63788         * tests/test-fnmatch.c: Add.
63790 2009-05-04  Eric Blake  <ebb9@byu.net>
63792         maint: make the new no-submodule-changes rule VPATH-safe
63793         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
63795 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
63796             Bruno Haible  <bruno@clisp.org>
63798         acl: Fix infinite loop on FreeBSD.
63799         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
63800         of return value from acl_get_entry.
63801         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
63802         Likewise.
63804 2009-05-03  Bruno Haible  <bruno@clisp.org>
63806         * lib/acl-internal.h (acl_entries): Clarify return value.
63807         * lib/acl_entries.c (acl_entries): Likewise.
63809 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
63811         Bug fix in acl module.
63812         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
63814 2009-05-03  Bruno Haible  <bruno@clisp.org>
63816         Create gperf-generated file in the source dir, not in the build dir.
63817         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
63818         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
63819         * modules/unicase/locale-language (unicase/locale-languages.h):
63820         Likewise.
63821         * modules/unicase/special-casing (unicase/special-casing-table.h):
63822         Likewise.
63823         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
63824         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
63825         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
63826         Reported by Ralf Wildenhues.
63828 2009-05-03  Bruno Haible  <bruno@clisp.org>
63830         * modules/fnmatch (Description, configure.ac): Taken from
63831         fnmatch-posix.
63832         * modules/fnmatch-posix: Turn into a symbolic reference to the
63833         'fnmatch' module, and deprecate.
63834         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
63836 2009-05-03  Bruno Haible  <bruno@clisp.org>
63838         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
63839         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
63840         Reported by Ralf Wildenhues.
63842 2009-05-04  Simon Josefsson  <simon@josefsson.org>
63844         * m4/fnmatch.m4: Fix fnmatch re-define.
63846 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
63848         priv-set: new module and tests; adapt write-any-file
63849         * lib/priv-set.c: New file.
63850         * lib/priv-set.h: New file.
63851         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
63852         * lib/write-any-file.c: Simplify by using priv-set module.
63853         * m4/priv-set.m4: New file.
63854         * modules/priv-set: New file.
63855         * modules/unlinkdir: Add dependency on priv-set module.
63856         * modules/write-any-file: Likewise.
63858         Tests for module 'priv-set'.
63859         * modules/priv-set-tests: New file.
63860         * tests/test-priv-set.c: New file.
63862 2009-05-03  Jim Meyering  <meyering@redhat.com>
63863             Bruno Haible  <bruno@clisp.org>
63865         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
63866         use the converted UTF-8 variant of the name instead.
63868 2009-05-03  Jim Meyering  <meyering@redhat.com>
63870         tests: tighten some getdate tests
63871         * tests/test-getdate.c (main): Tighten tests: require equality,
63872         not just greater than.  Set TZ envvar to UTC0.
63874 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
63876         getdate: correctly interpret "next monday" when run on a Monday
63877         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
63878         that e.g., "next tues" (when run on a tuesday) results in a date
63879         that is one week in the future, and not today's date.
63880         I.e., add a week when the wday is the same as the current one.
63881         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
63882         and earlier by Martin Bernreuther and Jan Minář.
63883         * tests/test-getdate.c (main): Check that "next DAY" is always in
63884         the future and that "last DAY" is always in the past.
63886 2009-05-02  Jim Meyering  <meyering@redhat.com>
63888         build: ensure that a release build fails when a submodule is unclean
63889         * top/maint.mk (no-submodule-changes): New rule.
63890         (alpha beta major): Depend on it.
63892 2009-05-02  Bruno Haible  <bruno@clisp.org>
63894         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
63895         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
63896         shell variable gl_fnmatch_required to detect which variant is
63897         requested.
63898         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
63899         gl_FUNC_FNMATCH_POSIX.
63900         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
63901         exclude fnmatch-posix.
63903 2009-05-02  Bruno Haible  <bruno@clisp.org>
63905         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
63906         * modules/mbsrtowcs (License): Change to LGPLv2+.
63907         * modules/strnlen1 (License): Likewise.
63908         Reported by Simon Josefsson.
63910 2009-05-02  Bruno Haible  <bruno@clisp.org>
63912         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
63913         "cross".
63914         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
63915         gnulib-tool was called with option --source-base=lib.
63917 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63919         Use automake *-local hooks without commands, for extensibility.
63920         * modules/localcharset (Makefile.am): Rename install-exec-local
63921         rule to install-exec-localcharset, and make it a prerequisite of
63922         install-exec-local.  Likewise, rename the uninstall-local rule to
63923         uninstall-localcharset, and make it a prerequisite of the former.
63925 2009-05-01  Bruno Haible  <bruno@clisp.org>
63927         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
63928         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
63929         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
63930         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
63931         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
63932         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
63933         m4/locale-zh.m4, m4/codeset.m4.
63935         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
63936         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
63937         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
63938         m4/locale-zh.m4.
63940         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
63941         REPLACE_WCRTOMB if mbstate_t must be replaced.
63942         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
63943         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
63945 2009-05-01  Bruno Haible  <bruno@clisp.org>
63947         Avoid compiler warnings when redefining macros defined by <libintl.h>.
63948         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
63949         dngettext, dcngettext, textdomain, bindtextdomain,
63950         bind_textdomain_codeset): Undefine before redefining.
63952 2009-04-30  Bruno Haible  <bruno@clisp.org>
63954         Fix bug introduced on 2009-04-25.
63955         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
63956         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
63957         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
63958         is defined.
63959         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
63960         is defined.
63961         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
63962         is defined.
63963         Reported by Elbert_Pol <elbert.pol@gmail.com>.
63965 2009-04-28  Bruno Haible  <bruno@clisp.org>
63967         Comment tweaks.
63968         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
63969         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
63970         * lib/unicase.h (u*_casexfrm): Likewise.
63971         Reported by Paolo Bonzini.
63973 2009-04-28  Bruno Haible  <bruno@clisp.org>
63975         Fix a compilation error.
63976         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
63977         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
63978         Reported by Jim Meyering.
63980 2009-04-27  Bruno Haible  <bruno@clisp.org>
63982         New module 'libunistring'.
63983         * modules/libunistring: New file.
63984         * m4/libunistring.m4: New file.
63985         * MODULES.html.sh (Unicode string functions): Add it.
63987 2009-04-27  Eric Blake  <ebb9@byu.net>
63989         maint.mk: allow package-specific header to provide <config.h>
63990         * top/maint.mk (sc_require_config_h): New variable.
63991         (sc_require_config_h, sc_require_config_h_first): Use it.
63993 2009-04-27  Simon Josefsson  <simon@josefsson.org>
63995         * top/maint.mk (sc_avoid_if_before_free): Except
63996         useless-if-before-free script.
63998 2009-04-27  Eric Blake  <ebb9@byu.net>
64000         maintainer-makefile: depend on all required helper scripts
64001         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
64002         useless-if-before-free.
64003         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
64004         version, rather than assuming gnulib checkout is available.
64005         Reported by Simen Josefsson.
64007 2009-04-26  Bruno Haible  <bruno@clisp.org>
64009         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
64010         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
64011         "../" or "..".
64013 2009-04-26  Bruno Haible  <bruno@clisp.org>
64015         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
64016         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
64017         AC_LIB_HAVE_LINKFLAGS.
64019 2009-04-26  Bruno Haible  <bruno@clisp.org>
64021         Simplify calling convention of u*_conv_from_encoding.
64022         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
64023         u32_conv_from_encoding): Expect a resultbuf argument and return the
64024         result directly as a pointer.
64025         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
64026         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
64027         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
64028         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
64029         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
64030         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
64031         Update.
64032         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
64033         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
64034         * lib/vasnprintf.c (VASNPRINTF): Update.
64035         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
64036         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
64037         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
64038         * NEWS: Mention the change.
64040 2009-04-26  Bruno Haible  <bruno@clisp.org>
64042         Simplify calling convention of u*_conv_to_encoding.
64043         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
64044         u32_conv_to_encoding): Expect a resultbuf argument and return the
64045         result directly as a pointer.
64046         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
64047         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
64048         freeing scaled_offsets if mem_iconveha failed.
64049         * lib/unicase/u-casexfrm.h (FUNC): Update.
64050         * lib/uninorm/u-normxfrm.h (FUNC): Update.
64051         * lib/vasnprintf.c (VASNPRINTF): Update.
64052         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
64053         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
64054         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
64055         * NEWS: Mention the change.
64057 2009-04-26  Bruno Haible  <bruno@clisp.org>
64059         Avoid test failures on AIX and OSF/1.
64060         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
64061         malloc(0).
64062         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
64063         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
64064         Likewise.
64065         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
64066         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
64067         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
64068         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
64069         * doc/posix-functions/malloc.texi: Document the portability problem
64070         related to malloc(0).
64072 2009-04-26  Bruno Haible  <bruno@clisp.org>
64074         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
64075         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
64076         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
64078 2009-04-25  Bruno Haible  <bruno@clisp.org>
64080         Avoid link error when creating a namespace clean library.
64081         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
64082         as macro with arguments if already defined as an alias.
64083         * lib/signbitf.c (gl_signbitf): Don't undefine.
64084         * lib/signbitd.c (gl_signbitd): Don't undefine.
64085         * lib/signbitl.c (gl_signbitl): Don't undefine.
64087 2009-04-25  Jim Meyering  <meyering@redhat.com>
64089         vc-list-files: fix another quoting bug
64090         * build-aux/vc-list-files: Avoid sed backslash expansion
64091         of pathological directory names.
64093 2009-04-25  Eric Blake  <ebb9@byu.net>
64095         vc-list-files: fix shell quoting error
64096         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
64097         timestamp.
64099 2009-04-25  Jim Meyering  <meyering@redhat.com>
64101         vc-list-files: restore lost functionality with subdir argument
64102         * build-aux/vc-list-files: When given a non-"." sub-directory
64103         argument, substitute the $dir/ prefix back onto each resulting name.
64104         Otherwise, coreutils' root_tests check would fail.
64106 2009-04-24  Eric Blake  <ebb9@byu.net>
64108         vc-list-files: ignore git symlinks
64109         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
64110         than ls-files, to ignore git symlinks.
64112         maint.mk: import improvements from m4
64113         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
64114         (move_if_change): Delete unused macro.
64115         (news-date-check, vc-diff-check): Support VPATH builds.
64116         (announcement): Likewise.  Split --bootstrap-tools list...
64117         (boostrap-tools): ...into separate list, which can be overridden
64118         in cfg.mk.
64119         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
64120         requiring dependency on useless-if-before-free module.
64121         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
64122         Support VPATH builds.
64124 2009-04-24  Jim Meyering  <meyering@redhat.com>
64126         maint.mk: remove coreutils-specific rules and variables
64127         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
64128         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
64129         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
64131         maint.mk: remove obsolete rule
64132         * top/maint.mk (rel-check): Remove rule.
64133         (WGET, WGETFLAGS): Remove now-unused variables.
64135 2009-04-24  Simon Josefsson  <simon@josefsson.org>
64137         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
64138         consistency.
64140         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
64141         '$(PATH_SEPARATOR)' instead of ':'.
64143 2009-04-24  Simon Josefsson  <simon@josefsson.org>
64145         * lib/getopt1.c (main): Use 'const' for static array.
64147 2009-04-24  Simon Josefsson  <simon@josefsson.org>
64149         * top/maint.mk: Sync with coreutils.
64150         * NEWS: Explain incompatibilities.
64152 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
64153             Bruno Haible  <bruno@clisp.org>
64155         Fix cross-compilation results.
64156         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
64157         statement, as third argument of AC_TRY_RUN.
64158         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
64159         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
64160         Likewise.
64161         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
64162         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
64163         Likewise.
64164         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
64165         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
64166         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
64168 2009-04-20  Bruno Haible  <bruno@clisp.org>
64170         Avoid test failure on mingw.
64171         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
64173 2009-04-20  Bruno Haible  <bruno@clisp.org>
64175         Avoid compilation error on mingw.
64176         * modules/localename-tests (Depends-on): Add locale.
64178 2009-04-19  Bruno Haible  <bruno@clisp.org>
64180         Support for building a shared library on Windows platforms.
64181         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
64182         (main): Test the presence of UNINORM_NFC here.
64183         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
64184         (main): Test the presence of UNINORM_NFD here.
64185         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
64186         (main): Test the presence of UNINORM_NFKC here.
64187         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
64188         (main): Test the presence of UNINORM_NFKD here.
64190 2009-04-19  Bruno Haible  <bruno@clisp.org>
64192         Avoid a compiler warning.
64193         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
64194         Change type of variable 'sequence'.
64196 2009-04-19  Bruno Haible  <bruno@clisp.org>
64198         * modules/configmake (Makefile.am): When the contents of configmake.h
64199         does not change, arrange to preserve its modification time.
64201 2009-04-17  Simon Josefsson  <simon@josefsson.org>
64203         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
64204         gettext domain.
64206 2009-04-16  Jim Meyering  <meyering@redhat.com>
64208         useless-if-before-free: improve conversion code
64209         * build-aux/useless-if-before-free: Adjust code-in-comment to match
64210         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
64212 2009-04-14  Bruno Haible  <bruno@clisp.org>
64214         * modules/fcntl (Depends-on): Add extensions.
64215         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
64217 2009-04-12  Ben Pfaff  <blp@gnu.org>
64219         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
64220         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
64222 2009-03-20  Ben Pfaff  <blp@gnu.org>
64224         Make rename replace existing destinations on Windows.
64225         * m4/rename.m4: Add test for Mingw.
64226         * lib/rename.c: Add rename replacement that uses MoveFileEx with
64227         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
64228         * doc/posix-functions/rename.texi: Document.
64230 2009-04-10  Bruno Haible  <bruno@clisp.org>
64232         New include file "iconveh.h".
64233         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
64234         * lib/striconveh.h: Include it.
64235         (enum iconv_ilseq_handler): Remove definition.
64236         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
64237         striconveh.h.
64238         * lib/striconveha.c: Include striconveh.h.
64239         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
64240         * modules/striconveh (Files): Add lib/iconveh.h.
64241         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
64242         lib/striconveh.h.
64244 2009-04-10  Bruno Haible  <bruno@clisp.org>
64246         * lib/uniconv.h: Update comment.
64248 2009-04-10  Bruno Haible  <bruno@clisp.org>
64250         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
64251         always.
64252         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
64253         * lib/unistr/u16-mbtouc-aux.c: Likewise.
64254         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
64255         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
64256         "unistring-notinline.h", so that the function gets defined always.
64257         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
64258         * lib/unistr/u8-uctomb.c: Likewise.
64259         * lib/unistr/u16-mbtouc.c: Likewise.
64260         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
64261         * lib/unistr/u16-uctomb.c: Likewise.
64262         * lib/unistr/u32-mbtouc.c: Likewise.
64263         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
64264         * lib/unistr/u32-uctomb.c: Likewise.
64266 2009-04-10  Bruno Haible  <bruno@clisp.org>
64268         Mark 'utime' obsolete.
64269         * modules/utime (Status, Notice): New sections.
64270         Suggested by Jim Meyering.
64272         Fix cross-compile guess for utime test.
64273         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
64274         autoconf.
64275         * doc/posix-functions/utime.texi: Give more precisions.
64276         Reported by Jan <ipif@ymail.com>.
64278 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
64280         filevercmp: correct today's change
64281         * lib/filevercmp.c: Also handle coreutils' test inputs.
64282         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
64284         Fix regression in 'filevercmp' module. Thanks Sven Joachim
64285         for reporting it.
64286         * lib/filevercmp.c: Special handle for "", "." and "..".
64287         * tests/test-filevercmp.c: Enlarge the set suite.
64289 2009-04-07  Jim Meyering  <meyering@redhat.com>
64291         useless-if-before-free: show how to remove braced useless free, too
64292         * build-aux/useless-if-before-free: still only in a comment, though.
64294 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
64296         maint.mk: import changes to syntax-check macros from coreutils
64297         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
64298         Use them in the relevant macros.
64300 2009-04-06  Bruno Haible  <bruno@clisp.org>
64302         Fix unportable use of bit-fields.
64303         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
64304         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
64305         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
64307 2009-04-06  Bruno Haible  <bruno@clisp.org>
64309         Avoid test failures on AIX and OSF/1.
64310         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
64311         that malloc(0) = NULL.
64312         * tests/unicase/test-u8-tolower.c (check): Likewise.
64313         * tests/unicase/test-u8-totitle.c (check): Likewise.
64314         * tests/unicase/test-u8-toupper.c (check): Likewise.
64315         * tests/unicase/test-u16-casefold.c (check): Likewise.
64316         * tests/unicase/test-u16-tolower.c (check): Likewise.
64317         * tests/unicase/test-u16-totitle.c (check): Likewise.
64318         * tests/unicase/test-u16-toupper.c (check): Likewise.
64319         * tests/unicase/test-u32-casefold.c (check): Likewise.
64320         * tests/unicase/test-u32-tolower.c (check): Likewise.
64321         * tests/unicase/test-u32-totitle.c (check): Likewise.
64322         * tests/unicase/test-u32-toupper.c (check): Likewise.
64323         * tests/uninorm/test-u8-nfc.c (check): Likewise.
64324         * tests/uninorm/test-u8-nfd.c (check): Likewise.
64325         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
64326         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
64327         * tests/uninorm/test-u16-nfc.c (check): Likewise.
64328         * tests/uninorm/test-u16-nfd.c (check): Likewise.
64329         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
64330         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
64331         * tests/uninorm/test-u32-nfc.c (check): Likewise.
64332         * tests/uninorm/test-u32-nfd.c (check): Likewise.
64333         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
64334         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
64336 2009-04-05  Bruno Haible  <bruno@clisp.org>
64338         Work around an autoconf limitation.
64339         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
64340         comment line if it would be longer than 3 KB.
64342 2009-04-05  Bruno Haible  <bruno@clisp.org>
64344         Avoid test failure with libiconv-1.13.
64345         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
64346         of the expected test results.
64348 2009-04-05  Bruno Haible  <bruno@clisp.org>
64350         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
64351         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
64352         that it should be installed.
64354 2009-04-05  Bruno Haible  <bruno@clisp.org>
64356         * gnulib-tool: New option --copy-file.
64357         (func_usage): Document it.
64358         (func_dest_tmpfilename): Moved out of func_import.
64359         (func_add_file, func_update_file): New functions, extracted from
64360         func_import.
64361         (func_import): Update.
64363 2009-04-05  Karl Berry  <karl@gnu.org>
64365         * README: prominently mention gnulib-tool.
64366         Rearrange sections so getting the code is near the top.
64368 2009-04-05  Bruno Haible  <bruno@clisp.org>
64370         * lib/unicase.h: Mention u*_cmp2.
64371         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
64372         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
64373         * lib/unicase/ulc-casecmp.c: Likewise.
64374         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
64375         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
64376         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
64377         unistr/u8-cmp.
64378         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
64379         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
64380         unistr/u16-cmp.
64381         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
64382         unistr/u32-cmp.
64384         * lib/uninorm.h: Mention u*_cmp2.
64385         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
64386         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
64387         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
64388         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
64389         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
64390         unistr/u8-cmp.
64391         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
64392         unistr/u16-cmp.
64393         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
64394         unistr/u32-cmp.
64396         New module 'unistr/u32-cmp2'.
64397         * lib/unistr/u32-cmp2.c: New file.
64398         * modules/unistr/u32-cmp2: New file.
64400         New module 'unistr/u16-cmp2'.
64401         * lib/unistr/u16-cmp2.c: New file.
64402         * modules/unistr/u16-cmp2: New file.
64404         New module 'unistr/u8-cmp2'.
64405         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
64406         * lib/unistr/u8-cmp2.c: New file.
64407         * lib/unistr/u-cmp2.h: New file.
64408         * modules/unistr/u8-cmp2: New file.
64410 2009-04-05  Bruno Haible  <bruno@clisp.org>
64412         * lib/unictype.h (uc_property_is_valid): New macro.
64413         * tests/unictype/test-pr_byname.c (main): Use it.
64415         * lib/unistr.h: Doc fixes.
64416         * lib/uniconv.h: Doc fixes.
64417         * lib/unictype.h: Doc fixes.
64419 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
64421         Port coreutils 7.2 to Solaris 8.
64423         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
64424         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
64425         for Solaris 8.  This is a bit of a hack, as it means it's the
64426         caller's responsibility to add -lnsl if needed, but most likely it
64427         won't be needed since only getaddrinfo uses this and getaddrinfo
64428         isn't needed on Solaris 8.
64430         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
64431         problem to Solaris 8 encountered with coreutils 7.2, which
64432         resulted in a message "fnmatch.c:292: warning: passing argument 4
64433         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
64434         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
64436 2009-04-03  Simon Josefsson  <simon@josefsson.org>
64438         * m4/ld-version-script.m4: Add FIXME comment.
64440 2009-04-02  Simon Josefsson  <simon@josefsson.org>
64442         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
64443         SOVERSION variable.
64445 2009-04-02  Bruno Haible  <bruno@clisp.org>
64447         * Makefile (info, html, dvi, pdf): Combine the rules.
64448         Suggested by Jim Meyering.
64450 2009-04-01  Bruno Haible  <bruno@clisp.org>
64452         * Makefile (info, html, dvi, pdf): New targets.
64453         Reported by Reuben Thomas <rrt@sc3d.org>.
64455 2009-04-01  Bruno Haible  <bruno@clisp.org>
64457         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
64458         can be put into PATH.
64459         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
64461 2009-04-01  Bruno Haible  <bruno@clisp.org>
64463         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
64465 2009-04-01  Bruno Haible  <bruno@clisp.org>
64467         Rename module 'visibility'.
64468         * modules/lib-symbol-visibility: Renamed from modules/visibility.
64469         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
64470         * doc/gnulib.texi: Update.
64471         * MODULES.html.sh (Misc): Update.
64472         * NEWS: Mention the change.
64474 2009-04-01  Simon Josefsson  <simon@josefsson.org>
64476         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
64477         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
64478         Eric Blake <ebb9@byu.net> for review.
64479         * MODULES.html.sh: Add lib-msvc-compat.
64480         * doc/gnulib.texi: Link to new section.
64481         * m4/ld-output-def.m4: New file.
64482         * doc/ld-output-def.texi: New file.
64484 2009-04-01  Simon Josefsson  <simon@josefsson.org>
64486         Rename ld-version-script to lib-symbol-versions.  Suggested by
64487         Bruno Haible <bruno@clisp.org>.
64488         * modules/ld-version-script: Renamed to lib-symbol-versions.
64489         * doc/ld-version-script.texi: Fix module name.
64490         * MODULES.html.sh: Add lib-symbol-versions.
64492 2009-03-31  Simon Josefsson  <simon@josefsson.org>
64494         * modules/u64-tests: New file.
64495         * tests/test-u64.c: New file.
64497 2009-03-04  Simon Josefsson  <simon@josefsson.org>
64499         * MODULES.html.sh: Mention u64.
64500         * modules/u64: New module.
64501         * modules/crypto/sha512: Depend on u64 module instead of providing
64502         u64.h.
64504 2009-03-27  Eric Blake  <ebb9@byu.net>
64506         test-strerror: make debugging EAI_SYSTEM easier
64507         * modules/getaddrinfo-tests (Depends-on): Add strerror.
64508         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
64509         failure was EAI_SYSTEM.
64511 2009-03-25  Bruno Haible  <bruno@clisp.org>
64513         Fix a problem with --enable-relocatable on Solaris 7.
64514         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
64515         since 2008-02-24.
64517 2009-03-25  Eric Blake  <ebb9@byu.net>
64519         test-sockets: avoid gcc warning
64520         * tests/test-sockets.c (main): Silence compiler warning.
64522 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
64524         New modules nproc, pthread, contributed by Glen Lenker.
64526         * MODULES.html.sh: Add pthread, nproc.
64527         * lib/nproc.c: New file.
64528         * lib/nproc.h: New file.
64529         * lib/pthread.in.h: New file.
64530         * m4/pthread.m4: New file.
64531         * modules/nproc: New file.
64532         * modules/pthread: New file.
64534 2009-03-24  Simon Josefsson  <simon@josefsson.org>
64536         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
64537         New variable.
64539 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
64541         filevercmp: handle simple~ and numbered.~3~ backup suffixes
64542         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
64543         * tests/test-filevercmp.c: Add tests for backup suffixes.
64545 2009-03-24  Simon Josefsson  <simon@josefsson.org>
64547         * modules/stdlib (Depends-on): Add stdint, needed when defining
64548         struct random_data on, for example, HP-UX 10.20.  Reported by
64549         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
64551 2009-03-24  Simon Josefsson  <simon@josefsson.org>
64553         * lib/readline.c (readline): Call fflush on stdout after printing
64554         prompt.
64556 2009-03-20  Bruno Haible  <bruno@clisp.org>
64558         Remove dependency from 'close' module to -lws2_32 on native Windows.
64559         * lib/close-hook.h: New file.
64560         * lib/close-hook.c: New file.
64561         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
64562         w32sock.h.
64563         (_gl_close_fd_maybe_socket): Remove function.
64564         (rpl_close): Invoke execute_all_close_hooks instead of
64565         _gl_close_fd_maybe_socket.
64566         * lib/sockets.c: Include close-hook.h, w32sock.h.
64567         (close_fd_maybe_socket): New function, essentially from lib/close.c.
64568         (close_sockets_hook): New variable.
64569         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
64570         (gl_sockets_cleanup): Unregister it.
64571         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
64572         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
64573         * modules/close-hook: New file.
64574         * modules/close (Files): Remove lib/w32sock.h.
64575         (Depends-on): Add close-hook.
64576         (Link): Remove section.
64577         * modules/sockets (Files): Add lib/w32sock.h.
64578         (Depends-on): Add close-hook.
64579         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
64580         invocation.
64581         * NEWS: Mention that LIB_CLOSE is gone.
64583 2009-03-23  Eric Blake  <ebb9@byu.net>
64585         signal-tests: test previous patch
64586         * tests/test-signal.c: New file.
64587         * modules/signal-tests: Likewise.
64589         signal.h: always support 'volatile sig_atomic_t'
64590         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
64591         (gl_SIGNAL_H_DEFAULTS): Add a default.
64592         * modules/signal (Makefile.am): Substitute if needed.
64593         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
64594         users can blindly add volatile.
64595         * doc/posix-headers/signal.texi (signal.h): Document it.
64596         Reported by Matthew Woehlke.
64598 2009-03-23  Jim Meyering  <meyering@redhat.com>
64600         pathmax: PATH_MAX: use pathconf only when available
64601         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
64602         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
64603         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
64604         This avoids a link failure in a PSP cross-compilation environment
64605         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
64607         * lib/vasnprintf.c (divide): Fix typo in comment.
64609 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64611         * gnulib-tool (func_filter_filelist): Fix comment.
64613 2009-03-20  Bruno Haible  <bruno@clisp.org>
64615         Make sockets.h self-contained.
64616         * lib/sockets.c: Include sockets.h first.
64617         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
64619 2009-03-19  Eric Blake  <ebb9@byu.net>
64621         doc: mention more functions added in cygwin 1.7.0
64622         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
64623         addition.
64624         * doc/posix-functions/log2f.texi: Likewise.
64626 2009-03-19  Jim Meyering  <meyering@redhat.com>
64628         fsusage: avoid syntax error due to statement-before-declaration
64629         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
64630         after all declarations.  Reported by Matthew Woehlke in
64631         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
64633 2009-03-18  Eric Blake  <ebb9@byu.net>
64635         build-aux/compile: sync from automake
64636         * build-aux/compile: New file, from automake.
64637         * config/srclist.txt: Mention build-aux/compile.
64639 2009-03-17  Bruno Haible  <bruno@clisp.org>
64641         * lib/git-merge-changelog.c: Fix typo in comment.
64642         Reported by Reuben Thomas <rrt@sc3d.org>.
64644 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
64646         * m4/regex.m4: update and improve help for
64647         --without-included-regex.
64649 2009-03-17  Simon Josefsson  <simon@josefsson.org>
64651         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
64652         failure on missing include files.
64654 2009-03-17  Eric Blake  <ebb9@byu.net>
64656         doc: mention more functions added in cygwin 1.7.0
64657         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
64658         addition.
64659         * doc/posix-functions/fwscanf.texi: Likewise.
64660         * doc/posix-functions/swprintf.texi: Likewise.
64661         * doc/posix-functions/swscanf.texi: Likewise.
64662         * doc/posix-functions/vfwprintf.texi: Likewise.
64663         * doc/posix-functions/vfwscanf.texi: Likewise.
64664         * doc/posix-functions/vswprintf.texi: Likewise.
64665         * doc/posix-functions/vswscanf.texi: Likewise.
64666         * doc/posix-functions/vwprintf.texi: Likewise.
64667         * doc/posix-functions/vwscanf.texi: Likewise.
64668         * doc/posix-functions/wcscasecmp.texi: Likewise.
64669         * doc/posix-functions/wcsdup.texi: Likewise.
64670         * doc/posix-functions/wcsftime.texi: Likewise.
64671         * doc/posix-functions/wcsncasecmp.texi: Likewise.
64672         * doc/posix-functions/wprintf.texi: Likewise.
64673         * doc/posix-functions/wscanf.texi: Likewise.
64674         * doc/glibc-functions/gethostbyname2.texi: Likewise.
64676 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64678         maint.mk: really add $(AM_MAKEFLAGS)
64679         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
64680         was inadvertently omitted in the last commit.
64681         Spotted by Bruno Haible.
64683         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
64684         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
64685         $(AM_MAKEFLAGS)' rather than plain `make'.
64687         gnulib-tool: execute $MAKE not make
64688         * gnulib-tool: Default $MAKE to 'make'.
64689         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
64690         than make.  Initialize $MAKE in the do-autobuild script.
64692         gnulib-tool: use $MAKE not make in generated files
64693         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
64694         make, in generated files.  Initialize $MAKE in the do-autobuild
64695         script.
64697         * top/GNUmakefile (_have-git-version-gen): Fix typo.
64699         GNUmakefile: disable parallelism only for multiple, recursive targets
64700         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
64701         additions in the Makefile.
64702         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
64703         by Automake.
64704         (.NOTPARALLEL): Only disable parallel builds if multiple targets
64705         are listed on the command line and at least one of them is
64706         listed in $(ALL_RECURSIVE_TARGETS).
64708 2009-03-14  Bruno Haible  <bruno@clisp.org>
64710         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
64711         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
64712         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
64713         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
64714         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
64715         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
64716         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
64717         unistr/u8-uctomb.
64718         * modules/unistr/u8-strchr (Depends-on): Likewise.
64719         * modules/unistr/u8-strrchr (Depends-on): Likewise.
64720         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
64721         unistr/u16-uctomb.
64722         * modules/unistr/u16-strchr (Depends-on): Likewise.
64723         * modules/unistr/u16-strrchr (Depends-on): Likewise.
64725 2009-03-12  Bruno Haible  <bruno@clisp.org>
64727         Work around select() bug on Interix 3.5.
64728         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
64729         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
64730         * m4/select.m4: New file.
64731         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
64732         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
64733         * modules/select (Files): Add m4/select.m4.
64734         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
64735         * modules/nanosleep (Depends-on): Add select.
64736         * modules/poll (Depends-on): Likewise.
64737         * doc/posix-functions/select.texi: Mention the Interix bug.
64738         Reported by Markus Duft <mduft@gentoo.org>.
64740         * lib/select.c: Renamed from lib/winsock-select.c.
64741         * modules/select (Files): Add lib/select.c, remove
64742         lib/winsock-select.c.
64743         (configure.ac): Update.
64745 2009-03-12  Jim Meyering  <meyering@redhat.com>
64747         avoid gcc warnings about unused macro definitions
64748         * lib/readtokens.c (STREQ): Remove unused definition.
64749         * lib/xmalloc.c (SIZE_MAX): Likewise.
64750         * lib/openat-die.c (N_): Likewise.
64751         * lib/mountlist.c (SIZE_MAX): Remove definition.
64752         Instead, include <stdint.h>.
64753         * lib/readutmp.c: Likewise.
64754         * modules/readutmp (Depends-on): Add stdint.
64755         * modules/mountlist (Depends-on): Add stdint.
64756         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
64758 2009-03-10  Bruno Haible  <bruno@clisp.org>
64760         Tests for module 'mbmemcasecoll'.
64761         * modules/mbmemcasecoll-tests: New file.
64762         * tests/test-mbmemcasecoll1.sh: New file.
64763         * tests/test-mbmemcasecoll2.sh: New file.
64764         * tests/test-mbmemcasecoll3.sh: New file.
64765         * tests/test-mbmemcasecoll.c: New file.
64767         New module 'mbmemcasecoll'.
64768         * lib/mbmemcasecoll.h: New file.
64769         * lib/mbmemcasecoll.c: New file.
64770         * modules/mbmemcasecoll: New file.
64772         * tests/test-mbmemcasecmp.h: New file, extracted from
64773         tests/test-mbmemcasecmp.c.
64774         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
64775         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
64776         (main): Update.
64777         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
64779 2009-03-09  Bruno Haible  <bruno@clisp.org>
64781         Tests for module 'mbmemcasecmp'.
64782         * modules/mbmemcasecmp-tests: New file.
64783         * tests/test-mbmemcasecmp1.sh: New file.
64784         * tests/test-mbmemcasecmp2.sh: New file.
64785         * tests/test-mbmemcasecmp3.sh: New file.
64786         * tests/test-mbmemcasecmp.c: New file.
64788         New module 'mbmemcasecmp'.
64789         * lib/mbmemcasecmp.h: New file.
64790         * lib/mbmemcasecmp.c: New file.
64791         * modules/mbmemcasecmp: New file.
64793 2009-03-09  Bruno Haible  <bruno@clisp.org>
64795         Tests for module 'unicase/ulc-casecoll'.
64796         * modules/unicase/ulc-casecoll-tests: New file.
64797         * tests/unicase/test-ulc-casecoll1.sh: New file.
64798         * tests/unicase/test-ulc-casecoll2.sh: New file.
64799         * tests/unicase/test-ulc-casecoll.c: New file.
64801         New module 'unicase/ulc-casecoll'.
64802         * lib/unicase.h (ulc_casecoll): New declaration.
64803         * lib/unicase/ulc-casecoll.c: New file.
64804         * modules/unicase/ulc-casecoll: New file.
64806         New module 'unicase/ulc-casexfrm'.
64807         * lib/unicase.h (ulc_casexfrm): New declaration.
64808         * lib/unicase/ulc-casexfrm.c: New file.
64809         * modules/unicase/ulc-casexfrm: New file.
64811 2009-03-09  Bruno Haible  <bruno@clisp.org>
64813         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
64814         invocations.
64816         * m4/mbscasecmp.m4: Remove file.
64817         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
64818         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
64820         * m4/mbscasestr.m4: Remove file.
64821         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
64822         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
64824         * m4/mbschr.m4: Remove file.
64825         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
64826         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
64828         * m4/mbscspn.m4: Remove file.
64829         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
64830         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
64832         * m4/mbslen.m4: Remove file.
64833         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
64834         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
64836         * m4/mbsncasecmp.m4: Remove file.
64837         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
64838         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
64840         * m4/mbsnlen.m4: Remove file.
64841         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
64842         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
64844         * m4/mbspbrk.m4: Remove file.
64845         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
64846         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
64848         * m4/mbspcasecmp.m4: Remove file.
64849         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
64850         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
64852         * m4/mbsrchr.m4: Remove file.
64853         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
64854         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
64856         * m4/mbssep.m4: Remove file.
64857         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
64858         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
64860         * m4/mbsspn.m4: Remove file.
64861         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
64862         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
64864         * m4/mbsstr.m4: Remove file.
64865         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
64866         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
64868         * m4/mbstok_r.m4: Remove file.
64869         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
64870         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
64872         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
64874         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
64875         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
64877         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
64879 2009-03-08  Bruno Haible  <bruno@clisp.org>
64881         Tests for module 'unicase/ulc-casecmp'.
64882         * modules/unicase/ulc-casecmp-tests: New file.
64883         * tests/unicase/test-ulc-casecmp1.sh: New file.
64884         * tests/unicase/test-ulc-casecmp2.sh: New file.
64885         * tests/unicase/test-ulc-casecmp.c: New file.
64887         New module 'unicase/ulc-casecmp'.
64888         * lib/unicase.h (ulc_casecmp): New declaration.
64889         * lib/unicase/ulc-casecmp.c: New file.
64890         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
64891         'const SRC_UNIT *'.
64892         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
64893         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
64894         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
64895         * modules/unicase/ulc-casecmp: New file.
64897         Tests for module 'unicase/u32-is-cased'.
64898         * modules/unicase/u32-is-cased-tests: New file.
64899         * tests/unicase/test-u32-is-cased.c: New file.
64901         Tests for module 'unicase/u16-is-cased'.
64902         * modules/unicase/u16-is-cased-tests: New file.
64903         * tests/unicase/test-u16-is-cased.c: New file.
64905         Tests for module 'unicase/u8-is-cased'.
64906         * modules/unicase/u8-is-cased-tests: New file.
64907         * tests/unicase/test-u8-is-cased.c: New file.
64908         * tests/unicase/test-is-cased.h: New file.
64910         New module 'unicase/u32-is-cased'.
64911         * lib/unicase/u32-is-cased.c: New file.
64912         * modules/unicase/u32-is-cased: New file.
64914         New module 'unicase/u16-is-cased'.
64915         * lib/unicase/u16-is-cased.c: New file.
64916         * modules/unicase/u16-is-cased: New file.
64918         New module 'unicase/u8-is-cased'.
64919         * lib/unicase/u8-is-cased.c: New file.
64920         * lib/unicase/u-is-cased.h: New file.
64921         * modules/unicase/u8-is-cased: New file.
64923         Tests for module 'unicase/u32-is-casefolded'.
64924         * modules/unicase/u32-is-casefolded-tests: New file.
64925         * tests/unicase/test-u32-is-casefolded.c: New file.
64927         Tests for module 'unicase/u16-is-casefolded'.
64928         * modules/unicase/u16-is-casefolded-tests: New file.
64929         * tests/unicase/test-u16-is-casefolded.c: New file.
64931         Tests for module 'unicase/u8-is-casefolded'.
64932         * modules/unicase/u8-is-casefolded-tests: New file.
64933         * tests/unicase/test-u8-is-casefolded.c: New file.
64934         * tests/unicase/test-is-casefolded.h: New file.
64936         New module 'unicase/u32-is-casefolded'.
64937         * lib/unicase/u32-is-casefolded.c: New file.
64938         * modules/unicase/u32-is-casefolded: New file.
64940         New module 'unicase/u16-is-casefolded'.
64941         * lib/unicase/u16-is-casefolded.c: New file.
64942         * modules/unicase/u16-is-casefolded: New file.
64944         New module 'unicase/u8-is-casefolded'.
64945         * lib/unicase/u8-is-casefolded.c: New file.
64946         * modules/unicase/u8-is-casefolded: New file.
64948         Tests for module 'unicase/u32-is-titlecase'.
64949         * modules/unicase/u32-is-titlecase-tests: New file.
64950         * tests/unicase/test-u32-is-titlecase.c: New file.
64952         Tests for module 'unicase/u16-is-titlecase'.
64953         * modules/unicase/u16-is-titlecase-tests: New file.
64954         * tests/unicase/test-u16-is-titlecase.c: New file.
64956         Tests for module 'unicase/u8-is-titlecase'.
64957         * modules/unicase/u8-is-titlecase-tests: New file.
64958         * tests/unicase/test-u8-is-titlecase.c: New file.
64959         * tests/unicase/test-is-titlecase.h: New file.
64961         New module 'unicase/u32-is-titlecase'.
64962         * lib/unicase/u32-is-titlecase.c: New file.
64963         * modules/unicase/u32-is-titlecase: New file.
64965         New module 'unicase/u16-is-titlecase'.
64966         * lib/unicase/u16-is-titlecase.c: New file.
64967         * modules/unicase/u16-is-titlecase: New file.
64969         New module 'unicase/u8-is-titlecase'.
64970         * lib/unicase/u8-is-titlecase.c: New file.
64971         * modules/unicase/u8-is-titlecase: New file.
64973         Tests for module 'unicase/u32-is-lowercase'.
64974         * modules/unicase/u32-is-lowercase-tests: New file.
64975         * tests/unicase/test-u32-is-lowercase.c: New file.
64977         Tests for module 'unicase/u16-is-lowercase'.
64978         * modules/unicase/u16-is-lowercase-tests: New file.
64979         * tests/unicase/test-u16-is-lowercase.c: New file.
64981         Tests for module 'unicase/u8-is-lowercase'.
64982         * modules/unicase/u8-is-lowercase-tests: New file.
64983         * tests/unicase/test-u8-is-lowercase.c: New file.
64984         * tests/unicase/test-is-lowercase.h: New file.
64986         New module 'unicase/u32-is-lowercase'.
64987         * lib/unicase/u32-is-lowercase.c: New file.
64988         * modules/unicase/u32-is-lowercase: New file.
64990         New module 'unicase/u16-is-lowercase'.
64991         * lib/unicase/u16-is-lowercase.c: New file.
64992         * modules/unicase/u16-is-lowercase: New file.
64994         New module 'unicase/u8-is-lowercase'.
64995         * lib/unicase/u8-is-lowercase.c: New file.
64996         * modules/unicase/u8-is-lowercase: New file.
64998         Tests for module 'unicase/u32-is-uppercase'.
64999         * modules/unicase/u32-is-uppercase-tests: New file.
65000         * tests/unicase/test-u32-is-uppercase.c: New file.
65002         Tests for module 'unicase/u16-is-uppercase'.
65003         * modules/unicase/u16-is-uppercase-tests: New file.
65004         * tests/unicase/test-u16-is-uppercase.c: New file.
65006         Tests for module 'unicase/u8-is-uppercase'.
65007         * modules/unicase/u8-is-uppercase-tests: New file.
65008         * tests/unicase/test-u8-is-uppercase.c: New file.
65009         * tests/unicase/test-is-uppercase.h: New file.
65011         New module 'unicase/u32-is-uppercase'.
65012         * lib/unicase/u32-is-uppercase.c: New file.
65013         * modules/unicase/u32-is-uppercase: New file.
65015         New module 'unicase/u16-is-uppercase'.
65016         * lib/unicase/u16-is-uppercase.c: New file.
65017         * modules/unicase/u16-is-uppercase: New file.
65019         New module 'unicase/u8-is-uppercase'.
65020         * lib/unicase/u8-is-uppercase.c: New file.
65021         * modules/unicase/u8-is-uppercase: New file.
65023         New module 'unicase/u32-is-invariant'.
65024         * lib/unicase/u32-is-invariant.c: New file.
65025         * modules/unicase/u32-is-invariant: New file.
65027         New module 'unicase/u16-is-invariant'.
65028         * lib/unicase/u16-is-invariant.c: New file.
65029         * modules/unicase/u16-is-invariant: New file.
65031         New module 'unicase/u8-is-invariant'.
65032         * lib/unicase/u8-is-invariant.c: New file.
65033         * lib/unicase/invariant.h: New file.
65034         * lib/unicase/u-is-invariant.h: New file.
65035         * modules/unicase/u8-is-invariant: New file.
65037         Tests for module 'unicase/u32-casecoll'.
65038         * modules/unicase/u32-casecoll-tests: New file.
65039         * tests/unicase/test-u32-casecoll.c: New file.
65041         Tests for module 'unicase/u16-casecoll'.
65042         * modules/unicase/u16-casecoll-tests: New file.
65043         * tests/unicase/test-u16-casecoll.c: New file.
65045         Tests for module 'unicase/u8-casecoll'.
65046         * modules/unicase/u8-casecoll-tests: New file.
65047         * tests/unicase/test-u8-casecoll.c: New file.
65049         New module 'unicase/u32-casecoll'.
65050         * lib/unicase/u32-casecoll.c: New file.
65051         * modules/unicase/u32-casecoll: New file.
65053         New module 'unicase/u16-casecoll'.
65054         * lib/unicase/u16-casecoll.c: New file.
65055         * modules/unicase/u16-casecoll: New file.
65057         New module 'unicase/u8-casecoll'.
65058         * lib/unicase/u8-casecoll.c: New file.
65059         * lib/unicase/u-casecoll.h: New file.
65060         * modules/unicase/u8-casecoll: New file.
65062         New module 'unicase/u32-casexfrm'.
65063         * lib/unicase/u32-casexfrm.c: New file.
65064         * modules/unicase/u32-casexfrm: New file.
65066         New module 'unicase/u16-casexfrm'.
65067         * lib/unicase/u16-casexfrm.c: New file.
65068         * modules/unicase/u16-casexfrm: New file.
65070         New module 'unicase/u8-casexfrm'.
65071         * lib/unicase/u8-casexfrm.c: New file.
65072         * lib/unicase/u-casexfrm.h: New file.
65073         * modules/unicase/u8-casexfrm: New file.
65075         Tests for module 'unicase/u32-casecmp'.
65076         * modules/unicase/u32-casecmp-tests: New file.
65077         * tests/unicase/test-u32-casecmp.c: New file.
65079         Tests for module 'unicase/u16-casecmp'.
65080         * modules/unicase/u16-casecmp-tests: New file.
65081         * tests/unicase/test-u16-casecmp.c: New file.
65083         Tests for module 'unicase/u8-casecmp'.
65084         * modules/unicase/u8-casecmp-tests: New file.
65085         * tests/unicase/test-u8-casecmp.c: New file.
65086         * tests/unicase/test-casecmp.h: New file.
65088         New module 'unicase/u32-casecmp'.
65089         * lib/unicase/u32-casecmp.c: New file.
65090         * modules/unicase/u32-casecmp: New file.
65092         New module 'unicase/u16-casecmp'.
65093         * lib/unicase/u16-casecmp.c: New file.
65094         * modules/unicase/u16-casecmp: New file.
65096         New module 'unicase/u8-casecmp'.
65097         * lib/unicase/u8-casecmp.c: New file.
65098         * lib/unicase/u-casecmp.h: New file.
65099         * modules/unicase/u8-casecmp: New file.
65101         Tests for module 'unicase/u32-casefold'.
65102         * modules/unicase/u32-casefold-tests: New file.
65103         * tests/unicase/test-u32-casefold.c: New file.
65105         Tests for module 'unicase/u16-casefold'.
65106         * modules/unicase/u16-casefold-tests: New file.
65107         * tests/unicase/test-u16-casefold.c: New file.
65109         Tests for module 'unicase/u8-casefold'.
65110         * modules/unicase/u8-casefold-tests: New file.
65111         * tests/unicase/test-u8-casefold.c: New file.
65113         New module 'unicase/u32-casefold'.
65114         * lib/unicase/u32-casefold.c: New file.
65115         * modules/unicase/u32-casefold: New file.
65117         New module 'unicase/u16-casefold'.
65118         * lib/unicase/u16-casefold.c: New file.
65119         * modules/unicase/u16-casefold: New file.
65121         New module 'unicase/u8-casefold'.
65122         * lib/unicase/u8-casefold.c: New file.
65123         * lib/unicase/u-casefold.h: New file.
65124         * modules/unicase/u8-casefold: New file.
65126         New module 'unicase/tocasefold'.
65127         * lib/unicase/casefold.h: New file.
65128         * lib/unicase/tocasefold.c: New file.
65129         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
65130         * modules/unicase/tocasefold: New file.
65132         Tests for module 'unicase/u32-totitle'.
65133         * modules/unicase/u32-totitle-tests: New file.
65134         * tests/unicase/test-u32-totitle.c: New file.
65136         Tests for module 'unicase/u16-totitle'.
65137         * modules/unicase/u16-totitle-tests: New file.
65138         * tests/unicase/test-u16-totitle.c: New file.
65140         Tests for module 'unicase/u8-totitle'.
65141         * modules/unicase/u8-totitle-tests: New file.
65142         * tests/unicase/test-u8-totitle.c: New file.
65144         New module 'unicase/u32-totitle'.
65145         * lib/unicase/u32-totitle.c: New file.
65146         * modules/unicase/u32-totitle: New file.
65148         New module 'unicase/u16-totitle'.
65149         * lib/unicase/u16-totitle.c: New file.
65150         * modules/unicase/u16-totitle: New file.
65152         New module 'unicase/u8-totitle'.
65153         * lib/unicase/u8-totitle.c: New file.
65154         * lib/unicase/u-totitle.h: New file.
65155         * modules/unicase/u8-totitle: New file.
65157         Tests for module 'unicase/u32-tolower'.
65158         * modules/unicase/u32-tolower-tests: New file.
65159         * tests/unicase/test-u32-tolower.c: New file.
65161         Tests for module 'unicase/u16-tolower'.
65162         * modules/unicase/u16-tolower-tests: New file.
65163         * tests/unicase/test-u16-tolower.c: New file.
65165         Tests for module 'unicase/u8-tolower'.
65166         * modules/unicase/u8-tolower-tests: New file.
65167         * tests/unicase/test-u8-tolower.c: New file.
65169         New module 'unicase/u32-tolower'.
65170         * lib/unicase/u32-tolower.c: New file.
65171         * modules/unicase/u32-tolower: New file.
65173         New module 'unicase/u16-tolower'.
65174         * lib/unicase/u16-tolower.c: New file.
65175         * modules/unicase/u16-tolower: New file.
65177         New module 'unicase/u8-tolower'.
65178         * lib/unicase/u8-tolower.c: New file.
65179         * modules/unicase/u8-tolower: New file.
65181         Tests for module 'unicase/u32-toupper'.
65182         * modules/unicase/u32-toupper-tests: New file.
65183         * tests/unicase/test-u32-toupper.c: New file.
65185         Tests for module 'unicase/u16-toupper'.
65186         * modules/unicase/u16-toupper-tests: New file.
65187         * tests/unicase/test-u16-toupper.c: New file.
65189         Tests for module 'unicase/u8-toupper'.
65190         * modules/unicase/u8-toupper-tests: New file.
65191         * tests/unicase/test-u8-toupper.c: New file.
65193         New module 'unicase/u32-toupper'.
65194         * lib/unicase/u32-toupper.c: New file.
65195         * modules/unicase/u32-toupper: New file.
65197         New module 'unicase/u16-toupper'.
65198         * lib/unicase/u16-toupper.c: New file.
65199         * modules/unicase/u16-toupper: New file.
65201         New module 'unicase/u8-toupper'.
65202         * lib/unicase/u8-toupper.c: New file.
65203         * modules/unicase/u8-toupper: New file.
65205         New module 'unicase/u32-casemap'.
65206         * lib/unicase/u32-casemap.c: New file.
65207         * modules/unicase/u32-casemap: New file.
65209         New module 'unicase/u16-casemap'.
65210         * lib/unicase/u16-casemap.c: New file.
65211         * modules/unicase/u16-casemap: New file.
65213         New module 'unicase/u8-casemap'.
65214         * lib/unicase/unicasemap.h: New file.
65215         * lib/unicase/u8-casemap.c: New file.
65216         * lib/unicase/u-casemap.h: New file.
65217         * modules/unicase/u8-casemap: New file.
65219         New module 'unicase/special-casing'.
65220         * lib/unicase/special-casing.h: New file.
65221         * lib/unicase/special-casing.c: New file.
65222         * lib/unicase/special-casing-table.gperf: New file, generated by
65223         gen-uni-tables.c.
65224         * modules/unicase/special-casing: New file.
65226         Tests for module 'unicase/locale-language'.
65227         * modules/unicase/locale-language-tests: New file.
65228         * tests/unicase/test-locale-language.sh: New file.
65229         * tests/unicase/test-locale-language.c: New file.
65231         New module 'unicase/locale-language'.
65232         * lib/unicase/locale-language.c: New file.
65233         * lib/unicase/locale-languages.gperf: New file.
65234         * modules/unicase/locale-language: New file.
65236         Generate more tables for case conversion and case folding.
65237         * lib/gen-uni-tables.c (SCC_*): New enum items.
65238         (struct special_casing_rule): New type.
65239         (casing_rules, num_casing_rules, allocated_casing_rules): New
65240         variables.
65241         (add_casing_rule, fill_casing_rules): New functions.
65242         (struct casefold_rule): New type.
65243         (casefolding_rules, num_casefolding_rules,
65244         allocated_casefolding_rules): New variables.
65245         (fill_casefolding_rules): New function.
65246         (unicode_casefold): New variable.
65247         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
65248         sort_casing_rules, output_casing_rules): New functions.
65249         (main): Accept to more arguments: SpecialCasing.txt and
65250         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
65251         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
65252         Output mapping for casefolding.
65254         * lib/unicase.h: Include stdbool.h, uninorm.h.
65255         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
65256         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
65257         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
65258         arguments.
65259         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
65260         resultp arguments.
65261         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
65262         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
65263         resultp arguments.
65264         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
65265         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
65266         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
65267         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
65268         declarations.
65269         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
65271 2009-03-08  Bruno Haible  <bruno@clisp.org>
65273         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
65274         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
65275         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
65276         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
65278 2009-03-07  Bruno Haible  <bruno@clisp.org>
65280         Adjust u*_normcmp, u*_normcoll API.
65281         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
65282         u16_normcoll, u32_normcoll): Change failure conventions.
65283         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
65284         errno and return -1.
65285         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
65287 2009-03-07  Bruno Haible  <bruno@clisp.org>
65289         Tests for module 'uninorm/u32-normcoll'.
65290         * modules/uninorm/u32-normcoll-tests: New file.
65291         * tests/uninorm/test-u32-normcoll.c: New file.
65293         Tests for module 'uninorm/u16-normcoll'.
65294         * modules/uninorm/u16-normcoll-tests: New file.
65295         * tests/uninorm/test-u16-normcoll.c: New file.
65297         Tests for module 'uninorm/u8-normcoll'.
65298         * modules/uninorm/u8-normcoll-tests: New file.
65299         * tests/uninorm/test-u8-normcoll.c: New file.
65301 2009-03-07  Bruno Haible  <bruno@clisp.org>
65303         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
65304         tests/uninorm/test-u32-normcmp.c.
65305         * tests/uninorm/test-u32-normcmp.c: Include it.
65306         (test_nonascii): New function, extracted from main. Add some more
65307         tests.
65308         (main): Invoke test_ascii and test_nonascii.
65309         * modules/uninorm/u32-normcmp-tests (Files): Add
65310         tests/uninorm/test-u32-normcmp.h.
65311         (Depends-on): Remove uninorm/u32-normcmp.
65313         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
65314         tests/uninorm/test-u16-normcmp.c.
65315         * tests/uninorm/test-u16-normcmp.c: Include it.
65316         (test_nonascii): New function, extracted from main. Add some more
65317         tests.
65318         (main): Invoke test_ascii and test_nonascii.
65319         * modules/uninorm/u16-normcmp-tests (Files): Add
65320         tests/uninorm/test-u16-normcmp.h.
65321         (Depends-on): Remove uninorm/u16-normcmp.
65323         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
65324         tests/uninorm/test-u8-normcmp.c.
65325         * tests/uninorm/test-u8-normcmp.c: Include it.
65326         (test_nonascii): New function, extracted from main. Add some more
65327         tests.
65328         (main): Invoke test_ascii and test_nonascii.
65329         * modules/uninorm/u8-normcmp-tests (Files): Add
65330         tests/uninorm/test-u8-normcmp.h.
65331         (Depends-on): Remove uninorm/u8-normcmp.
65333 2009-03-07  Bruno Haible  <bruno@clisp.org>
65335         New module 'uninorm/u32-normcoll'.
65336         * lib/uninorm/u32-normcoll.c: New file.
65337         * modules/uninorm/u32-normcoll: New file.
65339         New module 'uninorm/u16-normcoll'.
65340         * lib/uninorm/u16-normcoll.c: New file.
65341         * modules/uninorm/u16-normcoll: New file.
65343         New module 'uninorm/u8-normcoll'.
65344         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
65345         declarations.
65346         * lib/uninorm/u8-normcoll.c: New file.
65347         * lib/uninorm/u-normcoll.h: New file.
65348         * modules/uninorm/u8-normcoll: New file.
65350         New module 'uninorm/u32-normxfrm'.
65351         * lib/uninorm/u32-normxfrm.c: New file.
65352         * modules/uninorm/u32-normxfrm: New file.
65354         New module 'uninorm/u16-normxfrm'.
65355         * lib/uninorm/u16-normxfrm.c: New file.
65356         * modules/uninorm/u16-normxfrm: New file.
65358         New module 'uninorm/u8-normxfrm'.
65359         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
65360         declarations.
65361         * lib/uninorm/u8-normxfrm.c: New file.
65362         * lib/uninorm/u-normxfrm.h: New file.
65363         * modules/uninorm/u8-normxfrm: New file.
65365 2009-03-07  Bruno Haible  <bruno@clisp.org>
65367         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
65368         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
65369         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
65371 2009-03-07  Bruno Haible  <bruno@clisp.org>
65373         New module 'memxfrm'.
65374         * lib/memxfrm.h: New file.
65375         * lib/memxfrm.c: New file.
65376         * modules/memxfrm: New file.
65378 2009-03-07  Bruno Haible  <bruno@clisp.org>
65380         New module 'memcmp2'.
65381         * lib/memcmp2.h: New file.
65382         * lib/memcmp2.c: New file.
65383         * modules/memcmp2: New file.
65385 2009-03-07  Bruno Haible  <bruno@clisp.org>
65387         Tests for module 'uninorm/decomposing-form'.
65388         * modules/uninorm/decomposing-form-tests: New file.
65389         * tests/uninorm/test-decomposing-form.c: New file.
65391         New module 'uninorm/decomposing-form'.
65392         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
65393         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
65394         Add 'decomposing_variant' field.
65395         * lib/uninorm/decomposing-form.c: New file.
65396         * lib/uninorm/nfc.c (uninorm_nfc): Update.
65397         * lib/uninorm/nfd.c (uninorm_nfd): Update.
65398         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
65399         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
65400         * modules/uninorm/decomposing-form: New file.
65401         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
65402         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
65404 2009-03-07  Bruno Haible  <bruno@clisp.org>
65406         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
65407         strings.
65409 2009-03-06  Bruno Haible  <bruno@clisp.org>
65411         Tests for module 'uninorm/u32-normcmp'.
65412         * tests/uninorm/test-u32-normcmp.c: New file.
65413         * modules/uninorm/u32-normcmp-tests: New file.
65415         Tests for module 'uninorm/u16-normcmp'.
65416         * tests/uninorm/test-u16-normcmp.c: New file.
65417         * modules/uninorm/u16-normcmp-tests: New file.
65419         Tests for module 'uninorm/u8-normcmp'.
65420         * tests/uninorm/test-u8-normcmp.c: New file.
65421         * modules/uninorm/u8-normcmp-tests: New file.
65423         New module 'uninorm/u32-normcmp'.
65424         * lib/uninorm/u32-normcmp.c: New file.
65425         * modules/uninorm/u32-normcmp: New file.
65427         New module 'uninorm/u16-normcmp'.
65428         * lib/uninorm/u16-normcmp.c: New file.
65429         * modules/uninorm/u16-normcmp: New file.
65431         New module 'uninorm/u8-normcmp'.
65432         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
65433         declarations.
65434         * lib/uninorm/u8-normcmp.c: New file.
65435         * lib/uninorm/u-normcmp.h: New file.
65436         * modules/uninorm/u8-normcmp: New file.
65438 2009-03-06  Bruno Haible  <bruno@clisp.org>
65440         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
65441         Reported by Eric Blake.
65443 2009-03-06  Eric Blake  <ebb9@byu.net>
65444             Bruno Haible  <bruno@clisp.org>
65446         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
65447         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
65448         condition.
65449         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
65450         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
65451         condition.
65452         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
65454 2009-03-06  Eric Blake  <ebb9@byu.net>
65456         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
65457         to avoid compiler warnings.
65458         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
65460 2009-03-05  Bruno Haible  <bruno@clisp.org>
65462         * tests/test-ftell.c (main): Disable test beyond end of file on
65463         FreeMiNT.
65464         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
65466 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
65468         * lib/filevercmp.c: Move hidden files up in ordering.
65469         * tests/test-filevercmp.c: Add tests for hidden files.
65471 2009-03-04  Bruno Haible  <bruno@clisp.org>
65473         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
65474         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
65475         AM_CFLAGS.
65476         Reported by Simon Josefsson.
65478 2009-03-03  Bruno Haible  <bruno@clisp.org>
65480         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
65481         Reported by Simon Josefsson.
65483         * doc/ld-version-script.texi: Update node reference.
65485 2009-03-03  Bruno Haible  <bruno@clisp.org>
65487         * modules/visibility (License): Change to 'unlimited'.
65488         Suggested by Simon Josefsson.
65490 2009-03-03  Jim Meyering  <meyering@redhat.com>
65492         unlinkdir: cannot_unlink_dir may modify process state
65493         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
65494         it's neither thread-safe nor appropriate for use in a library.
65496 2009-03-03  Eric Blake  <ebb9@byu.net>
65498         test-closein: silence test under Darwin
65499         * tests/test-closein.sh: Ignore stderr from cat, since we don't
65500         care if it dies from EPIPE or EBADF.
65502 2009-03-03  Bruno Haible  <bruno@clisp.org>
65504         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
65505         earlier.
65506         * doc/visibility.texi: Fix @node and @section.
65508 2009-03-03  Simon Josefsson  <simon@josefsson.org>
65510         * doc/gnulib.texi: Link to sections for ld version script and
65511         visibility.
65512         * doc/visibility.texi: Add @node and @section.
65513         * modules/ld-version-script: New module.
65514         * m4/ld-version-script.m4: New file.
65515         * doc/ld-version-script.texi: New file.
65517 2009-03-02  David Lutterkort  <lutter@redhat.com>
65519         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
65520         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
65522 2009-03-02  Bruno Haible  <bruno@clisp.org>
65524         * doc/visibility.texi: Mention libtool's -export-symbols option.
65526 2009-03-02  Jim Meyering  <meyering@redhat.com>
65528         announce-gen: new option: --no-print-checksums
65529         * build-aux/announce-gen (usage): Describe it.
65530         (print_checksums): Print a newline here, not in the [*] footnote.
65531         (main): Honor it.
65533 2009-03-01  Bruno Haible  <bruno@clisp.org>
65535         Use socklen_t in the native Windows replacements prototypes.
65536         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
65537         instead of 'int'.
65538         * lib/getsockopt.c (rpl_getsockopt): Likewise.
65539         * lib/setsockopt.c (rpl_setsockopt): Likewise.
65540         * modules/getsockopt (Depends-on): Add socklen.
65541         * modules/setsockopt (Depends-on): Add socklen.
65543 2009-03-01  Bruno Haible  <bruno@clisp.org>
65545         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
65546         least 4.2.
65548 2009-03-01  Eric Blake  <ebb9@byu.net>
65549             Bruno Haible  <bruno@clisp.org>
65551         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
65552         error messages.
65553         * lib/wait-process.c (wait_subprocess): Omit error message about
65554         deadly signal sent to the child of termsigp != NULL.
65556 2009-03-01  Eric Blake  <ebb9@byu.net>
65558         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
65560 2009-03-01  Bruno Haible  <bruno@clisp.org>
65562         Avoid a gcc warning.
65563         * tests/test-sched.c (b): Make global.
65564         Reported by Eric Blake.
65566 2009-01-19  Martin Lambers  <marlam@marlam.de>
65568         Provide POSIX semantics for socket timeout options on W32.
65569         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
65570         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
65571         * modules/setsockopt: Depend on sys_time module for struct timeval.
65572         * modules/getsockopt: Depend on sys_time module for struct timeval.
65574 2009-03-01  Simon Josefsson  <simon@josefsson.org>
65576         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
65577         __USE_GNU, for consistency with netdb.in.h.
65578         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
65580 2009-03-01  Bruno Haible  <bruno@clisp.org>
65582         More support for FreeMiNT.
65583         * lib/fseeko.c (rpl_fseeko): Complete last commit.
65584         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
65586 2009-03-01  Bruno Haible  <bruno@clisp.org>
65588         More support for FreeMiNT.
65589         * lib/fpurge.c (fpurge): Correct last commit.
65590         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
65592 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65594         Fix unportable awk script in vc-list-files.
65595         * build-aux/vc-list-files: In the replacement awk script, use
65596         substr with a second argument of 1, not zero.
65597         Report by Simon Josefsson.
65599 2009-02-28  Bruno Haible  <bruno@clisp.org>
65601         More support for FreeMiNT.
65602         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
65603         to FreeMiNT today.
65604         * lib/fwriting.c (fwriting): Likewise.
65605         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
65607 2009-02-28  Bruno Haible  <bruno@clisp.org>
65609         * tests/test-freadseek.c (main): Disable test beyond end of file on
65610         FreeMiNT.
65611         * tests/test-ftello.c (main): Likewise.
65612         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
65614 2009-02-28  Bruno Haible  <bruno@clisp.org>
65616         Add tentative support for FreeMiNT.
65617         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
65618         * lib/fpurge.c (fpurge): Likewise.
65619         * lib/freadable.c (freadable): Likewise.
65620         * lib/freading.c (freading): Likewise.
65621         * lib/freadptr.c (freadptr): Likewise.
65622         * lib/freadseek.c (freadptrinc): Likewise.
65623         * lib/fseeko.c (rpl_fseeko): Likewise.
65624         * lib/fseterr.c (fseterr): Likewise.
65625         * lib/fwritable.c (fwritable): Likewise.
65626         * lib/fwriting.c (fwriting): Likewise.
65627         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
65628         Hourihane.
65629         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
65631 2009-02-28  Bruno Haible  <bruno@clisp.org>
65633         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
65634         SIGCHLD.
65635         Reported by Jim Meyering.
65637 2009-02-28  Bruno Haible  <bruno@clisp.org>
65639         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
65640         Mention the results of these tests on various platforms.
65641         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
65642         order.
65643         * doc/posix-functions/printf.texi: Likewise.
65644         * doc/posix-functions/snprintf.texi: Likewise.
65645         * doc/posix-functions/sprintf.texi: Likewise.
65646         * doc/posix-functions/vfprintf.texi: Likewise.
65647         * doc/posix-functions/vprintf.texi: Likewise.
65648         * doc/posix-functions/vsnprintf.texi: Likewise.
65649         * doc/posix-functions/vsprintf.texi: Likewise.
65650         * doc/glibc-functions/obstack_printf.texi: Likewise.
65651         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
65653 2009-02-28  Bruno Haible  <bruno@clisp.org>
65655         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
65656         Reported by Loïc Minier <lool@dooz.org>.
65658 2009-02-27  Bruno Haible  <bruno@clisp.org>
65660         * gnulib-tool (func_import): Make the sed expression used to create the
65661         sed script for updating the .gitignore file POSIX compliant.
65662         Reported by Eric Blake.
65664 2009-02-27  Bruno Haible  <bruno@clisp.org>
65666         * gnulib-tool (sed): Don't alias as "sed --posix".
65667         Reported by Eric Blake.
65669 2009-02-27  Bruno Haible  <bruno@clisp.org>
65671         Avoid test link errors.
65672         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
65673         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
65674         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
65675         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
65676         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
65678 2009-02-27  Bruno Haible  <bruno@clisp.org>
65680         Avoid spurious "(cached)" in configure output.
65681         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
65682         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
65683         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
65684         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
65685         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
65686         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
65687         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
65688         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
65689         Reported by Eric Blake.
65691 2009-02-27  Eric Blake  <ebb9@byu.net>
65693         printf: fix regression in previous patch
65694         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
65696 2009-02-27  Bruno Haible  <bruno@clisp.org>
65698         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
65699         value.
65700         * lib/stdint.in.h: Likewise.
65701         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
65703 2009-02-27  Eric Blake  <ebb9@byu.net>
65705         doc: mention more functions added in cygwin 1.7.0
65706         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
65707         addition.
65708         * doc/posix-functions/open_wmemstream.texi: Likewise.
65709         * doc/posix-functions/wcsnlen.texi: Likewise.
65710         * doc/posix-functions/wcsnrtombs.texi: Likewise.
65711         * doc/posix-functions/wcstod.texi: Likewise.
65712         * doc/posix-functions/wcstof.texi: Likewise.
65713         * doc/posix-functions/wcstoimax.texi: Likewise.
65714         * doc/posix-functions/wcstok.texi: Likewise.
65715         * doc/posix-functions/wcstoumax.texi: Likewise.
65717         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
65718         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
65719         * doc/posix-functions/fprintf.texi: Update.
65720         * doc/posix-functions/printf.texi: Update.
65721         * doc/posix-functions/snprintf.texi: Update.
65722         * doc/posix-functions/sprintf.texi: Update.
65723         * doc/posix-functions/vfprintf.texi: Update.
65724         * doc/posix-functions/vprintf.texi: Update.
65725         * doc/posix-functions/vsnprintf.texi: Update.
65726         * doc/posix-functions/vsprintf.texi: Update.
65727         * doc/glibc-functions/obstack_printf.texi: Update.
65728         * doc/glibc-functions/obstack_vprintf.texi: Update.
65730 2009-02-26  Eric Blake  <ebb9@byu.net>
65732         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
65733         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
65734         compilation bug by using runtime conversion.
65735         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
65736         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
65737         * modules/ceill-tests (Files): Use nan.h.
65738         * modules/floorl-tests (Files): Likewise.
65739         * modules/frexpl-tests (Files): Likewise.
65740         * modules/isnanl-tests (Files): Likewise.
65741         * modules/ldexpl-tests (Files): Likewise.
65742         * modules/roundl-tests (Files): Likewise.
65743         * modules/truncl-tests (Files): Likewise.
65744         * tests/test-ceill.c (main): Use a working NaN.
65745         * tests/test-floorl.c (main): Likewise.
65746         * tests/test-frexpl.c (main): Likewise.
65747         * tests/test-isnan.c (test_long_double): Likewise.
65748         * tests/test-isnanl.h (main): Likewise.
65749         * tests/test-ldexpl.h (main): Likewise.
65750         * tests/test-roundl.h (main): Likewise.
65751         * tests/test-truncl.h (main): Likewise.
65752         See http://lists.gnu.org/r/bug-gnulib/2009-02/msg00190.html.
65754 2009-02-26  Eric Blake  <ebb9@byu.net>
65755             Bruno Haible  <bruno@clisp.org>
65757         Work around a *printf bug with %ls on Solaris.
65758         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
65759         precision is specified, sprintf stops converting the wide string
65760         argument when the number of bytes that have been produced by this
65761         conversion equals or exceeds the precision.
65762         * doc/posix-functions/fprintf.texi: Update.
65763         * doc/posix-functions/printf.texi: Update.
65764         * doc/posix-functions/snprintf.texi: Update.
65765         * doc/posix-functions/sprintf.texi: Update.
65766         * doc/posix-functions/vfprintf.texi: Update.
65767         * doc/posix-functions/vprintf.texi: Update.
65768         * doc/posix-functions/vsnprintf.texi: Update.
65769         * doc/posix-functions/vsprintf.texi: Update.
65770         * doc/glibc-functions/obstack_printf.texi: Update.
65771         * doc/glibc-functions/obstack_vprintf.texi: Update.
65773 2009-02-26  Eric Blake  <ebb9@byu.net>
65775         stdlib: favor compiler check of random.h
65776         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
65777         to avoid an ObjC random.h installed by Swarm.
65779 2009-02-26  Bruno Haible  <bruno@clisp.org>
65781         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
65782         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
65783         Reported by Gary V. Vaughan <gary@gnu.org>.
65785 2009-02-26  Bruno Haible  <bruno@clisp.org>
65787         Fix *printf behaviour regarding the %ls directive.
65788         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
65789         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
65790         NEED_PRINTF_DIRECTIVE_LS.
65791         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
65792         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
65793         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
65794         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
65795         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
65796         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
65797         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
65798         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
65799         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
65800         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
65801         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
65802         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
65803         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
65804         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
65805         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
65806         * doc/posix-functions/fprintf.texi: Update.
65807         * doc/posix-functions/printf.texi: Update.
65808         * doc/posix-functions/snprintf.texi: Update.
65809         * doc/posix-functions/sprintf.texi: Update.
65810         * doc/posix-functions/vfprintf.texi: Update.
65811         * doc/posix-functions/vprintf.texi: Update.
65812         * doc/posix-functions/vsnprintf.texi: Update.
65813         * doc/posix-functions/vsprintf.texi: Update.
65814         * doc/glibc-functions/obstack_printf.texi: Update.
65815         * doc/glibc-functions/obstack_vprintf.texi: Update.
65816         Reported by Eric Blake.
65818 2009-02-25  Bruno Haible  <bruno@clisp.org>
65820         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
65821         with known value.
65822         Reported by Gary V. Vaughan <gary@gnu.org>.
65824 2009-02-25  Bruno Haible  <bruno@clisp.org>
65826         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
65827         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
65828         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
65829         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
65830         Reported by Gary V. Vaughan <gary@gnu.org>.
65832 2009-02-25  Bruno Haible  <bruno@clisp.org>
65834         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
65835         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
65836         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
65837         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
65838         Reported by Gary V. Vaughan <gary@gnu.org>.
65840 2009-02-25  Eric Blake  <ebb9@byu.net>
65842         tests: skip fseek/ftell tests if ungetc is broken
65843         * m4/ungetc.m4: New file.
65844         * modules/fseek-tests: Split test, so ungetc dependency is
65845         separate from rest of test.
65846         * modules/fseeko-tests: Likewise.
65847         * modules/ftell-tests: Likewise.
65848         * modules/ftello-tests: Likewise.
65849         * tests/test-fseek.c (main): Isolate ungetc dependency.
65850         * tests/test-fseeko.c (main): Likewise.
65851         * tests/test-ftell.c (main): Likewise.
65852         * tests/test-ftello.c (main): Likewise.
65853         * tests/test-fseek2.sh: New file.
65854         * tests/test-fseeko2.sh: Likewise.
65855         * tests/test-ftell2.sh: Likewise.
65856         * tests/test-ftello2.sh: Likewise.
65858 2009-02-25  Ondřej Vašík  <ovasik@redhat.com>
65860         test-getaddrinfo: fix usage of skip return code 77
65861         * tests/test-gettaddrinfo.c: Return skip code 77 only
65862         for first occurrence of skip (4x77 is not 77)
65864 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
65866         strtod: avoid C99 decl-after-statement
65867         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
65869 2009-02-24  Eric Blake  <ebb9@byu.net>
65871         strtod: detect HP-UX 11.31 bug
65872         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
65873         Reported by Gary V. Vaughan.
65875 2009-02-23  Bruno Haible  <bruno@clisp.org>
65877         Fix invalid read past end of memory block.
65878         * lib/vasnprintf.c (DCHAR_SET): Define.
65879         (local_wcslen): Define only when needed.
65880         (local_strnlen, local_wcsnlen): New functions.
65881         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
65882         directives that involve a conversion ourselves.
65883         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
65884         wcsnlen, mbrtowc, wcrtomb.
65885         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
65886         * tests/test-vasprintf-posix.c (test_function): Likewise.
65887         * tests/test-snprintf-posix.h (test_function): Likewise.
65888         * tests/test-sprintf-posix.h (test_function): Likewise.
65889         Reported by Ben Pfaff <blp@cs.stanford.edu>.
65891 2009-02-22  Bruno Haible  <bruno@clisp.org>
65893         Implement new clarified decomposition of Hangul syllables.
65894         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
65895         of type LTV, return only a pairwise decomposition.
65896         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
65897         Likewise.
65898         * tests/uninorm/test-decomposition.c (main): Updated expected result.
65899         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
65900         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
65902 2009-02-22  Bruno Haible  <bruno@clisp.org>
65904         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
65905         zero-length results and shrink excess allocated memory.
65906         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
65907         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
65908         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
65909         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
65910         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
65911         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
65912         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
65913         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
65914         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
65915         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
65916         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
65917         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
65919 2009-02-21  Bruno Haible  <bruno@clisp.org>
65921         * doc/gnulib.texi: Include safe-alloc.texi earlier.
65922         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
65923         spaces after a period. Put a space between a macro name and its
65924         argument list. Trivial rewordings.
65925         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
65926         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
65927         (main): Return 0 explicitly.
65929 2009-02-21  Bruno Haible  <bruno@clisp.org>
65931         Tests for module 'uninorm/filter'.
65932         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
65933         * modules/uninorm/filter-tests: New file.
65935         New module 'uninorm/filter'.
65936         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
65937         uninorm_filter_flush, uninorm_filter_free): New declarations.
65938         * lib/uninorm/uninorm-filter.c: New file.
65939         * modules/uninorm/filter: New file.
65941 2009-02-21  Bruno Haible  <bruno@clisp.org>
65943         Tests for module 'uninorm/nfkc'.
65944         * tests/uninorm/test-nfkc.c: New file.
65945         * tests/uninorm/test-u8-nfkc.c: New file.
65946         * tests/uninorm/test-u16-nfkc.c: New file.
65947         * tests/uninorm/test-u32-nfkc.c: New file.
65948         * tests/uninorm/test-u32-nfkc-big.sh: New file.
65949         * tests/uninorm/test-u32-nfkc-big.c: New file.
65950         * modules/uninorm/nfkc-tests: New file.
65952         New module 'uninorm/nfkc'.
65953         * lib/uninorm/nfkc.c: New file.
65954         * modules/uninorm/nfkc: New file.
65956         Tests for module 'uninorm/nfkd'.
65957         * tests/uninorm/test-nfkd.c: New file.
65958         * tests/uninorm/test-u8-nfkd.c: New file.
65959         * tests/uninorm/test-u16-nfkd.c: New file.
65960         * tests/uninorm/test-u32-nfkd.c: New file.
65961         * tests/uninorm/test-u32-nfkd-big.sh: New file.
65962         * tests/uninorm/test-u32-nfkd-big.c: New file.
65963         * modules/uninorm/nfkd-tests: New file.
65965         New module 'uninorm/nfkd'.
65966         * lib/uninorm/nfkd.c: New file.
65967         * modules/uninorm/nfkd: New file.
65969         Tests for module 'uninorm/nfc'.
65970         * tests/uninorm/test-nfc.c: New file.
65971         * tests/uninorm/test-u8-nfc.c: New file.
65972         * tests/uninorm/test-u16-nfc.c: New file.
65973         * tests/uninorm/test-u32-nfc.c: New file.
65974         * tests/uninorm/test-u32-nfc-big.sh: New file.
65975         * tests/uninorm/test-u32-nfc-big.c: New file.
65976         * modules/uninorm/nfc-tests: New file.
65978         New module 'uninorm/nfc'.
65979         * lib/uninorm/nfc.c: New file.
65980         * modules/uninorm/nfc: New file.
65982         Tests for module 'uninorm/nfd'.
65983         * tests/uninorm/test-nfd.c: New file.
65984         * tests/uninorm/test-u8-nfd.c: New file.
65985         * tests/uninorm/test-u16-nfd.c: New file.
65986         * tests/uninorm/test-u32-nfd.c: New file.
65987         * tests/uninorm/test-u32-nfd-big.sh: New file.
65988         * tests/uninorm/test-u32-nfd-big.c: New file.
65989         * tests/uninorm/test-u32-normalize-big.h: New file.
65990         * tests/uninorm/test-u32-normalize-big.c: New file.
65991         * tests/uninorm/NormalizationTest.txt: New file, created from
65992         Unicode 5.1.0 NormalizationTest.txt.
65993         * modules/uninorm/nfd-tests: New file.
65995         New module 'uninorm/nfd'.
65996         * lib/uninorm/nfd.c: New file.
65997         * modules/uninorm/nfd: New file.
65999         New module 'uninorm/u32-normalize'.
66000         * lib/uninorm/u32-normalize.c: New file.
66001         * modules/uninorm/u32-normalize: New file.
66003         New module 'uninorm/u16-normalize'.
66004         * lib/uninorm/u16-normalize.c: New file.
66005         * modules/uninorm/u16-normalize: New file.
66007         New module 'uninorm/u8-normalize'.
66008         * lib/uninorm/u8-normalize.c: New file.
66009         * lib/uninorm/normalize-internal.h: New file.
66010         * lib/uninorm/u-normalize-internal.h: New file.
66011         * modules/uninorm/u8-normalize: New file.
66013         New module 'uninorm/decompose-internal'.
66014         * lib/uninorm/decompose-internal.c: New file.
66015         * modules/uninorm/decompose-internal: New file.
66017         Tests for module 'uninorm/composition'.
66018         * tests/uninorm/test-composition.c: New file.
66019         * modules/uninorm/composition-tests: New file.
66021         New module 'uninorm/composition'.
66022         * lib/uninorm/composition.c: New file.
66023         * lib/uninorm/composition-table.gperf: New file, generated by
66024         gen-uni-tables.
66025         * modules/uninorm/composition: New file.
66027         Tests for module 'uninorm/compat-decomposition'.
66028         * tests/uninorm/test-compat-decomposition.c: New file.
66029         * modules/uninorm/compat-decomposition-tests: New file.
66031         New module 'uninorm/compat-decomposition'.
66032         * lib/uninorm/decompose-internal.h: New file.
66033         * lib/uninorm/compat-decomposition.c: New file.
66034         * modules/uninorm/compat-decomposition: New file.
66036         Tests for module 'uninorm/canonical-decomposition'.
66037         * tests/uninorm/test-canonical-decomposition.c: New file.
66038         * modules/uninorm/canonical-decomposition-tests: New file.
66040         New module 'uninorm/canonical-decomposition'.
66041         * lib/uninorm/canonical-decomposition.c: New file.
66042         * modules/uninorm/canonical-decomposition: New file.
66044         Tests for module 'uninorm/decomposition'.
66045         * tests/uninorm/test-decomposition.c: New file.
66046         * modules/uninorm/decomposition-tests: New file.
66048         New module 'uninorm/decomposition'.
66049         * lib/uninorm/decomposition.c: New file.
66050         * modules/uninorm/decomposition: New file.
66052         New module 'uninorm/decomposition-table'.
66053         * lib/uninorm/decomposition-table.h: New file.
66054         * lib/uninorm/decomposition-table.c: New file.
66055         * lib/uninorm/decomposition-table1.h: New file, generated by
66056         gen-uni-tables.
66057         * lib/uninorm/decomposition-table2.h: New file, generated by
66058         gen-uni-tables.
66059         * modules/uninorm/decomposition-table: New file.
66061         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
66062         (UC_DECOMP_*): New enumeration items.
66063         (get_decomposition): New function.
66064         (struct decomp_table): New type.
66065         (output_decomposition, output_decomposition_tables): New functions.
66066         (unicode_composition_exclusions): New variable.
66067         (fill_composition_exclusions, debug_output_composition_tables): New
66068         functions.
66069         (main): Accept one more argument. Invoke fill_composition_exclusions.
66070         Output decomposition and composition tables.
66072         New module 'uninorm/base'.
66073         * lib/uninorm.h: New file.
66074         * lib/unictype.h: Update comment.
66075         * modules/uninorm/base: New file.
66077 2009-02-21  David Lutterkort  <lutter@redhat.com>
66079         Tests for module 'safe-alloc'.
66080         * tests/test-safe-alloc.c: New file.
66081         * modules/safe-alloc-tests: New file.
66083         New module 'safe-alloc'.
66084         * lib/safe-alloc.h: New file.
66085         * lib/safe-alloc.c: New file.
66086         * m4/safe-alloc.m4: New file.
66087         * modules/safe-alloc: New file.
66088         * doc/safe-alloc.texi: New file.
66089         * doc/gnulib.texi: Include it.
66090         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
66091         safe-alloc.
66093 2009-02-18  Bruno Haible  <bruno@clisp.org>
66095         Fix link error on non-glibc systems.
66096         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
66097         variable.
66098         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
66100 2009-02-18  Jim Meyering  <meyering@redhat.com>
66102         fts: avoid used-uninitialized error due to recent change
66103         * lib/fts.c (fts_read): Guard uses of the new member,
66104         parent->fts_n_dirs_remaining, since it's not relevant for
66105         the parent of a directory specified on the command-line.
66107 2009-02-17  James Youngman  <jay@gnu.org>
66108             Bruno Haible  <bruno@clisp.org>
66110         * m4/include_next.m4: Reformulate comment.
66112 2009-02-16  Jim Meyering  <meyering@redhat.com>
66114         fts: add #if guards so that the fts_lgpl module still builds
66115         * lib/fts.c: Guard just-added hash-table-using parts with
66116         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
66117         Reported by Simon Josefsson.
66119 2009-02-15  Bruno Haible  <bruno@clisp.org>
66121         * modules/array-mergesort-tests: New file.
66122         * tests/test-array-mergesort.c: New file.
66124         New module 'array-mergesort'.
66125         * modules/array-mergesort: New file.
66126         * lib/array-mergesort.h: New file.
66128 2009-02-15  Bruno Haible  <bruno@clisp.org>
66130         Fix 2009-02-07 commit.
66131         * lib/gen-uni-tables.c (output_predicate, output_category,
66132         output_combclass, output_bidi_category, output_decimal_digit,
66133         output_digit, output_numeric, output_mirror, output_scripts,
66134         output_ident_category, output_simple_mapping): Fix format directives.
66135         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
66137 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
66139         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
66140         fixes are available from IBM.
66142 2009-02-13  Jim Meyering  <meyering@redhat.com>
66144         fts: arrange not to stat non-directories in more cases
66145         This makes GNU find (when it doesn't need to stat each file)
66146         *much* more efficient at traversing reiserfs file systems.
66147         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
66148         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
66149         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
66150         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
66151         (leaf_optimization_applies): New function.
66152         (LCO_hash, LCO_compare): New helper functions.
66153         (link_count_optimize_ok): New function.
66154         (fts_stat): Initialize new member (if dir).
66155         (fts_read): Decrement parent's fts_n_dirs_remaining count if
66156         we've just stat'ed a directory.  Skip the stat call when possible.
66157         ---
66158         Note this AFS-related exchange:
66159         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
66160         and note find's pioctl call in find/fstype.c.
66161         But that is necessary only if you want to enable the
66162         optimization for AFS, and for now, I don't.
66164         fts: move a function definition "up" (no semantic change)
66165         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
66166         "up" to precede upcoming use of a related function.
66168 2009-02-11  Jim Meyering  <meyering@redhat.com>
66170         fts: correct internal computation of nlinks (optimization-related)
66171         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
66172         whether the current entry is a directory, so don't test it.
66174 2009-02-10  Bruno Haible  <bruno@clisp.org>
66176         Tests for module 'uniwbrk/ulc-wordbreaks'.
66177         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
66178         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
66179         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
66181         Tests for module 'uniwbrk/u32-wordbreaks'.
66182         * modules/uniwbrk/u32-wordbreaks-tests: New file.
66183         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
66185         Tests for module 'uniwbrk/u16-wordbreaks'.
66186         * modules/uniwbrk/u16-wordbreaks-tests: New file.
66187         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
66189         Tests for module 'uniwbrk/u8-wordbreaks'.
66190         * modules/uniwbrk/u8-wordbreaks-tests: New file.
66191         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
66193 2009-02-10  Bruno Haible  <bruno@clisp.org>
66195         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
66196         property.
66197         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
66198         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
66199         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
66201 2009-02-10  Simon Josefsson  <simon@josefsson.org>
66203         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
66204         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
66206 2009-02-10  Bruno Haible  <bruno@clisp.org>
66208         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
66209         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
66210         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
66211         * lib/unilbrk/u8-possible-linebreaks.c: Update.
66212         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
66213         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
66215 2009-02-09  Simon Josefsson  <simon@josefsson.org>
66217         * lib/sockets.h (gl_fd_to_handle): New function.
66219         * tests/test-sockets.c: Call gl_fd_to_handle.
66221 2009-02-09  Bruno Haible  <bruno@clisp.org>
66223         * doc/havelib.texi: Document the conventions on bi-arch systems.
66225 2009-02-08  Bruno Haible  <bruno@clisp.org>
66227         Document the AC_LIB_LINKFLAGS macro.
66228         * doc/havelib.texi: New file, mostly written on 2005-05-24.
66229         * doc/gnulib.texi: Include it.
66231 2009-02-08  Bruno Haible  <bruno@clisp.org>
66233         Fix wrong order of sections, compared to TOC.
66234         * doc/gnulib.texi: Include relocatable-maint.texi after the
66235         "Regular expressions" node, not before.
66237 2009-02-08  Bruno Haible  <bruno@clisp.org>
66239         Tests for module 'unicase/totitle'.
66240         * modules/unicase/totitle-tests: New file.
66242         Tests for module 'unicase/tolower'.
66243         * modules/unicase/tolower-tests: New file.
66245         Tests for module 'unicase/toupper'.
66246         * modules/unicase/toupper-tests: New file.
66247         * tests/unicase/test-mapping-part1.h: New file.
66248         * tests/unicase/test-mapping-part2.h: New file.
66250         New module 'unicase/totitle'.
66251         * modules/unicase/totitle: New file.
66252         * lib/unicase/totitle.c: New file.
66254         New module 'unicase/tolower'.
66255         * modules/unicase/tolower: New file.
66256         * lib/unicase/tolower.c: New file.
66258         New module 'unicase/toupper'.
66259         * modules/unicase/toupper: New file.
66260         * lib/unicase/toupper.c: New file.
66261         * lib/unicase/simple-mapping.h: New file.
66263         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
66264         (mapping_table): New structure.
66265         (output_simple_mapping): New function.
66266         (main): Invoke output_simple_mapping_test and output_simple_mapping.
66267         * modules/gen-uni-tables (Description): Update.
66268         * lib/unicase/toupper.h: New file, automatically generated by
66269         gen-uni-tables.
66270         * lib/unicase/tolower.h: New file, automatically generated by
66271         gen-uni-tables.
66272         * lib/unicase/totitle.h: New file, automatically generated by
66273         gen-uni-tables.
66274         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
66275         gen-uni-tables.
66276         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
66277         gen-uni-tables.
66278         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
66279         gen-uni-tables.
66281         New module 'unicase/base'.
66282         * modules/unicase/base: New file.
66283         * lib/unicase.h: New file.
66285 2009-02-08  Bruno Haible  <bruno@clisp.org>
66287         New module 'uniwbrk/ulc-wordbreaks'.
66288         * modules/uniwbrk/ulc-wordbreaks: New file.
66289         * lib/uniwbrk/ulc-wordbreaks.c: New file.
66291         New module 'uniwbrk/u32-wordbreaks'.
66292         * modules/uniwbrk/u32-wordbreaks: New file.
66293         * lib/uniwbrk/u32-wordbreaks.c: New file.
66295         New module 'uniwbrk/u16-wordbreaks'.
66296         * modules/uniwbrk/u16-wordbreaks: New file.
66297         * lib/uniwbrk/u16-wordbreaks.c: New file.
66299         New module 'uniwbrk/u8-wordbreaks'.
66300         * modules/uniwbrk/u8-wordbreaks: New file.
66301         * lib/uniwbrk/u8-wordbreaks.c: New file.
66302         * lib/uniwbrk/u-wordbreaks.h: New file.
66304         New module 'uniwbrk/table'.
66305         * modules/uniwbrk/table: New file.
66306         * lib/uniwbrk/wbrktable.h: New file.
66307         * lib/uniwbrk/wbrktable.c: New file.
66309         New module 'uniwbrk/wordbreak-property'.
66310         * modules/uniwbrk/wordbreak-property: New file.
66311         * lib/uniwbrk/wordbreak-property.c: New file.
66313         * lib/gen-uni-tables.c (WBP_*): New enum items.
66314         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
66315         (unicode_org_wbp): New variable.
66316         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
66317         New functions.
66318         (wbp_table): New structure.
66319         (output_wbp, output_wbrk_tables): New functions.
66320         (main): Accept additional argument. Invoke fill_org_wbp,
66321         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
66322         output_wbrk_tables.
66323         * modules/gen-uni-tables (Description): Update.
66324         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
66325         gen-uni-tables.
66327         New module 'uniwbrk/base'.
66328         * modules/uniwbrk/base: New file.
66329         * lib/uniwbrk.h: New file.
66331 2009-02-08  Bruno Haible  <bruno@clisp.org>
66333         Update to Unicode 5.1.0.
66334         * lib/gen-uni-tables.c (is_property_alphabetic): Include
66335         U+2185..U+2188.
66336         (is_property_default_ignorable_code_point): Don't include characters
66337         of category Cc or Cs and not-a-characters.
66338         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
66339         U+0D79, U+109E, U+109F, U+A60C.
66340         * lib/unictype/bidi_of.h: Regenerated.
66341         * lib/unictype/blocks.h: Regenerated.
66342         * lib/unictype/categ_C.h: Regenerated.
66343         * lib/unictype/categ_Cf.h: Regenerated.
66344         * lib/unictype/categ_Cn.h: Regenerated.
66345         * lib/unictype/categ_L.h: Regenerated.
66346         * lib/unictype/categ_Ll.h: Regenerated.
66347         * lib/unictype/categ_Lm.h: Regenerated.
66348         * lib/unictype/categ_Lo.h: Regenerated.
66349         * lib/unictype/categ_Lu.h: Regenerated.
66350         * lib/unictype/categ_M.h: Regenerated.
66351         * lib/unictype/categ_Mc.h: Regenerated.
66352         * lib/unictype/categ_Me.h: Regenerated.
66353         * lib/unictype/categ_Mn.h: Regenerated.
66354         * lib/unictype/categ_N.h: Regenerated.
66355         * lib/unictype/categ_Nd.h: Regenerated.
66356         * lib/unictype/categ_Nl.h: Regenerated.
66357         * lib/unictype/categ_No.h: Regenerated.
66358         * lib/unictype/categ_P.h: Regenerated.
66359         * lib/unictype/categ_Pd.h: Regenerated.
66360         * lib/unictype/categ_Pe.h: Regenerated.
66361         * lib/unictype/categ_Pf.h: Regenerated.
66362         * lib/unictype/categ_Pi.h: Regenerated.
66363         * lib/unictype/categ_Po.h: Regenerated.
66364         * lib/unictype/categ_Ps.h: Regenerated.
66365         * lib/unictype/categ_S.h: Regenerated.
66366         * lib/unictype/categ_Sk.h: Regenerated.
66367         * lib/unictype/categ_Sm.h: Regenerated.
66368         * lib/unictype/categ_So.h: Regenerated.
66369         * lib/unictype/categ_of.h: Regenerated.
66370         * lib/unictype/combining.h: Regenerated.
66371         * lib/unictype/ctype_alnum.h: Regenerated.
66372         * lib/unictype/ctype_alpha.h: Regenerated.
66373         * lib/unictype/ctype_graph.h: Regenerated.
66374         * lib/unictype/ctype_lower.h: Regenerated.
66375         * lib/unictype/ctype_print.h: Regenerated.
66376         * lib/unictype/ctype_punct.h: Regenerated.
66377         * lib/unictype/ctype_upper.h: Regenerated.
66378         * lib/unictype/decdigit.h: Regenerated.
66379         * lib/unictype/digit.h: Regenerated.
66380         * lib/unictype/mirror.h: Regenerated.
66381         * lib/unictype/numeric.h: Regenerated.
66382         * lib/unictype/pr_alphabetic.h: Regenerated.
66383         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
66384         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
66385         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
66386         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
66387         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
66388         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
66389         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
66390         * lib/unictype/pr_combining.h: Regenerated.
66391         * lib/unictype/pr_dash.h: Regenerated.
66392         * lib/unictype/pr_decimal_digit.h: Regenerated.
66393         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
66394         * lib/unictype/pr_deprecated.h: Regenerated.
66395         * lib/unictype/pr_diacritic.h: Regenerated.
66396         * lib/unictype/pr_extender.h: Regenerated.
66397         * lib/unictype/pr_format_control.h: Regenerated.
66398         * lib/unictype/pr_grapheme_base.h: Regenerated.
66399         * lib/unictype/pr_grapheme_extend.h: Regenerated.
66400         * lib/unictype/pr_grapheme_link.h: Regenerated.
66401         * lib/unictype/pr_id_continue.h: Regenerated.
66402         * lib/unictype/pr_id_start.h: Regenerated.
66403         * lib/unictype/pr_ideographic.h: Regenerated.
66404         * lib/unictype/pr_ignorable_control.h: Regenerated.
66405         * lib/unictype/pr_lowercase.h: Regenerated.
66406         * lib/unictype/pr_math.h: Regenerated.
66407         * lib/unictype/pr_numeric.h: Regenerated.
66408         * lib/unictype/pr_other_alphabetic.h: Regenerated.
66409         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
66410         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
66411         * lib/unictype/pr_other_id_continue.h: Regenerated.
66412         * lib/unictype/pr_other_lowercase.h: Regenerated.
66413         * lib/unictype/pr_other_math.h: Regenerated.
66414         * lib/unictype/pr_punctuation.h: Regenerated.
66415         * lib/unictype/pr_sentence_terminal.h: Regenerated.
66416         * lib/unictype/pr_soft_dotted.h: Regenerated.
66417         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
66418         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
66419         * lib/unictype/pr_unified_ideograph.h: Regenerated.
66420         * lib/unictype/pr_uppercase.h: Regenerated.
66421         * lib/unictype/pr_xid_continue.h: Regenerated.
66422         * lib/unictype/pr_xid_start.h: Regenerated.
66423         * lib/unictype/pr_zero_width.h: Regenerated.
66424         * lib/unictype/scripts.h: Regenerated.
66425         * lib/unictype/scripts_byname.gperf: Regenerated.
66426         * lib/unictype/sy_java_ident.h: Regenerated.
66427         * lib/unilbrk/lbrkprop1.h: Regenerated.
66428         * lib/unilbrk/lbrkprop2.h: Regenerated.
66429         * tests/unictype/test-categ_C.c: Regenerated.
66430         * tests/unictype/test-categ_Cf.c: Regenerated.
66431         * tests/unictype/test-categ_Cn.c: Regenerated.
66432         * tests/unictype/test-categ_L.c: Regenerated.
66433         * tests/unictype/test-categ_Ll.c: Regenerated.
66434         * tests/unictype/test-categ_Lm.c: Regenerated.
66435         * tests/unictype/test-categ_Lo.c: Regenerated.
66436         * tests/unictype/test-categ_Lu.c: Regenerated.
66437         * tests/unictype/test-categ_M.c: Regenerated.
66438         * tests/unictype/test-categ_Mc.c: Regenerated.
66439         * tests/unictype/test-categ_Me.c: Regenerated.
66440         * tests/unictype/test-categ_Mn.c: Regenerated.
66441         * tests/unictype/test-categ_N.c: Regenerated.
66442         * tests/unictype/test-categ_Nd.c: Regenerated.
66443         * tests/unictype/test-categ_Nl.c: Regenerated.
66444         * tests/unictype/test-categ_No.c: Regenerated.
66445         * tests/unictype/test-categ_P.c: Regenerated.
66446         * tests/unictype/test-categ_Pd.c: Regenerated.
66447         * tests/unictype/test-categ_Pe.c: Regenerated.
66448         * tests/unictype/test-categ_Pf.c: Regenerated.
66449         * tests/unictype/test-categ_Pi.c: Regenerated.
66450         * tests/unictype/test-categ_Po.c: Regenerated.
66451         * tests/unictype/test-categ_Ps.c: Regenerated.
66452         * tests/unictype/test-categ_S.c: Regenerated.
66453         * tests/unictype/test-categ_Sk.c: Regenerated.
66454         * tests/unictype/test-categ_Sm.c: Regenerated.
66455         * tests/unictype/test-categ_So.c: Regenerated.
66456         * tests/unictype/test-ctype_alnum.c: Regenerated.
66457         * tests/unictype/test-ctype_alpha.c: Regenerated.
66458         * tests/unictype/test-ctype_graph.c: Regenerated.
66459         * tests/unictype/test-ctype_lower.c: Regenerated.
66460         * tests/unictype/test-ctype_print.c: Regenerated.
66461         * tests/unictype/test-ctype_punct.c: Regenerated.
66462         * tests/unictype/test-ctype_upper.c: Regenerated.
66463         * tests/unictype/test-decdigit.h: Regenerated.
66464         * tests/unictype/test-digit.h: Regenerated.
66465         * tests/unictype/test-numeric.h: Regenerated.
66466         * tests/unictype/test-pr_alphabetic.c: Regenerated.
66467         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
66468         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
66469         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
66470         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
66471         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
66472         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
66473         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
66474         * tests/unictype/test-pr_combining.c: Regenerated.
66475         * tests/unictype/test-pr_dash.c: Regenerated.
66476         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
66477         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
66478         * tests/unictype/test-pr_deprecated.c: Regenerated.
66479         * tests/unictype/test-pr_diacritic.c: Regenerated.
66480         * tests/unictype/test-pr_extender.c: Regenerated.
66481         * tests/unictype/test-pr_format_control.c: Regenerated.
66482         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
66483         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
66484         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
66485         * tests/unictype/test-pr_id_continue.c: Regenerated.
66486         * tests/unictype/test-pr_id_start.c: Regenerated.
66487         * tests/unictype/test-pr_ideographic.c: Regenerated.
66488         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
66489         * tests/unictype/test-pr_lowercase.c: Regenerated.
66490         * tests/unictype/test-pr_math.c: Regenerated.
66491         * tests/unictype/test-pr_numeric.c: Regenerated.
66492         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
66493         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
66494         Regenerated.
66495         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
66496         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
66497         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
66498         * tests/unictype/test-pr_other_math.c: Regenerated.
66499         * tests/unictype/test-pr_punctuation.c: Regenerated.
66500         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
66501         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
66502         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
66503         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
66504         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
66505         * tests/unictype/test-pr_uppercase.c: Regenerated.
66506         * tests/unictype/test-pr_xid_continue.c: Regenerated.
66507         * tests/unictype/test-pr_xid_start.c: Regenerated.
66508         * tests/unictype/test-pr_zero_width.c: Regenerated.
66510         Update to Unicode 5.1.0.
66511         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
66512         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
66513         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
66514         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
66515         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
66516         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
66517         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
66518         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
66519         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
66520         (nonspacing_table_ind): Update.
66521         * tests/uniwidth/test-uc_width2.sh: Update expected result.
66523         Update to Unicode 5.1.0.
66524         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
66525         code transform.
66526         * lib/uniname/uniname.c (unicode_character_name,
66527         unicode_name_character): Add the range 0x1Fxxx to the code transform.
66528         * lib/uniname/uninames.h: Regenerated.
66529         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
66531 2009-02-07  Bruno Haible  <bruno@clisp.org>
66533         Merge gen-ctype and gen-lbrk into a single program.
66534         * lib/gen-uni-tables.c: New file, incorporating
66535         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
66536         Add directory prefixes to the names of the generated files.
66537         * lib/unictype/gen-ctype.c: Remove file.
66538         * lib/unilbrk/gen-lbrk.c: Remove file.
66539         * modules/gen-uni-tables: New file.
66540         * modules/unictype/gen-ctype: Remove file.
66541         * modules/unilbrk/gen-lbrk: Remove file.
66543 2009-02-07  Bruno Haible  <bruno@clisp.org>
66545         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
66547         New module 'unistr/u32-strcoll'.
66548         * modules/unistr/u32-strcoll: New file.
66549         * lib/unistr/u32-strcoll.c: New file.
66551         New module 'unistr/u16-strcoll'.
66552         * modules/unistr/u16-strcoll: New file.
66553         * lib/unistr/u16-strcoll.c: New file.
66555         New module 'unistr/u8-strcoll'.
66556         * modules/unistr/u8-strcoll: New file.
66557         * lib/unistr/u8-strcoll.c: New file.
66558         * lib/unistr/u-strcoll.h: New file.
66560 2009-02-07  Bruno Haible  <bruno@clisp.org>
66562         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
66563         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
66564         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
66565         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
66566         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
66567         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
66569 2009-02-07  Bruno Haible  <bruno@clisp.org>
66571         Make 64-bit clean.
66572         * lib/unictype/gen-ctype.c (output_predicate, output_category,
66573         output_combclass, output_bidi_category, output_decimal_digit,
66574         output_digit, output_numeric, output_mirror, output_scripts,
66575         output_ident_category): Use proper width specifier in format strings.
66577 2009-02-07  Bruno Haible  <bruno@clisp.org>
66579         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
66580         failure behaviour.
66582 2009-02-07  Jim Meyering  <meyering@redhat.com>
66584         regex: avoid compilation failure with upcoming gcc-4.4
66585         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
66586         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
66587         "... error: integer overflow in preprocessor expression".
66589 2009-02-05  Ben Pfaff  <blp@gnu.org>
66591         Fix link errors on Windows when close module is used.
66592         * modules/close: Add $(LIB_CLOSE) to Link section.
66593         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
66594         $(LIB_CLOSE) on Windows.
66596 2009-02-05  Jim Meyering  <meyering@redhat.com>
66598         still avoid unused-parameter warnings, but do it cleanly
66599         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
66600         (get_fs_usage): Cast to void instead.
66601         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
66602         (dev_from_mount_options, read_file_system_list): Cast to void.
66603         Prompted by Bruno Haible.
66605 2009-02-04  Jim Meyering  <meyering@redhat.com>
66607         fsusage.c: correct copyright year
66608         * lib/fsusage.c: Reflect year in which the change is pushed into
66610         avoid misc. warnings
66611         * lib/fsusage.c (UNUSED_PARAM): Define.
66612         (get_fs_usage): Mark parameter "disk" as unused.
66613         * lib/getugroups.c (getgrent): Use "void" in prototype.
66614         * lib/mountlist.c: Mark unused parameters.
66615         (read_file_system_list): Declare a local with "const".
66616         * lib/nanosleep.c (getnow): Declare static.
66617         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
66619         dirfd: set errno upon failure
66620         * lib/dirfd.c: Include <errno.h>.
66621         Set errno to ENOTSUP when returning -1.
66622         * modules/dirfd (Depends-on): Add errno.
66623         Suggested by John Kodis <kodis@comcast.net>.
66625 2009-02-01  Bruno Haible  <bruno@clisp.org>
66627         Don't assume sizeof (long) >= sizeof (void *).
66628         * lib/memcmp.c: Include stdint.h.
66629         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
66630         srcp2 to 'const byte *'.
66631         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
66632         types to uintptr_t.
66633         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
66634         * modules/memcmp (Depends-on): Add stdint.
66635         Reported by Ozkan Sezer <sezeroz@gmail.com>.
66637 2009-01-30  Eric Blake  <ebb9@byu.net>
66639         fix more require-before-expand issues
66640         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
66641         expand, AC_PROG_AWK.
66642         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
66644 2009-01-28  Eric Blake  <ebb9@byu.net>
66646         version-etc: use consistent URL formatting
66647         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
66648         Improve formatting.  Use fputs for string without %.
66650 2009-01-28  Jim Meyering  <meyering@redhat.com>
66652         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
66653         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
66654         "underquoted definition of NAME" from autoconf-2.59.
66656 2009-01-28  Bruno Haible  <bruno@clisp.org>
66658         * doc/gnulib.texi: Add "Obsolete modules" to index.
66660 2009-01-28  Jim Meyering  <meyering@redhat.com>
66662         useless-if-before-free: recognize more variants
66663         * build-aux/useless-if-before-free: Also recognize e.g.,
66664         if (NULL != p) free (p);
66666 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
66668         test-getaddrinfo: skip (don't fail) this test when there's no network
66669         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
66670         on the presumption that it means you lack network access.
66672 2009-01-26  Jim Meyering  <meyering@redhat.com>
66674         fflush: avoid warnings on modern systems
66675         * lib/fflush.c (rpl_fflush): Move declarations of locals,
66676         pos and result, into scopes where they're used.
66678 2009-01-26  Eric Blake  <ebb9@byu.net>
66680         Silence warning reintroduced by recent extensions patch.
66681         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
66682         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
66683         autoconf.
66685         Backport improved autoconf semantics of AC_DEFUN_ONCE.
66686         * m4/00gnulib.m4: New file.
66687         * gnulib-tool (func_get_filelist): Always use it.
66688         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
66689         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
66691 2009-01-25  Bruno Haible  <bruno@clisp.org>
66693         Make test-quotearg work on MacOS X and AIX.
66694         * tests/test-quotearg.sh: New file.
66695         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
66696         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
66697         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
66698         include <libintl.h>.
66699         (fake_locale): Remove variable.
66700         (gettext, dgettext, dcgettext): Remove functions.
66701         (main): Instead of setting a fake locale, set a real locale. Call
66702         textdomain and bindtextdomain.
66703         * modules/quotearg-tests (Files): Add the new files.
66704         (Depends-on): Add gettext, setenv, unsetenv.
66705         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
66706         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
66707         Augment TESTS_ENVIRONMENT.
66709 2009-01-25  Bruno Haible  <bruno@clisp.org>
66711         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
66712         fr_FR.ISO8859-1 locale on MacOS X.
66713         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
66714         ja_JP.eucJP locale on MacOS X.
66715         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
66716         zh_CN.GB18030 locale on MacOS X.
66718 2009-01-25  Bruno Haible  <bruno@clisp.org>
66720         Avoid link errors on MacOS X 10.3.
66721         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
66722         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
66724 2009-01-25  Bruno Haible  <bruno@clisp.org>
66726         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
66727         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
66728         * modules/pipe (Files): Remove m4/posix_spawn.m4.
66729         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
66730         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
66731         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
66732         posix_spawnattr_init, posix_spawnattr_setsigmask,
66733         posix_spawnattr_setflags, posix_spawnattr_destroy.
66735         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
66736         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
66737         * modules/execute (Files): Remove m4/posix_spawn.m4.
66738         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
66739         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
66740         posix_spawnattr_init, posix_spawnattr_setsigmask,
66741         posix_spawnattr_setflags, posix_spawnattr_destroy.
66743 2009-01-25  Bruno Haible  <bruno@clisp.org>
66745         * lib/glthread/threadlib.c: Include <stdlib.h>.
66747 2009-01-25  Bruno Haible  <bruno@clisp.org>
66749         * lib/glthread/threadlib.c (dummy): New declaration.
66751 2009-01-25  Bruno Haible  <bruno@clisp.org>
66753         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
66754         multibyte characters also for the GB18030 encoding. Don't crash when
66755         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
66757 2009-01-25  Bruno Haible  <bruno@clisp.org>
66759         Avoid redefining 'struct random_data' on OSF/1 5.1.
66760         * lib/stdlib.in.h: Include <random.h> if it exists.
66761         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
66762         HAVE_RANDOM_H. Include <random.h> when testing whether
66763         'struct random_data' exists.
66764         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
66766 2009-01-25  Bruno Haible  <bruno@clisp.org>
66768         Don't install charset.alias on MacOS X >= 10.3.
66769         * lib/localcharset.c (DARWIN7): New macro.
66770         (get_charset_aliases): Hardcode the result for Darwin7.
66771         * modules/localcharset (install-exec-local): Don't install
66772         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
66774 2009-01-25  Bruno Haible  <bruno@clisp.org>
66776         Don't install charset.alias on mingw and Cygwin.
66777         * modules/localcharset (install-exec-local): Don't install
66778         charset.alias on mingw and Cygwin, if the file does not yet exist.
66779         The result for these platforms is hardcoded in localcharset.c.
66781 2009-01-25  Bruno Haible  <bruno@clisp.org>
66783         Make it possible again to use AC_GNU_SOURCE together with gnulib.
66784         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
66785         before requiring AC_USE_SYSTEM_EXTENSIONS.
66787 2009-01-25  Jim Meyering  <meyering@redhat.com>
66789         c-strtod: avoid warnings
66790         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
66791         "assignment discards qualifiers from pointer target type" warnings.
66793 2009-01-24  Bruno Haible  <bruno@clisp.org>
66795         Add support for non-UTF-8 locales on MacOS X.
66796         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
66797         canonical encodings. For Darwin 7 and newer, don't map traditional
66798         encodings to UTF-8.
66799         Reported by Vincent Lefevre <vincent@vinc17.org>
66800         at <http://savannah.gnu.org/bugs/?25235>.
66802 2009-01-24  Bruno Haible  <bruno@clisp.org>
66804         * doc/gnulib.texi (Obsolete modules): New section.
66805         Reported by Mike Frysinger <vapier@gentoo.org>.
66807 2009-01-24  Bruno Haible  <bruno@clisp.org>
66809         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
66810         (%.dvi): New rule.
66812 2009-01-24  Bruno Haible  <bruno@clisp.org>
66814         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
66815         Reported by Eric Blake.
66817 2009-01-24  Bruno Haible  <bruno@clisp.org>
66819         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
66820         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
66821         Reported by Gary V. Vaughan <gary@gnu.org>.
66823 2009-01-24  Bruno Haible  <bruno@clisp.org>
66825         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
66827 2009-01-23  Bruno Haible  <bruno@clisp.org>
66829         Make c-strtod, c-strtold usable in libraries.
66830         * lib/c-strtod.c: Include string.h instead of xalloc.h.
66831         (C_STRTOD): Call strdup instead of xstrdup.
66832         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
66833         * modules/c-strtold (Depends-on): Likewise.
66834         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
66835         * NEWS: Mention the change.
66836         Reported by Michael Gold <mgold@ncf.ca>.
66838 2009-01-23  Jim Meyering  <meyering@redhat.com>
66840         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
66841         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
66842         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
66844 2009-01-23  Simon Josefsson  <simon@josefsson.org>
66846         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
66847         GNU CoreUtils.
66848         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
66849         * modules/version-etc (Description): Update.
66851 2009-01-22  Bruno Haible  <bruno@clisp.org>
66853         Cache the C locale object.
66854         * lib/c-strtod.c (c_locale_cache): New variable.
66855         (c_locale): New function.
66856         (C_STRTOD): Use it, and don't call freelocale.
66857         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
66858         Suggested by Paolo Bonzini.
66860 2009-01-21  Bruno Haible  <bruno@clisp.org>
66862         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
66863         conditions other than overflow.
66865 2009-01-21  Bruno Haible  <bruno@clisp.org>
66867         * lib/c-strtod.c: Include errno.h.
66868         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
66869         value from STRTOD_L and STRTOD.
66871 2009-01-21  Bruno Haible  <bruno@clisp.org>
66872         and Jim Meyering  <meyering@redhat.com>
66874         nanosleep: skip configure test (fail it) for apple universal builds
66875         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
66876         universal builds, assume that nanosleep does not work.
66877         * modules/nanosleep (Depends-on): Add multiarch.
66879         mktime: skip configure test (fail it) for apple universal builds
66880         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
66881         universal builds, assume that mktime does not work.
66882         * modules/mktime (Depends-on): Add multiarch.
66884 2009-01-21  Eric Blake  <ebb9@byu.net>
66886         multiarch: avoid expand-before-require warning
66887         * modules/multiarch (configure.ac): Require, rather than expand,
66888         gl_MULTIARCH.
66889         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
66890         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
66891         enforce that all clients require it.  Partial reversion of
66892         2008-12-29 patch.
66894         error: avoid expand-before-require warning
66895         * modules/errno (configure.ac): Require, rather than expand,
66896         gl_HEADER_ERRNO_H.
66897         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
66898         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
66899         enforce that all clients require it.
66901         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
66902         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
66903         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
66904         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
66906 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
66908         Revert:
66909         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
66911         regex: do not depend on obsolete modules.
66912         * modules/regex: Remove memcmp and memmove.
66914 2009-01-20  Bruno Haible  <bruno@clisp.org>
66916         Make the 'link' module link on Windows NT 4.
66917         * lib/link.c (_WIN32_WINNT): Don't define.
66918         (CreateHardLinkFuncType): New type.
66919         (CreateHardLinkFunc, initialized): New variables.
66920         (initialize): New function.
66921         (link): Invoke CreateHardLink indirectly through the function pointer.
66923 2009-01-20  Bruno Haible  <bruno@clisp.org>
66925         Fix compilation failure on mingw.
66926         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
66928 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
66930         * doc/c-strtod.texi: Mention a couple of restrictions.
66932 2009-01-20  Jim Meyering  <meyering@redhat.com>
66934         gettimeofday: move more declarations out of functions
66935         * lib/gettimeofday.c: Move extern declarations of tzset and
66936         gmtime out of containing functions.  Prompted by Bruno Haible.
66938 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
66940         regex: do not depend on obsolete modules.
66941         * modules/regex: Remove memcmp and memmove.
66943 2009-01-19  Bruno Haible  <bruno@clisp.org>
66945         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
66946         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
66947         gl_BIGENDIAN, not AC_C_BIGENDIAN.
66948         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
66949         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
66951 2009-01-19  Bruno Haible  <bruno@clisp.org>
66953         * tests/test-link.c: Include <errno.h>.
66954         (main): Exit with code 77 when a hard link cannot be created due to
66955         the file system.
66956         * tests/test-link.sh: Skip test when a hard link cannot be created due
66957         to the file system.
66958         Suggested by Eric Blake.
66960 2009-01-19  Martin Lambers  <marlam@marlam.de>
66962         * modules/link-tests: New file.
66963         * tests/test-link.sh: New file.
66964         * tests/test-link.c: New file.
66966 2009-01-19  Eric Blake  <ebb9@byu.net>
66968         doc: mention another function added in cygwin 1.7.0
66969         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
66970         Another new function in cygwin 1.7.
66972 2009-01-19  Bruno Haible  <bruno@clisp.org>
66974         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
66975         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
66976         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
66977         gl_BIGENDIAN, not AC_C_BIGENDIAN.
66978         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
66979         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
66980         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
66981         * m4/md4.m4 (gl_MD4): Likewise.
66982         * m4/md5.m4 (gl_MD5): Likewise.
66983         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
66984         * m4/sha1.m4 (gl_SHA1): Likewise.
66985         * m4/sha256.m4 (gl_SHA256): Likewise.
66986         * m4/sha512.m4 (gl_SHA512): Likewise.
66988 2009-01-19  Bruno Haible  <bruno@clisp.org>
66990         * modules/uniname/uniname-tests (Depends-on): Add progname.
66991         * tests/uniname/test-uninames.c: Include progname.h.
66992         (main): Call set_program_name.
66994         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
66995         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
66996         (main): Call set_program_name.
66998         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
66999         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
67000         (main): Call set_program_name.
67002         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
67003         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
67004         (main): Call set_program_name.
67006         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
67007         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
67008         (main): Call set_program_name.
67010         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
67011         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
67012         (main): Call set_program_name.
67014         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
67015         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
67016         (main): Call set_program_name.
67018         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
67019         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
67020         (main): Call set_program_name.
67022         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
67023         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
67024         (main): Call set_program_name.
67026 2009-01-19  Eric Blake  <ebb9@byu.net>
67028         test-unistd: test previous patch
67029         * tests/test-unistd.c: Test *_FILENO macros.
67031         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
67032         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
67033         Guarantee a definition.
67034         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
67035         * modules/unistd-safer (Depends-on): Add dependency on unistd.
67036         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
67037         * lib/dup-safer.c (STDERR_FILENO): Likewise.
67038         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
67039         Likewise.
67040         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
67041         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
67042         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
67043         Likewise.
67044         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
67045         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
67046         (STDERR_FILENO): Likewise.
67047         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
67048         (STDERR_FILENO): Likewise.
67049         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
67050         (STDERR_FILENO): Likewise.
67051         Reported by Elbert Pol.
67053 2009-01-19  Eric Blake  <ebb9@byu.net>
67055         doc: mention more functions added in cygwin 1.7.0
67056         * doc/posix-functions/abort.texi (abort): Update wording related
67057         to cygwin.
67058         * doc/posix-functions/daylight.texi (daylight): Likewise.
67059         * doc/posix-functions/optarg.texi (optarg): Likewise.
67060         * doc/posix-functions/optarg.texi (opterr): Likewise.
67061         * doc/posix-functions/optarg.texi (optind): Likewise.
67062         * doc/posix-functions/optarg.texi (optopt): Likewise.
67063         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
67064         worked in 1.5.x, and was withdrawn in 1.7.
67065         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
67066         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
67067         cygwin versions.
67068         * doc/posix-functions/perror.texi (perror): Likewise.
67069         * doc/posix-functions/printf.texi (printf): Likewise.
67070         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
67071         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
67072         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
67073         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
67074         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
67075         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
67076         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
67077         Likewise.
67078         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
67079         Likewise.
67080         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
67081         this function.
67082         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
67083         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
67084         Likewise.
67085         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
67086         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
67087         * doc/posix-functions/confstr.texi (confstr): Likewise.
67088         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
67089         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
67090         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
67091         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
67092         * doc/posix-functions/fputws.texi (fputws): Likewise.
67093         * doc/posix-functions/fwide.texi (fwide): Likewise.
67094         * doc/posix-functions/getwc.texi (getwc): Likewise.
67095         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
67096         * doc/posix-functions/putwc.texi (putwc): Likewise.
67097         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
67098         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
67099         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
67100         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
67101         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
67102         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
67103         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
67104         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
67105         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
67106         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
67107         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
67109 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
67111         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
67112         * lib/ioctl.c: Include <sys/ioctl.h>.
67114 2009-01-19  Simon Josefsson  <simon@josefsson.org>
67116         * modules/getdate-tests (Depends-on): Add progname.
67117         * tests/test-getdate.c: Use progname module, to avoid link errors
67118         on non-glibc systems.
67120 2009-01-18  Simon Josefsson  <simon@josefsson.org>
67122         * modules/filenamecat-tests (Depends-on): Add progname.
67123         * modules/fstrcmp-tests (Depends-on): Likewise.
67125         * tests/test-filenamecat.c: Use progname module, to avoid link
67126         errors on non-glibc systems.
67127         * tests/test-fstrcmp.c: Likewise.
67129 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
67131         gettimeofday: avoid warning: nested extern declaration of 'localtime'
67132         * lib/gettimeofday.c: Move extern declaration out of function.
67134 2009-01-18  Bruno Haible  <bruno@clisp.org>
67136         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
67137         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
67138         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
67140 2009-01-18  Bruno Haible  <bruno@clisp.org>
67142         * lib/strftime.c (MEMPCPY): Remove unused macro.
67143         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
67145 2009-01-18  Martin Lambers  <marlam@marlam.de>
67147         New module 'link'.
67148         * lib/unistd.in.h (link): New declaration.
67149         * lib/link.c: New file.
67150         * m4/link.m4: New file.
67151         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
67152         HAVE_LINK.
67153         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
67154         * modules/link: New file.
67155         * doc/posix-functions/link.texi: Mention the new module.
67157 2009-01-18  Bruno Haible  <bruno@clisp.org>
67159         * tests/test-avltree_list.c (main): Call set_program_name.
67160         * tests/test-avltree_oset.c (main): Likewise.
67161         * tests/test-obstack-printf.c: Include progname.h.
67162         (main): Call set_program_name.
67163         * tests/test-quotearg.c: Include progname.h.
67164         (main): Call set_program_name.
67165         * tests/test-xmemdup0.c: Include progname.h.
67166         (main): Call set_program_name.
67168 2009-01-18  Bruno Haible  <bruno@clisp.org>
67170         New module 'alphasort'.
67171         * lib/dirent.in.h (alphasort): New declaration.
67172         * lib/alphasort.c: New file, from glibc with modifications.
67173         * m4/alphasort.m4: New file.
67174         * modules/alphasort: New file.
67175         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
67176         HAVE_ALPHASORT.
67177         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
67178         HAVE_ALPHASORT.
67179         * doc/posix-functions/alphasort.texi: Mention the new module and the
67180         portability problems.
67182 2009-01-18  Bruno Haible  <bruno@clisp.org>
67184         New module 'scandir'.
67185         * lib/dirent.in.h (scandir): New declaration.
67186         * lib/scandir.c: New file, from glibc with modifications.
67187         * m4/scandir.m4: New file.
67188         * modules/scandir: New file.
67189         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
67190         HAVE_SCANDIR.
67191         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
67192         HAVE_SCANDIR.
67193         * doc/posix-functions/scandir.texi: Mention the new module and the
67194         portability problems.
67196 2009-01-17  Bruno Haible  <bruno@clisp.org>
67198         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
67199         Update documentation.
67200         (func_remove_suffix): Escape all dots in the suffix. Update
67201         documentation.
67202         (func_filter_filelist): Update documentation.
67203         Reported by Ralf Wildenhues.
67205 2009-01-17  Bruno Haible  <bruno@clisp.org>
67207         * modules/dprintf-posix-tests: New file.
67208         * tests/test-dprintf-posix.sh: New file.
67209         * tests/test-dprintf-posix.c: New file.
67211         New modules 'dprintf', 'dprintf-posix'.
67212         * lib/stdio.in.h (dprintf): New declaration.
67213         * lib/dprintf.c: New file.
67214         * m4/dprintf.m4: New file.
67215         * m4/dprintf-posix.m4: New file.
67216         * modules/dprintf: New file.
67217         * modules/dprintf-posix: New file.
67218         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
67219         HAVE_DPRINTF, REPLACE_DPRINTF.
67220         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
67221         HAVE_DPRINTF, REPLACE_DPRINTF.
67222         * doc/posix-functions/dprintf.texi: Mention the new modules.
67224 2009-01-17  Bruno Haible  <bruno@clisp.org>
67226         * modules/vdprintf-posix-tests: New file.
67227         * tests/test-vdprintf-posix.sh: New file.
67228         * tests/test-vdprintf-posix.c: New file.
67230         New modules 'vdprintf', 'vdprintf-posix'.
67231         * lib/stdio.in.h (vdprintf): New declaration.
67232         * lib/vdprintf.c: New file.
67233         * m4/vdprintf.m4: New file.
67234         * m4/vdprintf-posix.m4: New file.
67235         * modules/vdprintf: New file.
67236         * modules/vdprintf-posix: New file.
67237         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
67238         HAVE_VDPRINTF, REPLACE_VDPRINTF.
67239         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
67240         HAVE_VDPRINTF, REPLACE_VDPRINTF.
67241         * doc/posix-functions/vdprintf.texi: Mention the new modules.
67243 2009-01-17  Bruno Haible  <bruno@clisp.org>
67245         Fix replacement of fopen on mingw.
67246         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
67247         mingw.
67249 2009-01-17  Bruno Haible  <bruno@clisp.org>
67251         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
67252         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
67254 2009-01-17  Bruno Haible  <bruno@clisp.org>
67256         Avoid test-fflush2.sh failure on mingw.
67257         * tests/test-fflush2.c: Include binary-io.h.
67258         (main): Put standard input into binary mode.
67259         * modules/fflush-tests (Depends-on): Add binary-io.
67261 2009-01-17  Bruno Haible  <bruno@clisp.org>
67263         * lib/wchar.in.h: In another particular situation, include only the
67264         system's <wchar.h> file.
67265         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
67266         Reported by Albert Chin-A-Young <china@thewrittenword.com>
67267         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
67269 2009-01-17  Bruno Haible  <bruno@clisp.org>
67271         Support for stripping executables in --enable-relocatable.
67272         * build-aux/install-reloc: Expect one more argument, or an environment
67273         variable RELOC_STRIP_PROG. If set, strip the destination program and
67274         its wrapper.
67275         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
67276         RELOC_STRIP_PROG.
67277         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
67278         to set RELOCATABLE_STRIP.
67279         * NEWS: Mention the new Makefile requirement.
67281 2009-01-17  Bruno Haible  <bruno@clisp.org>
67283         * build-aux/install-reloc: Remove debugging information left over by
67284         C compiler on MacOS X.
67286 2009-01-17  Bruno Haible  <bruno@clisp.org>
67288         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
67289         * lib/progreloc.c (find_executable): Fix type of pointer passed to
67290         _NSGetExecutablePath.
67292 2009-01-16  Jim Meyering  <meyering@redhat.com>
67294         strerror: avoid warnings about discarding "const"
67295         * lib/strerror.c (rpl_strerror): Instead of returning a const
67296         string from each and every "case", use a variable, and add a single
67297         cast after the switch.
67299 2009-01-16  Albert Chin-A-Young  <china@thewrittenword.com>
67301         * lib/arpa_inet.in.h: Add extern "C" block for C++.
67303 2009-01-16  Bruno Haible  <bruno@clisp.org>
67305         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
67306         array initializer syntax that also works in C++ mode.
67307         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
67309 2009-01-16  Jim Meyering  <meyering@redhat.com>
67311         poll: suppress a warning
67312         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
67313         to ignore "...unsigned expression < 0 is always false" warnings.
67315 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
67317         poll: remove declarations of unused variables
67318         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
67319         sockbuf and optlen.
67321 2009-01-15  Bruno Haible  <bruno@clisp.org>
67323         Make fflush-after-ungetc POSIX compliant on BSD systems.
67324         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
67325         (clear_ungetc_buffer): Implement also for other systems.
67326         (rpl_fflush): On glibc systems, invoke
67327         clear_ungetc_buffer_preserving_position. Otherwise, invoke
67328         clear_ungetc_buffer after fetching the stream's position, not before.
67330 2009-01-15  Bruno Haible  <bruno@clisp.org>
67332         Make fflush-after-ungetc POSIX compliant on glibc systems.
67333         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
67334         after ungetc.
67335         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
67336         (rpl_fflush): On glibc systems, simply call the system's fflush
67337         function after clearing the ungetc buffer.
67338         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
67339         Instead, lseek only to the end of file, then use the system's fseeko
67340         for the rest. On glibc systems, reset the EOF indicator bit.
67342 2009-01-15  Jim Meyering  <meyering@redhat.com>
67344         openmp.m4: revert quote-adding change, for portability to older autoconf
67345         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
67346         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
67347         Simon Josefsson noticed the problem when using autoconf-2.61.
67349 2009-01-15  Bruno Haible  <bruno@clisp.org>
67351         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
67352         * tests/test-fflush2.c (ASSERT): Always fail.
67353         (main): Add two tests for fflush() after ungetc(), taking into account
67354         the Austin Group's clarification.
67355         Suggested by Eric Blake.
67357 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
67359         mktime.m4: remove K&R-style function prototypes
67360         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
67361         for the Sun C++ compiler.
67363 2009-01-14  Bruno Haible  <bruno@clisp.org>
67365         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
67366         while including <wchar.h>.
67367         * lib/wchar.in.h: In two particular situations on HP-UX, include only
67368         the system's <wchar.h> file.
67369         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
67371 2009-01-14  Bruno Haible  <bruno@clisp.org>
67373         * m4/csharp.m4: Don't mention gettext on the serial number line.
67374         * m4/csharpexec.m4: Likewise.
67375         * m4/eaccess.m4: Likewise.
67376         * m4/javaexec.m4: Likewise.
67377         * m4/sig_atomic_t.m4: Likewise.
67378         * m4/tmpdir.m4: Likewise.
67379         * m4/intldir.m4: Bump gettext version.
67380         * m4/lib-ld.m4: Likewise.
67382 2009-01-14  Bruno Haible  <bruno@clisp.org>
67384         * lib/progname.c (set_program_name): Add more comments.
67385         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
67387 2009-01-14  Simon Josefsson  <simon@josefsson.org>
67389         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
67390         were sys/stat.h does not define it.
67392 2009-01-14  Jim Meyering  <meyering@redhat.com>
67394         many *.m4 files: improve m4 quoting
67395         99% of this change was performed by running the following commands:
67396         git ls-files | grep '\.m4$' | xargs perl -pi \
67397           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
67398           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
67399           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
67400           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
67401         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
67402         The remainder were to add Copyright dates, increment serial numbers,
67403         undo some changes in comments, exclude m4/intl.m4, and add quotes
67404         around the "1" in ",1" where the unusual spacing prohibited the
67405         above regexps from doing the job.  For more details, see
67406         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
67407         * m4/acl.m4: Modified.
67408         * m4/afs.m4: Likewise.
67409         * m4/alloca.m4: Likewise.
67410         * m4/argp.m4: Likewise.
67411         * m4/argz.m4: Likewise.
67412         * m4/atexit.m4: Likewise.
67413         * m4/bison-i18n.m4: Likewise.
67414         * m4/bison.m4: Likewise.
67415         * m4/byteswap.m4: Likewise.
67416         * m4/c-stack.m4: Likewise.
67417         * m4/c-strtod.m4: Likewise.
67418         * m4/calloc.m4: Likewise.
67419         * m4/canonicalize-lgpl.m4: Likewise.
67420         * m4/chown.m4: Likewise.
67421         * m4/clock_time.m4: Likewise.
67422         * m4/codeset.m4: Likewise.
67423         * m4/copy-file.m4: Likewise.
67424         * m4/csharp.m4: Likewise.
67425         * m4/csharpcomp.m4: Likewise.
67426         * m4/csharpexec.m4: Likewise.
67427         * m4/d-ino.m4: Likewise.
67428         * m4/d-type.m4: Likewise.
67429         * m4/dirfd.m4: Likewise.
67430         * m4/double-slash-root.m4: Likewise.
67431         * m4/eaccess.m4: Likewise.
67432         * m4/eealloc.m4: Likewise.
67433         * m4/environ.m4: Likewise.
67434         * m4/errno_h.m4: Likewise.
67435         * m4/euidaccess.m4: Likewise.
67436         * m4/execute.m4: Likewise.
67437         * m4/fatal-signal.m4: Likewise.
67438         * m4/fchdir.m4: Likewise.
67439         * m4/fcntl_h.m4: Likewise.
67440         * m4/fileblocks.m4: Likewise.
67441         * m4/filenamecat.m4: Likewise.
67442         * m4/findprog.m4: Likewise.
67443         * m4/flexmember.m4: Likewise.
67444         * m4/fnmatch.m4: Likewise.
67445         * m4/fopen.m4: Likewise.
67446         * m4/fpending.m4: Likewise.
67447         * m4/fprintf-posix.m4: Likewise.
67448         * m4/free.m4: Likewise.
67449         * m4/frexp.m4: Likewise.
67450         * m4/frexpl.m4: Likewise.
67451         * m4/fsusage.m4: Likewise.
67452         * m4/ftruncate.m4: Likewise.
67453         * m4/gc-camellia.m4: Likewise.
67454         * m4/gc-random.m4: Likewise.
67455         * m4/gc.m4: Likewise.
67456         * m4/getaddrinfo.m4: Likewise.
67457         * m4/getcwd-abort-bug.m4: Likewise.
67458         * m4/getcwd-path-max.m4: Likewise.
67459         * m4/getdate.m4: Likewise.
67460         * m4/getdomainname.m4: Likewise.
67461         * m4/getgroups.m4: Likewise.
67462         * m4/gethostname.m4: Likewise.
67463         * m4/gethrxtime.m4: Likewise.
67464         * m4/getline.m4: Likewise.
67465         * m4/getloadavg.m4: Likewise.
67466         * m4/getndelim2.m4: Likewise.
67467         * m4/getpass.m4: Likewise.
67468         * m4/gettext.m4: Likewise.
67469         * m4/gettime.m4: Likewise.
67470         * m4/gettimeofday.m4: Likewise.
67471         * m4/gnulib-common.m4: Likewise.
67472         * m4/group-member.m4: Likewise.
67473         * m4/host-os.m4: Likewise.
67474         * m4/iconv.m4: Likewise.
67475         * m4/iconv_open.m4: Likewise.
67476         * m4/inet_ntop.m4: Likewise.
67477         * m4/inet_pton.m4: Likewise.
67478         * m4/inline.m4: Likewise.
67479         * m4/intldir.m4: Likewise.
67480         * m4/intlmacosx.m4: Likewise.
67481         * m4/intmax.m4: Likewise.
67482         * m4/intmax_t.m4: Likewise.
67483         * m4/inttypes.m4: Likewise.
67484         * m4/inttypes_h.m4: Likewise.
67485         * m4/inttypes-pri.m4: Likewise.
67486         * m4/isapipe.m4: Likewise.
67487         * m4/isnand.m4: Likewise.
67488         * m4/isnanf.m4: Likewise.
67489         * m4/isnanl.m4: Likewise.
67490         * m4/javacomp.m4: Likewise.
67491         * m4/javaexec.m4: Likewise.
67492         * m4/jm-winsz1.m4: Likewise.
67493         * m4/jm-winsz2.m4: Likewise.
67494         * m4/lchown.m4: Likewise.
67495         * m4/lcmessage.m4: Likewise.
67496         * m4/ldexpl.m4: Likewise.
67497         * m4/lib-ld.m4: Likewise.
67498         * m4/lib-link.m4: Likewise.
67499         * m4/libsigsegv.m4: Likewise.
67500         * m4/link-follow.m4: Likewise.
67501         * m4/localcharset.m4: Likewise.
67502         * m4/locale-fr.m4: Likewise.
67503         * m4/locale-ja.m4: Likewise.
67504         * m4/locale-tr.m4: Likewise.
67505         * m4/locale-zh.m4: Likewise.
67506         * m4/lock.m4: Likewise.
67507         * m4/longlong.m4: Likewise.
67508         * m4/ls-mntd-fs.m4: Likewise.
67509         * m4/lstat.m4: Likewise.
67510         * m4/malloc.m4: Likewise.
67511         * m4/mathl.m4: Likewise.
67512         * m4/mbrtowc.m4: Likewise.
67513         * m4/mbstate_t.m4: Likewise.
67514         * m4/mbswidth.m4: Likewise.
67515         * m4/memchr.m4: Likewise.
67516         * m4/memcmp.m4: Likewise.
67517         * m4/memcpy.m4: Likewise.
67518         * m4/memmem.m4: Likewise.
67519         * m4/memmove.m4: Likewise.
67520         * m4/mempcpy.m4: Likewise.
67521         * m4/memrchr.m4: Likewise.
67522         * m4/memset.m4: Likewise.
67523         * m4/minmax.m4: Likewise.
67524         * m4/mkdir-slash.m4: Likewise.
67525         * m4/mkdtemp.m4: Likewise.
67526         * m4/mktime.m4: Likewise.
67527         * m4/mmap-anon.m4: Likewise.
67528         * m4/mountlist.m4: Likewise.
67529         * m4/nanosleep.m4: Likewise.
67530         * m4/nls.m4: Likewise.
67531         * m4/nocrash.m4: Likewise.
67532         * m4/open.m4: Likewise.
67533         * m4/openat.m4: Likewise.
67534         * m4/openmp.m4: Likewise.
67535         * m4/pathmax.m4: Likewise.
67536         * m4/perl.m4: Likewise.
67537         * m4/physmem.m4: Likewise.
67538         * m4/pipe.m4: Likewise.
67539         * m4/po.m4: Likewise.
67540         * m4/poll.m4: Likewise.
67541         * m4/posixtm.m4: Likewise.
67542         * m4/posixver.m4: Likewise.
67543         * m4/printf-frexp.m4: Likewise.
67544         * m4/printf-frexpl.m4: Likewise.
67545         * m4/printf-posix.m4: Likewise.
67546         * m4/printf-posix-rpl.m4: Likewise.
67547         * m4/printf.m4: Likewise.
67548         * m4/progtest.m4: Likewise.
67549         * m4/putenv.m4: Likewise.
67550         * m4/readline.m4: Likewise.
67551         * m4/readlink.m4: Likewise.
67552         * m4/readutmp.m4: Likewise.
67553         * m4/realloc.m4: Likewise.
67554         * m4/regex.m4: Likewise.
67555         * m4/relocatable.m4: Likewise.
67556         * m4/relocatable-lib.m4: Likewise.
67557         * m4/rename-dest-slash.m4: Likewise.
67558         * m4/rename.m4: Likewise.
67559         * m4/rmdir-errno.m4: Likewise.
67560         * m4/rmdir.m4: Likewise.
67561         * m4/roundf.m4: Likewise.
67562         * m4/roundl.m4: Likewise.
67563         * m4/rpmatch.m4: Likewise.
67564         * m4/save-cwd.m4: Likewise.
67565         * m4/selinux-selinux-h.m4: Likewise.
67566         * m4/setenv.m4: Likewise.
67567         * m4/settime.m4: Likewise.
67568         * m4/sig2str.m4: Likewise.
67569         * m4/sig_atomic_t.m4: Likewise.
67570         * m4/signalblocking.m4: Likewise.
67571         * m4/signbit.m4: Likewise.
67572         * m4/sigpipe.m4: Likewise.
67573         * m4/sockets.m4: Likewise.
67574         * m4/sockpfaf.m4: Likewise.
67575         * m4/st_dm_mode.m4: Likewise.
67576         * m4/stat-time.m4: Likewise.
67577         * m4/stdbool.m4: Likewise.
67578         * m4/stdint.m4: Likewise.
67579         * m4/stdint_h.m4: Likewise.
67580         * m4/stpcpy.m4: Likewise.
67581         * m4/stpncpy.m4: Likewise.
67582         * m4/strcase.m4: Likewise.
67583         * m4/strchrnul.m4: Likewise.
67584         * m4/strcspn.m4: Likewise.
67585         * m4/strdup.m4: Likewise.
67586         * m4/strftime.m4: Likewise.
67587         * m4/strndup.m4: Likewise.
67588         * m4/strnlen.m4: Likewise.
67589         * m4/strpbrk.m4: Likewise.
67590         * m4/strptime.m4: Likewise.
67591         * m4/strsep.m4: Likewise.
67592         * m4/strtod.m4: Likewise.
67593         * m4/strtoimax.m4: Likewise.
67594         * m4/strtok_r.m4: Likewise.
67595         * m4/strtol.m4: Likewise.
67596         * m4/strtoll.m4: Likewise.
67597         * m4/strtoul.m4: Likewise.
67598         * m4/strtoull.m4: Likewise.
67599         * m4/strtoumax.m4: Likewise.
67600         * m4/strverscmp.m4: Likewise.
67601         * m4/threadlib.m4: Likewise.
67602         * m4/timegm.m4: Likewise.
67603         * m4/tm_gmtoff.m4: Likewise.
67604         * m4/tmpdir.m4: Likewise.
67605         * m4/tmpfile.m4: Likewise.
67606         * m4/tzset.m4: Likewise.
67607         * m4/uintmax_t.m4: Likewise.
67608         * m4/unlinkdir.m4: Likewise.
67609         * m4/unlocked-io.m4: Likewise.
67610         * m4/uptime.m4: Likewise.
67611         * m4/userspec.m4: Likewise.
67612         * m4/utimbuf.m4: Likewise.
67613         * m4/utime.m4: Likewise.
67614         * m4/utimes-null.m4: Likewise.
67615         * m4/utimes.m4: Likewise.
67616         * m4/vararrays.m4: Likewise.
67617         * m4/vasnprintf.m4: Likewise.
67618         * m4/vfprintf-posix.m4: Likewise.
67619         * m4/vprintf-posix.m4: Likewise.
67620         * m4/wait-process.m4: Likewise.
67621         * m4/wchar_t.m4: Likewise.
67622         * m4/wint_t.m4: Likewise.
67623         * m4/write-any-file.m4: Likewise.
67624         * m4/yield.m4: Likewise.
67626 2009-01-13  Bruno Haible  <bruno@clisp.org>
67628         Avoid test-copy-file.sh failures when ACL support insufficient.
67629         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
67630         TESTS_ENVIRONMENT.
67631         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
67632         Reported by Jim Meyering.
67634 2009-01-13  Bruno Haible  <bruno@clisp.org>
67636         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
67637         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
67638         * modules/unistdio/u8-printf-parse (Files): Likewise.
67639         * modules/unistdio/u32-printf-parse (Files): Likewise.
67640         * modules/unistdio/ulc-printf-parse (Files): Likewise.
67642 2009-01-13  Simon Josefsson  <simon@josefsson.org>
67644         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
67645         and m4/inttypes_h.m4 too.
67647 2009-01-12  Eric Blake  <ebb9@byu.net>
67649         tests: IRIX 6.2 cc can't compile -0.0 into .data
67650         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
67651         rather than at compile-time.
67652         * tests/test-floorl.c (minus_zero): Likewise.
67653         * tests/test-frexpl.c (minus_zero): Likewise.
67654         * tests/test-isnan.c (minus_zerol): Likewise.
67655         * tests/test-isnanl.h (minus_zero): Likewise.
67656         * tests/test-ldexpl.c (minus_zero): Likewise.
67657         * tests/test-roundl.c (minus_zero): Likewise.
67658         * tests/test-signbit.c (minus_zerol): Likewise.
67659         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
67660         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
67661         * tests/test-truncl.c (minus_zero): Likewise.
67662         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
67663         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
67664         Reported by Tom G. Christensen and Nelson H. F. Beebe.
67666 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
67668         regex: fix glibc bug 9697
67669         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
67670         handling.
67672 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
67674         regex: fix glibc bug 697
67675         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
67676         being NULL also if there are no backreferences.
67678 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
67680         regex: merge glibc changes
67681         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
67682         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
67683         re_string_skip_chars, re_string_reconstruct): Likewise.
67684         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
67686 2009-01-07  Jim Meyering  <meyering@redhat.com>
67688         poll: filter through cppi
67689         * lib/poll.c: Indent cpp directives to reflect nesting.
67691 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
67693         poll: don't return uninitialized
67694         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
67696 2009-01-06  Jeremy Olexa  <darkside@gentoo.org>  (tiny change)
67698         avoid compile failure on AIX 6.1
67699         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
67700         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
67702 2009-01-04  Jim Meyering  <meyering@redhat.com>
67704         remove duplicate inclusion of <stdio.h>
67705         * tests/test-fprintf-posix.c: Likewise.
67706         * tests/test-printf-posix.c: Likewise.
67707         * tests/test-snprintf-posix.c: Likewise.
67708         * tests/test-sprintf-posix.c: Likewise.
67709         * tests/test-vasprintf-posix.c: Likewise.
67710         * tests/test-vfprintf-posix.c: Likewise.
67711         * tests/test-vprintf-posix.c: Likewise.
67712         * tests/test-vsnprintf-posix.c: Likewise.
67713         * tests/test-vsprintf-posix.c: Likewise.
67715 2009-01-03  Jim Meyering  <meyering@redhat.com>
67717         gnulib-tool: fix sed-based filtering
67718         * gnulib-tool (func_filter_filelist): Remove extra backslash
67719         in sed_fff_filter definition.
67721 2009-01-02  Jim Meyering  <meyering@redhat.com>
67723         strftime: avoid compilation failure on Solaris 2.6
67724         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
67725         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
67726         Don't #define mbrlen or mbsinit, since now they're guaranteed to
67727         be available.  Reported by Tom G. Christensen.  Details in
67728         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
67730 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67731             Bruno Haible  <bruno@clisp.org>
67733         Speed up gnulib-tool by doing more string processing through shell
67734         built-ins.
67735         * gnulib-tool (fast_func_append): New variable.
67736         (func_remove_prefix, func_remove_suffix): New functions.
67737         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
67738         (func_filter_filelist): New function.
67739         (func_get_dependencies): Use func_remove_suffix instead of sed.
67740         (func_get_automake_snippet): Use func_filter_filelist instead of a
67741         subshell and sed invocation.
67743 2009-01-01  Bruno Haible  <bruno@clisp.org>
67745         Fix a security bug.
67746         * gnulib-tool (func_import, import, update): Don't allow the characters
67747         '"', '$', '`', '\' in macro arguments that become part of commands that
67748         are evaluated.
67750 2009-01-01  Bruno Haible  <bruno@clisp.org>
67752         * gnulib-tool (func_reset_sigpipe): Add more comments.
67754 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67756         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
67757         func_emit_tests_Makefile_am, func_import): Abort loops early if we
67758         already know the answer.
67760 2009-01-01  Jim Meyering  <meyering@redhat.com>
67762         * lib/version-etc.c (version_etc_va): Update copyright year.
67764 2008-12-30  Bruno Haible  <bruno@clisp.org>
67766         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
67767         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
67768         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
67770 2008-12-29  Eric Blake  <ebb9@byu.net>
67772         multiarch: avoid autoconf AC_REQUIRE bug
67773         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
67774         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
67775         2.63 and older.
67776         Reported by Bruno Haible, and analyzed in
67777         http://lists.gnu.org/r/bug-autoconf/2008-12/msg00039.html
67779 2008-12-29  Bruno Haible  <bruno@clisp.org>
67781         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
67782         files in subdirectories correctly.
67783         Reported by Ralf Wildenhues.
67785 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67787         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
67788         rather than 'join FILE -', for Solaris join.
67790 2008-12-29  Bruno Haible  <bruno@clisp.org>
67792         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
67793         quoting.
67794         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
67795         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
67796         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
67797         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
67798         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
67799         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
67800         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
67801         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
67802         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
67803         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
67804         * m4/nls.m4 (AM_NLS): Likewise.
67805         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
67806         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
67807         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
67808         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
67809         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
67810         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
67811         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
67812         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
67813         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
67814         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
67815         * m4/xsize.m4 (gl_XSIZE): Likewise.
67816         Suggested by Jim Meyering.
67818 2008-11-17  Bruce Korb  <bkorb@gnu.org>
67820         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
67821         * lib/parse-duration.c: use a switch instead of cascading if's.
67823 2008-12-29  Eric Blake  <ebb9@byu.net>
67825         wchar.h: supply WEOF on Irix 5.3
67826         * lib/wchar.in.h (wint_t): Also supply WEOF.
67827         * lib/wctype.in.h (wint_t): Likewise.
67828         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
67829         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
67830         Reported by Tom G. Christensen.
67832 2008-12-26  Bruno Haible  <bruno@clisp.org>
67834         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
67835         i486, i586, i686.
67837 2008-12-26  Bruno Haible  <bruno@clisp.org>
67839         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
67841 2008-12-26  Bruno Haible  <bruno@clisp.org>
67843         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
67844         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
67845         not __STDC_CONSTANT_MACROS.
67846         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
67848 2008-12-25  Bruno Haible  <bruno@clisp.org>
67850         Add support for universal builds to vasnprintf.
67851         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
67852         universal builds, guess no.
67853         * modules/vasnprintf-posix (Depends-on): Add multiarch.
67854         * modules/vasprintf-posix (Depends-on): Likewise.
67855         * modules/fprintf-posix (Depends-on): Likewise.
67856         * modules/vfprintf-posix (Depends-on): Likewise.
67857         * modules/snprintf-posix (Depends-on): Likewise.
67858         * modules/vsnprintf-posix (Depends-on): Likewise.
67859         * modules/sprintf-posix (Depends-on): Likewise.
67860         * modules/vsprintf-posix (Depends-on): Likewise.
67861         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
67862         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
67863         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
67864         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
67865         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
67866         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
67867         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
67869         Add support for universal builds to <inttypes.h>.
67870         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
67871         _SCNu64_PREFIX): In Apple
67872         universal builds, define directly, using _LP64.
67873         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
67874         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
67875         * modules/inttypes (Depends-on): Add multiarch.
67876         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
67878         Add support for universal builds to <stdint.h>.
67879         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
67880         universal builds, define directly, using _LP64.
67881         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
67882         Apple universal builds, don't test for the size and suffix of ptrdiff_t
67883         and size_t.
67884         * modules/stdint (Depends-on): Add multiarch.
67885         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
67887         New module 'multiarch'.
67888         * modules/multiarch: New file.
67889         * m4/multiarch.m4: New file.
67891 2008-12-25  Bruno Haible  <bruno@clisp.org>
67893         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
67895 2008-12-25  Bruno Haible  <bruno@clisp.org>
67897         * modules/btowc (License): Relicense under LGPLv2+.
67898         * modules/mbsinit (License): Likewise.
67899         * modules/mbrtowc (License): Likewise.
67900         * modules/wcrtomb (License): Likewise.
67901         * modules/streq (License): Likewise.
67902         Reported by David Lutterkort <lutter@redhat.com>.
67904 2008-12-23  Bruno Haible  <bruno@clisp.org>
67906         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
67908 2008-12-23  Bruno Haible  <bruno@clisp.org>
67910         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
67911         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
67912         GETADDRINFO_LIB, not in LIBS.
67913         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
67914         * modules/canon-host (Link): Likewise.
67915         * NEWS: Mention the change.
67916         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
67917         GETADDRINFO_LIB.
67919 2008-12-22  Bruno Haible  <bruno@clisp.org>
67921         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
67922         * doc/posix-functions/iswalpha_l.texi: Likewise.
67923         * doc/posix-functions/iswblank_l.texi: Likewise.
67924         * doc/posix-functions/iswcntrl_l.texi: Likewise.
67925         * doc/posix-functions/iswctype_l.texi: Likewise.
67926         * doc/posix-functions/iswdigit_l.texi: Likewise.
67927         * doc/posix-functions/iswgraph_l.texi: Likewise.
67928         * doc/posix-functions/iswlower_l.texi: Likewise.
67929         * doc/posix-functions/iswprint_l.texi: Likewise.
67930         * doc/posix-functions/iswpunct_l.texi: Likewise.
67931         * doc/posix-functions/iswspace_l.texi: Likewise.
67932         * doc/posix-functions/iswupper_l.texi: Likewise.
67933         * doc/posix-functions/iswxdigit_l.texi: Likewise.
67934         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
67935         * doc/posix-functions/open_wmemstream.texi: Likewise.
67936         * doc/posix-functions/swscanf.texi: Likewise.
67937         * doc/posix-functions/towctrans_l.texi: Likewise.
67938         * doc/posix-functions/towlower.texi: Likewise.
67939         * doc/posix-functions/towlower_l.texi: Likewise.
67940         * doc/posix-functions/towupper.texi: Likewise.
67941         * doc/posix-functions/towupper_l.texi: Likewise.
67942         * doc/posix-functions/vfwprintf.texi: Likewise.
67943         * doc/posix-functions/vfwscanf.texi: Likewise.
67944         * doc/posix-functions/vswscanf.texi: Likewise.
67945         * doc/posix-functions/vwprintf.texi: Likewise.
67946         * doc/posix-functions/vwscanf.texi: Likewise.
67947         * doc/posix-functions/wcpcpy.texi: Likewise.
67948         * doc/posix-functions/wcpncpy.texi: Likewise.
67949         * doc/posix-functions/wcscasecmp.texi: Likewise.
67950         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
67951         * doc/posix-functions/wcscoll_l.texi: Likewise.
67952         * doc/posix-functions/wcsdup.texi: Likewise.
67953         * doc/posix-functions/wcsncasecmp.texi: Likewise.
67954         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
67955         * doc/posix-functions/wcsnlen.texi: Likewise.
67956         * doc/posix-functions/wcsnrtombs.texi: Likewise.
67957         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
67958         * doc/posix-functions/wctrans_l.texi: Likewise.
67959         * doc/posix-functions/wctype_l.texi: Likewise.
67960         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
67961         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
67962         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
67963         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
67964         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
67965         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
67966         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
67967         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
67968         * doc/glibc-functions/wcschrnul.texi: Likewise.
67969         * doc/glibc-functions/wcsftime_l.texi: Likewise.
67970         * doc/glibc-functions/wcstod_l.texi: Likewise.
67971         * doc/glibc-functions/wcstof_l.texi: Likewise.
67972         * doc/glibc-functions/wcstol_l.texi: Likewise.
67973         * doc/glibc-functions/wcstold_l.texi: Likewise.
67974         * doc/glibc-functions/wcstoll_l.texi: Likewise.
67975         * doc/glibc-functions/wcstoq.texi: Likewise.
67976         * doc/glibc-functions/wcstoul_l.texi: Likewise.
67977         * doc/glibc-functions/wcstoull_l.texi: Likewise.
67978         * doc/glibc-functions/wcstouq.texi: Likewise.
67979         * doc/glibc-functions/wmempcpy.texi: Likewise.
67981 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
67982             Eric Blake  <ebb9@byu.net>
67983             Paolo Bonzini  <bonzini@gnu.org>
67984             Bruno Haible  <bruno@clisp.org>
67986         Make c-stack work on Haiku.
67987         * lib/c-stack.c (SA_ONSTACK): Define fallback.
67988         (c_stack_action): Use SA_ONSTACK flag.
67990 2008-12-22  Bruno Haible  <bruno@clisp.org>
67992         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
67994 2008-12-22  Bruno Haible  <bruno@clisp.org>
67996         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
67997         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
67998         being overridden.
67999         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
68000         New macros.
68001         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
68002         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
68003         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
68004         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
68006 2008-12-22  Bruno Haible  <bruno@clisp.org>
68008         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
68009         from test code.
68011 2008-12-22  Eric Blake  <ebb9@byu.net>
68013         Avoid gcc warnings on cygwin.
68014         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
68015         Avoid unused variable.
68016         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
68017         Likewise.
68019 2008-12-22  Bruno Haible  <bruno@clisp.org>
68021         Remove HAVE_MBRTOWC conditionals.
68022         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
68023         (mbscasecmp): Assume mbrtowc function.
68024         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
68025         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
68026         * lib/mbschr.c: Include mbuiter.h unconditionally.
68027         (mbschr): Assume mbrtowc function.
68028         * lib/mbscspn.c: Include mbuiter.h unconditionally.
68029         (mbscspn): Assume mbrtowc function.
68030         * lib/mbslen.c: Include mbuiter.h unconditionally.
68031         (mbslen): Assume mbrtowc function.
68032         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
68033         (mbsncasecmp): Assume mbrtowc function.
68034         * lib/mbsnlen.c: Include mbiter.h unconditionally.
68035         (mbsnlen): Assume mbrtowc function.
68036         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
68037         (mbspbrk): Assume mbrtowc function.
68038         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
68039         (mbspcasecmp): Assume mbrtowc function.
68040         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
68041         (mbsrchr): Assume mbrtowc function.
68042         * lib/mbssep.c: Include mbuiter.h unconditionally.
68043         (mbssep): Assume mbrtowc function.
68044         * lib/mbsspn.c: Include mbuiter.h unconditionally.
68045         (mbsspn): Assume mbrtowc function.
68046         * lib/mbsstr.c: Include mbuiter.h unconditionally.
68047         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
68048         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
68049         (mbstok_r): Assume mbrtowc function.
68050         * lib/propername.c: Include mbuiter.h unconditionally.
68051         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
68052         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
68053         (trim2): Assume mbrtowc function.
68054         * lib/mbswidth.c (mbsinit): Remove fallback definition.
68055         (mbsnwidth): Assume mbrtowc function.
68056         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
68057         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
68058         fallback definitions.
68059         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
68061 2008-12-22  Bruno Haible  <bruno@clisp.org>
68063         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
68065 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
68067         * modules/regex: Request emulations for the mb*/wc* functions we need.
68068         * m4/regex.m4: Don't look for those functions here.
68069         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
68071 2008-12-22  Bruno Haible  <bruno@clisp.org>
68073         * modules/fnmatch (Depends-on): Remove duplicated dependency.
68075 2008-12-21  Bruno Haible  <bruno@clisp.org>
68077         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
68078         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
68079         (Include): Remove conditionalization.
68080         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
68081         (Include): Remove conditionalization.
68082         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
68083         (Include): Remove conditionalization.
68084         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
68085         * m4/mbfile.m4 (gl_MBFILE): Likewise.
68086         * NEWS: Mention the change.
68087         Reported by Alan Hourihane <alanh@fairlite.co.uk>
68088         via Sergey Poznyakoff <gray@gnu.org.ua>.
68090 2008-12-21  Bruno Haible  <bruno@clisp.org>
68092         * MODULES.html.sh (Extended multibyte and wide character utilities
68093         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
68094         wcrtomb, wcsrtombs.
68095         (Support for systems lacking POSIX:2008): Add accept, bind, close,
68096         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
68097         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
68098         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
68100 2008-12-21  Bruno Haible  <bruno@clisp.org>
68102         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
68104 2008-12-21  Bruno Haible  <bruno@clisp.org>
68106         * modules/wcsnrtombs-tests: New file.
68107         * tests/test-wcsnrtombs1.sh: New file.
68108         * tests/test-wcsnrtombs2.sh: New file.
68109         * tests/test-wcsnrtombs3.sh: New file.
68110         * tests/test-wcsnrtombs4.sh: New file.
68111         * tests/test-wcsnrtombs.c: New file.
68113         New module 'wcsnrtombs'.
68114         * lib/wchar.in.h (wcsnrtombs): New declaration.
68115         * lib/wcsnrtombs.c: New file.
68116         * lib/wcsrtombs-state.c: New file.
68117         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
68118         (internal_state): Remove variable.
68119         * m4/wcsnrtombs.m4: New file.
68120         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
68121         compilation units.
68122         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
68123         HAVE_WCSNRTOMBS.
68124         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
68125         HAVE_WCSNRTOMBS.
68126         * modules/wcsnrtombs: New file.
68127         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
68128         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
68130 2008-12-21  Bruno Haible  <bruno@clisp.org>
68132         * modules/wcsrtombs-tests: New file.
68133         * tests/test-wcsrtombs1.sh: New file.
68134         * tests/test-wcsrtombs2.sh: New file.
68135         * tests/test-wcsrtombs3.sh: New file.
68136         * tests/test-wcsrtombs4.sh: New file.
68137         * tests/test-wcsrtombs.c: New file.
68139         New module 'wcsrtombs'.
68140         * lib/wchar.in.h (wcsrtombs): New declaration.
68141         * lib/wcsrtombs.c: New file.
68142         * m4/wcsrtombs.m4: New file.
68143         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
68144         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
68145         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
68146         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
68147         * modules/wcsrtombs: New file.
68148         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
68149         bugs.
68151 2008-12-21  Bruno Haible  <bruno@clisp.org>
68153         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
68154         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
68155         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
68156         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
68157         if not correct.
68158         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
68159         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
68160         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
68161         m4/locale-zh.m4, m4/codeset.m4.
68162         * doc/posix-functions/wcrtomb.texi: Document the bug.
68164 2008-12-21  Bruno Haible  <bruno@clisp.org>
68166         Work around a btowc() bug on IRIX 6.5.
68167         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
68168         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
68169         REPLACE_WTOBC if not.
68170         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
68171         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
68172         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
68174 2008-12-21  Bruno Haible  <bruno@clisp.org>
68176         * modules/wcrtomb-tests: New file.
68177         * tests/test-wcrtomb.sh: New file.
68178         * tests/test-wcrtomb.c: New file.
68180         New module 'wcrtomb'.
68181         * lib/wchar.in.h (wcrtomb): New declaration.
68182         * lib/wcrtomb.c: New file.
68183         * m4/wcrtomb.m4: New file.
68184         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
68185         HAVE_WCRTOMB.
68186         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
68187         HAVE_WCRTOMB.
68188         * modules/wcrtomb: New file.
68189         * doc/posix-functions/wcrtomb.texi: Mention the new module.
68191 2008-12-21  Bruno Haible  <bruno@clisp.org>
68193         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
68194         * modules/mbsrtowcs (Files): Likewise.
68195         * modules/wctob (Files): Likewise.
68196         * modules/c-strcase-tests (Files): Likewise.
68197         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
68198         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
68199         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
68200         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
68201         * modules/vasnprintf-posix-tests (Files): Likewise.
68203 2008-12-21  William Pursell  <bill.pursell@gmail.com>
68205         gitlog-to-changelog: pass all command-line arguments to git-log
68206         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
68207         it is sometimes convenient to filter the commits in various ways.
68208         gitlog-to-changelog only allows --since to specify a start date,
68209         but git-log itself supports many other filtering mechanisms.
68210         At the moment, I want to filter by branch name.  Rather than
68211         adding a --branch option to gitlog-to-changelog, it seems more
68212         flexible to simply pass all options directly to git-log and let
68213         git do the work.  Notice that this effectively makes --since a
68214         redundant option for gitlog-to-changelog, but removing it would
68215         require current usage to change since calls would then require
68216         an additional '--'.
68218 2008-12-21  Bruno Haible  <bruno@clisp.org>
68220         * modules/mbsnrtowcs-tests: New file.
68221         * tests/test-mbsnrtowcs1.sh: New file.
68222         * tests/test-mbsnrtowcs2.sh: New file.
68223         * tests/test-mbsnrtowcs3.sh: New file.
68224         * tests/test-mbsnrtowcs4.sh: New file.
68225         * tests/test-mbsnrtowcs.c: New file.
68227         New module 'mbsnrtowcs'.
68228         * lib/wchar.in.h (mbsnrtowcs): New declaration.
68229         * lib/mbsnrtowcs.c: New file.
68230         * lib/mbsrtowcs-state.c: New file.
68231         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
68232         (internal_state): Remove variable.
68233         * m4/mbsnrtowcs.m4: New file.
68234         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
68235         compilation units.
68236         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
68237         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
68238         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
68239         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
68240         * modules/mbsnrtowcs: New file.
68241         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
68242         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
68243         portability problem.
68245 2008-12-21  Bruno Haible  <bruno@clisp.org>
68247         Work around mbsrtowcs bug.
68248         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
68249         (gl_FUNC_MBSRTOWCS): Invoke it.
68250         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
68251         m4/locale-zh.m4.
68252         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
68254 2008-12-21  Bruno Haible  <bruno@clisp.org>
68256         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
68258 2008-12-21  Bruno Haible  <bruno@clisp.org>
68260         Update doc for AIX.
68261         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
68262         16-bit wchar_t type.
68263         * doc/posix-functions/btowc.texi: Likewise.
68264         * doc/posix-functions/fgetwc.texi: Likewise.
68265         * doc/posix-functions/fgetws.texi: Likewise.
68266         * doc/posix-functions/fputwc.texi: Likewise.
68267         * doc/posix-functions/fputws.texi: Likewise.
68268         * doc/posix-functions/fwide.texi: Likewise.
68269         * doc/posix-functions/fwprintf.texi: Likewise.
68270         * doc/posix-functions/fwscanf.texi: Likewise.
68271         * doc/posix-functions/getwchar.texi: Likewise.
68272         * doc/posix-functions/getwc.texi: Likewise.
68273         * doc/posix-functions/iswalnum.texi: Likewise.
68274         * doc/posix-functions/iswalpha.texi: Likewise.
68275         * doc/posix-functions/iswblank.texi: Likewise.
68276         * doc/posix-functions/iswcntrl.texi: Likewise.
68277         * doc/posix-functions/iswctype.texi: Likewise.
68278         * doc/posix-functions/iswdigit.texi: Likewise.
68279         * doc/posix-functions/iswgraph.texi: Likewise.
68280         * doc/posix-functions/iswlower.texi: Likewise.
68281         * doc/posix-functions/iswprint.texi: Likewise.
68282         * doc/posix-functions/iswpunct.texi: Likewise.
68283         * doc/posix-functions/iswspace.texi: Likewise.
68284         * doc/posix-functions/iswupper.texi: Likewise.
68285         * doc/posix-functions/iswxdigit.texi: Likewise.
68286         * doc/posix-functions/mbrtowc.texi: Likewise.
68287         * doc/posix-functions/mbsrtowcs.texi: Likewise.
68288         * doc/posix-functions/mbstowcs.texi: Likewise.
68289         * doc/posix-functions/mbtowc.texi: Likewise.
68290         * doc/posix-functions/putwchar.texi: Likewise.
68291         * doc/posix-functions/putwc.texi: Likewise.
68292         * doc/posix-functions/swprintf.texi: Likewise.
68293         * doc/posix-functions/tolower.texi: Likewise.
68294         * doc/posix-functions/toupper.texi: Likewise.
68295         * doc/posix-functions/towctrans.texi: Likewise.
68296         * doc/posix-functions/ungetwc.texi: Likewise.
68297         * doc/posix-functions/vswprintf.texi: Likewise.
68298         * doc/posix-functions/wcrtomb.texi: Likewise.
68299         * doc/posix-functions/wcscat.texi: Likewise.
68300         * doc/posix-functions/wcschr.texi: Likewise.
68301         * doc/posix-functions/wcscmp.texi: Likewise.
68302         * doc/posix-functions/wcscoll.texi: Likewise.
68303         * doc/posix-functions/wcscpy.texi: Likewise.
68304         * doc/posix-functions/wcscspn.texi: Likewise.
68305         * doc/posix-functions/wcsftime.texi: Likewise.
68306         * doc/posix-functions/wcslen.texi: Likewise.
68307         * doc/posix-functions/wcsncat.texi: Likewise.
68308         * doc/posix-functions/wcsncmp.texi: Likewise.
68309         * doc/posix-functions/wcsncpy.texi: Likewise.
68310         * doc/posix-functions/wcspbrk.texi: Likewise.
68311         * doc/posix-functions/wcsrchr.texi: Likewise.
68312         * doc/posix-functions/wcsrtombs.texi: Likewise.
68313         * doc/posix-functions/wcsspn.texi: Likewise.
68314         * doc/posix-functions/wcsstr.texi: Likewise.
68315         * doc/posix-functions/wcstod.texi: Likewise.
68316         * doc/posix-functions/wcstof.texi: Likewise.
68317         * doc/posix-functions/wcstoimax.texi: Likewise.
68318         * doc/posix-functions/wcstok.texi: Likewise.
68319         * doc/posix-functions/wcstold.texi: Likewise.
68320         * doc/posix-functions/wcstoll.texi: Likewise.
68321         * doc/posix-functions/wcstol.texi: Likewise.
68322         * doc/posix-functions/wcstombs.texi: Likewise.
68323         * doc/posix-functions/wcstoull.texi: Likewise.
68324         * doc/posix-functions/wcstoul.texi: Likewise.
68325         * doc/posix-functions/wcstoumax.texi: Likewise.
68326         * doc/posix-functions/wcswidth.texi: Likewise.
68327         * doc/posix-functions/wcsxfrm.texi: Likewise.
68328         * doc/posix-functions/wctob.texi: Likewise.
68329         * doc/posix-functions/wctomb.texi: Likewise.
68330         * doc/posix-functions/wctrans.texi: Likewise.
68331         * doc/posix-functions/wctype.texi: Likewise.
68332         * doc/posix-functions/wcwidth.texi: Likewise.
68333         * doc/posix-functions/wmemchr.texi: Likewise.
68334         * doc/posix-functions/wmemcmp.texi: Likewise.
68335         * doc/posix-functions/wmemcpy.texi: Likewise.
68336         * doc/posix-functions/wmemmove.texi: Likewise.
68337         * doc/posix-functions/wmemset.texi: Likewise.
68338         * doc/posix-functions/wprintf.texi: Likewise.
68339         * doc/posix-functions/wscanf.texi: Likewise.
68341 2008-12-21  Bruno Haible  <bruno@clisp.org>
68343         Update doc for HP-UX 11.11.
68344         * doc/posix-functions/btowc.texi: Clarify that the function is missing
68345         in HP-UX version 11.00, not in all versions of HP-UX 11.
68346         * doc/posix-functions/fwide.texi: Likewise.
68347         * doc/posix-functions/fwprintf.texi: Likewise.
68348         * doc/posix-functions/fwscanf.texi: Likewise.
68349         * doc/posix-functions/inet_ntop.texi: Likewise.
68350         * doc/posix-functions/inet_pton.texi: Likewise.
68351         * doc/posix-functions/mbrlen.texi: Likewise.
68352         * doc/posix-functions/mbrtowc.texi: Likewise.
68353         * doc/posix-functions/mbsinit.texi: Likewise.
68354         * doc/posix-functions/mbsrtowcs.texi: Likewise.
68355         * doc/posix-functions/swprintf.texi: Likewise.
68356         * doc/posix-functions/swscanf.texi: Likewise.
68357         * doc/posix-functions/towctrans.texi: Likewise.
68358         * doc/posix-functions/vfwprintf.texi: Likewise.
68359         * doc/posix-functions/vswprintf.texi: Likewise.
68360         * doc/posix-functions/vwprintf.texi: Likewise.
68361         * doc/posix-functions/wcrtomb.texi: Likewise.
68362         * doc/posix-functions/wcsrtombs.texi: Likewise.
68363         * doc/posix-functions/wcsstr.texi: Likewise.
68364         * doc/posix-functions/wctob.texi: Likewise.
68365         * doc/posix-functions/wctrans.texi: Likewise.
68366         * doc/posix-functions/wmemchr.texi: Likewise.
68367         * doc/posix-functions/wmemcmp.texi: Likewise.
68368         * doc/posix-functions/wmemcpy.texi: Likewise.
68369         * doc/posix-functions/wmemmove.texi: Likewise.
68370         * doc/posix-functions/wmemset.texi: Likewise.
68371         * doc/posix-functions/wprintf.texi: Likewise.
68372         * doc/posix-functions/wscanf.texi: Likewise.
68374 2008-12-21  Bruno Haible  <bruno@clisp.org>
68376         Work around a portability problem.
68377         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
68378         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
68380 2008-12-20  Bruno Haible  <bruno@clisp.org>
68382         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
68383         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
68384         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
68385         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
68386         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
68388         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
68389         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
68390         set.
68391         (GNULIB_defined_mbstate_t): New macro.
68392         (mbsinit): Redefine if REPLACE_MBSINIT is set.
68393         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
68394         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
68395         reuses the system's mbrtowc function but works around the bugs.
68396         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
68397         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
68398         macros.
68399         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
68400         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
68401         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
68402         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
68403         REPLACE_MBSINIT if mbsinit needs to be overridden.
68404         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
68405         REPLACE_MBSINIT, REPLACE_MBRTOWC.
68406         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
68407         REPLACE_MBSINIT, REPLACE_MBRTOWC.
68408         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
68409         m4/locale-zh.m4.
68410         (Depends): Add mbsinit.
68411         * modules/mbsinit (Depends): Add mbrtowc.
68412         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
68414 2008-12-20  Bruno Haible  <bruno@clisp.org>
68416         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
68417         so that there are no conversion errors on AIX.
68418         * tests/test-mbsrtowcs.c (main): LIkewise.
68420 2008-12-20  Bruno Haible  <bruno@clisp.org>
68422         Work around wctob bug on Solaris <= 9.
68423         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
68424         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
68425         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
68426         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
68427         * modules/wctob (Files): Add m4/locale-fr.m4.
68428         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
68430 2008-12-20  Bruno Haible  <bruno@clisp.org>
68432         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
68433         /dev/null.
68434         * tests/test-select-in.sh: Likewise.
68435         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
68437 2008-12-20  Bruno Haible  <bruno@clisp.org>
68439         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
68440         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
68441         Cygwin 1.5.x.
68443 2008-12-20  Bruno Haible  <bruno@clisp.org>
68445         Ensure mbstate_t is defined on HP-UX 11.11.
68446         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
68447         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
68448         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
68449         AC_USE_SYSTEM_EXTENSIONS.
68450         * modules/fnmatch (Depends-on): Add extensions.
68451         * modules/mbrlen (Depends-on): Likewise.
68452         * modules/mbrtowc (Depends-on): Likewise.
68453         * modules/mbsinit (Depends-on): Likewise.
68454         * modules/mbsrtowcs (Depends-on): Likewise.
68455         * modules/mbswidth (Depends-on): Likewise.
68456         * modules/quotearg (Depends-on): Likewise.
68457         * modules/strftime (Depends-on): Likewise.
68459 2008-12-20  Bruno Haible  <bruno@clisp.org>
68461         Ensure wctob is declared on IRIX 6.5.
68462         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
68463         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
68464         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
68465         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
68466         of HAVE_WCTOB.
68467         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
68468         HAVE_WCTOB.
68469         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
68471 2008-12-19  Bruno Haible  <bruno@clisp.org>
68473         * modules/mbsrtowcs-tests: New file.
68474         * tests/test-mbsrtowcs1.sh: New file.
68475         * tests/test-mbsrtowcs2.sh: New file.
68476         * tests/test-mbsrtowcs3.sh: New file.
68477         * tests/test-mbsrtowcs4.sh: New file.
68478         * tests/test-mbsrtowcs.c: New file.
68480         New module 'mbsrtowcs'.
68481         * lib/wchar.in.h (mbsrtowcs): New declaration.
68482         * lib/mbsrtowcs.c: New file.
68483         * m4/mbsrtowcs.m4: New file.
68484         * modules/mbsrtowcs: New file.
68485         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
68486         HAVE_MBSRTOWCS.
68487         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
68488         HAVE_MBSRTOWCS.
68489         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
68491 2008-12-19  Bruno Haible  <bruno@clisp.org>
68493         New module 'mbrlen'.
68494         * lib/wchar.in.h (mbrlen): New declaration.
68495         * lib/mbrlen.c: New file.
68496         * m4/mbrlen.m4: New file.
68497         * modules/mbrlen: New file.
68498         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
68499         HAVE_MBRLEN.
68500         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
68501         HAVE_MBRLEN.
68502         * doc/posix-functions/mbrlen.texi: Document the new module.
68504 2008-12-19  Bruno Haible  <bruno@clisp.org>
68506         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
68507         * modules/mbrtowc (Depends-on): Add verify.
68508         Suggested by Paul Eggert.
68510 2008-12-18  Bruno Haible  <bruno@clisp.org>
68512         * modules/mbsinit-tests: New file.
68513         * tests/test-mbsinit.sh: New file.
68514         * tests/test-mbsinit.c: New file.
68516 2008-12-18  Bruno Haible  <bruno@clisp.org>
68518         * modules/mbrtowc-tests: New file.
68519         * tests/test-mbrtowc1.sh: New file.
68520         * tests/test-mbrtowc2.sh: New file.
68521         * tests/test-mbrtowc3.sh: New file.
68522         * tests/test-mbrtowc4.sh: New file.
68523         * tests/test-mbrtowc.c: New file.
68525         New module 'mbrtowc'.
68526         * lib/wchar.in.h (mbstate_t): Override when the system does not have
68527         mbsinit and mbrtowc.
68528         (mbrtowc): New declaration.
68529         * lib/mbrtowc.c: New file.
68530         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
68531         * modules/mbrtowc: New file.
68532         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
68533         HAVE_MBRTOWC.
68534         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
68535         HAVE_MBRTOWC.
68536         * doc/posix-functions/mbrtowc.texi: Document the new module.
68538 2008-12-18  Bruno Haible  <bruno@clisp.org>
68540         New module 'wctob'.
68541         * lib/wchar.in.h (wctob): New declaration.
68542         * lib/wctob.c: New file.
68543         * m4/wctob.m4: New file.
68544         * modules/wctob: New file.
68545         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
68546         HAVE_WCTOB.
68547         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
68548         * doc/posix-functions/wctob.texi: Document the new module.
68550 2008-12-18  Bruno Haible  <bruno@clisp.org>
68552         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
68553         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
68555 2008-12-18  Simon Josefsson  <simon@josefsson.org>
68557         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
68558         G. Christensen" <tgc@jupiterrise.com>.
68560         * lib/flock.c: Need to include errno.h.  Reported by "Tom
68561         G. Christensen" <tgc@jupiterrise.com>.
68563         * lib/flock.c: Need to include string.h.  Reported by "Tom
68564         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
68565         <ebb9@byu.net>.
68567 2008-12-18  Bruno Haible  <bruno@clisp.org>
68569         * m4/locale-ja.m4: New file, from GNU gettext.
68571 2008-12-17  Bruno Haible  <bruno@clisp.org>
68573         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
68574         Suggested by Eric Blake.
68576 2008-12-17  Bruno Haible  <bruno@clisp.org>
68578         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
68580 2008-12-17  Bruno Haible  <bruno@clisp.org>
68582         * lib/mbsinit.c: Include verify.h. Verify an assumption.
68583         * modules/mbsinit (Depends-on): Add verify.
68584         Suggested by Paul Eggert.
68586 2008-12-17  Bruno Haible  <bruno@clisp.org>
68588         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
68589         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
68590         gl_FUNC_MBRTOWC.
68591         * m4/mbiter.m4 (gl_MBITER): LIkewise.
68592         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
68593         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
68594         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
68595         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
68596         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
68597         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
68598         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
68599         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
68600         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
68601         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
68602         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
68603         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
68604         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
68605         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
68606         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
68607         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
68608         * modules/trim (configure.ac): Likewise.
68610 2008-12-17  Bruno Haible  <bruno@clisp.org>
68612         * modules/btowc-tests: New file.
68613         * tests/test-btowc1.sh: New file.
68614         * tests/test-btowc2.sh: New file.
68615         * tests/test-btowc.c: New file.
68617         New module 'btowc'.
68618         * lib/wchar.in.h (btowc): New declaration.
68619         * lib/btowc.c: New file.
68620         * m4/btowc.m4: New file.
68621         * modules/btowc: New file.
68622         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
68623         HAVE_BTOWC.
68624         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
68625         * doc/posix-functions/btowc.texi: Document the new module.
68627 2008-12-17  Bruno Haible  <bruno@clisp.org>
68629         New module 'mbsinit'.
68630         * lib/wchar.in.h (mbsinit): New declaration.
68631         * lib/mbsinit.c: New file.
68632         * m4/mbsinit.m4: New file.
68633         * modules/mbsinit: New file.
68634         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
68635         HAVE_MBSINIT.
68636         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
68637         HAVE_MBSINIT.
68638         * doc/posix-functions/mbsinit.texi: Document the new module.
68640 2008-12-16  Bruno Haible  <bruno@clisp.org>
68642         * lib/unistd.in.h: Add comment.
68643         * tests/test-environ.c: Don't include <stdlib.h>.
68645 2008-12-16  Bruno Haible  <bruno@clisp.org>
68647         * lib/parse-duration.h (parse_duration): Document return value
68648         convention.
68649         * lib/parse-duration.c: Include specification header first. Add
68650         comments.
68651         (_): Remove macro.
68652         (parse_year_month_day, parse_hour_minute_second): Move side effects
68653         outside of strchr call.
68654         (parse_non_iso8601): Move side effects outside of isspace call.
68655         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
68656         call.
68658 2008-12-16  Bruno Haible  <bruno@clisp.org>
68660         * tests/test-parse-duration.sh: Produce no output when the test
68661         succeeds.
68663 2008-12-16  Bruno Haible  <bruno@clisp.org>
68665         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
68666         expressions.
68668 2008-12-15  Bruno Haible  <bruno@clisp.org>
68670         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
68671         * doc/glibc-functions/flistxattr.texi: Likewise.
68672         * doc/glibc-functions/fopencookie.texi: Likewise.
68673         * doc/glibc-functions/fremovexattr.texi: Likewise.
68674         * doc/glibc-functions/fsetxattr.texi: Likewise.
68675         * doc/glibc-functions/getxattr.texi: Likewise.
68676         * doc/glibc-functions/lgetxattr.texi: Likewise.
68677         * doc/glibc-functions/listxattr.texi: Likewise.
68678         * doc/glibc-functions/llistxattr.texi: Likewise.
68679         * doc/glibc-functions/lremovexattr.texi: Likewise.
68680         * doc/glibc-functions/lsetxattr.texi: Likewise.
68681         * doc/glibc-functions/removexattr.texi: Likewise.
68682         * doc/glibc-functions/setxattr.texi: Likewise.
68683         * doc/posix-functions/open_memstream.texi: Likewise.
68685 2008-12-15  Eric Blake  <ebb9@byu.net>
68687         Update doc for cygwin 1.7.
68688         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
68689         functions.
68690         * doc/posix-functions/fchmodat.texi: Likewise.
68691         * doc/posix-functions/fchownat.texi: Likewise.
68692         * doc/posix-functions/fdopendir.texi: Likewise.
68693         * doc/posix-functions/fmemopen.texi: Likewise.
68694         * doc/posix-functions/freeaddrinfo.texi: Likewise.
68695         * doc/posix-functions/fstatat.texi: Likewise.
68696         * doc/posix-functions/futimens.texi: Likewise.
68697         * doc/posix-functions/gai_strerror.texi: Likewise.
68698         * doc/posix-functions/getaddrinfo.texi: Likewise.
68699         * doc/posix-functions/getnameinfo.texi: Likewise.
68700         * doc/posix-functions/if_freenameindex.texi: Likewise.
68701         * doc/posix-functions/if_indextoname.texi: Likewise.
68702         * doc/posix-functions/if_nameindex.texi: Likewise.
68703         * doc/posix-functions/if_nametoindex.texi: Likewise.
68704         * doc/posix-functions/insque.texi: Likewise.
68705         * doc/posix-functions/linkat.texi: Likewise.
68706         * doc/posix-functions/llrint.texi: Likewise.
68707         * doc/posix-functions/llrintf.texi: Likewise.
68708         * doc/posix-functions/llrintl.texi: Likewise.
68709         * doc/posix-functions/lockf.texi: Likewise.
68710         * doc/posix-functions/lrintl.texi: Likewise.
68711         * doc/posix-functions/mkdirat.texi: Likewise.
68712         * doc/posix-functions/mkfifoat.texi: Likewise.
68713         * doc/posix-functions/mknodat.texi: Likewise.
68714         * doc/posix-functions/mq_close.texi: Likewise.
68715         * doc/posix-functions/mq_getattr.texi: Likewise.
68716         * doc/posix-functions/mq_notify.texi: Likewise.
68717         * doc/posix-functions/mq_open.texi: Likewise.
68718         * doc/posix-functions/mq_receive.texi: Likewise.
68719         * doc/posix-functions/mq_send.texi: Likewise.
68720         * doc/posix-functions/mq_setattr.texi: Likewise.
68721         * doc/posix-functions/mq_timedreceive.texi: Likewise.
68722         * doc/posix-functions/mq_timedsend.texi: Likewise.
68723         * doc/posix-functions/mq_unlink.texi: Likewise.
68724         * doc/posix-functions/open_memstream.texi: Likewise.
68725         * doc/posix-functions/openat.texi: Likewise.
68726         * doc/posix-functions/posix_fadvise.texi: Likewise.
68727         * doc/posix-functions/posix_fallocate.texi: Likewise.
68728         * doc/posix-functions/posix_madvise.texi: Likewise.
68729         * doc/posix-functions/posix_memalign.texi: Likewise.
68730         * doc/posix-functions/posix_openpt.texi: Likewise.
68731         * doc/posix-functions/readlinkat.texi: Likewise.
68732         * doc/posix-functions/remque.texi: Likewise.
68733         * doc/posix-functions/renameat.texi: Likewise.
68734         * doc/posix-functions/rintl.texi: Likewise.
68735         * doc/posix-functions/sem_unlink.texi: Likewise.
68736         * doc/posix-functions/shm_open.texi: Likewise.
68737         * doc/posix-functions/shm_unlink.texi: Likewise.
68738         * doc/posix-functions/signgam.texi: Likewise.
68739         * doc/posix-functions/sigset.texi: Likewise.
68740         * doc/posix-functions/stpcpy.texi: Likewise.
68741         * doc/posix-functions/stpncpy.texi: Likewise.
68742         * doc/posix-functions/strerror.texi: Likewise.
68743         * doc/posix-functions/strtod.texi: Likewise.
68744         * doc/posix-functions/symlinkat.texi: Likewise.
68745         * doc/posix-functions/unlinkat.texi: Likewise.
68746         * doc/posix-functions/utimensat.texi: Likewise.
68747         * doc/glibc-functions/bindresvport.texi: Likewise.
68748         * doc/glibc-functions/dn_expand.texi: Likewise.
68749         * doc/glibc-functions/exp10.texi: Likewise.
68750         * doc/glibc-functions/exp10f.texi: Likewise.
68751         * doc/glibc-functions/fgetxattr.texi: Likewise.
68752         * doc/glibc-functions/flistxattr.texi: Likewise.
68753         * doc/glibc-functions/fopencookie.texi: Likewise.
68754         * doc/glibc-functions/freeifaddrs.texi: Likewise.
68755         * doc/glibc-functions/fremovexattr.texi: Likewise.
68756         * doc/glibc-functions/fsetxattr.texi: Likewise.
68757         * doc/glibc-functions/getifaddrs.texi: Likewise.
68758         * doc/glibc-functions/getxattr.texi: Likewise.
68759         * doc/glibc-functions/lgetxattr.texi: Likewise.
68760         * doc/glibc-functions/listxattr.texi: Likewise.
68761         * doc/glibc-functions/llistxattr.texi: Likewise.
68762         * doc/glibc-functions/lremovexattr.texi: Likewise.
68763         * doc/glibc-functions/lsetxattr.texi: Likewise.
68764         * doc/glibc-functions/pow10.texi: Likewise.
68765         * doc/glibc-functions/pow10f.texi: Likewise.
68766         * doc/glibc-functions/rcmd_af.texi: Likewise.
68767         * doc/glibc-functions/removexattr.texi: Likewise.
68768         * doc/glibc-functions/res_init.texi: Likewise.
68769         * doc/glibc-functions/res_mkquery.texi: Likewise.
68770         * doc/glibc-functions/res_query.texi: Likewise.
68771         * doc/glibc-functions/res_querydomain.texi: Likewise.
68772         * doc/glibc-functions/res_send.texi: Likewise.
68773         * doc/glibc-functions/rresvport_af.texi: Likewise.
68774         * doc/glibc-functions/setxattr.texi: Likewise.
68775         * doc/glibc-functions/strcasestr.texi: Likewise.
68777 2008-12-15  Bruno Haible  <bruno@clisp.org>
68779         Fix compilation error on OSF/1 4.0.
68780         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
68781         <sys/time.h>, simply delegate to the system header.
68782         Reported by Daniel Richard G. <oss@teragram.com>.
68784 2008-12-15  Bruno Haible  <bruno@clisp.org>
68786         * doc/posix-functions/openat.texi: Mention the 'openat' module.
68787         * doc/posix-functions/fchmodat.texi: Likewise.
68788         * doc/posix-functions/fchownat.texi: Likewise.
68789         * doc/posix-functions/fdopendir.texi: Likewise.
68790         * doc/posix-functions/fstatat.texi: Likewise.
68791         * doc/posix-functions/mkdirat.texi: Likewise.
68792         * doc/posix-functions/unlinkat.texi: Likewise.
68794 2008-12-14  Bruno Haible  <bruno@clisp.org>
68796         Update doc for POSIX:2008.
68797         * doc/posix-functions/faccessat.texi: New file.
68798         * doc/posix-functions/fchmodat.texi: New file.
68799         * doc/posix-functions/fchownat.texi: New file.
68800         * doc/posix-functions/fdopendir.texi: New file.
68801         * doc/posix-functions/fstatat.texi: New file.
68802         * doc/posix-functions/futimens.texi: New file.
68803         * doc/posix-functions/linkat.texi: New file.
68804         * doc/posix-functions/mkdirat.texi: New file.
68805         * doc/posix-functions/mkfifoat.texi: New file.
68806         * doc/posix-functions/mknodat.texi: New file.
68807         * doc/posix-functions/open_wmemstream.texi: New file.
68808         * doc/posix-functions/openat.texi: New file.
68809         * doc/posix-functions/psiginfo.texi: New file.
68810         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
68811         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
68812         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
68813         * doc/posix-functions/readlinkat.texi: New file.
68814         * doc/posix-functions/renameat.texi: New file.
68815         * doc/posix-functions/strerror_l.texi: New file.
68816         * doc/posix-functions/symlinkat.texi: New file.
68817         * doc/posix-functions/unlinkat.texi: New file.
68818         * doc/posix-functions/utimensat.texi: New file.
68819         * doc/gnulib.texi (Function Substitutes): Add these subsections.
68821 2008-12-14  Bruno Haible  <bruno@clisp.org>
68823         Update doc for POSIX:2008.
68824         * doc/posix-functions/alphasort.texi: Renamed from
68825         doc/glibc-functions/alphasort.texi.
68826         * doc/posix-functions/dirfd.texi: Renamed from
68827         doc/glibc-functions/dirfd.texi.
68828         * doc/posix-functions/dprintf.texi: Renamed from
68829         doc/glibc-functions/dprintf.texi.
68830         * doc/posix-functions/duplocale.texi: Renamed from
68831         doc/glibc-functions/duplocale.texi.
68832         * doc/posix-functions/fexecve.texi: Renamed from
68833         doc/glibc-functions/fexecve.texi.
68834         * doc/posix-functions/fmemopen.texi: Renamed from
68835         doc/glibc-functions/fmemopen.texi.
68836         * doc/posix-functions/freelocale.texi: Renamed from
68837         doc/glibc-functions/freelocale.texi.
68838         * doc/posix-functions/getdate_err.texi: Renamed from
68839         doc/glibc-functions/getdate_err.texi.
68840         * doc/posix-functions/isalnum_l.texi: Renamed from
68841         doc/glibc-functions/isalnum_l.texi.
68842         * doc/posix-functions/isalpha_l.texi: Renamed from
68843         doc/glibc-functions/isalpha_l.texi.
68844         * doc/posix-functions/isblank_l.texi: Renamed from
68845         doc/glibc-functions/isblank_l.texi.
68846         * doc/posix-functions/iscntrl_l.texi: Renamed from
68847         doc/glibc-functions/iscntrl_l.texi.
68848         * doc/posix-functions/isdigit_l.texi: Renamed from
68849         doc/glibc-functions/isdigit_l.texi.
68850         * doc/posix-functions/isgraph_l.texi: Renamed from
68851         doc/glibc-functions/isgraph_l.texi.
68852         * doc/posix-functions/islower_l.texi: Renamed from
68853         doc/glibc-functions/islower_l.texi.
68854         * doc/posix-functions/isprint_l.texi: Renamed from
68855         doc/glibc-functions/isprint_l.texi.
68856         * doc/posix-functions/ispunct_l.texi: Renamed from
68857         doc/glibc-functions/ispunct_l.texi.
68858         * doc/posix-functions/isspace_l.texi: Renamed from
68859         doc/glibc-functions/isspace_l.texi.
68860         * doc/posix-functions/isupper_l.texi: Renamed from
68861         doc/glibc-functions/isupper_l.texi.
68862         * doc/posix-functions/iswalnum_l.texi: Renamed from
68863         doc/glibc-functions/iswalnum_l.texi.
68864         * doc/posix-functions/iswalpha_l.texi: Renamed from
68865         doc/glibc-functions/iswalpha_l.texi.
68866         * doc/posix-functions/iswblank_l.texi: Renamed from
68867         doc/glibc-functions/iswblank_l.texi.
68868         * doc/posix-functions/iswcntrl_l.texi: Renamed from
68869         doc/glibc-functions/iswcntrl_l.texi.
68870         * doc/posix-functions/iswctype_l.texi: Renamed from
68871         doc/glibc-functions/iswctype_l.texi.
68872         * doc/posix-functions/iswdigit_l.texi: Renamed from
68873         doc/glibc-functions/iswdigit_l.texi.
68874         * doc/posix-functions/iswgraph_l.texi: Renamed from
68875         doc/glibc-functions/iswgraph_l.texi.
68876         * doc/posix-functions/iswlower_l.texi: Renamed from
68877         doc/glibc-functions/iswlower_l.texi.
68878         * doc/posix-functions/iswprint_l.texi: Renamed from
68879         doc/glibc-functions/iswprint_l.texi.
68880         * doc/posix-functions/iswpunct_l.texi: Renamed from
68881         doc/glibc-functions/iswpunct_l.texi.
68882         * doc/posix-functions/iswspace_l.texi: Renamed from
68883         doc/glibc-functions/iswspace_l.texi.
68884         * doc/posix-functions/iswupper_l.texi: Renamed from
68885         doc/glibc-functions/iswupper_l.texi.
68886         * doc/posix-functions/iswxdigit_l.texi: Renamed from
68887         doc/glibc-functions/iswxdigit_l.texi.
68888         * doc/posix-functions/isxdigit_l.texi: Renamed from
68889         doc/glibc-functions/isxdigit_l.texi.
68890         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
68891         doc/glibc-functions/mbsnrtowcs.texi.
68892         * doc/posix-functions/mkdtemp.texi: Renamed from
68893         doc/glibc-functions/mkdtemp.texi.
68894         * doc/posix-functions/newlocale.texi: Renamed from
68895         doc/glibc-functions/newlocale.texi.
68896         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
68897         doc/glibc-functions/nl_langinfo_l.texi.
68898         * doc/posix-functions/open_memstream.texi: Renamed from
68899         doc/glibc-functions/open_memstream.texi.
68900         * doc/posix-functions/opterr.texi: Renamed from
68901         doc/glibc-functions/opterr.texi.
68902         * doc/posix-functions/optind.texi: Renamed from
68903         doc/glibc-functions/optind.texi.
68904         * doc/posix-functions/optopt.texi: Renamed from
68905         doc/glibc-functions/optopt.texi.
68906         * doc/posix-functions/psignal.texi: Renamed from
68907         doc/glibc-functions/psignal.texi.
68908         * doc/posix-functions/scandir.texi: Renamed from
68909         doc/glibc-functions/scandir.texi.
68910         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
68911         doc/glibc-functions/sched_get_priority_min.texi.
68912         * doc/posix-functions/signgam.texi: Renamed from
68913         doc/glibc-functions/signgam.texi.
68914         * doc/posix-functions/stpcpy.texi: Renamed from
68915         doc/glibc-functions/stpcpy.texi.
68916         * doc/posix-functions/stpncpy.texi: Renamed from
68917         doc/glibc-functions/stpncpy.texi.
68918         * doc/posix-functions/strcasecmp_l.texi: Renamed from
68919         doc/glibc-functions/strcasecmp_l.texi.
68920         * doc/posix-functions/strcoll_l.texi: Renamed from
68921         doc/glibc-functions/strcoll_l.texi.
68922         * doc/posix-functions/strfmon_l.texi: Renamed from
68923         doc/glibc-functions/strfmon_l.texi.
68924         * doc/posix-functions/strftime_l.texi: Renamed from
68925         doc/glibc-functions/strftime_l.texi.
68926         * doc/posix-functions/strncasecmp_l.texi: Renamed from
68927         doc/glibc-functions/strncasecmp_l.texi.
68928         * doc/posix-functions/strndup.texi: Renamed from
68929         doc/glibc-functions/strndup.texi.
68930         * doc/posix-functions/strnlen.texi: Renamed from
68931         doc/glibc-functions/strnlen.texi.
68932         * doc/posix-functions/strsignal.texi: Renamed from
68933         doc/glibc-functions/strsignal.texi.
68934         * doc/posix-functions/strxfrm_l.texi: Renamed from
68935         doc/glibc-functions/strxfrm_l.texi.
68936         * doc/posix-functions/timer_gettime.texi: Renamed from
68937         doc/glibc-functions/timer_gettime.texi.
68938         * doc/posix-functions/tolower_l.texi: Renamed from
68939         doc/glibc-functions/tolower_l.texi.
68940         * doc/posix-functions/toupper_l.texi: Renamed from
68941         doc/glibc-functions/toupper_l.texi.
68942         * doc/posix-functions/towctrans_l.texi: Renamed from
68943         doc/glibc-functions/towctrans_l.texi.
68944         * doc/posix-functions/towlower_l.texi: Renamed from
68945         doc/glibc-functions/towlower_l.texi.
68946         * doc/posix-functions/towupper_l.texi: Renamed from
68947         doc/glibc-functions/towupper_l.texi.
68948         * doc/posix-functions/uselocale.texi: Renamed from
68949         doc/glibc-functions/uselocale.texi.
68950         * doc/posix-functions/vdprintf.texi: Renamed from
68951         doc/glibc-functions/vdprintf.texi.
68952         * doc/posix-functions/wcpcpy.texi:
68953         Renamed from doc/glibc-functions/wcpcpy.texi.
68954         * doc/posix-functions/wcpncpy.texi: Renamed from
68955         doc/glibc-functions/wcpncpy.texi.
68956         * doc/posix-functions/wcscasecmp.texi: Renamed from
68957         doc/glibc-functions/wcscasecmp.texi.
68958         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
68959         doc/glibc-functions/wcscasecmp_l.texi.
68960         * doc/posix-functions/wcscoll_l.texi: Renamed from
68961         doc/glibc-functions/wcscoll_l.texi.
68962         * doc/posix-functions/wcsdup.texi: Renamed from
68963         doc/glibc-functions/wcsdup.texi.
68964         * doc/posix-functions/wcsncasecmp.texi: Renamed from
68965         doc/glibc-functions/wcsncasecmp.texi.
68966         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
68967         doc/glibc-functions/wcsncasecmp_l.texi.
68968         * doc/posix-functions/wcsnlen.texi: Renamed from
68969         doc/glibc-functions/wcsnlen.texi.
68970         * doc/posix-functions/wcsnrtombs.texi: Renamed from
68971         doc/glibc-functions/wcsnrtombs.texi.
68972         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
68973         doc/glibc-functions/wcsxfrm_l.texi.
68974         * doc/posix-functions/wctrans_l.texi: Renamed from
68975         doc/glibc-functions/wctrans_l.texi.
68976         * doc/posix-functions/wctype_l.texi: Renamed from
68977         doc/glibc-functions/wctype_l.texi.
68978         * doc/gnulib.texi (Function Substitutes): Add these subsections.
68979         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
68980         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
68981         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
68982         these subsections.
68983         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
68984         Remove sections.
68986 2008-12-14  Bruno Haible  <bruno@clisp.org>
68988         Update doc for POSIX:2008.
68989         * doc/posix-functions/*.texi: Update URL of POSIX specification.
68991 2008-12-14  Bruno Haible  <bruno@clisp.org>
68993         Update doc for POSIX:2008.
68994         * doc/pastposix-functions/bcmp.texi: Renamed from
68995         doc/posix-functions/bcmp.texi.
68996         * doc/pastposix-functions/bcopy.texi: Renamed from
68997         doc/posix-functions/bcopy.texi.
68998         * doc/pastposix-functions/bsd_signal.texi: Renamed from
68999         doc/posix-functions/bsd_signal.texi.
69000         * doc/pastposix-functions/bzero.texi: Renamed from
69001         doc/posix-functions/bzero.texi.
69002         * doc/pastposix-functions/ecvt.texi: Renamed from
69003         doc/posix-functions/ecvt.texi.
69004         * doc/pastposix-functions/fcvt.texi: Renamed from
69005         doc/posix-functions/fcvt.texi.
69006         * doc/pastposix-functions/ftime.texi: Renamed from
69007         doc/posix-functions/ftime.texi.
69008         * doc/pastposix-functions/gcvt.texi: Renamed from
69009         doc/posix-functions/gcvt.texi.
69010         * doc/pastposix-functions/getcontext.texi: Renamed from
69011         doc/posix-functions/getcontext.texi.
69012         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
69013         doc/posix-functions/gethostbyaddr.texi.
69014         * doc/pastposix-functions/gethostbyname.texi: Renamed from
69015         doc/posix-functions/gethostbyname.texi.
69016         * doc/pastposix-functions/getwd.texi: Renamed from
69017         doc/posix-functions/getwd.texi.
69018         * doc/pastposix-functions/h_errno.texi: Renamed from
69019         doc/posix-functions/h_errno.texi.
69020         * doc/pastposix-functions/index.texi: Renamed from
69021         doc/posix-functions/index.texi.
69022         * doc/pastposix-functions/makecontext.texi: Renamed from
69023         doc/posix-functions/makecontext.texi.
69024         * doc/pastposix-functions/mktemp.texi: Renamed from
69025         doc/posix-functions/mktemp.texi.
69026         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
69027         doc/posix-functions/pthread_attr_getstackaddr.texi.
69028         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
69029         doc/posix-functions/pthread_attr_setstackaddr.texi.
69030         * doc/pastposix-functions/rindex.texi: Renamed from
69031         doc/posix-functions/rindex.texi.
69032         * doc/pastposix-functions/scalb.texi: Renamed from
69033         doc/posix-functions/scalb.texi.
69034         * doc/pastposix-functions/setcontext.texi: Renamed from
69035         doc/posix-functions/setcontext.texi.
69036         * doc/pastposix-functions/swapcontext.texi: Renamed from
69037         doc/posix-functions/swapcontext.texi.
69038         * doc/pastposix-functions/ualarm.texi: Renamed from
69039         doc/posix-functions/ualarm.texi.
69040         * doc/pastposix-functions/usleep.texi: Renamed from
69041         doc/posix-functions/usleep.texi.
69042         * doc/pastposix-functions/vfork.texi: Renamed from
69043         doc/posix-functions/vfork.texi.
69044         * doc/pastposix-functions/wcswcs.texi: Renamed from
69045         doc/posix-functions/wcswcs.texi.
69046         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
69047         (Function Substitutes): Update.
69049 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69051         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
69052         m4/strerror.m4.
69054 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69055             Bruno Haible  <bruno@clisp.org>
69057         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
69059 2008-12-13  Bruno Haible  <bruno@clisp.org>
69061         * modules/strtoull (Depends-on): Remove unistd.
69063 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69065         * modules/strtoull (Depends-on): Add stdlib.
69067 2008-12-11  Simon Josefsson  <simon@josefsson.org>
69069         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
69071 2008-12-10  Jim Meyering  <meyering@redhat.com>
69073         gl_ASSERT: don't say assertions are disabled when they're not
69074         * m4/assert.m4 (gl_ASSERT): Do not make configure report
69075         "checking whether to enable assertions... no", when they are in
69076         fact enabled.  This is solely a bug in the output of configure.
69077         In spite of saying "no", NDEBUG was not defined in that case.
69078         Also, as noted by Eric Blake, leave assertions enabled upon
69079         --enable-assert=INVALID.
69081 2008-12-10  Bruno Haible  <bruno@clisp.org>
69083         Change MODULES.html to refer to POSIX:2008 where possible.
69084         * MODULES.html.sh (POSIX2008_URL): New variable.
69085         (posix_headers): Remove sys/timeb, ucontext.
69086         (posix2001_headers): New variable.
69087         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
69088         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
69089         index, makecontext, mktemp, pthread_attr_getstackaddr,
69090         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
69091         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
69092         (posix2001_functions): New variable.
69093         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
69094         otherwise.
69096 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69098         add missing include to parse-duration.c
69099         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
69100         * modules/parse-duration (Depends-on): Add xalloc.
69102         fix sed script reading maint.mk
69103         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
69104         (syntax-check-rules): Use it.
69106 2008-12-09  Bruno Haible  <bruno@clisp.org>
69108         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
69109         MacOS X 10.4/PowerPC.
69110         Reported by Simon Josefsson.
69112 2008-12-08  Jim Meyering  <meyering@redhat.com>
69114         work around mingw's lack of some S_IF definitions
69115         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
69116         Reported by Simon Josefsson.
69118 2008-12-08  Bruno Haible  <bruno@clisp.org>
69120         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
69121         applied to variables. Needed on MacOS X 10.4/PowerPC.
69122         Reported by Simon Josefsson.
69124 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
69125         and Eric Blake  <ebb9@byu.net>
69127         assert: honor --enable-assert
69128         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
69129         order to honor --enable-assert, rather than treating it as a
69130         synonym for --disable-assert.
69132 2008-12-08  Jim Meyering  <meyering@redhat.com>
69134         * lib/posixtm.c: Remove now-useless declaration of mktime.
69136         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
69138 2008-12-07  Bruno Haible  <bruno@clisp.org>
69140         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
69141         test_once): Mark functions as static.
69142         * tests/test-tls.c (test_tls): Likewise.
69144 2008-12-07  Bruno Haible  <bruno@clisp.org>
69146         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
69147         iconv_register_autodetect.
69149 2008-12-07  Jim Meyering  <meyering@redhat.com>
69151         posixtm.c: avoid a warning
69152         * lib/posixtm.c (posixtime): Don't initialize tm0.
69153         It's no longer needed to placate gcc4's -Wuninitialized,
69154         and the attempt to placate would elicit a new warning.
69156         unicodeio.c: mark unused parameters
69157         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
69158         (fallback_failure_callback): Likewise.
69160 2008-12-07  Bruno Haible  <bruno@clisp.org>
69162         * gnulib-tool (func_create_testdir): When building the tests
69163         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
69164         Reported by Simon Josefsson.
69166 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69168         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
69170 2008-12-06  Bruno Haible  <bruno@clisp.org>
69172         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
69173         Suggested by Eric Blake.
69175 2008-12-06  Bruno Haible  <bruno@clisp.org>
69177         Fix a c-stack test failure on MacOS X.
69178         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
69179         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
69180         handler for SIGBUS as well.
69181         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
69182         install a signal handler for SIGBUS as well.
69183         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
69185 2008-12-06  Bruno Haible  <bruno@clisp.org>
69187         Advocacy documentation.
69188         * doc/gnulib-intro.texi (Benefits): New section.
69189         * doc/gnulib.texi: Update.
69191 2008-12-06  Bruno Haible  <bruno@clisp.org>
69193         Document the 'manywarnings' module.
69194         * doc/manywarnings.texi: New file.
69195         * doc/gnulib.texi: Include it.
69197 2008-12-05  Eric Blake  <ebb9@byu.net>
69199         tests: silence some gcc warnings
69200         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
69201         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
69202         type mismatches.
69204 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69205             Bruno Haible  <bruno@clisp.org>
69207         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
69209 2008-11-29  Jim Meyering  <meyering@redhat.com>
69211         unicodeio.c: mark unused parameters
69212         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
69213         (fallback_failure_callback): Likewise.
69215         fts: fix a thinko
69216         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
69217         (set_stat_type): Return S_IF*-valued "type" directly.
69218         Prompted by James Youngman's spotting a related bug.
69219         Confirmed by further testing through find.
69221         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
69222         * lib/fts.c (D_TYPE): Define.
69223         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
69224         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
69225         (s_ifmt_shift_bits): New function.
69226         (set_stat_type): New function.
69227         (fts_build): When not calling fts_stat, call set_stat_type
69228         to propagate dirent.d_type info to fts_read caller.
69229         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
69230         fts_statp->st_mode type information may be valid.
69232 2008-11-28  Simon Josefsson  <simon@josefsson.org>
69234         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
69235         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
69236         <sds@gnu.org>.
69238 2008-11-20  Bruno Haible  <bruno@clisp.org>
69240         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
69241         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
69242         INCLUDE_NEXT.
69243         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
69244         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
69245         * modules/math (Makefile.am): Substitute
69246         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
69247         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
69249 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
69250             Bruno Haible  <bruno@clisp.org>
69252         * lib/stdint.in.h: Define all type macros so that their expansion is
69253         a single typedef'ed token. Fixes a compilation failure in Boost which
69254         does "using ::int8_t;".
69256 2008-11-18  Simon Josefsson  <simon@josefsson.org>
69258         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
69259         gl_MANYWARN_ALL_GCC.
69260         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
69261         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
69262         * modules/manywarnings: New file.
69263         * MODULES.html.sh: Mention manywarnings module.
69265 2008-11-18  Bruno Haible  <bruno@clisp.org>
69267         * doc/gnulib-tool.texi (Unit tests): New section.
69269 2008-11-18  Simon Josefsson  <simon@josefsson.org>
69271         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
69272         paths like 'lib/po/foo.po'.
69274 2008-11-17  Simon Josefsson  <simon@josefsson.org>
69276         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
69277         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
69279 2008-11-17  Simon Josefsson  <simon@josefsson.org>
69281         * m4/warnings.m4: Use CPPFLAGS to really check whether the
69282         parameter works.
69284 2008-11-17  Simon Josefsson  <simon@josefsson.org>
69286         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
69288 2008-11-17  Bruce Korb  <bkorb@gnu.org>
69290         * modules/parse-duration-tests: New file.
69291         * tests/test-parse-duration.sh: New file.
69292         * tests/test-parse-duration.c: New file.
69294         New module 'parse-duration'.
69295         * lib/parse-duration.h: New file.
69296         * lib/parse-duration.c: New file.
69297         * modules/parse-duration: New file.
69299 2008-11-17  Bruno Haible  <bruno@clisp.org>
69301         * tests/test-select-out.sh: Comment out the first pipe test.
69302         Reported by Simon Josefsson.
69304 2008-11-17  Bruno Haible  <bruno@clisp.org>
69306         * modules/getaddrinfo (Depends-on): Add servent, hostent.
69307         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
69308         gl_HOSTENT.
69310 2008-11-17  Bruno Haible  <bruno@clisp.org>
69312         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
69313         -lnetwork and -lnet. Needed for Haiku and BeOS.
69315 2008-11-16  Bruno Haible  <bruno@clisp.org>
69317         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
69319 2008-11-16  Bruno Haible  <bruno@clisp.org>
69321         Avoid test failure on Haiku.
69322         * tests/test-fsync.c: Include <errno.h>.
69323         (main): Don't require that fsync (0) fails.
69325 2008-11-15  Bruno Haible  <bruno@clisp.org>
69327         New module 'hostent'.
69328         * modules/hostent: New file.
69329         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
69331 2008-11-15  Bruno Haible  <bruno@clisp.org>
69333         New module 'servent'.
69334         * modules/servent: New file.
69335         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
69337 2008-11-15  Bruno Haible  <bruno@clisp.org>
69339         Avoid generating same test program with two different rules.
69340         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
69341         test-frexp to test-frexp-nolibm.
69342         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
69343         test-frexpl to test-frexpl-nolibm.
69345 2008-11-15  Bruno Haible  <bruno@clisp.org>
69347         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
69348         $(FREXPL_LIBM).
69350 2008-11-15  Bruno Haible  <bruno@clisp.org>
69352         * lib/netdb.in.h: Activate the definitions also when the system's
69353         <netdb.h> has 'struct addrinfo'.
69354         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
69355         EAI_OVERFLOW or AI_NUMERICSERV.
69356         * doc/posix-headers/netdb.texi: Document the problem.
69358 2008-11-15  Bruno Haible  <bruno@clisp.org>
69360         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
69362         Make the 'sched' module work on platforms where <sched.h> exists but
69363         is incomplete (such as Haiku).
69364         * lib/sched.in.h; Include the system's <sched.h> if it exists.
69365         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
69366         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
69367         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
69368         HAVE_STRUCT_SCHED_PARAM.
69369         * modules/sched (Depends-on): Add include_next.
69370         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
69371         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
69372         * doc/posix-headers/sched.texi: Document the issue.
69374 2008-11-13  Jim Meyering  <meyering@redhat.com>
69376         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
69377         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
69378         test would fail due to the difference in the Report bugs to ...
69379         line.  The expected address is empty, "<>", while the actual
69380         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
69382 2008-11-12  Bruno Haible  <bruno@clisp.org>
69384         lstat: don't compile lstat.c on systems lacking lstat
69385         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
69386         which don't have lstat; this is handled by lib/sys_stat.in.h already.
69387         Reported by Daniel P. Berrange via Jim Meyering.
69389 2008-11-12  Jim Meyering  <meyering@redhat.com>
69391         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
69393 2008-11-12  Simon Josefsson  <simon@josefsson.org>
69395         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
69396         instead.
69398 2008-11-12  Bruno Haible  <bruno@clisp.org>
69400         * lib/unicodeio.c: Include unistr.h.
69401         (utf8_wctomb): Remove function.
69402         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
69404 2008-11-12  Simon Josefsson  <simon@josefsson.org>
69406         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
69407         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
69408         <bruno@clisp.org>.
69409         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
69411 2008-11-12  Simon Josefsson  <simon@josefsson.org>
69413         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
69414         * doc/gnulib.texi: Add section for warnings.
69416 2008-11-11  Bruno Haible  <bruno@clisp.org>
69418         * lib/sockets.h: Add a comment.
69420 2008-11-11  Karl Berry  <karl@gnu.org>
69422         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
69424 2008-11-11  Eric Blake  <ebb9@byu.net>
69426         fdl.texi: avoid git symlinks
69427         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
69429 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
69431         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
69433 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
69435         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
69436         (gl_WARN_ADD): Substitute $2 if literal.
69438 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
69440         * m4/warning.m4: Remove.
69442 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
69444         * m4/warnings.m4: Almost complete rewrite. :-)
69446 2008-11-10  Simon Josefsson  <simon@josefsson.org>
69448         * modules/warnings: New module.
69449         * m4/warnings.m4: New file.
69450         * MODULES.html.sh: Mention warnings module.
69451         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
69452         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
69454 2008-11-10  Eric Blake  <ebb9@byu.net>
69456         fdl.texi: make a symlink to the latest version
69457         * doc/standards.texi: Revert today's earlier change.
69458         * doc/fdl-1.2.texi: Rename from old fdl.texi...
69459         * doc/fdl.texi: ...and replace this with a symlink to the newer
69460         fdl-1.3.texi.
69462 2008-11-10  Bruno Haible  <bruno@clisp.org>
69464         * tests/test-select-fd.c (main): Accept the result file name as fourth
69465         argument.
69466         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
69467         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
69469 2008-11-10  Bruno Haible  <bruno@clisp.org>
69471         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
69472         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
69473         as autoconf-substituted macros.
69474         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
69475         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
69476         gl_NETDB_H_DEFAULTS. Set these variables.
69477         * modules/netdb (Makefile.am): Substitute these variables.
69479 2008-11-10  Eric Blake  <ebb9@byu.net>
69481         standards.texi: include correct file for FDL 1.3
69482         * doc/standards.texi (GNU Free Documentation License): Change
69483         include file to pull in FDL 1.3, not 1.2.
69485         fdl.texi: revert accidental change to license
69486         * doc/fdl.texi: This is FDL 1.2, not 1.3.
69488 2008-11-10  Bruno Haible  <bruno@clisp.org>
69490         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
69491         cross-compiling guesses also when the native compile gives no result.
69493 2008-11-10  Bruno Haible  <bruno@clisp.org>
69495         * lib/spawni.c (__spawni): Force variable into the stack.
69497 2008-11-10  Bruno Haible  <bruno@clisp.org>
69499         Add support for Haiku.
69500         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
69501         glibc and BeOS, but also on Haiku.
69502         * lib/fpurge.c (fpurge): Likewise.
69503         * lib/freadable.c (freadable): Likewise.
69504         * lib/freadahead.c (freadahead): Likewise.
69505         * lib/freading.c (freading): Likewise.
69506         * lib/freadptr.c (freadptr): Likewise.
69507         * lib/freadseek.c (freadptrinc): Likewise.
69508         * lib/fseeko.c (rpl_fseeko): Likewise.
69509         * lib/fseterr.c (fseterr): Likewise.
69510         * lib/fwritable.c (fwritable): Likewise.
69511         * lib/fwriting.c (fwriting): Likewise.
69512         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
69514 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
69516         * lib/config.charset: Treat Haiku like BeOS.
69518 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
69520         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
69521         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
69523 2008-11-08  Bruno Haible  <bruno@clisp.org>
69525         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
69526         AC_CACHE_CHECK.
69528 2008-11-08  Bruno Haible  <bruno@clisp.org>
69530         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
69532 2008-11-08  Bruno Haible  <bruno@clisp.org>
69534         * tests/test-select-fd.c: New file.
69535         * tests/test-select-in.sh: New file.
69536         * tests/test-select-out.sh: New file.
69537         * tests/test-select-stdin.c: New file.
69538         * modules/select-tests (Files): Add the new files.
69539         (Depends-on): Add gettimeofday.
69540         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
69541         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
69542         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
69544 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
69545             Bruno Haible  <bruno@clisp.org>
69547         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
69549 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
69551         * build-aux/pmccabe2html: Added support for C++ source files.
69553 2008-11-05  Ben Pfaff  <blp@gnu.org>
69555         Fix lib/close.c build on Windows.
69556         * modules/close (Files): Add lib/w32sock.h.
69558 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
69560         Accept Bison's NEWS format.
69561         * build-aux/announce-gen (print_news_deltas): Tweak
69562         $re_prefix.
69564 2008-11-04  Bruno Haible  <bruno@clisp.org>
69566         * modules/random_r (Maintainer): Add glibc.
69568 2008-11-04  Simon Josefsson  <simon@josefsson.org>
69570         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
69571         by karl@freefriends.org (Karl Berry).
69572         * doc/alloca.texi: Likewise.
69573         * doc/c-ctype.texi: Likewise.
69574         * doc/c-strcase.texi: Likewise.
69575         * doc/c-strcaseeq.texi: Likewise.
69576         * doc/c-strcasestr.texi: Likewise.
69577         * doc/c-strstr.texi: Likewise.
69578         * doc/c-strtod.texi: Likewise.
69579         * doc/c-strtold.texi: Likewise.
69580         * doc/ctime.texi: Likewise.
69581         * doc/error.texi: Likewise.
69582         * doc/fdl.texi: Likewise.
69583         * doc/gcd.texi: Likewise.
69584         * doc/getdate.texi: Likewise.
69585         * doc/gnulib-intro.texi: Likewise.
69586         * doc/gnulib-tool.texi: Likewise.
69587         * doc/gnulib.texi: Likewise.
69588         * doc/inet_ntoa.texi: Likewise.
69589         * doc/maintain.texi: Likewise.
69590         * doc/make-stds.texi: Likewise.
69591         * doc/quote.texi: Likewise.
69592         * doc/regexprops-generic.texi: Likewise.
69593         * doc/standards.texi: Likewise.
69594         * doc/verify.texi: Likewise.
69595         * doc/visibility.texi: Likewise.
69596         * doc/gnulib.texi (GNU Free Documentation License): Include
69597         fdl-1.3.texi instead of fdl.texi.
69599 2008-11-04  Simon Josefsson  <simon@josefsson.org>
69601         * doc/fdl-1.3.texi: New file, from
69602         <http://www.gnu.org/licenses/fdl-1.3.texi>.
69603         * modules/fdl-1.3: Add.
69604         * MODULES.html.sh: Add fdl-1.3.
69606 2008-11-03  Bruno Haible  <bruno@clisp.org>
69608         Make determination of absolute name of header file work with AIX xlc.
69609         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
69610         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
69611         preprocessing.
69612         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
69613         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
69615 2008-11-03  Simon Josefsson  <simon@josefsson.org>
69617         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
69618         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
69619         <ludo@gnu.org>.
69621 2008-11-02  Bruno Haible  <bruno@clisp.org>
69623         Mark 'strpbrk' obsolete.
69624         * modules/strpbrk (Status, Notice): New sections.
69625         * modules/strtok_r (Depends-on): Add strpbrk.
69627 2008-11-02  Bruno Haible  <bruno@clisp.org>
69629         Mark 'strdup' obsolete.
69630         * modules/strdup (Status, Notice): New sections.
69631         * modules/findprog (Depends-on): Add strdup.
69632         * modules/getaddrinfo (Depends-on): Likewise.
69633         * modules/localename (Depends-on): Likewise.
69634         * modules/relocatable-lib (Depends-on): Likewise.
69635         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
69636         * modules/relocatable-prog (Depends-on): Likewise.
69637         * modules/trim (Depends-on): Likewise.
69638         * modules/unictype/gen-ctype (Depends-on): Likewise.
69639         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
69641 2008-11-02  Bruno Haible  <bruno@clisp.org>
69643         Mark 'strcspn' obsolete.
69644         * modules/strcspn (Status, Notice): New sections.
69646 2008-11-02  Bruno Haible  <bruno@clisp.org>
69648         Mark 'rmdir' obsolete.
69649         * modules/rmdir (Status, Notice): New sections.
69650         * modules/clean-temp (Depends-on): Add rmdir.
69651         * modules/openat (Depends-on): Likewise.
69653 2008-11-02  Bruno Haible  <bruno@clisp.org>
69655         Mark 'raise' obsolete.
69656         * modules/raise (Status, Notice): New sections.
69657         (Include): Specify <signal.h>.
69658         * modules/stdio (Depends-on): Add raise.
69659         * modules/write (Depends-on): Likewise.
69661 2008-11-02  Bruno Haible  <bruno@clisp.org>
69663         Mark 'memset' obsolete.
69664         * modules/memset (Status, Notice): New sections.
69666 2008-11-02  Bruno Haible  <bruno@clisp.org>
69668         Mark 'memmove' obsolete.
69669         * modules/memmove (Status, Notice): New sections.
69670         * modules/argp (Depends-on): Add memmove.
69671         * modules/argz (Depends-on): Likewise.
69672         * modules/canonicalize (Depends-on): Likewise.
69673         * modules/canonicalize-lgpl (Depends-on): Likewise.
69674         * modules/fts (Depends-on): Likewise.
69675         * modules/getcwd (Depends-on): Likewise.
69676         * modules/human (Depends-on): Likewise.
69677         * modules/regex (Depends-on): Likewise.
69678         * modules/striconveh (Depends-on): Likewise.
69679         * modules/trim (Depends-on): Likewise.
69680         * modules/unistr/u8-move (Depends-on): Likewise.
69681         * modules/unistr/u16-move (Depends-on): Likewise.
69682         * modules/unistr/u32-move (Depends-on): Likewise.
69684 2008-11-02  Bruno Haible  <bruno@clisp.org>
69686         Mark 'memcpy' obsolete.
69687         * modules/memcpy (Status, Notice): New sections.
69689 2008-11-02  Bruno Haible  <bruno@clisp.org>
69691         Mark 'memcmp' obsolete.
69692         * modules/memcmp (Status, Notice): New sections.
69693         * modules/argmatch (Depends-on): Add memchr.
69694         * modules/backupfile (Depends-on): Likewise.
69695         * modules/c-strcasestr (Depends-on): Likewise.
69696         * modules/crypto/des (Depends-on): Likewise.
69697         * modules/csharpcomp (Depends-on): Likewise.
69698         * modules/fnmatch (Depends-on): Likewise.
69699         * modules/git-merge-changelog (Depends-on): Likewise.
69700         * modules/isnand (Depends-on): Likewise.
69701         * modules/isnand-nolibm (Depends-on): Likewise.
69702         * modules/isnanf (Depends-on): Likewise.
69703         * modules/isnanf-nolibm (Depends-on): Likewise.
69704         * modules/isnanl (Depends-on): Likewise.
69705         * modules/isnanl-nolibm (Depends-on): Likewise.
69706         * modules/mbchar (Depends-on): Likewise.
69707         * modules/memcoll (Depends-on): Likewise.
69708         * modules/quotearg (Depends-on): Likewise.
69709         * modules/regex (Depends-on): Likewise.
69710         * modules/relocatable-prog (Depends-on): Likewise.
69711         * modules/same (Depends-on): Likewise.
69712         * modules/signbit (Depends-on): Likewise.
69713         * modules/strcasestr-simple (Depends-on): Likewise.
69714         * modules/unictype/gen-ctype (Depends-on): Likewise.
69715         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
69716         * modules/uniname/uniname (Depends-on): Likewise.
69717         * modules/unistr/u8-cmp (Depends-on): Likewise.
69719 2008-11-02  Bruno Haible  <bruno@clisp.org>
69721         Mark 'memchr' obsolete.
69722         * modules/memchr (Status, Notice): New sections.
69723         * modules/argp (Depends-on): Add memchr.
69724         * modules/base64 (Depends-on): Likewise.
69725         * modules/c-strcasestr (Depends-on): Likewise.
69726         * modules/chdir-long (Depends-on): Likewise.
69727         * modules/fnmatch (Depends-on): Likewise.
69728         * modules/getsubopt (Depends-on): Likewise.
69729         * modules/git-merge-changelog (Depends-on): Likewise.
69730         * modules/glob (Depends-on): Likewise.
69731         * modules/strcasestr-simple (Depends-on): Likewise.
69732         * modules/strnlen (Depends-on): Likewise.
69734 2008-11-02  Bruno Haible  <bruno@clisp.org>
69736         Mark 'atexit' obsolete.
69737         * modules/atexit (Status, Notice): New sections.
69738         * modules/chdir-long (Depends-on): Add atexit.
69739         * modules/wait-process (Depends-on): Likewise.
69741 2008-11-02  Bruno Haible  <bruno@clisp.org>
69743         * gnulib-tool: New option --with-obsolete.
69744         (func_usage): Document it.
69745         (func_modules_transitive_closure): Drop obsolete dependencies if
69746         incobsolete is not true.
69747         (func_import): Read and save the incobsolete variable to the cache.
69749 2008-11-02  Bruno Haible  <bruno@clisp.org>
69751         * modules/TEMPLATE-EXTENDED: New field 'Status'.
69752         * gnulib-tool: New option --extract-status.
69753         (func_usage): Document it.
69754         (sed_extract_prog): Recognize it.
69755         (func_get_status): New function.
69757 2008-10-30  Simon Josefsson  <simon@josefsson.org>
69759         * modules/sockets (License): Change from LGPL to LGPLv2+.
69761 2008-10-28  Simon Josefsson  <simon@josefsson.org>
69763         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
69765 2008-10-28  Simon Josefsson  <simon@josefsson.org>
69767         * MODULES.html.sh (Support for systems lacking POSIX:2001):
69768         Mention times and sys_times.
69769         * modules/sys_times, modules/sys_times-tests: New modules.
69770         * modules/times, modules/times-tests: Likewise
69771         * m4/sys_times_h.m4: New file.
69772         * lib/sys_times.in.h: Likewise
69773         * lib/times.c: Likewise.
69774         * tests/test-sys_times.c: Likewise.
69775         * tests/test-times.c: Likewise.
69776         * doc/posix-headers/sys_times.texi: Update.
69777         * doc/posix-functions/times.texi: Update.
69779 2008-10-28  Jim Meyering  <meyering@redhat.com>
69781         * modules/tempname (Depends-on): Add lstat.
69783         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
69785 2008-10-28  Simon Josefsson  <simon@josefsson.org>
69787         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
69788         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
69789         using idiom used elsewhere in gnulib.
69791 2008-10-27  Jim Meyering  <meyering@redhat.com>
69793         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
69795 2008-10-27  Simon Josefsson  <simon@josefsson.org>
69797         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
69798         TESTS_ENVIRONMENT, for shell scripts that needs to call built
69799         programs.
69800         * tests/test-argp-2.sh: Use $EXEEXT when needed.
69802 2008-10-27  Simon Josefsson  <simon@josefsson.org>
69804         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
69806 2008-10-27  Bruno Haible  <bruno@clisp.org>
69808         * tests/test-lstat.c: Include <stdio.h>.
69810 2008-10-27  Simon Josefsson  <simon@josefsson.org>
69812         * modules/lstat-tests: New module.
69813         * tests/test-lstat.c: New file.
69815 2008-10-26  Jim Meyering  <meyering@redhat.com>
69817         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
69819 2008-10-26  Simon Josefsson  <simon@josefsson.org>
69820             Bruno Haible  <bruno@clisp.org>
69822         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
69823         * modules/configmake (Include): Add a note that the include must come
69824         after all system headers.
69825         * lib/javaversion.c: Include configmake.h after all other includes.
69827 2008-10-26  Bruno Haible  <bruno@clisp.org>
69829         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
69830         HAVE_STRUCT_RANDOM_DATA to 1.
69831         (gl_STDLIB_H): Simplify.
69833 2008-10-26  Simon Josefsson  <simon@josefsson.org>
69835         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
69836         substitute HAVE_STRUCT_RANDOM_DATA.
69837         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
69838         random_data.
69839         * modules/stdlib (Makefile.am): Substitute
69840         HAVE_STRUCT_RANDOM_DATA.
69842 2008-10-26  Simon Josefsson  <simon@josefsson.org>
69844         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
69845         * doc/gnulib-intro.texi (Copyright): Likewise.
69847 2008-10-26  Simon Josefsson  <simon@josefsson.org>
69849         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
69850         findings.
69852 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
69853             Bruno Haible  <bruno@clisp.org>
69855         * lib/unistd.in.h: Include <winsock2.h>.
69856         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
69857         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
69858         Provide dummy declarations.
69859         (gethostname): Override.
69860         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
69861         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
69862         gl_PREREQ_SYS_H_WINSOCK2.
69863         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
69864         * doc/posix-functions/gethostname.texi: More details.
69866 2008-10-25  Bruno Haible  <bruno@clisp.org>
69868         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
69869         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
69870         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
69872         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
69873         here ...
69874         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
69875         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
69876         gl_UNISTD_H_DEFAULTS.
69878 2008-10-25  Eric Blake  <ebb9@byu.net>
69880         signbit: avoid spurious compiler failure
69881         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
69882         declarations inside function.
69884 2008-10-24  Simon Josefsson  <simon@josefsson.org>
69885             Bruno Haible  <bruno@clisp.org>
69887         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
69888         * modules/random_r (Depends-on): Add stdint.
69890 2008-10-24  Bruno Haible  <bruno@clisp.org>
69892         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
69893         Eggert.
69894         * modules/strerror (License): Likewise.
69896 2008-10-24  Jim Meyering  <meyering@redhat.com>
69898         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
69899         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
69901 2008-10-24  Eric Blake  <ebb9@byu.net>
69903         getgroups: fix compilation when getgroups is available
69904         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
69905         but with <config.h> override of getgroups disabled.
69907 2008-10-24  Simon Josefsson  <simon@josefsson.org>
69909         * doc/gnulib.texi (Header files): Add note about C++ problems.
69910         Explained by Bruno Haible <bruno@clisp.org>.
69912 2008-10-23  Bruno Haible  <bruno@clisp.org>
69914         Define a dummy SA_NODEFER macro on Interix.
69915         * lib/signal.in.h (SA_NODEFER): Define fallback.
69916         Reported by Aleksey Cheusov <cheusov@tut.by> via
69917         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
69919 2008-10-23  Bruno Haible  <bruno@clisp.org>
69921         * modules/freadahead (License): Change to LGPLv2+.
69922         Suggested by Simon Josefsson.
69924 2008-10-23  Jim Meyering  <meyering@redhat.com>
69926         random_r: new module
69927         * modules/random_r: New file.
69928         * m4/random_r.m4: New file.
69929         * lib/random_r.c: New file, from glibc.
69930         * modules/random_r-tests: New file.
69931         * tests/test-random_r.c: New file.
69932         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
69933          Declare.
69934         (RAND_MAX): Define.
69935         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
69936         * modules/stdlib: Substitute them, too.
69937         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
69938         * doc/glibc-functions/initstate_r.texi: Mention the new module.
69939         * doc/glibc-functions/random_r.texi: Likewise.
69940         * doc/glibc-functions/setstate_r.texi: Likewise.
69941         * doc/glibc-functions/srandom_r.texi: Likewise.
69942         * config/srclist.txt: Mention it.
69944 2008-10-23  David Lutterkort  <lutter@redhat.com>
69946         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
69947         link requirement
69949 2008-10-23  Jim Meyering  <meyering@redhat.com>
69951         selinux-h: mark parameters of stub functions as intentionally unused
69952         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
69953         * lib/se-context.in.h: Likewise.
69955 2008-10-22  Simon Josefsson  <simon@josefsson.org>
69957         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
69959 2008-10-22  Simon Josefsson  <simon@josefsson.org>
69961         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
69963 2008-10-22  Eric Blake  <ebb9@byu.net>
69965         glthread/thread: avoid compiler warning
69966         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
69967         Add unreachable abort to silence compiler.
69969 2008-10-22  Eric Blake  <ebb9@byu.net>
69971         netdb: also supply struct addrinfo for cygwin 1.5.x
69972         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
69973         older cygwin.
69974         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
69975         cygwin.
69976         * doc/posix-headers/netdb.texi (netdb.h): Document this.
69978 2008-10-22  Bruno Haible  <bruno@clisp.org>
69980         * users.txt: Update entry about pspp.
69982 2008-10-21  Bruno Haible  <bruno@clisp.org>
69984         Simplification.
69985         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
69986         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
69988         Simplification.
69989         * lib/ioctl.c (ioctl): Don't undefine.
69990         * lib/socket.c (socket): Don't undefine.
69992         Remove unused module indicator macros.
69993         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
69994         GNULIB_$1 as a C macro.
69996         * doc/posix-functions/close.texi: Undo last change.
69997         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
69998         Windows platforms.
70000 2008-10-21  Bruno Haible  <bruno@clisp.org>
70002         Add gethostname() declaration to <unistd.h>.
70003         * lib/unistd.in.h (gethostname): New declaration.
70004         * lib/gethostname.c: Include <unistd.h>.
70005         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
70006         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
70007         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
70008         and HAVE_GETHOSTNAME.
70009         * modules/gethostname (Depends-on): Add unistd.
70010         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
70011         (Include): Specify <unistd.h>.
70012         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
70013         HAVE_GETHOSTNAME.
70014         * tests/test-gethostname.c: Include <unistd.h> first.
70016 2008-10-21  Bruno Haible  <bruno@clisp.org>
70018         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
70019         * modules/select-tests (Depends-on): Likewise.
70020         Reported by Simon Josefsson.
70022 2008-10-21  Simon Josefsson  <simon@josefsson.org>
70024         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
70025         * lib/accept.c: New file, based on winsock.c.
70026         * lib/bind.c: New file, based on winsock.c.
70027         * lib/connect.c: New file, based on winsock.c.
70028         * lib/getpeername.c: New file, based on winsock.c.
70029         * lib/getsockname.c: New file, based on winsock.c.
70030         * lib/getsockopt.c: New file, based on winsock.c.
70031         * lib/ioctl.c: New file, based on winsock.c.
70032         * lib/listen.c: New file, based on winsock.c.
70033         * lib/recv.c: New file, based on winsock.c.
70034         * lib/recvfrom.c: New file, based on winsock.c.
70035         * lib/send.c: New file, based on winsock.c.
70036         * lib/sendto.c: New file, based on winsock.c.
70037         * lib/setsockopt.c: New file, based on winsock.c.
70038         * lib/shutdown.c: New file, based on winsock.c.
70039         * lib/socket.c: New file, based on winsock.c.
70040         * lib/w32sock.h: New file, based on winsock.c.
70041         * lib/winsock.c: Remove file.
70042         * modules/accept: Likewise.
70043         * modules/bind: Likewise.
70044         * modules/connect: Likewise.
70045         * modules/getpeername: Likewise.
70046         * modules/getsockname: Likewise.
70047         * modules/getsockopt: Likewise.
70048         * modules/ioctl: Likewise.
70049         * modules/listen: Likewise.
70050         * modules/recv: Likewise.
70051         * modules/recvfrom: Likewise.
70052         * modules/send: Likewise.
70053         * modules/sendto: Likewise.
70054         * modules/setsockopt: Likewise.
70055         * modules/shutdown: Likewise.
70056         * modules/socket: Use socket.c instead of winsock.c.
70057         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
70058         * doc/posix-functions/accept.texi: Doc fix.
70059         * doc/posix-functions/bind.texi: Doc fix.
70060         * doc/posix-functions/close.texi: Doc fix.
70061         * doc/posix-functions/connect.texi: Doc fix.
70062         * doc/posix-functions/getpeername.texi: Doc fix.
70063         * doc/posix-functions/getsockname.texi: Doc fix.
70064         * doc/posix-functions/getsockopt.texi: Doc fix.
70065         * doc/posix-functions/ioctl.texi: Doc fix.
70066         * doc/posix-functions/listen.texi: Doc fix.
70067         * doc/posix-functions/recv.texi: Doc fix.
70068         * doc/posix-functions/recvfrom.texi: Doc fix.
70069         * doc/posix-functions/send.texi: Doc fix.
70070         * doc/posix-functions/sendto.texi: Doc fix.
70071         * doc/posix-functions/setsockopt.texi: Doc fix.
70072         * doc/posix-functions/shutdown.texi: Doc fix.
70073         * doc/posix-functions/socket.texi: Doc fix.
70075 2008-10-20  Bruno Haible  <bruno@clisp.org>
70077         Take into account the role of SIGABRT_COMPAT on Windows 2008.
70078         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
70079         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
70080         as an alias for SIGABRT.
70081         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
70082         (sigaction): Map it to SIGABRT.
70083         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
70085 2008-10-20  Bruno Haible  <bruno@clisp.org>
70087         * lib/fts.c: Don't include lstat.h.
70088         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
70090         Move the lstat() declaration to <sys/stat.h>.
70091         * lib/lstat.h: Remove file.
70092         * lib/sys_stat.in.h: Add special invocation convention.
70093         (lstat): New declaration.
70094         * lib/lstat.c (orig_lstat): New function.
70095         (rpl_lstat): Use orig_lstat instead of lstat.
70096         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
70097         AC_C_INLINE. Set REPLACE_LSTAT.
70098         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
70099         and REPLACE_LSTAT.
70100         * modules/lstat (Files): Remove lib/lstat.h.
70101         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
70102         (Include): Specify <sys/stat.h> instead of lstat.h.
70103         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
70104         REPLACE_LSTAT.
70105         * NEWS: Mention the change.
70107 2008-10-20  Bruno Haible  <bruno@clisp.org>
70109         * modules/posix_spawn-tests: New file.
70110         * tests/test-posix_spawn3.c: New file.
70112 2008-10-20  Bruno Haible  <bruno@clisp.org>
70114         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
70115         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
70116         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
70117         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
70118         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
70120 2008-10-20  Bruno Haible  <bruno@clisp.org>
70122         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
70123         of posix_spawn on AIX 5.3.
70125 2008-10-20  Bruno Haible  <bruno@clisp.org>
70127         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
70129 2008-10-20  Bruno Haible  <bruno@clisp.org>
70131         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
70132         of AC_LANG_PROGRAM.
70134 2008-10-20  Simon Josefsson  <simon@josefsson.org>
70136         * lib/netdb.in.h: Don't define GNU specific constants until they
70137         are supported or needed.  Reported by Bruno Haible
70138         <bruno@clisp.org>.
70140 2008-10-20  Simon Josefsson  <simon@josefsson.org>
70142         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
70144 2008-10-20  Simon Josefsson  <simon@josefsson.org>
70146         * lib/getaddrinfo.h: Remove file.
70147         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
70148         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
70149         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
70150         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
70151         * modules/netdb: Substitute GNULIB_GETADDRINFO.
70152         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
70153         * tests/test-getaddrinfo.c: Likewise.
70154         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
70155         * NEWS: Mention change.
70157 2008-10-19  Bruno Haible  <bruno@clisp.org>
70159         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
70161 2008-10-19  Bruno Haible  <bruno@clisp.org>
70163         * lib/wait-process.c: Include simply <sys/wait.h>.
70164         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
70165         WIFSTOPPED): Remove fallback definitions.
70166         * modules/wait-process (Depends-on): Add sys_wait.
70168         New module 'sys_wait'.
70169         * modules/sys_wait: New file.
70170         * lib/sys_wait.in.h: New file, partially copied from
70171         lib/wait-process.c.
70172         * m4/sys_wait_h.m4: New file.
70173         * doc/posix-headers/sys_wait.texi: Mention the new module.
70175 2008-10-19  Bruno Haible  <bruno@clisp.org>
70177         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
70179 2008-10-19  Bruno Haible  <bruno@clisp.org>
70181         Assume that waitpid() fills an 'int' status, not a 'union wait'.
70182         * lib/wait-process.c (WAIT_T): Remove type.
70183         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
70184         (wait_subprocess): Update.
70186 2008-10-19  Bruno Haible  <bruno@clisp.org>
70188         New module 'atoll'.
70189         * modules/atoll: New file.
70190         * lib/stdlib.in.h (atoll): New declaration.
70191         * lib/atoll.c: New file, from glibc with modifications.
70192         * m4/atoll.m4: New file.
70193         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
70194         HAVE_ATOLL.
70195         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
70196         * doc/posix-functions/atoll.texi: Mention the new module.
70198 2008-10-19  Bruno Haible  <bruno@clisp.org>
70200         Add strtoull() declaration to <stdlib.h>.
70201         * lib/stdlib.in.h (strtoull): New declaration.
70202         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
70203         Set HAVE_STRTOULL.
70204         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
70205         HAVE_STRTOULL.
70206         * modules/strtoull (Depends-on): Add stdlib.
70207         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
70208         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
70209         HAVE_STRTOULL.
70211 2008-10-19  Bruno Haible  <bruno@clisp.org>
70213         Add strtoll() declaration to <stdlib.h>.
70214         * lib/stdlib.in.h (strtoll): New declaration.
70215         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
70216         Set HAVE_STRTOLL.
70217         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
70218         HAVE_STRTOLL.
70219         * modules/strtoll (Depends-on): Add stdlib.
70220         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
70221         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
70223 2008-10-19  Bruno Haible  <bruno@clisp.org>
70225         * modules/bcopy (Depends-on): Add strings.
70226         (Include): Specify <strings.h>.
70228 2008-10-19  Bruno Haible  <bruno@clisp.org>
70230         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
70232 2008-10-19  Bruno Haible  <bruno@clisp.org>
70234         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
70235         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
70236         mingw.
70238 2008-10-19  Bruno Haible  <bruno@clisp.org>
70240         * lib/atanl.c: Don't include isnanl.h.
70241         * lib/cosl.c: Likewise.
70242         * lib/ldexpl.c: Likewise.
70243         * lib/logl.c: Likewise.
70244         * lib/sinl.c: Likewise.
70245         * lib/sqrtl.c: Likewise.
70246         * lib/tanl.c: Likewise.
70248         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
70249         * lib/isnanf.h: Remove file.
70250         * lib/isnand.h: Remove file.
70251         * lib/isnanl.h: Remove file.
70252         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
70253         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
70254         macros.
70255         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
70256         HAVE_ISNANF, don't define it as a C macro.
70257         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
70258         HAVE_ISNAND, don't define it as a C macro.
70259         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
70260         HAVE_ISNANL, don't define it as a C macro.
70261         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
70262         HAVE_ISNAN[FDL].
70263         * modules/isnanf (Files): Remove lib/isnanf.h.
70264         (Depends-on): Add math.
70265         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
70266         (Include): Specify <math.h> instead of isnanf.h.
70267         * modules/isnand (Files): Remove lib/isnand.h.
70268         (Depends-on): Add math.
70269         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
70270         (Include): Specify <math.h> instead of isnand.h.
70271         * modules/isnanl (Files): Remove lib/isnanl.h.
70272         (Depends-on): Add math.
70273         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
70274         (Include): Specify <math.h> instead of isnanl.h.
70275         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
70276         HAVE_ISNAN[FDL].
70277         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
70278         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
70279         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
70280         * NEWS: Mention the change.
70282 2008-10-18  Bruno Haible  <bruno@clisp.org>
70284         Add getusershell(), setusershell(), endusershell() declarations to
70285         <unistd.h>.
70286         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
70287         declarations.
70288         * lib/getusershell.c: Include unistd.h.
70289         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
70290         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
70291         HAVE_GETUSERSHELL.
70292         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
70293         and HAVE_GETUSERSHELL.
70294         * modules/getusershell (Depends-on): Add unistd, extensions.
70295         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
70296         (Include): Specify <unistd.h>.
70297         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
70298         HAVE_GETUSERSHELL.
70300 2008-10-18  Bruno Haible  <bruno@clisp.org>
70302         Add a getloadavg() declaration to <stdlib.h>.
70303         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
70304         getloadavg declaration.
70305         (getloadavg): New declaration.
70306         * lib/getloadavg.c: Include <stdlib.h> first.
70307         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
70308         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
70309         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
70310         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
70311         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
70312         * modules/getloadavg (Depends-on): Add stdlib, extensions.
70313         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
70314         (Include): Specify <stdlib.h>.
70315         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
70316         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
70318 2008-10-18  Bruno Haible  <bruno@clisp.org>
70320         * lib/dirchownmod.c: Don't include lchmod.h.
70322         Move the lchmod() declaration to <sys/stat.h>.
70323         * lib/lchmod.h: Remove file.
70324         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
70325         (lchmod): New declaration, moved here from lib/lchown.h.
70326         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
70327         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
70328         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
70329         and HAVE_LCHMOD.
70330         * modules/lchmod (Files): Remove lib/lchmod.h.
70331         (Depends-on): Add sys_stat, extensions.
70332         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
70333         (Include): Specify <sys/stat.h> instead of lchmod.h.
70334         * modules/sys_stat (Depends-on): Add link-warning.
70335         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
70336         definition of GL_LINK_WARNING.
70337         * NEWS: Mention the change.
70339 2008-10-18  Bruno Haible  <bruno@clisp.org>
70341         * lib/fchdir.c: Don't include dirfd.h.
70342         * lib/fts.c: Likewise.
70343         * lib/getcwd.c: Likewise.
70344         * lib/glob.c: Likewise.
70346         Move the dirfd() declaration to <dirent.h>.
70347         * lib/dirfd.h: Remove file.
70348         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
70349         (dirfd): New declaration.
70350         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
70351         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
70352         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
70353         HAVE_DECL_DIRFD.
70354         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
70355         HAVE_DECL_DIRFD.
70356         * modules/dirfd (Files): Remove lib/dirfd.h.
70357         (Depends-on): Add dirent, extensions.
70358         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
70359         (Include): Specify <dirent.h> instead of dirfd.h.
70360         * modules/dirent (Depends-on): Add link-warning.
70361         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
70362         definition of GL_LINK_WARNING.
70363         * NEWS: Mention the change.
70365 2008-10-18  Bruno Haible  <bruno@clisp.org>
70367         Move the euidaccess() declaration to <unistd.h>.
70368         * lib/euidaccess.h: Remove file.
70369         * lib/unistd.in.h (euidaccess): New declaration.
70370         * lib/euidaccess.c: Don't include euidaccess.h.
70371         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
70372         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
70373         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
70374         and HAVE_EUIDACCESS.
70375         * modules/euidaccess (Files): Remove lib/euidaccess.h.
70376         (Depends-on): Add unistd.
70377         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
70378         (Include): Specify <unistd.h> instead of euidaccess.h.
70379         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
70380         HAVE_EUIDACCESS.
70381         * NEWS: Mention the change.
70383 2008-10-18  Bruno Haible  <bruno@clisp.org>
70385         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
70387         Move the getdomainname() declaration to <unistd.h>.
70388         * lib/getdomainname.h: Remove file.
70389         * lib/unistd.in.h (getdomainname): New declaration.
70390         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
70391         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
70392         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
70393         HAVE_GETDOMAINNAME.
70394         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
70395         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
70396         * modules/getdomainname (Files): Remove lib/getdomainname.h.
70397         (Depends-on): Add unistd, extensions.
70398         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
70399         (Includes): Specify <unistd.h> instead of getdomainname.h.
70400         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
70401         HAVE_GETDOMAINNAME.
70402         * NEWS: Mention the change.
70404 2008-10-18  Bruno Haible  <bruno@clisp.org>
70406         * modules/dirent: New file.
70407         * m4/dirent_h.m4: New file.
70408         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
70409         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
70410         * modules/fchdir (Files): Remove lib/dirent.in.h.
70411         (Depends-on): Add dirent.
70412         (Makefile.am): Move rules to modules/dirent.
70413         * doc/posix-headers/dirent.texi: Mention the new module.
70415 2008-10-18  Bruno Haible  <bruno@clisp.org>
70417         Avoid -Wunused-parameter warnings in public gnulib header files.
70418         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
70419         macro.
70420         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
70422 2008-10-18  Bruno Haible  <bruno@clisp.org>
70424         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
70425         * doc/glibc-functions/error.texi: Mention the module 'error'.
70426         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
70427         * doc/glibc-functions/getdomainname.texi: Mention the module
70428         'getdomainname'.
70429         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
70430         * doc/glibc-functions/getpagesize.texi: Mention the module
70431         'getpagesize'.
70432         * doc/glibc-functions/getusershell.texi: Mention the module
70433         'getusershell'.
70434         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
70435         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
70436         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
70437         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
70438         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
70439         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
70440         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
70441         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
70442         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
70443         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
70444         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
70445         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
70446         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
70447         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
70449 2008-10-17  Bruno Haible  <bruno@clisp.org>
70451         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
70452         HP-UX and IRIX, use -0.0L.
70453         * tests/test-ceill.c (minus_zero): Likewise.
70454         * tests/test-floorl.c (minus_zero): Likewise.
70455         * tests/test-frexpl.c (minus_zero): Likewise.
70456         * tests/test-isnan.c (minus_zerol): Likewise.
70457         * tests/test-isnanl.h (minus_zero): Likewise.
70458         * tests/test-ldexpl.c (minus_zero): Likewise.
70459         * tests/test-roundl.c (minus_zero): Likewise.
70460         * tests/test-signbit.c (minus_zerol): Likewise.
70461         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
70462         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
70463         * tests/test-truncl.c (minus_zero): Likewise.
70464         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
70465         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
70466         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
70467         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
70469 2008-10-17  Bruno Haible  <bruno@clisp.org>
70471         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
70472         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
70473         that it gets activated only for gcc >= 3.0.
70474         * lib/dirent.in.h: Likewise.
70475         * lib/errno.in.h: Likewise.
70476         * lib/fcntl.in.h: Likewise.
70477         * lib/float.in.h: Likewise.
70478         * lib/iconv.in.h: Likewise.
70479         * lib/inttypes.in.h: Likewise.
70480         * lib/locale.in.h: Likewise.
70481         * lib/math.in.h: Likewise.
70482         * lib/netdb.in.h: Likewise.
70483         * lib/netinet_in.in.h: Likewise.
70484         * lib/search.in.h: Likewise.
70485         * lib/signal.in.h: Likewise.
70486         * lib/spawn.in.h: Likewise.
70487         * lib/stdarg.in.h: Likewise.
70488         * lib/stdint.in.h: Likewise.
70489         * lib/stdio.in.h: Likewise.
70490         * lib/stdlib.in.h: Likewise.
70491         * lib/string.in.h: Likewise.
70492         * lib/strings.in.h: Likewise.
70493         * lib/sys_file.in.h: Likewise.
70494         * lib/sys_ioctl.in.h: Likewise.
70495         * lib/sys_select.in.h: Likewise.
70496         * lib/sys_socket.in.h: Likewise.
70497         * lib/sys_stat.in.h: Likewise.
70498         * lib/sys_time.in.h: Likewise.
70499         * lib/sysexits.in.h: Likewise.
70500         * lib/time.in.h: Likewise.
70501         * lib/unistd.in.h: Likewise.
70502         * lib/wchar.in.h: Likewise.
70503         * lib/wctype.in.h: Likewise.
70504         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
70506 2008-10-17  Jim Meyering  <meyering@redhat.com>
70508         ignore-value: don't depend on inline module
70509         * modules/ignore-value (Depends-on): Remove 'inline'.
70510         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
70511         Suggestion from Bruno Haible.
70513 2008-10-17  Bruno Haible  <bruno@clisp.org>
70515         New implementation of condition variables for Win32.
70516         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
70517         (gl_linked_waitqueue_t): New type.
70518         (gl_cond_t): Use it.
70519         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
70520         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
70521         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
70522         (glthread_cond_init_func, glthread_cond_wait_func,
70523         glthread_cond_timedwait_func, glthread_cond_signal_func,
70524         glthread_cond_broadcast_func, glthread_cond_destroy_func):
70525         Reimplemented on the basis of gl_linked_waitqueue_t.
70526         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
70527         gl_waitqueue_t.
70528         (gl_rwlock_t): Update.
70529         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
70531 2008-10-17  Simon Josefsson  <simon@josefsson.org>
70533         * modules/recvfrom (Depends-on): Add dependency on getpeername.
70534         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
70536 2008-10-17  Jim Meyering  <meyering@redhat.com>
70538         ignore-value: new module
70539         * modules/ignore-value: New file.
70540         * lib/ignore-value.h: New file.
70541         * MODULES.html.sh (Compiler warning management): New section,
70542         just for this module.  More to come.
70544 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
70546         open-safer.c: avoid 'signed and unsigned in conditional...' warning
70547         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
70548         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
70550 2008-10-16  Jim Meyering  <meyering@redhat.com>
70552         openat-die.c: avoid 'no previous prototype' warning
70553         * lib/openat-die.c: Include "openat.h".
70554         Reported by Reuben Thomas <rrt@sc3d.org>.
70556 2008-10-16  Simon Josefsson  <simon@josefsson.org>
70558         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
70559         * lib/netdb.in.h: Fix typo.
70560         Reported by Bruno Haible  <bruno@clisp.org>
70562         * lib/netdb.in.h: Include sys/socket.h for platforms without
70563         netdb.h, to get structures like hostent on MinGW.
70564         * modules/netdb (Depends-on): Add sys_socket.
70566 2008-10-15  Simon Josefsson  <simon@josefsson.org>
70568         * modules/netdb, modules/netdb-tests: New file.
70569         * m4/netdb_h.m4: New file.
70570         * lib/netdb.in.h: Add, currently just an empty file pending
70571         definitions.
70572         * tests/test-netdb.c: New file.
70573         * doc/posix-headers/netdb.texi: Mention that we replace it if
70574         needed.
70575         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
70576         netdb.
70578 2008-10-15  Simon Josefsson  <simon@josefsson.org>
70580         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
70581         with code.
70583 2008-10-13  Bruno Haible  <bruno@clisp.org>
70585         * lib/glthread/cond.c (glthread_cond_wait_func,
70586         glthread_cond_timedwait_func): Add a comment.
70588 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
70590         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
70591         * tests/test-select.c: Likewise,
70593 2008-10-13  Bruno Haible  <bruno@clisp.org>
70595         * lib/glthread/cond.c (glthread_cond_wait_func,
70596         glthread_cond_timedwait_func): Fix variable name.
70597         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
70599 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
70601         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
70602         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
70603         struct sockaddr.sa_len.
70604         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
70606 2008-10-13  Simon Josefsson  <simon@josefsson.org>
70608         * build-aux/pmccabe2html: Add css and css_url parameters.
70610 2008-10-12  Bruno Haible  <bruno@clisp.org>
70612         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
70613         calling aclx_get.
70614         Reported by Rainer Tammer <tammer@tammer.net>.
70616 2008-10-12  Bruno Haible  <bruno@clisp.org>
70618         Use msvcrt aware primitives for creation/termination of Win32 threads.
70619         * lib/glthread/thread.c: Include <process.h>.
70620         (glthread_create_func): Use _beginthreadex instead of CreateThread.
70621         (wrapper_func): Update signature.
70622         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
70624 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
70625             Bruno Haible  <bruno@clisp.org>
70627         Provide a Win32 implementation of the 'cond' module.
70628         * lib/glthread/cond.h [USE_WIN32]: New implementation.
70629         * lib/glthread/cond.c (glthread_cond_init_func,
70630         glthread_cond_wait_func, glthread_cond_timedwait_func,
70631         glthread_cond_signal_func, glthread_cond_broadcast_func,
70632         glthread_cond_destroy_func) [USE_WIN32]: New functions.
70633         * modules/cond (Dependencies): Add gettimeofday.
70635 2008-10-11  Bruno Haible  <bruno@clisp.org>
70637         Make sleep work on older versions of mingw.
70638         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
70639         only whether it exists.
70640         * doc/posix-functions/sleep.texi: Mention the problem with older
70641         versions of mingw.
70643 2008-10-11  Bruno Haible  <bruno@clisp.org>
70645         New module 'shutdown'.
70646         * modules/shutdown: New file.
70647         * lib/sys_socket.in.h (shutdown): New declaration.
70648         * lib/winsock.c (shutdown): New function.
70649         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
70650         GNULIB_SHUTDOWN.
70651         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
70652         * doc/posix-functions/shutdown.texi: Document the new module.
70654 2008-10-11  Jim Meyering  <meyering@redhat.com>
70656         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
70658 2008-10-11  Bruno Haible  <bruno@clisp.org>
70660         New module 'fclose'.
70661         * modules/fclose: New file.
70662         * lib/stdio.in.h (fclose): New declaration.
70663         * lib/fclose.c: New file.
70664         * m4/fclose.m4: New file.
70665         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
70666         REPLACE_FCLOSE.
70667         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
70668         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
70669         REPLACE_FCLOSE.
70670         * modules/close (Depends-on): fclose.
70671         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
70673 2008-10-11  Bruno Haible  <bruno@clisp.org>
70675         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
70676         set errno and don't call _close.
70678 2008-10-10  Bruno Haible  <bruno@clisp.org>
70680         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
70681         ACL, not afterwards. Fixes test failure on Cygwin.
70683 2008-10-09  Ben Pfaff  <blp@gnu.org>
70685         * build-aux/announce-gen: Fix gnulib version related part of usage
70686         message.  Die with a useful error message if no tarballs are
70687         found.
70689 2008-10-10  Jim Meyering  <meyering@redhat.com>
70691         bootstrap: use git's --depth=N option only if it's supported
70692         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
70693         recognize the --depth option.  Reported by Pádraig Brady.
70695 2008-10-09  Bruno Haible  <bruno@clisp.org>
70697         New module 'ioctl'.
70698         * modules/ioctl: New file.
70699         * lib/sys_socket.in.h (ioctl): Remove declaration.
70700         * lib/winsock.c: Include <sys/ioctl.h>.
70701         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
70702         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
70703         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
70704         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
70705         * doc/posix-functions/ioctl.texi: Mention the new module.
70707 2008-10-09  Bruno Haible  <bruno@clisp.org>
70709         New module 'sys_ioctl'.
70710         * lib/sys_ioctl.in.h: New file.
70711         * m4/sys_ioctl_h.m4: New file.
70712         * modules/sys_ioctl: New file.
70713         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
70715 2008-10-09  Bruno Haible  <bruno@clisp.org>
70717         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
70718         * lib/winsock.c: Include <stdarg.h>.
70719         (rpl_ioctl): Change to second argument 'int' and then varargs.
70721 2008-10-09  Bruno Haible  <bruno@clisp.org>
70723         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
70724         when the sys_socket module is present and the system has <winsock2.h>.
70726 2008-10-09  Bruno Haible  <bruno@clisp.org>
70728         * doc/posix-functions/close.texi: Mention module 'close' instead of
70729         module 'sys_socket'.
70731 2008-10-09  Bruno Haible  <bruno@clisp.org>
70733         * doc/glibc-headers/sys_ioctl.texi: New file.
70734         * doc/gnulib.texi: Include it.
70736 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
70737             Bruno Haible  <bruno@clisp.org>
70739         Combine the two replacements of 'close'.
70740         * lib/sys_socket.in.h (close): Define to a reminder to include
70741         <unistd.h>.
70742         (_gl_close_fd_maybe_socket): New declaration.
70743         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
70744         * lib/winsock.c (close): Remove undefinition.
70745         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
70746         needed for the gnulib module 'close'.
70747         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
70748         define to an error symbol or to a warning, if suitable.
70749         * lib/close.c: Include <sys/socket.h>.
70750         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
70751         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
70752         UNISTD_H_HAVE_WINSOCK2_H.
70753         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
70754         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
70755         UNISTD_H_HAVE_WINSOCK2_H.
70756         * modules/sys_socket (Files): Add m4/unistd_h.m4.
70757         (configure.ac): Set a module indicator.
70758         (Makefile.am): Substitute GNULIB_CLOSE.
70759         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
70760         * modules/poll-tests (Depends-on): Add close.
70761         * modules/select-tests (Depends-on): Likewise.
70763 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
70764             Bruno Haible  <bruno@clisp.org>
70766         New module 'close'.
70767         * modules/close: New file.
70768         * lib/unistd.in.h (close): Move declaration out of the
70769         FCHDIR_REPLACEMENT scope.
70770         (_gl_unregister_fd): New declaration.
70771         * lib/close.c: New file.
70772         * lib/fchdir.c (rpl_close): Remove function.
70773         * m4/close.m4: New file.
70774         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
70775         close.
70776         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
70777         REPLACE_CLOSE.
70778         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
70779         REPLACE_CLOSE.
70780         * modules/fchdir (Depends-on): Add close.
70782 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
70783             Bruno Haible  <bruno@clisp.org>
70785         * lib/fcntl.in.h (open): Simplify conditionals.
70786         (_gl_register_fd): New declaration.
70787         * lib/fchdir.c (rpl_open): Remove function.
70788         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
70789         also.
70790         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
70791         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
70792         open.
70794 2008-10-09  Jim Meyering  <meyering@redhat.com>
70796         GNUmakefile: use the more name-space-friendly "_version"
70797         * top/GNUmakefile (_dummy): Update.
70798         (_version): Rename from "version".
70800 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
70801             Bruno Haible  <bruno@clisp.org>
70803         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
70804         rpl_close.
70805         (_gl_register_fd): New function, extracted from rpl_open.
70806         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
70807         (rpl_open, rpl_opendir): Use _gl_register_fd.
70809 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
70811         Fix organization of 'open' replacement.
70812         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
70813         (gl_FUNC_OPEN): Use it.
70814         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
70816 2008-10-08  Bruno Haible  <bruno@clisp.org>
70818         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
70820 2008-10-08  Simon Josefsson  <simon@josefsson.org>
70822         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
70823         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
70824         listen).
70826 2008-10-08  Eric Blake  <ebb9@byu.net>
70828         GNUmakefile: add 'make version' target
70829         * top/GNUmakefile (_curr-ver): Split version update rules...
70830         (version): ...into a target.
70832 2008-10-07  Bruno Haible  <bruno@clisp.org>
70834         Use a more portable replacement expression for -0.0L.
70835         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
70836         instead of -0.0L. Fix m4 quotation.
70838         * tests/test-signbit.c: Include <float.h>.
70839         (minus_zero): New variable.
70840         (test_signbitl): Use minus_zero instead of -zero.
70841         * modules/signbit-tests (Depends-on): Add float.
70843         * tests/test-ceill.c: Include <float.h>.
70844         (zero): Remove variable.
70845         (minus_zero): New variable.
70846         (main): Use minus_zero instead of -zero.
70847         * modules/ceill-tests (Depends-on): Add float.
70849         * tests/test-floorl.c: Include <float.h>.
70850         (zero): Remove variable.
70851         (minus_zero): New variable.
70852         (main): Use minus_zero instead of -zero.
70853         * modules/floorl-tests (Depends-on): Add float.
70855         * tests/test-roundl.c: Include <float.h>.
70856         (zero): Remove variable.
70857         (minus_zero): New variable.
70858         (main): Use minus_zero instead of -zero.
70859         * modules/roundl-tests (Depends-on): Add float.
70861         * tests/test-truncl.c: Include <float.h>.
70862         (zero): Remove variable.
70863         (minus_zero): New variable.
70864         (main): Use minus_zero instead of -zero.
70865         * modules/truncl-tests (Depends-on): Add float.
70867         * tests/test-frexpl.c (zero): Remove variable.
70868         (minus_zero): New variable.
70869         (main): Use minus_zero instead of -zero.
70870         * modules/frexpl-tests (Depends-on): Add float.
70872         * tests/test-isnan.c (zerol): Remove variable.
70873         (minus_zerol): New variable.
70874         (test_long_double): Use minus_zerol instead of -zerol.
70875         * modules/isnan-tests (Depends-on): Add float.
70877         * tests/test-isnanl.h (zero): Remove variable.
70878         (minus_zero): New variable.
70879         (main): Use minus_zero instead of -zero.
70880         * modules/isnanl-nolibm-tests (Depends-on): Add float.
70881         * modules/isnanl-tests (Depends-on): Add float.
70883         * tests/test-ldexpl.c (zero): Remove variable.
70884         (minus_zero): New variable.
70885         (main): Use minus_zero instead of -zero.
70886         * modules/ldexpl-tests (Depends-on): Add float.
70888         * tests/test-snprintf-posix.h (zerol): Remove variable.
70889         (minus_zerol): New variable.
70890         (test_function): Use minus_zerol instead of -zerol.
70891         * modules/snprintf-posix-tests (Depends-on): Add float.
70892         * modules/vsnprintf-posix-tests (Depends-on): Add float.
70894         * tests/test-sprintf-posix.h (zerol): Remove variable.
70895         (minus_zerol): New variable.
70896         (test_function): Use minus_zerol instead of -zerol.
70897         * modules/sprintf-posix-tests (Depends-on): Add float.
70898         * modules/vsprintf-posix-tests (Depends-on): Add float.
70900         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
70901         (minus_zerol): New variable.
70902         (test_function): Use minus_zerol instead of -zerol.
70903         * modules/vasnprintf-posix-tests (Depends-on): Add float.
70905         * tests/test-vasprintf-posix.c (zerol): Remove variable.
70906         (minus_zerol): New variable.
70907         (test_function): Use minus_zerol instead of -zerol.
70908         * modules/vasprintf-posix-tests (Depends-on): Add float.
70910 2008-10-07  Simon Josefsson  <simon@josefsson.org>
70912         * MODULES.html.sh (Support for building documentation): Mention
70913         pmccabe2html.  Sort entries.
70915         Add pmccabe2html module, from gnupdf.
70916         * build-aux/pmccabe.css: New file.
70917         * build-aux/pmccabe2html: New file.
70918         * m4/pmccabe2html.m4: New file.
70919         * modules/pmccabe2html: New file.
70921 2008-10-07  Richard W.M. Jones  <rjones@redhat.com>
70923         flock: new module
70924         * MODULES.html.sh: Add to list of modules.
70925         * lib/flock.c: flock implementation for Windows and Unix systems
70926         which have fcntl.
70927         * doc/glibc-functions/flock.texi: Update documentation.
70928         * lib/sys_file.in.h: <sys/file.h> header file.
70929         * m4/flock.m4: M4 macros.
70930         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
70931         * modules/flock: flock module.
70932         * modules/flock-tests: flock tests module.
70933         * modules/sys_file: sys/file.h module.
70934         * tests/test-flock.c: test suite for flock.
70936 2008-10-06  Jim Meyering  <meyering@redhat.com>
70938         bootstrap: check for LT_INIT more portably still ;-)
70939         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
70940         Spotted by Bruno Haible.
70942 2008-10-06  Eric Blake  <ebb9@byu.net>
70944         test-signbit: avoid tripping Irix cc bug on -0.0L
70945         * tests/test-signbit.c (minus_zerol): Delete, and replace with
70946         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
70947         entire testsuite consistent and avoids an Irix 6.2 bug.
70949 2008-10-05  Bruno Haible  <bruno@clisp.org>
70950             Jim Meyering  <jim@meyering.net>
70952         Add an option for ignoring EPIPE during close_stdout.
70953         * lib/closeout.h: Include <stdbool.h>.
70954         (close_stdout_set_ignore_EPIPE): New declaration.
70955         * lib/closeout.c: Include <stdbool.h>.
70956         (ignore_EPIPE): New variable.
70957         (close_stdout_set_ignore_EPIPE): New function.
70958         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
70959         * lib/close-stream.c (close_stream): Mention the possible EPIPE
70960         failure.
70961         * modules/closeout (Depends-on): Add stdbool.
70963 2008-10-05  Bruno Haible  <bruno@clisp.org>
70965         * modules/accept: New file.
70966         * modules/bind: New file.
70967         * modules/connect: New file.
70968         * modules/getpeername: New file.
70969         * modules/getsockname: New file.
70970         * modules/getsockopt: New file.
70971         * modules/listen: New file.
70972         * modules/recv: New file.
70973         * modules/recvfrom: New file.
70974         * modules/send: New file.
70975         * modules/sendto: New file.
70976         * modules/setsockopt: New file.
70977         * modules/socket: New file.
70978         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
70979         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
70980         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
70981         the particular module is requested. Add a link warning when the
70982         particular module is not requested.
70983         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
70984         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
70985         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
70986         the particular module is requested.
70987         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
70988         gl_SYS_SOCKET_H_DEFAULTS): New macros.
70989         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
70990         * modules/sys_socket (Depends-on): Add link-warning.
70991         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
70992         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
70993         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
70994         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
70995         GL_LINK_WARNING.
70996         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
70997         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
70998         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
70999         * doc/posix-functions/getpeername.texi: Mention the new module
71000         'getpeername'.
71001         * doc/posix-functions/getsockname.texi: Mention the new module
71002         'getsockname'.
71003         * doc/posix-functions/getsockopt.texi: Mention the new module
71004         'getsockopt'.
71005         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
71006         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
71007         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
71008         * doc/posix-functions/send.texi: Mention the new module 'send'.
71009         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
71010         * doc/posix-functions/setsockopt.texi: Mention the new module
71011         'setsockopt'.
71012         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
71013         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
71014         listen, connect, accept.
71015         * modules/select-tests (Depends-on): Likewise.
71017 2008-10-05  Bruno Haible  <bruno@clisp.org>
71019         * lib/winsock.c (strerror): Remove unused #undef.
71020         (rpl_close): Remove unused local variable.
71022         * modules/sys_socket (Depends-on); Add errno.
71024 2008-10-05  Bruno Haible  <bruno@clisp.org>
71026         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
71027         (select): Add a link warning when the 'select' module is not used.
71028         * modules/sys_select (Depends-on): Add link-warning.
71029         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
71030         Suggested by Paolo Bonzini.
71032 2008-10-05  Jim Meyering  <meyering@redhat.com>
71034         bootstrap: check for LT_INIT more portably
71035         * build-aux/bootstrap: Avoid using grep -E, since it's not
71036         portable enough.  Suggestion from Bruno Haible.
71038 2008-10-05  Bruno Haible  <bruno@clisp.org>
71040         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
71041         as being fixed by gnulib.
71043 2008-10-05  Bruno Haible  <bruno@clisp.org>
71045         * modules/select-tests: New file, mostly copied from
71046         modules/sys_select-tests.
71047         * tests/test-select.c: New file, mostly copied from
71048         tests/test-sys_select.c.
71049         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
71050         * modules/sys_select-tests (Depends-on): Remove all dependencies.
71051         (Makefile.am): Remove test_sys_select_LDADD.
71053         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
71054         to an undefined symbol, for an error message.
71055         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
71056         (gl_SYS_SELECT_H_DEFAULTS): New macro.
71057         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
71058         winsock-select.c here.
71059         * modules/sys_select (Files): Remove lib/winsock-select.c.
71060         (Depends-on): Remove alloca.
71061         (Makefile.am): Substitute GNULIB_SELECT.
71062         * modules/select: New file.
71063         * doc/posix-functions/select.texi: Update.
71065 2008-10-05  Bruno Haible  <bruno@clisp.org>
71067         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
71068         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
71069         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
71070         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
71071         getdtablesize.
71072         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
71073         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
71075 2008-10-05  Bruno Haible  <bruno@clisp.org>
71077         * modules/getdtablesize-tests: New file.
71078         * tests/test-getdtablesize.c: New file.
71080         New module 'getdtablesize'.
71081         * lib/unistd.in.h (getdtablesize): New declaration.
71082         * lib/getdtablesize.c: New file.
71083         * m4/getdtablesize.m4: New file.
71084         * modules/getdtablesize: New file.
71085         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
71086         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
71087         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
71088         HAVE_GETDTABLESIZE.
71089         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
71091 2008-10-05  Bruno Haible  <bruno@clisp.org>
71093         * modules/sched (Makefile.am): Fix typo.
71094         Reported by Simon Josefsson.
71096 2008-10-05  Jim Meyering  <meyering@redhat.com>
71098         bootstrap: check for LT_INIT, too
71099         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
71100         are deprecated.  Suggestion from Ralf Wildenhues.
71102 2008-10-05  Bruno Haible  <bruno@clisp.org>
71104         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
71105         overriding them by ours.
71106         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
71108 2008-10-05  Jim Meyering  <meyering@redhat.com>
71110         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
71111         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
71112         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
71114 2008-10-04  Bruno Haible  <bruno@clisp.org>
71116         * modules/dup2 (License): Change to LGPLv2+.
71117         * modules/sleep (License): Likewise.
71118         * modules/perror (License): Likewise.
71119         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
71120         Blake.
71121         * modules/signal (License): Likewise.
71122         * modules/sigprocmask (License): Likewise.
71123         * modules/raise (License): Change to LGPLv2+, with approval by Jim
71124         Meyering.
71126 2008-10-04  Bruno Haible  <bruno@clisp.org>
71128         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
71129         Reported by Rainer Tammer <tammer@tammer.net>.
71131 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
71132             Bruno Haible  <bruno@clisp.org>
71134         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
71135         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
71136         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
71138 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
71140         filevercmp: new module
71141         * lib/filevercmp.h: New function filevercmp comparing version strings.
71142         * lib/filevercmp.c: Implementation of filevercmp function.
71143         * modules/filevercmp: Module metadata.
71144         * tests/test-filevercmp.c: Unit test for new module.
71145         * modules/filevercmp-tests: Unit test metadata.
71146         * MODULES.html.sh: Add filevercmp module.
71148 2008-10-03  Bruno Haible  <bruno@clisp.org>
71150         * lib/c-ctype.h: Add comment.
71151         Reported by Jim Meyering.
71153 2008-10-02  Bruno Haible  <bruno@clisp.org>
71155         * modules/posix_spawn-internal (Depends-on): Add 'open'.
71157 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
71159         * build-aux/bootstrap: Allow renaming bootstrap, and change the
71160         name of bootstrap.conf accordingly.
71162 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
71164         * build-aux/bootstrap: Install git-merge-changelog configuration
71165         items into .gitconfig if needed.
71167 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
71169         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
71170         git repository, and initialize/update it accordingly.
71172 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
71174         * modules/fsync-tests: New file.
71175         * tests/test-fsync.c: New file.
71177         New module 'fsync'.
71178         * lib/fsync.c: New file.
71179         * m4/fsync.m4: New file.
71180         * modules/fsync: New file.
71181         * lib/unistd.in.h (fsync): New declaration.
71182         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
71183         GNULIB_FSYNC and HAVE_FSYNC.
71184         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
71185         * MODULES.html.sh (posix_functions): Add fsync.
71186         * doc/posix-functions/fsync.texi: Mention the new module.
71188 2008-10-02  Jim Meyering  <meyering@redhat.com>
71190         fts.c: sync with similar code from coreutils' remove.c
71191         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
71192         Guard also with "#if defined __linux__", since for now at least,
71193         this code is Linux-kernel-specific.
71195 2008-10-02  Jim Meyering  <meyering@redhat.com>
71197         fts: bug fixes
71198         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
71199         Include <sys/vfs.h>, not <sys/statfs.h>.
71201         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
71202         Include <sys/vfs.h>, not <sys/statfs.h>.
71204 2008-10-01  Bruno Haible  <bruno@clisp.org>
71206         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
71207         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
71208         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
71209         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
71210         * doc/posix-functions/posix_spawnp.texi: Likewise.
71211         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
71212         whether posix_spawn actually works.
71213         * m4/pipe.m4 (gl_PIPE): Likewise.
71214         * modules/execute (Files): Add m4/posix_spawn.m4.
71215         * modules/pipe (Files): Add m4/posix_spawn.m4.
71216         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
71218 2008-10-01  Jim Meyering  <meyering@redhat.com>
71220         remove trailing spaces
71221         * NEWS: Likewise.
71222         * lib/poll.c (poll): Likewise.
71223         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
71224         * lib/winsock.c (rpl_close): Likewise.
71225         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
71226         * modules/yield: Likewise.
71227         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
71228         * tests/test-sys_select.c (connect_to_socket): Likewise.
71230         fts.c: adjust a new interface to be more generally useful
71231         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
71232         (fts_build): Adjust caller.
71234 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
71236         * modules/cond-tests: New file.
71237         * tests/test-cond.c: New file.
71239 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
71240             Bruno Haible  <bruno@clisp.org>
71242         * modules/cond (Dependencies): Add errno, time.
71243         * lib/glthread/cond.h: Include <time.h>.
71244         (gl_cond_define, gl_cond_define_initialized): Use the same definition
71245         across platforms.
71247 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
71248             Bruno Haible  <bruno@clisp.org>
71250         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
71252 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
71253             Bruno Haible  <bruno@clisp.org>
71255         * modules/tls-tests (Depends-on): Add thread, yield.
71256         (configure.ac): Remove all checks.
71257         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
71258         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
71259         gl_thread_self): Remove definitions. Include glthread/thread.h and
71260         glthread/yield.h instead.
71261         (test_tls): Pass an additional NULL argument to gl_thread_join.
71263 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
71264             Bruno Haible  <bruno@clisp.org>
71266         * modules/lock-tests (Depends-on): Add thread, yield.
71267         (configure.ac): Remove all checks.
71268         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
71269         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
71270         gl_thread_self): Remove definitions. Include glthread/thread.h and
71271         glthread/yield.h instead.
71272         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
71273         additional NULL argument to gl_thread_join.
71275 2008-09-30  Bruno Haible  <bruno@clisp.org>
71277         Fix the Win32 implementation of the 'thread' module.
71278         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
71279         pointer type.
71280         (gl_thread_self): Invoke gl_thread_self_func.
71281         (gl_thread_self_func): New declaration.
71282         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
71283         (do_init_self_key, init_self_key): New functions.
71284         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
71285         Remove some fields.
71286         (running_threads, running_lock): Remove variables.
71287         (get_current_thread_handle): New function.
71288         (gl_thread_self_func, wrapper_func, glthread_create_func,
71289         glthread_join_func, gl_thread_exit_func): Largely rewritten and
71290         simplified.
71292 2008-09-30  Bruno Haible  <bruno@clisp.org>
71294         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
71295         files.
71297 2008-09-30  Jim Meyering  <meyering@redhat.com>
71299         fts.m4: correct the test for statfs.f_type
71300         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
71301         when checking for statfs.f_type.
71303 2008-09-15  Simon Josefsson  <simon@josefsson.org>
71305         tests: avoid some compiler warnings
71306         * tests/test-memchr.c (main): Pass NULL indirectly.
71307         * tests/test-getdate.c (main): Remove unused variable 'ret'.
71309 2008-09-29  Ondřej Vašík  <ovasik@redhat.com>
71311         getdate.y: disallow countable dayshifts like "4 yesterday ago"
71312         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
71313         exactly specified dayshifts.
71314         (dayshift): New rule.
71315         (rel): Add dayshift.
71316         (relative_time_table) [tomorrow, yesterday, today, now]:
71317         Use tDAY_SHIFT in place of tDAY_UNIT.
71318         * tests/test-getdate.c: Add tests for now-disallowed countable
71319         dayshifts, e.g., "4 yesterday ago".
71321 2008-09-29  Bruno Haible  <bruno@clisp.org>
71323         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
71324         * tests/test-posix_spawn1.in.sh: Renamed from
71325         tests/test-posix_spawn.in.sh.
71326         * tests/test-posix_spawn2.c: New file.
71327         * tests/test-posix_spawn2.in.sh: New file.
71328         * modules/posix_spawnp-tests (Files): Update.
71329         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
71331 2008-09-29  Bruno Haible  <bruno@clisp.org>
71333         Propagate effects of putenv/setenv/unsetenv to child processes.
71334         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
71335         * lib/pipe.c (create_pipe): Likewise.
71337 2008-09-29  Bruno Haible  <bruno@clisp.org>
71339         Enable use of shell scripts as executables in mingw.
71340         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
71341         run the program as a shell script.
71342         * lib/pipe.c (create_pipe): Likewise.
71343         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
71344         resulting array.
71346 2008-09-29  Eric Blake  <ebb9@byu.net>
71348         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
71350 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
71352         * doc/posix-functions/accept.texi: Update mingw problems.
71353         * doc/posix-functions/bind.texi: Update mingw problems.
71354         * doc/posix-functions/close.texi: Update mingw problems.
71355         * doc/posix-functions/connect.texi: Update mingw problems.
71356         * doc/posix-functions/getpeername.texi: Update mingw problems.
71357         * doc/posix-functions/getsockname.texi: Update mingw problems.
71358         * doc/posix-functions/getsockopt.texi: Update mingw problems.
71359         * doc/posix-functions/ioctl.texi: Update mingw problems.
71360         * doc/posix-functions/listen.texi: Update mingw problems.
71361         * doc/posix-functions/recv.texi: Update mingw problems.
71362         * doc/posix-functions/recvfrom.texi: Update mingw problems.
71363         * doc/posix-functions/select.texi: Update mingw problems.
71364         * doc/posix-functions/send.texi: Update mingw problems.
71365         * doc/posix-functions/sendto.texi: Update mingw problems.
71366         * doc/posix-functions/setsockopt.texi: Update mingw problems.
71367         * doc/posix-functions/socket.texi: Update mingw problems.
71369 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
71370             Bruno Haible  <bruno@clisp.org>
71372         * lib/sys_select.in.h: Include sys/time.h.
71373         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
71374         * modules/sys_select: Depend on sys_time.
71375         * tests/test-sys_select.c: Test that sys/select.h defines struct
71376         timeval fully.
71378 2008-09-29  Bruno Haible  <bruno@clisp.org>
71380         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
71381         * lib/sys_select.in.h: Likewise.
71383 2008-09-29  Bruno Haible  <bruno@clisp.org>
71385         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
71387 2008-09-29  Bruno Haible  <bruno@clisp.org>
71389         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
71390         Set LIBSOCKET instead of augmenting LIBS.
71391         * modules/sockets (Link): New section.
71392         * modules/sockets-tests (test_sockets_LDADD): New variable.
71393         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
71394         * modules/poll-tests (test_poll_LDADD): New variable.
71395         * NEWS: Document the change.
71397 2008-09-29  Bruno Haible  <bruno@clisp.org>
71399         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
71400         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
71401         ARPA_INET_H directly.
71402         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
71404 2008-09-28  Bruno Haible  <bruno@clisp.org>
71406         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
71407         from gl_HEADER_SYS_SOCKET.
71408         (gl_HEADER_SYS_SOCKET): Invoke it.
71409         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
71411 2008-09-28  Bruno Haible  <bruno@clisp.org>
71413         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
71414         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
71415         Needed on OSF/1 4.0.
71417 2008-09-28  Bruno Haible  <bruno@clisp.org>
71419         Override open more carefully.
71420         * lib/open.c (orig_open): New function.
71421         (rpl_open): Use orig_open instead of open.
71422         * lib/fcntl.in.h: Add special invocation convention.
71423         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
71424         (gl_FUNC_OPEN): Invoke it.
71426         Override freopen more carefully.
71427         * lib/freopen.c (orig_freopen): New function.
71428         (rpl_freopen): Use orig_freopen instead of freopen.
71429         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
71430         (gl_FUNC_FREOPEN): Invoke it.
71432         Override fopen more carefully.
71433         * lib/fopen.c (orig_fopen): New function.
71434         (rpl_fopen): Use orig_fopen instead of fopen.
71435         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
71436         (gl_FUNC_FOPEN): Invoke it.
71437         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
71439 2008-09-28  Bruno Haible  <bruno@clisp.org>
71441         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
71442         SIGPIPE.
71444 2008-09-28  Bruno Haible  <bruno@clisp.org>
71446         * tests/test-sigaction.c (handler, main): Disable the check whether
71447         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
71448         glibc systems with LinuxThreads.
71450 2008-09-28  Bruno Haible  <bruno@clisp.org>
71452         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
71454         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
71455         with AIX xlc.
71456         * lib/fcntl.in.h (open): Likewise.
71457         Reported by Rainer Tammer <tammer@tammer.net>.
71459 2008-09-28  Bruno Haible  <bruno@clisp.org>
71461         * modules/posix_spawnp-tests: New file.
71462         * tests/test-posix_spawn.c: New file.
71463         * tests/test-posix_spawn.in.sh: New file.
71465         New module 'posix_spawnp'.
71466         * modules/posix_spawnp: New file.
71467         * lib/spawnp.c: New file, from GNU libc with modifications.
71468         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
71470         New module 'posix_spawn'.
71471         * modules/posix_spawn: New file.
71472         * lib/spawn.c: New file, from GNU libc with modifications.
71473         * doc/posix-functions/posix_spawn.texi: Mention the new module.
71475         New module 'posix_spawnattr_destroy'.
71476         * modules/posix_spawnattr_destroy: New file.
71477         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
71478         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
71479         module.
71481         New module 'posix_spawnattr_setsigmask'.
71482         * modules/posix_spawnattr_setsigmask: New file.
71483         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
71484         modifications.
71485         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
71486         new module.
71488         New module 'posix_spawnattr_getsigmask'.
71489         * modules/posix_spawnattr_getsigmask: New file.
71490         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
71491         modifications.
71492         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
71493         new module.
71495         New module 'posix_spawnattr_setsigdefault'.
71496         * modules/posix_spawnattr_setsigdefault: New file.
71497         * lib/spawnattr_setdefault.c: New file, from GNU libc with
71498         modifications.
71499         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
71500         new module.
71502         New module 'posix_spawnattr_getsigdefault'.
71503         * modules/posix_spawnattr_getsigdefault: New file.
71504         * lib/spawnattr_getdefault.c: New file, from GNU libc with
71505         modifications.
71506         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
71507         new module.
71509         New module 'posix_spawnattr_setschedpolicy'.
71510         * modules/posix_spawnattr_setschedpolicy: New file.
71511         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
71512         modifications.
71513         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
71514         new module.
71516         New module 'posix_spawnattr_getschedpolicy'.
71517         * modules/posix_spawnattr_getschedpolicy: New file.
71518         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
71519         modifications.
71520         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
71521         new module.
71523         New module 'posix_spawnattr_setschedparam'.
71524         * modules/posix_spawnattr_setschedparam: New file.
71525         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
71526         modifications.
71527         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
71528         new module.
71530         New module 'posix_spawnattr_getschedparam'.
71531         * modules/posix_spawnattr_getschedparam: New file.
71532         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
71533         modifications.
71534         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
71535         new module.
71537         New module 'posix_spawnattr_setpgroup'.
71538         * modules/posix_spawnattr_setpgroup: New file.
71539         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
71540         modifications.
71541         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
71542         module.
71544         New module 'posix_spawnattr_getpgroup'.
71545         * modules/posix_spawnattr_getpgroup: New file.
71546         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
71547         modifications.
71548         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
71549         module.
71551         New module 'posix_spawnattr_setflags'.
71552         * modules/posix_spawnattr_setflags: New file.
71553         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
71554         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
71555         module.
71557         New module 'posix_spawnattr_getflags'.
71558         * modules/posix_spawnattr_getflags: New file.
71559         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
71560         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
71561         module.
71563         New module 'posix_spawnattr_init'.
71564         * modules/posix_spawnattr_init: New file.
71565         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
71566         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
71567         module.
71569         New module 'posix_spawn_file_actions_destroy'.
71570         * modules/posix_spawn_file_actions_destroy: New file.
71571         * lib/spawn_faction_destroy.c: New file, from GNU libc with
71572         modifications.
71573         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
71574         the new module.
71576         New module 'posix_spawn_file_actions_addopen'.
71577         * modules/posix_spawn_file_actions_addopen: New file.
71578         * lib/spawn_faction_addopen.c: New file, from GNU libc with
71579         modifications.
71580         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
71581         the new module.
71583         New module 'posix_spawn_file_actions_adddup2'.
71584         * modules/posix_spawn_file_actions_adddup2: New file.
71585         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
71586         modifications.
71587         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
71588         the new module.
71590         New module 'posix_spawn_file_actions_addclose'.
71591         * modules/posix_spawn_file_actions_addclose: New file.
71592         * lib/spawn_faction_addclose.c: New file, from GNU libc with
71593         modifications.
71594         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
71595         the new module.
71597         New module 'posix_spawn_file_actions_init'.
71598         * modules/posix_spawn_file_actions_init: New file.
71599         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
71600         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
71601         new module.
71603         New module 'posix_spawn-internal'.
71604         * modules/posix_spawn-internal: New file.
71605         * lib/spawn_int.h: New file, from GNU libc with modifications.
71606         * lib/spawni.c: New file, from GNU libc with modifications.
71607         * m4/posix_spawn.m4: New file.
71609         New module 'spawn'.
71610         * modules/spawn: New file.
71611         * lib/spawn.in.h: New file, from GNU libc with modifications.
71612         * m4/spawn_h.m4: New file.
71613         * doc/posix-headers/spawn.texi: Mention the new module.
71615 2008-09-28  Bruno Haible  <bruno@clisp.org>
71617         * modules/sched-tests: New file.
71618         * tests/test-sched.c: New file.
71620         New module 'sched'.
71621         * modules/sched: New file.
71622         * lib/sched.in.h: New file.
71623         * m4/sched_h.m4: New file.
71624         * doc/posix-headers/sched.texi: Mention the new module.
71626 2008-09-27  Eric Blake  <ebb9@byu.net>
71628         Fix previous patch, and tweak references to $0.
71629         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
71630         (func_version, func_gnulib_dir): Don't call this program
71631         gnulib-tool.
71632         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
71633         with using $0 in function.
71634         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
71635         (func_fatal_error): Reuse the name the user invoked us with.
71637 2008-09-27  Bruno Haible  <bruno@clisp.org>
71639         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
71640         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
71641         (gl_ICONV_H): Not here.
71642         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
71643         instead of assigning ICONV_H directly.
71645         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
71646         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
71647         WCHAR_H directly.
71649 2008-09-27  Bruno Haible  <bruno@clisp.org>
71651         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
71652         * modules/arpa_inet (Depends-on): Add link-warning.
71653         (Makefile.am): Insert the definition of GL_LINK-WARNING.
71654         * modules/unistd (Makefile.am): Likewise.
71656 2008-09-26  Bruno Haible  <bruno@clisp.org>
71658         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
71659         variables.
71660         (func_version): Essentially copied from gnulib-tool.
71661         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
71662         func_readlink): Copied from gnulib-tool.
71664 2008-09-26  Bruno Haible  <bruno@clisp.org>
71666         * gnulib-tool (func_version): Change directory to $gnulib_dir before
71667         invoking git-version-gen.
71669 2008-09-26  Bruno Haible  <bruno@clisp.org>
71671         * posix-modules: Update to directory names changed on 2008-01-19.
71672         Remove commas in output before splitting into words. No more need to
71673         avoid 'ftruncate' since 2007-02-19.
71675 2008-09-26  Bruno Haible  <bruno@clisp.org>
71677         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
71679 2008-09-26  Bruno Haible  <bruno@clisp.org>
71681         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
71682         * modules/fwriteerror (Depends-on): Add errno.
71684 2008-09-26  Bruno Haible  <bruno@clisp.org>
71686         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
71687         * tests/test-vc-list-files-cvs.sh: Likewise.
71689 2008-09-26  Bruno Haible  <bruno@clisp.org>
71691         * doc/posix-headers/sys_resource.texi: Reorder items.
71693 2008-09-26  Jim Meyering  <meyering@redhat.com>
71695         fts: tweak inode comparison function
71696         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
71697         inode numbers, as documented.
71699         fts: sort dirent entries on inode number before traversing
71700         This avoids a quadratic, seek-related performance penalty when
71701         operating on a directory containing many entries (measurable at 10k;
71702         3.5 hours at 2 million entries with a cold cache) on certain types
71703         of file systems, including ext3 and ext4, but not tmpfs.
71704         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
71705         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
71706         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
71707         (fs_handles_readdir_ordered_dirents_efficiently): New function.
71708         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
71709         (fts_build): Set the stat.st_ino member from D_INO.
71710         If it is likely to be useful, sort dirent entries on inode number.
71712         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
71713         and the struct statfs.f_type member.
71714         * modules/fts (Depends-on): Add d-ino.
71716 2008-09-26  Bruno Haible  <bruno@clisp.org>
71718         * modules/sigpipe-die (Depends-on): Add sigpipe.
71720         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
71721         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
71722         and GNULIB_STDIO_H_SIGPIPE are set.
71723         * lib/stdio-write.c: New file.
71724         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
71725         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
71726         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
71727         REPLACE_STDIO_WRITE_FUNCS.
71728         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
71729         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
71730         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
71731         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
71732         * modules/stdio (Files): Add lib/stdio-write.c.
71733         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
71734         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
71735         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
71736         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
71737         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
71738         REPLACE_FPRINTF_POSIX.
71739         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
71740         REPLACE_PRINTF_POSIX.
71741         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
71742         REPLACE_VFPRINTF_POSIX.
71743         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
71744         REPLACE_VPRINTF_POSIX.
71745         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
71746         SIGPIPE issue.
71747         * doc/posix-functions/fputc.texi: Likewise.
71748         * doc/posix-functions/fputs.texi: Likewise.
71749         * doc/posix-functions/fwrite.texi: Likewise.
71750         * doc/posix-functions/printf.texi: Likewise.
71751         * doc/posix-functions/putc.texi: Likewise.
71752         * doc/posix-functions/putchar.texi: Likewise.
71753         * doc/posix-functions/puts.texi: Likewise.
71754         * doc/posix-functions/vfprintf.texi: Likewise.
71755         * doc/posix-functions/vprintf.texi: Likewise.
71757         * modules/safe-write (Depends-on): Add write.
71759         * modules/sigpipe-tests: New file.
71760         * tests/test-sigpipe.c: New file.
71761         * tests/test-sigpipe.sh: New file.
71763         * modules/write: New file.
71764         * lib/unistd.in.h: Include <sys/types.h>.
71765         (write): New declaration.
71766         * lib/write.c: New file.
71767         * m4/write.m4: New file.
71768         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
71769         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
71770         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
71771         GNULIB_WRITE, REPLACE_WRITE.
71772         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
71773         and the SIGPIPE issue.
71775         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
71776         (raise): New declaration.
71777         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
71778         (ext_signal): New function.
71779         (rpl_raise): New function.
71780         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
71781         GNULIB_SIGNAL_H_SIGPIPE.
71782         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
71783         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
71785         * modules/sigpipe: New file.
71786         * m4/sigpipe.m4: New file.
71788 2008-09-25  Derek Price  <derek@ximbiot.com>
71789             Bruno Haible  <bruno@clisp.org>
71791         * gnulib-tool (func_import): Report all license incompatibilities, not
71792         just the first one.
71794 2008-09-25  Bruno Haible  <bruno@clisp.org>
71796         * gnulib-tool (func_import): When computing the edits, consider not
71797         only the Makefile.ams that exist but also those that will be generated.
71799 2008-09-25  Simon Josefsson  <simon@josefsson.org>
71801         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
71802         fixes gnulib-tool --test warning about duplicate dependency.
71804 2008-09-25  Bruno Haible  <bruno@clisp.org>
71806         * gnulib-tool: Don't ask the user to perform edits in the generated
71807         Makefile.ams.
71808         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
71809         apply to the Makefile.am being generated.
71810         (func_emit_tests_Makefile_am): Execute edits that apply to the
71811         Makefile.am being generated.
71812         (func_import): Setup list of Makefile.am edits before emitting the
71813         Makefile.ams, not at the end.
71814         (func_create_testdir): Update.
71815         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
71817 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
71819         * gnulib-tool (func_import): Store the --tests-base option in the
71820         comment in gnulib-cache.m4.
71822 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
71824         * NEWS: Document increased portability that sys_select now provides.
71826         * lib/sys_select.in.h: Install select wrapper.
71827         * lib/sys_socket.in.h: Use more descriptive name when there is no
71828         select wrapper.
71829         * lib/winsock-select.c: New.
71830         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
71831         Require gl_HEADER_SYS_SOCKET.
71832         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
71833         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
71834         * tests/test-sys_select.c: Add functional tests.
71836 2008-09-24  Eric Blake  <ebb9@byu.net>
71838         open, fopen: close fd leak in last patch
71839         * lib/open.c (rpl_open): Close fd before returning error.
71840         * lib/fopen.c (rpl_fopen): Close fd before returning error.
71841         * doc/posix-functions/open.texi (open): Document that Irix also
71842         has the bug.
71843         * doc/posix-functions/fopen.texi (fopen): Likewise.
71844         Reported by Paolo Bonzini.
71846 2008-09-24  Bruno Haible  <bruno@clisp.org>
71848         Ensure that a filename ending in a slash cannot be used to access a
71849         non-directory.
71850         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
71851         to check whether it's really a directory.
71852         * lib/fopen.c: Include fcntl.h, unistd.h.
71853         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
71854         and fdopen().
71855         * modules/fopen (Depends-on): Add unistd.
71856         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
71857         * tests/test-fopen.c (main): Likewise.
71858         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
71859         * doc/posix-functions/fopen.texi: Likewise.
71860         Reported by Eric Blake.
71862 2008-09-23  Eric Blake  <ebb9@byu.net>
71864         c-stack: avoid compiler optimizations when provoking overflow
71865         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
71866         recursion harder to optimize, to ensure a stack overflow occurs.
71867         * tests/test-c-stack.c (recurse): Likewise.
71868         Borrowed from libsigsegv.
71870         c-stack: work around Irix sigaltstack bug
71871         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
71872         whether sigaltstack uses wrong end of stack_t (copied in part from
71873         libsigsegv).
71874         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
71875         Irix bug, without requiring an over-allocation.
71876         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
71877         bug.
71879         fopen: document mingw bug on directories
71880         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
71881         not allowing a stream visiting a directory, even though reading
71882         from such a stream is not portable.
71884 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
71886         * lib/poll.c: Rewrite.
71887         * modules/poll: Depend on alloca.
71889 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
71891         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
71892         instead define prototypes for a full set of wrappers.  Ensure
71893         that Cygwin does not use the compatibility code, which is only
71894         for MinGW.
71895         * lib/winsock.c: New.
71896         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
71897         * modules/sys_socket: Add lib/winsock.c.
71899         * modules/poll-tests: Add errno and perror.
71900         * tests/test-poll.c: Use ioctl, not ioctlsocket.
71902 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
71904         * tests/test-poll.c: Downgrade minimum needed Winsock version.
71906 2008-09-23  Bruno Haible  <bruno@clisp.org>
71908         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
71909         * doc/glibc-functions/*: Likewise.
71911 2008-09-23  Simon Josefsson  <simon@josefsson.org>
71913         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
71914         success.
71916 2008-09-22  Eric Blake  <ebb9@byu.net>
71917             Bruno Haible  <bruno@clisp.org>
71919         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
71920         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
71921         supply %A but mishandle pseudo-NaN.
71922         Reported by Simon Josefsson.
71924 2008-09-21  Bruno Haible  <bruno@clisp.org>
71926         * tests/test-lock.c (main): Tweak skip message.
71927         * tests/test-tls.c (main): Likewise.
71929 2008-09-21  Bruno Haible  <bruno@clisp.org>
71931         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
71932         whether 'struct sigaction' has sa_sigaction here...
71933         (gl_PREREQ_SIG_HANDLER_H): ... not here.
71934         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
71936 2008-09-21  Bruno Haible  <bruno@clisp.org>
71938         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
71939         section.
71940         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
71941         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
71942         the new section.
71943         (Support for obsolete systems lacking POSIX:2001): New section.
71944         (String handling <string.h>): Move strdup to the new section.
71945         Suggested by Simon Josefsson and Paolo Bonzini.
71947 2008-09-21  Bruno Haible  <bruno@clisp.org>
71949         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
71950         exponents in %e and %g results on 'long double'. Needed for mingw's
71951         improved *printf functions.
71952         * tests/test-vasprintf-posix.c (test_function): Likewise.
71953         * tests/test-snprintf-posix.h (test_function): Likewise.
71954         * tests/test-sprintf-posix.h (test_function): Likewise.
71955         Reported by Eric Blake.
71957 2008-09-21  Bruno Haible  <bruno@clisp.org>
71959         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
71960         * tests/test-sprintf-posix.h (test_function): Likewise.
71962 2008-09-21  Bruno Haible  <bruno@clisp.org>
71964         * modules/getpass (Depends-on): Add strdup-posix.
71966         New module 'strdup-posix'.
71967         * modules/strdup-posix: New file.
71968         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
71969         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
71970         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
71971         REPLACE_STRDUP.
71972         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
71973         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
71974         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
71975         strdup-posix.
71977         * modules/strdup (Depends-on): Remove malloc-posix.
71979 2008-09-20  Bruno Haible  <bruno@clisp.org>
71981         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
71982         Wildenhues.
71984 2008-09-20  Bruno Haible  <bruno@clisp.org>
71986         Ensure that wint_t gets defined on IRIX 5.3.
71987         * lib/wchar.in.h (wint_t): Define if not defined by the system.
71988         * lib/wctype.in.h (wint_t): Likewise.
71989         (__wctype_wint_t): Remove type.
71990         (isw*): Use wint_t instead of __wctype_wint_t.
71991         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
71992         * modules/wchar (Files): Add m4/wint_t.m4.
71993         (Makefile.am): Substitute HAVE_WINT_T.
71994         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
71995         * tests/test-wctype.c: Check that wint_t is defined.
71996         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
71997         * doc/posix-headers/wctype.texi: Likewise.
71998         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
72000 2008-09-18  Bruno Haible  <bruno@clisp.org>
72002         * gnulib-tool (func_exit): Update comment.
72004 2008-09-18  Simon Josefsson  <simon@josefsson.org>
72006         * modules/getaddrinfo (Depends-on): Remove strdup, this module
72007         assumes strdup exists and does not depend on strdup to return
72008         ENOMEM on out of memory conditions.
72010 2008-09-18  Bruno Haible  <bruno@clisp.org>
72012         * lib/vasnprintf.c (VASNPRINTF): When printing ±0.0L in
72013         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
72014         digits for the exponent.
72016 2008-09-18  Jim Meyering  <meyering@redhat.com>
72017             Bruno Haible  <bruno@clisp.org>
72019         * lib/vasnprintf.c (decimal_point_char): Define also if
72020         NEED_PRINTF_INFINITE_LONG_DOUBLE.
72022 2008-09-16  Bruno Haible  <bruno@clisp.org>
72023         and Eric Blake  <ebb9@byu.net>
72025         vasnprintf: support Irix 5.3
72026         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
72027         that mishandle long double infinity.
72028         Reported by Tom G. Christensen.
72030 2008-09-16  Bruno Haible  <bruno@clisp.org>
72032         * doc/glibc-functions/scandir.texi: Mention the function is missing on
72033         Solaris 9.
72034         * doc/glibc-functions/alphasort.texi: Likewise.
72035         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
72037 2008-09-16  Jim Meyering  <meyering@redhat.com>
72039         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
72040         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
72041         a umask modification leak out of a subshell.  Otherwise, the
72042         opensolaris /bin/sh would be accepted and thus cause unwarranted
72043         failures in the coreutils test suite.
72045 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
72047         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
72048         to succeed.
72050 2008-09-16  Jim Meyering  <meyering@redhat.com>
72052         avoid spurious test failure when library is built without ACL support
72053         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
72054         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
72055         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
72056         * tests/test-copy-acl.sh: Likewise.
72058 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72060         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
72061         based on character occurrence counts.
72063 2008-09-15  Eric Blake  <ebb9@byu.net>
72065         tests: avoid some compiler warnings
72066         * tests/test-memchr.c (main): Pass NULL indirectly.
72067         * tests/test-closein.c (main): Avoid unused variable.
72069 2008-09-15  Bruno Haible  <bruno@clisp.org>
72071         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
72072         are missing on OpenBSD 4.0 individually.
72073         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
72075 2008-09-15  Bruno Haible  <bruno@clisp.org>
72077         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
72078         * doc/posix-functions/strerror.texi: Mention also Cygwin.
72079         * doc/posix-functions/perror.texi: Likewise.
72080         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
72081         is missing.
72082         Reported by Eric Blake.
72084         * lib/errno.in.h: Use replacement values >= 2000.
72085         Reported by Eric Blake.
72087 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72089         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
72090         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
72091         limit.
72092         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
72093         compareseq was aborted.
72095 2008-09-14  Bruno Haible  <bruno@clisp.org>
72097         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
72098         yvec_edit_count.
72099         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
72100         (fstrcmp_bounded): Simplify result computation accordingly.
72102 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72104         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
72105         (fstrcmp): Define in terms of fstrcmp_bounded.
72106         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
72107         lower_bound argument.
72108         Return quickly if the result is certainly < lower_bound.
72109         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
72111 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72113         * lib/diffseq.h (EARLY_ABORT): New macro.
72114         (compareseq): Change return type to bool. Return true when EARLY_ABORT
72115         evaluates to true.
72117 2008-09-14  Bruno Haible  <bruno@clisp.org>
72119         * modules/perror-tests: New file.
72120         * tests/test-perror.sh: New file.
72121         * tests/test-perror.c: New file.
72123         New module 'perror'.
72124         * lib/stdio.in.h (perror): New declaration.
72125         * lib/perror.c: New file.
72126         * m4/perror.m4: New file.
72127         * modules/perror: New file.
72128         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
72129         * doc/posix-functions/perror.texi: Mention the perror module.
72130         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
72131         REPLACE_PERROR.
72132         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
72133         REPLACE_PERROR.
72135 2008-09-14  Bruno Haible  <bruno@clisp.org>
72137         * modules/stdio (Makefile.am): Reorder to match the order in
72138         lib/stdio.in.h.
72139         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
72141 2008-09-13  Bruno Haible  <bruno@clisp.org>
72143         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
72145 2008-09-13  Bruno Haible  <bruno@clisp.org>
72147         Extend strerror to cover the added errno values.
72148         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
72149         (rpl_strerror): Provide error messages for the added errno values and
72150         for the WSA* values.
72151         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
72152         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
72153         strerror.
72154         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
72155         * modules/strerror (Depends-on): Add errno.
72156         * doc/posix-functions/strerror.texi: Document the change.
72157         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
72158         and EOVERFLOW.
72160 2008-09-13  Bruno Haible  <bruno@clisp.org>
72162         * modules/EOVERFLOW: Remove file.
72163         * m4/eoverflow.m4: Remove file.
72164         * modules/EOVERFLOW-tests: Remove file.
72165         * tests/test-EOVERFLOW.c: Remove file.
72166         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
72167         * modules/ftell (Depends-on): Likewise.
72168         * modules/getdelim (Depends-on): Likewise.
72169         * modules/getugroups (Depends-on): Likewise.
72170         * modules/poll (Depends-on): Likewise.
72171         * modules/snprintf (Depends-on): Likewise.
72172         * modules/sprintf-posix (Depends-on): Likewise.
72173         * modules/vasnprintf (Depends-on): Likewise.
72174         * modules/vasprintf (Depends-on): Likewise.
72175         * modules/vfprintf-posix (Depends-on): Likewise.
72176         * modules/vsnprintf (Depends-on): Likewise.
72177         * modules/vsprintf-posix (Depends-on): Likewise.
72178         * modules/xvasprintf (Depends-on): Likewise.
72179         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
72180         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
72181         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
72182         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
72183         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
72184         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
72185         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
72186         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
72187         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
72188         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
72189         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
72190         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
72191         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
72192         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
72193         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
72194         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
72195         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
72196         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
72197         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
72198         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
72199         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
72200         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
72201         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
72202         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
72203         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
72204         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
72205         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
72206         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
72207         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
72208         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
72209         * MODULES.html.sh: Remove EOVERFLOW.
72210         * NEWS: Mention the change.
72212 2008-09-13  Bruno Haible  <bruno@clisp.org>
72214         * modules/errno-tests: New file.
72215         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
72217         * lib/errno.in.h: New file.
72218         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
72219         * modules/errno: New file.
72220         * doc/posix-headers/errno.texi: Update documentation.
72221         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
72223 2008-09-13  Bruno Haible  <bruno@clisp.org>
72225         * tests/test-poll.c: Use #if for native Windows, rather than testing
72226         __MSVCRT__.
72228 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
72229             Bruno Haible  <bruno@clisp.org>
72231         * lib/glob.c: Don't include <pwd.h> on native Windows.
72232         (WINDOWS32): New macro.
72233         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
72235 2008-09-13  Bruno Haible  <bruno@clisp.org>
72237         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
72238         (ETIMEDOUT): Remove macro.
72239         (glthread_cond_timedwait_multithreaded): New declaration.
72240         (glthread_cond_timedwait): Use it.
72241         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
72242         (glthread_cond_timedwait_multithreaded): New function.
72244 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
72246         * modules/poll-tests: Do not check for io.h.
72247         * tests/test-poll.c: Check for __MSVCRT__ instead.
72249 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
72251         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
72252         * modules/poll-tests: Add inet_pton, stdbool, sockets.
72253         * tests/test-poll.c: Use them.  Use _pipe on Windows.
72255 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
72257         * modules/poll-tests: New.
72258         * tests/test-poll.c: New.
72260 2008-09-12  Eric Blake  <ebb9@byu.net>
72262         frexp: test for NetBSD failure on -0.0
72263         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
72264         not all, bugs from NetBSD 3.0 have been fixed.
72265         * doc/posix-functions/frexp.texi (frexp): Document bug.
72266         Reported by Thomas Klausner.
72268         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
72269         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
72270         literal -0.0.
72271         Reported by Jonathan C. Patschke <jp@centtech.com>.
72273 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
72275         * lib/glthread/cond.h: Use dummy implementation also if
72276         USE_WIN32_THREADS.
72278 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
72280         * modules/fnmatch-posix (License): Change to LGPLv2+.
72281         * modules/fnmatch-gnu (License): Likewise.
72283 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
72285         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
72287 2008-09-11  Jim Meyering  <meyering@redhat.com>
72289         * users.txt: Add gtk-vnc.
72291 2008-09-08  Simon Josefsson  <simon@josefsson.org>
72293         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
72294         rotate amounts.
72296         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
72297         required for 16-bit and 8-bit rotates.
72298         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
72299         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
72300         UINT8_MAX instead of hard-coded constants.
72301         Suggested by Paul Eggert.
72303 2008-09-07  Bruno Haible  <bruno@clisp.org>
72305         * tests/test-striconveh.c (main): Check behaviour when converting from
72306         UTF-7.
72308         Make striconveh work better with stateful encodings.
72309         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
72310         that iconv does not increment the inptr when returning -1/EINVAL.
72312 2008-09-07  Bruno Haible  <bruno@clisp.org>
72314         * build-aux/config.rpath: Update according to libtool-2.2.6.
72315         * build-aux/config.libpath: Likewise.
72317 2008-09-06  Bruno Haible  <bruno@clisp.org>
72319         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
72320         * lib/freadptr.c (freadptr): Likewise.
72321         * lib/freadseek.c (freadptrinc): Likewise.
72322         Reported by Simon Josefsson.
72324 2008-09-06  Bruno Haible  <bruno@clisp.org>
72326         * modules/freadptr (License): Change to LGPLv2+.
72327         * modules/freadseek (License): Likewise.
72328         Suggested by Eric Blake.
72330         * modules/memchr2 (License): Change to LGPLv2+.
72331         Approved by Eric Blake.
72333 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72334             Bruno Haible  <bruno@clisp.org>
72336         Make gnulib-tool work with native 'sed' on AIX.
72337         * gnulib-tool (sed_noop): New variable.
72338         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
72339         func_add_or_update, func_create_testdir): Use it to initialize sed
72340         script variables.
72341         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
72343 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
72344             Bruno Haible  <bruno@clisp.org>
72346         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
72347         also works after #include directives.
72349 2008-09-04  Ondřej Vašík  <ovasik@redhat.com>
72351         getdate.y: reject an out-of-range timezone value
72352         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
72353         the range [-24...+24].  When specified with only one or two digits,
72354         * tests/test-getdate.c: Tests for the fix.
72355         * doc/getdate.texi: Document this change.
72357 2008-09-03  Bruno Haible  <bruno@clisp.org>
72359         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
72361 2008-09-02  Simon Josefsson  <simon@josefsson.org>
72363         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
72364         <bruce.korb@gmail.com> with ideas from Ben Pfaff
72365         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
72366         Blake <ebb9@byu.net>.
72368         * tests/test-bitrotate.c: Add more test vectors.
72370 2008-09-02  Eric Blake  <ebb9@byu.net>
72372         vasnprintf-posix: handle large precision via %.*d
72373         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
72374         when handling it ourselves.
72375         * tests/test-vasnprintf-posix.c (test_function): Add test.
72376         * tests/test-snprintf-posix.h (test_function): Likewise.
72377         * tests/test-sprintf-posix.h (test_function): Likewise.
72378         * tests/test-vasprintf-posix.c (test_function): Likewise.
72379         Reported by Alain Guibert.
72381 2008-09-01  Eric Blake  <ebb9@byu.net>
72383         c-stack: make configure-time check more robust
72384         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
72385         successful sigaction call.
72386         Reported by Tom G. Christensen.
72388 2008-09-01  Bruno Haible  <bruno@clisp.org>
72390         New module 'findprog-lgpl'.
72391         * modules/findprog-lgpl: New file.
72392         * lib/findprog-lgpl.c: New file.
72393         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
72394         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
72395         to decide whether to use strdup or xstrdup, concatenated_filename or
72396         xconcatenated_filename.
72398 2008-09-01  Bruno Haible  <bruno@clisp.org>
72400         Split module 'concat-filename' into 'concat-filename' (LGPL) and
72401         'xconcat-filename' (GPL).
72402         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
72403         (License): Change to LGPLv2+.
72404         * modules/xconcat-filename: New file.
72405         * lib/concat-filename.h (concatenated_filename): Change specification.
72406         (xconcatenated_filename): New declaration.
72407         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
72408         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
72409         memory situations.
72410         * lib/xconcat-filename.c: New file.
72411         * NEWS: Mention the change.
72412         * lib/findprog.c: Include concat-filename.h, not filename.h.
72413         (find_in_path): Use xconcatenated_filename instead of
72414         concatenated_filename.
72415         * lib/javacomp.c: Include concat-filename.h, not filename.h.
72416         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
72417         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
72418         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
72419         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
72420         instead of concatenated_filename.
72421         * lib/javaexec.c: Include concat-filename.h, not filename.h.
72422         (execute_java_class): Use xconcatenated_filename instead of
72423         concatenated_filename.
72424         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
72425         * modules/javacomp (Depends-on): Likewise.
72426         * modules/javaexec (Depends-on): Likewise.
72428 2008-09-01  Bruno Haible  <bruno@clisp.org>
72430         Split module 'filename' into 'filename' and 'concat-filename'.
72431         * modules/filename: Keep only lib/filename.h.
72432         (License): Change to LGPLv2+.
72433         * modules/concat-filename: New file, extracted from modules/filename.
72434         * lib/filename.h (concatenated_filename): Remove declaration.
72435         * lib/concat-filename.h: New file, extracted from lib/filename.h.
72436         * lib/concat-filename.c: Include concat-filename.h.
72437         * NEWS: Mention the change.
72439 2008-09-01  Simon Josefsson  <simon@josefsson.org>
72441         * lib/bitrotate.h (rotl8, rotr8): Add.
72443         * modules/bitrotate (configure.ac): Need
72444         AC_REQUIRE([AC_C_INLINE]).
72445         (Description): Mention stdint.h.  Reported by Bruno Haible
72446         <bruno@clisp.org>.
72448         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
72449         Paolo Bonzini <bonzini@gnu.org>.
72451 2008-08-31  Bruno Haible  <bruno@clisp.org>
72453         Assume Solaris specific bi-arch conventions on Solaris systems.
72454         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
72455         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
72456         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
72457         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
72458         like acl_libdirstem.
72459         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
72460         acl_libdirstem.
72461         * NEWS: Mention the change.
72462         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
72464 2008-08-31  Jim Meyering  <meyering@redhat.com>
72466         * lib/strftime.h: Add comments describing the two added arguments.
72468         remove duplicate #include directives
72469         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
72470         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
72472 2008-08-31  Bruno Haible  <bruno@clisp.org>
72474         New module 'sigpipe-die'.
72475         * modules/sigpipe-die: New file.
72476         * lib/sigpipe-die.h: New file.
72477         * lib/sigpipe-die.c: New file.
72478         * MODULES.html.sh (Signal handling): Add sigpipe-die.
72480 2008-08-31  Bruno Haible  <bruno@clisp.org>
72482         Don't override previously installed signal handlers.
72483         * lib/fatal-signal.c (saved_sigactions): New variable.
72484         (uninstall_handlers): Reset the signal to the saved handler, not
72485         to SIG_DFL (except when ignored).
72486         (install_handlers): Save the previous handlers.
72488 2008-08-30  Bruno Haible  <bruno@clisp.org>
72490         * gnulib-tool (func_reset_sigpipe): New function.
72491         (func_get_automake_snippet, func_modules_transitive_closure,
72492         func_import): Invoke it before a join command that reads from stdin,
72493         to avoid "echo: write error: Broken pipe" error messages on stderr.
72494         Reported by Sam Steingold <sds@gnu.org>.
72496 2008-08-30  Bruno Haible  <bruno@clisp.org>
72498         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
72499         Code copied from m4/open.m4.
72500         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
72501         access and the filename ends in a slash. Code copied from lib/open.c.
72502         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
72503         * tests/test-fopen.c (main): Check against bug with trailing slash.
72505 2008-08-29  Bruno Haible  <bruno@clisp.org>
72507         Avoid some "gcc -pedantic" warnings.
72508         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
72509         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
72510         * lib/dirent.in.h: Likewise.
72511         * lib/fcntl.in.h: Likewise.
72512         * lib/float.in.h: Likewise.
72513         * lib/iconv.in.h: Likewise.
72514         * lib/inttypes.in.h: Likewise.
72515         * lib/locale.in.h: Likewise.
72516         * lib/math.in.h: Likewise.
72517         * lib/netinet_in.in.h: Likewise.
72518         * lib/search.in.h: Likewise.
72519         * lib/signal.in.h: Likewise.
72520         * lib/stdarg.in.h: Likewise.
72521         * lib/stdint.in.h: Likewise.
72522         * lib/stdio.in.h: Likewise.
72523         * lib/stdlib.in.h: Likewise.
72524         * lib/string.in.h: Likewise.
72525         * lib/strings.in.h: Likewise.
72526         * lib/sys_select.in.h: Likewise.
72527         * lib/sys_socket.in.h: Likewise.
72528         * lib/sys_stat.in.h: Likewise.
72529         * lib/sys_time.in.h: Likewise.
72530         * lib/sysexits.in.h: Likewise.
72531         * lib/time.in.h: Likewise.
72532         * lib/unistd.in.h: Likewise.
72533         * lib/wchar.in.h: Likewise.
72534         * lib/wctype.in.h: Likewise.
72535         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
72536         * modules/fchdir (Makefile.am): Likewise.
72537         * modules/fcntl (Makefile.am): Likewise.
72538         * modules/float (Makefile.am): Likewise.
72539         * modules/iconv_open (Makefile.am): Likewise.
72540         * modules/inttypes (Makefile.am): Likewise.
72541         * modules/locale (Makefile.am): Likewise.
72542         * modules/math (Makefile.am): Likewise.
72543         * modules/netinet_in (Makefile.am): Likewise.
72544         * modules/search (Makefile.am): Likewise.
72545         * modules/signal (Makefile.am): Likewise.
72546         * modules/stdarg (Makefile.am): Likewise.
72547         * modules/stdint (Makefile.am): Likewise.
72548         * modules/stdio (Makefile.am): Likewise.
72549         * modules/stdlib (Makefile.am): Likewise.
72550         * modules/string (Makefile.am): Likewise.
72551         * modules/strings (Makefile.am): Likewise.
72552         * modules/sys_select (Makefile.am): Likewise.
72553         * modules/sys_socket (Makefile.am): Likewise.
72554         * modules/sys_stat (Makefile.am): Likewise.
72555         * modules/sys_time (Makefile.am): Likewise.
72556         * modules/sysexits (Makefile.am): Likewise.
72557         * modules/time (Makefile.am): Likewise.
72558         * modules/unistd (Makefile.am): Likewise.
72559         * modules/wchar (Makefile.am): Likewise.
72560         * modules/wctype (Makefile.am): Likewise.
72561         Reported by Reuben Thomas <rrt@sc3d.org>.
72563 2008-08-29  Bruno Haible  <bruno@clisp.org>
72565         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
72566         any more.
72568 2008-08-29  Simon Josefsson  <simon@josefsson.org>
72570         * MODULES.html.sh (Misc): Add bitrotate.
72572         * modules/bitrotate: New file.
72574         * lib/bitrotate.h: New file.
72576         * modules/bitrotate-tests: New file.
72578         * tests/test-bitrotate.c: New file.
72580         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
72581         on the bitrotate module.
72583         * lib/arctwo.c: Use new bitrotate module.
72585 2008-08-29  Jim Meyering  <meyering@redhat.com>
72587         bootstrap: merge changes from coreutils
72588         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
72589         of copied files.  Remove a kludge, now that this is fixed.
72590         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
72591         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
72592         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
72594 2008-08-29  Bruno Haible  <bruno@clisp.org>
72596         * MODULES.html.sh: Remove --cvs-urls option.
72598 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
72600         maint.mk: adjust to file name change
72601         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
72603 2008-08-28  Jim Meyering  <meyering@redhat.com>
72605         * modules/getndelim2 (License): Relicense to LGPLv2+.
72606         Approved by Richard Stallman for the version of 1995, and by
72607         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
72609 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
72611         * lib/getdelim.c (flockfile, funlockfile): Make all of them
72612         dummy if one is not available.  Do not touch them if
72613         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
72614         (getc_maybe_unlocked): New.
72615         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
72617 2008-08-26  Eric Blake  <ebb9@byu.net>
72619         doc/INSTALL: resync from autoconf
72620         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
72621         (INSTALL_PRELUDE): Delete; this is done more efficiently by
72622         moving...
72623         * install.texi [!autoconf]: ...here.  Resync from autoconf.
72624         * INSTALL: Regenerate.
72625         * INSTALL.ISO: New file.
72626         * INSTALL.UTF-8: Likewise.
72628 2008-08-26  Jim Meyering  <meyering@redhat.com>
72630         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
72631         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
72632         these definitions conditional, so that they may be overridden, too.
72634 2008-08-26  Bruno Haible  <bruno@clisp.org>
72636         Generate INSTALL file variants with prettier quotes.
72637         * doc/Makefile (INSTALL_PRELUDE): New macro.
72638         (INSTALL): Use it.
72639         (INSTALL.ISO, INSTALL.UTF-8): New rules.
72641 2008-08-26  Bruno Haible  <bruno@clisp.org>
72643         Run makeinfo in an English locale.
72644         * doc/Makefile (MAKEINFO): New variable.
72646 2008-08-26  Bruno Haible  <bruno@clisp.org>
72648         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
72649         Suggested by Eric Blake.
72651 2008-08-25  Bruno Haible  <bruno@clisp.org>
72653         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
72655 2008-08-25  Eric Blake  <ebb9@byu.net>
72657         c-stack: test that stack overflow can be caught
72658         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
72659         that platform allows handling stack overflow; at least OS/2 EMX
72660         has sigaltstack, but crashes before transferring control to
72661         handler on stack overflow.
72662         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
72663         check for HAVE_STACK_OVERFLOW_HANDLING.
72664         Reported by Elbert Pol.
72666 2008-08-25  Bruno Haible  <bruno@clisp.org>
72668         * doc/posix-functions/strftime.texi: Fix description of strftime
72669         module.
72671 2008-08-24  Bruno Haible  <bruno@clisp.org>
72673         * tests/uniwidth/test-uc_width2.c: New file.
72674         * tests/uniwidth/test-uc_width2.sh: New file.
72675         * modules/uniwidth/width-tests (Files): Add the new files.
72676         (TESTS): Add uniwidth/test-uc_width2.sh.
72677         (TESTS_ENVIRONMENT): New variable.
72678         (check_PROGRAMS): Add test-uc_width2.
72679         (test_uc_width2_SOURCES): New variable.
72681         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
72682         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
72683         not 0x00AB.
72684         Reported by Alexander V. Lukyanov <lav@netis.ru>.
72686 2008-08-22  Eric Blake  <ebb9@byu.net>
72688         test-lock, test-tls: mention why a test is skipped
72689         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
72690         skipped.
72691         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
72693         count-one-bits: relax license
72694         * modules/count-one-bits (License): Relicense to LGPLv2+.
72695         Suggested by Ludovic Courtès, approved by Ben Pfaff.
72697 2008-08-22  Andreas Schwab  <schwab@suse.de>
72699         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
72700         Remove spurious space in assignment.
72702 2008-08-21  Simon Josefsson  <simon@josefsson.org>
72704         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
72705         Paul Eggert <eggert@CS.UCLA.EDU>.
72707 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
72709         * modules/gettext: Add m4/threadlib.m4.
72711 2008-08-19  Eric Blake  <ebb9@byu.net>
72713         test-c-stack: fix compilation failure on FreeBSD 5.0
72714         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
72715         headers before <sys/resource.h>.
72716         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
72717         the bug.
72718         Reported by Nelson H. F. Beebe.
72720         strverscmp: migrate from "strverscmp.h" to <string.h>
72721         * modules/string (Makefile.am): Add new hooks.
72722         * modules/strverscmp (Files): Remove strverscmp.h.
72723         (Depends-on): Add string.
72724         (configure.ac): Add indicator.
72725         (Include): Mention new header.
72726         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
72727         defaults.
72728         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
72729         results.
72730         * lib/strverscmp.h: Delete.
72731         * lib/string.in.h (strverscmp): Provide declaration, when needed.
72732         * tests/test-strverscmp.c (includes): Adjust client.
72733         * lib/check-version.c (includes): Likewise.
72734         * NEWS: Document the change.
72736         strverscmp: add unit test
72737         * modules/strverscmp-tests: New file.
72738         * tests/test-strverscmp.c: Likewise.
72740 2008-08-19  Simon Josefsson  <simon@josefsson.org>
72742         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
72743         regarding Windows crypto stuff, from Mono.
72745 2008-08-19  Adam Strzelecki  <ono@java.pl>  (tiny change)
72747         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
72748         if present, for intel RND.  Return error on failures.
72750 2008-08-18  Ben Pfaff  <blp@gnu.org>
72752         gitlog-to-changelog: give better diagnostic for failed pipe-open
72753         * build-aux/gitlog-to-changelog: Improve error message: suggest
72754         that the version of Git may be too old.
72756 2008-08-18  Simon Josefsson  <simon@josefsson.org>
72758         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
72759         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
72761 2008-08-18  Bruno Haible  <bruno@clisp.org>
72763         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
72764         pthread_in_use().
72766 2008-08-18  Bruno Haible  <bruno@clisp.org>
72768         * lib/glthread/threadlib.c: Include <pthread.h>.
72770 2008-08-18  Bruno Haible  <bruno@clisp.org>
72772         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
72773         glthread_recursive_lock_* macros.
72774         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
72775         Fix syntax error.
72777 2008-08-18  Bruno Haible  <bruno@clisp.org>
72779         * lib/glthread/thread.c: Avoid forcing a context switch right after
72780         thread creation.
72782 2008-08-17  Bruno Haible  <bruno@clisp.org>
72784         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
72785         * lib/glthread/thread.h: Provide Win32 specific implementation.
72786         * modules/thread (Files): Add lib/glthread/thread.c.
72787         (Depends-on): Add lock.
72788         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
72790 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
72792         New module 'yield'.
72793         * modules/yield: New file.
72794         * lib/glthread/yield.h: New file.
72795         * m4/yield.m4: New file.
72796         * MODULES.html.sh (Multithreading): Add yield.
72798 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
72800         New module 'thread'.
72801         * modules/thread: New file.
72802         * lib/glthread/thread.h: New file.
72803         * m4/thread.m4: New file.
72804         * MODULES.html.sh (Multithreading): Add thread.
72806 2008-08-17  Bruno Haible  <bruno@clisp.org>
72808         * lib/glthread/lock.h: Include <stdlib.h> always.
72809         * lib/glthread/tls.h: Likewise.
72810         * lib/glthread/cond.h: Likewise.
72812 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
72814         New module 'cond'.
72815         * modules/cond: New file.
72816         * lib/glthread/cond.h: New file.
72817         * lib/glthread/cond.c: New file.
72818         * m4/cond.m4: New file.
72819         * MODULES.html.sh (Multithreading): Add cond.
72821 2008-08-16  Eric Blake  <ebb9@byu.net>
72823         c-stack: fix regression on Irix 5.3 from 2008-06-21
72824         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
72825         sa_sigaction...
72826         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
72827         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
72828         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
72829         * modules/signal (Makefile.am): Use the value.
72830         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
72831         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
72832         * doc/posix-headers/signal.texi (signal.h): Document this
72833         portability issue.
72834         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
72835         Reported by Tom G. Christensen.
72837 2008-08-17  Bruno Haible  <bruno@clisp.org>
72839         New module 'threadlib'.
72840         * modules/threadlib: New file.
72841         * lib/glthread/threadlib.c: New file, extracted from
72842         lib/glthread/lock.c.
72843         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
72844         functions.
72845         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
72846         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
72847         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
72848         macros.
72849         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
72850         (gl_DISABLE_THREADS): Remove macro.
72851         * modules/lock (Files): Remove build-aux/config.rpath.
72852         (Depends-on): Remove havelib. Add threadlib.
72853         (configure.ac-early): Remove section.
72854         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
72855         * modules/tls (Depends-on): Remove lock. Add threadlib.
72856         (Link): New section, copied from threadlib.
72857         * MODULES.html.sh (Multithreading): Add threadlib.
72859 2008-08-14  Bruno Haible  <bruno@clisp.org>
72861         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
72862         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
72863         glthread_rwlock_unlock, glthread_rwlock_destroy,
72864         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
72865         glthread_recursive_lock_destroy): Define as macros always.
72866         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
72867         glthread_lock_lock.
72868         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
72869         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
72870         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
72871         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
72872         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
72873         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
72874         (glthread_recursive_lock_lock_func): Renamed from
72875         glthread_recursive_lock_lock.
72876         (glthread_recursive_lock_unlock_func): Renamed from
72877         glthread_recursive_lock_unlock.
72878         (glthread_recursive_lock_destroy_func): Renamed from
72879         glthread_recursive_lock_destroy.
72881 2008-08-14  Bruno Haible  <bruno@clisp.org>
72883         * lib/glthread/lock.h: Renamed from lib/lock.h.
72884         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
72885         * lib/glthread/tls.h: Renamed from lib/tls.h.
72886         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
72887         * lib/fstrcmp.c: Update includes.
72888         * lib/strsignal.c: Update includes.
72889         * modules/lock (Files, Makefile.am): Update.
72890         (Include): Change to "glthread/lock.h".
72891         * modules/tls (Files, Makefile.am): Update.
72892         (Include): Change to "glthread/tls.h".
72893         * tests/test-lock.c: Update includes.
72894         * tests/test-tls.c: Update includes.
72895         * NEWS: Mention the renamed header files.
72897 2008-08-11  Jim Meyering  <meyering@redhat.com>
72899         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
72901 2008-08-11  Eric Blake  <ebb9@byu.net>
72903         test-c-stack: avoid C99-ism
72904         * tests/test-c-stack.c (main): Fix whitespace, move declaration
72905         before statement.
72906         Reported by Alain Guibert.
72908 2008-08-10  Jim Meyering  <meyering@redhat.com>
72910         ensure that return value of uinttostr et al are not ignored
72911         * lib/inttostr.h (__GNUC_PREREQ): Define.
72912         (__attribute_warn_unused_result__): Define.
72913         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
72915 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
72917         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
72918         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
72920 2008-08-07  Jim Meyering  <meyering@redhat.com>
72922         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
72924         * modules/mkstemp (License): Relicense under LGPLv2+.
72925         * modules/tempname (License): Likewise.
72927 2008-08-06  Bruno Haible  <bruno@clisp.org>
72929         * lib/poll.c (poll): Further micro-optimization.
72931 2008-08-06  Jim Meyering  <meyering@redhat.com>
72933         inet_pton.c: use locale-independent tolower
72934         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
72935         (inet_pton6): Use c_tolower rather than tolower.
72936         * modules/inet_pton (Depends-on): Add c-ctype.
72938 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
72940         * lib/poll.c (poll): Avoid division when timeout is 0, cache
72941         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
72943 2008-08-06  Jim Meyering  <meyering@redhat.com>
72945         * modules/inet_pton (License): Relicense under LGPLv2+.
72947 2008-08-03  Bruno Haible  <bruno@clisp.org>
72949         Additional non-aborting API for lock and tls.
72950         * lib/lock.h: Include <errno.h>.
72951         (glthread_lock_init): New macro/function.
72952         (gl_lock_init): Define as wrapper around glthread_lock_init.
72953         (glthread_lock_lock): New macro/function.
72954         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
72955         (glthread_lock_unlock): New macro/function.
72956         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
72957         (glthread_lock_destroy): New macro/function.
72958         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
72959         (glthread_rwlock_init): New macro/function.
72960         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
72961         (glthread_rwlock_rdlock): New macro/function.
72962         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
72963         (glthread_rwlock_wrlock): New macro/function.
72964         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
72965         (glthread_rwlock_unlock): New macro/function.
72966         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
72967         (glthread_rwlock_destroy): New macro/function.
72968         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
72969         (glthread_recursive_lock_init): New macro/function.
72970         (gl_recursive_lock_init): Define as wrapper around
72971         glthread_recursive_lock_init.
72972         (glthread_recursive_lock_lock): New macro/function.
72973         (gl_recursive_lock_lock): Define as wrapper around
72974         glthread_recursive_lock_lock.
72975         (glthread_recursive_lock_unlock): New macro/function.
72976         (gl_recursive_lock_unlock): Define as wrapper around
72977         glthread_recursive_lock_unlock.
72978         (glthread_recursive_lock_destroy): New macro/function.
72979         (gl_recursive_lock_destroy): Define as wrapper around
72980         glthread_recursive_lock_destroy.
72981         (glthread_once): New macro/function.
72982         (gl_once): Define as wrapper around glthread_once.
72983         Update function declarations.
72984         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
72985         glthread_rwlock_init. Return error code.
72986         (glthread_rwlock_rdlock_multithreaded): Renamed from
72987         glthread_rwlock_rdlock. Return error code.
72988         (glthread_rwlock_wrlock_multithreaded): Renamed from
72989         glthread_rwlock_wrlock. Return error code.
72990         (glthread_rwlock_unlock_multithreaded): Renamed from
72991         glthread_rwlock_unlock. Return error code.
72992         (glthread_rwlock_destroy_multithreaded): Renamed from
72993         glthread_rwlock_destroy. Return error code.
72994         (glthread_recursive_lock_init_multithreaded): Renamed from
72995         glthread_recursive_lock_init. Return error code.
72996         (glthread_recursive_lock_lock_multithreaded): Renamed from
72997         glthread_recursive_lock_lock. Return error code.
72998         (glthread_recursive_lock_unlock_multithreaded): Renamed from
72999         glthread_recursive_lock_unlock. Return error code.
73000         (glthread_recursive_lock_destroy_multithreaded): Renamed from
73001         glthread_recursive_lock_destroy. Return error code.
73002         (glthread_once_call): Make static.
73003         (glthread_once_multithreaded): Renamed from glthread_once.
73004         * lib/tls.h: Include <errno.h>.
73005         (glthread_tls_key_init): New macro/function.
73006         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
73007         (glthread_tls_set): New macro/function.
73008         (gl_tls_set): Define as wrapper around glthread_tls_set.
73009         (glthread_tls_key_destroy): New macro/function.
73010         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
73011         Update function declarations.
73012         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
73013         glthread_tls_get.
73014         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
73016 2008-08-04  Eric Blake  <ebb9@byu.net>
73018         gnumakefile: use space, not TAB, outside of targets
73019         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
73021 2008-08-02  Jim Meyering  <meyering@redhat.com>
73023         getdate.y: avoid locale-dependent date parsing failure
73024         In Turkish locales, getdate would fail to recognize keywords
73025         containing a lowercase "i".  The solution is not to rely on
73026         locale-sensitive case-conversion.
73027         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
73028         (lookup_word): Use c_toupper in place of toupper.
73029         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
73030         Reported by Vefa Bicakci <bicave@superonline.com> in
73031         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
73032         * modules/getdate (Depends-on): Add c-ctype.
73034 2008-08-02  Bruno Haible  <bruno@clisp.org>
73036         * gnulib-tool (func_import): When updating or creating a .gitignore
73037         file, prepend each added line with a slash, and ignore leading slashes
73038         from the existing lines.
73039         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
73041 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73043         Portability fix for GNU make 3.79.1.
73044         * top/GNUmakefile: Avoid 'else COND', which older GNU make
73045         versions do not understand.
73047 2008-08-01  Bruno Haible  <bruno@clisp.org>
73049         Work around bug of HP-UX 10.20 cc with -0.0 literal.
73050         * tests/test-isnanf.h (zero): New variable.
73051         (main): Avoid literal -0.0f.
73052         * tests/test-isnand.h (zero): New variable.
73053         (main): Avoid literal -0.0.
73054         * tests/test-isnanl.h (zero): New variable.
73055         (main): Avoid literal -0.0L.
73056         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
73057         (test_float, test_double, test_long_double): Avoid literals -0.0f,
73058         -0.0, -0.0L.
73059         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
73060         (test_signbitd): Avoid literal -0.0.
73061         (test_signbitl): Avoid literal -0.0L.
73062         * tests/test-ceilf1.c (zero): New variable.
73063         (main): Avoid literal -0.0f.
73064         * tests/test-ceill.c (zero): New variable.
73065         (main): Avoid literal -0.0L.
73066         * tests/test-floorf1.c (zero): New variable.
73067         (main): Avoid literal -0.0f.
73068         * tests/test-floorl.c (zero): New variable.
73069         (main): Avoid literal -0.0L.
73070         * tests/test-roundf1.c (zero): New variable.
73071         (main): Avoid literal -0.0f.
73072         * tests/test-round1.c (zero): New variable.
73073         (main): Avoid literal -0.0.
73074         * tests/test-roundl.c (zero): New variable.
73075         (main): Avoid literal -0.0L.
73076         * tests/test-truncf1.c (zero): New variable.
73077         (main): Avoid literal -0.0f.
73078         * tests/test-trunc1.c (zero): New variable.
73079         (main): Avoid literal -0.0.
73080         * tests/test-truncl.c (zero): New variable.
73081         (main): Avoid literal -0.0L.
73082         * tests/test-frexp.c (zero): New variable.
73083         (main): Avoid literal -0.0.
73084         * tests/test-frexpl.c (zero): New variable.
73085         (main): Avoid literal -0.0L.
73086         * tests/test-ldexpl.c (zero): New variable.
73087         (main): Avoid literal -0.0L.
73088         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
73089         (zerod, zerol): New variables.
73090         (test_function): Avoid literals -0.0, -0.0L.
73091         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
73092         (zerod, zerol): New variables.
73093         (test_function): Avoid literals -0.0, -0.0L.
73094         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
73095         (zerod, zerol): New variables.
73096         (test_function): Avoid literals -0.0, -0.0L.
73097         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
73098         (zerod, zerol): New variables.
73099         (test_function): Avoid literals -0.0, -0.0L.
73100         * tests/test-strtod.c (zero): New variable.
73101         (main): Avoid literal -0.0.
73102         Reported by Jonathan C. Patschke <jp@centtech.com>.
73104 2008-07-31  Jim Meyering  <meyering@redhat.com>
73106         sha256.h: correct definition of SHA224_DIGEST_SIZE
73107         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
73108         Reported by Paulie Pena IV <paulie4@gmail.com>.
73109         Define as 224 / 8, rather than as a literal.
73110         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
73111         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
73112         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
73114 2008-07-31  Bruno Haible  <bruno@clisp.org>
73116         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
73117         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
73118         Reported by Jonathan Patschke <jp@centtech.com>.
73120 2008-07-31  Bruno Haible  <bruno@clisp.org>
73122         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
73123         Reported by Paolo Bonzini <bonzini@gnu.org>.
73125 2008-07-30  Eric Blake  <ebb9@byu.net>
73127         test-strtod: allow compilation without -lm
73128         * tests/test-strtod.c (main): Avoid link dependence on fabs.
73129         Reported by Dennis Clarke <blastwave@gmail.com>.
73131 2008-07-28  Jim Meyering  <meyering@redhat.com>
73133         bootstrap: work also when there are no .po files in po/
73134         * build-aux/bootstrap (update_po_files): Complete the change
73135         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
73137 2008-07-27  Jim Meyering  <meyering@redhat.com>
73139         * users.txt: Add zile.
73141 2008-07-26  Ben Pfaff  <blp@gnu.org>
73143         Add missing dependencies on new m4/exponent[fdl].m4 files.
73144         * modules/isnanf-nolibm: Add m4/exponentf.m4.
73145         * modules/isnand-nolibm: Add m4/exponentd.m4.
73146         * modules/isnanl-nolibm: Add m4/exponentl.m4.
73147         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
73148         m4/isnan[fdl].m4, because the macros actually used moved.
73149         Reported by Jim Meyering.
73151 2008-07-14  Ben Pfaff  <blp@gnu.org>
73153         Add isinf module.
73154         * lib/isinf.c: New file.
73155         * lib/math.in.h: Define isinf macro if we have decided to replace
73156         it.
73157         * m4/isinf.m4: New file.
73158         * m4/math_h.m4: Initialize and substitute variables for isinf
73159         module.
73160         * modules/isinf: New file.
73161         * modules/isinf-tests: New file.
73162         * modules/math: Add substitutions for new module.
73163         * tests/test-isinf.c: New file.
73164         * doc/posix-functions/isinf.texi: Mention new module.
73165         * MODULES.html.sh: Mention new module.
73167 2008-07-14  Ben Pfaff  <blp@gnu.org>
73169         Factor out some macros for use by additional modules.
73170         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
73171         exponentf.m4.
73172         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
73173         exponentd.m4.
73174         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
73175         file exponentl.m4.
73176         * m4/exponentf.m4: New file.
73177         * m4/exponentd.m4: New file.
73178         * m4/exponentl.m4: New file.
73179         * modules/isnanf: Use new file m4/exponentf.m4.
73180         * modules/isnand: Use new file m4/exponentd.m4.
73181         * modules/isnanl: Use new file m4/exponentl.m4.
73183 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
73185         mktime.c: normalize tp->tm_isdst value to -1/0/1.
73186         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
73187         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
73188         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
73190         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
73191         readlink on platforms without PATH_MAX.
73193 2008-07-21  Eric Blake  <ebb9@byu.net>
73195         Warn, not fail, on stale version.
73196         * top/GNUmakefile (_curr-ver): Tone down previous patch.
73198         Don't allow installation with stale devel version number.
73199         * top/GNUmakefile (_is-install-target): New macro.
73200         (_curr-ver): Forbid installation with stale version number.
73202 2008-07-20  Bruno Haible  <bruno@clisp.org>
73204         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
73205         TESTS_ENVIRONMENT.
73206         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
73208 2008-07-20  Bruno Haible  <bruno@clisp.org>
73210         * lib/c-stack.h (c_stack_action): Add documentation.
73211         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
73213 2008-07-20  Bruno Haible  <bruno@clisp.org>
73215         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
73216         * modules/readlink (License): Likewise.
73218 2008-07-17  Eric Blake  <ebb9@byu.net>
73220         * modules/c-stack (Link): Fix typo.
73222         Make c-stack use libsigsegv, when available.
73223         * modules/c-stack (Depends-on): Add libsigsegv.
73224         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
73225         needed.
73226         * lib/c-stack.c (SIGSTKSZ): Define fallback.
73227         (segv_handler, overflow_handler, c_stack_action)
73228         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
73229         implementation when libsigsegv is available, but only when using
73230         the library is necessary.
73231         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
73232         comment, explaining why XSI check fails on Linux.
73233         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
73234         * tests/test-c-stack2.sh: Tweak skip message.
73235         * NEWS: Document new link-time requirements.
73237 2008-07-16  Eric Blake  <ebb9@byu.net>
73239         c-stack: Expose false positives when not using libsigsegv.
73240         * modules/c-stack-tests (Files): Expand test.
73241         * tests/test-c-stack.c (main): Add means to conditionally trigger
73242         non-overflow SIGSEGV.
73243         * tests/test-c-stack2.sh: New file.
73245 2008-07-14  Bruno Haible  <bruno@clisp.org>
73247         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
73248         Reported by Eric Blake.
73250 2008-07-14  Sam Steingold  <sds@gnu.org>
73251             Bruno Haible  <bruno@clisp.org>
73253         New module libsigsegv.
73254         * modules/libsigsegv: New file.
73255         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
73256         modifications.
73257         * MODULES.html.sh (Signal handling): New section.
73259 2008-07-14  Bruno Haible  <bruno@clisp.org>
73261         * modules/unictype/ctype-* (Description): Add the word "function".
73262         Improves the resulting doc in MODULES.html.
73264 2008-07-12  Ben Pfaff  <blp@gnu.org>
73266         Add longlong module.
73267         * modules/longlong: New file.
73269 2008-07-12  Bruno Haible  <bruno@clisp.org>
73271         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
73272         to empty.
73274 2008-07-10  Ben Pfaff  <blp@gnu.org>
73276         Add isnan module.
73277         * doc/posix-functions/isnan.texi: Mention new module.
73278         * lib/math.in.h: Define isnan macro if we have decided to replace
73279         it.
73280         * m4/isnan.m4: New file.
73281         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
73282         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
73283         also.
73284         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
73285         redundancy.
73286         * m4/math_h.m4: Initialize and substitute variables for isnan
73287         module.
73288         * modules/isnan: New file.
73289         * modules/isnan-tests: New file.
73290         * modules/math: Add substitutions for new module.
73291         * tests/test-isnan.c: New file.
73292         * MODULES.html.sh: Mention new module.
73294 2008-07-10  Ben Pfaff  <blp@gnu.org>
73296         Add isnanf module.
73297         * lib/isnanf.m4: New file.
73298         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
73299         (gl_HAVE_ISNANF_IN_LIBM): New macro.
73300         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
73301         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
73302         * modules/isnanf: New file.
73303         * modules/isnanf-tests: New file.
73304         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
73305         files.
73306         * tests/test-isnanf-nolibm.c: factored most of its contents into
73307         new file tests/test-isnanf.h.
73308         * tests/test-isnanf.h: New file.
73309         * tests/test-isnanf.c: New file.
73310         * MODULES.html.sh: Mention new module.
73311         * doc/glibc-functions/isnanf.texi: Mention new module.
73313 2008-07-10  Ben Pfaff  <blp@gnu.org>
73315         Add isnand module.
73316         * lib/isnand.h: New file.
73317         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
73318         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
73319         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
73320         functionality also.
73321         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
73322         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
73323         (gl_HAVE_ISNAND_IN_LIBM): New macro.
73324         * modules/isnand: New file.
73325         * modules/isnand-tests: New file.
73326         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
73327         files.
73328         * tests/test-isnand-nolibm.c: factored most of its contents into
73329         new file tests/test-isnand.h.
73330         * tests/test-isnand.h: New file.
73331         * tests/test-isnand.c: New file.
73332         * MODULES.html.sh: Mention new module.
73334 2008-07-10  Ben Pfaff  <blp@gnu.org>
73336         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
73337         * lib/isnand.h: Rename lib/isnand-nolibm.h.
73338         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
73339         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
73340         * modules/isnanf-nolibm: Update references to renamed files.
73341         * modules/isnand-nolibm: Likewise.
73342         * modules/isnanf-nolibm-tests: Likewise.
73343         * modules/isnand-nolibm-tests: Likewise.
73344         * lib/frexp.c: Likewise.
73345         * lib/isfinite.c: Likewise.
73346         * lib/signbitd.c: Likewise.
73347         * lib/signbitf.c: Likewise.
73348         * lib/vasnprintf.c: Likewise.
73349         * tests/test-ceilf1.c: Likewise.
73350         * tests/test-ceilf2.c: Likewise.
73351         * tests/test-floorf1.c: Likewise.
73352         * tests/test-floorf2.c: Likewise.
73353         * tests/test-frexp.c: Likewise.
73354         * tests/test-round1.c: Likewise.
73355         * tests/test-round2.c: Likewise.
73356         * tests/test-roundf1.c: Likewise.
73357         * tests/test-strtod.c: Likewise.
73358         * tests/test-trunc1.c: Likewise.
73359         * tests/test-trunc2.c: Likewise.
73360         * tests/test-truncf1.c: Likewise.
73361         * tests/test-truncf2.c: Likewise.
73362         * NEWS: Mention the renamed header files.
73364 2008-07-11  Jim Meyering  <meyering@redhat.com>
73366         vc-list-files: make the last-resort awk code more portable
73367         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
73368         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
73369         does not support it.
73371 2008-07-10  Eric Blake  <ebb9@byu.net>
73373         Work with tar's bootstrap.
73374         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
73375         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
73376         an m4 comment.
73378 2008-07-09  Jim Meyering  <meyering@redhat.com>
73380         posix-shell.m4: fix typo that made this test malfunction
73381         * m4/posix-shell.m4: Remove capitalization in variable name.
73383 2008-07-08  Bruno Haible  <bruno@clisp.org>
73385         * m4/onceonly.m4: Update comments.
73386         Reported by Ben Pfaff <blp@cs.stanford.edu>.
73388 2008-07-04  Jim Meyering  <meyering@redhat.com>
73390         * users.txt: Add vc-dwim.
73391         (bison, coreutils): Use the gitweb URL.
73393 2008-07-03  Jim Meyering  <meyering@redhat.com>
73395         * users.txt: Add libffcall.  From Sam Steingold.
73397 2008-07-03  Ondřej Vašík  <ovasik@redhat.com>
73399         getdate.y: do not ignore TZ with relative day, month or year offset
73400         * lib/getdate.y (get_date): Move the tz-handling block to follow the
73401         relative-date-handling, since otherwise, the latter would clobber the
73402         sole output (an updated Start value) of the tz-handling block.
73403         * tests/test-getdate.c: Tests for the fix
73405 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73407         Recognize 'foo_LIBRARIES += libgnu.a'.
73408         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
73409         makefile snippet has already specified an installation location,
73410         also using '+='.
73412 2008-07-02  Ondřej Vašík  <ovasik@redhat.com>
73414         getdate.y: factor out common actions
73415         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
73416         Use them in place of open-coded actions.
73418 2008-07-01  Simon Josefsson  <simon@josefsson.org>
73420         Add self-test for getdate module.
73421         * modules/getdate-tests: New file.
73422         * tests/test-getdate.c: New file.
73424 2008-06-29  Bruno Haible  <bruno@clisp.org>
73426         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
73427         .gitignore.
73428         Reported by Sylvain Beucler <beuc@beuc.net>.
73430 2008-06-29  Bruno Haible  <bruno@clisp.org>
73432         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
73433         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
73435 2008-06-29  Bruno Haible  <bruno@clisp.org>
73437         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
73438         EXTRA_DIST.
73439         Reported by Sylvain Beucler <beuc@beuc.net>.
73441 2008-06-26  Jim Meyering  <meyering@redhat.com>
73443         make several modules depend on the "open" module
73444         This provides slightly increased consistency when opening-for-write
73445         the name of a non-directory spelled with a trailing slash.
73446         * modules/chdir-safer: Likewise.
73447         * modules/chown: Likewise.
73448         * modules/clean-temp: Likewise.
73449         * modules/copy-file: Likewise.
73450         * modules/fchdir: Likewise.
73451         * modules/fcntl-safer: Likewise.
73452         * modules/pipe: Likewise.
73453         * modules/utime: Likewise.
73454         Prompted by Eric Blake and Bruno Haible.
73456 2008-06-24  Andreas Schwab  <schwab@suse.de>
73458         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
73459         literals can be used as initializers for global variables.
73461 2008-06-23  Eric Blake  <ebb9@byu.net>
73463         Make gnulib-cache.m4 easier to diff.
73464         * gnulib-tool (func_import): Allow newlines when reading cached
73465         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
73467 2008-06-23  Bruno Haible  <bruno@clisp.org>
73469         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
73470         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
73471         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
73472         m4/signalblocking.m4.
73473         (gl_PREREQ_SIGACTION): Don't invoke it.
73474         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
73475         gl_PREREQ_SIG_HANDLER_H.
73476         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
73477         Don't check for sigaction here.
73479 2008-06-23  Bruno Haible  <bruno@clisp.org>
73481         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
73482         (install_handlers): Don't set the SA_RESETHAND flag.
73484 2008-06-23  Bruno Haible  <bruno@clisp.org>
73486         * m4/sigaction.m4: Comment fixes.
73487         * lib/signal.in.h: Likewise.
73489 2008-06-23  Eric Blake  <ebb9@byu.net>
73491         Fix typo.
73492         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
73494         Avoid SA_ namespace.
73495         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
73496         Reported by Ralf Wildenhues.
73498         Avoid test failure due to SA_RESTORER.
73499         * tests/test-sigaction.c (SA_MASK): New macro.
73500         (main): Avoid failing due to extension flags being set.
73501         Reported by Jim Meyering.
73503         Revert use of sig-handler.h in sigprocmask.c.
73504         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
73505         it requires the existence of struct sigaction.
73506         * lib/sigprocmask.c (handler_t): Restore typedef.
73507         (rpl_signal, old_handlers): Use local type.
73509 2008-06-22  Bruno Haible  <bruno@clisp.org>
73511         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
73512         conditionally.
73513         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
73515 2008-06-22  Bruno Haible  <bruno@clisp.org>
73517         * doc/posix-functions/siginterrupt.texi: Move note.
73519         * lib/signal.in.h (SA_RESTART): New macro.
73520         * lib/sigaction.c: Update comment.
73522         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
73524         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
73525         (gl_PREREQ_SIGPROCMASK): Invoke it.
73526         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
73528         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
73530         * lib/sigprocmask.c: Update a comment.
73532 2008-06-21  Eric Blake  <ebb9@byu.net>
73534         Use sigaction module rather than signal().
73535         * modules/c-stack (Depends-on): Add sigaction.
73536         * modules/fatal-signal (Depends-on): Likewise.
73537         * modules/nanosleep (Depends-on): Likewise.
73538         * modules/sigprocmask (Files): Add sig-handler.h.
73539         * modules/sigaction (Files): Likewise.
73540         * lib/sig-handler.h (get_handler): New file, suggested by Paul
73541         Eggert.
73542         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
73543         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
73544         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
73545         (init_fatal_signals): Likewise.
73546         * lib/nanosleep.c (rpl_nanosleep): Likewise.
73547         (siginterrupt): Delete fallback.
73548         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
73549         instead.
73550         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
73551         siginterrupt.
73553         New module sigaction, for mingw.
73554         * modules/sigaction: New module...
73555         * modules/sigaction-tests: ...and its test.
73556         * m4/sigaction.m4: New file.
73557         * lib/sigaction.c: Likewise.
73558         * tests/test-sigaction.c: Likewise.
73559         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
73560         * modules/signal (Makefile.am): Likewise.
73561         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
73562         needed.
73563         * doc/posix-headers/signal.texi (signal.h): Mention provided
73564         types.
73565         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
73566         that sigaction is preferable.
73567         * doc/posix-functions/sigaction.texi (sigaction): Mention new
73568         module.
73569         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
73570         sigaction.
73572         Improve robustness of sigprocmask by overriding signal.
73573         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
73574         is in use.
73575         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
73576         (SIGKILL, SIGSTOP): Provide fallbacks.
73577         (rpl_signal): Implement.
73578         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
73579         signal can be called inside handlers.
73581         Fix nanosleep module on mingw.
73582         * modules/nanosleep (Depends-on): Add sys_select.
73583         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
73585         Fix licensing of sigprocmask.
73586         * modules/raise (License): Relicense as LGPL.
73588 2008-06-21  Bruno Haible  <bruno@clisp.org>
73590         * lib/propername.c (proper_name_utf8): Don't use the transliterated
73591         result if it contains question marks.
73592         Reported by Michael Geng <linux@michaelgeng.de>.
73594 2008-06-19  Bruno Haible  <bruno@clisp.org>
73596         Fix CVS-ism.
73597         * doc/gnulib.texi: Include updated-stamp.texi.
73598         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
73599         (updated-stamp.texi): New rule.
73600         (gnulib.info): Depend on it.
73601         * doc/.gitignore: Add updated-stamp.texi.
73602         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
73604 2008-06-19  Bruno Haible  <bruno@clisp.org>
73606         * doc/Makefile (gnulib.info): Update and simplify dependencies.
73607         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
73609 2008-06-19  Eric Blake  <ebb9@byu.net>
73611         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
73612         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
73613         Reported by Stepan Kasal.
73615 2008-06-18  Bruno Haible  <bruno@clisp.org>
73617         * lib/fatal-signal.c (init_fatal_signals): Add comment.
73618         Reported by Eric Blake.
73620 2008-06-18  Eric Blake  <ebb9@byu.net>
73622         Work around cygwin 1.5.25 strsignal bug.
73623         * tests/test-strsignal.c: Allow for const char *.
73624         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
73626 2008-06-18  Simon Josefsson  <simon@josefsson.org>
73628         * users.txt: Update URL to article and add author/date
73629         information.
73631 2008-06-17  Bruno Haible  <bruno@clisp.org>
73633         New macro gl_DISABLE_THREADS.
73634         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
73635         if the user did not pass --enable-threads or --disable-threads option.
73636         (gl_DISABLE_THREADS): New macro.
73637         Reported by Eric Blake <ebb9@byu.net>.
73639 2008-06-17  Bruno Haible  <bruno@clisp.org>
73641         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
73642         when the macro ignores it.
73643         Based on a patch by Eric Blake <ebb9@byu.net>.
73645 2008-06-17  Bruno Haible  <bruno@clisp.org>
73647         * modules/tls (License): Change to LGPLv2+.
73648         Reported by Eric Blake.
73650 2008-06-17  Eric Blake  <ebb9@byu.net>
73652         Simplify c-stack prerequisites.
73653         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
73654         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
73655         no longer requires <ucontext.h> to exist.  Optimize setrlimit
73656         check.
73657         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
73658         <sys/resource.h>.
73660         Move c-stack test into testsuite.
73661         * modules/c-stack-tests: New file.
73662         * lib/c-stack.c [DEBUG]: Move test program...
73663         * tests/test-c-stack.c: ...into this new file.  Skip rather than
73664         fail test if sigaltstack is lacking.
73665         * tests/test-c-stack.sh: New driver file.
73667 2008-06-16  Eric Blake  <ebb9@byu.net>
73669         Use raise module consistently.
73670         * modules/fatal-signal (Depends-on): Add raise.
73671         * modules/sigprocmask (Depends-on): Likewise.
73672         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
73673         * lib/sigprocmask.c (sigprocmask): Likewise.
73674         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
73675         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
73677         Fix compliance bug in sigpending.
73678         * lib/sigprocmask.c (sigpending): Return pending array via
73679         parameter, not return value.
73681 2008-06-14  Eric Blake  <ebb9@byu.net>
73683         Improve obstack-printf test code.
73684         * tests/test-obstack-printf.c (test_function): Fix comment, and
73685         simplify usage of obstack_* in macros.  Add a test for coverage.
73686         Reported by Bruno Haible.
73688 2008-06-14  Bruno Haible  <bruno@clisp.org>
73690         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
73691         array size as a constant, not as a const variable.
73692         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
73693         AC_USE_SYSTEM_EXTENSIONS.
73694         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
73695         Test whether the obstack_printf function actually exists.
73696         * modules/obstack-printf (Depends-on): Add extensions.
73697         (Include): Remove obstack.h.
73698         * modules/obstack-printf-posix (Depends-on): Add extensions.
73699         (Include): Remove obstack.h.
73701 2008-06-13  Eric Blake  <ebb9@byu.net>
73703         Add obstack-printf and obstack-printf-posix modules.
73704         * modules/obstack-printf: New file.
73705         * modules/obstack-printf-posix: Likewise.
73706         * MODULES.html.sh (Misc): Mention them.
73707         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
73708         Likewise.
73709         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
73710         Likewise.
73711         * modules/stdio (Makefile.am): Accomodate new modules.
73712         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
73713         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
73714         Declare.
73715         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
73716         functions.
73717         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
73718         (gl_REPLACE_OBSTACK_PRINTF): New macros
73719         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
73720         * tests/test-obstack-printf.c: New file.
73721         * modules/obstack-printf-tests: Likewise.
73722         * modules/obstack-printf-posix-tests: Likewise.
73724 2008-06-11  Bruno Haible  <bruno@clisp.org>
73726         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
73727         * lib/open.c: Include errno.h.
73728         (open): Fail when attempting to write to a file that has a trailing
73729         slash.
73730         * tests/test-open.c (main): Test against trailing slash bug.
73731         * doc/posix-functions/open.texi: Mention the trailing slash bug.
73733 2008-06-10  Bruno Haible  <bruno@clisp.org>
73735         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
73736         for $? to work inside the trap command, with various /bin/sh-s.
73737         * tests/test-vc-list-files-cvs.sh: Likewise.
73739 2008-06-10  Bruno Haible  <bruno@clisp.org>
73741         * lib/acl-internal.h: Don't include gettext.h here.
73742         * lib/set-mode-acl.c: Include gettext.h here.
73743         * lib/copy-acl.c: Likewise.
73745 2008-06-10  Bruno Haible  <bruno@clisp.org>
73747         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
73748         * lib/wait-process.c (wait_subprocess): Likewise.
73749         * lib/execute.h (execute): Add termsigp argument.
73750         * lib/execute.c (execute): Likewise.
73751         * lib/csharpcomp.c (compile_csharp_using_pnet,
73752         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
73753         * lib/csharpexec.c (execute_csharp_using_pnet,
73754         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
73755         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
73756         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
73757         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
73758         is_jikes_present): Update.
73759         * lib/javaexec.c (execute_java_class): Update.
73760         * lib/javaversion.c (execute_and_read_line): Update.
73761         * NEWS: Document the changes.
73762         Reported by Eric Blake.
73764 2008-06-10  Eric Blake  <ebb9@byu.net>
73766         Add missing include.
73767         * tests/test-strstr.c (includes): Add <signal.h>.
73768         * tests/test-strcasestr.c (includes): Likewise.
73769         * tests/test-memmem.c (includes): Likewise.
73771 2008-06-10  Bruno Haible  <bruno@clisp.org>
73773         * lib/wait-process.c (wait_subprocess): Add an assertion.
73775 2008-06-10  Bruno Haible  <bruno@clisp.org>
73777         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
73779 2008-06-10  Bruno Haible  <bruno@clisp.org>
73781         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
73782         using alarm().
73783         * tests/test-strcasestr.c (main): Likewise.
73784         * tests/test-strstr.c (main): Likewise.
73786 2008-06-09  Bruno Haible  <bruno@clisp.org>
73788         Work around the Solaris 10 ACE ACLs ABI change.
73789         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
73790         declare if ACL_NO_TRIVIAL is present.
73791         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
73792         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
73793         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
73794         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
73795         define if ACL_NO_TRIVIAL is present.
73796         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
73797         and use the current ABI.
73798         (file_has_acl): Use same #if condition as elsewhere.
73799         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
73800         in use, and use the current ABI.
73801         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
73802         Reported by Jim Meyering.
73804 2008-06-09  Eric Blake  <ebb9@byu.net>
73806         Work around environments that (stupidly) ignore SIGALRM.
73807         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
73808         before using alarm().
73809         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
73810         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
73811         Reported by Ian Beckwith <ianb@erislabs.net>.
73813         Produce autobuild blurb earlier in log.
73814         * modules/autobuild (configure.ac-early): Move AB_INIT here.
73816 2008-06-09  Jim Meyering  <meyering@redhat.com>
73817         and Ondřej Vašík  <ovasik@redhat.com>
73819         utimens.c: correct kernel bug work-around
73820         Ondřej Vašík found that the invalid return value of 280 indicates
73821         failure, not success, and the kernel bug we're trying to work
73822         around affects not just the utimensat call, but also the fallback
73823         futimens call.
73824         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
73825         not success.
73826         [HAVE_FUTIMENS]: Use the same work-around, here.
73828 2008-06-09  Jim Meyering  <meyering@redhat.com>
73830         add more guards around definition of ACE_-related code
73831         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
73832         ALLOW and ACE_OWNER are also defined.
73834 2008-06-08  Bruno Haible  <bruno@clisp.org>
73836         * lib/acl-internal.h: Add me as co-author.
73837         * lib/file-has-acl.c: Likewise.
73838         * lib/set-mode-acl.c: Likewise.
73839         * lib/copy-acl.c: Likewise.
73841 2008-06-08  Bruno Haible  <bruno@clisp.org>
73843         Add support for AIX ACLs.
73844         * lib/acl-internal.h (acl_nontrivial): New declaration.
73845         * lib/file-has-acl.c (acl_nontrivial): New function.
73846         (file_has_acl): Add implementation using AIX 4 ACL API.
73847         * lib/set-mode-acl.c (qset_acl): Likewise.
73848         * lib/copy-acl.c (qcopy_acl): Likewise.
73850 2008-06-08  Bruno Haible  <bruno@clisp.org>
73852         Add support for HP-UX ACLs.
73853         * lib/acl-internal.h (acl_nontrivial): New declaration.
73854         * lib/file-has-acl.c (acl_nontrivial): New function.
73855         (file_has_acl): Add implementation using HP-UX 11 ACL API.
73856         * lib/set-mode-acl.c (qset_acl): Likewise.
73857         * lib/copy-acl.c (qcopy_acl): Likewise.
73859 2008-06-08  Bruno Haible  <bruno@clisp.org>
73861         Add support for Cygwin ACLs.
73862         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
73863         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
73864         the chmod_or_fchmod call.
73865         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
73867 2008-06-08  Bruno Haible  <bruno@clisp.org>
73869         Fix bug with setuid modes in Solaris 10+ code.
73870         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
73871         succeeded, when the mode contains some special bits.
73873 2008-06-08  Bruno Haible  <bruno@clisp.org>
73875         Add support for Solaris 7..10 ACLs.
73876         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
73877         declarations.
73878         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
73879         functions.
73880         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
73881         * lib/set-mode-acl.c (qset_acl): Likewise.
73882         * lib/copy-acl.c (qcopy_acl): Likewise.
73884 2008-06-08  Bruno Haible  <bruno@clisp.org>
73886         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
73887         declaration.
73888         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
73889         (acl_access_nontrivial): Remove MacOS X case.
73890         (file_has_acl): Use acl_extended_nontrivial.
73891         * lib/copy-acl.c (qcopy_acl): Likewise.
73893 2008-06-08  Bruno Haible  <bruno@clisp.org>
73895         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
73897 2008-06-08  Jim Meyering  <meyering@redhat.com>
73899         * modules/acl (Maintainer): Add Bruno Haible.
73901 2008-06-07  Bruno Haible  <bruno@clisp.org>
73903         Improve support for Tru64 ACLs.
73904         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
73905         ACL on OSF/1.
73907 2008-06-07  Bruno Haible  <bruno@clisp.org>
73909         Add support for MacOS X ACLs.
73910         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
73911         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
73912         * lib/set-mode-acl.c (qset_acl): Likewise.
73913         * lib/copy-acl.c (qcopy_acl): Likewise.
73915 2008-06-07  Bruno Haible  <bruno@clisp.org>
73917         Fix memory leak introduced on 2008-05-22.
73918         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
73919         use.
73921 2008-06-07  Bruno Haible  <bruno@clisp.org>
73923         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
73924         to construct an empty ACL.
73926 2008-06-07  Bruno Haible  <bruno@clisp.org>
73928         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
73929         precisely.
73930         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
73932 2008-06-07  Bruno Haible  <bruno@clisp.org>
73934         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
73935         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
73937 2008-06-07  Bruno Haible  <bruno@clisp.org>
73939         * doc/posix-functions/_setjmp.texi: Explain the use of this function
73940         regardless of POSIX.
73941         * doc/posix-functions/_longjmp.texi: Likewise.
73942         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
73943         SystemV platform in this case.
73945 2008-06-06  Eric Blake  <ebb9@byu.net>
73947         Document abort() bugs.
73948         * doc/posix-functions/abort.texi (abort): Mention anomalies.
73950         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
73951         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
73952         sigsetjmp.
73953         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
73954         siglongjmp, but only as a macro.
73955         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
73956         is obsolete.
73957         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
73959         Tweak documentation to cover cygwin argz bugs.
73960         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
73961         argz bug fix; no code change needed since no cygwin releases
73962         occurred between the last fix and the bug being tested.
73963         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
73964         module and recently fixed cygwin bugs.
73965         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
73966         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
73967         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
73968         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
73969         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
73970         Likewise.
73971         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
73972         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
73973         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
73974         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
73975         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
73976         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
73977         Likewise.
73979         Avoid gcc warning on cygwin.
73980         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
73981         !ACL_NO_TRIVIAL]: Avoid unused variable.
73983 2008-06-05  Eric Blake  <ebb9@byu.net>
73985         Be tolerant of UNKNOWN version in gnulib-tool test dir.
73986         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
73987         git-version-gen fails to come up with a version.
73988         Reported by Simon Josefsson.
73990 2008-06-05  Jim Meyering  <meyering@redhat.com>
73991             Paul Eggert  <eggert@cs.ucla.edu>
73993         utimens.c: work around a probable Linux kernel bug
73994         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
73995         appears to be a kernel bug that causes utimensat to return 280
73996         instead of 0, indicating success.
73998 2008-06-04  Bruno Haible  <bruno@clisp.org>
74000         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
74001         2008-06-01 commit.
74003 2008-06-04  Bruno Haible  <bruno@clisp.org>
74005         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
74006         * lib/file-has-acl.c (acl_access_nontrivial): New function.
74007         (file_has_acl): Use it. Save errno afterwards.
74008         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
74010 2008-06-03  Bruno Haible  <bruno@clisp.org>
74012         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
74013         draft code. Simplify #ifs.
74014         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
74015         Put Solaris code after POSIX-draft code. Fix comments regarding
74016         Solaris 10, HP-UX. Mention Cygwin.
74017         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
74019 2008-06-03  Eric Blake  <ebb9@byu.net>
74021         Provide fallback for older kernels.
74022         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
74023         Provide runtime fallback if kernel lacks support.
74024         Reported by Mike Frysinger.
74026 2008-06-02  Bruno Haible  <bruno@clisp.org>
74028         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
74029         it exists.
74031 2008-06-02  Bruno Haible  <bruno@clisp.org>
74033         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
74034         * lib/copy-acl.c (qcopy_acl): Update comment.
74036 2008-06-02  Bruno Haible  <bruno@clisp.org>
74038         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
74039         like ACL APIs.
74041 2008-06-02  Bruno Haible  <bruno@clisp.org>
74043         * tests/test-file-has-acl.sh: Use different code for Cygwin.
74044         * tests/test-set-mode-acl.sh: Likewise.
74045         * tests/test-copy-acl.sh: Likewise.
74046         * tests/test-copy-file.sh: Likewise.
74048 2008-06-02  Bruno Haible  <bruno@clisp.org>
74050         * tests/test-file-has-acl.sh: Remove unused code.
74052 2008-06-01  Bruno Haible  <bruno@clisp.org>
74054         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
74055         (copy_acl): Just a wrapper around qcopy_acl that emits the error
74056         messages.
74057         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
74059 2008-06-01  Bruno Haible  <bruno@clisp.org>
74061         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
74062         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
74063         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
74064         APIs.
74065         * modules/acl-tests (configure.ac): Remove tests now contained in
74066         m4/acl.m4.
74068 2008-06-02  Jim Meyering  <meyering@redhat.com>
74070         announce-gen: use a better key-server host name
74071         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
74072         it may be more consistently reliable.  Suggested by Werner Koch
74073         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
74075 2008-06-01  Bruno Haible  <bruno@clisp.org>
74077         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
74078         Reported by Voroskoi Andras <voroskoi@gmail.com>.
74080 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
74082         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
74084 2008-06-01  Bruno Haible  <bruno@clisp.org>
74086         New ACL tests.
74087         * tests/test-file-has-acl.sh: New file.
74088         * tests/test-file-has-acl.c: New file.
74089         * tests/test-set-mode-acl.sh: New file.
74090         * tests/test-set-mode-acl.c: New file.
74091         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
74092         * tests/test-copy-acl.c: New file.
74093         * modules/acl-tests: New file, based on modules/copy-file-tests.
74094         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
74095         (Depends-on): Add acl-tests.
74096         (configure.ac): Remove checks.
74097         (Makefile.am): Don't create test-sameacls program here any more.
74099 2008-06-01  Bruno Haible  <bruno@clisp.org>
74101         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
74102         * tests/test-sameacls.c: Include progname.h.
74103         (main): Invoke set_program_name. Portability fixes for MacOS X,
74104         Solaris, HP-UX.
74106 2008-06-01  Bruno Haible  <bruno@clisp.org>
74108         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
74109         function.
74110         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
74112 2008-06-01  Bruno Haible  <bruno@clisp.org>
74114         * modules/rpmatch (Depends-on): Add strdup.
74116 2008-06-01  Bruno Haible  <bruno@clisp.org>
74118         * lib/pipe.c: Include unistd-safer.h.
74119         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
74120         * modules/pipe (Depends-on): Add unistd-safer.
74122 2008-05-30  Simon Josefsson  <simon@josefsson.org>
74124         * modules/autobuild (configure.ac): Call AB_INIT.
74126 2008-05-30  Simon Josefsson  <simon@josefsson.org>
74128         * tests/test-getaddrinfo.c: Don't print debug messages by default.
74129         Suggested by Bruno Haible <bruno@clisp.org>.
74131 2008-05-30  Simon Josefsson  <simon@josefsson.org>
74133         * tests/test-base64.c: Cast size_t to unsigned long when invoking
74134         printf.  Use %lu instead of %d.  Reported by Bruno Haible
74135         <bruno@clisp.org>.
74137 2008-05-29  Eric Blake  <ebb9@byu.net>
74139         Prefer new POSIX 200x interfaces over futimesat.
74140         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
74141         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
74142         when available.
74143         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
74145 2008-05-28  Bruno Haible  <bruno@clisp.org>
74147         * modules/stpcpy (License): Change to LGPLv2+.
74148         Requested by David Lutterkort <dlutter@redhat.com>.
74150 2008-05-27  Bruno Haible  <bruno@clisp.org>
74152         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
74153         current mingw.
74154         Reported by Jose E. Marchesi <jemarch@gnu.org>.
74156 2008-05-27  Bruno Haible  <bruno@clisp.org>
74158         * modules/iconv_open (Link): New section, from module 'iconv'.
74159         * modules/striconv (Link): Likewise.
74160         * modules/striconveh (Link): Likewise.
74161         * modules/xstriconv (Link): Likewise.
74162         * modules/unicodeio (Link): Likewise.
74163         * modules/propername (Link): Likewise.
74164         Reported by Jim Meyering.
74166 2008-05-26  Jim Meyering  <meyering@redhat.com>
74168         sha256: do not artificially restrict buffer length to be < 2^32
74169         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
74170         uint32_t to size_t.
74171         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
74172         to match.
74174         avoid unaligned access errors, e.g., on sparc
74175         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
74176         direct access through a possibly-unaligned uint64* pointer.
74177         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
74178         direct access through a possibly-unaligned uint32* pointer.
74179         Prompted by this patch from Tom "spot" Callaway:
74180         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
74182         sha512.c: fix typo in comment
74183         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
74185 2008-05-25  Bruno Haible  <bruno@clisp.org>
74187         * lib/set-mode-acl.c: Renamed from lib/acl.c.
74188         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
74189         (Makefile.am): Update lib_SOURCES.
74191 2008-05-25  Bruno Haible  <bruno@clisp.org>
74193         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
74195 2008-05-25  Jim Meyering  <meyering@redhat.com>
74197         useless-if-before-free: freed expr may have white-space differences
74198         * build-aux/useless-if-before-free: Recognize cases in which the
74199         freed expression differs from the tested one in embedded white
74200         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
74201         $1 was used, so we can't make any regexp shy.  Improved tests now
74202         detect this.
74204         useless-if-before-free: accept white space in the expression.
74205         * build-aux/useless-if-before-free: For now, any white space
74206         in the expression must be identical in the free argument.
74208         useless-if-before-free: efficiency tweak
74209         * build-aux/useless-if-before-free: Make the expression-matching
74210         regexp "shy".
74211         Make the *outer* regexp shy, not the expr-matching one.
74213         update code-in-comment to accept cast of free arg
74214         * build-aux/useless-if-before-free: Update regexp.
74216 2008-05-25  Bruno Haible  <bruno@clisp.org>
74218         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
74219         * modules/copy-file-tests (Files, Makefile.am): Update.
74220         * tests/test-copy-file.c (func_test_copy): Update.
74222 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
74224         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
74226 2008-05-23  Bruno Haible  <bruno@clisp.org>
74228         Improve support for ACLs on OSF/1.
74229         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
74230         Remove fallback for unknown flavors of ACLs.
74232 2008-05-22  Bruno Haible  <bruno@clisp.org>
74234         Add support for ACLs on OSF/1.
74235         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
74236         replacements.
74237         (acl_free_text): New macro fallback.
74238         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
74239         acl_free.
74240         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
74241         acl_free_text function. Require AC_C_INLINE.
74243 2008-05-22  Bruno Haible  <bruno@clisp.org>
74245         Make copy_acl work on MacOS X 10.5.
74246         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
74247         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
74248         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
74249         If MODE_INSIDE_ACL, don't assume that every system has the same text
74250         representation for ACLs as FreeBSD.
74251         * lib/copy-acl.c (copy_acl): Add support for platforms with
74252         !MODE_INSIDE_ACL.
74253         * lib/file-has-acl.c (file_has_acl): Likewise.
74254         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
74255         FreeBSD, MacOS X, or IRIX, respectively.
74257 2008-05-22  Bruno Haible  <bruno@clisp.org>
74259         * lib/acl.h: Don't include <sys/acl.h>.
74260         (GETACLCNT): Move fallback to lib/acl-internal.h.
74261         * lib/acl-internal.h: Include <sys/acl.h> here.
74262         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
74264 2008-05-22  Bruno Haible  <bruno@clisp.org>
74266         Split off copy_acl function to separate file.
74267         * lib/copy-acl.c: New file, extracted from lib/acl.c.
74268         * lib/acl.c (copy_acl): Moved function to separate file.
74269         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
74270         * modules/acl (Files): Add lib/copy-acl.c.
74271         (Makefiles.am): Augment lib_SOURCES.
74273 2008-05-22  Bruno Haible  <bruno@clisp.org>
74275         * modules/copy-file-tests: New file.
74276         * tests/test-copy-file.sh: New file.
74277         * tests/test-copy-file.c: New file.
74278         * tests/test-copy-file-sameacls.c: New file.
74280 2008-05-22  Eric Blake  <ebb9@byu.net>
74282         Avoid gcc warning.
74283         * tests/test-memcmp.c (main): Pass NULL indirectly.
74285 2008-05-21  Bruno Haible  <bruno@clisp.org>
74287         Add reference doc about ACLs.
74288         * doc/acl-resources.txt: New file.
74289         * doc/acl-cygwin.txt: New file.
74291 2008-05-21  Bruno Haible  <bruno@clisp.org>
74293         Avoid one more warning from gcc.
74294         * lib/vasnprintf.c (IF_LINT): Update comments.
74295         (VASNPRINTF): Use it also for the 'prefix' array initializer.
74297 2008-05-21  Jim Meyering  <meyering@redhat.com>
74299         avoid a warning from gcc
74300         * lib/vasnprintf.c (IF_LINT): Define.
74301         (scale10_round_decimal_long_double):
74302         Use it to avoid a "may be used uninitialized" warning.
74303         (scale10_round_decimal_double): Likewise.
74305 2008-05-21  Simon Josefsson  <simon@josefsson.org>
74307         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
74308         declared.
74310 2008-05-20  Bruno Haible  <bruno@clisp.org>
74312         * tests/test-memcmp.c (main): Test also the sign of the result. Test
74313         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
74315 2008-05-20  Simon Josefsson  <simon@josefsson.org>
74317         * modules/memcmp-tests: New file.
74318         * tests/test-memcmp.c: New file.
74320 2008-05-19  Bruno Haible  <bruno@clisp.org>
74322         * modules/propername (Notice, configure.ac): Put quoted "..." into
74323         --keyword option.
74324         * lib/propername.h: Update comments accordingly.
74325         Reported by Eric Blake.
74327 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
74329         * modules/getpass-gnu (Depends-on): Add fseeko.
74331 2008-05-19  Simon Josefsson  <simon@josefsson.org>
74333         * modules/base64-tests: New file.
74335 2008-05-19  Bo Borgerson  <gigabo@gmail.com>
74337         * lib/base64.c (base64_decode_ctx): If a decode context structure
74338         was passed in use it to ignore newlines.  If a context structure
74339         was _not_ passed in, continue to treat newlines as garbage (this
74340         is the historical behavior).  Formerly base64_decode.
74341         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
74342         takes a decode context structure.
74343         * lib/base64.h (base64_decode): Macro for four-argument calls.
74344         (base64_decode_alloc): Likewise.
74345         * lib/base64.c (base64_decode_ctx): If a decode context structure
74346         was passed in use it to ignore newlines.  If a context structure
74347         was _not_ passed in, continue to treat newlines as garbage (this
74348         is the historical behavior).  Formerly base64_decode.
74349         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
74350         takes a decode context structure.
74351         * lib/base64.h (base64_decode): Macro for four-argument calls.
74352         (base64_decode_alloc): Likewise.
74354 2008-05-19  Jim Meyering  <meyering@redhat.com>
74356         avoid a warning from gcc
74357         * lib/trim.c (IF_LINT): Define.
74358         (trim2): Use it to avoid a "may be used uninitialized" warning.
74360         Fix doc typo.
74361         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
74363 2008-05-19  Bruno Haible  <bruno@clisp.org>
74365         * doc/glibc-functions/getpass.texi: Document limits of other
74366         implementations.
74368 2008-05-19  Simon Josefsson  <simon@josefsson.org>
74369             Bruno Haible <bruno@clisp.org>
74371         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
74373 2008-05-18  Bruno Haible  <bruno@clisp.org>
74375         * modules/propername: New file, from GNU gettext.
74376         * lib/propername.h: New file, from GNU gettext.
74377         * lib/propername.c: New file, from GNU gettext.
74378         * MODULES.html.sh (Internationalization functions): Add propername.
74380 2008-05-16  Jim Meyering  <meyering@redhat.com>
74381             Bruno Haible  <bruno@clisp.org>
74383         Avoid some warnings from "gcc -Wshadow".
74384         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
74386 2008-05-15  Eric Blake  <ebb9@byu.net>
74388         Extend previous patch to cygwin 1.7.0.
74389         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
74390         fast implementation in cygwin >= 1.7.0.
74391         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
74392         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
74394 2008-05-15  Bruno Haible  <bruno@clisp.org>
74396         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
74397         implementation in glibc >= 2.9.
74398         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
74399         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
74401 2008-05-15  Bruno Haible  <bruno@clisp.org>
74403         * MODULES.html.sh (Internationalization functions): Remove linebreak.
74404         (Unicode string functions): Add unilbrk/*.
74405         Reported by Karl Berry.
74407 2008-05-15  Eric Blake  <ebb9@byu.net>
74409         Fix violation of <stdbool.h> replacement in regex.
74410         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
74411         * lib/regexec.c (re_search_internal): Likewise.
74412         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
74414 2008-05-15  Jim Meyering  <meyering@redhat.com>
74416         avoid distracting test output when git or cvs is not found
74417         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
74418         * tests/test-vc-list-files-git.sh: Likewise.
74420 2008-05-15  Eric Blake  <ebb9@byu.net>
74422         Glibc finally accepted the memmem speedup code, bugzilla #5514.
74423         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
74424         glibc version.
74425         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
74426         * doc/posix-functions/strstr.texi (strstr): Likewise.
74427         * lib/str-two-way.h (MAX): Sychronize with glibc.
74429 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
74431         * lib/regcomp.c (optimize_utf8): Add a note on why we test
74432         opr.ctx_type.
74433         (calc_first): Initialize constraint field.
74434         (duplicate_node_closure): Use it instead of special casing ANCHORS.
74435         Fix grammar.
74436         (duplicate_node): Merge constraint field for all node types.
74437         (calc_eclosure_iter): Look at constraint field for all node types.
74438         * lib/regex_internal.c (create_cd_newstate): Don't look at
74439         opr.ctx_type.
74441 2008-05-14  Bruno Haible  <bruno@clisp.org>
74443         Help GCC to do better code generation.
74444         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
74445         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
74446         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
74447         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
74448         Declare with attribute 'malloc' if supported.
74450 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
74452         use "echo STR|wc -c" rather than unportable "expr length STR"
74453         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
74454         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
74456 2008-05-14  Jim Meyering  <meyering@redhat.com>
74458         use dd ibs=$n count=1 ... rather than less-portable head -c$n
74459         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
74460         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
74461         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
74462         via Collin Lasse.
74464 2008-05-14  Eric Blake  <ebb9@byu.net>
74466         Avoid quadratic growth in gl_LIBSOURCES.
74467         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
74468         Suggested by Bruno Haible.
74470         Test xmemdup0.
74471         * modules/xmemdup0-tests: New file.
74472         * tests/test-xmemdup0.c: Likewise.
74474 2008-05-13  Eric Blake  <ebb9@byu.net>
74476         Split xmemdup0 into its own module.
74477         * modules/xmemdup0: New file.
74478         * lib/xmemdup0.h: Likewise.
74479         * lib/xmemdup0.c: Likewise.
74480         * MODULES.html.sh (Memory management functions): Add xmemdup0.
74481         * lib/xalloc.h (xmemdup0): Remove.
74482         * lib/xmalloc.c (xmemdup0): Likewise.
74484 2008-05-13  Eric Blake  <ebb9@byu.net>
74485             Bruno Haible  <bruno@clisp.org>
74487         Reduce number of forks required during autoconf.
74488         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
74489         and gl_LIBSOURCES_DIR.
74490         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
74491         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
74492         m4_syscmd per file.
74493         <m4_foreach_w>: Move...
74494         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
74496 2008-05-13  Eric Blake  <ebb9@byu.net>
74498         * gnulib-tool: Fix various comment typos.
74500 2008-05-12  Bruno Haible  <bruno@clisp.org>
74502         Tailor the linebreaking algorithm.
74503         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
74505 2008-05-12  Bruno Haible  <bruno@clisp.org>
74507         Update to Unicode 5.0.0.
74508         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
74509         LBP_JV, LBP_JT. Redistribute values.
74510         (unilbrk_table): Change size.
74511         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
74512         Unicode TR#14 rev. 22.
74513         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
74514         LBP_JV, LBP_JT. Redistribute values.
74515         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
74516         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
74517         Update.
74518         * lib/unilbrk/lbrkprop1.h: Regenerated.
74519         * lib/unilbrk/lbrkprop2.h: Regenerated.
74520         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
74521         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
74522         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
74523         Likewise.
74524         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
74525         Likewise.
74526         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
74527         result.
74528         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
74529         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
74530         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
74531         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
74532         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
74533         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
74535 2008-05-11  Bruno Haible  <bruno@clisp.org>
74537         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
74539 2008-05-11  Bruno Haible  <bruno@clisp.org>
74541         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
74542         * modules/unilbrk/gen-lbrk: New file.
74544 2008-05-11  Bruno Haible  <bruno@clisp.org>
74546         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
74547         * m4/sha512.m4 (gl_SHA512): Likewise.
74549 2008-05-11  Jim Meyering  <meyering@redhat.com>
74551         New modules: crypto/sha256, crypto/sha512 (from coreutils)
74552         * modules/crypto/sha256: New file.
74553         * modules/crypto/sha512: Likewise.
74554         * lib/sha256.c: Likewise.
74555         * lib/sha256.h: Likewise.
74556         * lib/sha512.c: Likewise.
74557         * lib/sha512.h: Likewise.
74558         * lib/u64.h: Likewise.
74559         * m4/sha256.m4: Likewise.
74560         * m4/sha512.m4: Likewise.
74561         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
74563 2008-05-10  Bruno Haible  <bruno@clisp.org>
74565         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
74566         (Input/Output <stdio.h>): Add xprintf.
74567         (Signal handling <signal.h>): Add strsignal.
74568         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
74569         (Core language properties): Add func.
74570         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
74571         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
74572         strings.
74573         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
74574         (Input/output): New section.
74575         (File system functions): Add openat-die, stat-macros.
74576         (Networking functions): Add sockets.
74577         (Unicode string functions): Add unictype/*.
74578         (Support for building libraries and executables): Add gperf.
74579         (Support for building documentation): Add agpl-3.0.
74580         (Misc): Add nocrash.
74582 2008-05-10  Bruno Haible  <bruno@clisp.org>
74584         * modules/unictype/gen-ctype: New file.
74586 2008-05-10  Jim Meyering  <meyering@redhat.com>
74588         Make chdir-safer.c more efficient on a system with no symlinks.
74589         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
74590         also if ELOOP is zero.  Suggested by Bruno Haible.
74592         Make chdir-safer.c slightly safer.
74593         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
74594         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
74596         Avoid compile failure on systems without ELOOP (like mingw).
74597         * lib/chdir-safer.c (ELOOP): Define if not already defined.
74598         Reported by Bruno Haible.
74600 2008-05-10  Bruno Haible  <bruno@clisp.org>
74602         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
74603         (is_utf8_encoding): Use a case-insensitive comparison.
74604         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
74605         streq.
74607 2008-05-10  Bruno Haible  <bruno@clisp.org>
74609         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
74610         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
74611         * lib/unilbrk/ulc-common.h (iconv_string_length,
74612         iconv_string_keeping_offsets): Remove declarations.
74613         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
74614         Don't include <iconv.h>, streq.h, xsize.h.
74615         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
74616         conversion.
74617         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
74618         <iconv.h>, streq.h, xsize.h.
74619         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
74620         conversion.
74621         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
74622         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
74623         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
74624         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
74626 2008-05-10  Bruno Haible  <bruno@clisp.org>
74628         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
74629         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
74631         * modules/unilbrk/u32-width-linebreaks-tests: New file.
74632         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
74634         * modules/unilbrk/u16-width-linebreaks-tests: New file.
74635         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
74637         * modules/unilbrk/u8-width-linebreaks-tests: New file.
74638         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
74640         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
74641         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
74643         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
74644         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
74646         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
74647         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
74649         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
74650         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
74652 2008-05-10  Bruno Haible  <bruno@clisp.org>
74654         Split up 'linebreak' module.
74655         * lib/unilbrk.h: New file, based on lib/linebreak.h.
74656         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
74657         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
74658         modifications.
74659         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
74660         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
74661         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
74662         lib/linebreak.c.
74663         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
74664         lib/linebreak.c.
74665         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
74666         lib/linebreak.c.
74667         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
74668         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
74669         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
74670         lib/linebreak.c.
74671         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
74672         lib/linebreak.c.
74673         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
74674         lib/linebreak.c.
74675         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
74676         lib/linebreak.c.
74677         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
74678         lib/linebreak.c.
74679         * modules/unilbrk/base: New file.
74680         * modules/unilbrk/tables: New file.
74681         * modules/unilbrk/u8-possible-linebreaks: New file.
74682         * modules/unilbrk/u16-possible-linebreaks: New file.
74683         * modules/unilbrk/u32-possible-linebreaks: New file.
74684         * modules/unilbrk/ulc-common: New file.
74685         * modules/unilbrk/ulc-possible-linebreaks: New file.
74686         * modules/unilbrk/u8-width-linebreaks: New file.
74687         * modules/unilbrk/u16-width-linebreaks: New file.
74688         * modules/unilbrk/u32-width-linebreaks: New file.
74689         * modules/unilbrk/ulc-width-linebreaks: New file.
74690         * lib/linebreak.h: Remove file.
74691         * lib/linebreak.c: Remove file.
74692         * m4/linebreak.m4: Remove file.
74693         * modules/linebreak: Remove file.
74694         * NEWS: Mention the changes.
74696 2008-05-09  Eric Blake  <ebb9@byu.net>
74698         Add xmemdup0.
74699         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
74700         implementation.
74701         * lib/xmalloc.c (xmemdup0): New C implementation.
74703 2008-05-08  Bruno Haible  <bruno@clisp.org>
74705         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
74707 2008-05-07  Eric Blake  <ebb9@byu.net>
74709         Support cross-compilation of <wctype.h>.
74710         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
74711         AC_CACHE_CHECK.
74713 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
74715         * build-aux/vc-list-files: Add support for bzr.
74717 2008-05-03  Jim Meyering  <meyering@redhat.com>
74719         avoid failed assertion with tight malloc
74720         * tests/test-getndelim2.c: Correct an off-by-one assertion.
74722 2008-05-03  Simon Josefsson  <simon@josefsson.org>
74724         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
74725         are needed from arpa/inet.h.
74726         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
74727         Reported by Bruno Haible.
74729 2008-05-02  Jim Meyering  <meyering@redhat.com>
74731         avoid compilation error on FreeBSD 6
74732         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
74734 2008-05-01  Jim Meyering  <meyering@redhat.com>
74736         useless-if-before-free: correct --help's exit status description
74737         * build-aux/useless-if-before-free (usage): Like grep, exit 0
74738         for one or more matches, etc.  Reported by Bruno Haible.
74740         vc-list-files: make the stand-alone gnulib test work
74741         * modules/vc-list-files-tests (configure.ac):
74742         Define and AC_SUBST abs_aux_dir.
74743         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
74744         $(abs_top_srcdir) to each script and having each of them
74745         duplicate the work of setting PATH, set PATH here, using
74746         the new variable, abs_aux_dir instead.
74747         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
74748         * tests/test-vc-list-files-git.sh: Likewise.
74749         Reported by Bruno Haible.
74751 2008-05-01  Bruno Haible  <bruno@clisp.org>
74753         * lib/getndelim2.c (getndelim2): Fix newsize computation during
74754         reallocation. Rename 'done' to 'found_delimiter'.
74756 2008-05-01  Jim Meyering  <meyering@redhat.com>
74758         vc-list-files: accommodate /bin/sh like the one from Solaris 10
74759         * build-aux/vc-list-files: Use `...`, not $(...).
74761 2008-04-30  Jim Meyering  <meyering@redhat.com>
74763         add tests for vc-list-files
74764         * modules/vc-list-files-tests: New module.
74765         * tests/test-vc-list-files-cvs.sh: New file.
74766         * tests/test-vc-list-files-git.sh: New file.
74768         avoid a warning from gcc
74769         * lib/getndelim2.c (IF_LINT): Define.
74770         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
74772         vc-list-files: work properly with build-aux/cvsu, too
74773         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
74774         to all cvs-based clauses.
74776         vc-list-files: work properly in the CVS+awk case, too
74777         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
74779         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
74780         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
74781         take more than one file argument, so .  Add quotes, just in case $dir
74782         ever contains a shell meta-character.  Prompted by Soren Hansen in
74783         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
74785 2008-04-29  Eric Blake  <ebb9@byu.net>
74787         Optimize getndelim2 to use block operations when possible.
74788         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
74789         freadseek, and memchr2.
74790         * lib/getndelim2.c (getndelim2): Use them for block reads.
74792 2008-04-29  Bruno Haible  <bruno@clisp.org>
74794         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
74795         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
74796         * modules/inet_ntop (Depends-on): Add extensions.
74797         * modules/inet_pton (Depends-on): Likewise.
74798         Reported by Simon Josefsson.
74800 2008-04-29  Jim Meyering  <meyering@redhat.com>
74802         When the is more than one match in a block, match all of them.
74803         * build-aux/useless-if-before-free: Iterate through each block
74804         until there are no more matches.
74806         Fix broken useless-if-before-free script.
74807         * build-aux/useless-if-before-free: Fix typo: missing "?" after
74808         the expression to match cast of argument to free-like function.
74810 2008-04-29  Eric Blake  <ebb9@byu.net>
74812         Use new header.
74813         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
74815 2008-04-29  Jim Meyering  <meyering@redhat.com>
74817         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
74818         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
74819         by gnulib to exist and to declare e.g., inet_ntop.
74820         Don't include "inet_ntop.h", now removed.
74822         * m4/arpa_inet_h.m4: Remove trailing blanks.
74824 2008-04-29  Eric Blake  <ebb9@byu.net>
74826         Silence valgrind on safe reads beyond potential array bounds.
74827         * lib/rawmemchr.valgrind: New file.
74828         * lib/strchrnul.valgrind: Likewise.
74829         * modules/rawmemchr (Files): Distribute new file.
74830         * modules/strchrnul (Files): Likewise.
74831         Suggested by Bruno Haible.
74833 2008-04-29  Bruno Haible  <bruno@clisp.org>
74835         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
74836         (inet_ntop, inet_pton): Change portability warning's wording.
74837         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
74838         Invoke gl_CHECK_NEXT_HEADERS.
74839         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
74840         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
74841         set ARPA_INET_H.
74842         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
74843         * modules/arpa_inet (Description): No longer only for systems that
74844         lack it.
74845         (Depends-on): Add include_next.
74846         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
74847         HAVE_ARPA_INET_H.
74849 2008-04-29  Jim Meyering  <meyering@redhat.com>
74851         * modules/mkdir (License): Re-license as LGPLv2+.
74853 2008-04-29  Bruno Haible  <bruno@clisp.org>
74855         * modules/rawmemchr (Maintainer): Set to Eric.
74856         * modules/strchrnul (Maintainer): Likewise.
74858 2008-04-29  Simon Josefsson  <simon@josefsson.org>
74860         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
74861         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
74863         * modules/arpa_inet (arpa/inet.h): Use them.
74865 2008-04-28  Eric Blake  <ebb9@byu.net>
74867         Test getndelim2.
74868         * modules/getndelim2-tests: New file.
74869         * tests/test-getndelim2.c: Likewise.
74870         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
74871         stream.
74872         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
74874         * MODULES.html.sh: Document new module.
74876 2008-04-20  Bruno Haible  <bruno@clisp.org>
74878         * lib/c-stack.c (die): Use raise.
74879         * modules/c-stack (Depends-on): Add raise.
74881 2008-04-28  Bruno Haible  <bruno@clisp.org>
74883         Expect rpmatch to be declared.
74884         * lib/yesno.c (rpmatch): Remove declaration.
74886         Declare rpmatch.
74887         * lib/stdlib.in.h (rpmatch): New declaration.
74888         * lib/rpmatch.c: Include <stdlib.h> first.
74889         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
74890         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
74891         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
74892         HAVE_RPMATCH.
74893         * modules/rpmatch (Depends-on): Add stdlib, extensions.
74894         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
74895         (Include): Set to <stdlib.h>.
74896         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
74897         HAVE_RPMATCH.
74898         * NEWS: Document the change.
74900 2008-04-28  Bruno Haible  <bruno@clisp.org>
74902         Change rpmatch to use nl_langinfo when appropriate.
74903         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
74904         (N_): New macro.
74905         (localized_pattern): New function/macro.
74906         (try): Remove match, nomatch arguments. Copy the pattern into safe
74907         memory before caching it.
74908         (rpmatch): Use localized_pattern. Add translator comments.
74909         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
74910         Suggested by Eric Blake.
74911         * modules/rpmatch (Depends-on): Add stdbool.
74913 2008-04-28  Eric Blake  <ebb9@byu.net>
74915         Add rawmemchr module, matching glibc.
74916         * modules/string (Makefile.am): New indicator.
74917         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
74918         * lib/string.in.h (rawmemchr): Declare when appropriate.
74919         * modules/rawmemchr: New file.
74920         * m4/rawmemchr.m4: Likewise.
74921         * lib/rawmemchr.c: Likewise.
74922         * modules/rawmemchr-tests: Likewise.
74923         * tests/test-rawmemchr.c: Likewise.
74924         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
74925         module.
74926         * modules/strchrnul (Depends-on): Add rawmemchr.
74927         * lib/strchrnul.c (strchrnul): Optimize a corner case.
74929         Whitespace cleanup.
74930         * tests/test-strchrnul.c: Reindent.
74931         * lib/strchrnul.c: Likewise.
74933         Optimize and test strchrnul.
74934         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
74935         * modules/strchrnul-tests: New file.
74936         * tests/test-strchrnul.c: Likewise.
74938         Remove intprops dependency.
74939         * modules/memchr (Depends-on): Remove intprops.
74940         * modules/memrchr (Depends-on): Likewise.
74941         * modules/memchr2 (Depends-on): Likewise.
74942         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
74943         * lib/memrchr.c (__memrchr): Likewise.
74944         * lib/memrchr2.c (memchr2): Likewise.
74945         Reported by Simon Josefsson.
74947 2008-04-28  Simon Josefsson  <simon@josefsson.org>
74949         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
74950         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
74952 2008-04-28  Simon Josefsson  <simon@josefsson.org>
74954         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
74956         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
74958         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
74960         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
74961         declarations.
74962         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
74964         * m4/inet_pton.m4: Don't check for header files.
74966         * m4/inet_ntop.m4: Don't check for header files.
74968 2008-04-28  Simon Josefsson  <simon@josefsson.org>
74970         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
74971         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
74972         trigger for cygwin).
74973         Reported by Bruno Haible  <bruno@clisp.org>.
74975 2008-04-28  Bruno Haible  <bruno@clisp.org>
74977         * doc/posix-functions/strdup.texi: Mention mingw problem.
74979 2008-04-27  Bruno Haible  <bruno@clisp.org>
74981         * modules/stat-time-tests (Depends-on): Add sleep.
74982         * tests/test-stat-time.c (force_unlink): New function.
74983         (cleanup): Use it.
74984         (test_mtime): Remove the ctime related tests.
74985         (test_ctime): New function, containing the ctime related tests.
74986         (main): Call test_ctime, except on native Windows platforms.
74988 2008-04-27  Bruno Haible  <bruno@clisp.org>
74990         * lib/rpmatch.c (rpmatch): Add some comments.
74991         Reported by James Youngman <jay@gnu.org>.
74993 2008-04-27  Bruno Haible  <bruno@clisp.org>
74995         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
74996         quiet NaNs.
74998 2008-04-27  Bruno Haible  <bruno@clisp.org>
75000         Make test-yesno.sh work on mingw.
75001         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
75002         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
75003         (main): Set stdin to binary mode.
75004         * modules/yesno-tests (Depends-on): Add binary-io.
75006 2008-04-27  Bruno Haible  <bruno@clisp.org>
75008         Fix 'isfinite' on x86, x86_64, ia64 platforms.
75009         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
75010         argument that lie outside the IEEE 854 domain.
75011         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
75012         (gl_ISFINITE): Use it.
75013         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
75015 2008-04-27  Bruno Haible  <bruno@clisp.org>
75017         Allow local renaming in config.h.
75018         * lib/memrchr.c (memrchr): Don't undefine outside libc.
75020 2008-04-27  Bruno Haible  <bruno@clisp.org>
75022         * lib/memchr.c (__memchr): Change type of 'i'.
75023         * lib/memchr2.c (memchr2): Likewise.
75025 2008-04-26  Eric Blake  <ebb9@byu.net>
75026         and Bruno Haible  <bruno@clisp.org>
75028         Optimize and test memrchr.
75029         * modules/memrchr (Depends-on): Add intprops.
75030         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
75031         * modules/memrchr-tests: New file.
75032         * tests/test-memrchr.c: New file.
75034 2008-04-26  Bruno Haible  <bruno@clisp.org>
75036         Add tentative support for DragonFly BSD.
75037         * lib/stdio-impl.h: Add macros for DragonFly BSD.
75038         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
75039         fp.
75040         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
75041         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
75042         * lib/fpurge.c (fpurge): Likewise.
75043         * lib/freadable.c (freaadable): Likewise.
75044         * lib/freadahead.c (freadahead): Likewise.
75045         * lib/freading.c (freading): Likewise.
75046         * lib/freadptr.c (freadptr): Likewise.
75047         * lib/freadseek.c (freadptrinc): Likewise.
75048         * lib/fseeko.c (fseeko): Likewise.
75049         * lib/fseterr.c (fseterr): Likewise.
75050         * lib/fwritable.c (fwritable): Likewise.
75051         * lib/fwriting.c (fwriting): Likewise.
75053 2008-04-26  Bruno Haible  <bruno@clisp.org>
75055         * lib/stdio-impl.h: New file.
75056         * lib/fbufmode.c: Include stdio-impl.h.
75057         (fbufmode): Use fp_, remove redundant #defines.
75058         * lib/fflush.c: Include stdio-impl.h.
75059         (clear_ungetc_buffer): Remove redundant #defines.
75060         * lib/fpurge.c: Include stdio-impl.h.
75061         (fpurge): Remove redundant #defines.
75062         * lib/freadable.c: Include stdio-impl.h.
75063         (freadable): Remove redundant #defines.
75064         * lib/freadahead.c: Include stdio-impl.h.
75065         (freadahead): Remove redundant #defines.
75066         * lib/freading.c: Include stdio-impl.h.
75067         (freading): Remove redundant #defines.
75068         * lib/freadptr.c: Include stdio-impl.h.
75069         (freadptr): Remove redundant #defines.
75070         * lib/freadseek.c: Include stdio-impl.h.
75071         (freadptrinc): Remove redundant #defines.
75072         * lib/fseeko.c: Include stdio-impl.h.
75073         (rpl_fseeko): Remove redundant #defines.
75074         * lib/fseterr.c: Include stdio-impl.h.
75075         (fseterr): Remove redundant #defines.
75076         * lib/fwritable.c: Include stdio-impl.h.
75077         (fwritable: Remove redundant #defines.
75078         * lib/fwriting.c: Include stdio-impl.h.
75079         (fwriting): Remove redundant #defines.
75080         * modules/fbufmode (Files): Add lib/stdio-impl.h.
75081         * modules/fflush (Files): Likewise.
75082         * modules/fpurge (Files): Likewise.
75083         * modules/freadable (Files): Likewise.
75084         * modules/freadahead (Files): Likewise.
75085         * modules/freading (Files): Likewise.
75086         * modules/freadptr (Files): Likewise.
75087         * modules/freadseek (Files): Likewise.
75088         * modules/fseeko (Files): Likewise.
75089         * modules/fseterr (Files): Likewise.
75090         * modules/fwritable (Files): Likewise.
75091         * modules/fwriting (Files): Likewise.
75093 2008-04-26  Bruno Haible  <bruno@clisp.org>
75095         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
75096         restore_seek_optimization, update_fpos_cache): New functions, extracted
75097         from rpl_fflush.
75098         (rpl_fflush): Use them.
75099         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
75100         (gl_REPLACE_FFLUSH): Use it.
75102 2008-04-26  Bruno Haible  <bruno@clisp.org>
75104         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
75105         on Solaris.
75106         * tests/test-xstrtoimax.sh: Likewise.
75107         * tests/test-xstrtoumax.sh: Likewise.
75108         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
75110 2008-04-26  Bruno Haible  <bruno@clisp.org>
75112         * modules/memchr-tests: New file.
75113         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
75115 2008-04-26  Eric Blake  <ebb9@byu.net>
75116             Bruno Haible  <bruno@clisp.org>
75118         * lib/memchr.c: Include intprops.h.
75119         (__memchr): Optimize parallel detection of matching bytes. Rename local
75120         variables. Add explanatory comments.
75122 2008-04-26  Bruno Haible  <bruno@clisp.org>
75124         Fix module 'memchr', broken since 2000-10-28.
75125         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
75127 2008-04-26  Bruno Haible  <bruno@clisp.org>
75129         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
75130         comments.
75132 2008-04-25  Eric Blake  <ebb9@byu.net>
75134         Use native fstatat on cygwin 1.7.0.
75135         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
75136         first.
75138 2008-04-23  Eric Blake  <ebb9@byu.net>
75140         Improve memchr2 performance.
75141         * lib/memchr2.c (memchr2): Further optimize parallel detection of
75142         NUL bytes.
75143         * modules/memchr2 (Depends-on): Use intprops.h.
75145 2008-04-23  Simon Josefsson  <simon@josefsson.org>
75147         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
75148         an inline function instead of a CPP macro.  Patch by Ben Pfaff
75149         <blp@cs.stanford.edu>.
75151 2008-04-23  Simon Josefsson  <simon@josefsson.org>
75153         * lib/arpa_inet.in.h: New file.
75155         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
75156         (Makefile.am): Sed in substitute header file.
75158         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
75159         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
75161         * modules/inet_ntop (configure.ac): Use
75162         gl_ARPA_INET_MODULE_INDICATOR.
75164         * modules/inet_pton (configure.ac): Use
75165         gl_ARPA_INET_MODULE_INDICATOR.
75167 2008-04-22  Jim Meyering  <meyering@redhat.com>
75169         * modules/verify (License): Re-license as LGPLv2+.
75171 2008-04-22  Simon Josefsson  <simon@josefsson.org>
75173         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
75174         parameter to void* as per POSIX standard (MinGW uses char*).
75176 2008-04-21  Bruno Haible  <bruno@clisp.org>
75178         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
75179         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
75180         Define to replacements if REPLACE_ISWCNTRL is 1.
75181         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
75182         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
75183         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
75184         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
75185         what it fixes.
75186         * doc/posix-functions/iswalpha.texi: Likewise.
75187         * doc/posix-functions/iswblank.texi: Likewise.
75188         * doc/posix-functions/iswcntrl.texi: Likewise.
75189         * doc/posix-functions/iswdigit.texi: Likewise.
75190         * doc/posix-functions/iswgraph.texi: Likewise.
75191         * doc/posix-functions/iswlower.texi: Likewise.
75192         * doc/posix-functions/iswprint.texi: Likewise.
75193         * doc/posix-functions/iswpunct.texi: Likewise.
75194         * doc/posix-functions/iswspace.texi: Likewise.
75195         * doc/posix-functions/iswupper.texi: Likewise.
75196         * doc/posix-functions/iswxdigit.texi: Likewise.
75197         Reported by Alain Guibert.
75199 2008-04-21  Bruno Haible  <bruno@clisp.org>
75201         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
75202         Patch by Alain Guibert.
75204 2008-04-21  Bruno Haible  <bruno@clisp.org>
75206         Fix test failures on mingw.
75207         * tests/test-xstrtol.c (print_no_progname): New function.
75208         (main): Install it in error_print_progname hook.
75209         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
75210         * tests/test-xstrtoimax.sh: Likewise.
75211         * tests/test-xstrtoumax.sh: Likewise.
75213 2008-04-21  Bruno Haible  <bruno@clisp.org>
75215         Fix test failure on mingw.
75216         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
75218 2008-04-21  Bruno Haible  <bruno@clisp.org>
75220         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
75221         Actually assign a value.
75223 2008-04-20  Bruno Haible  <bruno@clisp.org>
75225         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
75226         take 2.
75227         * lib/canonicalize.c (canonicalize_file_name): Elide if the
75228         'canonicalize-lgpl' module is also used.
75229         * lib/canonicalize-lgpl.c: Undo last change.
75230         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
75232 2008-04-20  Bruno Haible  <bruno@clisp.org>
75234         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
75235         config.h. Provide _mkdir based fallback for mingw.
75236         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
75237         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
75238         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
75239         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
75240         rather than defining mkdir in config.h.
75241         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
75242         (gl_SYS_STAT_H_DEFAULTS): New macro.
75243         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
75244         HAVE_IO_H any more.
75245         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
75246         HAVE_DECL_MKDIR and HAVE_IO_H.
75248 2008-04-20  Bruno Haible  <bruno@clisp.org>
75250         * lib/isapipe.c: Port to native Windows platforms.
75252 2008-04-20  Bruno Haible  <bruno@clisp.org>
75254         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
75256 2008-04-21  Eric Blake  <ebb9@byu.net>
75258         Work around preprocessors that don't handle UINTMAX_MAX.
75259         * lib/memchr2.c (memchr2): Avoid embedded #if.
75260         Reported by Alain Guibert, fix suggested by Bruno Haible.
75262 2008-04-21  Simon Josefsson  <simon@josefsson.org>
75264         * doc/posix-functions/strftime.texi (strftime): Explain better
75265         Windows incompatibility.  Suggested by Micah Cowan
75266         <micah@cowan.name>.
75268 2008-04-20  Bruno Haible  <bruno@clisp.org>
75270         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
75271         unistr/u8-mblen.
75273 2008-04-20  Bruno Haible  <bruno@clisp.org>
75275         Fix test failure on platforms with non-GNU iconv.
75276         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
75277         (U_TO_U8): Use it, rather than u16_to_u8.
75278         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
75279         units at the end of the input string.
75280         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
75282 2008-04-20  Bruno Haible  <bruno@clisp.org>
75284         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
75285         when the resulting length is 0.
75286         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
75288 2008-04-20  Bruno Haible  <bruno@clisp.org>
75290         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
75291         works.
75292         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
75294 2008-04-20  Bruno Haible  <bruno@clisp.org>
75296         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
75297         * modules/tsearch-tests (configure.ac): Test for initstate function.
75299 2008-04-20  Bruno Haible  <bruno@clisp.org>
75301         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
75302         for nlink_t if missing.
75303         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
75305 2008-04-19  Bruno Haible  <bruno@clisp.org>
75307         Work around snprintf bug on Linux libc5.
75308         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
75309         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
75310         gl_SNPRINTF_SIZE1.
75311         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
75312         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
75313         that test failed.
75314         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
75315         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
75316         * modules/snprintf (Files): Add m4/printf.m4.
75317         * modules/vsnprintf (Files): Likewise.
75318         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
75319         * doc/posix-functions/vsnprintf.texi: Likewise.
75321 2008-04-19  Bruno Haible  <bruno@clisp.org>
75323         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
75324         from 0.0058 to less than 10^-7.
75326 2008-04-19  Bruno Haible  <bruno@clisp.org>
75328         Fix rounding when a precision is given.
75329         * lib/vasnprintf.c (is_borderline): New function.
75330         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
75331         9...9x.
75332         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
75333         %e, %g.
75334         * tests/test-vasprintf-posix.c (test_function): Likewise.
75335         * tests/test-snprintf-posix.h (test_function): Likewise.
75336         * tests/test-sprintf-posix.h (test_function): Likewise.
75337         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
75338         * tests/test-printf-posix.h (test_function): Likewise.
75339         * tests/test-printf-posix.output: Update.
75340         Reported by John Darrington <john@darrington.wattle.id.au> via
75341         Ben Pfaff <blp@cs.stanford.edu>.
75343 2008-04-18  Simon Josefsson  <simon@josefsson.org>
75345         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
75346         Suggested by Bruno Haible <bruno@clisp.org>.
75348 2008-04-17  Bruno Haible  <bruno@clisp.org>
75350         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
75351         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
75352         implementation.
75353         Patch by Bruce Merry <bmerry@gmail.com>.
75355 2008-04-17  Simon Josefsson  <simon@josefsson.org>
75357         * doc/posix-functions/strftime.texi (strftime): Mention that %e
75358         doesn't work under Windows.
75360 2008-04-16  Bruno Haible  <bruno@clisp.org>
75362         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
75363         New macros.
75364         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
75365         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
75366         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
75367         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
75368         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
75369         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
75370         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
75371         macros.
75372         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
75373         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
75374         Northern Sotho, Uighur.
75376 2008-04-16  Bruno Haible  <bruno@clisp.org>
75378         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
75379         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
75380         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
75381         Reported by Daniel Bergström <daniel@octocode.com>.
75383 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
75384             Bruno Haible  <bruno@clisp.org>
75386         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
75387         function.
75388         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
75389         New functions, mostly extracted from gl_locale_name_default.
75390         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
75392 2008-04-16  Eric Blake  <ebb9@byu.net>
75394         Adjust strtod detection to catch glibc 2.7 bug.
75395         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
75396         Reported by John Gatewood Ham.
75398 2008-04-16  Bruno Haible  <bruno@clisp.org>
75400         Add tentative support for Linux libc5.
75401         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
75402         * lib/fpurge.c (fpurge): Likewise.
75403         * lib/freadable.c (freadable): Likewise.
75404         * lib/freadahead.c (freadahead): Likewise.
75405         * lib/freading.c (freading): Likewise.
75406         * lib/freadptr.c (freadptr): Likewise.
75407         * lib/freadseek.c (freadptrinc): Likewise.
75408         * lib/fseeko.c (rpl_fseeko): Likewise.
75409         * lib/fseterr.c (fseterr): Likewise.
75410         * lib/fwritable.c (fwritable): Likewise.
75411         * lib/fwriting.c (fwriting): Likewise.
75412         Reported by Alain Guibert <alguibert+bts@free.fr>.
75414 2008-04-15  Bruno Haible  <bruno@clisp.org>
75416         * modules/mathl (configure.ac): Define module indicator.
75418 2008-04-15  Bruno Haible  <bruno@clisp.org>
75420         * lib/logl.c (logl): Remove unused variables.
75422 2008-04-15  Bruno Haible  <bruno@clisp.org>
75424         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
75425         fails.
75427 2008-04-15  Bruno Haible  <bruno@clisp.org>
75429         * lib/trim.c (trim2): Fix argument of isspace() macro.
75431 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
75433         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
75434         to 0.
75435         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
75437 2008-04-14  Bruno Haible  <bruno@clisp.org>
75439         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
75440         AC_LANG_PROGRAM argument.
75441         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
75442         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
75443         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
75444         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
75445         * m4/math_h.m4 (gl_MATH_H): Likewise.
75446         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
75447         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
75448         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
75449         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
75450         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
75451         * m4/regex.m4 (gl_REGEX): Likewise.
75452         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
75453         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
75454         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
75455         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
75456         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
75457         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
75458         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
75459         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
75461 2008-04-14  Jim Meyering  <meyering@redhat.com>
75463         test-strtod: fix typos: s/abs/fabs/
75464         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
75466 2008-04-13  Bruno Haible  <bruno@clisp.org>
75468         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
75469         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
75470         module is also used and while not building the reloc-wrapper.
75472 2008-04-13  Bruno Haible  <bruno@clisp.org>
75474         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
75476 2008-04-13  Bruno Haible  <bruno@clisp.org>
75478         Fix AIX compilation failure introduced on 2008-04-02.
75479         * tests/test-frexp.c (exp): Undefine before redefining.
75480         * tests/test-frexpl.c (exp): Likewise.
75482 2008-04-13  Bruno Haible  <bruno@clisp.org>
75484         Work around a HP-UX stdio bug.
75485         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
75486         * tests/test-ftello.c (main): Likewise.
75487         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
75488         * doc/posix-functions/ftello.texi: Likewise.
75490 2008-04-13  Bruno Haible  <bruno@clisp.org>
75492         Make test-signbit pass on HP-UX/hppa.
75493         * tests/test-signbit.c (minus_zerol): New variable.
75494         (test_signbitl): Use it.
75496 2008-04-13  Bruno Haible  <bruno@clisp.org>
75498         Make truncl work on OSF/1 4.0.
75499         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
75500         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
75501         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
75502         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
75503         HAVE_DECL_TRUNCL.
75504         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
75505         HAVE_DECL_TRUNCL.
75506         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
75508 2008-04-13  Bruno Haible  <bruno@clisp.org>
75510         * lib/unictype.h: Remove trailing comma from enumeration definitions.
75512 2008-04-13  Bruno Haible  <bruno@clisp.org>
75514         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
75515         expression, so as to avoid HP-UX 11 cc compiler bug.
75517 2008-04-13  Bruno Haible  <bruno@clisp.org>
75519         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
75521 2008-04-13  Bruno Haible  <bruno@clisp.org>
75523         * lib/git-merge-changelog.c: Remove empty declaration outside of
75524         functions.
75526 2008-04-13  Bruno Haible  <bruno@clisp.org>
75528         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
75530 2008-04-13  Bruno Haible  <bruno@clisp.org>
75532         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
75533         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
75534         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
75535         also if it exists but lacks definitions of the SHUT_* macros.
75536         * modules/sys_socket (Description): Update.
75537         Reported by Elbert Pol <e.pol@chello.nl>.
75539 2008-04-13  Bruno Haible  <bruno@clisp.org>
75541         * lib/localcharset.c (OS2): Don't redefine if already defined.
75542         Reported by Elbert Pol <e.pol@chello.nl>.
75544 2008-04-13  Bruno Haible  <bruno@clisp.org>
75546         * lib/binary-io.h [__EMX__]: Include <io.h>.
75547         Reported by Elbert Pol <e.pol@chello.nl>.
75549 2008-04-12  Bruno Haible  <bruno@clisp.org>
75551         * lib/fpucw.h: Enable the definitions also for x86_64.
75552         Needed for NetBSD/x86_64.
75553         Reported by Thomas Klausner <tk@giga.or.at>.
75555 2008-04-12  Bruno Haible  <bruno@clisp.org>
75557         * tests/test-strtod.c: Include isnand.h.
75558         (main): Use isnand instead of isnan.
75559         Reported by Jim Meyering.
75561 2008-04-12  Bruno Haible  <bruno@clisp.org>
75563         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
75564         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
75566 2008-04-12  Jim Meyering  <meyering@redhat.com>
75568         * m4/math_h.m4 (gl_MATH_H): Fix typos.
75570 2008-04-12  Bruno Haible  <bruno@clisp.org>
75572         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
75573         Reported by Elbert Pol <e.pol@chello.nl>.
75575 2008-04-12  Eric Blake  <ebb9@byu.net>
75577         Work around Solaris 10 math.h bug.
75578         * m4/math_h.m4 (gl_MATH_H): Check for bug.
75579         (gl_MATH_H_DEFAULTS): Set up default.
75580         * modules/math (Makefile.am): Replace new indicators.
75581         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
75582         * tests/test-math.c (main): Test this.
75583         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
75584         * doc/posix-headers/math.texi (math.h): Mention bug.
75585         Reported by Nelson H. F. Beebe and Jim Meyering.
75587 2008-04-11  Bruno Haible  <bruno@clisp.org>
75589         Adapt to future versions of Apple GCC.
75590         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
75591         Reported by Peter O'Gorman <peter@pogma.com>.
75593 2008-04-11  Bruno Haible  <bruno@clisp.org>
75595         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
75597 2008-04-11  Bruno Haible  <bruno@clisp.org>
75599         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
75601         * modules/getaddrinfo-tests (Makefile.am): Define
75602         test_getaddrinfo_LDADD.
75604 2008-04-11  Bruno Haible  <bruno@clisp.org>
75606         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
75607         (init): Fix syntax error.
75608         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
75609         is declared.
75611 2008-04-11  Bruno Haible  <bruno@clisp.org>
75613         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
75614         * modules/glob (Depends-on): Add stdbool.
75616 2008-04-11  Bruno Haible  <bruno@clisp.org>
75618         * lib/trim.c: Include <string.h>.
75620 2008-04-11  Eric Blake  <ebb9@byu.net>
75622         Avoid compile failure on OS/2.
75623         * lib/regex_internal.h (internal_function): Disable optimization
75624         on OS/2 (__EMX__), where it caused compiler error.
75625         Reported by Elbert Pol.
75627 2008-04-11  Bruno Haible  <bruno@clisp.org>
75629         Flush the standard error stream before aborting. Needed on mingw.
75630         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
75631         * tests/test-array_list.c (ASSERT): Likewise.
75632         * tests/test-array_oset.c (ASSERT): Likewise.
75633         * tests/test-avltree_list.c (ASSERT): Likewise.
75634         * tests/test-avltree_oset.c (ASSERT): Likewise.
75635         * tests/test-avltreehash_list.c (ASSERT): Likewise.
75636         * tests/test-binary-io.c (ASSERT): Likewise.
75637         * tests/test-byteswap.c (ASSERT): Likewise.
75638         * tests/test-c-ctype.c (ASSERT): Likewise.
75639         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
75640         * tests/test-c-strcasestr.c (ASSERT): Likewise.
75641         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
75642         * tests/test-c-strstr.c (ASSERT): Likewise.
75643         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
75644         * tests/test-canonicalize.c (ASSERT): Likewise.
75645         * tests/test-carray_list.c (ASSERT): Likewise.
75646         * tests/test-ceilf1.c (ASSERT): Likewise.
75647         * tests/test-ceilf2.c (ASSERT): Likewise.
75648         * tests/test-ceill.c (ASSERT): Likewise.
75649         * tests/test-count-one-bits.c (ASSERT): Likewise.
75650         * tests/test-fbufmode.c (ASSERT): Likewise.
75651         * tests/test-fflush2.c (ASSERT): Likewise.
75652         * tests/test-floorf1.c (ASSERT): Likewise.
75653         * tests/test-floorf2.c (ASSERT): Likewise.
75654         * tests/test-floorl.c (ASSERT): Likewise.
75655         * tests/test-fopen.c (ASSERT): Likewise.
75656         * tests/test-fpending.c (ASSERT): Likewise.
75657         * tests/test-fprintf-posix.c (ASSERT): Likewise.
75658         * tests/test-fpurge.c (ASSERT): Likewise.
75659         * tests/test-freadable.c (ASSERT): Likewise.
75660         * tests/test-freadahead.c (ASSERT): Likewise.
75661         * tests/test-freading.c (ASSERT): Likewise.
75662         * tests/test-freadptr.c (ASSERT): Likewise.
75663         * tests/test-freadptr2.c (ASSERT): Likewise.
75664         * tests/test-freadseek.c (ASSERT): Likewise.
75665         * tests/test-freopen.c (ASSERT): Likewise.
75666         * tests/test-frexp.c (ASSERT): Likewise.
75667         * tests/test-frexpl.c (ASSERT): Likewise.
75668         * tests/test-fseek.c (ASSERT): Likewise.
75669         * tests/test-fseeko.c (ASSERT): Likewise.
75670         * tests/test-fstrcmp.c (ASSERT): Likewise.
75671         * tests/test-ftell.c (ASSERT): Likewise.
75672         * tests/test-ftello.c (ASSERT): Likewise.
75673         * tests/test-func.c (ASSERT): Likewise.
75674         * tests/test-fwritable.c (ASSERT): Likewise.
75675         * tests/test-fwriting.c (ASSERT): Likewise.
75676         * tests/test-getdelim.c (ASSERT): Likewise.
75677         * tests/test-getline.c (ASSERT): Likewise.
75678         * tests/test-i-ring.c (ASSERT): Likewise.
75679         * tests/test-iconv-utf.c (ASSERT): Likewise.
75680         * tests/test-iconv.c (ASSERT): Likewise.
75681         * tests/test-isfinite.c (ASSERT): Likewise.
75682         * tests/test-isnand.c (ASSERT): Likewise.
75683         * tests/test-isnanf.c (ASSERT): Likewise.
75684         * tests/test-isnanl.h (ASSERT): Likewise.
75685         * tests/test-ldexpl.c (ASSERT): Likewise.
75686         * tests/test-linked_list.c (ASSERT): Likewise.
75687         * tests/test-linkedhash_list.c (ASSERT): Likewise.
75688         * tests/test-localename.c (ASSERT): Likewise.
75689         * tests/test-lseek.c (ASSERT): Likewise.
75690         * tests/test-mbscasecmp.c (ASSERT): Likewise.
75691         * tests/test-mbscasestr1.c (ASSERT): Likewise.
75692         * tests/test-mbscasestr2.c (ASSERT): Likewise.
75693         * tests/test-mbscasestr3.c (ASSERT): Likewise.
75694         * tests/test-mbscasestr4.c (ASSERT): Likewise.
75695         * tests/test-mbschr.c (ASSERT): Likewise.
75696         * tests/test-mbscspn.c (ASSERT): Likewise.
75697         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
75698         * tests/test-mbspbrk.c (ASSERT): Likewise.
75699         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
75700         * tests/test-mbsrchr.c (ASSERT): Likewise.
75701         * tests/test-mbsspn.c (ASSERT): Likewise.
75702         * tests/test-mbsstr1.c (ASSERT): Likewise.
75703         * tests/test-mbsstr2.c (ASSERT): Likewise.
75704         * tests/test-mbsstr3.c (ASSERT): Likewise.
75705         * tests/test-memchr2.c (ASSERT): Likewise.
75706         * tests/test-memmem.c (ASSERT): Likewise.
75707         * tests/test-open.c (ASSERT): Likewise.
75708         * tests/test-printf-frexp.c (ASSERT): Likewise.
75709         * tests/test-printf-frexpl.c (ASSERT): Likewise.
75710         * tests/test-printf-posix.c (ASSERT): Likewise.
75711         * tests/test-quotearg.c (ASSERT): Likewise.
75712         * tests/test-rbtree_list.c (ASSERT): Likewise.
75713         * tests/test-rbtree_oset.c (ASSERT): Likewise.
75714         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
75715         * tests/test-round1.c (ASSERT): Likewise.
75716         * tests/test-roundf1.c (ASSERT): Likewise.
75717         * tests/test-roundl.c (ASSERT): Likewise.
75718         * tests/test-signbit.c (ASSERT): Likewise.
75719         * tests/test-sleep.c (ASSERT): Likewise.
75720         * tests/test-snprintf-posix.c (ASSERT): Likewise.
75721         * tests/test-snprintf.c (ASSERT): Likewise.
75722         * tests/test-sprintf-posix.c (ASSERT): Likewise.
75723         * tests/test-stat-time.c (ASSERT): Likewise.
75724         * tests/test-strcasestr.c (ASSERT): Likewise.
75725         * tests/test-strerror.c (ASSERT): Likewise.
75726         * tests/test-striconv.c (ASSERT): Likewise.
75727         * tests/test-striconveh.c (ASSERT): Likewise.
75728         * tests/test-striconveha.c (ASSERT): Likewise.
75729         * tests/test-strsignal.c (ASSERT): Likewise.
75730         * tests/test-strstr.c (ASSERT): Likewise.
75731         * tests/test-strtod.c (ASSERT): Likewise.
75732         * tests/test-trunc1.c (ASSERT): Likewise.
75733         * tests/test-trunc2.c (ASSERT): Likewise.
75734         * tests/test-truncf1.c (ASSERT): Likewise.
75735         * tests/test-truncf2.c (ASSERT): Likewise.
75736         * tests/test-truncl.c (ASSERT): Likewise.
75737         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
75738         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
75739         * tests/test-vasnprintf.c (ASSERT): Likewise.
75740         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
75741         * tests/test-vasprintf.c (ASSERT): Likewise.
75742         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
75743         * tests/test-vprintf-posix.c (ASSERT): Likewise.
75744         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
75745         * tests/test-vsnprintf.c (ASSERT): Likewise.
75746         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
75747         * tests/test-wcwidth.c (ASSERT): Likewise.
75748         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
75749         * tests/test-xprintf-posix.c (ASSERT): Likewise.
75750         * tests/test-xvasprintf.c (ASSERT): Likewise.
75751         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
75752         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
75753         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
75754         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
75755         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
75756         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
75757         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
75758         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
75759         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
75760         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
75761         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
75762         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
75763         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
75764         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
75765         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
75766         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
75767         * tests/unictype/test-block_list.c (ASSERT): Likewise.
75768         * tests/unictype/test-block_of.c (ASSERT): Likewise.
75769         * tests/unictype/test-block_test.c (ASSERT): Likewise.
75770         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
75771         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
75772         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
75773         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
75774         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
75775         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
75776         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
75777         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
75778         * tests/unictype/test-combining.c (ASSERT): Likewise.
75779         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
75780         * tests/unictype/test-digit.c (ASSERT): Likewise.
75781         * tests/unictype/test-mirror.c (ASSERT): Likewise.
75782         * tests/unictype/test-numeric.c (ASSERT): Likewise.
75783         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
75784         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
75785         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
75786         * tests/unictype/test-scripts.c (ASSERT): Likewise.
75787         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
75788         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
75789         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
75790         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
75791         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
75792         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
75793         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
75794         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
75795         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
75796         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
75797         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
75798         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
75799         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
75800         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
75801         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
75802         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
75803         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
75804         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
75805         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
75806         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
75807         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
75808         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
75809         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
75810         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
75811         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
75812         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
75813         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
75814         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
75815         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
75816         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
75817         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
75818         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
75819         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
75820         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
75821         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
75822         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
75823         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
75824         Reported by Eric Blake.
75826 2008-04-11  Bruno Haible  <bruno@clisp.org>
75828         * lib/wchar.in.h: Tweak comment.
75830 2008-04-11  Bruno Haible  <bruno@clisp.org>
75832         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
75833         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
75834         gl_COMMON.
75835         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
75837 2008-04-11  Bruno Haible  <bruno@clisp.org>
75839         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
75841 2008-04-11  Simon Josefsson  <simon@josefsson.org>
75843         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
75844         of attempting to use non-existing /dev/*random.  Based on patch
75845         from Adam Strzelecki <ono@java.pl> in
75846         <http://lists.gnu.org/r/help-gsasl/2008-02/msg00000.html>.
75848 2008-04-08  Bruno Haible  <bruno@clisp.org>
75850         Add tentative support for emx+gcc.
75851         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
75852         * lib/fpurge.c (fpurge): Likewise.
75853         * lib/freadable.c (freadable): Likewise.
75854         * lib/freadahead.c (freadahead): Likewise.
75855         * lib/freading.c (freading): Likewise.
75856         * lib/freadptr.c (freadptr): Likewise.
75857         * lib/freadseek.c (freadptrinc): Likewise.
75858         * lib/fseeko.c (rpl_fseeko): Likewise.
75859         * lib/fseterr.c (fseterr): Likewise.
75860         * lib/fwritable.c (fwritable): Likewise.
75861         * lib/fwriting.c (fwriting): Likewise.
75862         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
75864 2008-04-09  Eric Blake  <ebb9@byu.net>
75866         Avoid some autoconf warnings.
75867         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
75868         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
75869         * m4/afs.m4 (gl_AFS): Likewise.
75870         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
75871         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
75872         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
75873         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
75874         (gl_INTEGER_TYPE_SUFFIX): Likewise.
75875         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
75876         (AC_CHECK_DECLS_ONCE): Likewise.
75877         Rename file...
75878         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
75879         gnulib-tool requires autoconf 2.59 or better.
75880         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
75882 2008-04-08  Eric Blake  <ebb9@byu.net>
75884         Use 'git describe --match' if present (added in git 1.5.5).
75885         * build-aux/git-version-gen: Limit result to tags that match 'v*'
75886         if possible.
75888 2008-04-08  Bruno Haible  <bruno@clisp.org>
75890         Add tentative support for OpenServer.
75891         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
75892         _ptr, _cnt.
75893         * lib/fpurge.c (fpurge): Likewise.
75894         * lib/freadable.c (freadable): Likewise.
75895         * lib/freadahead.c (freadahead): Likewise.
75896         * lib/freading.c (freading): Likewise.
75897         * lib/freadptr.c (freadptr): Likewise.
75898         * lib/freadseek.c (freadptrinc): Likewise.
75899         * lib/fseeko.c (rpl_fseeko): Likewise.
75900         * lib/fseterr.c (fseterr): Likewise.
75901         * lib/fwritable.c (fwritable): Likewise.
75902         * lib/fwriting.c (fwriting): Likewise.
75903         Reported by Roger Cornelius <rac@tenzing.org> and
75904         Brian K. White <brian@aljex.com>.
75906 2008-04-06  Jim Meyering  <meyering@redhat.com>
75908         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
75910 2008-04-06  Bruno Haible  <bruno@clisp.org>
75912         Avoid possible error with non-ASCII bytes in UTF-8 locales.
75913         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
75914         * tests/test-printf-posix.sh: Likewise.
75915         * tests/test-vfprintf-posix.sh: Likewise.
75916         * tests/test-vprintf-posix.sh: Likewise.
75917         * tests/test-xprintf-posix.sh: Likewise.
75919 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75921         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
75922         hide error from 'ls', needed on OS/2.
75923         Report by Elbert Pol <elbert.pol@gmail.com>.
75925 2008-04-04  Eric Blake  <ebb9@byu.net>
75927         Make test-fseeko.c failures meaningful.
75928         * tests/test-fseeko.c: Print line number on failure.
75929         * tests/test-fseek.c: Likewise.
75930         Reported by Nelson H. F. Beebe.
75932         Improve strtod bug detection check.
75933         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
75934         required for Solaris 10.
75935         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
75937 2008-04-04  Bruno Haible  <bruno@clisp.org>
75939         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
75940         by m4/setenv.m4.
75942 2008-04-03  Eric Blake  <ebb9@byu.net>
75944         Ensure sane .version contents.
75945         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
75946         version string.
75947         * build-aux/git-version-gen: Improve documentation.
75949         Make GNU make output nicer.
75950         * top/GNUmakefile [!_have-Makefile]: Add dependency on
75951         MAKECMDGOALS to enforce message for all command line targets.  Set
75952         srcdir for use in maint.mk.
75954         Another maintainer tweak.
75955         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
75956         a target that regenerates version.
75958 2008-04-03  Jim Meyering  <meyering@redhat.com>
75960         vc-list-files: don't cause coreutils "make po-check" failure
75961         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
75963 2008-04-03  Eric Blake  <ebb9@byu.net>
75965         Allow VPATH usage of vc-list-files.
75966         * build-aux/vc-list-files (scriptversion): Add timestamp.
75967         (options): Add --help, --version, -C.
75968         (CVS): Support installed cvsu.
75970 2008-04-02  Bruno Haible  <bruno@clisp.org>
75972         Avoid some "statement with no effect" warnings from gcc.
75973         * tests/test-wctype.c (main): Explicitly ignore unused values.
75974         Reported by Jim Meyering.
75976 2008-04-02  Jim Meyering  <meyering@redhat.com>
75978         Avoid some warnings from "gcc -Wshadow".
75979         * tests/test-frexp.c (exp): Define to a different identifier.
75980         * tests/test-frexpl.c (exp): Likewise.
75982 2008-04-03  Jim Meyering  <meyering@redhat.com>
75984         bootstrap: remove dangling *.[ch] symlinks from lib
75985         * build-aux/bootstrap [dangling symlink removal]: Move find's
75986         -depth option to precede all others, to avoid a warning.
75987         Remove *.[ch] files too, and from "$source_base" (usually lib/).
75989 2008-04-02  Bruno Haible  <bruno@clisp.org>
75991         Avoid some warnings from "gcc -Wshadow".
75992         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
75993         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
75994         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
75995         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
75996         Reported by Jim Meyering.
75998 2008-04-01  Bruno Haible  <bruno@clisp.org>
76000         Fix test to work on IRIX 6.5 with cc.
76001         * tests/test-math.c (numeric_equal): New function.
76002         (main): Use it.
76004 2008-04-01  Bruno Haible  <bruno@clisp.org>
76006         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
76008 2008-04-01  Bruno Haible  <bruno@clisp.org>
76010         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
76011         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
76012         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
76013         (Depends-on): Remove math.
76015         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
76016         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
76017         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
76018         (Depends-on): Remove math.
76020         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
76021         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
76022         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
76023         (Depends-on): Remove math.
76024         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
76025         (Depends-on): Remove math.
76027         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
76028         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
76029         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
76030         (Depends-on): Remove math.
76031         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
76032         (Depends-on): Remove math.
76034         * tests/test-round1.c: Include nan.h.
76035         (main): Use NaNd instead of NAN.
76036         * modules/round-tests (Files): Add tests/nan.h.
76038         * tests/test-trunc1.c: Include nan.h.
76039         (main): Use NaNd instead of NAN.
76040         * modules/trunc-tests (Files): Add tests/nan.h.
76042         * tests/test-roundf1.c: Include nan.h.
76043         (main): Use NaNf instead of NAN.
76044         * modules/roundf-tests (Files): Add tests/nan.h.
76046         * tests/test-truncf1.c: Include nan.h.
76047         (main): Use NaNf instead of NAN.
76048         * modules/truncf-tests (Files): Add tests/nan.h.
76050         * tests/test-ceilf1.c: Include nan.h.
76051         (main): Use NaNf instead of NAN.
76052         * modules/ceilf-tests (Files): Add tests/nan.h.
76054         * tests/test-floorf1.c: Include nan.h.
76055         (main): Use NaNf instead of NAN.
76056         * modules/floorf-tests (Files): Add tests/nan.h.
76058         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
76059         (main): Use NaNf instead of NAN.
76060         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
76062         * tests/test-isnand.c: Include nan.h instead of <math.h>.
76063         (main): Use NaNd instead of NAN.
76064         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
76066         * tests/test-frexp.c: Include nan.h.
76067         (main): Use NaNd instead of NAN.
76068         * modules/frexp-tests (Files): Add tests/nan.h.
76070         * lib/isnan.c: Don't include <math.h>.
76071         (FUNC): Don't use NAN macro.
76072         * modules/isnand-nolibm (Depends-on): Remove math.
76073         * modules/isnanf-nolibm (Depends-on): Remove math.
76074         * modules/isnanl (Depends-on): Remove math.
76075         * modules/isnanl-nolibm (Depends-on): Remove math.
76077         * tests/nan.h: New file.
76079 2008-04-01  Eric Blake  <ebb9@byu.net>
76081         Fix typos.
76082         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
76083         values to be the right type.
76085         For now, cater to gnulib strtod inaccuracies.
76086         * tests/test-strtod.c (main): Allow 1-ulp error on expected
76087         fractional results.  While not as nice from a QoI perspective, it
76088         is a quicker patch than correctly implementing decimal to binary
76089         rounding.
76091 2008-03-31  Eric Blake  <ebb9@byu.net>
76093         Guarantee a definition of NAN.
76094         * lib/math.in.h (NAN): Define if missing.
76095         * tests/test-math.c (main): Test it.
76096         * doc/posix-headers/math.texi (math.h): Document this.
76097         * lib/isnan.c (rpl_isnand): Use it.
76098         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
76099         * tests/test-floorf1.c (NaN): Likewise.
76100         * tests/test-frexp.c (NaN): Likewise.
76101         * tests/test-isnand.c (NaN): Likewise.
76102         * tests/test-isnanf.c (NaN): Likewise.
76103         * tests/test-round1.c (NaN): Likewise.
76104         * tests/test-roundf1.c (NaN): Likewise.
76105         * tests/test-snprintf-posix.h (NaN): Likewise.
76106         * tests/test-sprintf-posix.h (NaN): Likewise.
76107         * tests/test-trunc1.c (NaN): Likewise.
76108         * tests/test-truncf1.c (NaN): Likewise.
76109         * tests/test-vasnprintf-posix.c (NaN): Likewise.
76110         * tests/test-vasprintf-posix.c (NaN): Likewise.
76111         * modules/isnand-nolibm (Depends-on): Add math.
76112         * modules/isnanf-nolibm (Depends-on): Likewise.
76113         * modules/isnanl (Depends-on): Likewise.
76114         * modules/isnanl-nolibm (Depends-on): Likewise.
76115         * modules/snprintf-posix-tests (Depends-on): Likewise.
76116         * modules/sprintf-posix-tests (Depends-on): Likewise.
76117         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
76118         * modules/vsprintf-posix-tests (Depends-on): Likewise.
76119         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
76120         * modules/vasprintf-posix-tests (Depends-on): Likewise.
76122 2008-03-31  Bruno Haible  <bruno@clisp.org>
76124         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
76125         * doc/posix-functions/strtod.texi: Likewise.
76127 2008-03-31  Bruno Haible  <bruno@clisp.org>
76129         * tests/test-strtod.c (main): Don't use C99 syntax.
76131 2008-03-31  Bruno Haible  <bruno@clisp.org>
76133         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
76134         Reported by Eric Blake.
76136 2008-03-31  Jim Meyering  <meyering@redhat.com>
76138         Don't compare actual signbit return values.
76139         * tests/test-strtod.c (main): Rather, compare only their
76140         zero/non-zero nature.
76142 2008-03-31  Eric Blake  <ebb9@byu.net>
76144         More strtod documentation.
76145         * doc/posix-functions/strtod.texi (strtod): Interpret more test
76146         failures as distinct bugs.
76148 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
76150         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
76151         Problem reported by Erik Benada in
76152         <http://lists.gnu.org/r/bug-gnulib/2008-03/msg00249.html>.
76154 2008-03-30  Bruno Haible  <bruno@clisp.org>
76156         * tests/test-strtod.c: Add comments about which assertion fails on which
76157         platform.
76158         * doc/posix-functions/strtod.texi: Add info about many more platforms.
76160 2008-03-30  Eric Blake  <ebb9@byu.net>
76162         Test signbit behavior on zeros.
76163         * tests/test-signbit.c (test_signbitf): Add tests for zero.
76164         (test_signbitd, test_signbitl): Likewise.
76166         More strtod touchups.
76167         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
76168         sign of negative underflow, for now.  Use .5, not .1.
76169         * doc/posix-functions/strtod.texi (strtod): Mention these
76170         limitations.
76171         Reported by Jim Meyering.
76173 2008-03-30  Bruno Haible  <bruno@clisp.org>
76175         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
76176         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
76178 2008-03-30  Bruno Haible  <bruno@clisp.org>
76180         Avoid failure when attempting to return empty iconv results on some
76181         platforms.
76182         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
76183         allocation, don't report ENOMEM when the resulting string is empty.
76185 2008-03-30  Bruno Haible  <bruno@clisp.org>
76187         Fix buffer overrun.
76188         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
76189         Don't consider the width for tmp_length. Check count against tmp_length
76190         before doing the padding. Ensure enough allocation during padding.
76192 2008-03-30  Eric Blake  <ebb9@byu.net>
76194         strtod touchups.
76195         * lib/strtod.c (strtod): Avoid compiler warnings.
76196         Reported by Jim Meyering.
76198 2008-03-30  Bruno Haible  <bruno@clisp.org>
76200         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
76201         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
76202         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
76203         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
76204         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
76205         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
76206         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
76207         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
76209         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
76210         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
76211         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
76212         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
76213         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
76214         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
76215         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
76216         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
76218         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
76219         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
76220         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
76221         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
76222         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
76223         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
76224         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
76225         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
76227         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
76228         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
76230         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
76231         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
76233         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
76234         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
76236         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
76237         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
76238         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
76240         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
76241         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
76242         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
76244         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
76245         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
76246         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
76248         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
76249         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
76250         * modules/vasprintf (Depends-on): Add EOVERFLOW.
76252         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
76253         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
76254         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
76255         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
76256         (Depends-on): Add EOVERFLOW.
76257         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
76258         (Depends-on): Add EOVERFLOW.
76259         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
76260         (Depends-on): Add EOVERFLOW.
76261         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
76262         (Depends-on): Add EOVERFLOW.
76263         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
76264         (Depends-on): Add EOVERFLOW.
76265         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
76266         (Depends-on): Add EOVERFLOW.
76267         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
76268         (Depends-on): Add EOVERFLOW.
76269         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
76270         (Depends-on): Add EOVERFLOW.
76272         * lib/sprintf.c (EOVERFLOW): Remove fallback.
76273         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
76274         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
76276         * lib/snprintf.c (EOVERFLOW): Remove fallback.
76277         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
76278         * modules/snprintf (Depends-on): Add EOVERFLOW.
76280         * lib/poll.c (EOVERFLOW): Remove fallback.
76281         * modules/poll (Depends-on): Add EOVERFLOW.
76283         * lib/getugroups.c (EOVERFLOW): Remove fallback.
76284         * modules/getugroups (Depends-on): Add EOVERFLOW.
76286         * lib/getdelim.c (EOVERFLOW): Remove fallback.
76287         * modules/getdelim (Depends-on): Add EOVERFLOW.
76289         * lib/ftell.c (EOVERFLOW): Remove fallback.
76290         * modules/ftell (Depends-on): Add EOVERFLOW.
76292         * lib/fprintf.c (EOVERFLOW): Remove fallback.
76293         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
76294         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
76296         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
76298         * modules/EOVERFLOW-tests: New file.
76299         * tests/test-EOVERFLOW.c: New file.
76301         * modules/EOVERFLOW: New file.
76302         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
76304 2008-03-30  Bruno Haible  <bruno@clisp.org>
76306         Fix bug introduced on 2007-06-10.
76307         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
76308         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
76310 2008-03-30  Bruno Haible  <bruno@clisp.org>
76312         Improve freadseek's efficiency after ungetc.
76313         * lib/freadseek.c: Include freadahead.h.
76314         (freadptrinc): New function, extracted from freadseek.
76315         (freadseek): Use it in a loop. Use freadahead to determine the number
76316         of loop iterations.
76317         * modules/freadseek (Depends-on): Add freadahead.
76318         (configure.ac): Require AC_C_INLINE.
76320 2008-03-30  Bruno Haible  <bruno@clisp.org>
76322         * lib/freadseek.c (freadseek): Don't ignore the return value of
76323         freadptr.
76325 2008-03-29  Eric Blake  <ebb9@byu.net>
76327         Add hex float support.
76328         * modules/strtod (Depends-on): Add c-ctype.
76329         (Link): Mention POW_LIB.
76330         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
76331         whitespace between 'e' and exponent.
76332         * tests/test-strtod.c (main): Enable hex float tests.
76333         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
76334         now provides.
76336         Document various strtod bugs, with some fixes.
76337         * doc/posix-functions/strtod.texi (strtod): Document bugs with
76338         "-0x", "inf", "nan", and hex constants.
76339         * doc/posix-functions/atof.texi (atof): Likewise.
76340         * modules/stdlib (Makefile.am): Support strtod.
76341         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
76342         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
76343         detect additional strtod bugs.
76344         * lib/stdlib.in.h (rpl_strtod): Add declarations.
76345         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
76346         bool where appropriate.  Parse 'inf' and 'nan'.
76347         * tests/test-strtod.c: New file.
76348         * modules/strtod (Depends-on): Add stdbool, stdlib.
76349         (configure.ac): Turn on module indicator.
76350         * modules/strtod-tests: New module.
76352 2008-03-29  Eric Blake  <ebb9@byu.net>
76354         Fix ftell on mingw.
76355         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
76356         * modules/ftell-tests (Depends-on): Add binary-io.
76357         * modules/ftello-tests (Depends-on): Likewise.
76358         * tests/test-ftell.c (main): Enhance test to cover behavior after
76359         ungetc.  Enforce binary mode.
76360         * tests/test-ftello.c (main): Likewise.
76362         Pass test-freadseek on cygwin.
76363         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
76364         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
76365         ungetc buffer.
76367         * tests/test-fflush2.c (main): Fix typo.
76369 2008-03-29  Bruno Haible  <bruno@clisp.org>
76371         * tests/test-fflush2.c (main): Temporarily disable the contents of
76372         this test.
76373         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
76374         Reported by Eric Blake.
76376 2008-03-28  Simon Josefsson  <simon@josefsson.org>
76378         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
76379         (GC_SHA224_DIGEST_SIZE): Add.
76381         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
76382         (gc_hash_digest_length): Likewise.
76383         (gc_hash_buffer): Likewise.
76385 2008-03-25  Bruno Haible  <bruno@clisp.org>
76387         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
76388         detail which gettext release to use.
76389         Reported by Simon Josefsson.
76391 2008-03-26  Jim Meyering  <meyering@redhat.com>
76393         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
76394         * modules/gnumakefile (clean-GNUmakefile): Also, use
76395         test ... && ... || : syntax rather than if-then ... fi.
76397         gnumakefile: Don't double-quote-expand $(VPATH) value.
76398         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
76400 2008-03-24  Eric Blake  <ebb9@byu.net>
76402         Alter GNUmakefile to install into top directory.
76403         * modules/maintainer-makefile: Split, and add dependency...
76404         * modules/gnumakefile: to this new module.
76405         * build-aux/GNUmakefile: Move...
76406         * top/GNUmakefile: ...here.
76407         * build-aux/maint.mk: Move...
76408         * top/maint.mk: ...here.
76409         * MODULES.html.sh (Support for maintaining...): Document new
76410         module.
76412 2008-03-23  Bruno Haible  <bruno@clisp.org>
76414         * gnulib-tool: New options --vc-files, --no-vc-files.
76415         (func_usage): Document them.
76416         (vc_files): New variable.
76417         (func_import): Consider vc_files.
76418         (func_create_testdir): Set vc_files to empty.
76419         Suggested by Jim Meyering and Karl Berry.
76421 2008-03-23  Bruno Haible  <bruno@clisp.org>
76423         Fix regex compilation error on HP-UX 11.
76424         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
76425         * modules/regex (Files): Add m4/mbstate_t.m4.
76426         Reported by Ton Voon <ton.voon@altinity.com>.
76428 2008-03-23  Bruno Haible  <bruno@clisp.org>
76430         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
76432 2008-03-23  Eric Blake  <ebb9@byu.net>
76433             Bruno Haible  <bruno@clisp.org>
76435         Install files from top/ in the destination directory.
76436         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
76437         augmentation also for the files from top/.
76438         (func_import, func_create_testdir): Rewrite file names:
76439         top/filename -> filename.
76441 2008-03-23  Bruno Haible  <bruno@clisp.org>
76443         Tweak "gnulib --version" output.
76444         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
76446 2008-03-23  Bruno Haible  <bruno@clisp.org>
76448         Tweak "gnulib --version" output.
76449         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
76450         rather than contents of ChangeLog, when possible.
76452 2008-03-21  Eric Blake  <ebb9@byu.net>
76454         More --version tweaks.
76455         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
76456         date of last ChangeLog entry.
76458 2008-03-21  Jim Meyering  <meyering@redhat.com>
76460         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
76462 2008-03-20  Eric Blake  <ebb9@byu.net>
76464         VPATH fix.
76465         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
76467 2008-03-20  Simon Josefsson  <simon@josefsson.org>
76469         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
76470         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
76472 2008-03-20  Eric Blake  <ebb9@byu.net>
76474         Sync GNUmakefile with coreutils.
76475         * build-aux/GNUmakefile (have-Makefile): Rename...
76476         (_have-Makefile): ...to this, for namespace consideration.
76477         (GNUmakefile.cfg): Include, if present.
76478         (_autoreconf): Define a default.
76479         (_is-dist-target): New rule for rebuilds to pick up intra-release
76480         version.
76481         (maint-cfg.mk): Rename...
76482         (cfg.mk): ...to this.
76484 2008-03-18  Jim Meyering  <meyering@redhat.com>
76486         New script and module: mktempd
76487         * MODULES.html.sh (maint+release support): Add mktempd.
76488         * build-aux/mktempd: New file.
76489         * modules/mktempd: New file.
76491 2008-03-15  Jim Meyering  <meyering@redhat.com>
76493         Undo last change.
76494         * lib/sha1.c, lib/md5.c: 63 != ~63.
76495         Reported by Andreas Schwab.
76497         sha1.c, md5.c: Hoist a redundant expression.
76498         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
76499         "ctx->buflen" only once, before calling *_process_block.
76500         * lib/md5.c (md5_process_bytes): Likewise.
76502 2008-03-14  Eric Blake  <ebb9@byu.net>
76504         Bump copyright year in files generated by gnulib-tool.
76505         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
76506         gnulib-tool, rather than hard-coding it.
76508         Fix 'gnulib-tool --version' output to work with git.
76509         * gnulib-tool (func_gnulib_dir): New function, extracted from...
76510         (startup): ...here.
76511         (func_version): Use it to invoke git-version-gen, rather than
76512         relying on CVS keyword expansion.  Modernize wording.
76513         (cvsdatestamp, last_checkin_date, version): Kill unused
76514         variables.
76516 2008-03-12  Jim Meyering  <meyering@redhat.com>
76518         Recognize optional cast of the argument to free.
76519         * build-aux/useless-if-before-free: Update regexps.
76521         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
76523 2008-03-11  Bruno Haible  <bruno@clisp.org>
76525         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
76526         by a single package.
76527         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
76528         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
76529         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
76530         Reported by Sam Steingold <sds@gnu.org>.
76532 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
76534         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
76535         repositories.
76537 2008-03-11  Bruno Haible  <bruno@clisp.org>
76539         Avoid conflicts between local macro definitions.
76540         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
76541         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
76543 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
76544             Bruno Haible  <bruno@clisp.org>
76546         Make va_copy work with some version of xlc on AIX 5.1.
76547         * lib/stdarg.in.h: New file.
76548         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
76549         On AIX, use a <stdarg.h> file substitute.
76550         * modules/stdarg (Files): Add lib/stdarg.in.h.
76551         (Depends-on): Add include_next.
76552         (Makefile.am): Build a stdarg.h substitute if requested.
76553         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
76555 2008-03-10  Bruno Haible  <bruno@clisp.org>
76557         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
76558         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
76559         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
76561 2008-03-10  Bruno Haible  <bruno@clisp.org>
76563         * modules/stdlib (Depends-on): Add include_next, remove
76564         absolute-header.
76566 2008-03-09  Bruno Haible  <bruno@clisp.org>
76568         * lib/freadahead.h (freadahead): Document more precisely.
76569         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
76570         the sum of both buffer sizes.
76571         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
76572         * NEWS: Document the change.
76574 2008-03-09  Bruno Haible  <bruno@clisp.org>
76576         Extend freadptr to return also the buffer size.
76577         * lib/freadptr.h (freadptr): Add sizep argument.
76578         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
76579         (freadptr): Add sizep argument. Determine buffer size like freadahead
76580         does.
76581         * tests/test-freadptr.c: Don't include freadahead.h.
76582         (main): Adapt for new calling convention of freadptr.
76583         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
76584         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
76585         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
76586         tests/test-freadptr2.sh.
76587         (Depends): Remove freadahead.
76588         (TESTS): Add test-freadptr2.sh.
76589         (check_PROGRAMS): Add test-freadptr2.
76591 2008-03-09  Bruno Haible  <bruno@clisp.org>
76593         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
76594         Report and solution by Simon Josefsson.
76596 2008-03-06  Bruno Haible  <bruno@clisp.org>
76598         Make fflush after ungetc work on BSD platforms.
76599         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
76600         * tests/test-fflush2.c: New file.
76601         * tests/test-fflush2.sh: New file.
76602         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
76603         tests/test-fflush2.c.
76604         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
76605         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
76607 2008-03-06  Eric Blake  <ebb9@byu.net>
76609         Likewise for ftello.
76610         * modules/ftello (Dependencies): Add extensions.
76611         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
76613 2008-03-06  Bruno Haible  <bruno@clisp.org>
76615         * modules/fseeko (Dependencies): Add extensions.
76616         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
76617         Needed on glibc systems.
76619 2008-03-06  Bruno Haible  <bruno@clisp.org>
76621         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
76622         email address.
76623         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
76625 2008-03-06  Bruno Haible  <bruno@clisp.org>
76627         * users.txt: Add libgnupdf.
76629 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
76631         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
76632         (Header File Substitutes, Function Substitutes,
76633         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
76634         (Build robot for gnulib): Fix typo.
76636 2008-03-06  Bruno Haible  <bruno@clisp.org>
76638         * doc/gnulib-tool.texi (VCS Issues): Small updates.
76639         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
76641 2008-03-06  Bruno Haible  <bruno@clisp.org>
76643         * doc/func.texi: New file, extracted from doc/gnulib.texi.
76644         * doc/gnulib.texi: Include it.
76646 2008-03-06  Simon Josefsson  <simon@josefsson.org>
76648         * modules/func (License): Change license to unlimited; there was
76649         no LGPL parts in the module anyway.
76651 2008-03-06  Simon Josefsson  <simon@josefsson.org>
76653         * modules/__func__: Renamed to modules/func.
76654         * modules/__func__-tests: Renamed to modules/func-tests.
76655         * tests/test-__func__.c: Renamed to tests/test-func.c.
76656         * m4/__func__.m4: Renamed to m4/func.m4.
76657         * doc/gnulib.texi (__func__): Section renamed to func.
76658         Suggested by Eric Blake <ebb9@byu.net>.
76660 2008-03-06  Simon Josefsson  <simon@josefsson.org>
76662         * doc/gnulib.texi (__func__): Use C99 terminology when talking
76663         about __func__.  Make example self-contained.  Suggested by Eric
76664         Blake <ebb9@byu.net>.
76666         * tests/test-__func__.c (main): Avoid extraneous () around __func.
76667         Suggested by Eric Blake <ebb9@byu.net>.
76669 2008-03-06  Simon Josefsson  <simon@josefsson.org>
76671         * modules/__func__: New file.
76672         * modules/__func__-tests: New file.
76673         * tests/test-__func__.c: New file.
76674         * m4/__func__.m4: New file.
76675         * doc/gnulib.texi (__func__): Document __func__ module.
76677 2008-03-05  Simon Josefsson  <simon@josefsson.org>
76679         * modules/byteswap (License): Re-license as LGPLv2+.
76681 2008-03-05  Simon Josefsson  <simon@josefsson.org>
76683         * doc/Makefile: Add pdf target.
76685 2008-03-05  Simon Josefsson  <simon@josefsson.org>
76687         * modules/inline (License): Use 'unlimited', since there are only
76688         *.m4 files in this module.
76690 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
76691             Bruno Haible  <bruno@clisp.org>
76693         Add support for HP C 7.1 on OpenVMS 8.3.
76694         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
76696 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
76698         Update VMS specifics.
76699         * lib/getopt.c [VMS]: Remove include of unixlib.h.
76701 2008-03-02  Jim Meyering  <meyering@redhat.com>
76703         Remove the last dependency on the "free" module.
76704         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
76705         Reported by Bob Proulx.
76707         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
76709         Remove useless "if" tests before free.  Deprecate "free" module.
76710         * doc/posix-functions/free.texi: Mention that this
76711         module is no longer useful.
76712         * modules/free (Notice): Say this module is obsolete.
76713         * modules/readutmp (Depends-on): Remove free.
76714         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
76715         * lib/putenv.c (putenv): Likewise.
76716         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
76717         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
76718         * tests/test-c-strcasestr.c (main): Likewise.
76719         * tests/test-c-strstr.c (main): Likewise.
76720         * tests/test-mbscasestr1.c (main): Likewise.
76721         * tests/test-mbscasestr2.c (main): Likewise.
76722         * tests/test-mbsstr1.c (main): Likewise.
76723         * tests/test-mbsstr2.c (main): Likewise.
76724         * tests/test-memmem.c (main): Likewise.
76725         * tests/test-strcasestr.c (main): Likewise.
76726         * tests/test-striconv.c (main): Likewise.
76727         * tests/test-striconveh.c (main): Likewise.
76728         * tests/test-striconveha.c (main): Likewise.
76729         * tests/test-strstr.c (main): Likewise.
76731         * build-aux/git-version-gen: Adjust a comment and the Usage string.
76733         bootstrap: sync from coreutils again
76734         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
76736 2008-03-01  Jim Meyering  <meyering@redhat.com>
76738         bootstrap: sync from coreutils
76739         * build-aux/bootstrap (update_po_files): Copy a .po file into place
76740         also when the target doesn't exist.
76742 2008-03-01  Eric Blake  <ebb9@byu.net>
76744         Fix bugs in last patch.
76745         * lib/memchr2.c (memchr2): Fix typo.
76746         * tests/test-memchr2.c: Test previous bug, and don't use GNU
76747         extension.
76748         Reported by Bruce Korb.
76750         New module 'memchr2'.
76751         * modules/memchr2: New file.
76752         * modules/memchr2-tests: Likewise.
76753         * lib/memchr2.h: Likewise.
76754         * lib/memchr2.c: Likewise, based on memchr.c.
76755         * tests/test-memchr2.c: New test.
76756         * MODULES.html.sh (String handling): Add memchr2.
76758 2008-02-29  Bruno Haible  <bruno@clisp.org>
76760         * modules/freadseek-tests: New file.
76761         * tests/test-freadseek.sh: New file.
76762         * tests/test-freadseek.c: New file.
76764         New module 'freadseek'.
76765         * modules/freadseek: New file.
76766         * lib/freadseek.h: New file.
76767         * lib/freadseek.c: New file.
76768         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
76770 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
76772         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
76773         wydawca.
76775         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
76776         program_invocation_name and program_invocation_short_name are
76777         present.
76779 2008-02-28  Bruno Haible  <bruno@clisp.org>
76781         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
76782         * tests/test-freadptr.sh: Also test non-seekable stdin.
76784 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
76786         * build-aux/bootstrap (source_base, m4_base)
76787         (doc_base, tests_base): New variables.
76788         (gnulib_tool_options): Do not hardcode base directories, use
76789         the above variables instead.
76791 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
76793         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
76795 2008-02-28  Bruno Haible  <bruno@clisp.org>
76797         * modules/freadptr-tests: New file.
76798         * tests/test-freadptr.sh: New file.
76799         * tests/test-freadptr.c: New file.
76801         New module 'freadptr'.
76802         * modules/freadptr: New file.
76803         * lib/freadptr.h: New file.
76804         * lib/freadptr.c: New file.
76805         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
76807 2008-02-26  Karl Berry  <karl@freefriends.org>
76809         Sync from Libtool:
76810         * libltdl/argz.c (argz_add, argz_count): New functions.
76811         * libltdl/argz.in.h: Declare them.
76812         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
76814 2008-02-22  Bruno Haible  <bruno@clisp.org>
76816         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
76817         is a pointer type.  Needed for HP-UX 10.
76818         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
76819         * doc/posix-functions/gmtime_r.texi: Likewise.
76820         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
76822 2008-02-24  Bruno Haible  <bruno@clisp.org>
76824         * modules/environ-tests: New file.
76825         * tests/test-environ.c: New file.
76827         New module 'environ'.
76828         * modules/environ: New file.
76829         * lib/unistd.in.h (environ): New declaration.
76830         * m4/environ.m4: New file.
76831         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
76832         after use.
76833         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
76834         HAVE_DECL_ENVIRON.
76835         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
76836         HAVE_DECL_ENVIRON.
76837         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
76838         wrong claim that 'environ' is missing on some systems.
76839         * modules/execute (Depends-on): Add environ.
76840         * lib/execute.c (environ): Remove fallback declaration.
76841         * modules/pipe (Depends-on): Add environ.
76842         * lib/pipe.c (environ): Remove fallback declaration.
76843         * modules/setenv (Depends-on): Add environ.
76844         * lib/setenv.c (environ): Remove fallback declaration.
76845         * modules/unsetenv (Depends-on): Add environ.
76846         * lib/unsetenv.c (environ): Remove fallback declaration.
76847         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
76848         m4/environ.m4.
76849         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
76850         (gl_PREREQ_UNSETENV): Likewise.
76852 2008-02-24  Bruno Haible  <bruno@clisp.org>
76854         * doc/posix-functions/environ.texi: Document the MacOS X problem.
76856 2008-02-20  Bob Proulx  <bob@proulx.com>
76858         Enable use of older two part flavor 'git describe'.
76859         * build-aux/git-version-gen: If using the older two part flavor of
76860         git version then recreate the third part now present in the
76861         newer three part flavor of git describe.
76863 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
76865         * lib/fts.c (fts_build): Typo correction to comment.
76867 2008-02-17  Bruno Haible  <bruno@clisp.org>
76869         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
76870         generating no-op conflicts.
76872 2008-02-17  Bruno Haible  <bruno@clisp.org>
76874         Speed up by 10%.
76875         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
76876         result_entries, rather than an index-based loop.
76878 2008-02-17  Bruno Haible  <bruno@clisp.org>
76880         Speed up by 25%.
76881         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
76882         'hashcode_cached'.
76883         (entry_create): New function.
76884         (entry_hashcode): Use the cached hashcode if possible.
76885         (read_changelog_file, try_split_merged_entry): Use entry_create.
76887 2008-02-17  Bruno Haible  <bruno@clisp.org>
76889         Speed up from O(n^2) to O(n) for long ChangeLog files.
76890         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
76891         (read_changelog_file): Change implementation of entries_reversed list
76892         to rbtreehash.
76893         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
76895 2008-02-17  Bruno Haible  <bruno@clisp.org>
76897         New option --split-merged-entry.
76898         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
76899         (find_paragraph_end, try_split_merged_entry): New functions.
76900         (long_options): Add option --split-merged-entry.
76901         (usage): Document option --split-merged-entry.
76902         (main): Implement option --split-merged-entry.
76903         Reported by Eric Blake.
76905 2008-02-17  Bruno Haible  <bruno@clisp.org>
76907         * lib/git-merge-changelog.c: Include c-strstr.h.
76908         (main): Support the "git pull --rebase" situation.
76909         * modules/git-merge-changelog (Depends-on): Add c-strstr.
76910         Reported by Eric Blake.
76912 2008-02-16  Eric Blake  <ebb9@byu.net>
76914         Avoid doubling \ in common case of "c-maybe" quoting style.
76915         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
76916         eliding outer quotes.
76917         * lib/quotearg.h: Document this.
76918         * tests/test-quotearg.c (result_strings, inputs, results_g)
76919         (flag_results, locale_results): Test it by adding a new string to
76920         each test group.
76921         (compare_strings): Test new string.
76923 2008-02-13  Eric Blake  <ebb9@byu.net>
76925         Avoid trigraph quoting in default output.
76926         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
76927         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
76928         unless explicitly requested.
76929         * tests/test-quotearg.c (flag_results, main): Add additional tests.
76931 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
76933         Don't rely on signed integer overflowing to negative value.
76934         * lib/getugroups.c (getugroups): Include <limits.h>.
76935         Instead, compare against INT_MAX, and increment only if the test passes.
76937 2008-02-13  Jim Meyering  <meyering@redhat.com>
76938         and Eric Blake  <ebb9@byu.net>
76940         Avoid shadowing warning and compile errors on Linux.
76941         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
76942         forwarding macros on Linux.
76943         (dcgettext): Define a stub, for Linux.
76944         (results_g, main): Avoid warnings.
76946 2008-02-12  Eric Blake  <ebb9@byu.net>
76948         Silence warning in last patch.
76949         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
76951         Quotearg part 4: add tests, fix c-maybe colon quoting.
76952         * lib/quotearg.h: Improve documentation.
76953         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
76954         escapes when adding outer quotes.  When quoting trigraphs, use
76955         valid C notation.  When quoting NUL, omit extra characters if next
76956         character is not digit.  Alter prototype.
76957         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
76958         callers.
76959         * modules/quotearg-tests: New module.
76960         * tests/test-quotearg.c: New test.
76962 2008-02-07  Eric Blake  <ebb9@byu.net>
76964         Quotearg part 3: add flag to control outer quote elision.
76965         * lib/quotearg.h (c_maybe_quoting_style): New style.
76966         (enum quoting_flags): Better documentation of flags.
76967         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
76968         c-maybe style.
76969         (quotearg_buffer_restyled): Handle new flag to elide outer
76970         quotes.
76972         Quotearg part 2: add flag that can control NUL elision.
76973         * lib/quotearg.h (set_quoting_flags): New prototype.
76974         * lib/quotearg.c (struct quoting_options): Add flag field.
76975         (set_quoting_flags): New function.
76976         (quotearg_buffer_restyled): Add flags parameter.
76977         (quotearg_alloc_mem): Set the flag if length cannot be returned.
76978         (quotearg_n_options): Set the flag, since length cannot be
76979         returned.
76980         (quoting_options_from_style): Default flags correctly.
76982         Quotearg part 1: more wrappers, restore quotearg_char state.
76983         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
76984         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
76985         (quotearg_colon_mem): New wrappers.
76986         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
76987         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
76988         functions.
76989         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
76990         (quotearg_colon_mem): New functions.
76992 2008-02-11  Bruno Haible  <bruno@clisp.org>
76994         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
76995         library in the current directory: it does not work with parallel make.
76996         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
76998 2008-02-11  Bruno Haible  <bruno@clisp.org>
77000         * .gitattributes: New file.
77002 2008-02-11  Jim Meyering  <meyering@redhat.com>
77004         useless-if-before-free: Fix reversed exit values.
77005         * build-aux/useless-if-before-free: Use correct values
77006         for EXIT_MATCH and EXIT_NO_MATCH.
77008         * build-aux/useless-if-before-free: Close stdout carefully.
77010 2008-02-10  Bruno Haible  <bruno@clisp.org>
77012         New module 'git-merge-changelog'.
77013         * modules/git-merge-changelog: New file.
77014         * lib/git-merge-changelog.c: New file.
77016 2008-02-10  Jim Meyering  <meyering@redhat.com>
77018         useless-if-before-free: New option: --list (-l).
77020         useless-if-before-free: Don't exit immediately upon open failure.
77021         * build-aux/useless-if-before-free: Exit 2 for errors.
77022         Upon failure to open a file, don't exit immediately.
77023         Rather, just warn and continue with any remaining files.
77025 2008-02-10  Bruno Haible  <bruno@clisp.org>
77027         New abstract list operation 'node_set_value'.
77028         * lib/gl_list.h (gl_list_node_set_value): New function.
77029         (struct gl_list_implementation): New field node_set_value.
77030         * lib/gl_list.c (gl_list_node_set_value): New function.
77031         * lib/gl_array_list.c (gl_array_node_set_value): New function.
77032         (gl_array_list_implementation): Update.
77033         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
77034         (gl_carray_list_implementation): Update.
77035         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
77036         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
77037         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
77038         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
77039         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
77040         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
77041         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
77042         Update.
77043         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
77044         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
77045         (gl_sublist_list_implementation): Update.
77047 2008-02-10  Bruno Haible  <bruno@clisp.org>
77049         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
77050         Needed when ELEMENT is #defined to 'some_type *'.
77052 2008-02-10  Jim Meyering  <meyering@redhat.com>
77054         New script and module: useless-if-before-free
77055         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
77056         * build-aux/useless-if-before-free: New file.
77057         * modules/useless-if-before-free: New file.
77059         * build-aux/gitlog-to-changelog: Use committer date, not author date.
77061         xstrtol_error: Fix typo.
77062         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
77063         s/exit_failure/exit_status/.
77065 2008-02-09  Jim Meyering  <meyering@redhat.com>
77067         New script and module: gitlog-to-changelog
77068         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
77069         * modules/gitlog-to-changelog: New file.
77070         * build-aux/gitlog-to-changelog: New file.
77072 2008-02-08  Jim Meyering  <meyering@redhat.com>
77074         Avoid two "parameter unused" warnings.
77075         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
77076         Mark "st" as used.
77078         Use "git COMMAND", not "git-COMMAND".
77079         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
77080         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
77081         * build-aux/git-version-gen: Use "git status", not "git-status".
77083 2008-02-07  Bruno Haible  <bruno@clisp.org>
77085         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
77086         Avoids a crash on Windows Vista.
77087         Reported by Adam Strzelecki <ono@java.pl> via
77088         Simon Josefsson <simon@josefsson.org>.
77090 2008-02-06  Bruno Haible  <bruno@clisp.org>
77092         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
77093         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
77094         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
77095         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
77096         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
77097         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
77098         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
77099         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
77100         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
77101         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
77102         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
77103         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
77104         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
77105         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
77106         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
77107         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
77108         left-adjust flag.
77109         * tests/test-snprintf-posix.h (test_function): Likewise.
77110         * tests/test-sprintf-posix.h (test_function): Likewise.
77111         * tests/test-vasprintf-posix.c (test_function): Likewise.
77112         * doc/posix-functions/fprintf.texi: Update.
77113         * doc/posix-functions/printf.texi: Update.
77114         * doc/posix-functions/snprintf.texi: Update.
77115         * doc/posix-functions/sprintf.texi: Update.
77116         * doc/posix-functions/vfprintf.texi: Update.
77117         * doc/posix-functions/vprintf.texi: Update.
77118         * doc/posix-functions/vsnprintf.texi: Update.
77119         * doc/posix-functions/vsprintf.texi: Update.
77120         Reported by Peter Fales <psfales@alcatel-lucent.com>.
77122 2008-02-06  Bruno Haible  <bruno@clisp.org>
77124         Fix bug introduced on 2008-01-26.
77125         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
77127 2008-02-06  Bruno Haible  <bruno@clisp.org>
77129         Fix bug introduced on 2007-06-10.
77130         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
77131         !NEED_PRINTF_FLAG_ZERO.
77133 2008-02-05  Peter O'Gorman  <pogma@thewrittenword.com>
77135         getloadavg: use libperfstat on AIX5
77136         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
77138 2008-02-03  Bruno Haible  <bruno@clisp.org>
77140         * lib/diffseq.h: Add comments about required #includes.
77141         Reported by Michael Biggs <gnulib@doubleplum.net>.
77143 2008-02-01  Bruno Haible  <bruno@clisp.org>
77145         * users.txt: Add gnuit.
77147 2008-01-31  Bruno Haible  <bruno@clisp.org>
77149         * lib/md4.c (set_uint32): Mark as inline.
77150         * lib/md5.c (set_uint32): Likewise.
77151         * lib/sha1.c (set_uint32): Likewise.
77152         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
77153         * m4/md5.m4 (gl_MD5): Likewise.
77154         * m4/sha1.m4 (gl_SHA1): Likewise.
77156 2008-01-31  Jim Meyering  <meyering@redhat.com>
77158         Use "sizeof VAR", rather than a literal "4".
77159         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
77160         * lib/md4.c (md4_read_ctx): Likewise.
77161         * lib/sha1.c (sha1_read_ctx): Likewise.
77163 2008-01-31  Simon Josefsson  <simon@josefsson.org>
77165         * tests/test-sha1.c: New file, based on test-md5.c.
77167         * modules/crypto/sha1-tests: New file.
77169 2008-01-31  Simon Josefsson  <simon@josefsson.org>
77171         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
77173 2008-01-31  Jim Meyering  <meyering@redhat.com>
77175         Prefer "sizeof v" over the equivalent "4".
77176         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
77177         * lib/md5.c (set_uint32): Likewise.
77178         * lib/sha1.c (set_uint32): Likewise.
77180 2008-01-31  Simon Josefsson  <simon@josefsson.org>
77182         * lib/sha1.c (set_uint32): Mark function as static.
77184 2008-01-31  Simon Josefsson  <simon@josefsson.org>
77186         md2: clarify comments to say that alignment is not required.
77187         * lib/md2.h: Remove warning about alignment in comment.
77188         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
77189         never been required.
77191 2008-01-31  Simon Josefsson  <simon@josefsson.org>
77193         md4: adapt alignment constraint fix from sha1.
77194         * lib/md4.c (set_uint32): New function, from sha1.c
77195         (md4_read_ctx): Use it.
77196         (md4_finish_ctx): Doc fix.
77197         * lib/md4.h: Doc fix.
77199 2008-01-31  Simon Josefsson  <simon@josefsson.org>
77201         md5: adapt alignment constraint fix from sha1.
77202         * lib/md5.c (set_uint32): New function, from sha1.c
77203         (md5_read_ctx): Use it.
77204         (md5_finish_ctx): Doc fix.
77205         * lib/md5.h: Doc fix.
77207 2008-01-30  Peter Palfrader  <weasel@debian.org>
77209         sha1: remove the result buffer alignment constraint
77210         * lib/sha1.c (set_uint32): New function.
77211         (sha1_read_ctx): Rewrite to remove the result buffer alignment
77212         constraint.
77213         (sha1_finish_ctx): Remove comment warning about alignment constraint.
77214         * lib/sha1.h: Likewise.
77216 2008-01-30  Andreas Schwab  <schwab@suse.de>
77217             Bruno Haible  <bruno@clisp.org>
77219         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
77220         correct definition of LDBL_MIN_EXP.
77222 2008-01-30  Karl Berry  <karl@gnu.org>
77224         * config/srclist-update: try to preserve x bit on updates.
77225         * config/srclistvars.sh: update for karl.
77227 2008-01-29  Jim Meyering  <meyering@redhat.com>
77229         vasnprintf.c: Avoid warning about unused label
77230         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
77231         "overflow" label definition and associated code with the
77232         same cpp condition that guards the sole use of that label.
77234 2008-01-26  Bruno Haible  <bruno@clisp.org>
77236         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
77237         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
77238         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
77239         * lib/isnanl-nolibm.h (isnanl): Likewise.
77240         Reported by Paul Eggert <eggert@cs.ucla.edu>.
77242 2008-01-26  Bruno Haible  <bruno@clisp.org>
77244         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
77245         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
77247 2008-01-26  Bruno Haible  <bruno@clisp.org>
77249         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
77250         GCC >= 4.0 built-in.
77251         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
77253 2008-01-26  Bruno Haible  <bruno@clisp.org>
77255         Rename isnan, applicable to 'double' only, to isnand.
77256         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
77257         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
77258         (configure.ac): Update.
77259         (Include): Replace "isnan.h" with "isnand.h".
77260         * m4/isnand.m4: Renamed from m4/isnan.m4.
77261         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
77262         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
77263         instead of isnan.c.
77264         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
77265         instead of HAVE_ISNAN_IN_LIBC.
77266         (isnand): Renamed from isnan.
77267         * lib/isnand.c: New file.
77268         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
77269         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
77270         (Makefile.am): Update.
77271         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
77272         Include isnand.h instead of isnan.h.
77273         (main): Test isnand instead of isnan.
77274         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
77275         isnan-nolibm.
77276         * modules/frexp (Depends-on): Likewise.
77277         * modules/frexp-tests (Depends-on): Likewise.
77278         * modules/frexp-nolibm (Depends-on): Likewise.
77279         * modules/frexp-nolibm-tests (Depends-on): Likewise.
77280         * modules/isfinite (Depends-on): Likewise.
77281         * modules/round-tests (Depends-on): Likewise.
77282         * modules/signbit (Depends-on): Likewise.
77283         * modules/signbit-tests (Depends-on): Likewise.
77284         * modules/snprintf-posix (Depends-on): Likewise.
77285         * modules/sprintf-posix (Depends-on): Likewise.
77286         * modules/trunc-tests (Depends-on): Likewise.
77287         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
77288         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
77289         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
77290         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
77291         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
77292         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
77293         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
77294         * modules/vasnprintf-posix (Depends-on): Likewise.
77295         * modules/vasprintf-posix (Depends-on): Likewise.
77296         * modules/vfprintf-posix (Depends-on): Likewise.
77297         * modules/vsnprintf-posix (Depends-on): Likewise.
77298         * modules/vsprintf-posix (Depends-on): Likewise.
77299         * lib/frexp.c: Include isnand.h instead of isnan.h.
77300         (ISNAN): Set to isnand instead of isnan.
77301         * lib/isfinite.c: Include isnand.h instead of isnan.h.
77302         (gl_isfinited): Use isnand instead of isnan.
77303         * lib/signbitd.c: Include isnand.h instead of isnan.h.
77304         (gl_signbitd): Use isnand instead of isnan.
77305         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
77306         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
77307         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
77308         (main): Use isnand instead of isnan.
77309         * tests/test-round1.c: Include isnand.h.
77310         (main): Use isnand instead of isnan.
77311         * tests/test-round2.c: Include isnand.h instead of isnan.h.
77312         (ISNAN): Set to isnand instead of isnan.
77313         * tests/test-trunc1.c: Include isnand.h.
77314         (main): Use isnand instead of isnan.
77315         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
77316         (equal): Use isnand instead of isnan.
77317         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
77318         isnand-nolibm.
77319         * NEWS: Mention the change.
77321 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
77322             Bruno Haible  <bruno@clisp.org>
77324         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
77325         the GCC builtins for signbits are present and set
77326         REPLACE_SIGNBIT_USING_GCC if so.
77327         * lib/math.in.h (signbit): Define using GCC builtins if
77328         REPLACE_SIGNBIT_USING_GCC is set.
77329         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
77330         REPLACE_SIGNBIT_USING_GCC.
77331         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
77333 2008-01-25  Jim Meyering  <meyering@redhat.com>
77335         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
77336         * lib/poll.c: Include <config.h>, not "config.h".
77337         * tests/test-getaddrinfo.c: Likewise.
77339 2008-01-25  Simon Josefsson  <simon@josefsson.org>
77341         * modules/sockets-tests: New file.
77343 2008-01-24  Simon Josefsson  <simon@josefsson.org>
77345         * modules/sockets: New module, can be used to call WSA_Startup and
77346         WSA_Cleanup when needed.
77348         * lib/sockets.h, lib/sockets.c: New files.
77350         * m4/sockets.m4: New file.
77352         * tests/test-sockets.c: New file.
77354 2008-01-19  Bruno Haible  <bruno@clisp.org>
77356         * doc/posix-headers: Renamed from doc/headers.
77357         * doc/posix-functions: Renamed from doc/functions.
77358         * doc/gnulib.texi: Update.
77360 2008-01-19  Bruno Haible  <bruno@clisp.org>
77362         * doc/glibc-functions/strcasestr.texi: Include contents of
77363         doc/functions/strcasestr.texi, fixing the list of platforms.
77364         * doc/functions/strcasestr.texi: Remove file.
77366 2008-01-19  Bruno Haible  <bruno@clisp.org>
77368         * doc/glibc-functions/memmem.texi: Include contents of
77369         doc/functions/memmem.texi.
77370         * doc/functions/memmem.texi: Remove file.
77372 2008-01-18  Bruno Haible  <bruno@clisp.org>
77374         * doc/glibc-functions/*.texi: New files.
77375         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
77376         to use the new files.
77378 2008-01-17  Bruno Haible  <bruno@clisp.org>
77380         * tests/test-gethostname.c (main): Fix printf statement.
77382 2008-01-17  Simon Josefsson  <simon@josefsson.org>
77384         * modules/gethostname-tests: New file.
77386         * tests/test-gethostname.c: New file.
77388 2008-01-17  Simon Josefsson  <simon@josefsson.org>
77390         * lib/gethostname.c: Include string.h unconditionally, strncpy is
77391         used by the UNAME case.  Reported by Bruno Haible
77392         <bruno@clisp.org>.
77394 2008-01-17  Eric Blake  <ebb9@byu.net>
77396         Convert c-strcasestr to be more efficient.
77397         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
77398         (Depends-on): Add c-strcase, remove malloca, strnlen.
77399         * tests/test-c-strcasestr.c (main): Enhance test.
77400         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
77402 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
77404         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
77405         Use it in creating po/Makevars.
77407 2008-01-15  Simon Josefsson  <simon@josefsson.org>
77409         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
77410         Applications that requires it should initialize libgcrypt
77411         manually.
77413 2008-01-16  Simon Josefsson  <simon@josefsson.org>
77415         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
77417 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
77419         Fix problem with getdate on mingw32 reported by Simon Josefsson
77420         in <http://lists.gnu.org/r/bug-gnulib/2008-01/msg00192.html>.
77421         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
77422         tzname", when deciding whether to declare tzname.
77423         * lib/strftime.c (tzname): Likewise.
77425 2008-01-15  Bruno Haible  <bruno@clisp.org>
77427         Work around a MacOS X 10.5 bug in frexpl().
77428         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
77429         * doc/functions/frexpl.texi: Document the bug.
77430         Reported by Elias Pipping <pipping@gentoo.org>.
77432 2008-01-14  Eric Blake  <ebb9@byu.net>
77434         Touch up previous patch.
77435         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
77436         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
77438         Convert strcasestr module to use Two-Way algorithm.
77439         * modules/strcasestr-simple: New module, based on the old
77440         strcasestr, but with Two-Way rather than KMP.
77441         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
77442         * lib/string.in.h (rpl_strcasestr): Declare.
77443         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
77444         performance.
77445         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
77446         * modules/string (Makefile.am): Support strcasestr.
77447         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
77448         * modules/strcasestr-tests (Depends-on): Check for alarm.
77449         * tests/test-strcasestr.c: Augment test.
77450         * lib/str-two-way.h: Clean up stray macro.
77451         * NEWS: Document new module.
77452         * MODULES.html.sh (string handling): Likewise.
77453         * doc/functions/strcasestr.texi: New file.
77454         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
77455         here, since it is not a POSIX function.
77457 2008-01-14  Colin Watson  <cjwatson@debian.org>
77458             Bruno Haible  <bruno@clisp.org>
77460         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
77461         works fine; if not, set REPLACE_STRSIGNAL.
77462         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
77463         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
77464         REPLACE_STRSIGNAL.
77465         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
77466         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
77467         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
77469 2008-01-14  Bruno Haible  <bruno@clisp.org>
77471         * modules/strsignal (Include): Change to <string.h>.
77473 2008-01-14  Colin Watson  <cjwatson@debian.org>
77475         * modules/argp (Notice): Add a notice recommending to change
77476         XGETTEXT_OPTIONS.
77477         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
77479 2008-01-13  Colin Watson  <cjwatson@debian.org>
77481         * modules/strsignal-tests: New file.
77482         * tests/test-strsignal.c: New file.
77484         * lib/strsignal.c: New file, from glibc with modifications.
77485         * lib/siglist.h: New file, from glibc with modifications.
77486         * lib/string.in.h (strsignal): New declaration.
77487         * m4/strsignal.m4: New file.
77488         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
77489         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
77490         * modules/strsignal: New file.
77491         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
77492         HAVE_DECL_STRSIGNAL.
77494 2008-01-13  Bruno Haible  <bruno@clisp.org>
77496         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
77497         locale encoding is not ASCII. Needed for OpenBSD 4.0.
77498         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
77499         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
77501 2008-01-13  Bruno Haible  <bruno@clisp.org>
77503         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
77504         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
77505         * lib/argp.h (__attribute__): Likewise.
77506         * lib/c-stack.c (__attribute__): Likewise.
77507         * lib/error.h (__attribute__): Likewise.
77508         * lib/fts.c (__attribute__): Likewise.
77509         * lib/openat.h (__attribute__): Likewise.
77510         * lib/stdio.in.h (__attribute__): Likewise.
77511         * lib/string.in.h (__attribute__): Likewise.
77512         * lib/utimens.c (__attribute__): Likewise.
77513         * lib/vasnprintf.h (__attribute__): Likewise.
77514         * lib/xalloc.h (__attribute__): Likewise.
77515         * lib/xprintf.h (__attribute__): Likewise.
77516         * lib/xstrtol.h (__attribute__): Likewise.
77517         * lib/xvasprintf.h (__attribute__): Likewise.
77519 2008-01-12  Bruno Haible  <bruno@clisp.org>
77521         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
77522         * doc/glibc-headers/a.out.texi: New file.
77523         * doc/glibc-headers/aliases.texi: New file.
77524         * doc/glibc-headers/alloca.texi: New file.
77525         * doc/glibc-headers/ar.texi: New file.
77526         * doc/glibc-headers/argp.texi: New file.
77527         * doc/glibc-headers/argz.texi: New file.
77528         * doc/glibc-headers/byteswap.texi: New file.
77529         * doc/glibc-headers/crypt.texi: New file.
77530         * doc/glibc-headers/endian.texi: New file.
77531         * doc/glibc-headers/envz.texi: New file.
77532         * doc/glibc-headers/err.texi: New file.
77533         * doc/glibc-headers/error.texi: New file.
77534         * doc/glibc-headers/execinfo.texi: New file.
77535         * doc/glibc-headers/fpu_control.texi: New file.
77536         * doc/glibc-headers/fstab.texi: New file.
77537         * doc/glibc-headers/fts.texi: New file.
77538         * doc/glibc-headers/getopt.texi: New file.
77539         * doc/glibc-headers/ieee754.texi: New file.
77540         * doc/glibc-headers/ifaddrs.texi: New file.
77541         * doc/glibc-headers/libintl.texi: New file.
77542         * doc/glibc-headers/mcheck.texi: New file.
77543         * doc/glibc-headers/mntent.texi: New file.
77544         * doc/glibc-headers/obstack.texi: New file.
77545         * doc/glibc-headers/paths.texi: New file.
77546         * doc/glibc-headers/printf.texi: New file.
77547         * doc/glibc-headers/pty.texi: New file.
77548         * doc/glibc-headers/resolv.texi: New file.
77549         * doc/glibc-headers/shadow.texi: New file.
77550         * doc/glibc-headers/sysexits.texi: New file.
77551         * doc/glibc-headers/ttyent.texi: New file.
77553 2008-01-12  Jim Meyering  <meyering@redhat.com>
77555         announce-gen: emit Gnulib's git-based version string.
77556         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
77557         New option --gnulib-version=V, where V is expected to be
77558         the output of running git describe in the gnulib directory.
77559         (get_tool_versions): Request feedback on xdelta.  I suspect it's
77560         not useful, and plan to stop publishing an xdelta file with each
77561         coreutils release.
77563         * build-aux/announce-gen: Also check for lzma-compressed files.
77565 2008-01-11  Bruno Haible  <bruno@clisp.org>
77567         * tests/test-memmem.c (main): Increase maximum allowed time.
77568         * tests/test-strstr.c (main): Likewise.
77570 2008-01-11  Bruno Haible  <bruno@clisp.org>
77572         * doc/functions/memmem.texi: Add more precisions about platforms.
77573         * doc/functions/strstr.texi: Likewise.
77575 2008-01-10  Eric Blake  <ebb9@byu.net>
77577         * m4/strstr.m4: Delete cruft from copy-n-paste.
77578         Reported by Bruno Haible.
77580 2008-01-10  Bruno Haible  <bruno@clisp.org>
77582         Make c-strstr rely on strstr.
77583         * lib/c-strstr.c: Don't include str-kmp.h.
77584         (c_strstr): Define in terms of strstr.
77585         * modules/c-strstr (Files): Remove lib/str-kmp.h.
77586         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
77588 2008-01-10  Bruno Haible  <bruno@clisp.org>
77590         * doc/gnulib.texi (String Functions in C Locale): New section.
77591         * doc/c-ctype.texi: New file.
77592         * doc/c-strcase.texi: New file.
77593         * doc/c-strcaseeq.texi: New file.
77594         * doc/c-strcasestr.texi: New file.
77595         * doc/c-strstr.texi: New file.
77596         * doc/c-strtod.texi: New file.
77597         * doc/c-strtold.texi: New file.
77599 2008-01-10  Eric Blake  <ebb9@byu.net>
77601         * lib/relocatable.h: Fix a comment.
77603 2008-01-10  Eric Blake  <ebb9@byu.net>
77605         Share two-way algorithm.
77606         * lib/str-two-way.h: New file, merged from...
77607         * lib/memmem.c: ...here...
77608         * lib/strstr.c: ...and here.
77609         * modules/memmem (Files): Use it.
77610         * modules/strstr (Files): Likewise.
77612         Avoid quadratic strstr implementations.
77613         * lib/strstr.c: New file.
77614         * m4/strstr.m4: Likewise.
77615         * modules/strstr: Likewise.
77616         * modules/strstr-tests: Likewise.
77617         * tests/test-strstr.c: Likewise.
77618         * lib/string.in.h (rpl_strstr): Declare.
77619         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
77620         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
77621         * modules/string (Makefile.am): Likewise.
77622         * MODULES.html.sh (string handling): Mention new module.
77623         * doc/functions/strstr.texi (strstr): Document the bug.
77625 2008-01-10  Bruno Haible  <bruno@clisp.org>
77627         * lib/relocatable.h (relocate): State whether result is freshly
77628         allocated or not.
77629         * lib/relocatable.c (relocate): Return a freshly allocated string
77630         instead of a pointer to a privately held string.
77631         Reported by Sylvain Beucler <beuc@gnu.org>.
77633 2008-01-10  Colin Watson  <cjwatson@debian.org>
77635         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
77636         s/S_ISNLK/S_ISLNK/.
77638 2008-01-09  Bruno Haible  <bruno@clisp.org>
77640         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
77641         and other files.
77642         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
77643         if it's only a guess.
77644         * modules/memmem: Simplify by depending on memmem-simple.
77646 2008-01-09  Bruno Haible  <bruno@clisp.org>
77648         Work around OpenBSD 4.0 tdelete() bug.
77649         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
77650         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
77651         macros and don't redefine the enum values.
77652         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
77653         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
77654         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
77656 2008-01-09  Bruno Haible  <bruno@clisp.org>
77658         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
77659         (main): Don't perform the tests if setlocale did not install a UTF-8
77660         locale. Needed on OpenBSD 4.0.
77661         * modules/wcwidth-tests (Depends-on): Add localcharset.
77663 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
77665         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
77666         See <http://lists.gnu.org/r/bug-gnulib/2007-12/msg00149.html>.
77667         * NEWS: announce this.
77668         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
77670 2008-01-09  Simon Josefsson  <simon@josefsson.org>
77671         and Eric Blake  <ebb9@byu.net>
77673         Add memmem-simple module.
77674         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
77675         (gl_FUNC_MEMMEM): Separate performance from presence checks.
77676         * modules/memmem-simple: New file.
77677         * modules/memmem (Description): Tweak.
77678         * MODULES.html.sh (string handling): Mention new module.
77679         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
77680         addressed by memmem-simple.
77681         * NEWS: Document the difference.
77683 2008-01-09  Eric Blake  <ebb9@byu.net>
77685         Give gcc some memmem optimization hints.
77686         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
77687         (strcasestr): Declare as pure.
77688         * modules/memmem (Maintainer): Claim my implementation.
77690 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77692         Support AIX 6.1 and higher.
77693         * build-aux/config.libpath: Likewise.
77694         * build-aux/config.rpath: Likewise.
77696 2008-01-08  Jim Meyering  <meyering@redhat.com>
77697             Bruno Haible  <bruno@clisp.org>
77699         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
77700         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
77701         Reported by Peter Fales in
77702         <http://lists.gnu.org/r/bug-coreutils/2007-12/msg00148.html>.
77704 2008-01-08  Bruno Haible  <bruno@clisp.org>
77706         * modules/unictype/category-of (Depends-on): Add
77707         unictype/category-none.
77708         * modules/unictype/category-and-tests (Depends-on): Add
77709         unictype/category-{L,N,Lu,Nd}.
77710         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
77711         * modules/unictype/category-or-tests (Depends-on): Add
77712         unictype/category-{L,N}.
77713         * modules/unictype/category-name-tests (Depends-on): Add
77714         unictype/category-{Z,Nl}.
77715         Reported by Simon Josefsson.
77717 2008-01-08  Bruno Haible  <bruno@clisp.org>
77719         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
77720         convention better.
77721         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
77722         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
77723         Reported by Peter Miller <millerp@canb.auug.org.au>.
77725 2008-01-08  Eric Blake  <ebb9@byu.net>
77727         Rewrite memmem to guarantee linear complexity without malloc.
77728         * lib/memmem.c (memmem): Use Two-Way rather than
77729         Knuth-Morris-Pratt, to allow O(1) space usage.
77730         (critical_factorization, two_way_short_needle)
77731         (two_way_long_needle): New functions.
77732         (knuth_morris_pratt): Delete.
77733         * modules/memmem (Depends-on): No longer need malloca or stdbool.
77734         Add stdint.
77735         * tests/test-memmem.c (main): Add tests for periodic needle and
77736         sublinear performance.
77737         * doc/functions/memmem.texi (memmem): Document other deficiencies
77738         in cygwin and older glibc.
77740 2008-01-08  Bruno Haible  <bruno@clisp.org>
77742         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
77743         augmentation.
77745 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
77747         Add a configure time option: --disable-acl.
77748         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
77749         AC_ARG_ENABLE(acl).
77751 2008-01-06  Simon Josefsson  <simon@josefsson.org>
77753         * tests/test-localename.c: Don't include obsolete "setenv.h".
77755         * modules/localename-tests (Depends-on): Need unsetenv.
77757 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77759         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
77761 2008-01-06  Colin Watson  <cjwatson@debian.org>
77763         * users.txt: Add man-db.
77765 2008-01-07  Bruno Haible  <bruno@clisp.org>
77767         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
77768         previous section name.
77770 2008-01-07  Bruno Haible  <bruno@clisp.org>
77772         * lib/progname.c (set_program_name): Don't strip off a leading
77773         "lt-" prefix outside a .libs directory.
77774         Suggested by Paul Eggert.
77776 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
77777             Bruno Haible  <bruno@clisp.org>
77779         Improve memory cleanup in 'relocatable' module.
77780         * lib/relocatable.h (compute_curr_prefix): Change return type to
77781         'char *'.
77782         * lib/relocatable.c (compute_curr_prefix): Change return type to
77783         'char *'. Free curr_installdir after use.
77784         (relocate): Free curr_prefix_better after use.
77785         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
77787 2008-01-01  Bruno Haible  <bruno@clisp.org>
77789         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
77790         failure on older glibc systems.
77791         Reported by Peter Fales <psfales@alcatel-lucent.com>.
77793 2008-01-05  Eric Blake  <ebb9@byu.net>
77795         Avoid quadratic system memmem.
77796         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
77797         Reported by Ralf Wildenhues.
77799         Fix memmem test for mingw.
77800         * modules/memmem-tests (configure.ac): Check for alarm.
77801         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
77802         it.
77803         * doc/functions/memmem.texi: New file.
77804         * doc/gnulib.texi (Function Substitutes): Add memmem.
77805         Reported by Bruno Haible.
77807 2008-01-04  Bruno Haible  <bruno@clisp.org>
77809         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
77810         Require gl_HEADER_STRINGS_H_DEFAULTS, not
77811         gl_HEADER_STRING_H_DEFAULTS.
77813 2008-01-04  Eric Blake  <ebb9@byu.net>
77815         Shorten duration of memmem test.
77816         * tests/test-memmem.c (main): Use alarm to declare failure if test
77817         is taking too long.
77818         Reported by Ralf Wildenhues.
77820 2007-12-21  Simon Josefsson  <simon@josefsson.org>
77822         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
77823         string, needed by strerror.
77825 2008-01-03  Colin Watson  <cjwatson@debian.org>
77826             Bruno Haible  <bruno@clisp.org>
77828         * doc/gnulib-tool.texi (Localization): New section.
77830 2008-01-02  Bruno Haible  <bruno@clisp.org>
77832         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
77833         variables to 'unsigned char *' type.
77834         Reported by Paul Eggert.
77836 2008-01-02  Jim Meyering  <jim@meyering.net>
77838         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
77840 2007-12-31  Jim Meyering  <jim@meyering.net>
77842         Avoid use of private FTS type name.
77843         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
77845 2007-12-30  Karl Berry  <karl@gnu.org>
77847         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
77848         work around defect in Texinfo and/or the standalone Info browser.
77850 2007-12-30  Bruno Haible  <bruno@clisp.org>
77852         Unify 5 copies of the KMP code.
77853         * lib/str-kmp.h: New file.
77854         * lib/c-strcasestr.c: Include str-kmp.h.
77855         (knuth_morris_pratt): Remove function.
77856         (c_strcasestr): Update.
77857         * lib/c-strstr.c: Include str-kmp.h.
77858         (knuth_morris_pratt): Remove function.
77859         (c_strcasestr): Update.
77860         * lib/mbscasestr.c: Include str-kmp.h.
77861         (knuth_morris_pratt_unibyte): Remove function.
77862         * lib/mbsstr.c: Include str-kmp.h.
77863         (knuth_morris_pratt_unibyte): Remove function.
77864         * lib/strcasestr.c: Include str-kmp.h.
77865         (knuth_morris_pratt): Remove function.
77866         (strcasestr): Update.
77867         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
77868         * modules/c-strstr (Files): Likewise.
77869         * modules/mbscasestr (Files): Likewise.
77870         * modules/mbsstr (Files): Likewise.
77871         * modules/strcasestr (Files): Likewise.
77872         Suggested by Paul Eggert.
77874 2007-12-30  Bruno Haible  <bruno@clisp.org>
77876         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
77877         defined.
77879 2007-12-30  Bruno Haible  <bruno@clisp.org>
77881         * lib/xmalloca.h: Include xalloc.h.
77882         (xnmalloca): New macro.
77884 2007-12-30  Bruno Haible  <bruno@clisp.org>
77886         * lib/malloca.h (nmalloca): New macro.
77887         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
77888         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
77889         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
77890         knuth_morris_pratt_multibyte): Likewise.
77891         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
77892         knuth_morris_pratt_multibyte): Likewise.
77893         * lib/memmem.c (knuth_morris_pratt): Likewise.
77894         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
77896 2007-12-25  Bruno Haible  <bruno@clisp.org>
77898         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
77899         * lib/glob.c: Don't include openat.h.
77900         (link_exists2_p): Add back the code that deals with the
77901         !GLOB_ALTDIRFUNC case.
77902         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
77903         let it do the filename concatenation.
77904         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
77905         * modules/glob (Depends-on): Remove openat.
77907 2007-12-31  Bruno Haible  <bruno@clisp.org>
77909         * modules/dirfd (License): Change to LGPLv2+.
77910         Approved by Jim Meyering.
77912 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
77914         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
77915         when multiplying M by sizeof (size_t).
77917 2007-12-10  Martin Lambers  <marlam@marlam.de>
77919         Override getpagesize on mingw.
77920         * lib/getpagesize.c: New file.
77921         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
77922         * modules/getpagesize (Files): Add lib/getpagesize.c.
77923         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
77924         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
77925         REPLACE_GETPAGESIZE.
77926         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
77928 2007-12-25  Bruno Haible  <bruno@clisp.org>
77930         * modules/localcharset (Notice): New field.
77931         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
77932         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
77934 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
77935             Bruno Haible  <bruno@clisp.org>
77937         Avoid using the syntax symbol() in formatted documentation.
77938         * MODULES.html.sh (func_module): When replacing symbol() with a
77939         hyperlink, remove the parentheses. Show an error if some remain.
77940         Recognize and render the '...' syntax.
77941         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
77942         Rework. Add paragraph about GCC's inlining.
77943         * doc/alloca.texi: Likewise.
77944         * doc/error.texi: Remove parentheses from symbol reference.
77945         * doc/gnulib-intro.texi: Likewise.
77946         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
77947         * modules/fnmatch (Description): Reword to say "the ... function".
77948         * modules/full-read (Description): Likewise.
77949         * modules/full-write (Description): Likewise.
77950         * modules/safe-read (Description): Likewise.
77951         * modules/safe-write (Description): Likewise.
77952         * modules/strchrnul (Description): Likewise.
77953         * modules/trim (Description): Likewise.
77954         * modules/error (Description): Remove parentheses from symbol
77955         references.
77956         * modules/verror (Description): Likewise.
77957         Reported by Karl Berry.
77959 2007-12-25  Bruno Haible  <bruno@clisp.org>
77961         Fixup after 2007-10-16 commit.
77962         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
77964 2007-12-24  Bruno Haible  <bruno@clisp.org>
77966         Make --enable-relocatable work with DESTDIR.
77967         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
77968         to compute installdir from destprog.
77969         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
77970         also set the RELOC_DESTDIR variable.
77971         Reported by Левашев Иван <octagram@bluebottle.com>.
77973 2007-12-24  Bruno Haible  <bruno@clisp.org>
77975         Fix link error due to xalloc_die().
77976         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
77977         of xreadlink.
77978         * lib/relocwrapper.c: Update comments.
77979         * build-aux/install-reloc: Remove xreadlink.c from file list.
77980         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
77981         xreadlink.c.
77982         Reported by Левашев Иван <octagram@bluebottle.com>.
77984 2007-12-24  Bruno Haible  <bruno@clisp.org>
77986         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
77987         * lib/setenv.h: Remove file.
77988         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
77989         lib/setenv.h.
77990         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
77991         (Depends-on): Add stdlib.
77992         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
77993         gl_FUNC_UNSETENV.
77994         (Include): Replace setenv.h with <stdlib.h>.
77995         * modules/unsetenv: New file.
77996         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
77997         * lib/unsetenv.c: Include <stdlib.h> first.
77998         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
77999         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
78000         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
78001         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
78002         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
78003         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
78004         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
78005         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
78006         * doc/functions/unsetenv.texi: Update.
78007         * modules/xsetenv (Depends-on): Add unsetenv.
78008         * modules/getdate (Depends-on): Likewise.
78009         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
78010         * lib/xsetenv.c: Don't include setenv.h.
78011         * lib/getdate.y: Likewise.
78012         * lib/relocwrapper.c: Likewise.
78013         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
78014         (Depends-on): Add stdlib.
78015         * NEWS: Mention the changes.
78016         Reported by Левашев Иван <octagram@bluebottle.com>.
78018 2007-12-23  Bruno Haible  <bruno@clisp.org>
78020         * lib/memmem.c (memmem): Use lowercase variable names. Tab
78021         indentation.
78023 2007-12-23  Bruno Haible  <bruno@clisp.org>
78025         * lib/c-strcasestr.c: Add more comments.
78026         * lib/c-strstr.c: Likewise.
78027         * lib/mbscasestr.c: Likewise.
78028         * lib/mbsstr.c: Likewise.
78029         * lib/strcasestr.c: Likewise.
78030         * lib/memmem.c: Likewise.
78032 2007-12-23  Bruno Haible  <bruno@clisp.org>
78034         * tests/test-memmem.c: Include <string.h> first.
78036 2007-12-22  Bruno Haible  <bruno@clisp.org>
78038         * gnulib-tool (func_create_testdir): Change $auxdir while generating
78039         the contents of $testsbase.
78040         Reported by Ralf Wildenhues.
78042 2007-12-22  Bruno Haible  <bruno@clisp.org>
78044         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
78045         two variables local_ldadd_before, local_ldadd_last.
78047 2007-12-20  Eric Blake  <ebb9@byu.net>
78049         Work around circular library issue when cross-compiling.
78050         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
78051         that progname.o does not need to pull in rpl_memcmp.
78053 2007-12-19  Eric Blake  <ebb9@byu.net>
78055         Fix memmem to avoid O(n^2) worst-case complexity.
78056         * lib/memmem.c (knuth_morris_pratt): New function.
78057         (memmem): Use it if first few naive iterations fail.
78058         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
78059         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
78060         * modules/memchr (License): Likewise.
78061         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
78062         malloca.
78063         * tests/test-memmem.c: Rewrite, borrowing ideas from
78064         test-mbsstr1.c; the old version wouldn't even compile!
78065         * modules/memmem-tests: New file.
78066         * lib/string.in.h (rpl_memmem): Add declaration.
78067         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
78068         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
78069         REPLACE_MEMMEM.
78071 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
78073         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
78074         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
78075         before any system include files, and undef after them all.  This
78076         should fix a problem on VMS reported by John E. Malmberg in
78077         <http://lists.gnu.org/r/bug-gnulib/2007-12/msg00118.html>.
78079 2007-12-17  Eric Blake  <ebb9@byu.net>
78081         Revert addition of verify, for BSD/OS.
78082         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
78083         can't handle large files, for the sake of obsolete platforms.
78084         * modules/fseeko (Depends-on): Remove verify.
78085         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
78086         * doc/functions/ftello.texi (ftello): Likewise.
78087         * doc/functions/fgetpos.texi (fgetpos): Likewise.
78088         Reported by Larry Jones.
78090 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
78092         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
78093         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
78095 2007-12-17  Jim Meyering  <meyering@redhat.com>
78097         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
78098         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
78099         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
78100         * modules/getcwd (Depends-on): Add openat.
78101         Reported by Petr Salinger.
78103 2007-12-17  Bruno Haible  <bruno@clisp.org>
78105         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
78106         avoid a segmentation fault of the configure test on x86_64 systems.
78108 2007-12-15  Jim Meyering  <meyering@redhat.com>
78110         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
78112 2007-12-13  Eric Blake  <ebb9@byu.net>
78114         Another fseek test.
78115         * tests/test-fseek.c (main): Also test ungetc handling.
78116         * tests/test-fseeko.c (main): Likewise.
78117         * modules/fseeko (Depends-on): Add verify.
78118         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
78119         large.
78120         Reported by Larry Jones.
78122         Fix fseeko on mingw.
78123         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
78124         seek.
78126         Beef up fseek tests.
78127         * tests/test-fseek.c (main): Also test eof handling.
78128         * tests/test-fseeko.c (main): Likewise.
78129         Reported by Larry Jones.
78131 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
78133         Fix fseeko on BSD-based platforms.
78134         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
78135         successful seek.
78137 2007-12-12  Eric Blake  <ebb9@byu.net>
78139         Allow circular dependency of separate libtests.a
78140         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
78141         when use_libtests.
78143 2007-12-11  Eric Blake  <ebb9@byu.net>
78145         Fix bug with -0.0L in previous patch.
78146         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
78147         * tests/test-isnan.c (main): Also test on zeroes.
78148         * tests/test-isnanf.c (main): Likewise.
78149         * tests/test-isnanl.h (main): Likewise.
78151         Detect pseudo-denormals on x86 even when cross-compiling.
78152         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
78153         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
78154         invalid bit patterns that happen to satisfy ==.
78156         Avoid link failures with separate libtests.a.
78157         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
78158         last, to satisfy circular dependencies.
78160 2007-12-11  Eric Blake  <ebb9@byu.net>
78161         and Bruno Haible  <bruno@clisp.org>
78163         Fix OpenBSD 4.0 <float.h> handling of long double.
78164         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
78165         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
78166         * doc/headers/float.texi (float.h): Document OpenBSD bug.
78168 2007-12-11  Jim Meyering  <meyering@redhat.com>
78170         * users.txt: Add libvirt.
78172         Support versions of autoconf prior to 2.59c.
78173         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
78174         if it is not already defined.
78176 2007-12-09  Bruno Haible  <bruno@clisp.org>
78178         Let 'gnulib-tool --import' collect sources needed for the tests in
78179         tests/ rather than in lib/.
78180         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
78181         argument. If true, add rules to generate libtests.a, and put libtests.a
78182         into $(LDADD). Consider source files in subdirectories and set
78183         uses_subdirs.
78184         (func_emit_initmacro_start, func_emit_initmacro_end,
78185         func_emit_initmacro_done): Pass all arguments explicitly.
78186         (func_import): Determine two module lists main_modules,
78187         testsrelated_modules. Determine use_libtests. Determine two variables
78188         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
78189         instead of just sed_transform_lib_file. Determine two variables
78190         main_files and testsrelated_files. Compute 'files' as the union of
78191         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
78192         func_add_or_update. In the generated gnulib-comp.m4, collect the
78193         object files for tests/ in different variables than those for lib/.
78194         Substitute LIBTESTS_LIBDEPS.
78195         (func_create_testdir): Combine the uses_subdirs results from
78196         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
78198 2007-12-09  Bruno Haible  <bruno@clisp.org>
78200         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
78201         the build-aux directory.
78203 2007-12-09  Bruno Haible  <bruno@clisp.org>
78205         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
78206         introduced on 2006-09-09.
78208 2007-12-07  Jim Meyering  <meyering@redhat.com>
78210         Let these macros work also with autoconf-2.59.
78211         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
78212         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
78213         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
78215 2007-12-06  Jim Meyering  <meyering@redhat.com>
78217         Avoid a configure-time syntax error in gl_FUNC_ACL.
78218         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
78219         function in each branch, before testing the cache variable.
78221 2007-12-04  Eric Blake  <ebb9@byu.net>
78223         Make scripts executable.
78224         * build-aux/config.guess: Add execute permissions.
78225         * build-aux/config.sub: Likewise.
78226         * build-aux/gendocs.sh: Likewise.
78228         Fix frexp on mingw.
78229         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
78230         cross-compiling.
78231         * doc/functions/frexp.texi (frexp): Document the bug.
78233         Make cygwin fseeko check more reliable.
78234         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
78235         version numbers, rather than unrelated feature check.
78236         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
78237         * doc/functions/ftello.texi (ftello): Likewise.
78238         Reported by Bruno Haible.
78240         * m4/strerror.m4: Bump version number.
78242 2007-12-03  Bruno Haible  <bruno@clisp.org>
78244         * doc/functions/mprotect.texi: Mention the mingw problem.
78246 2007-12-03  Eric Blake  <ebb9@byu.net>
78248         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
78249         REPLACE_STRERROR is initialized before this macro.
78251 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
78253         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
78254         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
78255         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
78256         put -lsec in even for programs other than 'ls'.  This fixes a problem
78257         for gettext reported by Bruno Haible in
78258         <http://lists.gnu.org/r/bug-gnulib/2007-12/msg00007.html>.
78259         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
78260         Add support for Solaris 10.  This isn't efficient, but should get the
78261         job done for now.
78263 2007-12-03  James Youngman  <jay@gnu.org>
78265         * doc/regexprops-generic.texi: change "an close-group" to "a
78266         close-group" and "illegal" to "not allowed".
78268 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78270         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
78271         pr_byname.h. Needed for the rare case when the maintainer has done
78272         "make maintainer-clean" in the source directory and then attempts a
78273         build outside the source directory.
78274         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
78275         scripts_byname.h.
78277 2007-12-02  Martin Lambers  <marlam@marlam.de>
78278             Bruno Haible  <bruno@clisp.org>
78280         * lib/getpagesize.h: Remove file.
78281         * lib/unistd.in.h: Include declaration of getpagesize here.
78282         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
78283         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
78284         HAVE_SYS_PARAM_H.
78285         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
78286         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
78287         * modules/getpagesize (Files): Remove lib/getpagesize.h.
78288         (Depends-on): Add unistd.
78289         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
78290         (Include): Use <unistd.h> instead of getpagesize.h.
78291         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
78292         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
78293         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
78294         gl_GETPAGESIZE invocation, already handled by module dependency.
78295         * lib/pagealign_alloc.c: Don't include getpagesize.h.
78297 2007-12-02  Bruno Haible  <bruno@clisp.org>
78299         * modules/strings-tests: New file.
78300         * tests/test-strings.c: New file.
78302         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
78303         * lib/strings.in.h: New file.
78304         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
78305         * m4/strings_h.m4: New file.
78306         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
78307         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
78308         * modules/strings: New file.
78309         * modules/string (Makefile.am): Update.
78310         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
78311         Reported by Karl Berry.
78313 2007-12-01  Eric Blake  <ebb9@byu.net>
78315         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
78316         accommodate fix in cygwin 1.5.25.
78318 2007-12-01  Jim Meyering  <meyering@redhat.com>
78320         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
78321         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
78322         that would inhibit utf8-optimization of a regexp containing line-
78323         or buffer-anchors, e.g., `^', `$'.
78325 2007-11-30  Bruno Haible  <bruno@clisp.org>
78327         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
78328         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
78329         glthread_recursive_lock_init.
78330         * lib/lock.c (glthread_recursive_lock_init)
78331         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
78332         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
78334 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
78336         New function qset_acl, like set_acl but with syscall semantics.
78337         * lib/acl.h (qset_acl): New decl.
78338         * lib/acl.c (qset_acl): New function.
78339         (set_acl): Use new function.  Use more-consistent diagnostics.
78341 2007-11-28  Jim Meyering  <meyering@redhat.com>
78343         * modules/physmem (License): Change from GPL to LGPLv2+.
78345 2007-11-26  Bruno Haible  <bruno@clisp.org>
78347         * lib/vasnprintf.c (decode_long_double): Don't abort if the
78348         'long double' type has excess precision.
78349         Reported by Jim Meyering in
78350         <http://lists.gnu.org/r/bug-gnulib/2007-11/msg00120.html>.
78352 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78354         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
78355         Sync from <http://gnu.org/licenses>.
78356         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
78357         with license text from same location.
78358         * doc/maintain.texi, doc/standards.texi:  Sync from
78359         <http://savannah.gnu.org/projects/gnustandards>.
78361 2007-11-22  Ondřej Vašík  <ovasik@redhat.com>
78362         and Jim Meyering  <meyering@redhat.com>
78364         Adjust getdate' grammar to accept a slightly more regular language.
78365         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
78366         Before, the former was rejected.
78367         * lib/getdate.y (digits_to_date_time): New function, factored
78368         out of ...
78369         (number): ...here.  Just call digits_to_date_time.
78370         (hybrid): New non-terminal to handle an <unsigned number,
78371         signed relative offset> sequence consistently.
78373 2007-11-18  Jim Meyering  <meyering@redhat.com>
78375         Pull my changes from coreutils:
78376         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
78377         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
78378         use of $gnulib_tool_option_extras, so that it's separated from the
78379         preceding argument.
78381         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
78382         * build-aux/bootstrap (cp_mark_as_generated): Create any required
78383         parent destination directories before copying a file into place.
78385 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
78387         bootstrap: work also with 4-argument variant of AC_INIT
78388         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
78390 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
78392         Port test-getaddrinfo to Solaris.
78393         Problem reported by Bruno Haible in
78394         <http://lists.gnu.org/r/bug-gnulib/2007-03/msg00171.html>.
78395         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
78396         explanation of setting 'hints'.
78397         Don't reject an implementation merely because it returns EAI_SERVICE.
78398         (EAI_SERVICE): Define to 0 if not defined.
78400 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
78402         The license of gnu-make and posix-shell is now "GPLed build tool".
78403         * modules/gnu-make (License): Likewise.
78404         * modules/posix-shell (License): Likewise.
78406         New module posix-shell, for determining a POSIX shell
78407         or perhaps something that is close enough to a POSIX shell.
78408         * m4/posix-shell.m4: New file.
78409         * modules/posix-shell: New file.
78411         * MODULES.html.sh: Mention new module.
78413         New module gnu-make, for determining whether we're using GNU Make.
78414         * m4/gnu-make.m4: New file.
78415         * modules/gnu-make: New file.
78416         * MODULES.html.sh: Mention new module.
78418 2007-11-14  Jim Meyering  <meyering@redhat.com>
78420         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
78421         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
78422         use this macro to create a function _definition_.
78423         Remove useless "#undef ARGMATCH_DIE".
78425 2007-11-14  Bruno Haible  <bruno@clisp.org>
78427         * lib/config.charset: Update for OpenBSD 4.1.
78428         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
78430 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
78432         Document 64-bit #if problems in stdint.texi.
78433         * doc/headers/stdint.texi (stdint.h): Mention problems with
78434         64-bit-#if, and how to work around them.
78436         Don't insist on 'long long int' support in the preprocessor.  It
78437         breaks too many things.  For example, PRIdMAX still uses a 'long
78438         long int' format with the latest Sun compiler, even though
78439         HAVE_LONG_LONG_INT isn't defined due to that compiler's
78440         preprocessor problem.  This causes the latest coreutils to dump
78441         core on Solaris 10 sparc with the Sun C compiler.
78442         Instead, fix the 2007-10-16 problem in a different way, by evaluating
78443         the troublesome expressions at configure-time, not at #if-time.
78444         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
78445         preprocessor.
78446         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
78447         compile-time C checks, done at 'configure'-time.
78448         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
78449         * modules/inttypes (Makefile): Substitute the new symbols that
78450         gl_INTTYPES_H now generates.
78451         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
78453 2007-11-12  Bruno Haible  <bruno@clisp.org>
78455         Tests for Unicode character classification functions.
78457         * modules/unictype/bidicategory-byname-tests: New file.
78458         * modules/unictype/bidicategory-name-tests: New file.
78459         * modules/unictype/bidicategory-of-tests: New file.
78460         * modules/unictype/bidicategory-test-tests: New file.
78461         * modules/unictype/block-list-tests: New file.
78462         * modules/unictype/block-of-tests: New file.
78463         * modules/unictype/block-test-tests: New file.
78464         * modules/unictype/category-C-tests: New file.
78465         * modules/unictype/category-Cc-tests: New file.
78466         * modules/unictype/category-Cf-tests: New file.
78467         * modules/unictype/category-Cn-tests: New file.
78468         * modules/unictype/category-Co-tests: New file.
78469         * modules/unictype/category-Cs-tests: New file.
78470         * modules/unictype/category-L-tests: New file.
78471         * modules/unictype/category-Ll-tests: New file.
78472         * modules/unictype/category-Lm-tests: New file.
78473         * modules/unictype/category-Lo-tests: New file.
78474         * modules/unictype/category-Lt-tests: New file.
78475         * modules/unictype/category-Lu-tests: New file.
78476         * modules/unictype/category-M-tests: New file.
78477         * modules/unictype/category-Mc-tests: New file.
78478         * modules/unictype/category-Me-tests: New file.
78479         * modules/unictype/category-Mn-tests: New file.
78480         * modules/unictype/category-N-tests: New file.
78481         * modules/unictype/category-Nd-tests: New file.
78482         * modules/unictype/category-Nl-tests: New file.
78483         * modules/unictype/category-No-tests: New file.
78484         * modules/unictype/category-P-tests: New file.
78485         * modules/unictype/category-Pc-tests: New file.
78486         * modules/unictype/category-Pd-tests: New file.
78487         * modules/unictype/category-Pe-tests: New file.
78488         * modules/unictype/category-Pf-tests: New file.
78489         * modules/unictype/category-Pi-tests: New file.
78490         * modules/unictype/category-Po-tests: New file.
78491         * modules/unictype/category-Ps-tests: New file.
78492         * modules/unictype/category-S-tests: New file.
78493         * modules/unictype/category-Sc-tests: New file.
78494         * modules/unictype/category-Sk-tests: New file.
78495         * modules/unictype/category-Sm-tests: New file.
78496         * modules/unictype/category-So-tests: New file.
78497         * modules/unictype/category-Z-tests: New file.
78498         * modules/unictype/category-Zl-tests: New file.
78499         * modules/unictype/category-Zp-tests: New file.
78500         * modules/unictype/category-Zs-tests: New file.
78501         * modules/unictype/category-and-not-tests: New file.
78502         * modules/unictype/category-and-tests: New file.
78503         * modules/unictype/category-byname-tests: New file.
78504         * modules/unictype/category-name-tests: New file.
78505         * modules/unictype/category-none-tests: New file.
78506         * modules/unictype/category-of-tests: New file.
78507         * modules/unictype/category-or-tests: New file.
78508         * modules/unictype/category-test-withtable-tests: New file.
78509         * modules/unictype/combining-class-tests: New file.
78510         * modules/unictype/ctype-alnum-tests: New file.
78511         * modules/unictype/ctype-alpha-tests: New file.
78512         * modules/unictype/ctype-blank-tests: New file.
78513         * modules/unictype/ctype-cntrl-tests: New file.
78514         * modules/unictype/ctype-digit-tests: New file.
78515         * modules/unictype/ctype-graph-tests: New file.
78516         * modules/unictype/ctype-lower-tests: New file.
78517         * modules/unictype/ctype-print-tests: New file.
78518         * modules/unictype/ctype-punct-tests: New file.
78519         * modules/unictype/ctype-space-tests: New file.
78520         * modules/unictype/ctype-upper-tests: New file.
78521         * modules/unictype/ctype-xdigit-tests: New file.
78522         * modules/unictype/decimal-digit-tests: New file.
78523         * modules/unictype/digit-tests: New file.
78524         * modules/unictype/mirror-tests: New file.
78525         * modules/unictype/numeric-tests: New file.
78526         * modules/unictype/property-alphabetic-tests: New file.
78527         * modules/unictype/property-ascii-hex-digit-tests: New file.
78528         * modules/unictype/property-bidi-arabic-digit-tests: New file.
78529         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
78530         * modules/unictype/property-bidi-block-separator-tests: New file.
78531         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
78532         * modules/unictype/property-bidi-common-separator-tests: New file.
78533         * modules/unictype/property-bidi-control-tests: New file.
78534         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
78535         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
78536         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
78537         * modules/unictype/property-bidi-european-digit-tests: New file.
78538         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
78539         * modules/unictype/property-bidi-left-to-right-tests: New file.
78540         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
78541         * modules/unictype/property-bidi-other-neutral-tests: New file.
78542         * modules/unictype/property-bidi-pdf-tests: New file.
78543         * modules/unictype/property-bidi-segment-separator-tests: New file.
78544         * modules/unictype/property-bidi-whitespace-tests: New file.
78545         * modules/unictype/property-byname-tests: New file.
78546         * modules/unictype/property-combining-tests: New file.
78547         * modules/unictype/property-composite-tests: New file.
78548         * modules/unictype/property-currency-symbol-tests: New file.
78549         * modules/unictype/property-dash-tests: New file.
78550         * modules/unictype/property-decimal-digit-tests: New file.
78551         * modules/unictype/property-default-ignorable-code-point-tests: New file.
78552         * modules/unictype/property-deprecated-tests: New file.
78553         * modules/unictype/property-diacritic-tests: New file.
78554         * modules/unictype/property-extender-tests: New file.
78555         * modules/unictype/property-format-control-tests: New file.
78556         * modules/unictype/property-grapheme-base-tests: New file.
78557         * modules/unictype/property-grapheme-extend-tests: New file.
78558         * modules/unictype/property-grapheme-link-tests: New file.
78559         * modules/unictype/property-hex-digit-tests: New file.
78560         * modules/unictype/property-hyphen-tests: New file.
78561         * modules/unictype/property-id-continue-tests: New file.
78562         * modules/unictype/property-id-start-tests: New file.
78563         * modules/unictype/property-ideographic-tests: New file.
78564         * modules/unictype/property-ids-binary-operator-tests: New file.
78565         * modules/unictype/property-ids-trinary-operator-tests: New file.
78566         * modules/unictype/property-ignorable-control-tests: New file.
78567         * modules/unictype/property-iso-control-tests: New file.
78568         * modules/unictype/property-join-control-tests: New file.
78569         * modules/unictype/property-left-of-pair-tests: New file.
78570         * modules/unictype/property-line-separator-tests: New file.
78571         * modules/unictype/property-logical-order-exception-tests: New file.
78572         * modules/unictype/property-lowercase-tests: New file.
78573         * modules/unictype/property-math-tests: New file.
78574         * modules/unictype/property-non-break-tests: New file.
78575         * modules/unictype/property-not-a-character-tests: New file.
78576         * modules/unictype/property-numeric-tests: New file.
78577         * modules/unictype/property-other-alphabetic-tests: New file.
78578         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
78579         * modules/unictype/property-other-grapheme-extend-tests: New file.
78580         * modules/unictype/property-other-id-continue-tests: New file.
78581         * modules/unictype/property-other-id-start-tests: New file.
78582         * modules/unictype/property-other-lowercase-tests: New file.
78583         * modules/unictype/property-other-math-tests: New file.
78584         * modules/unictype/property-other-uppercase-tests: New file.
78585         * modules/unictype/property-paired-punctuation-tests: New file.
78586         * modules/unictype/property-paragraph-separator-tests: New file.
78587         * modules/unictype/property-pattern-syntax-tests: New file.
78588         * modules/unictype/property-pattern-white-space-tests: New file.
78589         * modules/unictype/property-private-use-tests: New file.
78590         * modules/unictype/property-punctuation-tests: New file.
78591         * modules/unictype/property-quotation-mark-tests: New file.
78592         * modules/unictype/property-radical-tests: New file.
78593         * modules/unictype/property-sentence-terminal-tests: New file.
78594         * modules/unictype/property-soft-dotted-tests: New file.
78595         * modules/unictype/property-space-tests: New file.
78596         * modules/unictype/property-terminal-punctuation-tests: New file.
78597         * modules/unictype/property-test-tests: New file.
78598         * modules/unictype/property-titlecase-tests: New file.
78599         * modules/unictype/property-unassigned-code-value-tests: New file.
78600         * modules/unictype/property-unified-ideograph-tests: New file.
78601         * modules/unictype/property-uppercase-tests: New file.
78602         * modules/unictype/property-variation-selector-tests: New file.
78603         * modules/unictype/property-white-space-tests: New file.
78604         * modules/unictype/property-xid-continue-tests: New file.
78605         * modules/unictype/property-xid-start-tests: New file.
78606         * modules/unictype/property-zero-width-tests: New file.
78607         * modules/unictype/scripts-tests: New file.
78608         * modules/unictype/syntax-c-ident-tests: New file.
78609         * modules/unictype/syntax-c-whitespace-tests: New file.
78610         * modules/unictype/syntax-java-ident-tests: New file.
78611         * modules/unictype/syntax-java-whitespace-tests: New file.
78612         * tests/unictype/test-bidi_byname.c: New file.
78613         * tests/unictype/test-bidi_name.c: New file.
78614         * tests/unictype/test-bidi_of.c: New file.
78615         * tests/unictype/test-bidi_test.c: New file.
78616         * tests/unictype/test-block_list.c: New file.
78617         * tests/unictype/test-block_of.c: New file.
78618         * tests/unictype/test-block_test.c: New file.
78619         * tests/unictype/test-categ_and.c: New file.
78620         * tests/unictype/test-categ_and_not.c: New file.
78621         * tests/unictype/test-categ_byname.c: New file.
78622         * tests/unictype/test-categ_name.c: New file.
78623         * tests/unictype/test-categ_none.c: New file.
78624         * tests/unictype/test-categ_of.c: New file.
78625         * tests/unictype/test-categ_or.c: New file.
78626         * tests/unictype/test-categ_test_withtable.c: New file.
78627         * tests/unictype/test-combining.c: New file.
78628         * tests/unictype/test-decdigit.c: New file.
78629         * tests/unictype/test-digit.c: New file.
78630         * tests/unictype/test-mirror.c: New file.
78631         * tests/unictype/test-numeric.c: New file.
78632         * tests/unictype/test-pr_byname.c: New file.
78633         * tests/unictype/test-pr_test.c: New file.
78634         * tests/unictype/test-predicate-part1.h: New file.
78635         * tests/unictype/test-predicate-part2.h: New file.
78636         * tests/unictype/test-scripts.c: New file.
78637         * tests/unictype/test-sy_c_ident.c: New file.
78638         * tests/unictype/test-sy_java_ident.c: New file.
78640         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
78641         for Unicode 5.0.0.
78642         * tests/unictype/test-categ_Cc.c: Likewise.
78643         * tests/unictype/test-categ_Cf.c: Likewise.
78644         * tests/unictype/test-categ_Cn.c: Likewise.
78645         * tests/unictype/test-categ_Co.c: Likewise.
78646         * tests/unictype/test-categ_Cs.c: Likewise.
78647         * tests/unictype/test-categ_L.c: Likewise.
78648         * tests/unictype/test-categ_Ll.c: Likewise.
78649         * tests/unictype/test-categ_Lm.c: Likewise.
78650         * tests/unictype/test-categ_Lo.c: Likewise.
78651         * tests/unictype/test-categ_Lt.c: Likewise.
78652         * tests/unictype/test-categ_Lu.c: Likewise.
78653         * tests/unictype/test-categ_M.c: Likewise.
78654         * tests/unictype/test-categ_Mc.c: Likewise.
78655         * tests/unictype/test-categ_Me.c: Likewise.
78656         * tests/unictype/test-categ_Mn.c: Likewise.
78657         * tests/unictype/test-categ_N.c: Likewise.
78658         * tests/unictype/test-categ_Nd.c: Likewise.
78659         * tests/unictype/test-categ_Nl.c: Likewise.
78660         * tests/unictype/test-categ_No.c: Likewise.
78661         * tests/unictype/test-categ_P.c: Likewise.
78662         * tests/unictype/test-categ_Pc.c: Likewise.
78663         * tests/unictype/test-categ_Pd.c: Likewise.
78664         * tests/unictype/test-categ_Pe.c: Likewise.
78665         * tests/unictype/test-categ_Pf.c: Likewise.
78666         * tests/unictype/test-categ_Pi.c: Likewise.
78667         * tests/unictype/test-categ_Po.c: Likewise.
78668         * tests/unictype/test-categ_Ps.c: Likewise.
78669         * tests/unictype/test-categ_S.c: Likewise.
78670         * tests/unictype/test-categ_Sc.c: Likewise.
78671         * tests/unictype/test-categ_Sk.c: Likewise.
78672         * tests/unictype/test-categ_Sm.c: Likewise.
78673         * tests/unictype/test-categ_So.c: Likewise.
78674         * tests/unictype/test-categ_Z.c: Likewise.
78675         * tests/unictype/test-categ_Zl.c: Likewise.
78676         * tests/unictype/test-categ_Zp.c: Likewise.
78677         * tests/unictype/test-categ_Zs.c: Likewise.
78678         * tests/unictype/test-ctype_alnum.c: Likewise.
78679         * tests/unictype/test-ctype_alpha.c: Likewise.
78680         * tests/unictype/test-ctype_blank.c: Likewise.
78681         * tests/unictype/test-ctype_cntrl.c: Likewise.
78682         * tests/unictype/test-ctype_digit.c: Likewise.
78683         * tests/unictype/test-ctype_graph.c: Likewise.
78684         * tests/unictype/test-ctype_lower.c: Likewise.
78685         * tests/unictype/test-ctype_print.c: Likewise.
78686         * tests/unictype/test-ctype_punct.c: Likewise.
78687         * tests/unictype/test-ctype_space.c: Likewise.
78688         * tests/unictype/test-ctype_upper.c: Likewise.
78689         * tests/unictype/test-ctype_xdigit.c: Likewise.
78690         * tests/unictype/test-decdigit.h: Likewise.
78691         * tests/unictype/test-digit.h: Likewise.
78692         * tests/unictype/test-numeric.h: Likewise.
78693         * tests/unictype/test-pr_alphabetic.c: Likewise.
78694         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
78695         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
78696         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
78697         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
78698         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
78699         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
78700         * tests/unictype/test-pr_bidi_control.c: Likewise.
78701         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
78702         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
78703         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
78704         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
78705         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
78706         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
78707         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
78708         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
78709         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
78710         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
78711         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
78712         * tests/unictype/test-pr_combining.c: Likewise.
78713         * tests/unictype/test-pr_composite.c: Likewise.
78714         * tests/unictype/test-pr_currency_symbol.c: Likewise.
78715         * tests/unictype/test-pr_dash.c: Likewise.
78716         * tests/unictype/test-pr_decimal_digit.c: Likewise.
78717         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
78718         * tests/unictype/test-pr_deprecated.c: Likewise.
78719         * tests/unictype/test-pr_diacritic.c: Likewise.
78720         * tests/unictype/test-pr_extender.c: Likewise.
78721         * tests/unictype/test-pr_format_control.c: Likewise.
78722         * tests/unictype/test-pr_grapheme_base.c: Likewise.
78723         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
78724         * tests/unictype/test-pr_grapheme_link.c: Likewise.
78725         * tests/unictype/test-pr_hex_digit.c: Likewise.
78726         * tests/unictype/test-pr_hyphen.c: Likewise.
78727         * tests/unictype/test-pr_id_continue.c: Likewise.
78728         * tests/unictype/test-pr_id_start.c: Likewise.
78729         * tests/unictype/test-pr_ideographic.c: Likewise.
78730         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
78731         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
78732         * tests/unictype/test-pr_ignorable_control.c: Likewise.
78733         * tests/unictype/test-pr_iso_control.c: Likewise.
78734         * tests/unictype/test-pr_join_control.c: Likewise.
78735         * tests/unictype/test-pr_left_of_pair.c: Likewise.
78736         * tests/unictype/test-pr_line_separator.c: Likewise.
78737         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
78738         * tests/unictype/test-pr_lowercase.c: Likewise.
78739         * tests/unictype/test-pr_math.c: Likewise.
78740         * tests/unictype/test-pr_non_break.c: Likewise.
78741         * tests/unictype/test-pr_not_a_character.c: Likewise.
78742         * tests/unictype/test-pr_numeric.c: Likewise.
78743         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
78744         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
78745         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
78746         * tests/unictype/test-pr_other_id_continue.c: Likewise.
78747         * tests/unictype/test-pr_other_id_start.c: Likewise.
78748         * tests/unictype/test-pr_other_lowercase.c: Likewise.
78749         * tests/unictype/test-pr_other_math.c: Likewise.
78750         * tests/unictype/test-pr_other_uppercase.c: Likewise.
78751         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
78752         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
78753         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
78754         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
78755         * tests/unictype/test-pr_private_use.c: Likewise.
78756         * tests/unictype/test-pr_punctuation.c: Likewise.
78757         * tests/unictype/test-pr_quotation_mark.c: Likewise.
78758         * tests/unictype/test-pr_radical.c: Likewise.
78759         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
78760         * tests/unictype/test-pr_soft_dotted.c: Likewise.
78761         * tests/unictype/test-pr_space.c: Likewise.
78762         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
78763         * tests/unictype/test-pr_titlecase.c: Likewise.
78764         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
78765         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
78766         * tests/unictype/test-pr_uppercase.c: Likewise.
78767         * tests/unictype/test-pr_variation_selector.c: Likewise.
78768         * tests/unictype/test-pr_white_space.c: Likewise.
78769         * tests/unictype/test-pr_xid_continue.c: Likewise.
78770         * tests/unictype/test-pr_xid_start.c: Likewise.
78771         * tests/unictype/test-pr_zero_width.c: Likewise.
78772         * tests/unictype/test-sy_c_whitespace.c: Likewise.
78773         * tests/unictype/test-sy_java_whitespace.c: Likewise.
78775 2007-11-12  Bruno Haible  <bruno@clisp.org>
78777         Unicode character classification functions.
78778         * lib/unictype.h: New file.
78779         * modules/unictype/base: New file.
78780         * modules/unictype/category-L: New file.
78781         * modules/unictype/category-Lu: New file.
78782         * modules/unictype/category-Ll: New file.
78783         * modules/unictype/category-Lt: New file.
78784         * modules/unictype/category-Lm: New file.
78785         * modules/unictype/category-Lo: New file.
78786         * modules/unictype/category-M: New file.
78787         * modules/unictype/category-Mn: New file.
78788         * modules/unictype/category-Mc: New file.
78789         * modules/unictype/category-Me: New file.
78790         * modules/unictype/category-N: New file.
78791         * modules/unictype/category-Nd: New file.
78792         * modules/unictype/category-Nl: New file.
78793         * modules/unictype/category-No: New file.
78794         * modules/unictype/category-P: New file.
78795         * modules/unictype/category-Pc: New file.
78796         * modules/unictype/category-Pd: New file.
78797         * modules/unictype/category-Ps: New file.
78798         * modules/unictype/category-Pe: New file.
78799         * modules/unictype/category-Pi: New file.
78800         * modules/unictype/category-Pf: New file.
78801         * modules/unictype/category-Po: New file.
78802         * modules/unictype/category-S: New file.
78803         * modules/unictype/category-Sm: New file.
78804         * modules/unictype/category-Sc: New file.
78805         * modules/unictype/category-Sk: New file.
78806         * modules/unictype/category-So: New file.
78807         * modules/unictype/category-Z: New file.
78808         * modules/unictype/category-Zs: New file.
78809         * modules/unictype/category-Zl: New file.
78810         * modules/unictype/category-Zp: New file.
78811         * modules/unictype/category-C: New file.
78812         * modules/unictype/category-Cc: New file.
78813         * modules/unictype/category-Cf: New file.
78814         * modules/unictype/category-Cs: New file.
78815         * modules/unictype/category-Co: New file.
78816         * modules/unictype/category-Cn: New file.
78817         * modules/unictype/category-or: New file.
78818         * modules/unictype/category-of: New file.
78819         * modules/unictype/category-test: New file.
78820         * modules/unictype/category-test-withtable: New file.
78821         * modules/unictype/category-byname: New file.
78822         * modules/unictype/category-none: New file.
78823         * modules/unictype/category-and: New file.
78824         * modules/unictype/category-and-not: New file.
78825         * modules/unictype/category-name: New file.
78826         * modules/unictype/combining-class: New file.
78827         * modules/unictype/category-all: New file.
78828         * modules/unictype/bidicategory-all: New file.
78829         * modules/unictype/bidicategory-byname: New file.
78830         * modules/unictype/bidicategory-name: New file.
78831         * modules/unictype/bidicategory-of: New file.
78832         * modules/unictype/bidicategory-test: New file.
78833         * modules/unictype/decimal-digit: New file.
78834         * modules/unictype/digit: New file.
78835         * modules/unictype/numeric: New file.
78836         * modules/unictype/mirror: New file.
78837         * modules/unictype/property-white-space: New file.
78838         * modules/unictype/property-alphabetic: New file.
78839         * modules/unictype/property-other-alphabetic: New file.
78840         * modules/unictype/property-not-a-character: New file.
78841         * modules/unictype/property-default-ignorable-code-point: New file.
78842         * modules/unictype/property-other-default-ignorable-code-point: New
78843         file.
78844         * modules/unictype/property-deprecated: New file.
78845         * modules/unictype/property-logical-order-exception: New file.
78846         * modules/unictype/property-variation-selector: New file.
78847         * modules/unictype/property-private-use: New file.
78848         * modules/unictype/property-unassigned-code-value: New file.
78849         * modules/unictype/property-uppercase: New file.
78850         * modules/unictype/property-other-uppercase: New file.
78851         * modules/unictype/property-lowercase: New file.
78852         * modules/unictype/property-other-lowercase: New file.
78853         * modules/unictype/property-titlecase: New file.
78854         * modules/unictype/property-soft-dotted: New file.
78855         * modules/unictype/property-id-start: New file.
78856         * modules/unictype/property-other-id-start: New file.
78857         * modules/unictype/property-id-continue: New file.
78858         * modules/unictype/property-other-id-continue: New file.
78859         * modules/unictype/property-xid-start: New file.
78860         * modules/unictype/property-xid-continue: New file.
78861         * modules/unictype/property-pattern-white-space: New file.
78862         * modules/unictype/property-pattern-syntax: New file.
78863         * modules/unictype/property-join-control: New file.
78864         * modules/unictype/property-grapheme-base: New file.
78865         * modules/unictype/property-grapheme-extend: New file.
78866         * modules/unictype/property-other-grapheme-extend: New file.
78867         * modules/unictype/property-grapheme-link: New file.
78868         * modules/unictype/property-bidi-control: New file.
78869         * modules/unictype/property-bidi-left-to-right: New file.
78870         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
78871         * modules/unictype/property-bidi-arabic-right-to-left: New file.
78872         * modules/unictype/property-bidi-european-digit: New file.
78873         * modules/unictype/property-bidi-eur-num-separator: New file.
78874         * modules/unictype/property-bidi-eur-num-terminator: New file.
78875         * modules/unictype/property-bidi-arabic-digit: New file.
78876         * modules/unictype/property-bidi-common-separator: New file.
78877         * modules/unictype/property-bidi-block-separator: New file.
78878         * modules/unictype/property-bidi-segment-separator: New file.
78879         * modules/unictype/property-bidi-whitespace: New file.
78880         * modules/unictype/property-bidi-non-spacing-mark: New file.
78881         * modules/unictype/property-bidi-boundary-neutral: New file.
78882         * modules/unictype/property-bidi-pdf: New file.
78883         * modules/unictype/property-bidi-embedding-or-override: New file.
78884         * modules/unictype/property-bidi-other-neutral: New file.
78885         * modules/unictype/property-hex-digit: New file.
78886         * modules/unictype/property-ascii-hex-digit: New file.
78887         * modules/unictype/property-ideographic: New file.
78888         * modules/unictype/property-unified-ideograph: New file.
78889         * modules/unictype/property-radical: New file.
78890         * modules/unictype/property-ids-binary-operator: New file.
78891         * modules/unictype/property-ids-trinary-operator: New file.
78892         * modules/unictype/property-zero-width: New file.
78893         * modules/unictype/property-space: New file.
78894         * modules/unictype/property-non-break: New file.
78895         * modules/unictype/property-iso-control: New file.
78896         * modules/unictype/property-format-control: New file.
78897         * modules/unictype/property-dash: New file.
78898         * modules/unictype/property-hyphen: New file.
78899         * modules/unictype/property-punctuation: New file.
78900         * modules/unictype/property-line-separator: New file.
78901         * modules/unictype/property-paragraph-separator: New file.
78902         * modules/unictype/property-quotation-mark: New file.
78903         * modules/unictype/property-sentence-terminal: New file.
78904         * modules/unictype/property-terminal-punctuation: New file.
78905         * modules/unictype/property-currency-symbol: New file.
78906         * modules/unictype/property-math: New file.
78907         * modules/unictype/property-other-math: New file.
78908         * modules/unictype/property-paired-punctuation: New file.
78909         * modules/unictype/property-left-of-pair: New file.
78910         * modules/unictype/property-combining: New file.
78911         * modules/unictype/property-composite: New file.
78912         * modules/unictype/property-decimal-digit: New file.
78913         * modules/unictype/property-numeric: New file.
78914         * modules/unictype/property-diacritic: New file.
78915         * modules/unictype/property-extender: New file.
78916         * modules/unictype/property-ignorable-control: New file.
78917         * modules/unictype/property-test: New file.
78918         * modules/unictype/property-byname: New file.
78919         * modules/unictype/property-all: New file.
78920         * modules/unictype/scripts: New file.
78921         * modules/unictype/scripts-all: New file.
78922         * modules/unictype/block-of: New file.
78923         * modules/unictype/block-test: New file.
78924         * modules/unictype/block-list: New file.
78925         * modules/unictype/block-all: New file.
78926         * modules/unictype/syntax-c-whitespace: New file.
78927         * modules/unictype/syntax-java-whitespace: New file.
78928         * modules/unictype/syntax-c-ident: New file.
78929         * modules/unictype/syntax-java-ident: New file.
78930         * modules/unictype/ctype-alnum: New file.
78931         * modules/unictype/ctype-alpha: New file.
78932         * modules/unictype/ctype-cntrl: New file.
78933         * modules/unictype/ctype-digit: New file.
78934         * modules/unictype/ctype-graph: New file.
78935         * modules/unictype/ctype-lower: New file.
78936         * modules/unictype/ctype-print: New file.
78937         * modules/unictype/ctype-punct: New file.
78938         * modules/unictype/ctype-space: New file.
78939         * modules/unictype/ctype-upper: New file.
78940         * modules/unictype/ctype-xdigit: New file.
78941         * modules/unictype/ctype-blank: New file.
78942         * lib/unictype/bidi_byname.c: New file.
78943         * lib/unictype/bidi_name.c: New file.
78944         * lib/unictype/bidi_of.c: New file.
78945         * lib/unictype/bidi_test.c: New file.
78946         * lib/unictype/bitmap.h: New file.
78947         * lib/unictype/block_test.c: New file.
78948         * lib/unictype/blocks.c: New file.
78949         * lib/unictype/categ_C.c: New file.
78950         * lib/unictype/categ_Cc.c: New file.
78951         * lib/unictype/categ_Cf.c: New file.
78952         * lib/unictype/categ_Cn.c: New file.
78953         * lib/unictype/categ_Co.c: New file.
78954         * lib/unictype/categ_Cs.c: New file.
78955         * lib/unictype/categ_L.c: New file.
78956         * lib/unictype/categ_Ll.c: New file.
78957         * lib/unictype/categ_Lm.c: New file.
78958         * lib/unictype/categ_Lo.c: New file.
78959         * lib/unictype/categ_Lt.c: New file.
78960         * lib/unictype/categ_Lu.c: New file.
78961         * lib/unictype/categ_M.c: New file.
78962         * lib/unictype/categ_Mc.c: New file.
78963         * lib/unictype/categ_Me.c: New file.
78964         * lib/unictype/categ_Mn.c: New file.
78965         * lib/unictype/categ_N.c: New file.
78966         * lib/unictype/categ_Nd.c: New file.
78967         * lib/unictype/categ_Nl.c: New file.
78968         * lib/unictype/categ_No.c: New file.
78969         * lib/unictype/categ_P.c: New file.
78970         * lib/unictype/categ_Pc.c: New file.
78971         * lib/unictype/categ_Pd.c: New file.
78972         * lib/unictype/categ_Pe.c: New file.
78973         * lib/unictype/categ_Pf.c: New file.
78974         * lib/unictype/categ_Pi.c: New file.
78975         * lib/unictype/categ_Po.c: New file.
78976         * lib/unictype/categ_Ps.c: New file.
78977         * lib/unictype/categ_S.c: New file.
78978         * lib/unictype/categ_Sc.c: New file.
78979         * lib/unictype/categ_Sk.c: New file.
78980         * lib/unictype/categ_Sm.c: New file.
78981         * lib/unictype/categ_So.c: New file.
78982         * lib/unictype/categ_Z.c: New file.
78983         * lib/unictype/categ_Zl.c: New file.
78984         * lib/unictype/categ_Zp.c: New file.
78985         * lib/unictype/categ_Zs.c: New file.
78986         * lib/unictype/categ_and.c: New file.
78987         * lib/unictype/categ_and_not.c: New file.
78988         * lib/unictype/categ_byname.c: New file.
78989         * lib/unictype/categ_name.c: New file.
78990         * lib/unictype/categ_none.c: New file.
78991         * lib/unictype/categ_of.c: New file.
78992         * lib/unictype/categ_or.c: New file.
78993         * lib/unictype/categ_test.c: New file.
78994         * lib/unictype/combining.c: New file.
78995         * lib/unictype/ctype_alnum.c: New file.
78996         * lib/unictype/ctype_alpha.c: New file.
78997         * lib/unictype/ctype_blank.c: New file.
78998         * lib/unictype/ctype_cntrl.c: New file.
78999         * lib/unictype/ctype_digit.c: New file.
79000         * lib/unictype/ctype_graph.c: New file.
79001         * lib/unictype/ctype_lower.c: New file.
79002         * lib/unictype/ctype_print.c: New file.
79003         * lib/unictype/ctype_punct.c: New file.
79004         * lib/unictype/ctype_space.c: New file.
79005         * lib/unictype/ctype_upper.c: New file.
79006         * lib/unictype/ctype_xdigit.c: New file.
79007         * lib/unictype/decdigit.c: New file.
79008         * lib/unictype/digit.c: New file.
79009         * lib/unictype/identsyntaxmap.h: New file.
79010         * lib/unictype/mirror.c: New file.
79011         * lib/unictype/numeric.c: New file.
79012         * lib/unictype/pr_alphabetic.c: New file.
79013         * lib/unictype/pr_ascii_hex_digit.c: New file.
79014         * lib/unictype/pr_bidi_arabic_digit.c: New file.
79015         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
79016         * lib/unictype/pr_bidi_block_separator.c: New file.
79017         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
79018         * lib/unictype/pr_bidi_common_separator.c: New file.
79019         * lib/unictype/pr_bidi_control.c: New file.
79020         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
79021         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
79022         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
79023         * lib/unictype/pr_bidi_european_digit.c: New file.
79024         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
79025         * lib/unictype/pr_bidi_left_to_right.c: New file.
79026         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
79027         * lib/unictype/pr_bidi_other_neutral.c: New file.
79028         * lib/unictype/pr_bidi_pdf.c: New file.
79029         * lib/unictype/pr_bidi_segment_separator.c: New file.
79030         * lib/unictype/pr_bidi_whitespace.c: New file.
79031         * lib/unictype/pr_byname.c: New file.
79032         * lib/unictype/pr_byname.gperf: New file.
79033         * lib/unictype/pr_combining.c: New file.
79034         * lib/unictype/pr_composite.c: New file.
79035         * lib/unictype/pr_currency_symbol.c: New file.
79036         * lib/unictype/pr_dash.c: New file.
79037         * lib/unictype/pr_decimal_digit.c: New file.
79038         * lib/unictype/pr_default_ignorable_code_point.c: New file.
79039         * lib/unictype/pr_deprecated.c: New file.
79040         * lib/unictype/pr_diacritic.c: New file.
79041         * lib/unictype/pr_extender.c: New file.
79042         * lib/unictype/pr_format_control.c: New file.
79043         * lib/unictype/pr_grapheme_base.c: New file.
79044         * lib/unictype/pr_grapheme_extend.c: New file.
79045         * lib/unictype/pr_grapheme_link.c: New file.
79046         * lib/unictype/pr_hex_digit.c: New file.
79047         * lib/unictype/pr_hyphen.c: New file.
79048         * lib/unictype/pr_id_continue.c: New file.
79049         * lib/unictype/pr_id_start.c: New file.
79050         * lib/unictype/pr_ideographic.c: New file.
79051         * lib/unictype/pr_ids_binary_operator.c: New file.
79052         * lib/unictype/pr_ids_trinary_operator.c: New file.
79053         * lib/unictype/pr_ignorable_control.c: New file.
79054         * lib/unictype/pr_iso_control.c: New file.
79055         * lib/unictype/pr_join_control.c: New file.
79056         * lib/unictype/pr_left_of_pair.c: New file.
79057         * lib/unictype/pr_line_separator.c: New file.
79058         * lib/unictype/pr_logical_order_exception.c: New file.
79059         * lib/unictype/pr_lowercase.c: New file.
79060         * lib/unictype/pr_math.c: New file.
79061         * lib/unictype/pr_non_break.c: New file.
79062         * lib/unictype/pr_not_a_character.c: New file.
79063         * lib/unictype/pr_numeric.c: New file.
79064         * lib/unictype/pr_other_alphabetic.c: New file.
79065         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
79066         * lib/unictype/pr_other_grapheme_extend.c: New file.
79067         * lib/unictype/pr_other_id_continue.c: New file.
79068         * lib/unictype/pr_other_id_start.c: New file.
79069         * lib/unictype/pr_other_lowercase.c: New file.
79070         * lib/unictype/pr_other_math.c: New file.
79071         * lib/unictype/pr_other_uppercase.c: New file.
79072         * lib/unictype/pr_paired_punctuation.c: New file.
79073         * lib/unictype/pr_paragraph_separator.c: New file.
79074         * lib/unictype/pr_pattern_syntax.c: New file.
79075         * lib/unictype/pr_pattern_white_space.c: New file.
79076         * lib/unictype/pr_private_use.c: New file.
79077         * lib/unictype/pr_punctuation.c: New file.
79078         * lib/unictype/pr_quotation_mark.c: New file.
79079         * lib/unictype/pr_radical.c: New file.
79080         * lib/unictype/pr_sentence_terminal.c: New file.
79081         * lib/unictype/pr_soft_dotted.c: New file.
79082         * lib/unictype/pr_space.c: New file.
79083         * lib/unictype/pr_terminal_punctuation.c: New file.
79084         * lib/unictype/pr_test.c: New file.
79085         * lib/unictype/pr_titlecase.c: New file.
79086         * lib/unictype/pr_unassigned_code_value.c: New file.
79087         * lib/unictype/pr_unified_ideograph.c: New file.
79088         * lib/unictype/pr_uppercase.c: New file.
79089         * lib/unictype/pr_variation_selector.c: New file.
79090         * lib/unictype/pr_white_space.c: New file.
79091         * lib/unictype/pr_xid_continue.c: New file.
79092         * lib/unictype/pr_xid_start.c: New file.
79093         * lib/unictype/pr_zero_width.c: New file.
79094         * lib/unictype/scripts.c: New file.
79095         * lib/unictype/sy_c_ident.c: New file.
79096         * lib/unictype/sy_c_whitespace.c: New file.
79097         * lib/unictype/sy_java_ident.c: New file.
79098         * lib/unictype/sy_java_whitespace.c: New file.
79100         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
79101         Unicode 5.0.0.
79102         * lib/unictype/blocks.h: Likewise.
79103         * lib/unictype/categ_C.h: Likewise.
79104         * lib/unictype/categ_Cc.h: Likewise.
79105         * lib/unictype/categ_Cf.h: Likewise.
79106         * lib/unictype/categ_Cn.h: Likewise.
79107         * lib/unictype/categ_Co.h: Likewise.
79108         * lib/unictype/categ_Cs.h: Likewise.
79109         * lib/unictype/categ_L.h: Likewise.
79110         * lib/unictype/categ_Ll.h: Likewise.
79111         * lib/unictype/categ_Lm.h: Likewise.
79112         * lib/unictype/categ_Lo.h: Likewise.
79113         * lib/unictype/categ_Lt.h: Likewise.
79114         * lib/unictype/categ_Lu.h: Likewise.
79115         * lib/unictype/categ_M.h: Likewise.
79116         * lib/unictype/categ_Mc.h: Likewise.
79117         * lib/unictype/categ_Me.h: Likewise.
79118         * lib/unictype/categ_Mn.h: Likewise.
79119         * lib/unictype/categ_N.h: Likewise.
79120         * lib/unictype/categ_Nd.h: Likewise.
79121         * lib/unictype/categ_Nl.h: Likewise.
79122         * lib/unictype/categ_No.h: Likewise.
79123         * lib/unictype/categ_P.h: Likewise.
79124         * lib/unictype/categ_Pc.h: Likewise.
79125         * lib/unictype/categ_Pd.h: Likewise.
79126         * lib/unictype/categ_Pe.h: Likewise.
79127         * lib/unictype/categ_Pf.h: Likewise.
79128         * lib/unictype/categ_Pi.h: Likewise.
79129         * lib/unictype/categ_Po.h: Likewise.
79130         * lib/unictype/categ_Ps.h: Likewise.
79131         * lib/unictype/categ_S.h: Likewise.
79132         * lib/unictype/categ_Sc.h: Likewise.
79133         * lib/unictype/categ_Sk.h: Likewise.
79134         * lib/unictype/categ_Sm.h: Likewise.
79135         * lib/unictype/categ_So.h: Likewise.
79136         * lib/unictype/categ_Z.h: Likewise.
79137         * lib/unictype/categ_Zl.h: Likewise.
79138         * lib/unictype/categ_Zp.h: Likewise.
79139         * lib/unictype/categ_Zs.h: Likewise.
79140         * lib/unictype/categ_of.h: Likewise.
79141         * lib/unictype/combining.h: Likewise.
79142         * lib/unictype/ctype_alnum.h: Likewise.
79143         * lib/unictype/ctype_alpha.h: Likewise.
79144         * lib/unictype/ctype_blank.h: Likewise.
79145         * lib/unictype/ctype_cntrl.h: Likewise.
79146         * lib/unictype/ctype_digit.h: Likewise.
79147         * lib/unictype/ctype_graph.h: Likewise.
79148         * lib/unictype/ctype_lower.h: Likewise.
79149         * lib/unictype/ctype_print.h: Likewise.
79150         * lib/unictype/ctype_punct.h: Likewise.
79151         * lib/unictype/ctype_space.h: Likewise.
79152         * lib/unictype/ctype_upper.h: Likewise.
79153         * lib/unictype/ctype_xdigit.h: Likewise.
79154         * lib/unictype/decdigit.h: Likewise.
79155         * lib/unictype/digit.h: Likewise.
79156         * lib/unictype/mirror.h: Likewise.
79157         * lib/unictype/numeric.h: Likewise.
79158         * lib/unictype/pr_alphabetic.h: Likewise.
79159         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
79160         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
79161         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
79162         * lib/unictype/pr_bidi_block_separator.h: Likewise.
79163         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
79164         * lib/unictype/pr_bidi_common_separator.h: Likewise.
79165         * lib/unictype/pr_bidi_control.h: Likewise.
79166         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
79167         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
79168         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
79169         * lib/unictype/pr_bidi_european_digit.h: Likewise.
79170         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
79171         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
79172         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
79173         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
79174         * lib/unictype/pr_bidi_pdf.h: Likewise.
79175         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
79176         * lib/unictype/pr_bidi_whitespace.h: Likewise.
79177         * lib/unictype/pr_combining.h: Likewise.
79178         * lib/unictype/pr_composite.h: Likewise.
79179         * lib/unictype/pr_currency_symbol.h: Likewise.
79180         * lib/unictype/pr_dash.h: Likewise.
79181         * lib/unictype/pr_decimal_digit.h: Likewise.
79182         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
79183         * lib/unictype/pr_deprecated.h: Likewise.
79184         * lib/unictype/pr_diacritic.h: Likewise.
79185         * lib/unictype/pr_extender.h: Likewise.
79186         * lib/unictype/pr_format_control.h: Likewise.
79187         * lib/unictype/pr_grapheme_base.h: Likewise.
79188         * lib/unictype/pr_grapheme_extend.h: Likewise.
79189         * lib/unictype/pr_grapheme_link.h: Likewise.
79190         * lib/unictype/pr_hex_digit.h: Likewise.
79191         * lib/unictype/pr_hyphen.h: Likewise.
79192         * lib/unictype/pr_id_continue.h: Likewise.
79193         * lib/unictype/pr_id_start.h: Likewise.
79194         * lib/unictype/pr_ideographic.h: Likewise.
79195         * lib/unictype/pr_ids_binary_operator.h: Likewise.
79196         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
79197         * lib/unictype/pr_ignorable_control.h: Likewise.
79198         * lib/unictype/pr_iso_control.h: Likewise.
79199         * lib/unictype/pr_join_control.h: Likewise.
79200         * lib/unictype/pr_left_of_pair.h: Likewise.
79201         * lib/unictype/pr_line_separator.h: Likewise.
79202         * lib/unictype/pr_logical_order_exception.h: Likewise.
79203         * lib/unictype/pr_lowercase.h: Likewise.
79204         * lib/unictype/pr_math.h: Likewise.
79205         * lib/unictype/pr_non_break.h: Likewise.
79206         * lib/unictype/pr_not_a_character.h: Likewise.
79207         * lib/unictype/pr_numeric.h: Likewise.
79208         * lib/unictype/pr_other_alphabetic.h: Likewise.
79209         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
79210         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
79211         * lib/unictype/pr_other_id_continue.h: Likewise.
79212         * lib/unictype/pr_other_id_start.h: Likewise.
79213         * lib/unictype/pr_other_lowercase.h: Likewise.
79214         * lib/unictype/pr_other_math.h: Likewise.
79215         * lib/unictype/pr_other_uppercase.h: Likewise.
79216         * lib/unictype/pr_paired_punctuation.h: Likewise.
79217         * lib/unictype/pr_paragraph_separator.h: Likewise.
79218         * lib/unictype/pr_pattern_syntax.h: Likewise.
79219         * lib/unictype/pr_pattern_white_space.h: Likewise.
79220         * lib/unictype/pr_private_use.h: Likewise.
79221         * lib/unictype/pr_punctuation.h: Likewise.
79222         * lib/unictype/pr_quotation_mark.h: Likewise.
79223         * lib/unictype/pr_radical.h: Likewise.
79224         * lib/unictype/pr_sentence_terminal.h: Likewise.
79225         * lib/unictype/pr_soft_dotted.h: Likewise.
79226         * lib/unictype/pr_space.h: Likewise.
79227         * lib/unictype/pr_terminal_punctuation.h: Likewise.
79228         * lib/unictype/pr_titlecase.h: Likewise.
79229         * lib/unictype/pr_unassigned_code_value.h: Likewise.
79230         * lib/unictype/pr_unified_ideograph.h: Likewise.
79231         * lib/unictype/pr_uppercase.h: Likewise.
79232         * lib/unictype/pr_variation_selector.h: Likewise.
79233         * lib/unictype/pr_white_space.h: Likewise.
79234         * lib/unictype/pr_xid_continue.h: Likewise.
79235         * lib/unictype/pr_xid_start.h: Likewise.
79236         * lib/unictype/pr_zero_width.h: Likewise.
79237         * lib/unictype/scripts.h: Likewise.
79238         * lib/unictype/scripts_byname.gperf: Likewise.
79239         * lib/unictype/sy_c_ident.h: Likewise.
79240         * lib/unictype/sy_c_whitespace.h: Likewise.
79241         * lib/unictype/sy_java_ident.h: Likewise.
79242         * lib/unictype/sy_java_whitespace.h: Likewise.
79244         * lib/unictype/Makefile: New file.
79245         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
79246         glibc.
79247         * lib/unictype/3level.h: New file, copied from glibc.
79248         * lib/unictype/3levelbit.h: New file.
79250 2007-11-11  Bruno Haible  <bruno@clisp.org>
79252         * modules/gperf: New file.
79253         * modules/iconv_open (Depends-on): Add it.
79254         (Makefile.am): Remove the GPERF definition.
79256 2007-11-11  Bruno Haible  <bruno@clisp.org>
79258         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
79259         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
79261 2007-11-11  Bruno Haible  <bruno@clisp.org>
79263         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
79264         (usage): Remove function.
79266 2007-11-11  Bruno Haible  <bruno@clisp.org>
79268         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
79269         gl_FUNC_CEILF_LIBS.
79270         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
79271         gl_FUNC_CEIL_LIBS.
79272         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
79273         gl_FUNC_CEILL_LIBS.
79274         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
79275         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
79276         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
79278 2007-11-11  Bruno Haible  <bruno@clisp.org>
79280         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
79281         roundf were declared but do not exist on functions.
79282         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
79283         roundl were declared but do not exist on functions.
79284         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
79285         HAVE_FLOORL_AND_CEILL, respectively.
79286         Needed for Sun C on Solaris 10.
79288 2007-11-11  Bruno Haible  <bruno@clisp.org>
79290         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
79291         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
79292         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
79293         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
79294         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
79295         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
79296         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
79297         HAVE_DECL_ROUNDF.
79298         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
79299         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
79300         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
79301         of HAVE_DECL_ROUND*.
79302         * modules/math (Makefile.am): Update.
79304 2007-11-10  Bruno Haible  <bruno@clisp.org>
79306         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
79307         ptrdiff_t as m4/intl.m4.
79309 2007-11-10  Jim Meyering  <meyering@redhat.com>
79311         Avoid link failure for the argmatch test.
79312         * tests/test-argmatch.c (usage): Define function to avoid a link
79313         failure: argmatch_die requires a usage function.
79315 2007-11-09  Bruno Haible  <bruno@clisp.org>
79317         * doc/functions/snprintf.texi: Mention BeOS deficiency.
79318         * doc/functions/vsnprintf.texi: Likewise.
79319         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
79320         with a size argument < 2.
79322 2007-11-09  Bruno Haible  <bruno@clisp.org>
79324         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
79325         buffer. Fixes an inefficiency introduced on 2007-11-03.
79327 2007-11-09  Bruno Haible  <bruno@clisp.org>
79329         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
79330         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
79332 2007-11-08  Jim Meyering  <meyering@redhat.com>
79334         Change cache variable name prefix "jm_" to "gl_" everywhere.
79335         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
79336         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
79337         * m4/uptime.m4: s/gl_/jm_/
79339 2007-11-07  Bruno Haible  <bruno@clisp.org>
79341         Update to GNU gettext 0.17.
79342         * m4/intl.m4: Update to GNU gettext 0.17.
79343         * m4/po.m4: Likewise.
79344         * modules/gettext (Files): Remove m4/ulonglong.m4.
79345         (configure.ac): Require gettext infrastructure from version 0.17.
79347 2007-11-06  Bruno Haible  <bruno@clisp.org>
79349         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
79350         symbolic values are not defined in a public header.
79351         * lib/freadable.c (freadable) [QNX]: Likewise.
79352         * lib/freadahead.c (freadahead) [QNX]: Likewise.
79353         * lib/freading.c (freading) [QNX]: Likewise.
79354         * lib/fseterr.c (fseterr) [QNX]: Likewise.
79355         * lib/fwritable.c (fwritable) [QNX]: Likewise.
79356         * lib/fwriting.c (fwriting) [QNX]: Likewise.
79357         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
79358         Reported by Alain Magloire.
79360         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
79362 2007-11-05  Bruno Haible  <bruno@clisp.org>
79364         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
79365         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
79366         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
79367         Reported by Eric Blake.
79369 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79370             Bruno Haible  <bruno@clisp.org>
79372         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
79373         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
79374         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
79375         (malloc): Undefine also before including <stdlib.h>.
79376         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
79377         Needed on OSF/1 4.0.
79379 2007-11-05  Jim Meyering  <meyering@redhat.com>
79381         git-version-gen: sync from coreutils.
79382         * build-aux/git-version-gen: Add comments.
79383         Change the first '-' to '.' in the snapshot version string,
79384         e.g., 6.9-377-08144 -> 6.9.377-08144
79385         Remove first parameter.
79386         Don't declare a version "-dirty" merely because a time
79387         stamp has changed.
79389 2007-11-04  Bruno Haible  <bruno@clisp.org>
79391         * lib/lock.h: Protect all macro definitions containing an 'if'
79392         statement through a "do { ... } while (0)".
79393         * lib/tls.h: Likewise.
79395 2007-11-04  Bruno Haible  <bruno@clisp.org>
79397         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
79399 2007-11-04  Bruno Haible  <bruno@clisp.org>
79401         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
79402         * modules/fprintf-posix (Depends-on): Add nocrash.
79403         * modules/snprintf-posix (Depends-on): Likewise.
79404         * modules/sprintf-posix (Depends-on): Likewise.
79405         * modules/vasnprintf-posix (Depends-on): Likewise.
79406         * modules/vasprintf-posix (Depends-on): Likewise.
79407         * modules/vfprintf-posix (Depends-on): Likewise.
79408         * modules/vsnprintf-posix (Depends-on): Likewise.
79409         * modules/vsprintf-posix (Depends-on): Likewise.
79410         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
79411         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
79412         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
79413         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
79414         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
79415         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
79416         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
79418 2007-11-04  Bruno Haible  <bruno@clisp.org>
79420         * modules/nocrash: New file.
79421         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
79422         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
79424 2007-11-04  Bruno Haible  <bruno@clisp.org>
79426         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
79427         precision handling.
79428         * tests/test-vasprintf-posix.c (test_function): Likewise.
79429         * tests/test-snprintf-posix.h (test_function): Likewise.
79430         * tests/test-sprintf-posix.h (test_function): Likewise.
79432         Fix *printf behaviour for large precisions on mingw and BeOS.
79433         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
79434         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
79435         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
79436         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
79437         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
79438         gl_PRINTF_PRECISION and test its result. Invoke
79439         gl_PREREQ_VASNPRINTF_PRECISION.
79440         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
79441         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
79442         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
79443         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
79444         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
79445         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
79446         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
79447         * doc/functions/fprintf.texi: Update.
79448         * doc/functions/printf.texi: Update.
79449         * doc/functions/snprintf.texi: Update.
79450         * doc/functions/sprintf.texi: Update.
79451         * doc/functions/vfprintf.texi: Update.
79452         * doc/functions/vprintf.texi: Update.
79453         * doc/functions/vsnprintf.texi: Update.
79454         * doc/functions/vsprintf.texi: Update.
79456 2007-11-04  Bruno Haible  <bruno@clisp.org>
79458         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
79460 2007-11-04  Bruno Haible  <bruno@clisp.org>
79462         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
79463         Reported by Sylvain Beucler <beuc@gnu.org>.
79465 2007-11-03  Bruno Haible  <bruno@clisp.org>
79467         * tests/test-fprintf-posix2.sh: New file.
79468         * tests/test-fprintf-posix2.c: New file.
79469         * modules/fprintf-posix-tests (Files): Add them.
79470         (TESTS): Add test-fprintf-posix2.sh.
79471         (configure.ac): Check for getrlimit and setrlimit.
79472         (check_PROGRAMS): Add test-fprintf-posix2.
79474         * tests/test-printf-posix2.sh: New file.
79475         * tests/test-printf-posix2.c: New file.
79476         * modules/printf-posix-tests (Files): Add them.
79477         (TESTS): Add test-printf-posix2.sh.
79478         (configure.ac): Check for getrlimit and setrlimit.
79479         (check_PROGRAMS): Add test-printf-posix2.
79481         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
79482         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
79483         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
79484         (decode_double): New function, copied from decode_long_double.
79485         (scale10_round_decimal_decoded): New function, extracted from
79486         scale10_round_decimal_long_double.
79487         (scale10_round_decimal_long_double): Use it.
79488         (scale10_round_decimal_double): New function.
79489         (floorlog10): New function.
79490         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
79491         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
79492         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
79493         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
79494         gl_PRINTF_ENOMEM and test its result. Invoke
79495         gl_PREREQ_VASNPRINTF_ENOMEM.
79496         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
79497         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
79498         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
79499         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
79500         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
79501         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
79502         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
79503         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
79504         * modules/snprintf-posix (Depends-on): Likewise.
79505         * modules/sprintf-posix (Depends-on): Likewise.
79506         * modules/vasnprintf-posix (Depends-on): Likewise.
79507         * modules/vasprintf-posix (Depends-on): Likewise.
79508         * modules/vfprintf-posix (Depends-on): Likewise.
79509         * modules/vsnprintf-posix (Depends-on): Likewise.
79510         * modules/vsprintf-posix (Depends-on): Likewise.
79511         * doc/functions/fprintf.texi: Update.
79512         * doc/functions/printf.texi: Update.
79513         * doc/functions/snprintf.texi: Update.
79514         * doc/functions/sprintf.texi: Update.
79515         * doc/functions/vfprintf.texi: Update.
79516         * doc/functions/vprintf.texi: Update.
79517         * doc/functions/vsnprintf.texi: Update.
79518         * doc/functions/vsprintf.texi: Update.
79520 2007-11-03  Bruno Haible  <bruno@clisp.org>
79522         * modules/frexp-nolibm-tests: New file.
79524         * modules/frexp-nolibm: New file.
79525         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
79527 2007-11-03  Bruno Haible  <bruno@clisp.org>
79529         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
79530         value is C99 compliant.
79531         Needed for OSF/1 5.1.
79533 2007-11-03  Bruno Haible  <bruno@clisp.org>
79535         Fix out-of-memory handling of vasnprintf.
79536         * lib/printf-parse.c: Include <errno.h>.
79537         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
79538         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
79539         is already set.
79541 2007-11-02  Eric Blake  <ebb9@byu.net>
79543         Fix tests on cygwin.
79544         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
79546 2007-11-01  Bruno Haible  <bruno@clisp.org>
79548         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
79549         warning.
79550         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
79551         needed for POSIX compatibility.
79553 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
79555         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
79556         for compatibility with GNU.
79558 2007-11-01  Bruno Haible  <bruno@clisp.org>
79560         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
79561         (putenv): Renamed from rpl_putenv. Change argument type from
79562         'const char *' to 'char *'.
79563         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
79564         of defining putenv in config.h, just set REPLACE_PUTENV.
79565         * modules/putenv (Depends-on): Add stdlib.
79566         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
79567         (Include): Use <stdlib.h>.
79568         * lib/stdlib.in.h (putenv): New declaration.
79569         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
79570         REPLACE_PUTENV.
79571         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
79572         REPLACE_PUTENV.
79573         Needed for MacOS X 10.5.0.
79574         Reported by Peter O'Gorman <peter@pogma.com>.
79576 2007-11-01  Jim Meyering  <meyering@redhat.com>
79578         Treat an empty date string exactly like "0".
79579         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
79580         if the remaining date string (to be parsed) is empty, use "0".
79581         Reported by Mischa Molhoek and discussed in this thread:
79582         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
79584 2007-10-31  Bruno Haible  <bruno@clisp.org>
79586         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
79587         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
79588         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
79589         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
79590         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
79591         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
79593 2007-10-31  Bruno Haible  <bruno@clisp.org>
79595         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
79596         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
79597         (AC_TYPE_LONG_LONG_INT): Use it.
79598         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
79599         it as well.
79600         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
79601         to m4/longlong.m4.
79602         * modules/stdint (Files): Remove m4/ulonglong.m4.
79603         * modules/strtoull (Files): Use m4/longlong.m4 instead of
79604         m4/ulonglong.m4.
79605         * modules/strtoumax (Files): Likewise.
79607 2007-10-30  Bruno Haible  <bruno@clisp.org>
79609         * modules/xvasprintf-posix: New file.
79610         Suggested by Eric Blake.
79612 2007-10-30  Bruno Haible  <bruno@clisp.org>
79614         * modules/xprintf-posix-tests: New file.
79615         * tests/test-xprintf-posix.sh: New file.
79616         * tests/test-xprintf-posix.c: New file.
79617         * tests/test-xfprintf-posix.c: New file.
79619         * modules/xprintf-posix: New file.
79621 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79623         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
79624         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
79625         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
79627 2007-10-29  Bruno Haible  <bruno@clisp.org>
79629         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
79630         contain the special marker '_cv_'.
79631         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
79632         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
79633         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
79634         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
79635         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
79636         Reported by Ralf Wildenhues.
79638 2007-10-29  Bruno Haible  <bruno@clisp.org>
79640         * gnulib-tool (func_import): When --lgpl is not specified, set
79641         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
79642         GPLv3.
79643         Reported by Simon Josefsson.
79645 2007-10-28  Bruno Haible  <bruno@clisp.org>
79647         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
79648         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
79649         HAVE_DECL_ISFINITE.
79650         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
79651         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
79652         HAVE_DECL_ISFINITE.
79654 2007-10-28  Bruno Haible  <bruno@clisp.org>
79656         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
79657         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
79659 2007-10-28  Bruno Haible  <bruno@clisp.org>
79661         Fix link errors with Sun C 5.0 on Solaris 10.
79662         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
79663         function is declared but not present in the compiler's libm.
79664         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
79665         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
79666         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
79667         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
79668         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
79669         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
79670         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
79671         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
79672         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
79673         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
79674         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
79675         HAVE_DECL_FLOORL.
79677 2007-10-28  Bruno Haible  <bruno@clisp.org>
79679         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
79680         gl_FUNC_FLOORL. Cache the result.
79681         (gl_FUNC_FLOORL): Use it.
79682         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
79683         gl_FUNC_CEILL. Cache the result.
79684         (gl_FUNC_CEILL): Use it.
79686         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
79687         gl_FUNC_FLOOR. Cache the result.
79688         (gl_FUNC_FLOOR): Use it.
79689         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
79690         gl_FUNC_CEIL. Cache the result.
79691         (gl_FUNC_CEIL): Use it.
79693         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
79694         gl_FUNC_FLOORF. Cache the result.
79695         (gl_FUNC_FLOORF): Use it.
79696         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
79697         gl_FUNC_CEILF. Cache the result.
79698         (gl_FUNC_CEILF): Use it.
79700 2007-10-28  Bruno Haible  <bruno@clisp.org>
79702         * gnulib-tool: Allow specifying the LGPL version number through
79703         --lgpl=2 or --lgpl=3.
79704         (func_usage): Document --lgpl with argument.
79705         Handle --lgpl=... arguments.
79706         (func_import): Recognize also gl_LGPL calls with an argument. When
79707         --lgpl=2 is used and the module's license is just LGPL, report an
79708         error. Set sed_transform_lib_file according to the lgpl variable. In
79709         the generated files, use --lgpl or gl_LGPL invocations with argument,
79710         if necessary.
79711         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
79712         an LGPv2+ license.
79713         * doc/gnulib-tool.texi (Modified imports): Update explanation of
79714         gl_LGPL macro.
79716 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79717             Bruno Haible  <bruno@clisp.org>
79719         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
79720         (u16_uctomb_aux): Likewise.
79721         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
79722         !HAVE_INLINE.
79723         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
79725 2007-10-28  Bruno Haible  <bruno@clisp.org>
79727         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
79728         Invoke AM_GETTEXT_OPTION if it exists.
79729         * modules/vasprintf: Likewise.
79730         * modules/verror: Likewise.
79731         * modules/xprintf: Likewise.
79732         * modules/xvasprintf: Likewise.
79734 2007-10-27  Ben Pfaff  <blp@gnu.org>
79736         * lib/math.in.h: Define isfinite macro and prototypes for
79737         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
79738         implementations.
79739         * m4/math_h.m4: New substitutions for isfinite module.
79740         * lib/isfinite.c: New file.
79741         * m4/isfinite.m4: New file.
79742         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
79743         * modules/isfinite: New file.
79744         * modules/isfinite-tests: New file.
79745         * tests/tests-isfinite.c: New file.
79746         * doc/functions/isfinite.texi: Mention isfinite module.
79747         * MODULES.html.sh: Mention new module.
79749 2007-10-27  Ben Pfaff  <blp@gnu.org>
79751         Ralf Wildenhues reported that Tru64 4.0D declares the round
79752         functions but does not have definitions.
79753         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
79754         cannot be found in any library, set the output variable to
79755         "missing" instead of "".
79756         * m4/round.m4: Also use our substitute if we cannot find round in
79757         any library, even if it is declared.
79758         * m4/roundf.m4: Likewise for roundf.
79759         * m4/roundl.m4: Likewise for roundl.
79760         * lib/math.in.h: Undefine roundf, round, roundl before defining
79761         their replacements, to allow for hypothetical systems where these
79762         may be defined as macros but not available in libraries.
79764 2007-10-27  Bruno Haible  <bruno@clisp.org>
79766         * doc/gnulib.texi: Invoke @firstparagraphindent.
79767         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
79768         changes in gnulib.
79769         (Source changes): New section.
79771 2007-10-26  Bruno Haible  <bruno@clisp.org>
79773         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
79774         borrowed from autoconf.
79776 2007-10-26  Bruno Haible  <bruno@clisp.org>
79778         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
79779         strerror returned the empty string. Needed on HP-UX 11.00.
79781 2007-10-24  Micah Cowan  <micah@cowan.name>
79783         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
79784         * build-aux/bootstrap: Remove support for now-unnecessary option,
79785         --cvs-user, and envvars CVS_USER, CVS_RSH.
79787 2007-10-24  Jim Meyering  <meyering@redhat.com>
79789         Avoid diagnostics from sha1sum when there is no cached checksum.
79790         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
79791         if the po.s1 file hasn't been created yet.
79793         * build-aux/bootstrap: Sync from coreutils:
79794         2007-10-24  Jim Meyering  <meyering@redhat.com>
79795         Get gnulib from the git repository, not from an obsolete cvs one.
79796         * build-aux/bootstrap: Suggestion from Micah Cowan.
79797         2007-10-04  Jim Meyering  <jim@meyering.net>
79798         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
79799         (update_po_files): Work also when there are no .po files in po/.
79801 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
79803         * README: Append ".git" to git and cg examples.
79804         Problem reported by Benoit Sigoure.
79806 2007-10-23  Micah Cowan  <micah@cowan.name>
79808         * users.txt: Add wget.
79810 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79812         Fix linking of some unistdio tests on FreeBSD.
79813         * modules/unistdio/u16-vsnprintf-tests
79814         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
79815         * modules/unistdio/u16-vsprintf-tests
79816         (test_u16_vsnprintf1_LDADD): Likewise.
79817         * modules/unistdio/u32-vsnprintf-tests
79818         (test_u32_vsnprintf1_LDADD): Likewise.
79819         * modules/unistdio/u32-vsprintf-tests
79820         (test_u32_vsprintf1_LDADD): Likewise.
79821         * modules/unistdio/u8-vsnprintf-tests
79822         (test_u8_vsnprintf1_LDADD): Likewise.
79823         * modules/unistdio/u8-vsprintf-tests
79824         (test_u8_vsprintf1_LDADD): Likewise.
79825         * modules/unistdio/ulc-vsnprintf-tests
79826         (test_ulc_vsnprintf1_LDADD): Likewise.
79827         * modules/unistdio/ulc-vsprintf-tests
79828         (test_ulc_vsprintf1_LDADD): Likewise.
79830         Fix linking of some uniconv tests on FreeBSD.
79831         * modules/uniconv/u16-conv-from-enc-tests
79832         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
79833         * modules/uniconv/u16-conv-to-enc-tests
79834         (test_u16_conv_to_enc_LDADD): Likewise.
79835         * modules/uniconv/u16-strconv-from-enc-tests
79836         (test_u16_strconv_from_enc_LDADD): Likewise.
79837         * modules/uniconv/u16-strconv-to-enc-tests
79838         (test_u16_strconv_to_enc_LDADD): Likewise.
79839         * modules/uniconv/u32-conv-from-enc-tests
79840         (test_u32_conv_from_enc_LDADD): Likewise.
79841         * modules/uniconv/u32-conv-to-enc-tests
79842         (test_u32_conv_to_enc_LDADD): Likewise.
79843         * modules/uniconv/u32-strconv-from-enc-tests
79844         (test_u32_strconv_from_enc_LDADD): Likewise.
79845         * modules/uniconv/u32-strconv-to-enc-tests
79846         (test_u32_strconv_to_enc_LDADD): Likewise.
79847         * modules/uniconv/u8-conv-from-enc-tests
79848         (test_u8_conv_from_enc_LDADD): Likewise.
79849         * modules/uniconv/u8-conv-to-enc-tests
79850         (test_u8_conv_to_enc_LDADD): Likewise.
79851         * modules/uniconv/u8-strconv-from-enc-tests
79852         (test_u8_strconv_from_enc_LDADD): Likewise.
79853         * modules/uniconv/u8-strconv-to-enc-tests
79854         (test_u8_strconv_to_enc_LDADD): Likewise.
79856 2007-10-22  Bruno Haible  <bruno@clisp.org>
79858         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
79859         size.
79861 2007-10-22  Eric Blake  <ebb9@byu.net>
79863         Tweak x*printf documentation.
79864         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
79865         variable name and comments.
79866         Suggested by Bruno Haible.
79868 2007-10-22  Bruno Haible  <bruno@clisp.org>
79870         * lib/acl.c (copy_acl): Fix file name in comment.
79872 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
79874         Fix Tru64 problem with stdbool.h.
79875         * lib/stdbool.in.h (false, true):
79876         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
79877         Don't declare as an enum in this situation; it runs afoul of Tru64.
79878         Problem reported by Steven M. Schweda in
79879         <http://lists.gnu.org/r/bug-autoconf/2007-10/msg00019.html>.
79881 2007-10-22  Eric Blake  <ebb9@byu.net>
79883         Also wrap vf?printf.
79884         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
79885         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
79886         (xvprintf, xvfprintf): New functions.
79888 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79890         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
79891         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
79893         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
79894         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
79896 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
79898         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
79899         by Bruno Haible.
79901 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79903         * lib/getloadavg.c
79904         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
79905         Undef `sys' after including sys/table.h, for Tru64 4.0D.
79907         * tests/test-i-ring.c: Work for C89.
79909 2007-10-22  Bruno Haible  <bruno@clisp.org>
79911         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
79912         -1u, in preprocessor expression, so that we don't test for the bug
79913         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
79914         <http://lists.gnu.org/r/bug-gnulib/2007-10/msg00329.html>.
79916 2007-10-22  Eric Blake  <ebb9@byu.net>
79918         * tests/test-yesno.sh: Silence stderr during test.
79920 2007-10-22  Simon Josefsson  <simon@josefsson.org>
79922         * modules/crypto/gc-camellia: New file.
79924         * m4/gc-camellia.m4: New file.
79926         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
79928         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
79930 2007-10-22  Simon Josefsson  <simon@josefsson.org>
79932         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
79933         --help to stdout.  Reported by sms@antinode.org (Steven
79934         M. Schweda).
79936 2007-10-22  Simon Josefsson  <simon@josefsson.org>
79938         * users.txt: Fix link to libksba.
79940 2007-10-21  Ben Pfaff  <blp@gnu.org>
79942         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
79943         round.c roundf implementation that depends on floorf and ceilf to
79944         be tested unconditionally.
79946 2007-10-21  Ben Pfaff  <blp@gnu.org>
79948         * m4/check-libm-func.m4: Removed.
79949         * m4/check-math-lib.m4: New file.
79950         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
79951         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
79952         definition and lack of AC_LIBOBJ([roundf]).
79953         * m4/roundl.m4: Ditto, and similarly for roundl.
79954         * modules/round: Reference new m4 file.
79955         * modules/roundf: Ditto.
79956         * modules/roundl: Ditto.
79957         * tests/test-round2.c (main): Use ROUND instead of round.
79958         Bug report from Bruno Haible.
79960 2007-10-21  Bruno Haible  <bruno@clisp.org>
79962         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
79963         context.
79965 2007-10-21  Bruno Haible  <bruno@clisp.org>
79967         * tests/test-wcwidth.c (main): Allow negative result for some control
79968         characters.
79970         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
79971         Needed on OSF/1 5.1.
79973 2007-10-21  Bruno Haible  <bruno@clisp.org>
79975         * tests/test-floorf1.c: Include isnanf.h.
79976         (main): Use isnanf() instead of isnan().
79977         * tests/test-ceilf1.c: Include isnanf.h.
79978         (main): Use isnanf() instead of isnan().
79979         * tests/test-truncf1.c: Include isnanf.h.
79980         (main): Use isnanf() instead of isnan().
79981         * tests/test-roundf1.c: Include isnanf.h.
79982         (main): Use isnanf() instead of isnan().
79984 2007-10-21  Eric Blake  <ebb9@byu.net>
79986         * users.txt: Update URL for m4.
79988 2007-10-21  Bruno Haible  <bruno@clisp.org>
79990         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
79992 2007-10-21  Bruno Haible  <bruno@clisp.org>
79994         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
79995         Git's management files if the CVS files are not present.
79997 2007-10-20  Bruno Haible  <bruno@clisp.org>
79999         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
80000         gcc-3.4.x.
80002 2007-10-20  Ben Pfaff  <blp@gnu.org>
80004         * lib/math.in.h: Declare round, roundf, roundl if we are providing
80005         implementations.
80006         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
80007         * lib/round.c: New file.
80008         * lib/roundf.c: New file.
80009         * lib/roundl.c: New file.
80010         * m4/round.m4: New file.
80011         * m4/roundf.m4: New file.
80012         * m4/roundl.m4: New file.
80013         * m4/check-libm-func-m4: New file.
80014         * modules/math: Replace round, roundf, roundl related @VARS@ in
80015         math.in.h.
80016         * modules/round: New file.
80017         * modules/round-tests: New file.
80018         * modules/roundf: New file.
80019         * modules/roundf-tests: New file.
80020         * modules/roundl: New file.
80021         * modules/roundl-tests: New file.
80022         * tests/test-round1.c: New file.
80023         * tests/test-round2.c: New file.
80024         * tests/test-roundf1.c: New file.
80025         * tests/test-roundf2.c: New file.
80026         * tests/test-roundl.c: New file.
80027         * doc/functions/round.texi: Mention round module.
80028         * doc/functions/roundf.texi: Mention roundf module.
80029         * doc/functions/roundl.texi: Mention roundl module.
80030         * MODULES.html.sh: Mention new modules.
80031         Thanks to Bruno Haible for suggestions.
80033 2007-10-20  Jim Meyering  <meyering@redhat.com>
80035         * lib/xprintf.c: Include <config.h> unconditionally.
80037         Change xprintf's license to GPL.
80038         * modules/xprintf (License): s/LGPL/GPL/, since this module
80039         depends on modules (exit and exitfail) which are GPL.
80040         Suggestion from Bruno Haible.
80042         xprintf fixes.
80043         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
80044         Use a clearer diagnostic.
80045         Patch from Bruno Haible.
80047 2007-10-20  Bruno Haible  <bruno@clisp.org>
80049         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
80050         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
80051         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
80053 2007-10-20  Bruno Haible  <bruno@clisp.org>
80055         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
80056         precision in the comparison result > x - 1 or similar.
80057         * tests/test-ceilf2.c (correct_result_p): Likewise.
80058         * tests/test-truncf2.c (correct_result_p): Likewise.
80059         * tests/test-trunc2.c (correct_result_p): Likewise.
80060         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
80062 2007-10-20  Bruno Haible  <bruno@clisp.org>
80064         * modules/ceil: New file.
80065         * m4/ceil.m4: New file.
80066         * doc/functions/ceil.texi: Mention the 'ceil' module.
80068 2007-10-20  Bruno Haible  <bruno@clisp.org>
80070         * modules/floor: New file.
80071         * m4/floor.m4: New file.
80072         * doc/functions/floor.texi: Mention the 'floor' module.
80074 2007-10-20  Bruno Haible  <bruno@clisp.org>
80076         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
80077         of %a.
80078         * modules/floorf-tests (Depends-on): Likewise.
80079         * modules/truncf-tests (Depends-on): Likewise.
80080         * modules/trunc-tests (Depends-on): Likewise.
80081         Reported by Ben Pfaff.
80083 2007-10-19  Jim Meyering  <meyering@redhat.com>
80085         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
80086         Don't bother testing specific errno values.  Just test ferror.
80088         New module: xprintf
80089         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
80091 2007-10-19  Bruno Haible  <bruno@clisp.org>
80093         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
80094         syntax.
80095         * modules/javaexec (Makefile.am): Likewise.
80096         * modules/relocatable-prog (Makefile.am): Likewise.
80097         Suggested by Jim Meyering.
80099 2007-10-18  Bruno Haible  <bruno@clisp.org>
80101         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
80102         Reported by Jim Meyering.
80104 2007-10-18  Eric Blake  <ebb9@byu.net>
80106         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
80108 2007-10-18  Bruno Haible  <bruno@clisp.org>
80110         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
80111         the format string into writable memory. Needed in Fortify conditions.
80113 2007-10-18  Colin Watson  <cjwatson@debian.org>  (tiny change)
80114             Bruno Haible  <bruno@clisp.org>
80116         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
80117         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
80118         * modules/trim (Depends-on): Add mbchar.
80119         (configure.ac): Add gl_FUNC_MBRTOWC.
80120         (Makefile.am): Augment lib_SOURCES.
80122 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
80124         Modify glob.c to use fstatat and dirfd, to simplify it.
80125         Suggested by Eric Blake.
80126         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
80127         Don't include <stdbool.h>; not used.
80128         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
80129         (link_exists_p): Simplify implementation, since we can now assume
80130         dirfd and fstatat.
80131         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
80133 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
80135         * gnulib-tool (func_get_dependencies): Fix sed script to
80136         match only tests.
80138 2007-10-17  Bruno Haible  <bruno@clisp.org>
80140         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
80141         allow locale names without encoding suffix.
80142         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
80143         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
80145 2007-10-16  Bruno Haible  <bruno@clisp.org>
80147         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
80148         * lib/getgroups.c (getgroups): Likewise.
80149         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
80151 2007-10-16  Bruno Haible  <bruno@clisp.org>
80153         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
80154         * modules/malloc-posix (License): Likewise.
80155         * modules/realloc-posix (License): Likewise.
80156         * modules/calloc-posix (License): Likewise.
80157         * modules/intprops (License): Change from GPL to LGPL, with
80158         Paul Eggert's approval.
80160 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
80162         Merge glibc changes into lib/glob.c.
80164         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
80165         2007-10-15 04:59:03 UTC.  Here are the changes:
80167         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
80169         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
80171         * lib/glob.c: Add some branch prediction throughout.
80173         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
80175         [BZ #5103]
80176         * lib/glob.c (glob): Recognize patterns starting \/.
80178         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
80180         [BZ #3996]
80181         * lib/glob.c (attribute_hidden): Define if not defined.
80182         (glob): Unescape dirname, filename or username when needed and not
80183         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
80184         is NULL.  Handle unescaped [ in pattern without closing ].
80185         Don't pass GLOB_CHECK down to recursive glob for directories.
80186         (__glob_pattern_type): New function.
80187         (__glob_pattern_p): Implement using __glob_pattern_type.
80188         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
80189         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
80190         Remove unreachable code.
80192         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
80194         * lib/glob.c (glob_in_dir): Add some comments and asserts to
80195         explain why there are no leaks.
80197         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
80199         [BZ #3253]
80200         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
80201         time, rather allocate increasingly bigger arrays of pointers, if
80202         possible with alloca, if too large with malloc.
80204 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
80206         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
80207         Problem reported by H.Merijn Brand in
80208         <http://lists.gnu.org/r/bug-tar/2007-10/msg00018.html>.
80209         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
80210         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
80212 2007-10-15  Bruno Haible  <bruno@clisp.org>
80214         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
80215         with explicit rpl_ prefix.
80216         * lib/fopen.c (fopen): Likewise.
80217         * lib/freopen.c (freopen): Likewise.
80218         * lib/iconv.c (iconv): Likewise.
80219         * lib/iconv_close.c (iconv_close): Likewise.
80221 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
80223         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
80225 2007-10-15  Bruno Haible  <bruno@clisp.org>
80227         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
80228         <stddef.h> instead of <stdlib.h> since we only need NULL.
80229         Reported by Ben Pfaff <blp@cs.stanford.edu>.
80231 2007-10-15  Bruno Haible  <bruno@clisp.org>
80233         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
80234         Replace paragraph talking about LIBOBJS.
80235         Reported by Colin Watson <cjwatson@debian.org>.
80237 2007-10-15  Bruno Haible  <bruno@clisp.org>
80239         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
80240         <stdlib.h> before using NULL.
80242 2007-10-15  Simon Josefsson  <simon@josefsson.org>
80244         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
80245         Reported by Albert Chin <china@thewrittenword.com>.
80247 2007-10-14  Bruno Haible  <bruno@clisp.org>
80249         * modules/iconv_open-utf-tests: New file.
80250         * tests/test-iconv-utf.c: New file.
80252         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
80253         * modules/iconv_open-utf: New file.
80254         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
80255         (iconv, iconv_close): New declarations.
80256         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
80257         be defined.
80258         (iconv_open): Add special handling of conversion between UTF-8 and
80259         UTF-{16,32}{BE,LE}.
80260         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
80261         * lib/iconv_close.c: New file.
80262         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
80263         gl_FUNC_ICONV_OPEN.
80264         (gl_FUNC_ICONV_OPEN): Use it.
80265         (gl_FUNC_ICONV_OPEN_UTF): New macro.
80266         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
80267         and REPLACE_ICONV_UTF.
80268         * modules/iconv_open (Depends-on): Add c-strcase.
80269         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
80270         ICONV_CONST.
80271         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
80273 2007-10-13  Albert Chin  <china@thewrittenword.com>
80274             Bruno Haible  <bruno@clisp.org>
80276         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
80277         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
80279 2007-10-13  Bruno Haible  <bruno@clisp.org>
80281         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
80282         defined, use the ISO C99 inline semantics.
80283         * lib/argp.h (ARGP_EI): Likewise.
80285 2007-10-13  Bruno Haible  <bruno@clisp.org>
80287         Handle 'inline' change in gcc 4.3.0.
80288         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
80289         argp_fmtstream_write, argp_fmtstream_set_lmargin,
80290         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
80291         argp_fmtstream_point): Disable 'extern' declaration if the function
80292         definition is going to be provided inline.
80293         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
80294         semantics, not the ISO C99 inline semantics.
80295         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
80296         'extern' declaration if the function definition is going to be provided
80297         inline.
80298         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
80299         the GNU C inline semantics, not the ISO C99 inline semantics. With
80300         GCC 4.2, avoid a warning.
80302 2007-10-13  Bruno Haible  <bruno@clisp.org>
80304         * lib/freading.h (freading): Enable the use of __freading for
80305         glibc >= 2.7.
80306         * lib/freading.c (freading): Likewise.
80308 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
80310         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
80311         "warning: C99 inline functions are not supported; using GNU89".
80313 2007-10-12  Bruno Haible  <bruno@clisp.org>
80315         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
80316         of 2.
80317         * tests/test-ceilf2.c: New file.
80318         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
80320         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
80321         * modules/ceilf-tests: Update.
80323 2007-10-12  Bruno Haible  <bruno@clisp.org>
80325         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
80326         of 2.
80327         * tests/test-floorf2.c: New file.
80328         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
80330         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
80331         * modules/floorf-tests: Update.
80333 2007-10-12  Bruno Haible  <bruno@clisp.org>
80335         * tests/test-trunc2.c: New file.
80336         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
80338         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
80339         * modules/trunc-tests: Update.
80341 2007-10-12  Bruno Haible  <bruno@clisp.org>
80343         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
80344         of 2.
80345         * tests/test-truncf2.c: New file.
80346         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
80348         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
80349         * modules/truncf-tests: Update.
80351 2007-10-11  Eric Blake  <ebb9@byu.net>
80353         Don't claim strerror is broken on Interix.
80354         * doc/functions/strerror.texi (strerror): Known broken systems are
80355         now Solaris 8, and not Interix.
80356         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
80357         Interix on cross-compile.
80358         Reported by Martin Koeppe in
80359         http://lists.gnu.org/r/bug-gnulib/2007-10/msg00005.html.
80361 2007-10-11  Bruno Haible  <bruno@clisp.org>
80363         * modules/i-ring-tests: New file.
80364         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
80365         instead of assert.
80367 2007-10-11  Bruno Haible  <bruno@clisp.org>
80369         * modules/filenamecat-tests: New file.
80370         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
80371         * lib/filenamecat.c: Remove test code.
80373 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
80375         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
80377         * lib/strerror.c: Include <string.h> always, to test interface,
80378         and to remove the need for the dummy.
80379         Include intprops.h to compute width instead of doing it ourselves
80380         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
80381         (strerror): Define it to return NULL if there's no system strerror.
80382         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
80383         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
80384         ancient pre-strerror Unix systems well any more.  Saying "unknown
80385         system error" is enough.
80386         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
80387         simpler strerror.c implementation.
80388         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
80389         Simplify the tests to reflect the simpler strerror implementation.
80390         * modules/strerror (Depends-on): Add intprops.
80392 2007-10-09  Eric Blake  <ebb9@byu.net>
80394         Silence test-fpending.
80395         * modules/fpending-tests (Files): Add wrapper script.
80396         * tests/test-fpending.sh: New file.
80398 2007-10-09  Bruno Haible  <bruno@clisp.org>
80400         * MODULES.html.sh (func_module): Don't create a hyperlink for
80401         function names like 'printf_frexp'.
80402         (Misc): Add crc, memxor.
80403         (Characteristics of floating types): New section.
80404         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
80405         isnanf-nolibm, signbit, trunc, truncf, truncl.
80406         (Enhancements for ISO C 99 functions): New subsection Input/output.
80407         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
80408         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
80409         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
80410         (Compatibility checks for POSIX:2001 functions): Add clock-time.
80411         (Enhancements for POSIX:2001 functions): Add chdir-long.
80412         (File system functions): Add areadlink, chdir-safer, read-file.
80413         Remove cycle-check.
80414         (File system as inode set): New section.
80415         (Date and time): Add gethrxtime.
80416         (Multithreading): Add openmp.
80417         (Internationalization functions): Add localename.
80418         (Unicode string functions): Add unistr/u*-mbsnlen.
80419         (Support for maintaining and releasing projects): Add git-version-gen.
80420         (Lone files): Remove directories.
80422 2007-10-08  Ben Pfaff  <blp@gnu.org>
80424         * lib/xmalloca.h: Fix typo in comment.
80426 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
80428         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
80429         when avoiding problems with integer overflow.  Use a portable test
80430         instead.
80432 2007-10-08  Simon Josefsson  <simon@josefsson.org>
80434         * modules/dummy (License): Change to LGPLv2+.
80435         * modules/float (License): Likewise
80436         * modules/realloc (License): Likewise
80437         * modules/stdlib (License): Likewise
80439 2007-10-07  Bruno Haible  <bruno@clisp.org>
80441         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
80442         * floor.c (TWO_MANT_DIG): Likewise.
80443         * ceil.c (TWO_MANT_DIG): Likewise.
80444         Reported by Ben Pfaff.
80446 2007-10-07  Bruno Haible  <bruno@clisp.org>
80448         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
80449         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
80450         * lib/frexp.c (FUNC): Likewise.
80451         * lib/printf-frexp.h (printf_frexp): Likewise.
80452         * lib/printf-frexpl.h (printf_frexpl): Likewise.
80453         * lib/printf-frexp.c (FUNC): Likewise.
80454         Suggested by Jim Meyering.
80456 2007-10-07  Jim Meyering  <meyering@redhat.com>
80458         Make xnanosleep's integer overflow test more robust.
80459         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
80460         so that gcc-4.3.0 doesn't optimize away this test for overflow.
80462 2007-10-07  Bruno Haible  <bruno@clisp.org>
80464         * NEWS: Mention the license change.
80466         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
80467         abbreviations in the modules files.
80469         Change copyright notice from GPLv2+ to GPLv3+.
80470         * README: Change copyright notice.
80471         * MODULES.html.sh: Likewise.
80472         * build-aux/bootstrap.conf: Likewise.
80473         * build-aux/config.libpath: Likewise.
80474         * build-aux/csharpcomp.sh.in: Likewise.
80475         * build-aux/csharpexec.sh.in: Likewise.
80476         * build-aux/install-reloc: Likewise.
80477         * build-aux/javacomp.sh.in: Likewise.
80478         * build-aux/javaexec.sh.in: Likewise.
80479         * build-aux/ldd.sh.in: Likewise.
80480         * build-aux/reloc-ldflags: Likewise.
80481         * build-aux/relocatable.sh.in: Likewise.
80482         * build-aux/x-to-1.in: Likewise.
80483         * check-module: Likewise.
80484         * config/srclistvars.sh: Likewise.
80485         * gnulib-tool: Likewise.
80486         * lib/acl-internal.h: Likewise.
80487         * lib/acl.c: Likewise.
80488         * lib/acl.h: Likewise.
80489         * lib/acl_entries.c: Likewise.
80490         * lib/areadlink-with-size.c: Likewise.
80491         * lib/areadlink.c: Likewise.
80492         * lib/areadlink.h: Likewise.
80493         * lib/argmatch.c: Likewise.
80494         * lib/argmatch.h: Likewise.
80495         * lib/argp-ba.c: Likewise.
80496         * lib/argp-eexst.c: Likewise.
80497         * lib/argp-fmtstream.c: Likewise.
80498         * lib/argp-fmtstream.h: Likewise.
80499         * lib/argp-fs-xinl.c: Likewise.
80500         * lib/argp-help.c: Likewise.
80501         * lib/argp-namefrob.h: Likewise.
80502         * lib/argp-parse.c: Likewise.
80503         * lib/argp-pin.c: Likewise.
80504         * lib/argp-pv.c: Likewise.
80505         * lib/argp-pvh.c: Likewise.
80506         * lib/argp-xinl.c: Likewise.
80507         * lib/argp.h: Likewise.
80508         * lib/at-func.c: Likewise.
80509         * lib/atanl.c: Likewise.
80510         * lib/backupfile.c: Likewise.
80511         * lib/backupfile.h: Likewise.
80512         * lib/basename.c: Likewise.
80513         * lib/binary-io.h: Likewise.
80514         * lib/byteswap.in.h: Likewise.
80515         * lib/c-stack.c: Likewise.
80516         * lib/c-stack.h: Likewise.
80517         * lib/c-strcasestr.c: Likewise.
80518         * lib/c-strcasestr.h: Likewise.
80519         * lib/c-strstr.c: Likewise.
80520         * lib/c-strstr.h: Likewise.
80521         * lib/c-strtod.c: Likewise.
80522         * lib/calloc.c: Likewise.
80523         * lib/canon-host.c: Likewise.
80524         * lib/canon-host.h: Likewise.
80525         * lib/canonicalize-lgpl.c: Likewise.
80526         * lib/canonicalize.c: Likewise.
80527         * lib/canonicalize.h: Likewise.
80528         * lib/ceil.c: Likewise.
80529         * lib/ceilf.c: Likewise.
80530         * lib/ceill.c: Likewise.
80531         * lib/chdir-long.c: Likewise.
80532         * lib/chdir-long.h: Likewise.
80533         * lib/chdir-safer.c: Likewise.
80534         * lib/chdir-safer.h: Likewise.
80535         * lib/chown.c: Likewise.
80536         * lib/classpath.c: Likewise.
80537         * lib/classpath.h: Likewise.
80538         * lib/clean-temp.c: Likewise.
80539         * lib/clean-temp.h: Likewise.
80540         * lib/cloexec.c: Likewise.
80541         * lib/close-stream.c: Likewise.
80542         * lib/closein.c: Likewise.
80543         * lib/closein.h: Likewise.
80544         * lib/closeout.c: Likewise.
80545         * lib/closeout.h: Likewise.
80546         * lib/concat-filename.c: Likewise.
80547         * lib/copy-file.c: Likewise.
80548         * lib/copy-file.h: Likewise.
80549         * lib/count-one-bits.h: Likewise.
80550         * lib/crc.c: Likewise.
80551         * lib/crc.h: Likewise.
80552         * lib/creat-safer.c: Likewise.
80553         * lib/csharpcomp.c: Likewise.
80554         * lib/csharpcomp.h: Likewise.
80555         * lib/csharpexec.c: Likewise.
80556         * lib/csharpexec.h: Likewise.
80557         * lib/cycle-check.c: Likewise.
80558         * lib/cycle-check.h: Likewise.
80559         * lib/diacrit.c: Likewise.
80560         * lib/diacrit.h: Likewise.
80561         * lib/diffseq.h: Likewise.
80562         * lib/dirchownmod.c: Likewise.
80563         * lib/dirent.in.h: Likewise.
80564         * lib/dirfd.c: Likewise.
80565         * lib/dirfd.h: Likewise.
80566         * lib/dirname.c: Likewise.
80567         * lib/dirname.h: Likewise.
80568         * lib/dummy.c: Likewise.
80569         * lib/dup-safer.c: Likewise.
80570         * lib/dup2.c: Likewise.
80571         * lib/eealloc.h: Likewise.
80572         * lib/error.c: Likewise.
80573         * lib/error.h: Likewise.
80574         * lib/euidaccess.c: Likewise.
80575         * lib/exclude.c: Likewise.
80576         * lib/exclude.h: Likewise.
80577         * lib/execute.c: Likewise.
80578         * lib/execute.h: Likewise.
80579         * lib/exitfail.c: Likewise.
80580         * lib/exitfail.h: Likewise.
80581         * lib/expl.c: Likewise.
80582         * lib/fatal-signal.c: Likewise.
80583         * lib/fatal-signal.h: Likewise.
80584         * lib/fbufmode.c: Likewise.
80585         * lib/fbufmode.h: Likewise.
80586         * lib/fchdir.c: Likewise.
80587         * lib/fchmodat.c: Likewise.
80588         * lib/fchownat.c: Likewise.
80589         * lib/fcntl--.h: Likewise.
80590         * lib/fcntl-safer.h: Likewise.
80591         * lib/fcntl.in.h: Likewise.
80592         * lib/fd-safer.c: Likewise.
80593         * lib/fflush.c: Likewise.
80594         * lib/file-has-acl.c: Likewise.
80595         * lib/file-set.c: Likewise.
80596         * lib/file-type.c: Likewise.
80597         * lib/file-type.h: Likewise.
80598         * lib/fileblocks.c: Likewise.
80599         * lib/filemode.c: Likewise.
80600         * lib/filemode.h: Likewise.
80601         * lib/filename.h: Likewise.
80602         * lib/filenamecat.c: Likewise.
80603         * lib/filenamecat.h: Likewise.
80604         * lib/findprog.c: Likewise.
80605         * lib/findprog.h: Likewise.
80606         * lib/float.in.h: Likewise.
80607         * lib/floor.c: Likewise.
80608         * lib/floorf.c: Likewise.
80609         * lib/floorl.c: Likewise.
80610         * lib/fopen-safer.c: Likewise.
80611         * lib/fopen.c: Likewise.
80612         * lib/fpending.c: Likewise.
80613         * lib/fpending.h: Likewise.
80614         * lib/fprintf.c: Likewise.
80615         * lib/fprintftime.h: Likewise.
80616         * lib/fpucw.h: Likewise.
80617         * lib/fpurge.c: Likewise.
80618         * lib/fpurge.h: Likewise.
80619         * lib/freadable.c: Likewise.
80620         * lib/freadable.h: Likewise.
80621         * lib/freadahead.c: Likewise.
80622         * lib/freadahead.h: Likewise.
80623         * lib/freading.c: Likewise.
80624         * lib/freading.h: Likewise.
80625         * lib/free.c: Likewise.
80626         * lib/freopen.c: Likewise.
80627         * lib/frexp.c: Likewise.
80628         * lib/frexpl.c: Likewise.
80629         * lib/fseek.c: Likewise.
80630         * lib/fseterr.c: Likewise.
80631         * lib/fseterr.h: Likewise.
80632         * lib/fstatat.c: Likewise.
80633         * lib/fstrcmp.c: Likewise.
80634         * lib/fstrcmp.h: Likewise.
80635         * lib/fsusage.c: Likewise.
80636         * lib/fsusage.h: Likewise.
80637         * lib/ftell.c: Likewise.
80638         * lib/ftello.c: Likewise.
80639         * lib/fts-cycle.c: Likewise.
80640         * lib/fts.c: Likewise.
80641         * lib/fts_.h: Likewise.
80642         * lib/full-read.c: Likewise.
80643         * lib/full-read.h: Likewise.
80644         * lib/full-write.c: Likewise.
80645         * lib/full-write.h: Likewise.
80646         * lib/fwritable.c: Likewise.
80647         * lib/fwritable.h: Likewise.
80648         * lib/fwriteerror.c: Likewise.
80649         * lib/fwriteerror.h: Likewise.
80650         * lib/fwriting.c: Likewise.
80651         * lib/fwriting.h: Likewise.
80652         * lib/gcd.c: Likewise.
80653         * lib/gcd.h: Likewise.
80654         * lib/getcwd.c: Likewise.
80655         * lib/getdate.h: Likewise.
80656         * lib/getdate.y: Likewise.
80657         * lib/getdomainname.c: Likewise.
80658         * lib/getdomainname.h: Likewise.
80659         * lib/getgroups.c: Likewise.
80660         * lib/gethostname.c: Likewise.
80661         * lib/gethrxtime.c: Likewise.
80662         * lib/gethrxtime.h: Likewise.
80663         * lib/getloadavg.c: Likewise.
80664         * lib/getndelim2.c: Likewise.
80665         * lib/getndelim2.h: Likewise.
80666         * lib/getnline.c: Likewise.
80667         * lib/getnline.h: Likewise.
80668         * lib/getopt.c: Likewise.
80669         * lib/getopt.in.h: Likewise.
80670         * lib/getopt1.c: Likewise.
80671         * lib/getopt_int.h: Likewise.
80672         * lib/getpagesize.h: Likewise.
80673         * lib/getsubopt.c: Likewise.
80674         * lib/gettime.c: Likewise.
80675         * lib/getugroups.c: Likewise.
80676         * lib/getugroups.h: Likewise.
80677         * lib/getusershell.c: Likewise.
80678         * lib/gl_anyavltree_list1.h: Likewise.
80679         * lib/gl_anyavltree_list2.h: Likewise.
80680         * lib/gl_anyhash_list1.h: Likewise.
80681         * lib/gl_anyhash_list2.h: Likewise.
80682         * lib/gl_anylinked_list1.h: Likewise.
80683         * lib/gl_anylinked_list2.h: Likewise.
80684         * lib/gl_anyrbtree_list1.h: Likewise.
80685         * lib/gl_anyrbtree_list2.h: Likewise.
80686         * lib/gl_anytree_list1.h: Likewise.
80687         * lib/gl_anytree_list2.h: Likewise.
80688         * lib/gl_anytree_oset.h: Likewise.
80689         * lib/gl_anytreehash_list1.h: Likewise.
80690         * lib/gl_anytreehash_list2.h: Likewise.
80691         * lib/gl_array_list.c: Likewise.
80692         * lib/gl_array_list.h: Likewise.
80693         * lib/gl_array_oset.c: Likewise.
80694         * lib/gl_array_oset.h: Likewise.
80695         * lib/gl_avltree_list.c: Likewise.
80696         * lib/gl_avltree_list.h: Likewise.
80697         * lib/gl_avltree_oset.c: Likewise.
80698         * lib/gl_avltree_oset.h: Likewise.
80699         * lib/gl_avltreehash_list.c: Likewise.
80700         * lib/gl_avltreehash_list.h: Likewise.
80701         * lib/gl_carray_list.c: Likewise.
80702         * lib/gl_carray_list.h: Likewise.
80703         * lib/gl_linked_list.c: Likewise.
80704         * lib/gl_linked_list.h: Likewise.
80705         * lib/gl_linkedhash_list.c: Likewise.
80706         * lib/gl_linkedhash_list.h: Likewise.
80707         * lib/gl_list.c: Likewise.
80708         * lib/gl_list.h: Likewise.
80709         * lib/gl_oset.c: Likewise.
80710         * lib/gl_oset.h: Likewise.
80711         * lib/gl_rbtree_list.c: Likewise.
80712         * lib/gl_rbtree_list.h: Likewise.
80713         * lib/gl_rbtree_oset.c: Likewise.
80714         * lib/gl_rbtree_oset.h: Likewise.
80715         * lib/gl_rbtreehash_list.c: Likewise.
80716         * lib/gl_rbtreehash_list.h: Likewise.
80717         * lib/gl_sublist.c: Likewise.
80718         * lib/gl_sublist.h: Likewise.
80719         * lib/group-member.c: Likewise.
80720         * lib/group-member.h: Likewise.
80721         * lib/hard-locale.c: Likewise.
80722         * lib/hard-locale.h: Likewise.
80723         * lib/hash-pjw.c: Likewise.
80724         * lib/hash-pjw.h: Likewise.
80725         * lib/hash-triple.c: Likewise.
80726         * lib/hash.c: Likewise.
80727         * lib/hash.h: Likewise.
80728         * lib/human.c: Likewise.
80729         * lib/human.h: Likewise.
80730         * lib/i-ring.c: Likewise.
80731         * lib/i-ring.h: Likewise.
80732         * lib/idcache.c: Likewise.
80733         * lib/imaxabs.c: Likewise.
80734         * lib/imaxdiv.c: Likewise.
80735         * lib/inet_pton.c: Likewise.
80736         * lib/inet_pton.h: Likewise.
80737         * lib/intprops.h: Likewise.
80738         * lib/inttostr.c: Likewise.
80739         * lib/inttostr.h: Likewise.
80740         * lib/inttypes.in.h: Likewise.
80741         * lib/isapipe.c: Likewise.
80742         * lib/isdir.c: Likewise.
80743         * lib/isnan.c: Likewise.
80744         * lib/isnan.h: Likewise.
80745         * lib/isnanf.c: Likewise.
80746         * lib/isnanf.h: Likewise.
80747         * lib/isnanl-nolibm.h: Likewise.
80748         * lib/isnanl.c: Likewise.
80749         * lib/isnanl.h: Likewise.
80750         * lib/javacomp.c: Likewise.
80751         * lib/javacomp.h: Likewise.
80752         * lib/javaexec.c: Likewise.
80753         * lib/javaexec.h: Likewise.
80754         * lib/javaversion.c: Likewise.
80755         * lib/javaversion.h: Likewise.
80756         * lib/javaversion.java: Likewise.
80757         * lib/lbrkprop.h: Likewise.
80758         * lib/lchmod.h: Likewise.
80759         * lib/lchown.c: Likewise.
80760         * lib/ldexpl.c: Likewise.
80761         * lib/linebreak.c: Likewise.
80762         * lib/linebreak.h: Likewise.
80763         * lib/linebuffer.c: Likewise.
80764         * lib/linebuffer.h: Likewise.
80765         * lib/locale.in.h: Likewise.
80766         * lib/logl.c: Likewise.
80767         * lib/long-options.c: Likewise.
80768         * lib/long-options.h: Likewise.
80769         * lib/lstat.c: Likewise.
80770         * lib/lstat.h: Likewise.
80771         * lib/math.in.h: Likewise.
80772         * lib/mbchar.c: Likewise.
80773         * lib/mbchar.h: Likewise.
80774         * lib/mbfile.h: Likewise.
80775         * lib/mbiter.h: Likewise.
80776         * lib/mbscasecmp.c: Likewise.
80777         * lib/mbscasestr.c: Likewise.
80778         * lib/mbschr.c: Likewise.
80779         * lib/mbscspn.c: Likewise.
80780         * lib/mbslen.c: Likewise.
80781         * lib/mbsncasecmp.c: Likewise.
80782         * lib/mbsnlen.c: Likewise.
80783         * lib/mbspbrk.c: Likewise.
80784         * lib/mbspcasecmp.c: Likewise.
80785         * lib/mbsrchr.c: Likewise.
80786         * lib/mbssep.c: Likewise.
80787         * lib/mbsspn.c: Likewise.
80788         * lib/mbsstr.c: Likewise.
80789         * lib/mbstok_r.c: Likewise.
80790         * lib/mbswidth.c: Likewise.
80791         * lib/mbswidth.h: Likewise.
80792         * lib/mbuiter.h: Likewise.
80793         * lib/memcasecmp.c: Likewise.
80794         * lib/memcasecmp.h: Likewise.
80795         * lib/memchr.c: Likewise.
80796         * lib/memcmp.c: Likewise.
80797         * lib/memcoll.c: Likewise.
80798         * lib/memcoll.h: Likewise.
80799         * lib/memcpy.c: Likewise.
80800         * lib/memrchr.c: Likewise.
80801         * lib/mkancesdirs.c: Likewise.
80802         * lib/mkdir-p.c: Likewise.
80803         * lib/mkdir-p.h: Likewise.
80804         * lib/mkdir.c: Likewise.
80805         * lib/mkdirat.c: Likewise.
80806         * lib/mkdtemp.c: Likewise.
80807         * lib/mkstemp-safer.c: Likewise.
80808         * lib/mkstemp.c: Likewise.
80809         * lib/modechange.c: Likewise.
80810         * lib/modechange.h: Likewise.
80811         * lib/mountlist.c: Likewise.
80812         * lib/mountlist.h: Likewise.
80813         * lib/mpsort.c: Likewise.
80814         * lib/nanosleep.c: Likewise.
80815         * lib/obstack.c: Likewise.
80816         * lib/obstack.h: Likewise.
80817         * lib/open-safer.c: Likewise.
80818         * lib/open.c: Likewise.
80819         * lib/openat-die.c: Likewise.
80820         * lib/openat-priv.h: Likewise.
80821         * lib/openat-proc.c: Likewise.
80822         * lib/openat.c: Likewise.
80823         * lib/openat.h: Likewise.
80824         * lib/pagealign_alloc.c: Likewise.
80825         * lib/pagealign_alloc.h: Likewise.
80826         * lib/physmem.c: Likewise.
80827         * lib/physmem.h: Likewise.
80828         * lib/pipe-safer.c: Likewise.
80829         * lib/pipe.c: Likewise.
80830         * lib/pipe.h: Likewise.
80831         * lib/posixtm.c: Likewise.
80832         * lib/posixtm.h: Likewise.
80833         * lib/posixver.c: Likewise.
80834         * lib/printf-frexp.c: Likewise.
80835         * lib/printf-frexp.h: Likewise.
80836         * lib/printf-frexpl.c: Likewise.
80837         * lib/printf-frexpl.h: Likewise.
80838         * lib/printf.c: Likewise.
80839         * lib/progname.c: Likewise.
80840         * lib/progname.h: Likewise.
80841         * lib/progreloc.c: Likewise.
80842         * lib/putenv.c: Likewise.
80843         * lib/quote.c: Likewise.
80844         * lib/quote.h: Likewise.
80845         * lib/quotearg.c: Likewise.
80846         * lib/quotearg.h: Likewise.
80847         * lib/raise.c: Likewise.
80848         * lib/readline.c: Likewise.
80849         * lib/readline.h: Likewise.
80850         * lib/readlink.c: Likewise.
80851         * lib/readtokens.c: Likewise.
80852         * lib/readtokens.h: Likewise.
80853         * lib/readtokens0.c: Likewise.
80854         * lib/readtokens0.h: Likewise.
80855         * lib/readutmp.c: Likewise.
80856         * lib/readutmp.h: Likewise.
80857         * lib/realloc.c: Likewise.
80858         * lib/relocwrapper.c: Likewise.
80859         * lib/rename-dest-slash.c: Likewise.
80860         * lib/rename.c: Likewise.
80861         * lib/rmdir.c: Likewise.
80862         * lib/rpmatch.c: Likewise.
80863         * lib/safe-read.c: Likewise.
80864         * lib/safe-read.h: Likewise.
80865         * lib/safe-write.c: Likewise.
80866         * lib/safe-write.h: Likewise.
80867         * lib/same-inode.h: Likewise.
80868         * lib/same.c: Likewise.
80869         * lib/same.h: Likewise.
80870         * lib/save-cwd.c: Likewise.
80871         * lib/save-cwd.h: Likewise.
80872         * lib/savedir.c: Likewise.
80873         * lib/savedir.h: Likewise.
80874         * lib/savewd.c: Likewise.
80875         * lib/savewd.h: Likewise.
80876         * lib/search.in.h: Likewise.
80877         * lib/setenv.c: Likewise.
80878         * lib/setenv.h: Likewise.
80879         * lib/settime.c: Likewise.
80880         * lib/sh-quote.c: Likewise.
80881         * lib/sh-quote.h: Likewise.
80882         * lib/sig2str.c: Likewise.
80883         * lib/sig2str.h: Likewise.
80884         * lib/signal.in.h: Likewise.
80885         * lib/signbitd.c: Likewise.
80886         * lib/signbitf.c: Likewise.
80887         * lib/signbitl.c: Likewise.
80888         * lib/sigprocmask.c: Likewise.
80889         * lib/sincosl.c: Likewise.
80890         * lib/sleep.c: Likewise.
80891         * lib/sprintf.c: Likewise.
80892         * lib/sqrtl.c: Likewise.
80893         * lib/stat-time.h: Likewise.
80894         * lib/stdio--.h: Likewise.
80895         * lib/stdio-safer.h: Likewise.
80896         * lib/stdlib--.h: Likewise.
80897         * lib/stdlib-safer.h: Likewise.
80898         * lib/stdlib.in.h: Likewise.
80899         * lib/stpcpy.c: Likewise.
80900         * lib/stpncpy.c: Likewise.
80901         * lib/strchrnul.c: Likewise.
80902         * lib/strcspn.c: Likewise.
80903         * lib/strerror.c: Likewise.
80904         * lib/strftime.c: Likewise.
80905         * lib/strftime.h: Likewise.
80906         * lib/striconveh.c: Likewise.
80907         * lib/striconveh.h: Likewise.
80908         * lib/striconveha.c: Likewise.
80909         * lib/striconveha.h: Likewise.
80910         * lib/stripslash.c: Likewise.
80911         * lib/strnlen1.c: Likewise.
80912         * lib/strnlen1.h: Likewise.
80913         * lib/strtod.c: Likewise.
80914         * lib/strtoimax.c: Likewise.
80915         * lib/strtok_r.c: Likewise.
80916         * lib/strtol.c: Likewise.
80917         * lib/strtoll.c: Likewise.
80918         * lib/strtoul.c: Likewise.
80919         * lib/strtoull.c: Likewise.
80920         * lib/sysexits.in.h: Likewise.
80921         * lib/tempname.c: Likewise.
80922         * lib/tempname.h: Likewise.
80923         * lib/timespec.h: Likewise.
80924         * lib/tls.c: Likewise.
80925         * lib/tls.h: Likewise.
80926         * lib/tmpdir.c: Likewise.
80927         * lib/tmpdir.h: Likewise.
80928         * lib/tmpfile-safer.c: Likewise.
80929         * lib/tmpfile.c: Likewise.
80930         * lib/trigl.c: Likewise.
80931         * lib/trigl.h: Likewise.
80932         * lib/trim.c: Likewise.
80933         * lib/trim.h: Likewise.
80934         * lib/trunc.c: Likewise.
80935         * lib/truncf.c: Likewise.
80936         * lib/truncl.c: Likewise.
80937         * lib/tsearch.c: Likewise.
80938         * lib/unicodeio.c: Likewise.
80939         * lib/unicodeio.h: Likewise.
80940         * lib/unistd--.h: Likewise.
80941         * lib/unistd-safer.h: Likewise.
80942         * lib/unistdio/ulc-fprintf.c: Likewise.
80943         * lib/unistdio/ulc-vfprintf.c: Likewise.
80944         * lib/unlinkdir.c: Likewise.
80945         * lib/unlinkdir.h: Likewise.
80946         * lib/unlocked-io.h: Likewise.
80947         * lib/unsetenv.c: Likewise.
80948         * lib/userspec.c: Likewise.
80949         * lib/utime.c: Likewise.
80950         * lib/utimecmp.c: Likewise.
80951         * lib/utimecmp.h: Likewise.
80952         * lib/utimens.c: Likewise.
80953         * lib/verify.h: Likewise.
80954         * lib/verror.c: Likewise.
80955         * lib/verror.h: Likewise.
80956         * lib/version-etc-fsf.c: Likewise.
80957         * lib/version-etc.c: Likewise.
80958         * lib/version-etc.h: Likewise.
80959         * lib/vfprintf.c: Likewise.
80960         * lib/vprintf.c: Likewise.
80961         * lib/vsprintf.c: Likewise.
80962         * lib/w32spawn.h: Likewise.
80963         * lib/wait-process.c: Likewise.
80964         * lib/wait-process.h: Likewise.
80965         * lib/wcwidth.c: Likewise.
80966         * lib/write-any-file.c: Likewise.
80967         * lib/xalloc-die.c: Likewise.
80968         * lib/xalloc.h: Likewise.
80969         * lib/xasprintf.c: Likewise.
80970         * lib/xgetcwd.c: Likewise.
80971         * lib/xgetcwd.h: Likewise.
80972         * lib/xgetdomainname.c: Likewise.
80973         * lib/xgetdomainname.h: Likewise.
80974         * lib/xgethostname.c: Likewise.
80975         * lib/xmalloc.c: Likewise.
80976         * lib/xmalloca.c: Likewise.
80977         * lib/xmalloca.h: Likewise.
80978         * lib/xmemcoll.c: Likewise.
80979         * lib/xnanosleep.c: Likewise.
80980         * lib/xreadlink.c: Likewise.
80981         * lib/xreadlink.h: Likewise.
80982         * lib/xsetenv.c: Likewise.
80983         * lib/xsetenv.h: Likewise.
80984         * lib/xstriconv.c: Likewise.
80985         * lib/xstriconv.h: Likewise.
80986         * lib/xstrndup.c: Likewise.
80987         * lib/xstrndup.h: Likewise.
80988         * lib/xstrtod.c: Likewise.
80989         * lib/xstrtod.h: Likewise.
80990         * lib/xstrtol-error.c: Likewise.
80991         * lib/xstrtol.c: Likewise.
80992         * lib/xstrtol.h: Likewise.
80993         * lib/xtime.h: Likewise.
80994         * lib/xvasprintf.c: Likewise.
80995         * lib/xvasprintf.h: Likewise.
80996         * lib/yesno.c: Likewise.
80997         * lib/yesno.h: Likewise.
80998         * posix-modules: Likewise.
80999         * tests/test-alloca-opt.c: Likewise.
81000         * tests/test-arcfour.c: Likewise.
81001         * tests/test-arctwo.c: Likewise.
81002         * tests/test-argmatch.c: Likewise.
81003         * tests/test-argp-2.sh: Likewise.
81004         * tests/test-argp.c: Likewise.
81005         * tests/test-arpa_inet.c: Likewise.
81006         * tests/test-array_list.c: Likewise.
81007         * tests/test-array_oset.c: Likewise.
81008         * tests/test-atexit.c: Likewise.
81009         * tests/test-avltree_list.c: Likewise.
81010         * tests/test-avltree_oset.c: Likewise.
81011         * tests/test-avltreehash_list.c: Likewise.
81012         * tests/test-base64.c: Likewise.
81013         * tests/test-binary-io.c: Likewise.
81014         * tests/test-byteswap.c: Likewise.
81015         * tests/test-c-ctype.c: Likewise.
81016         * tests/test-c-strcasecmp.c: Likewise.
81017         * tests/test-c-strcasestr.c: Likewise.
81018         * tests/test-c-strncasecmp.c: Likewise.
81019         * tests/test-c-strstr.c: Likewise.
81020         * tests/test-canonicalize-lgpl.c: Likewise.
81021         * tests/test-canonicalize.c: Likewise.
81022         * tests/test-carray_list.c: Likewise.
81023         * tests/test-ceilf.c: Likewise.
81024         * tests/test-ceill.c: Likewise.
81025         * tests/test-count-one-bits.c: Likewise.
81026         * tests/test-crc.c: Likewise.
81027         * tests/test-dirname.c: Likewise.
81028         * tests/test-fbufmode.c: Likewise.
81029         * tests/test-fcntl.c: Likewise.
81030         * tests/test-fflush.c: Likewise.
81031         * tests/test-floorf.c: Likewise.
81032         * tests/test-floorl.c: Likewise.
81033         * tests/test-fopen.c: Likewise.
81034         * tests/test-fprintf-posix.c: Likewise.
81035         * tests/test-fprintf-posix.h: Likewise.
81036         * tests/test-fpurge.c: Likewise.
81037         * tests/test-freadable.c: Likewise.
81038         * tests/test-freadahead.c: Likewise.
81039         * tests/test-freading.c: Likewise.
81040         * tests/test-freopen.c: Likewise.
81041         * tests/test-frexp.c: Likewise.
81042         * tests/test-frexpl.c: Likewise.
81043         * tests/test-fseek.c: Likewise.
81044         * tests/test-fseeko.c: Likewise.
81045         * tests/test-fseterr.c: Likewise.
81046         * tests/test-fstrcmp.c: Likewise.
81047         * tests/test-ftell.c: Likewise.
81048         * tests/test-ftello.c: Likewise.
81049         * tests/test-fwritable.c: Likewise.
81050         * tests/test-fwriting.c: Likewise.
81051         * tests/test-getaddrinfo.c: Likewise.
81052         * tests/test-getpass.c: Likewise.
81053         * tests/test-gettimeofday.c: Likewise.
81054         * tests/test-hmac-md5.c: Likewise.
81055         * tests/test-hmac-sha1.c: Likewise.
81056         * tests/test-iconv.c: Likewise.
81057         * tests/test-iconvme.c: Likewise.
81058         * tests/test-inttypes.c: Likewise.
81059         * tests/test-isnan.c: Likewise.
81060         * tests/test-isnanf.c: Likewise.
81061         * tests/test-isnanl-nolibm.c: Likewise.
81062         * tests/test-isnanl.c: Likewise.
81063         * tests/test-isnanl.h: Likewise.
81064         * tests/test-ldexpl.c: Likewise.
81065         * tests/test-linked_list.c: Likewise.
81066         * tests/test-linkedhash_list.c: Likewise.
81067         * tests/test-locale.c: Likewise.
81068         * tests/test-localename.c: Likewise.
81069         * tests/test-lock.c: Likewise.
81070         * tests/test-lseek.c: Likewise.
81071         * tests/test-malloca.c: Likewise.
81072         * tests/test-math.c: Likewise.
81073         * tests/test-mbscasecmp.c: Likewise.
81074         * tests/test-mbscasestr1.c: Likewise.
81075         * tests/test-mbscasestr2.c: Likewise.
81076         * tests/test-mbscasestr3.c: Likewise.
81077         * tests/test-mbscasestr4.c: Likewise.
81078         * tests/test-mbschr.c: Likewise.
81079         * tests/test-mbscspn.c: Likewise.
81080         * tests/test-mbsncasecmp.c: Likewise.
81081         * tests/test-mbspbrk.c: Likewise.
81082         * tests/test-mbspcasecmp.c: Likewise.
81083         * tests/test-mbsrchr.c: Likewise.
81084         * tests/test-mbsspn.c: Likewise.
81085         * tests/test-mbsstr1.c: Likewise.
81086         * tests/test-mbsstr2.c: Likewise.
81087         * tests/test-mbsstr3.c: Likewise.
81088         * tests/test-md5.c: Likewise.
81089         * tests/test-memmem.c: Likewise.
81090         * tests/test-netinet_in.c: Likewise.
81091         * tests/test-open.c: Likewise.
81092         * tests/test-printf-frexp.c: Likewise.
81093         * tests/test-printf-frexpl.c: Likewise.
81094         * tests/test-printf-posix.c: Likewise.
81095         * tests/test-printf-posix.h: Likewise.
81096         * tests/test-rbtree_list.c: Likewise.
81097         * tests/test-rbtree_oset.c: Likewise.
81098         * tests/test-rbtreehash_list.c: Likewise.
81099         * tests/test-read-file.c: Likewise.
81100         * tests/test-rijndael.c: Likewise.
81101         * tests/test-search.c: Likewise.
81102         * tests/test-signbit.c: Likewise.
81103         * tests/test-sleep.c: Likewise.
81104         * tests/test-snprintf-posix.c: Likewise.
81105         * tests/test-snprintf-posix.h: Likewise.
81106         * tests/test-snprintf.c: Likewise.
81107         * tests/test-sprintf-posix.c: Likewise.
81108         * tests/test-sprintf-posix.h: Likewise.
81109         * tests/test-stat-time.c: Likewise.
81110         * tests/test-stdbool.c: Likewise.
81111         * tests/test-stdint.c: Likewise.
81112         * tests/test-stdio.c: Likewise.
81113         * tests/test-stdlib.c: Likewise.
81114         * tests/test-stpncpy.c: Likewise.
81115         * tests/test-strcasestr.c: Likewise.
81116         * tests/test-striconv.c: Likewise.
81117         * tests/test-striconveh.c: Likewise.
81118         * tests/test-striconveha.c: Likewise.
81119         * tests/test-string.c: Likewise.
81120         * tests/test-sys_select.c: Likewise.
81121         * tests/test-sys_socket.c: Likewise.
81122         * tests/test-sys_stat.c: Likewise.
81123         * tests/test-sys_time.c: Likewise.
81124         * tests/test-sysexits.c: Likewise.
81125         * tests/test-time.c: Likewise.
81126         * tests/test-tls.c: Likewise.
81127         * tests/test-trunc.c: Likewise.
81128         * tests/test-truncf.c: Likewise.
81129         * tests/test-truncl.c: Likewise.
81130         * tests/test-unistd.c: Likewise.
81131         * tests/test-vasnprintf-posix.c: Likewise.
81132         * tests/test-vasnprintf-posix2.c: Likewise.
81133         * tests/test-vasnprintf.c: Likewise.
81134         * tests/test-vasprintf-posix.c: Likewise.
81135         * tests/test-vasprintf.c: Likewise.
81136         * tests/test-verify.c: Likewise.
81137         * tests/test-vfprintf-posix.c: Likewise.
81138         * tests/test-vprintf-posix.c: Likewise.
81139         * tests/test-vsnprintf-posix.c: Likewise.
81140         * tests/test-vsnprintf.c: Likewise.
81141         * tests/test-vsprintf-posix.c: Likewise.
81142         * tests/test-wchar.c: Likewise.
81143         * tests/test-wctype.c: Likewise.
81144         * tests/test-wcwidth.c: Likewise.
81145         * tests/test-xstrtol.c: Likewise.
81146         * tests/test-xvasprintf.c: Likewise.
81147         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
81148         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
81149         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
81150         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
81151         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
81152         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
81153         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
81154         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
81155         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
81156         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
81157         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
81158         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
81159         * tests/uniname/test-uninames.c: Likewise.
81160         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
81161         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
81162         * tests/unistdio/test-u16-printf1.h: Likewise.
81163         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
81164         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
81165         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
81166         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
81167         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
81168         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
81169         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
81170         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
81171         * tests/unistdio/test-u32-printf1.h: Likewise.
81172         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
81173         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
81174         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
81175         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
81176         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
81177         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
81178         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
81179         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
81180         * tests/unistdio/test-u8-printf1.h: Likewise.
81181         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
81182         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
81183         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
81184         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
81185         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
81186         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
81187         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
81188         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
81189         * tests/unistdio/test-ulc-printf1.h: Likewise.
81190         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
81191         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
81192         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
81193         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
81194         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
81195         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
81196         * tests/uniwidth/test-u16-strwidth.c: Likewise.
81197         * tests/uniwidth/test-u16-width.c: Likewise.
81198         * tests/uniwidth/test-u32-strwidth.c: Likewise.
81199         * tests/uniwidth/test-u32-width.c: Likewise.
81200         * tests/uniwidth/test-u8-strwidth.c: Likewise.
81201         * tests/uniwidth/test-u8-width.c: Likewise.
81202         * tests/uniwidth/test-uc_width.c: Likewise.
81203         * config/srclist-update: Likewise.
81204         (fixlicense): Update to GPLv3+.
81206         Change copyright notice from LGPLv2.1+ to LGPLv3+.
81207         * tests/test-tsearch.c: Change copyright notice.
81209         Change copyright notice from LGPLv2.0+ to LGPLv3+.
81210         * lib/c-strcaseeq.h: Change copyright notice.
81211         * lib/streq.h: Likewise.
81212         * lib/uniconv.h: Likewise.
81213         * lib/uniconv/u-conv-from-enc.h: Likewise.
81214         * lib/uniconv/u-conv-to-enc.h: Likewise.
81215         * lib/uniconv/u-strconv-from-enc.h: Likewise.
81216         * lib/uniconv/u-strconv-to-enc.h: Likewise.
81217         * lib/uniconv/u16-conv-from-enc.c: Likewise.
81218         * lib/uniconv/u16-conv-to-enc.c: Likewise.
81219         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
81220         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
81221         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
81222         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
81223         * lib/uniconv/u32-conv-from-enc.c: Likewise.
81224         * lib/uniconv/u32-conv-to-enc.c: Likewise.
81225         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
81226         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
81227         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
81228         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
81229         * lib/uniconv/u8-conv-from-enc.c: Likewise.
81230         * lib/uniconv/u8-conv-to-enc.c: Likewise.
81231         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
81232         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
81233         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
81234         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
81235         * lib/uniname.h: Likewise.
81236         * lib/uniname/uniname.c: Likewise.
81237         * lib/unistdio.h: Likewise.
81238         * lib/unistdio/u-asnprintf.h: Likewise.
81239         * lib/unistdio/u-asprintf.h: Likewise.
81240         * lib/unistdio/u-printf-args.c: Likewise.
81241         * lib/unistdio/u-printf-args.h: Likewise.
81242         * lib/unistdio/u-printf-parse.h: Likewise.
81243         * lib/unistdio/u-snprintf.h: Likewise.
81244         * lib/unistdio/u-sprintf.h: Likewise.
81245         * lib/unistdio/u-vasprintf.h: Likewise.
81246         * lib/unistdio/u-vsnprintf.h: Likewise.
81247         * lib/unistdio/u-vsprintf.h: Likewise.
81248         * lib/unistdio/u16-asnprintf.c: Likewise.
81249         * lib/unistdio/u16-asprintf.c: Likewise.
81250         * lib/unistdio/u16-printf-parse.c: Likewise.
81251         * lib/unistdio/u16-snprintf.c: Likewise.
81252         * lib/unistdio/u16-sprintf.c: Likewise.
81253         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
81254         * lib/unistdio/u16-u16-asprintf.c: Likewise.
81255         * lib/unistdio/u16-u16-snprintf.c: Likewise.
81256         * lib/unistdio/u16-u16-sprintf.c: Likewise.
81257         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
81258         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
81259         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
81260         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
81261         * lib/unistdio/u16-vasnprintf.c: Likewise.
81262         * lib/unistdio/u16-vasprintf.c: Likewise.
81263         * lib/unistdio/u16-vsnprintf.c: Likewise.
81264         * lib/unistdio/u16-vsprintf.c: Likewise.
81265         * lib/unistdio/u32-asnprintf.c: Likewise.
81266         * lib/unistdio/u32-asprintf.c: Likewise.
81267         * lib/unistdio/u32-printf-parse.c: Likewise.
81268         * lib/unistdio/u32-snprintf.c: Likewise.
81269         * lib/unistdio/u32-sprintf.c: Likewise.
81270         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
81271         * lib/unistdio/u32-u32-asprintf.c: Likewise.
81272         * lib/unistdio/u32-u32-snprintf.c: Likewise.
81273         * lib/unistdio/u32-u32-sprintf.c: Likewise.
81274         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
81275         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
81276         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
81277         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
81278         * lib/unistdio/u32-vasnprintf.c: Likewise.
81279         * lib/unistdio/u32-vasprintf.c: Likewise.
81280         * lib/unistdio/u32-vsnprintf.c: Likewise.
81281         * lib/unistdio/u32-vsprintf.c: Likewise.
81282         * lib/unistdio/u8-asnprintf.c: Likewise.
81283         * lib/unistdio/u8-asprintf.c: Likewise.
81284         * lib/unistdio/u8-printf-parse.c: Likewise.
81285         * lib/unistdio/u8-snprintf.c: Likewise.
81286         * lib/unistdio/u8-sprintf.c: Likewise.
81287         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
81288         * lib/unistdio/u8-u8-asprintf.c: Likewise.
81289         * lib/unistdio/u8-u8-snprintf.c: Likewise.
81290         * lib/unistdio/u8-u8-sprintf.c: Likewise.
81291         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
81292         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
81293         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
81294         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
81295         * lib/unistdio/u8-vasnprintf.c: Likewise.
81296         * lib/unistdio/u8-vasprintf.c: Likewise.
81297         * lib/unistdio/u8-vsnprintf.c: Likewise.
81298         * lib/unistdio/u8-vsprintf.c: Likewise.
81299         * lib/unistdio/ulc-asnprintf.c: Likewise.
81300         * lib/unistdio/ulc-asprintf.c: Likewise.
81301         * lib/unistdio/ulc-printf-parse.c: Likewise.
81302         * lib/unistdio/ulc-snprintf.c: Likewise.
81303         * lib/unistdio/ulc-sprintf.c: Likewise.
81304         * lib/unistdio/ulc-vasnprintf.c: Likewise.
81305         * lib/unistdio/ulc-vasprintf.c: Likewise.
81306         * lib/unistdio/ulc-vsnprintf.c: Likewise.
81307         * lib/unistdio/ulc-vsprintf.c: Likewise.
81308         * lib/unistr.h: Likewise.
81309         * lib/unistr/u-cpy-alloc.h: Likewise.
81310         * lib/unistr/u-cpy.h: Likewise.
81311         * lib/unistr/u-endswith.h: Likewise.
81312         * lib/unistr/u-move.h: Likewise.
81313         * lib/unistr/u-set.h: Likewise.
81314         * lib/unistr/u-startswith.h: Likewise.
81315         * lib/unistr/u-stpcpy.h: Likewise.
81316         * lib/unistr/u-stpncpy.h: Likewise.
81317         * lib/unistr/u-strcat.h: Likewise.
81318         * lib/unistr/u-strcpy.h: Likewise.
81319         * lib/unistr/u-strcspn.h: Likewise.
81320         * lib/unistr/u-strdup.h: Likewise.
81321         * lib/unistr/u-strlen.h: Likewise.
81322         * lib/unistr/u-strncat.h: Likewise.
81323         * lib/unistr/u-strncpy.h: Likewise.
81324         * lib/unistr/u-strnlen.h: Likewise.
81325         * lib/unistr/u-strpbrk.h: Likewise.
81326         * lib/unistr/u-strspn.h: Likewise.
81327         * lib/unistr/u-strstr.h: Likewise.
81328         * lib/unistr/u-strtok.h: Likewise.
81329         * lib/unistr/u16-check.c: Likewise.
81330         * lib/unistr/u16-chr.c: Likewise.
81331         * lib/unistr/u16-cmp.c: Likewise.
81332         * lib/unistr/u16-cpy-alloc.c: Likewise.
81333         * lib/unistr/u16-cpy.c: Likewise.
81334         * lib/unistr/u16-endswith.c: Likewise.
81335         * lib/unistr/u16-mblen.c: Likewise.
81336         * lib/unistr/u16-mbsnlen.c: Likewise.
81337         * lib/unistr/u16-mbtouc-aux.c: Likewise.
81338         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
81339         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
81340         * lib/unistr/u16-mbtouc.c: Likewise.
81341         * lib/unistr/u16-mbtoucr.c: Likewise.
81342         * lib/unistr/u16-move.c: Likewise.
81343         * lib/unistr/u16-next.c: Likewise.
81344         * lib/unistr/u16-prev.c: Likewise.
81345         * lib/unistr/u16-set.c: Likewise.
81346         * lib/unistr/u16-startswith.c: Likewise.
81347         * lib/unistr/u16-stpcpy.c: Likewise.
81348         * lib/unistr/u16-stpncpy.c: Likewise.
81349         * lib/unistr/u16-strcat.c: Likewise.
81350         * lib/unistr/u16-strchr.c: Likewise.
81351         * lib/unistr/u16-strcmp.c: Likewise.
81352         * lib/unistr/u16-strcpy.c: Likewise.
81353         * lib/unistr/u16-strcspn.c: Likewise.
81354         * lib/unistr/u16-strdup.c: Likewise.
81355         * lib/unistr/u16-strlen.c: Likewise.
81356         * lib/unistr/u16-strmblen.c: Likewise.
81357         * lib/unistr/u16-strmbtouc.c: Likewise.
81358         * lib/unistr/u16-strncat.c: Likewise.
81359         * lib/unistr/u16-strncmp.c: Likewise.
81360         * lib/unistr/u16-strncpy.c: Likewise.
81361         * lib/unistr/u16-strnlen.c: Likewise.
81362         * lib/unistr/u16-strpbrk.c: Likewise.
81363         * lib/unistr/u16-strrchr.c: Likewise.
81364         * lib/unistr/u16-strspn.c: Likewise.
81365         * lib/unistr/u16-strstr.c: Likewise.
81366         * lib/unistr/u16-strtok.c: Likewise.
81367         * lib/unistr/u16-to-u32.c: Likewise.
81368         * lib/unistr/u16-to-u8.c: Likewise.
81369         * lib/unistr/u16-uctomb-aux.c: Likewise.
81370         * lib/unistr/u16-uctomb.c: Likewise.
81371         * lib/unistr/u32-check.c: Likewise.
81372         * lib/unistr/u32-chr.c: Likewise.
81373         * lib/unistr/u32-cmp.c: Likewise.
81374         * lib/unistr/u32-cpy-alloc.c: Likewise.
81375         * lib/unistr/u32-cpy.c: Likewise.
81376         * lib/unistr/u32-endswith.c: Likewise.
81377         * lib/unistr/u32-mblen.c: Likewise.
81378         * lib/unistr/u32-mbsnlen.c: Likewise.
81379         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
81380         * lib/unistr/u32-mbtouc.c: Likewise.
81381         * lib/unistr/u32-mbtoucr.c: Likewise.
81382         * lib/unistr/u32-move.c: Likewise.
81383         * lib/unistr/u32-next.c: Likewise.
81384         * lib/unistr/u32-prev.c: Likewise.
81385         * lib/unistr/u32-set.c: Likewise.
81386         * lib/unistr/u32-startswith.c: Likewise.
81387         * lib/unistr/u32-stpcpy.c: Likewise.
81388         * lib/unistr/u32-stpncpy.c: Likewise.
81389         * lib/unistr/u32-strcat.c: Likewise.
81390         * lib/unistr/u32-strchr.c: Likewise.
81391         * lib/unistr/u32-strcmp.c: Likewise.
81392         * lib/unistr/u32-strcpy.c: Likewise.
81393         * lib/unistr/u32-strcspn.c: Likewise.
81394         * lib/unistr/u32-strdup.c: Likewise.
81395         * lib/unistr/u32-strlen.c: Likewise.
81396         * lib/unistr/u32-strmblen.c: Likewise.
81397         * lib/unistr/u32-strmbtouc.c: Likewise.
81398         * lib/unistr/u32-strncat.c: Likewise.
81399         * lib/unistr/u32-strncmp.c: Likewise.
81400         * lib/unistr/u32-strncpy.c: Likewise.
81401         * lib/unistr/u32-strnlen.c: Likewise.
81402         * lib/unistr/u32-strpbrk.c: Likewise.
81403         * lib/unistr/u32-strrchr.c: Likewise.
81404         * lib/unistr/u32-strspn.c: Likewise.
81405         * lib/unistr/u32-strstr.c: Likewise.
81406         * lib/unistr/u32-strtok.c: Likewise.
81407         * lib/unistr/u32-to-u16.c: Likewise.
81408         * lib/unistr/u32-to-u8.c: Likewise.
81409         * lib/unistr/u32-uctomb.c: Likewise.
81410         * lib/unistr/u8-check.c: Likewise.
81411         * lib/unistr/u8-chr.c: Likewise.
81412         * lib/unistr/u8-cmp.c: Likewise.
81413         * lib/unistr/u8-cpy-alloc.c: Likewise.
81414         * lib/unistr/u8-cpy.c: Likewise.
81415         * lib/unistr/u8-endswith.c: Likewise.
81416         * lib/unistr/u8-mblen.c: Likewise.
81417         * lib/unistr/u8-mbsnlen.c: Likewise.
81418         * lib/unistr/u8-mbtouc-aux.c: Likewise.
81419         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
81420         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
81421         * lib/unistr/u8-mbtouc.c: Likewise.
81422         * lib/unistr/u8-mbtoucr.c: Likewise.
81423         * lib/unistr/u8-move.c: Likewise.
81424         * lib/unistr/u8-next.c: Likewise.
81425         * lib/unistr/u8-prev.c: Likewise.
81426         * lib/unistr/u8-set.c: Likewise.
81427         * lib/unistr/u8-startswith.c: Likewise.
81428         * lib/unistr/u8-stpcpy.c: Likewise.
81429         * lib/unistr/u8-stpncpy.c: Likewise.
81430         * lib/unistr/u8-strcat.c: Likewise.
81431         * lib/unistr/u8-strchr.c: Likewise.
81432         * lib/unistr/u8-strcmp.c: Likewise.
81433         * lib/unistr/u8-strcpy.c: Likewise.
81434         * lib/unistr/u8-strcspn.c: Likewise.
81435         * lib/unistr/u8-strdup.c: Likewise.
81436         * lib/unistr/u8-strlen.c: Likewise.
81437         * lib/unistr/u8-strmblen.c: Likewise.
81438         * lib/unistr/u8-strmbtouc.c: Likewise.
81439         * lib/unistr/u8-strncat.c: Likewise.
81440         * lib/unistr/u8-strncmp.c: Likewise.
81441         * lib/unistr/u8-strncpy.c: Likewise.
81442         * lib/unistr/u8-strnlen.c: Likewise.
81443         * lib/unistr/u8-strpbrk.c: Likewise.
81444         * lib/unistr/u8-strrchr.c: Likewise.
81445         * lib/unistr/u8-strspn.c: Likewise.
81446         * lib/unistr/u8-strstr.c: Likewise.
81447         * lib/unistr/u8-strtok.c: Likewise.
81448         * lib/unistr/u8-to-u16.c: Likewise.
81449         * lib/unistr/u8-to-u32.c: Likewise.
81450         * lib/unistr/u8-uctomb-aux.c: Likewise.
81451         * lib/unistr/u8-uctomb.c: Likewise.
81452         * lib/unitypes.h: Likewise.
81453         * lib/uniwidth.h: Likewise.
81454         * lib/uniwidth/cjk.h: Likewise.
81455         * lib/uniwidth/u16-strwidth.c: Likewise.
81456         * lib/uniwidth/u16-width.c: Likewise.
81457         * lib/uniwidth/u32-strwidth.c: Likewise.
81458         * lib/uniwidth/u32-width.c: Likewise.
81459         * lib/uniwidth/u8-strwidth.c: Likewise.
81460         * lib/uniwidth/u8-width.c: Likewise.
81461         * lib/uniwidth/width.c: Likewise.
81463 2007-10-07  Bruno Haible  <bruno@clisp.org>
81465         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
81466         The file is still under LGPL (see modules/inttypes).
81468 2007-10-06  Bruno Haible  <bruno@clisp.org>
81470         * modules/trunc (Dependencies): Add 'extensions'.
81471         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
81472         Reported by Ben Pfaff <blp@gnu.org>.
81474 2007-10-06  Bruno Haible  <bruno@clisp.org>
81476         * modules/freopen-tests: New file.
81477         * tests/test-freopen.c: New file.
81479         * modules/fopen-tests: New file.
81480         * tests/test-fopen.c: New file.
81482         * modules/fopen: New file.
81483         * lib/fopen.c: New file.
81484         * m4/fopen.m4: New file.
81485         * modules/freopen: New file.
81486         * lib/freopen.c: New file.
81487         * m4/freopen.m4: New file.
81488         * lib/stdio.in.h (fopen, freopen): New declarations.
81489         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
81490         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
81491         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
81492         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
81493         * doc/functions/fopen.texi: Mention the 'fopen' module.
81494         * doc/functions/freopen.texi: Mention the 'freopen' module.
81496 2007-10-06  Bruno Haible  <bruno@clisp.org>
81498         * modules/open-tests: New file.
81499         * tests/test-open.c: New file.
81501         * modules/open: New file.
81502         * lib/open.c: New file.
81503         * m4/open.m4: New file.
81504         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
81505         lib/open.c does.
81506         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
81507         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
81508         macros.
81509         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
81510         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
81511         REPLACE_OPEN.
81512         * doc/functions/open.texi: Mention the 'open' module.
81514 2007-10-04  Bruno Haible  <bruno@clisp.org>
81516         * modules/ceill-tests: New file.
81517         * tests/test-ceill.c: New file.
81519         * modules/ceill: New file.
81520         * lib/ceill.c: Replace entire file.
81521         * m4/ceill.m4: New file.
81522         * lib/math.in.h (ceill): Replace declaration.
81523         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
81524         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
81525         * doc/functions/ceill.texi: Mention the 'ceill' module.
81526         * modules/mathl (Files): Remove lib/ceill.c.
81527         (Depends-on): Add ceill.
81529 2007-10-04  Bruno Haible  <bruno@clisp.org>
81531         * modules/ceilf-tests: New file.
81532         * tests/test-ceilf.c: New file.
81534         * modules/ceilf: New file.
81535         * lib/ceil.c: New file.
81536         * lib/ceilf.c: New file.
81537         * m4/ceilf.m4: New file.
81538         * lib/math.in.h (ceilf): New declaration.
81539         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
81540         HAVE_DECL_CEILF.
81541         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
81542         HAVE_DECL_CEILF.
81543         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
81545 2007-10-04  Bruno Haible  <bruno@clisp.org>
81547         * modules/floorl-tests: New file.
81548         * tests/test-floorl.c: New file.
81550         * modules/floorl: New file.
81551         * lib/floorl.c: Replace entire file.
81552         * m4/floorl.m4: New file.
81553         * lib/math.in.h (floorl): Replace declaration.
81554         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
81555         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
81556         * doc/functions/floorl.texi: Mention the 'floorl' module.
81557         * modules/mathl (Files): Remove lib/floorl.c.
81558         (Depends-on): Add floorl.
81560 2007-10-04  Bruno Haible  <bruno@clisp.org>
81562         * modules/floorf-tests: New file.
81563         * tests/test-floorf.c: New file.
81565         * modules/floorf: New file.
81566         * lib/floor.c: New file.
81567         * lib/floorf.c: New file.
81568         * m4/floorf.m4: New file.
81569         * lib/math.in.h (floorf): New declaration.
81570         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
81571         HAVE_DECL_FLOORF.
81572         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
81573         HAVE_DECL_FLOORF.
81574         * doc/functions/floorf.texi: Mention the 'floorf' module.
81576 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
81577             Bruno Haible  <bruno@clisp.org>
81579         Advertise for the Git server instead of the CVS server.
81580         * doc/gnulib-intro.texi (Steady Development): Mention the Git
81581         repository instead of the CVS one.
81582         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
81583         about all VCS systems generically.
81584         * doc/gnulib.texi (Introduction): Capitalize `Git'.
81586 2007-10-04  Bruno Haible  <bruno@clisp.org>
81588         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
81589         means.
81590         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
81592 2007-10-04  Bruno Haible  <bruno@clisp.org>
81594         * modules/truncl-tests: New file.
81595         * tests/test-truncl.c: New file.
81597         * modules/truncl: New file.
81598         * lib/truncl.c: New file.
81599         * m4/truncl.m4: New file.
81600         * lib/math.in.h (truncl): New declaration.
81601         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
81602         HAVE_DECL_TRUNCL.
81603         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
81604         HAVE_DECL_TRUNCL.
81605         * doc/functions/truncl.texi: Mention the 'truncl' module.
81607 2007-10-04  Bruno Haible  <bruno@clisp.org>
81609         * modules/truncf-tests: New file.
81610         * tests/test-truncf.c: New file.
81612         * modules/truncf: New file.
81613         * lib/trunc.c: Make paramerizable through USE_* macros.
81614         * lib/truncf.c: New file.
81615         * m4/truncf.m4: New file.
81616         * lib/math.in.h (truncf): New declaration.
81617         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
81618         HAVE_DECL_TRUNCF.
81619         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
81620         HAVE_DECL_TRUNCF.
81621         * doc/functions/truncf.texi: Mention the 'truncf' module.
81623 2007-10-03  Bruno Haible  <bruno@clisp.org>
81625         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
81626         augmentation also for tests modules.
81627         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
81628         * modules/atexit-tests (Makefile.am): Likewise.
81629         * modules/binary-io-tests (Makefile.am): Likewise.
81630         * modules/c-strcase-tests (Makefile.am): Likewise.
81631         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
81632         * modules/canonicalize-tests (Makefile.am): Likewise.
81633         * modules/closein-tests (Makefile.am): Likewise.
81634         * modules/fprintf-posix-tests (Makefile.am): Likewise.
81635         * modules/freadahead-tests (Makefile.am): Likewise.
81636         * modules/fseek-tests (Makefile.am): Likewise.
81637         * modules/fseeko-tests (Makefile.am): Likewise.
81638         * modules/ftell-tests (Makefile.am): Likewise.
81639         * modules/ftello-tests (Makefile.am): Likewise.
81640         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
81641         * modules/isnanl-tests (Makefile.am): Likewise.
81642         * modules/lseek-tests (Makefile.am): Likewise.
81643         * modules/mbscasecmp-tests (Makefile.am): Likewise.
81644         * modules/mbscasestr-tests (Makefile.am): Likewise.
81645         * modules/mbschr-tests (Makefile.am): Likewise.
81646         * modules/mbscspn-tests (Makefile.am): Likewise.
81647         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
81648         * modules/mbspbrk-tests (Makefile.am): Likewise.
81649         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
81650         * modules/mbsrchr-tests (Makefile.am): Likewise.
81651         * modules/mbsspn-tests (Makefile.am): Likewise.
81652         * modules/mbsstr-tests (Makefile.am): Likewise.
81653         * modules/printf-posix-tests (Makefile.am): Likewise.
81654         * modules/snprintf-posix-tests (Makefile.am): Likewise.
81655         * modules/sprintf-posix-tests (Makefile.am): Likewise.
81656         * modules/tsearch-tests (Makefile.am): Likewise.
81657         * modules/uniname/uniname-tests (Makefile.am): Likewise.
81658         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
81659         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
81660         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
81661         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
81662         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
81663         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
81664         * modules/vprintf-posix-tests (Makefile.am): Likewise.
81665         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
81666         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
81667         * modules/xstrtoimax-tests (Makefile.am): Likewise.
81668         * modules/xstrtol-tests (Makefile.am): Likewise.
81669         * modules/xstrtoumax-tests (Makefile.am): Likewise.
81670         * modules/yesno-tests (Makefile.am): Likewise.
81672 2007-10-03  Bruno Haible  <bruno@clisp.org>
81674         * modules/trunc-tests: New file.
81675         * tests/test-trunc.c: New file.
81677         * modules/trunc: New file.
81678         * lib/trunc.c: New file.
81679         * m4/trunc.m4: New file.
81680         * lib/math.in.h (trunc): New declaration.
81681         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
81682         HAVE_DECL_TRUNC.
81683         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
81684         HAVE_DECL_TRUNC.
81685         * doc/functions/trunc.texi: Mention the 'trunc' module.
81687 2007-10-03  Bruno Haible  <bruno@clisp.org>
81689         * tests/test-fpending.c: New file, mostly copied
81690         from coreutils/lib/t-fpending.c.
81691         * modules/fpending-tests: New file.
81693 2007-10-03  Bruno Haible  <bruno@clisp.org>
81695         Port the stdio extensions to QNX (untested).
81696         * lib/fseterr.c (fseterr): Add support for QNX.
81697         * lib/fbufmode.c (fbufmode): Likewise.
81698         * lib/freadable.c (freadable): Likewise.
81699         * lib/fwritable.c (fwritable): Likewise.
81700         * lib/freading.c (freading): Likewise.
81701         * lib/fwriting.c (fwriting): Likewise.
81702         * lib/freadahead.c (freadahed): Likewise.
81703         * lib/fpurge.c (fpurge): Likewise.
81704         * lib/fseeko.c (rpl_fseeko): Likewise.
81706 2007-10-03  Bruno Haible  <bruno@clisp.org>
81707             Jim Meyering  <jim@meyering.net>
81708             Eric Blake  <ebb9@byu.net>
81710         * doc/relocatable.texi: Use @command instead of @program.
81712 2007-10-02  Jim Meyering  <jim@meyering.net>
81714         Perform one more "_.h" -> ".in.h" substitution.
81715         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
81716         instead of unistd_.h here, too.
81718 2007-10-01  Bruno Haible  <bruno@clisp.org>
81720         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
81721         Needed for the alloca-opt module.
81723 2007-09-30  Bruno Haible  <bruno@clisp.org>
81725         * lib/alloca.in.h: Renamed from lib/alloca_.h.
81726         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
81727         alloca_.h.
81728         * lib/argz.in.h: Renamed from lib/argz_.h.
81729         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
81730         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
81731         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
81732         byteswap_.h.
81733         * lib/dirent.in.h: Renamed from lib/dirent_.h.
81734         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
81735         dirent_.h.
81736         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
81737         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
81738         fcntl_.h.
81739         * lib/float.in.h: Renamed from lib/float_.h.
81740         * modules/float (Files, Makefile.am): Use float.in.h instead of
81741         float_.h.
81742         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
81743         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
81744         fnmatch_.h.
81745         * lib/getopt.in.h: Renamed from lib/getopt_.h.
81746         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
81747         getopt_.h.
81748         * lib/glob.in.h: Renamed from lib/glob_.h.
81749         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
81750         * lib/iconv.in.h: Renamed from lib/iconv_.h.
81751         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
81752         iconv_.h.
81753         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
81754         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
81755         inttypes_.h.
81756         * lib/locale.in.h: Renamed from lib/locale_.h.
81757         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
81758         locale_.h.
81759         * lib/math.in.h: Renamed from lib/math_.h.
81760         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
81761         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
81762         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
81763         of netinet_in_.h. Add dependency.
81764         * lib/poll.in.h: Renamed from lib/poll_.h.
81765         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
81766         * lib/search.in.h: Renamed from lib/search_.h.
81767         * modules/search (Files, Makefile.am): Use search.in.h instead of
81768         search_.h.
81769         * lib/signal.in.h: Renamed from lib/signal_.h.
81770         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
81771         _signal.h.
81772         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
81773         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
81774         stdbool_.h.
81775         * lib/stdint.in.h: Renamed from lib/stdint_.h.
81776         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
81777         stdint_.h.
81778         * lib/stdio.in.h: Renamed from lib/stdio_.h.
81779         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
81780         stdio_.h.
81781         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
81782         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
81783         stdlib_.h.
81784         * lib/string.in.h: Renamed from lib/string_.h.
81785         * modules/string (Files, Makefile.am): Use string.in.h instead of
81786         string_.h.
81787         * doc/gnulib-tool.texi (Initial import): Update.
81788         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
81789         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
81790         of sys_select_.h. Add dependency.
81791         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
81792         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
81793         of sys_socket_.h.
81794         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
81795         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
81796         sys_stat_.h.
81797         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
81798         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
81799         sys_time_.h.
81800         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
81801         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
81802         sysexits_.h.
81803         * lib/time.in.h: Renamed from lib/time_.h.
81804         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
81805         * lib/unistd.in.h: Renamed from lib/unistd_.h.
81806         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
81807         unistd_.h.
81808         * lib/wchar.in.h: Renamed from lib/wchar_.h.
81809         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
81810         wchar_.h.
81811         * lib/wctype.in.h: Renamed from lib/wctype_.h.
81812         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
81813         wctype_.h.
81814         * build-aux/bootstrap (slurp): Update.
81815         * lib/.cppi-disable: Update.
81817 2007-09-30  Bruno Haible  <bruno@clisp.org>
81819         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
81820         Needed on BeOS.
81822 2007-09-30  Bruno Haible  <bruno@clisp.org>
81824         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
81826 2007-09-29  Bruno Haible  <bruno@clisp.org>
81828         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
81830 2007-09-29  Bruno Haible  <bruno@clisp.org>
81832         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
81833         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
81834         * build-aux/install-reloc: Compile also areadlink.c.
81835         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
81837 2007-09-29  Bruno Haible  <bruno@clisp.org>
81839         * gnulib-tool (func_emit_initmacro_done): Indentation.
81841 2007-09-29  Bruno Haible  <bruno@clisp.org>
81843         * README: Add CVS checkout update instructions.
81844         Info from Bob Proulx <bob@proulx.com>.
81846 2007-09-28  Eric Blake  <ebb9@byu.net>
81848         Provide move-if-change.
81849         * build-aux/move-if-change: New file, based on best practice
81850         rather than any canonical upstream location.
81852 2007-09-28  Jim Meyering  <jim@meyering.net>
81854         Fix canonicalize loop-detection corner case.
81855         Do not attempt to stat the symlink values stored via seen_triple.
81856         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
81857         on linux-2.6.18, (but not 2.6.22).
81858         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
81859         triple_compare.  The former compares dev,ino,filename, while the latter
81860         would actually stat dirname(filename) when dev and ino were equal.
81861         * lib/hash-triple.c: Install <string.h>.
81862         (STREQ): Define.
81863         (triple_compare_ino_str): New function.
81864         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
81866 2007-09-28  Eric Blake  <ebb9@byu.net>
81868         Enforce that AC_REPLACE_FUNCS files exist.
81869         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
81870         override check for typos.
81872         Fix test-closein on Solaris 10.
81873         * tests/test-closein.c (main): Don't assume stdin can be inherited
81874         closed on all systems.
81875         * tests/test-closein.sh: Likewise.
81876         Reported by Piotr Tarnowski.
81878 2007-09-28  Jim Meyering  <jim@meyering.net>
81880         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
81882 2007-09-27  Jim Meyering  <jim@meyering.net>
81884         canonicalize: Avoid a false-positive cycle failure.
81885         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
81886         Sort.  Remove cycle-check.
81887         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
81888         not cycle-check.h.
81889         (seen_triple): New function.
81890         (canonicalize_filename_mode): Use it instead of cycle-check.
81891         * tests/test-canonicalize.c: Add a test for this bug.
81892         * tests/test-canonicalize.sh: Set up and run the test.
81894         New module, file-set, from coreutils.
81895         * modules/file-set: Define it.
81896         * lib/file-set.c, lib/file-set.h: Implement.
81898         New module, hash-triple, from coreutils.
81899         * modules/hash-triple: Define it.
81900         * lib/hash-triple.c, lib/hash-triple.h: Implement.
81902 2007-09-25  Eric Blake  <ebb9@byu.net>
81904         Fix strerror on Interix.
81905         * lib/string_.h (strerror): Declare replacement.
81906         * doc/functions/strerror.texi (strerror): Document the Interix
81907         shortcoming.
81908         * modules/string (Makefile.am): Support new hooks.
81909         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
81910         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
81911         gl_FUNC_STRERROR_SEPARATE.
81912         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
81913         * lib/strerror.c (rpl_strerror): Provide replacement.
81914         * modules/strerror (Depends-on): Add string.
81915         (configure.ac): Detect use of module.
81916         * tests/test-strerror.c: New file.
81917         * modules/strerror-tests: New test module.
81918         * modules/argp (Depends-on): Add strerror.
81919         * modules/error (Depends-on): Likewise.
81920         Reported by Martin Koeppe.
81922 2007-09-24  Bruno Haible  <bruno@clisp.org>
81924         * README: Update git instructions.
81926 2007-09-24  Eric Blake  <ebb9@byu.net>
81928         Revert fpending breakage from 2007-09-08.
81929         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
81930         __fpending.c.
81932 2007-09-24  Jim Meyering  <jim@meyering.net>
81934         filenamecat.c: Add a test.
81935         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
81936         showing how the function works when DIR is the empty string.
81938 2007-09-21  Simon Josefsson  <simon@josefsson.org>
81940         * tests/test-canonicalize.sh: Turn on executable bit.
81942 2007-09-19  Eric Blake  <ebb9@byu.net>
81944         * README: Update CVS instructions.
81946 2007-09-18  Bruno Haible  <bruno@clisp.org>
81948         * modules/areadlink: New file.
81949         * lib/areadlink.h (areadlink): New declaration.
81950         * lib/areadlink.c: New file, based on lib/xreadlink.c.
81952 2007-09-17  Jim Meyering  <jim@meyering.net>
81954         * lib/savewd.c (ESTALE) [!defined]: Define.
81955         Reported to be required on Interix by Martin Koeppe.
81957 2007-09-17  Bruno Haible  <bruno@clisp.org>
81959         * gnulib-tool (func_version): Use $version.
81961 2007-09-16  Bruno Haible  <bruno@clisp.org>
81963         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
81964         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
81965         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
81966         Reported by Greg Schafer <gschafer@zip.com.au>.
81968 2007-09-15  Bruno Haible  <bruno@clisp.org>
81970         * gnulib-tool (sed): Try a little harder to make bash understand the
81971         alias.
81972         Reported by Bruce Korb <bruce.korb@gmail.com>.
81974 2007-09-13  Eric Blake  <ebb9@byu.net>
81976         * ChangeLog: Remove conflict markers.
81978 2007-09-13  Simon Josefsson  <simon@josefsson.org>
81980         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
81981         Reported by Bruno Haible <bruno@clisp.org>.
81983 2007-09-12  Bruno Haible  <bruno@clisp.org>
81985         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
81986         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
81987         is not defined.
81989 2007-09-12  Eric Blake  <ebb9@byu.net>
81991         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
81992         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
81993         Autoconf definition.
81994         * modules/euidaccess (Depends-on): Add extensions, for
81995         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
81996         * modules/fnmatch (Depends-on): Likewise.
81997         * modules/getaddrinfo (Depends-on): Likewise.
81998         * modules/getdelim (Depends-on): Likewise.
81999         * modules/getline (Depends-on): Likewise.
82000         * modules/getsubopt (Depends-on): Likewise.
82001         * modules/gettext (Depends-on): Likewise.
82002         * modules/group-member (Depends-on): Likewise.
82003         * modules/mbchar (Depends-on): Likewise.
82004         * modules/memmem (Depends-on): Likewise.
82005         * modules/mempcpy (Depends-on): Likewise.
82006         * modules/memrchr (Depends-on): Likewise.
82007         * modules/pagealign_alloc (Depends-on): Likewise.
82008         * modules/readutmp (Depends-on): Likewise.
82009         * modules/stpcpy (Depends-on): Likewise.
82010         * modules/stpncpy (Depends-on): Likewise.
82011         * modules/strchrnul (Depends-on): Likewise.
82012         * modules/strndup (Depends-on): Likewise.
82013         * modules/strsep (Depends-on): Likewise.
82014         * modules/strverscmp (Depends-on): Likewise.
82015         * modules/vasprintf (Depends-on): Likewise.
82016         * modules/wcwidth (Depends-on): Likewise.
82017         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
82018         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
82019         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
82020         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
82021         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
82022         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
82023         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
82024         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
82025         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
82026         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
82027         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
82028         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
82029         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
82030         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
82031         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
82032         * m4/readutmp.m4 (gl_READUTMP): Likewise.
82033         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
82034         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
82035         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
82036         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
82037         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
82038         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
82039         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
82040         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
82041         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
82042         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
82043         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
82044         so that lock.m4 can be used in gettext without extensions module.
82046 2007-09-11  Bruno Haible  <bruno@clisp.org>
82048         * m4/isc-posix.m4: Remove file.
82049         Suggested by Eric Blake.
82051 2007-09-11  Eric Blake  <ebb9@byu.net>
82053         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
82055 2007-09-10  Bruno Haible  <bruno@clisp.org>
82057         * posix-modules: Fix typo in error message.
82058         Reported by Matt <mkraai@beckman.com>.
82060 2007-09-09  Bruno Haible  <bruno@clisp.org>
82062         * doc/functions/getdelim.texi: Update list of platforms lacking the
82063         function.
82064         * doc/functions/getline.texi: Likewise.
82066 2007-09-09  Jim Meyering  <jim@meyering.net>
82068         * lib/hash.c (hash_initialize): Detect calloc failure.
82069         Reported by Bruno Haible.
82071 2007-09-09  Bruno Haible  <bruno@clisp.org>
82073         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
82074         malloc or realloc fails.
82076 2007-09-09  Bruno Haible  <bruno@clisp.org>
82078         * modules/getcwd (Depends-on): Add malloc-posix.
82079         * modules/glob (Depends-on): Likewise.
82080         * modules/putenv (Depends-on): Likewise.
82081         * modules/strdup (Depends-on): Likewise.
82082         * modules/getdelim (Depends-on): Add realloc-posix.
82083         * modules/read-file (Depends-on): Likewise.
82085 2007-09-09  Bruno Haible  <bruno@clisp.org>
82087         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
82088         (gl_FUNC_MALLOC_POSIX): Require it.
82089         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
82090         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
82091         * modules/realloc (Files): Add m4/malloc.m4.
82092         * modules/calloc (Files): Likewise.
82094 2007-09-09  Bruno Haible  <bruno@clisp.org>
82096         * modules/malloc-posix: New file.
82097         * modules/malloc (Depends-on): Add malloc-posix.
82098         * lib/malloc.c: Include errno.h.
82099         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
82100         and a POSIX-compatible malloc into a single function. Set ENOMEM
82101         when returning NULL.
82102         * m4/malloc.m4: New file.
82103         * doc/functions/malloc.texi: Mention the malloc-posix module.
82104         * lib/stdlib_.h (malloc): New declaration.
82105         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
82106         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
82107         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
82108         and HAVE_MALLOC_POSIX.
82110 2007-09-09  Bruno Haible  <bruno@clisp.org>
82112         * modules/realloc-posix: New file.
82113         * modules/realloc (Depends-on): Add realloc-posix.
82114         * lib/realloc.c: Include errno.h.
82115         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
82116         and a POSIX-compatible realloc into a single function. Set ENOMEM
82117         when returning NULL.
82118         * m4/realloc.m4: New file.
82119         * doc/functions/realloc.texi: Mention the realloc-posix module.
82120         * lib/stdlib_.h (realloc): New declaration.
82121         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
82122         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
82123         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
82124         and HAVE_REALLOC_POSIX.
82126 2007-09-09  Bruno Haible  <bruno@clisp.org>
82128         * modules/calloc-posix: New file.
82129         * modules/calloc (Depends-on): Add calloc-posix.
82130         * lib/calloc.c: Include errno.h.
82131         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
82132         and a POSIX-compatible calloc into a single function. Set ENOMEM
82133         when returning NULL.
82134         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
82135         * doc/functions/calloc.texi: Mention the calloc-posix module.
82136         * lib/stdlib_.h (calloc): New declaration.
82137         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
82138         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
82139         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
82140         and HAVE_CALLOC_POSIX.
82142 2007-09-09  Bruno Haible  <bruno@clisp.org>
82144         Allow for modules to show an arbitrary notice.
82145         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
82146         * gnulib-tool: New option --extract-notice.
82147         (func_usage): Document it.
82148         (sed_extract_prog): Update.
82149         (func_get_notice): New function.
82150         (func_modules_notice): New function.
82151         (func_import, func_create_testdir): Invoke it.
82152         Suggested by Jim Meyering.
82154 2007-09-09  Bruno Haible  <bruno@clisp.org>
82156         * gnulib-tool: New options --verbose, --quiet.
82157         (func_usage): Document them.
82158         (verbose): New variable.
82159         (func_execute_command): New function.
82160         (func_import): Don't show the module list and the file list if
82161         $verbose < 0.
82162         (func_create_testdir): Likewise. Use func_execute_command.
82163         (func_create_megatestdir): Use func_execute_command.
82165 2007-09-08  Bruno Haible  <bruno@clisp.org>
82167         * gnulib-tool (func_import): Prefer rsync over wget when available,
82168         for fetching the PO files.
82170 2007-09-08  Bruno Haible  <bruno@clisp.org>
82172         * posix-modules: New file. Portions copied from gnulib-tool.
82173         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
82175 2007-09-08  Jim Meyering  <jim@meyering.net>
82177         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
82178         * lib/fpending.h: Rename from __fpending.h.
82179         * lib/fpending.c: Rename from __fpending.c.
82180         Include "fpending.h", not "__fpending.h".
82181         * lib/__fpending.h, lib/__fpending.c: Remove files.
82182         * modules/fpending (Files): Reflect new file names.
82183         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
82185 2007-09-08  Bruno Haible  <bruno@clisp.org>
82187         * m4/inttypes-h.m4: Remove stub file.
82189 2007-09-07  Simon Josefsson  <simon@josefsson.org>
82191         * doc/headers/stdint.texi: Discuss #include_next issue.
82193 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
82195         * build-aux/bootstrap: Remove obsolete comment about wget --help.
82197 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
82199         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
82200         in variable name.
82202 2007-09-03  Jim Meyering  <jim@meyering.net>
82204         New module: git-version-gen.
82205         * modules/git-version-gen: New file.
82207         Import changes from coreutils for bootstrap script.
82209         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
82211         bootstrap: uses rsync to download the .po files
82212         * build-aux/bootstrap (po_download_command_format): New global.
82213         (download_po_files): Use rsync.
82214         (update_po_files): Don't remove .po files after download,
82215         so future rsync runs can take advantage of the copies.
82217         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
82219         Solve the unnecessary-.po-file-regeneration problem once and for all.
82220         * build-aux/bootstrap (download_po_files): New function, renamed from
82221         get_translations.  Now, downloads, but doesn't update LINGUAS.
82222         (update_po_files): New function.
82224         bootstrap: Ignore more.
82225         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
82226         uniwidth to e.g., lib/.gitignore.
82227         (slurp): Handle the sys_stat_.h -> sys mapping, too.
82229         * build-aux/bootstrap: New setting: vc_ignore.
82230         (insert_sorted_if_absent): Create $file if absent.
82231         Adapt to new, possibly empty, list: $vc_ignore.
82233         bootstrap: generate more ignorable names
82234         * build-aux/bootstrap (slurp): When generating ignorable names,
82235         also map .sin to .sed, .gperf to .c, and .y to .c.
82237 2007-09-03  Jim Meyering  <jim@meyering.net>
82239         * build-aux/git-version-gen: New file, from coreutils.  For details, see
82240         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
82242 2007-09-02  Bruno Haible  <bruno@clisp.org>
82244         Fix mis-recognition of 'mcs' on QNX 6.
82245         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
82246         output contains the string "Mono".
82247         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
82248         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
82250 2007-09-01  Bruno Haible  <bruno@clisp.org>
82252         Fix collision between uniwidth/* and linebreak modules.
82253         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
82254         u32_width): Remove declarations.
82255         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
82256         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
82257         streq3, streq2, streq1, streq0): Remove functions.
82258         (STREQ): Remove macro.
82259         (is_cjk_encoding): Remove function.
82260         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
82261         (uc_width, u8_width, u16_width, u32_width): Remove functions.
82262         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
82263         * NEWS: Document the change.
82265 2007-09-01  Bruno Haible  <bruno@clisp.org>
82267         * lib/streq.h: Add double-inclusion guard.
82269 2007-09-01  Karl Berry  <karl@gnu.org>
82271         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
82273 2007-08-28  Jim Meyering  <jim@meyering.net>
82275         Rename mreadlink_with_size to areadlink_with_size.
82276         * NEWS: Document the change.
82277         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
82278         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
82279         * lib/mreadlink.h: Rename this to...
82280         * lib/areadlink.h: ...this.
82281         * modules/mreadlink-with-size: Rename this to...
82282         * modules/areadlink-with-size: ...this.
82283         * lib/canonicalize.c: Reflect the renaming.
82284         * modules/canonicalize: Likewise.
82286 2007-08-26  Bruno Haible  <bruno@clisp.org>
82288         * gnulib-tool (func_import): When deciding which files to remove,
82289         consider also dangling symbolic links.
82290         Reported by Eric Blake.
82292 2007-08-26  Bruno Haible  <bruno@clisp.org>
82294         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
82296 2007-08-23  Simon Josefsson  <simon@josefsson.org>
82298         * lib/readline.c: Don't include getline.h, the prototype is now
82299         found in stdio.h.
82301 2007-08-23  Jim Meyering  <jim@meyering.net>
82303         Getdelim touchup.
82304         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
82305         around the funlockfile call, since funlockfile never sets errno.
82306         Don't set errno upon failed realloc.
82308 2007-08-22  Eric Blake  <ebb9@byu.net>
82310         Getline touchups.
82311         * lib/getdelim.c (getdelim): Revert regression that required *n to
82312         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
82313         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
82314         getdelim, rather than whether implementation is missing.
82315         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
82316         * lib/stdio_.h (getline): Also declare if replacement is
82317         required.
82318         * doc/functions/getdelim.texi: New file.
82319         * doc/functions/getline.texi: Likewise.
82320         * doc/gnulib.texi (Function Substitutes): Add new files.
82321         Reported by Bruno Haible.
82323 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
82325         * users.txt: Add Guile.
82327 2007-08-22  Eric Blake  <ebb9@byu.net>
82329         * tests/test-getdelim.c (main): Use remove, not unlink.
82330         * tests/test-getline.c (main): Likewise.
82332         Move getline and getdelim into stdio.h, per POSIX 200x.
82333         * modules/getline (Files): Remove getline.h.
82334         (Depends-on): Add stdio.
82335         (configure.ac): Add module indicator.
82336         * modules/getdelim (Files): Remove getdelim.h.
82337         (Depends-on): Add stdio.
82338         (configure.ac): Add module indicator.
82339         * modules/stdio (Makefile.am): Work with new indicators.
82340         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
82341         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
82342         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
82343         * lib/getdelim.h: Delete.
82344         * lib/getline.h: Delete.
82345         * lib/stdio_.h (getdelim, getline): Declare.
82346         * modules/getdelim-tests: New module.
82347         * modules/getline-tests: Likewise.
82348         * tests/test-getdelim.c: New file.
82349         * tests/test-getline.c: Likewise.
82350         * NEWS: Document the change.
82351         * lib/getline.c: Update choice of header.
82352         * lib/csharpcomp.c: Likewise.
82353         * lib/getpass.c: Likewise.
82354         * lib/javacomp.c: Likewise.
82355         * lib/javaversion.c: Likewise.
82356         * lib/yesno.c: Likewise.
82357         * lib/getdelim.c: Likewise.
82358         (getdelim): Set errno on failure, and avoid memory leak.
82360 2007-08-19  Bruno Haible  <bruno@clisp.org>
82362         * modules/closein (Depends-on): Add freadahead.
82363         * lib/closein.c: Include freadahead.h.
82364         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
82365         is zero.
82367 2007-08-19  Bruno Haible  <bruno@clisp.org>
82369         * modules/freadahead-tests: New file.
82370         * tests/test-freadahead.sh: New file.
82371         * tests/test-freadahead.c: New file.
82373         * modules/freadahead: New file.
82374         * lib/freadahead.h: New file.
82375         * lib/freadahead.c: New file.
82376         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
82377         fbufmode, fpurge, freadable, fwritable.
82379 2007-08-19  Eric Blake  <ebb9@byu.net>
82381         Test yesno in combination with closein.
82382         * lib/yesno.c (yesno): Document use of stdin.
82383         * modules/yesno-tests (Files): New module.
82384         * tests/test-yesno.c (main): New file.
82385         * tests/test-yesno.sh: Likewise.
82387 2007-08-19  Bruno Haible  <bruno@clisp.org>
82389         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
82390         * lib/fseeko.c (rpl_fseeko): Likewise.
82391         * lib/fseterr.c (fseterr): Likewise.
82393 2007-08-19  Bruno Haible  <bruno@clisp.org>
82395         * tests/test-lseek.c (main): Disable a test for BeOS.
82396         * doc/functions/lseek.texi: Document the BeOS bug.
82398 2007-08-19  Bruno Haible  <bruno@clisp.org>
82399             Eric Blake  <ebb9@byu.net>
82401         * lib/lseek.c: Include <sys/stat.h>.
82402         (rpl_lseek): Add workaround code also for Unix platforms.
82403         Needed for BeOS.
82404         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
82405         * doc/functions/lseek.texi: Document BeOS definiency.
82407 2007-08-18  Bruno Haible  <bruno@clisp.org>
82409         * modules/fstrcmp-tests: New file.
82410         * tests/test-fstrcmp.c: New file.
82412 2007-08-18  Bruno Haible  <bruno@clisp.org>
82414         * modules/fstrcmp: New file, from GNU gettext with modifications.
82415         * lib/fstrcmp.h: New file, from GNU gettext.
82416         * lib/fstrcmp.c: New file, from GNU gettext.
82417         * MODULES.html.sh (String handling): Add fstrcmp.
82419 2007-08-18  Bruno Haible  <bruno@clisp.org>
82421         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
82422         'bool'.
82423         (diag, compareseq): Remove const from the ctxt argument.
82424         (USE_HEURISTIC): Undefine at the end.
82426 2007-08-18  Jim Meyering  <jim@meyering.net>
82428         New file: lib/idcache.h
82429         * NEWS: Mention the addition.
82430         * modules/idcache (Files): Add lib/idcache.h
82431         * lib/idcache.c: Include "idcache.h".
82432         Don't include <sys/types.h>.
82433         Add a FIXME comment.
82434         Move file-scoped "static" declarations to the top.
82435         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
82437 2007-08-17  Bruno Haible  <bruno@clisp.org>
82438         and Paul Eggert  <eggert@cs.ucla.edu>
82440         * MODULES.html.sh: Add diffseq.
82441         * modules/diffseq: New file.
82442         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
82443         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
82445 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
82447         Import changes from coreutils for bootstrap script.
82449         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
82451         * build-aux/bootstrap (slurp): Work even in environments where
82452         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
82453         current code does not slurp files whose names start with ".", and
82454         this looks like it might be a troublesome area.
82456         2007-07-11  Jim Meyering  <jim@meyering.net>
82458         If there's a GPL vN copyright comment, require that N == 3.
82460         2007-07-08  Jim Meyering  <jim@meyering.net>
82462         Run the coreutils-specific code only if tests/Makefile.am.in exists.
82463         * build-aux/bootstrap (mam_template): Move definition out of loop.
82465         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
82467         * build-aux/bootstrap (symlink_to_dir): Rename function from
82468         symlink_to_gnulib.  Add a directory parameter.  Update all
82469         callers.
82470         (cp_mark_as_generated): Also check for -- and link to -- files in
82471         gl/.
82473         2007-07-08  Jim Meyering  <jim@meyering.net>
82475         Adapt to deeper hierarchy in gnulib.
82476         * build-aux/bootstrap (symlink_to_dir): If the destination
82477         directory doesn't exist, create it. This is required at least for
82478         "lib/uniwidth/cjk.h".
82480         2007-05-15  Jim Meyering  <jim@meyering.net>
82482         * build-aux/bootstrap: Now that generated Makefile.am files
82483         are no longer under version control, they must be created at
82484         bootstrap time.
82486 2007-08-14  Ben Pfaff  <blp@gnu.org>
82488         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
82490 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
82492         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
82493         given the changes below.
82494         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
82495         even on hosts that have padding bits beyond the supported 64.
82497 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
82499         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
82500         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
82501         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
82502         depends on it.
82503         (xstrtol_error): Remove.
82504         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
82505         but with a different signature.
82506         (ATTRIBUTE_NORETURN, __attribute__): New macros.
82507         * lib/xstrtol-error.c: Include exitfail.h.
82508         (xstrtol_fatal): New function, with a different signature from the
82509         old xstrtol_error, so that the caller need not worry about passing
82510         in an exit status, or about storage management of the option argument.
82511         (xstrtol_error): Now a static function.  Redo signature to
82512         implement xstrtol_fatal.  Output the correct number of hyphens in
82513         front of the option so that the caller need not worry about
82514         storage management.
82515         (N_): New macro.
82516         (_): Remove; not used now.
82517         * modules/xstrtol: Depend on getopt.
82518         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
82519         of old STRTOL_FATAL_ERROR macro.
82520         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
82521         of test program.
82522         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
82523         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
82525 2007-08-08  Eric Blake  <ebb9@byu.net>
82527         * lib/xstrtol-error.c: Add missing include.
82529         Move xstrtol messages into gnulib domain, when --pobase is used.
82530         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
82531         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
82532         * modules/xstrtol (Files): Distribute new file.
82533         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
82534         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
82535         * tests/test-xstrtol.c: ...into new file.
82536         * tests/test-xstrtoul.c: Also test xstrtoul.
82537         * tests/test-xstrtoimax.c: Also test xstrtoimax.
82538         * tests/test-xstrtoumax.c: Also test xstrtoumax.
82539         * tests/test-xstrtol.sh: Drive the tests.
82540         * tests/test-xstrtoimax.sh: Likewise.
82541         * tests/test-xstrtoumax.sh: Likewise.
82542         * modules/xstrtol-tests: New module.
82543         * modules/xstrtoimax-tests: Likewise.
82544         * modules/xstrtoumax-tests: Likewise.
82546 2007-08-08  Jim Meyering  <jim@meyering.net>
82548         New function: mfile_name_concat.
82549         * lib/filenamecat.c (mfile_name_concat): New function, just like
82550         file_name_concat, but return NULL upon failure rather than exiting
82551         with a diagnostic.
82552         * lib/filenamecat.h: Declare it.
82554 2007-08-07  Bruno Haible  <bruno@clisp.org>
82556         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
82557         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
82558         warning from gcc.
82559         Reported by Eric Blake.
82561 2007-08-07  Simon Josefsson  <simon@josefsson.org>
82563         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
82564         * modules/crypto/arcfour (License): Likewise.
82565         * modules/crypto/des-tests (License): Likewise.
82566         * modules/crypto/gc-arctwo-tests (License): Likewise.
82567         * modules/crypto/gc-des-tests (License): Likewise.
82568         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
82569         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
82570         * modules/crypto/gc-md2-tests (License): Likewise.
82571         * modules/crypto/gc-md4-tests (License): Likewise.
82572         * modules/crypto/gc-md5-tests (License): Likewise.
82573         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
82574         * modules/crypto/gc-rijndael-tests (License): Likewise.
82575         * modules/crypto/gc-sha1-tests (License): Likewise.
82576         * modules/crypto/gc-tests (License): Likewise.
82577         * modules/crypto/hmac-md5 (License): Likewise.
82578         * modules/crypto/hmac-sha1 (License): Likewise.
82579         * modules/crypto/md2-tests (License): Likewise.
82580         * modules/crypto/md4-tests (License): Likewise.
82581         * modules/crypto/md5 (License): Likewise.
82582         * modules/crypto/rijndael (License): Likewise.
82583         * modules/crypto/sha1 (License): Likewise.
82584         * modules/memxor (License): Likewise.
82586 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
82587         and Bruno Haible  <bruno@clisp.org>
82589         * NEWS: Describe interface changes to human, xstrtol.
82590         * lib/human.h: Include <xstrtol.h>.
82591         (human_options): Return enum strtol_error, not int.  Remove
82592         bool arg; take int * instead.
82593         * lib/human.c: Don't include "gettext.h".
82594         (_): Remove; no longer used.
82595         Don't include <xstrtol.h>, since human.h does it.
82596         (human_options): Adjust to abovementioned interface changes.
82597         Do not report error to stderr; that's now the caller's
82598         responsibility.
82599         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
82600         interface change.
82601         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
82602         Str, Argument_type_string.  All uses changed.  Put " argument"
82603         in diagnostics to make them clearer.  Change wording of suffix
82604         message for clarity.
82605         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
82606         Argument_type_string.
82607         (STRTOL_FATAL_WARN): Remove; no longer used.
82608         * modules/human (Depends-on): Remove gettext-h.
82610 2007-08-06  Simon Josefsson  <simon@josefsson.org>
82612         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
82614 2007-07-31  Bruno Haible  <bruno@clisp.org>
82616         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
82617         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
82618         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
82620 2007-07-31  Bruno Haible  <bruno@clisp.org>
82622         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
82623         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
82625 2007-07-30  Bruno Haible  <bruno@clisp.org>
82627         * modules/base64 (License): Use the synonymous term "LGPLv2+".
82628         * modules/c-ctype (License): Likewise.
82629         * modules/c-strcase (License): Likewise.
82630         * modules/check-version (License): Likewise.
82631         * modules/iconv (License): Likewise.
82632         * modules/iconv_open (License): Likewise.
82633         * modules/read-file (License): Likewise.
82634         * modules/striconv (License): Likewise.
82635         * modules/strverscmp (License): Likewise.
82636         * modules/vasprintf (License): Likewise.
82637         * modules/crypto/des (License): Likewise.
82638         * modules/crypto/gc (License): Likewise.
82639         * modules/crypto/gc-arcfour (License): Likewise.
82640         * modules/crypto/gc-arctwo (License): Likewise.
82641         * modules/crypto/gc-des (License): Likewise.
82642         * modules/crypto/gc-hmac-md5 (License): Likewise.
82643         * modules/crypto/gc-hmac-sha1 (License): Likewise.
82644         * modules/crypto/gc-md2 (License): Likewise.
82645         * modules/crypto/gc-md4 (License): Likewise.
82646         * modules/crypto/gc-md5 (License): Likewise.
82647         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
82648         * modules/crypto/gc-random (License): Likewise.
82649         * modules/crypto/gc-rijndael (License): Likewise.
82650         * modules/crypto/gc-sha1 (License): Likewise.
82651         * modules/crypto/md2 (License): Likewise.
82652         * modules/crypto/md4 (License): Likewise.
82654 2007-07-30  Jim Meyering  <jim@meyering.net>
82656         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
82657         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
82658         it has valid stat data.  This bug would cause du not to count the
82659         sizes of inaccessible directories.
82660         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
82661         in <http://bugzilla.redhat.com/250077>.
82663 2007-07-25  Peter O'Gorman  <peter@pogma.com>
82664             Bruno Haible  <bruno@clisp.org>
82666         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
82667         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
82668         #include_next, gives a diagnostic about it, but reports no error in
82669         the exit code.
82670         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
82672 2007-07-24  Ben Pfaff  <blp@gnu.org>
82674         Improve name: "count-one-bits" is better than "popcount".
82675         * MODULES.html.sh: Update name.
82676         * lib/popcount.h: Renamed lib/count-one-bits.h.
82677         (popcount): Renamed count_one_bits.
82678         (popcountl): Renamed count_one_bits_l.
82679         (popcountll): Renamed count_one_bits_ll.
82680         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
82681         * modules/popcount: Renamed module/count-one-bits.
82682         * modules/popcount-tests: Renamed module/count-one-bits-tests.
82683         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
82685 2007-07-23  Ben Pfaff  <blp@gnu.org>
82687         * lib/popcount.h (popcount32): Reduce size of constants, to allow
82688         better code generation, and add U to large constants to avoid
82689         warnings, in non-GCC case.
82690         Suggested by Bruno Haible.
82692 2007-07-23  Ben Pfaff  <blp@gnu.org>
82694         * lib/popcount.h: Use verify_true instead of if...abort.
82695         * modules/popcount: Depend on verify module.
82696         Suggested by Jim Meyering.
82698 2007-07-23  Bruno Haible  <bruno@clisp.org>
82700         * gnulib-tool (func_import): Create a .cvsignore file also when the
82701         directory is not yet in CVS but the toplevel directory is. When
82702         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
82703         Reported by Karl Berry.
82705 2007-07-22  Ben Pfaff  <blp@gnu.org>
82707         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
82708         case.
82709         Suggested by Eric Blake.
82711 2007-07-22  Ben Pfaff  <blp@gnu.org>
82713         New module: popcount.
82714         * MODULES.html.sh: Add popcount.
82715         * modules/popcount: New file.
82716         * modules/popcount-tests: New file.
82717         * tests/test-popcount.c: New file.
82718         * lib/popcount.h: New file.
82719         * m4/popcount.m4: New file.
82721 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
82723         * build-aux/announce-gen: Update to GPLv3.
82725         * build-aux/config.guess: Update from config.
82727 2007-07-21  Bruno Haible  <bruno@clisp.org>
82729         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
82730         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
82732 2007-07-20  Jim Meyering  <jim@meyering.net>
82734         * check-module: Diagnose a self-dependency.
82736 2007-07-19  Bruno Haible  <bruno@clisp.org>
82738         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
82739         empty.
82740         Reported by Eric Blake.
82742 2007-07-18  Bruno Haible  <bruno@clisp.org>
82744         * gnulib-tool: New options --po-base, --po-domain.
82745         (func_usage): Document them.
82746         (pobase, po_domain): New variables.
82747         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
82748         DEFAULT_TEXT_DOMAIN.
82749         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
82750         (func_import): Consider pobase and po_domain. Create a po/ directory.
82751         (func_create_testdir): Set pobase and po_domain to empty.
82752         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
82753         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
82755 2007-07-18  Bruno Haible  <bruno@clisp.org>
82757         * gnulib-tool (func_get_automake_snippet): Synthesize also an
82758         EXTRA_DIST augmentation for files in build-aux/.
82760 2007-07-16  Bruno Haible  <bruno@clisp.org>
82762         * modules/lseek (License): Use the synonymous term "LGPLv2+".
82763         * modules/getdelim (License): Likewise.
82765 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
82767         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
82768         * modules/d-type (License): Likewise.
82769         * modules/extensions (License): Likewise.
82770         * modules/fnmatch (License): Likewise.
82771         * modules/fseeko (License): Likewise.
82772         * modules/getaddrinfo (License): Likewise.
82773         * modules/getline (License): Likewise.
82774         * modules/getlogin_r (License): Likewise.
82775         * modules/getpass (License): Likewise.
82776         * modules/gettimeofday (License): Likewise.
82777         * modules/glob (License): Likewise.
82778         * modules/inet_ntop (License): Likewise.
82779         * modules/malloc (License): Likewise.
82780         * modules/malloca (License): Likewise.
82781         * modules/memmem (License): Likewise.
82782         * modules/mempcpy (License): Likewise.
82783         * modules/memset (License): Likewise.
82784         * modules/minmax (License): Likewise.
82785         * modules/mktime (License): Likewise.
82786         * modules/netinet_in (License): Likewise.
82787         * modules/pathmax (License): Likewise.
82788         * modules/poll (License): Likewise.
82789         * modules/regex (License): Likewise.
82790         * modules/snprintf (License): Likewise.
82791         * modules/stdbool (License): Likewise.
82792         * modules/stdint (License): Likewise.
82793         * modules/stdio (License): Likewise.
82794         * modules/strcase (License): Likewise.
82795         * modules/strcasestr (License): Likewise.
82796         * modules/strdup (License): Likewise.
82797         * modules/string (License): Likewise.
82798         * modules/strndup (License): Likewise.
82799         * modules/strnlen (License): Likewise.
82800         * modules/strpbrk (License): Likewise.
82801         * modules/strptime (License): Likewise.
82802         * modules/strsep (License): Likewise.
82803         * modules/sys_select (License): Likewise.
82804         * modules/sys_socket (License): Likewise.
82805         * modules/sys_stat (License): Likewise.
82806         * modules/sys_time (License): Likewise.
82807         * modules/time (License): Likewise.
82808         * modules/time_r (License): Likewise.
82809         * modules/timegm (License): Likewise.
82810         * modules/unistd (License): Likewise.
82811         * modules/vsnprintf (License): Likewise.
82812         * modules/wctype (License): Likewise.
82814 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
82816         * modules/argz (License): LGPLv2+.
82818 2007-07-15  Karl Berry  <karl@gnu.org>
82820         * doc/gnulib.texi: revise node structure per new fdl.texi.
82822 2007-07-14  Bruno Haible  <bruno@clisp.org>
82824         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
82825         the output file.
82826         * lib/uniname/uninames.h: Regenerated.
82828 2007-07-14  Karl Berry  <karl@gnu.org>
82830         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
82831         omitting sectioning and index commands.
82833 2007-07-13  Bruno Haible  <bruno@clisp.org>
82835         New gnulib-tool option --more-symlinks.
82836         * gnulib-tool (func_usage): Document --more-symlinks.
82837         (do_copyrights): New variable.
82838         Recognize option --more-symlinks.
82839         (func_import): Don't add a copyright notice transform to
82840         sed_transform_lib_file if do_copyrights is empty.
82842 2007-07-13  Bruno Haible  <bruno@clisp.org>
82844         * lib/vasnprintf.c (decimal_point_char): Define also if
82845         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
82846         && !NEED_PRINTF_DIRECTIVE_A.
82847         Reported by Clemens Koller <clemens.koller@anagramm.de> via
82848         Gary V. Vaughan <gary@gnu.org>.
82850 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
82852         * lib/inttypes_.h: Undo previous change, since it was fixed
82853         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
82855 2007-07-13  Bruno Haible  <bruno@clisp.org>
82857         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
82858         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
82860 2007-07-13  Jim Meyering  <jim@meyering.net>
82862         df: Don't fail for Tru64's "file-on-file mount".
82863         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
82864         so we fall through and use statfs instead.  Details here:
82865         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
82866         Reported by Albert Chin.
82868 2007-07-13  Bruno Haible  <bruno@clisp.org>
82870         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
82871         * modules/configmake (License): Likewise.
82872         * modules/gettext (License): Likewise.
82873         * modules/gettext-h (License): Likewise.
82874         * modules/include_next (License): Likewise.
82875         * modules/link-warning (License): Likewise.
82876         * modules/localcharset (License): Likewise.
82877         * modules/localename (License): Likewise.
82878         * modules/lock (License): Likewise.
82879         * modules/relocatable-lib-lgpl (License): Likewise.
82880         * modules/size_max (License): Likewise.
82881         * modules/vasnprintf (License): Likewise.
82882         * modules/wchar (License): Likewise.
82883         * modules/xsize (License): Likewise.
82885 2007-07-13  Bruno Haible  <bruno@clisp.org>
82887         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
82888         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
82890 2007-07-12  Bruno Haible  <bruno@clisp.org>
82892         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
82893         in the modules files.
82895 2007-07-11  Karl Berry  <karl@gnu.org>
82897         * MODULES.html.sh (func_module): use
82898          sed -e '\|^'"${includefile}"'$|d'
82899          instead of /.../d, to avoid errors on $includefile's containing /.
82901 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
82903         * gnulib-tool (func_import): Avoid duplication of --avoid
82904         statements
82905         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
82906         names to `_' in variable names.
82908 2007-07-10  Eric Blake  <ebb9@byu.net>
82910         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
82911         * NEWS: Document this change.
82913 2007-07-08  Bruno Haible  <bruno@clisp.org>
82915         Update to Unicode 5.0.
82916         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
82917         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
82918         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
82919         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
82920         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
82921         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
82922         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
82923         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
82924         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
82925         U+10A3F, U+1D242..U+1D244.
82926         (nonspacing_table_ind): Update.
82927         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
82928         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
82930 2007-07-08  Bruno Haible  <bruno@clisp.org>
82932         Update to Unicode 5.0.
82933         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
82934         code transform. Extend the name index field of unicode_name_to_code and
82935         unicode_code_to_name from 16 to 24 bits.
82936         * lib/uniname/uniname.c (unicode_character_name,
82937         unicode_name_character): Add the range 0x12xxx to the code transform.
82938         * lib/uniname/uninames.h: Regenerated.
82939         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
82941 2007-07-07  Bruno Haible  <bruno@clisp.org>
82943         * modules/wcwidth-tests: New file.
82944         * tests/test-wcwidth.c: New file.
82946         Work around MacOS X wcwidth() bug.
82947         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
82948         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
82949         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
82950         original wcwidth in non-UTF-8 locales.
82951         * modules/wcwidth (Depends-on): Add localcharset, streq,
82952         uniwidth/width.
82953         * doc/functions/wcwidth.texi: Update.
82955 2007-07-07  Bruno Haible  <bruno@clisp.org>
82957         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
82958         (wcwidth): New declaration.
82959         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
82960         macros.
82961         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
82962         here. Prepare for creating <wchar.h> unconditionally.
82963         * modules/wchar (Depends-on): Add link-warning.
82964         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
82965         REPLACE_WCWIDTH, and GL_LINK_WARNING.
82966         * lib/wcwidth.h: Remove file.
82967         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
82968         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
82969         * modules/wcwidth (Files): Remove lib/wcwidth.h.
82970         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
82971         (Include): Replace wcwidth.h with <wchar.h>.
82972         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
82973         * lib/mbchar.h: Don't include wcwidth.h.
82974         * lib/mbswidth.c: Likewise.
82975         * NEWS: Mention the change.
82977 2007-07-07  Bruno Haible  <bruno@clisp.org>
82979         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
82980         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
82981         definition with an external declaration.
82982         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
82983         defined as a function. Remove AC_C_INLINE requirement.
82984         * modules/wcwidth (Files): Add lib/wcwidth.c.
82985         (Makefile.am): Remove redundant statement.
82987 2007-07-07  Bruno Haible  <bruno@clisp.org>
82989         * MODULES.html.sh (Unicode string functions): Add the new modules.
82991         * tests/uniwidth/test-u32-strwidth.c: New file.
82992         * modules/uniwidth/u32-strwidth-tests: New file.
82994         * lib/uniwidth/u32-strwidth.c: New file.
82995         * modules/uniwidth/u32-strwidth: New file.
82997         * tests/uniwidth/test-u16-strwidth.c: New file.
82998         * modules/uniwidth/u16-strwidth-tests: New file.
83000         * lib/uniwidth/u16-strwidth.c: New file.
83001         * modules/uniwidth/u16-strwidth: New file.
83003         * tests/uniwidth/test-u8-strwidth.c: New file.
83004         * modules/uniwidth/u8-strwidth-tests: New file.
83006         * lib/uniwidth/u8-strwidth.c: New file.
83007         * modules/uniwidth/u8-strwidth: New file.
83009         * tests/uniwidth/test-u32-width.c: New file.
83010         * modules/uniwidth/u32-width-tests: New file.
83012         * lib/uniwidth/u32-width.c: New file.
83013         * modules/uniwidth/u32-width: New file.
83015         * tests/uniwidth/test-u16-width.c: New file.
83016         * modules/uniwidth/u16-width-tests: New file.
83018         * lib/uniwidth/u16-width.c: New file.
83019         * modules/uniwidth/u16-width: New file.
83021         * tests/uniwidth/test-u8-width.c: New file.
83022         * modules/uniwidth/u8-width-tests: New file.
83024         * lib/uniwidth/u8-width.c: New file.
83025         * modules/uniwidth/u8-width: New file.
83027         * tests/uniwidth/test-uc_width.c: New file.
83028         * modules/uniwidth/width-tests: New file.
83030         * lib/uniwidth/width.c: New file, from GNU libiconv.
83031         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
83032         * modules/uniwidth/width: New file.
83034         * lib/uniwidth.h: New file, from GNU libiconv.
83035         * modules/uniwidth/base: New file.
83037 2007-07-07  Bruno Haible  <bruno@clisp.org>
83039         * lib/uniname.h: New file, from GNU gettext.
83040         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
83041         * lib/uniname/uninames.h: New file, from GNU gettext.
83042         * lib/uniname/uniname.c: New file, from GNU gettext.
83043         * tests/uniname/test-uninames.sh: New file.
83044         * tests/uniname/test-uninames.c: New file, from GNU gettext.
83045         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
83046         * modules/uniname/base: New file.
83047         * modules/uniname/uniname: New file.
83048         * modules/uniname/uniname-tests: New file.
83049         * MODULES.html.sh (Unicode string functions): Add the new modules.
83051 2007-07-06  Bruno Haible  <bruno@clisp.org>
83053         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
83055 2007-07-06  Bruno Haible  <bruno@clisp.org>
83057         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
83058         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
83059         includes <cygwin/sys_time.h> which includes <sys/select.h> which
83060         include <sys/time.h>.
83061         Reported by Eric Blake.
83063 2007-07-06  Eric Blake  <ebb9@byu.net>
83065         Fix testing canonicalize on cygwin.
83066         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
83067         Revert patch from 2007-06-19.
83068         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
83069         canonicalize module is also in use.
83070         * tests/test-canonicalize.c: New file.
83071         * tests/test-canonicalize.sh: Likewise.
83072         * modules/canonicalize-tests: Likewise.
83074 2007-07-06  Jim Meyering  <jim@meyering.net>
83076         * lib/getugroups.c (getugroups): Detect getgrent failure.
83077         Adjust comment to reflect reality: this function may return -1.
83079 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
83081         * build-aux/bootstrap (TP_URL,get_translations): Update to use
83082         the new TP address.
83083         (usage): Fix typo
83084         (gnulib_mk): New variable.
83086 2007-07-05  Jim Meyering  <jim@meyering.net>
83088         Don't let endgrent clobber errno, no matter how improbable.
83089         * lib/getugroups.c (getugroups): Save and restore errno around
83090         endgrent call.
83092         Close the group DB even when failing with 2^31 or more members.
83093         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
83095 2007-07-04  Jim Meyering  <jim@meyering.net>
83097         * lib/getugroups.h: New file.
83098         * lib/getugroups.c: Include "getugroups.h".
83099         Remove uses of "register" keyword.
83100         Move local variable, "cp", down into scope where used.
83101         Give "username" parameter the "const" attribute.
83102         * modules/getugroups (Files): Add lib/getugroups.h
83104 2007-07-04  Karl Berry  <karl@gnu.org>
83106         * MODULES.html.sh (func_all_modules): Complete rename of
83107         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
83109 2007-07-02  Bruno Haible  <bruno@clisp.org>
83111         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
83112         mode, when inttypes.h comes from gnulib.
83113         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
83115 2007-07-02  Simon Josefsson  <simon@josefsson.org>
83117         * NEWS: Mention lgpl module name change.
83119         * modules/lgpl-2.1: Renamed from lgpl.
83121         * NEWS: Mention gpl module name change.
83123         * modules/gpl-3.0: New file, based on gpl-2.0.
83125         * modules/gpl-2.0: Renamed from gpl.
83127         * modules/gpl: Fix filename, doc/gpl.texi is now found at
83128         doc/gpl-2.0.texi.
83130 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
83132         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
83133         #define __STDC_LIMIT_MACROS temporarily while including
83134         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
83135         Problem reported by Joel E. Denny in
83136         <http://lists.gnu.org/r/bug-gnulib/2007-07/msg00008.html>.
83138 2007-07-01  Bruno Haible  <bruno@clisp.org>
83140         * lib/unistdio.h: New file.
83141         * lib/unistdio/u-asnprintf.h: New file.
83142         * lib/unistdio/u-asprintf.h: New file.
83143         * lib/unistdio/u-printf-args.c: New file.
83144         * lib/unistdio/u-printf-args.h: New file.
83145         * lib/unistdio/u-printf-parse.h: New file.
83146         * lib/unistdio/u-snprintf.h: New file.
83147         * lib/unistdio/u-sprintf.h: New file.
83148         * lib/unistdio/u-vasprintf.h: New file.
83149         * lib/unistdio/u-vsnprintf.h: New file.
83150         * lib/unistdio/u-vsprintf.h: New file.
83151         * lib/unistdio/ulc-asnprintf.c: New file.
83152         * lib/unistdio/ulc-asprintf.c: New file.
83153         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
83154         * lib/unistdio/ulc-printf-parse.c: New file.
83155         * lib/unistdio/ulc-snprintf.c: New file.
83156         * lib/unistdio/ulc-sprintf.c: New file.
83157         * lib/unistdio/ulc-vasnprintf.c: New file.
83158         * lib/unistdio/ulc-vasprintf.c: New file.
83159         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
83160         * lib/unistdio/ulc-vsnprintf.c: New file.
83161         * lib/unistdio/ulc-vsprintf.c: New file.
83162         * lib/unistdio/u8-asnprintf.c: New file.
83163         * lib/unistdio/u8-asprintf.c: New file.
83164         * lib/unistdio/u8-printf-parse.c: New file.
83165         * lib/unistdio/u8-snprintf.c: New file.
83166         * lib/unistdio/u8-sprintf.c: New file.
83167         * lib/unistdio/u8-vasnprintf.c: New file.
83168         * lib/unistdio/u8-vasprintf.c: New file.
83169         * lib/unistdio/u8-vsnprintf.c: New file.
83170         * lib/unistdio/u8-vsprintf.c: New file.
83171         * lib/unistdio/u8-u8-asnprintf.c: New file.
83172         * lib/unistdio/u8-u8-asprintf.c: New file.
83173         * lib/unistdio/u8-u8-snprintf.c: New file.
83174         * lib/unistdio/u8-u8-sprintf.c: New file.
83175         * lib/unistdio/u8-u8-vasnprintf.c: New file.
83176         * lib/unistdio/u8-u8-vasprintf.c: New file.
83177         * lib/unistdio/u8-u8-vsnprintf.c: New file.
83178         * lib/unistdio/u8-u8-vsprintf.c: New file.
83179         * lib/unistdio/u16-asnprintf.c: New file.
83180         * lib/unistdio/u16-asprintf.c: New file.
83181         * lib/unistdio/u16-printf-parse.c: New file.
83182         * lib/unistdio/u16-snprintf.c: New file.
83183         * lib/unistdio/u16-sprintf.c: New file.
83184         * lib/unistdio/u16-vasnprintf.c: New file.
83185         * lib/unistdio/u16-vasprintf.c: New file.
83186         * lib/unistdio/u16-vsnprintf.c: New file.
83187         * lib/unistdio/u16-vsprintf.c: New file.
83188         * lib/unistdio/u16-u16-asnprintf.c: New file.
83189         * lib/unistdio/u16-u16-asprintf.c: New file.
83190         * lib/unistdio/u16-u16-snprintf.c: New file.
83191         * lib/unistdio/u16-u16-sprintf.c: New file.
83192         * lib/unistdio/u16-u16-vasnprintf.c: New file.
83193         * lib/unistdio/u16-u16-vasprintf.c: New file.
83194         * lib/unistdio/u16-u16-vsnprintf.c: New file.
83195         * lib/unistdio/u16-u16-vsprintf.c: New file.
83196         * lib/unistdio/u32-asnprintf.c: New file.
83197         * lib/unistdio/u32-asprintf.c: New file.
83198         * lib/unistdio/u32-printf-parse.c: New file.
83199         * lib/unistdio/u32-snprintf.c: New file.
83200         * lib/unistdio/u32-sprintf.c: New file.
83201         * lib/unistdio/u32-vasnprintf.c: New file.
83202         * lib/unistdio/u32-vasprintf.c: New file.
83203         * lib/unistdio/u32-vsnprintf.c: New file.
83204         * lib/unistdio/u32-vsprintf.c: New file.
83205         * lib/unistdio/u32-u32-asnprintf.c: New file.
83206         * lib/unistdio/u32-u32-asprintf.c: New file.
83207         * lib/unistdio/u32-u32-snprintf.c: New file.
83208         * lib/unistdio/u32-u32-sprintf.c: New file.
83209         * lib/unistdio/u32-u32-vasnprintf.c: New file.
83210         * lib/unistdio/u32-u32-vasprintf.c: New file.
83211         * lib/unistdio/u32-u32-vsnprintf.c: New file.
83212         * lib/unistdio/u32-u32-vsprintf.c: New file.
83213         * tests/unistdio/test-ulc-asnprintf1.c: New file.
83214         * tests/unistdio/test-ulc-asnprintf1.h: New file.
83215         * tests/unistdio/test-ulc-printf1.h: New file.
83216         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
83217         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
83218         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
83219         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
83220         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
83221         * tests/unistdio/test-ulc-vasprintf1.c: New file.
83222         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
83223         * tests/unistdio/test-ulc-vsprintf1.c: New file.
83224         * tests/unistdio/test-u8-asnprintf1.c: New file.
83225         * tests/unistdio/test-u8-asnprintf1.h: New file.
83226         * tests/unistdio/test-u8-printf1.h: New file.
83227         * tests/unistdio/test-u8-vasnprintf1.c: New file.
83228         * tests/unistdio/test-u8-vasnprintf2.c: New file.
83229         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
83230         * tests/unistdio/test-u8-vasnprintf3.c: New file.
83231         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
83232         * tests/unistdio/test-u8-vasprintf1.c: New file.
83233         * tests/unistdio/test-u8-vsnprintf1.c: New file.
83234         * tests/unistdio/test-u8-vsprintf1.c: New file.
83235         * tests/unistdio/test-u16-asnprintf1.c: New file.
83236         * tests/unistdio/test-u16-asnprintf1.h: New file.
83237         * tests/unistdio/test-u16-printf1.h: New file.
83238         * tests/unistdio/test-u16-vasnprintf1.c: New file.
83239         * tests/unistdio/test-u16-vasnprintf2.c: New file.
83240         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
83241         * tests/unistdio/test-u16-vasnprintf3.c: New file.
83242         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
83243         * tests/unistdio/test-u16-vasprintf1.c: New file.
83244         * tests/unistdio/test-u16-vsnprintf1.c: New file.
83245         * tests/unistdio/test-u16-vsprintf1.c: New file.
83246         * tests/unistdio/test-u32-asnprintf1.c: New file.
83247         * tests/unistdio/test-u32-asnprintf1.h: New file.
83248         * tests/unistdio/test-u32-printf1.h: New file.
83249         * tests/unistdio/test-u32-vasnprintf1.c: New file.
83250         * tests/unistdio/test-u32-vasnprintf2.c: New file.
83251         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
83252         * tests/unistdio/test-u32-vasnprintf3.c: New file.
83253         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
83254         * tests/unistdio/test-u32-vasprintf1.c: New file.
83255         * tests/unistdio/test-u32-vsnprintf1.c: New file.
83256         * tests/unistdio/test-u32-vsprintf1.c: New file.
83257         * modules/unistdio/base: New file.
83258         * modules/unistdio/u-printf-args: New file.
83259         * modules/unistdio/ulc-asnprintf: New file.
83260         * modules/unistdio/ulc-asprintf: New file.
83261         * modules/unistdio/ulc-fprintf: New file.
83262         * modules/unistdio/ulc-printf-parse: New file.
83263         * modules/unistdio/ulc-snprintf: New file.
83264         * modules/unistdio/ulc-sprintf: New file.
83265         * modules/unistdio/ulc-vasnprintf: New file.
83266         * modules/unistdio/ulc-vasprintf: New file.
83267         * modules/unistdio/ulc-vfprintf: New file.
83268         * modules/unistdio/ulc-vsnprintf: New file.
83269         * modules/unistdio/ulc-vsprintf: New file.
83270         * modules/unistdio/u8-asnprintf: New file.
83271         * modules/unistdio/u8-asprintf: New file.
83272         * modules/unistdio/u8-printf-parse: New file.
83273         * modules/unistdio/u8-snprintf: New file.
83274         * modules/unistdio/u8-sprintf: New file.
83275         * modules/unistdio/u8-vasnprintf: New file.
83276         * modules/unistdio/u8-vasprintf: New file.
83277         * modules/unistdio/u8-vsnprintf: New file.
83278         * modules/unistdio/u8-vsprintf: New file.
83279         * modules/unistdio/u8-u8-asnprintf: New file.
83280         * modules/unistdio/u8-u8-asprintf: New file.
83281         * modules/unistdio/u8-u8-snprintf: New file.
83282         * modules/unistdio/u8-u8-sprintf: New file.
83283         * modules/unistdio/u8-u8-vasnprintf: New file.
83284         * modules/unistdio/u8-u8-vasprintf: New file.
83285         * modules/unistdio/u8-u8-vsnprintf: New file.
83286         * modules/unistdio/u8-u8-vsprintf: New file.
83287         * modules/unistdio/u16-asnprintf: New file.
83288         * modules/unistdio/u16-asprintf: New file.
83289         * modules/unistdio/u16-printf-parse: New file.
83290         * modules/unistdio/u16-snprintf: New file.
83291         * modules/unistdio/u16-sprintf: New file.
83292         * modules/unistdio/u16-vasnprintf: New file.
83293         * modules/unistdio/u16-vasprintf: New file.
83294         * modules/unistdio/u16-vsnprintf: New file.
83295         * modules/unistdio/u16-vsprintf: New file.
83296         * modules/unistdio/u16-u16-asnprintf: New file.
83297         * modules/unistdio/u16-u16-asprintf: New file.
83298         * modules/unistdio/u16-u16-snprintf: New file.
83299         * modules/unistdio/u16-u16-sprintf: New file.
83300         * modules/unistdio/u16-u16-vasnprintf: New file.
83301         * modules/unistdio/u16-u16-vasprintf: New file.
83302         * modules/unistdio/u16-u16-vsnprintf: New file.
83303         * modules/unistdio/u16-u16-vsprintf: New file.
83304         * modules/unistdio/u32-asnprintf: New file.
83305         * modules/unistdio/u32-asprintf: New file.
83306         * modules/unistdio/u32-printf-parse: New file.
83307         * modules/unistdio/u32-snprintf: New file.
83308         * modules/unistdio/u32-sprintf: New file.
83309         * modules/unistdio/u32-vasnprintf: New file.
83310         * modules/unistdio/u32-vasprintf: New file.
83311         * modules/unistdio/u32-vsnprintf: New file.
83312         * modules/unistdio/u32-vsprintf: New file.
83313         * modules/unistdio/u32-u32-asnprintf: New file.
83314         * modules/unistdio/u32-u32-asprintf: New file.
83315         * modules/unistdio/u32-u32-snprintf: New file.
83316         * modules/unistdio/u32-u32-sprintf: New file.
83317         * modules/unistdio/u32-u32-vasnprintf: New file.
83318         * modules/unistdio/u32-u32-vasprintf: New file.
83319         * modules/unistdio/u32-u32-vsnprintf: New file.
83320         * modules/unistdio/u32-u32-vsprintf: New file.
83321         * modules/unistdio/ulc-asnprintf-tests: New file.
83322         * modules/unistdio/ulc-vasnprintf-tests: New file.
83323         * modules/unistdio/ulc-vasprintf-tests: New file.
83324         * modules/unistdio/ulc-vsnprintf-tests: New file.
83325         * modules/unistdio/ulc-vsprintf-tests: New file.
83326         * modules/unistdio/u8-asnprintf-tests: New file.
83327         * modules/unistdio/u8-vasnprintf-tests: New file.
83328         * modules/unistdio/u8-vasprintf-tests: New file.
83329         * modules/unistdio/u8-vsnprintf-tests: New file.
83330         * modules/unistdio/u8-vsprintf-tests: New file.
83331         * modules/unistdio/u16-asnprintf-tests: New file.
83332         * modules/unistdio/u16-vasnprintf-tests: New file.
83333         * modules/unistdio/u16-vasprintf-tests: New file.
83334         * modules/unistdio/u16-vsnprintf-tests: New file.
83335         * modules/unistdio/u16-vsprintf-tests: New file.
83336         * modules/unistdio/u32-asnprintf-tests: New file.
83337         * modules/unistdio/u32-vasnprintf-tests: New file.
83338         * modules/unistdio/u32-vasprintf-tests: New file.
83339         * modules/unistdio/u32-vsnprintf-tests: New file.
83340         * modules/unistdio/u32-vsprintf-tests: New file.
83341         * MODULES.html.sh (Unicode string functions): Add the new modules.
83343 2007-07-01  Bruno Haible  <bruno@clisp.org>
83345         * lib/sprintf.c (sprintf): Limit the available length estimation,
83346         to avoid address wraparound.
83347         * lib/vsprintf.c (vsprintf): Likewise.
83348         * modules/sprintf-posix (Dependencies): Add stdint.
83349         * modules/vsprintf-posix (Dependencies): Likewise.
83351 2007-07-01  Bruno Haible  <bruno@clisp.org>
83353         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
83354         Windows PATH as well. Conservative double-quoting. Comments.
83356 2007-07-01  Bruno Haible  <bruno@clisp.org>
83357             Eric Blake  <ebb9@byu.net>
83358             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
83360         * gnulib-tool (self_abspathname): Fix algorithm to cope with
83361         empty components in $PATH, denoting '.'.
83363 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
83365         * gnulib-tool: Fix indentation.
83366         (func_create_megatestdir): Likewise.
83367         Report by Bruno Haible.
83369 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
83371         Sync from Automake.
83372         * build-aux/gnupload: Fix shell portability issues with for loops.
83373         Report by Karl Berry.
83375 2007-06-29  Simon Josefsson  <simon@josefsson.org>
83377         * build-aux/maint.mk (POURL): Use translationproject.org.
83379 2007-06-27  Simon Josefsson  <simon@josefsson.org>
83380             Bruno Haible  <bruno@clisp.org>
83382         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
83383         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
83384         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
83385         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
83386         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
83388 2007-06-27  Bruno Haible  <bruno@clisp.org>
83390         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
83391         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
83393 2007-06-26  Karl Berry  <karl@gnu.org>
83395         * MODULES.html.sh: remove xreadlink-with-size.
83397 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
83399         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
83400         method that I hope also handles the double-include problem noted
83401         by Bruno Haible in
83402         <http://lists.gnu.org/r/bug-gnulib/2007-05/msg00186.html>.
83404 2007-06-23  Bruno Haible  <bruno@clisp.org>
83406         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
83407         Don't let the 'mostlyclean' target fail if the last subdirectory could
83408         not be removed.
83409         Reported by Karl Berry.
83411 2007-06-23  Bruno Haible  <bruno@clisp.org>
83413         * gnulib-tool (echo): Add a speedier workaround for ksh.
83414         * tests/test-echo.sh: Likewise.
83416 2007-06-23  Bruno Haible  <bruno@clisp.org>
83418         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
83419         * tests/test-echo.sh: Likewise.
83421 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
83423         * gnulib-tool (IFS): Initialize early, so we don't set it to
83424         empty later.
83425         (self_abspathname): Rewrite algorithm to set it, reindent.
83426         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
83427         (func_create_megatestdir): Merge some sed scripts.
83429 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
83431         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
83432         exposed by Sun Studio 11 cc on Solaris 8.
83434 2007-06-22  Bruno Haible  <bruno@clisp.org>
83436         * gnulib-tool (echo): Ensure the echo primitive does not interpret
83437         backslashes.
83438         * tests/test-echo.sh: New file.
83440 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
83442         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
83443         simplify `sed_replace_build_aux' scripts, they are portable but
83444         echoing them with `echo' is not.
83445         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
83447 2007-06-21  Karl Berry  <karl@gnu.org>
83449         * config/srclist.txt: guess we can't handle the licenses via
83450         srclist at the moment.
83452 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
83454         * MODULES.html.sh: Add include_next.
83455         * modules/include_next: New file.
83457 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
83459         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
83460         INCLUDE_NEXT.
83461         (gl_CHECK_NEXT_HEADERS): New macro.
83462         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
83463         the obsolescent gl_ABSOLUTE_HEADER.
83464         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
83465         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
83466         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
83467         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
83468         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
83469         * m4/math_h.m4 (gl_MATH_H): Likewise.
83470         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
83471         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
83472         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
83473         * m4/stdint.m4 (gl_STDINT_H): Likewise.
83474         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
83475         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
83476         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
83477         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
83478         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
83479         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
83480         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
83481         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
83482         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
83483         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
83484         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
83485         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
83486         * m4/inttypes.m4 (gl_INTTYPES_H): Define
83487         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
83488         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
83489         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
83490         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
83491         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
83492         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
83493         * lib/float_.h: Likewise.
83494         * lib/inttypes_.h: Likewise.
83495         * lib/math_.h: Likewise.
83496         * lib/search_.h: Likewise.
83497         * lib/signal_.h: Likewise.
83498         * lib/stdint_.h: Likewise.
83499         * lib/stdio_.h: Likewise.
83500         * lib/stdlib_.h: Likewise.
83501         * lib/string_.h: Likewise.
83502         * lib/sys_stat_.h: Likewise.
83503         * lib/sys_time_.h: Likewise.
83504         * lib/time_.h: Likewise.
83505         * lib/unistd_.h: Likewise.
83506         * lib/wchar_.h: Likewise.
83507         * lib/wctype_.h: Likewise.
83508         * lib/dirent_.h: Likewise.
83509         * lib/iconv_.h: Likewise.
83510         * lib/locale_.h: Likewise.
83511         * lib/netinet_in_.h: Likewise.
83512         * lib/sys_select_.h: Likewise.
83513         * lib/sys_socket_.h: Likewise.
83514         * lib/sysexits_.h: Likewise.
83515         * modules/fcntl (Depends-on): Depend on include_next, not
83516         absolute_header.
83517         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
83518         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
83519         * modules/fchdir: Likewise.
83520         * modules/float: Likewise.
83521         * modules/iconv_open: Likewise.
83522         * modules/inttypes: Likewise.
83523         * modules/locale: Likewise.
83524         * modules/math: Likewise.
83525         * modules/netinet_in: Likewise.
83526         * modules/search: Likewise.
83527         * modules/signal: Likewise.
83528         * modules/stdint: Likewise.
83529         * modules/stdio: Likewise.
83530         * modules/stdlib: Likewise.
83531         * modules/string: Likewise.
83532         * modules/sys_select: Likewise.
83533         * modules/sys_socket: Likewise.
83534         * modules/sys_stat: Likewise.
83535         * modules/sys_time: Likewise.
83536         * modules/sysexits: Likewise.
83537         * modules/time: Likewise.
83538         * modules/unistd: Likewise.
83539         * modules/wchar: Likewise.
83540         * modules/wctype: Likewise.
83541         * modules/sys_stat: Change maintainer to "all".
83542         * modules/unistd: Likewise.
83544 2007-06-20  Karl Berry  <karl@gnu.org>
83546         * config/srclist.txt: track www changes in license files.
83548 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
83550         * build-aux/bootstrap: Remove stray dot.
83551         Make sure build_aux settings are honored when linking
83552         gnulib_extra_files.
83554 2007-06-19  Eric Blake  <ebb9@byu.net>
83556         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
83557         Allow compilation on cygwin.
83559 2007-06-19  Jim Meyering  <jim@meyering.net>
83561         xreadlink-with-size: Remove module.  No longer used.
83562         Ex-callers now use xreadlink or mreadlink-with-size.
83563         * modules/xreadlink-with-size: Remove module.
83564         * lib/xreadlink-with-size.c: Remove file.
83565         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
83566         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
83567         just before the function definition *is* accurate.
83569         Eliminate one way canonicalize_filename_mode could exit.
83570         * lib/canonicalize.c (canonicalize_filename_mode):
83571         Use mreadlink_with_size, not xreadlink_with_size.
83573 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
83575         Detect porting problems to FreeBSD/arm, which has time_t wider than
83576         long int.  Original problem reported for GNU diff by Xin Li in
83577         <http://lists.gnu.org/r/bug-gnu-utils/2007-06/msg00091.html>.
83578         * modules/getdate (Depends-on): Add intprops, verify.
83579         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
83580         is an integer type no wider than long int.
83582 2007-06-18  Jim Meyering  <jim@meyering.net>
83584         New module: mreadlink-with-size.
83585         * MODULES.html.sh: Add mreadlink-with-size.
83586         * modules/mreadlink-with-size: New module
83587         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
83588         not xreadlink-with-size.
83589         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
83591 2007-06-16  Bruno Haible  <bruno@clisp.org>
83593         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
83594         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
83595         Reported by Gary V. Vaughan <gary@gnu.org>.
83597 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
83599         Revamp lchown so that it lives in unistd.h where it belongs.
83600         * lib/lchown.h: Remove.
83601         * lib/dirchownmod.c: Don't include lib/lchown.h.
83602         * lib/fchownat.c: Likewise.
83603         * lib/openat.c: Likewise.
83604         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
83605         does not follow symlinks.
83606         (EOPNOTSUPP): Define if not defined.
83607         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
83608         is defined to 0.
83609         (lchown): New decl.
83610         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
83611         Do not check for lchown decl.
83612         Set REPLACE_LCHOWN.
83613         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
83614         REPLACE_LCHOWN.
83615         * modules/chown: Make it clear it follows symlinks.
83616         * modules/lchown: Make it clear it doesn't follow symlinks.
83617         (Files): Remove lib/lchown.h
83618         (Depends-on): Add unistd.
83619         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
83620         (Include): Include <unistd.h>, not "lchown.h".
83621         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
83622         REPLACE_LCHOWN.
83624 2007-06-15  Jim Meyering  <jim@meyering.net>
83626         Change license (GPL to LGPL) of fsusage and dependents.
83627         * modules/fsusage (License): Change to LGPL.
83628         * modules/full-read (License): Likewise.
83629         * modules/full-write (License): Likewise.
83630         * modules/safe-read (License): Likewise.
83631         * modules/safe-write (License): Likewise.
83633 2007-06-14  Ben Pfaff  <blp@gnu.org>
83635         Missing part of allocsa -> malloca transition.
83636         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
83637         gl_MALLOCA.
83639 2007-06-12  Bruno Haible  <bruno@clisp.org>
83641         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
83642         to ia64, x86_64, i386.
83643         Reported by Eric Blake.
83645 2007-06-12  Bruno Haible  <bruno@clisp.org>
83647         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
83648         cross-compiling to x86_64.
83650 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
83652         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
83653         glitch reported by Ralf Wildenhues in
83654         <http://lists.gnu.org/r/bug-gnulib/2007-06/msg00114.html>.
83656         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
83657         Vin Shelton.
83659 2007-06-11  Bruno Haible  <bruno@clisp.org>
83661         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
83662         replacement string.
83663         Reported by Eric Blake.
83665 2007-06-10  Bruno Haible  <bruno@clisp.org>
83667         Prepare vasnprintf code for use with Unicode strings.
83668         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
83669         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
83670         TYPE_U32_STRING.
83671         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
83672         a_u32_string variants.
83673         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
83674         * lib/printf-args.c: Don't include config.h and the specification
83675         header if PRINTF_FETCHARGS is already defined.
83676         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
83677         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
83678         TYPE_U16_STRING, TYPE_U32_STRING.
83679         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
83680         u16_directive, u16_directives, u32_directive, u32_directives): New
83681         types.
83682         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
83683         New declarations.
83684         * lib/printf-parse.c: Don't include config.h and the specification
83685         header if PRINTF_PARSE is already defined. Eliminate the set of
83686         parameters for WIDE_CHAR_VERSION; the user of this file must provide
83687         them now. Include c-ctype.h.
83688         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
83689         directive and CHAR_T_ONLY_ASCII.
83690         * lib/vasnprintf.c: Don't include config.h and the specification header
83691         if VASNPRINTF is already defined.
83692         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
83693         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
83694         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
83695         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
83696         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
83697         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
83698         code accordingly.
83699         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
83700         pad_ourselves also in this case, with the 'c' and 's' directives, and
83701         with a different notion of "width".
83702         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
83704 2007-06-10  Bruno Haible  <bruno@clisp.org>
83706         * modules/unistr/u32-mbsnlen: New file.
83707         * lib/unistr/u32-mbsnlen.c: New file.
83709         * modules/unistr/u16-mbsnlen: New file.
83710         * lib/unistr/u16-mbsnlen.c: New file.
83712         * modules/unistr/u8-mbsnlen: New file.
83713         * lib/unistr/u8-mbsnlen.c: New file.
83715         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
83716         declarations.
83718 2007-06-10  Bruno Haible  <bruno@clisp.org>
83720         * lib/string_.h (mbsnlen): New declaration.
83721         * lib/mbsnlen.c: New file.
83722         * m4/mbsnlen.m4: New file.
83723         * modules/mbsnlen: New file.
83724         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
83725         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
83726         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
83728 2007-06-10  Bruno Haible  <bruno@clisp.org>
83730         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
83732 2007-06-10  Bruno Haible  <bruno@clisp.org>
83734         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
83735         * lib/mbuiter.h: Likewise.
83737 2007-06-10  Bruno Haible  <bruno@clisp.org>
83739         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
83740         declaration.
83742 2007-06-10  Karl Berry  <karl@gnu.org>
83744         * config/srclist.txt: remove gettext entries, Bruno prefers
83745         to update individually.
83747 2007-06-10  Bruno Haible  <bruno@clisp.org>
83749         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
83750         'maxlen'. Ensure only length + width bytes are allocated, not
83751         length + 1 + width.
83753 2007-06-09  Bruno Haible  <bruno@clisp.org>
83755         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
83756         (CHAR_T): Remove macro.
83757         (VASNPRINTF): Update.
83759 2007-06-09  Bruno Haible  <bruno@clisp.org>
83761         * MODULES.html.sh (Unicode string functions): Add the new modules.
83763         * modules/uniconv/u32-conv-to-enc: New file.
83764         * lib/uniconv/u32-conv-to-enc.c: New file.
83765         * modules/uniconv/u32-conv-to-enc-tests: New file.
83766         * tests/uniconv/test-u32-conv-to-enc.c: New file.
83768         * modules/uniconv/u16-conv-to-enc: New file.
83769         * lib/uniconv/u16-conv-to-enc.c: New file.
83770         * lib/uniconv/u-conv-to-enc.h: New file.
83771         * modules/uniconv/u16-conv-to-enc-tests: New file.
83772         * tests/uniconv/test-u16-conv-to-enc.c: New file.
83774         * modules/uniconv/u8-conv-to-enc: New file.
83775         * lib/uniconv/u8-conv-to-enc.c: New file.
83776         * modules/uniconv/u8-conv-to-enc-tests: New file.
83777         * tests/uniconv/test-u8-conv-to-enc.c: New file.
83779         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
83780         u32_conv_to_encoding): New declarations.
83782 2007-06-09  Bruno Haible  <bruno@clisp.org>
83784         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
83786 2007-06-09  Bruno Haible  <bruno@clisp.org>
83788         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
83789         * modules/malloca: Renamed from modules/allocsa, updated.
83790         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
83791         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
83792         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
83793         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
83794         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
83795         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
83796         * modules/xmalloca: Renamed from modules/xallocsa, updated.
83797         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
83798         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
83799         * modules/c-strcasestr (Depends-on): Update.
83800         * lib/c-strcasestr.c: Update.
83801         * modules/c-strstr (Depends-on): Update.
83802         * lib/c-strstr.c: Update.
83803         * modules/canonicalize-lgpl (Depends-on): Update.
83804         * lib/canonicalize-lgpl.c: Update.
83805         * modules/clean-temp (Depends-on): Update.
83806         * lib/clean-temp.c: Update.
83807         * modules/csharpcomp (Depends-on): Update.
83808         * lib/csharpcomp.c: Update.
83809         * modules/csharpexec (Depends-on): Update.
83810         * lib/csharpexec.c: Update.
83811         * modules/javacomp (Depends-on): Update.
83812         * lib/javacomp.c: Update.
83813         * modules/javaexec (Depends-on): Update.
83814         * lib/javaexec.c: Update.
83815         * modules/mbscasestr (Depends-on): Update.
83816         * lib/mbscasestr.c: Update.
83817         * modules/mbsstr (Depends-on): Update.
83818         * lib/mbsstr.c: Update.
83819         * modules/setenv (Depends-on): Update.
83820         * lib/setenv.c: Update.
83821         * modules/strcasestr (Depends-on): Update.
83822         * lib/strcasestr.c: Update.
83823         * modules/striconveha (Depends-on): Update.
83824         * lib/striconveha.c: Update.
83825         * modules/relocatable-prog-wrapper (Files): Update.
83826         * lib/relocwrapper.c: Update.
83827         * build-aux/install-reloc: Update.
83828         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
83830 2007-06-08  Bruno Haible  <bruno@clisp.org>
83832         Port to uClibc.
83833         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
83834         * lib/fpurge.c (fpurge): Likewise.
83835         * lib/freading.c (freading): Likewise.
83836         * lib/fseeko.c (rpl_fseeko): Likewise.
83837         * lib/fseterr.c (fseterr): Likewise.
83838         * lib/fwriting.c (fwriting): Likewise.
83839         * tests/test-fflush.c (main): Avoid a failure on uClibc.
83841 2007-06-08  Bruno Haible  <bruno@clisp.org>
83843         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
83844         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
83845         * modules/gettext (Files): Add m4/intlmacosx.m4.
83847 2007-06-07  Bruno Haible  <bruno@clisp.org>
83849         * modules/localename-tests: New file.
83850         * tests/test-localename.c: New file.
83852         New module 'localename'.
83853         * lib/localename.h: New file.
83854         * lib/localename.c: New file, from GNU gettext.
83855         * m4/localename.m4: New file.
83856         * modules/localename: New file.
83858 2007-06-07  Bruno Haible  <bruno@clisp.org>
83860         Work around the lack of <wchar.h> on some builds of uClibc.
83861         * doc/headers/wchar.texi: Update.
83862         * lib/wchar_.h: Include <wchar.h> only if it exists.
83863         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
83864         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
83865         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
83866         doesn't exist.
83867         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
83868         * modules/mbfile (Depends-on): Add wchar.
83869         * modules/mbiter (Depends-on): Likewise.
83870         * modules/mbuiter (Depends-on): Likewise.
83871         Reported by Simon Josefsson.
83873 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
83875         Work around problem reported by Steven M. Schweda in
83876         <http://lists.gnu.org/r/bug-tar/2007-06/msg00002.html>:
83877         Tru64 5.1B with the Compaq compiler environment installed declares
83878         an 'isblank' function but does not define it in the C library.
83879         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
83880         * lib/regex_internal.h (isblank): Likewise.
83881         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
83882         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
83884 2007-06-05  Bruno Haible  <bruno@clisp.org>
83886         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
83887         ia64.
83888         * modules/printf-safe: New file.
83889         * modules/fprintf-posix (Depends-on): Add printf-safe.
83890         * modules/printf-posix (Depends-on): Likewise.
83891         * modules/snprintf-posix (Depends-on): Likewise.
83892         * modules/sprintf-posix (Depends-on): Likewise.
83893         * modules/vasnprintf-posix (Depends-on): Likewise.
83894         * modules/vasprintf-posix (Depends-on): Likewise.
83895         * modules/vfprintf-posix (Depends-on): Likewise.
83896         * modules/vprintf-posix (Depends-on): Likewise.
83897         * modules/vsnprintf-posix (Depends-on): Likewise.
83898         * modules/vsprintf-posix (Depends-on): Likewise.
83899         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
83900         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
83901         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
83902         "no" on i386, x86_64, ia64.
83903         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
83904         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
83905         on i386, x86_64, ia64.
83906         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
83907         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
83908         on i386, x86_64, ia64.
83909         * tests/test-vasnprintf-posix.c: Include float.h.
83910         (LDBL80_WORDS): New macro.
83911         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
83912         on i386, x86_64, ia64.
83913         * tests/test-vasprintf-posix.c: Include float.h.
83914         (LDBL80_WORDS): New macro.
83915         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
83916         on i386, x86_64, ia64.
83917         * tests/test-snprintf-posix.c: Include float.h.
83918         * tests/test-sprintf-posix.c: Likewise.
83919         * tests/test-vsnprintf-posix.c: Likewise.
83920         * tests/test-vsprintf-posix.c: Likewise.
83922 2007-06-05  Bruno Haible  <bruno@clisp.org>
83924         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
83925         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
83926         non-IEEE numbers on i386, x86_64, ia64.
83927         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
83928         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
83929         * tests/test-isnanl.h: Include float.h.
83930         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
83932 2007-06-05  Bruno Haible  <bruno@clisp.org>
83934         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
83935         also the %a / %A. Handle the %a / %A code before this extra handling.
83937 2007-06-05  Bruno Haible  <bruno@clisp.org>
83939         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
83940         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
83942 2007-06-05  Bruno Haible  <bruno@clisp.org>
83944         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
83945         typo in variable name.
83947 2007-06-05  Eric Blake  <ebb9@byu.net>
83949         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
83950         Reported by Simon Josefsson.
83952 2007-06-04  Bruno Haible  <bruno@clisp.org>
83954         Avoid test failures on some PowerPC platforms.
83955         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
83956         Define differently for PowerPC.
83957         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
83958         Reported by Gary V. Vaughan <gary@gnu.org>.
83960 2007-06-02  Bruno Haible  <bruno@clisp.org>
83962         Fix test-stdint failure on FreeBSD/ia64.
83963         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
83964         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
83965         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
83966         * doc/headers/stdint.texi: Update.
83968 2007-06-01  Bruno Haible  <bruno@clisp.org>
83970         * tests/test-binary-io.c (main): Pass a third argument to open().
83971         Reported by Gary V. Vaughan <gary@gnu.org>.
83973 2007-06-01  Bruno Haible  <bruno@clisp.org>
83975         * doc/functions/frexpl.texi: Update for mingw.
83977 2007-06-01  Bruno Haible  <bruno@clisp.org>
83979         * tests/test-lseek.c (main): Disable test of errno for invalid third
83980         argument.
83981         * doc/functions/lseek.texi: Update.
83982         Reported by Gary V. Vaughan <gary@gnu.org>.
83984 2007-05-28  Bruno Haible  <bruno@clisp.org>
83986         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
83988 2007-05-31  Eric Blake  <ebb9@byu.net>
83990         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
83991         cross compiling.
83993 2007-05-30  Eric Blake  <ebb9@byu.net>
83994         and Bruno Haible  <bruno@clisp.org>
83996         Work around mingw test failures exposed by m4-1.4.9b.
83997         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
83998         * tests/test-unistd.c: Disable uid_t and git_t tests for the
83999         moment.
84001 2007-05-30  Bruno Haible  <bruno@clisp.org>
84003         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
84004         assuming that they are closed. Needed on HP-UX 11.
84006 2007-05-29  Bruno Haible  <bruno@clisp.org>
84008         Fix a problem with #include_next.
84009         * lib/dirent_.h: Split the double-inclusion guard.
84010         * lib/fcntl_.h: Likewise.
84011         * lib/float_.h: Likewise.
84012         * lib/iconv_.h: Likewise.
84013         * lib/inttypes_.h: Likewise.
84014         * lib/locale_.h: Likewise.
84015         * lib/math_.h: Likewise.
84016         * lib/netinet_in_.h: Likewise.
84017         * lib/search_.h: Likewise.
84018         * lib/signal_.h: Likewise.
84019         * lib/stdint_.h: Likewise.
84020         * lib/stdio_.h: Likewise.
84021         * lib/stdlib_.h: Likewise.
84022         * lib/string_.h: Likewise.
84023         * lib/sys_select_.h: Likewise.
84024         * lib/sys_socket_.h: Likewise.
84025         * lib/sys_stat_.h: Likewise.
84026         * lib/sys_time_.h: Likewise.
84027         * lib/sysexits_.h: Likewise.
84028         * lib/time_.h: Likewise.
84029         * lib/unistd_.h: Likewise.
84030         * lib/wchar_.h: Likewise.
84031         * lib/wctype_.h: Likewise.
84033 2007-05-29  Bruno Haible  <bruno@clisp.org>
84035         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
84036         for the moment.
84038 2007-05-29  Bruno Haible  <bruno@clisp.org>
84040         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
84041         invocation.
84042         Reported by Eric Blake.
84044 2007-05-29  Bruno Haible  <bruno@clisp.org>
84046         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
84047         compiling case.
84049 2007-05-29  Eric Blake  <ebb9@byu.net>
84050             Bruno Haible  <bruno@clisp.org>
84052         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
84053         cross compiles.
84055 2007-05-28  Eric Blake  <ebb9@byu.net>
84057         * modules/closein-tests (test_closein_LDADD): Support test on
84058         cygwin with libtool.
84060 2007-05-28  Bruno Haible  <bruno@clisp.org>
84062         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
84063         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
84064         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
84065         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
84066         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
84067         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
84068         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
84069         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
84070         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
84072 2007-05-28  Eric Blake  <ebb9@byu.net>
84074         Unconditionally include <config.h> in unit tests.
84075         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
84076         * tests/test-allocsa.c, tests/test-arcfour.c,
84077         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
84078         tests/test-array_list.c, tests/test-array_oset.c,
84079         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
84080         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
84081         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
84082         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
84083         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
84084         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
84085         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
84086         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
84087         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
84088         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
84089         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
84090         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
84091         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
84092         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
84093         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
84094         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
84095         test-md5.c, test-memmem.c, test-printf-posix.c,
84096         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
84097         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
84098         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
84099         test-strcasestr.c, test-striconv.c, test-striconveh.c,
84100         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
84101         test-vasnprintf-posix2.c, test-vasnprintf.c,
84102         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
84103         test-vfprintf-posix.c, test-vprintf-posix.c,
84104         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
84105         test-xvasprintf.c: Likewise.
84107 2007-05-28  Bruno Haible  <bruno@clisp.org>
84109         * gnulib-tool (func_import): Remember the --with-tests command-line
84110         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
84111         Reported by Eric Blake.
84113 2007-05-28  Bruno Haible  <bruno@clisp.org>
84115         * modules/ftell-tests: New file.
84116         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
84117         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
84119         * lib/ftell.c: New file.
84120         * modules/ftell: New file.
84121         * m4/ftell.m4: New file.
84122         * doc/functions/ftell.texi: Update.
84123         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
84124         REPLACE_FTELL.
84125         * lib/stdio_.h (rpl_ftell): New declaration.
84126         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
84127         REPLACE_FTELL.
84129 2007-05-28  Eric Blake  <ebb9@byu.net>
84131         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
84133 2007-05-28  Bruno Haible  <bruno@clisp.org>
84135         * modules/fseek-tests: New file.
84136         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
84137         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
84139         * lib/fseek.c: New file.
84140         * modules/fseek: New file.
84141         * m4/fseek.m4: New file.
84142         * doc/functions/fseek.texi: Update.
84143         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
84144         REPLACE_FSEEK.
84145         * lib/stdio_.h (rpl_fseek): New declaration.
84146         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
84147         REPLACE_FSEEK.
84149 2007-05-28  Bruno Haible  <bruno@clisp.org>
84151         * lib/stdio_.h (fflush): More comments.
84153 2007-05-28  Bruno Haible  <bruno@clisp.org>
84155         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
84156         runtime test.
84158 2007-05-28  Eric Blake  <ebb9@byu.net>
84160         Improve lseek module.
84161         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
84162         * lib/unistd_.h (lseek): Scale back link warning message.
84163         * tests/test-lseek.c: Beef up test.
84164         * tests/test-lseek.sh: Exercise more facets of lseek.
84165         Reported by Bruno Haible.
84167 2007-05-28  Bruno Haible  <bruno@clisp.org>
84169         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
84170         to define.
84172 2007-05-27  Bruno Haible  <bruno@clisp.org>
84174         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
84176 2007-05-27  Bruno Haible  <bruno@clisp.org>
84178         * modules/openmp: New file.
84179         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
84180         Noah Misch.
84182 2007-05-26  Bruno Haible  <bruno@clisp.org>
84184         * modules/chdir-long (Depends-on): Add fchdir.
84185         * modules/chdir-safer (Depends-on): Likewise.
84186         * modules/fts (Depends-on): Likewise.
84187         * modules/fts-lgpl (Depends-on): Likewise.
84188         * modules/openat (Depends-on): Likewise.
84189         * modules/savewd (Depends-on): Likewise.
84191 2007-05-24  Eric Blake  <ebb9@byu.net>
84193         Fix lseek on mingw.
84194         * modules/lseek: New module.
84195         * m4/lseek.m4: New file.
84196         * lib/lseek.c: New file.
84197         * modules/lseek-tests: New file.
84198         * tests/test-lseek.c: New file.
84199         * tests/test-lseek.sh: New file.
84200         * MODULES.html.sh: Document lseek module.
84201         * modules/fflush (Depends-on): Add lseek, fseeko.
84202         * modules/fseeko (Depends-on): Likewise.
84203         * modules/ftello (Depends-on): Likewise.
84204         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
84205         broken.
84206         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
84207         broken.
84208         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
84209         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
84210         * lib/ftello.c (rpl_ftello): Likewise.
84211         * tests/test-fseeko.c (main): Test this.
84212         * tests/test-fseeko.sh: Likewise.
84213         * tests/test-ftello.c (main): Likewise.
84214         * tests/test-ftello.sh: Likewise.
84215         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
84216         implies replacing fseek.
84217         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
84218         HAVE_FTELLO.
84219         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
84220         * modules/unistd (Makefile.am): Likewise.
84221         * lib/unistd_.h (lseek): Declare a replacement.
84222         * doc/functions/lseek.texi (lseek): Document this fix.
84223         * doc/functions/fseek.texi (fseek): Likewise.
84224         * doc/functions/ftell.texi (ftell): Likewise.
84226 2007-05-24  Bruno Haible  <bruno@clisp.org>
84228         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
84229         in the printed representation of a NaN.
84230         * tests/test-vasprintf-posix.c (test_function): Likewise.
84231         * tests/test-snprintf-posix.h (test_function): Likewise.
84232         * tests/test-sprintf-posix.h (test_function): Likewise.
84233         Reported by Eric Blake.
84235 2007-05-23  Eric Blake  <ebb9@byu.net>
84237         Fix fseeko/ftello on cygwin 1.5.24.
84238         * doc/functions/fseeko.texi (fseeko): Document the fix.
84239         * doc/functions/ftello.texi (ftello): Document the fix.
84240         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
84241         * doc/functions/stdout.text (stdout): New file.
84242         * doc/functions/stderr.text (stderr): New file.
84243         * doc/gnulib.texi (Function Substitutes): Use new files.
84244         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
84245         prior to 1.7.0.
84246         * tests/test-ftello.c (main): Likewise for ftello.
84247         * tests/test-fseeko.sh: New file.
84248         * tests/test-ftello.sh: New file.
84249         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
84250         with seekable stdin.
84251         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
84252         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
84253         (gl_REPLACE_FSEEKO): New macro.
84254         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
84255         * modules/fseeko (Files): Distribute fseeko.c.
84256         * modules/ftello (Files): Distribute ftello.c.
84257         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
84258         mode.
84259         * lib/ftello.c (rpl_ftello): New file.
84260         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
84261         fseeko, ftello.
84262         (gl_STDIN_LARGE_OFFSET): New macro.
84263         * modules/stdio (Makefile.am): Perform the replacement.
84264         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
84266 2007-05-23  Bruno Haible  <bruno@clisp.org>
84268         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
84269         GNULIB_POSIXCHECK is defined.
84271 2007-05-21  Bruno Haible  <bruno@clisp.org>
84273         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
84274         Check also the output for NaN arguments. When cross-compiling, guess
84275         no on IRIX.
84276         * lib/vasnprintf.c: Update comments.
84277         * tests/test-vasnprintf-posix.c (strisnan): New function.
84278         (test_function): Use it.
84279         * tests/test-vasprintf-posix.c (strisnan): New function.
84280         (test_function): Use it.
84281         * tests/test-snprintf-posix.h (strisnan): New function.
84282         (test_function): Use it.
84283         * tests/test-sprintf-posix.h (strisnan): New function.
84284         (test_function): Use it.
84285         Reported by Eric Blake.
84287 2007-05-20  Bruno Haible  <bruno@clisp.org>
84289         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
84290         numbers that fails on BeOS.
84291         * doc/functions/frexpl.texi: Update.
84293 2007-05-20  Jim Meyering  <jim@meyering.net>
84295         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
84296         forced upon us by glibc-2.6.
84298 2007-05-20  Bruno Haible  <bruno@clisp.org>
84300         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
84301         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
84302         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
84303         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
84304         NEED_PRINTF_INFINITE.
84305         (is_infinitel): New function.
84306         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
84307         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
84308         gl_PREREQ_VASNPRINTF_INFINITE.
84309         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
84310         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
84311         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
84312         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
84313         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
84314         gl_PREREQ_VASNPRINTF_INFINITE.
84315         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
84316         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
84317         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
84318         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
84319         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
84320         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
84321         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
84322         * doc/functions/fprintf.texi: Update.
84323         * doc/functions/printf.texi: Update.
84324         * doc/functions/snprintf.texi: Update.
84325         * doc/functions/sprintf.texi: Update.
84326         * doc/functions/vfprintf.texi: Update.
84327         * doc/functions/vprintf.texi: Update.
84328         * doc/functions/vsnprintf.texi: Update.
84329         * doc/functions/vsprintf.texi: Update.
84331 2007-05-20  Bruno Haible  <bruno@clisp.org>
84333         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
84334         was not found in libc.
84335         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
84337 2007-05-20  Bruno Haible  <bruno@clisp.org>
84339         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
84340         printed as "-nan" instead of "nan".
84341         * tests/test-vasprintf-posix.c (test_function): Likewise.
84342         * tests/test-snprintf-posix.h (test_function): Likewise.
84343         * tests/test-sprintf-posix.h (test_function): Likewise.
84344         Needed for HP-UX 11.
84346 2007-05-20  Jim Meyering  <jim@meyering.net>
84348         Fix buggy test for the fchownat-deref bug.
84349         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
84350         symlink required for the run-test.  Without it, this test would
84351         always declare that fchownat doesn't work, and client code would
84352         unnecessarily use the replacement function with fixed libc.
84353         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
84354         Reported by Greg Schafer.
84356 2007-05-19  Bruno Haible  <bruno@clisp.org>
84358         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
84359         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
84360         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
84361         Needed for IRIX 6.5 and Solaris 2.5.1.
84363 2007-05-19  Bruno Haible  <bruno@clisp.org>
84365         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
84366         (test_function): Skip tests involving -0.0 on platforms where
84367         -0.0 = 0.0.
84368         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
84369         (test_function): Skip tests involving -0.0 on platforms where
84370         -0.0 = 0.0.
84371         * tests/test-snprintf-posix.h (have_minus_zero): New function.
84372         (test_function): Skip tests involving -0.0 on platforms where
84373         -0.0 = 0.0.
84374         * tests/test-sprintf-posix.h (have_minus_zero): New function.
84375         (test_function): Skip tests involving -0.0 on platforms where
84376         -0.0 = 0.0.
84377         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
84378         tests.
84379         * tests/test-printf-posix.h (test_function): Likewise.
84380         * tests/test-printf-posix.output: Remove all -0.0 related results.
84381         Needed for IRIX 6.5.
84383 2007-05-19  Bruno Haible  <bruno@clisp.org>
84385         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
84386         printed as "nan0x7fffffff" instead of "nan".
84387         * tests/test-vasprintf-posix.c (test_function): Likewise.
84388         * tests/test-snprintf-posix.h (test_function): Likewise.
84389         * tests/test-sprintf-posix.h (test_function): Likewise.
84390         * tests/test-fprintf-posix.h (NaN): Remove macro.
84391         (test_function): Remove all NaN related tests.
84392         * tests/test-printf-posix.h (NaN): Remove macro.
84393         (test_function): Remove all NaN related tests.
84394         * tests/test-printf-posix.output: Remove all NaN related results.
84395         Needed for IRIX 6.5.
84397 2007-05-19  Bruno Haible  <bruno@clisp.org>
84399         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
84400         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
84402 2007-05-19  Bruno Haible  <bruno@clisp.org>
84404         * lib/float_.h: New file.
84405         * m4/float_h.m4: New file.
84406         * modules/float: New file.
84407         * modules/isnanl (Dependencies): Add float.
84408         * modules/isnanl-nolibm (Dependencies): Likewise.
84409         * modules/mathl (Dependencies): Likewise.
84410         * modules/printf-frexpl (Dependencies): Likewise.
84411         * modules/signbit (Dependencies): Likewise.
84412         * modules/vasnprintf (Dependencies): Likewise.
84413         * doc/headers/float.texi: Update.
84415 2007-05-19  Jim Meyering  <jim@meyering.net>
84417         * lib/utimens.c (gl_futimens): Rename from futimens,
84418         now that glibc-2.6 declares futimens.
84419         * lib/utimens.h: Likewise.
84421 2007-05-19  Bruno Haible  <bruno@clisp.org>
84423         Avoid test failures on mingw.
84424         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
84425         * tests/test-printf-posix.sh: Likewise.
84426         * tests/test-vfprintf-posix.sh: Likewise.
84427         * tests/test-vprintf-posix.sh: Likewise.
84429 2007-05-19  Bruno Haible  <bruno@clisp.org>
84431         Fix *printf result for NaN, Inf, -0.0 on mingw.
84432         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
84433         * lib/vasnprintf.c: Include math.h and isnan.h.
84434         (is_infinite_or_zero): New function.
84435         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
84436         values in the %f, %F, %e, %E, %g, %G directives.
84437         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
84438         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
84439         gl_PRINTF_INFINITE and test its result. Invoke
84440         gl_PREREQ_VASNPRINTF_INFINITE.
84441         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
84442         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
84443         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
84444         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
84445         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
84446         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
84447         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
84448         * doc/functions/fprintf.texi: Update.
84449         * doc/functions/printf.texi: Update.
84450         * doc/functions/snprintf.texi: Update.
84451         * doc/functions/sprintf.texi: Update.
84452         * doc/functions/vfprintf.texi: Update.
84453         * doc/functions/vprintf.texi: Update.
84454         * doc/functions/vsnprintf.texi: Update.
84455         * doc/functions/vsprintf.texi: Update.
84457 2007-05-19  Bruno Haible  <bruno@clisp.org>
84459         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
84460         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
84461         Instead of multiplying with 10^k, set extra_zeroes to k.
84462         (scale10_round_long_double): Remove function.
84464 2007-05-18  Bruno Haible  <bruno@clisp.org>
84466         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
84467         introduced on 2007-05-06.
84469 2007-05-18  Bruno Haible  <bruno@clisp.org>
84471         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
84472         %g directives.
84473         * tests/test-vasprintf-posix.c (test_function): Likewise.
84474         * tests/test-snprintf-posix.h (test_function): Likewise.
84475         * tests/test-sprintf-posix.h (test_function): Likewise.
84477 2007-05-18  Bruno Haible  <bruno@clisp.org>
84479         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
84480         (strmatch): New function.
84481         (test_function): Test the %f directive on numbers of various exponents.
84482         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
84483         (strmatch): New function.
84484         (test_function): Test the %f directive on numbers of various exponents.
84485         * tests/test-snprintf-posix.h (strmatch): New function.
84486         (test_function): Test the %f directive on numbers of various exponents.
84487         * tests/test-sprintf-posix.h (strmatch): New function.
84488         (test_function): Test the %f directive on numbers of various exponents.
84489         * tests/test-snprintf-posix.c (SIZEOF): New macro.
84490         * tests/test-sprintf-posix.c (SIZEOF): New macro.
84491         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
84492         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
84494 2007-05-18  Bruno Haible  <bruno@clisp.org>
84496         Add support for 'long double' number output.
84497         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
84498         * lib/vasnprintf.c: Include math.h and float+.h.
84499         (mp_limb_t): New type.
84500         (GMP_LIMB_BITS): New macro.
84501         (mp_twolimb_t): New type.
84502         (GMP_TWOLIMB_BITS): New macro.
84503         (mpn_t): New type.
84504         (multiply, divide, convert_to_decimal, decode_long_double,
84505         scale10_round_long_double, scale10_round_decimal_long_double,
84506         floorlog10l): New functions.
84507         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
84508         for the %f, %F, %e, %E, %g, %G directives.
84509         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
84510         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
84511         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
84512         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
84513         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
84514         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
84515         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
84516         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
84517         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
84518         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
84519         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
84520         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
84521         * modules/snprintf-posix (Depends-on): Likewise.
84522         * modules/sprintf-posix (Depends-on): Likewise.
84523         * modules/vasnprintf-posix (Depends-on): Likewise.
84524         * modules/vasprintf-posix (Depends-on): Likewise.
84525         * modules/vfprintf-posix (Depends-on): Likewise.
84526         * modules/vsnprintf-posix (Depends-on): Likewise.
84527         * modules/vsprintf-posix (Depends-on): Likewise.
84528         * modules/vasnprintf (Files): Add lib/float+.h.
84529         * doc/functions/fprintf.texi: Update.
84530         * doc/functions/printf.texi: Update.
84531         * doc/functions/snprintf.texi: Update.
84532         * doc/functions/sprintf.texi: Update.
84533         * doc/functions/vfprintf.texi: Update.
84534         * doc/functions/vprintf.texi: Update.
84535         * doc/functions/vsnprintf.texi: Update.
84536         * doc/functions/vsprintf.texi: Update.
84538 2007-05-18  Bruno Haible  <bruno@clisp.org>
84540         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
84542 2007-05-18  Bruno Haible  <bruno@clisp.org>
84544         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
84545         for printing 64-bit integers. Needed for mingw.
84547 2007-05-18  Bruno Haible  <bruno@clisp.org>
84549         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
84550         gl_FUNC_FREXPL_WORKS.
84551         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
84553 2007-05-18  Bruno Haible  <bruno@clisp.org>
84555         * modules/frexpl-nolibm-tests: New file.
84557         * modules/frexpl-nolibm: New file.
84558         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
84560 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
84562         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
84563         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
84564         GCC 4.2, which otherwise issues a lot of warnings.
84565         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
84566         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
84567         Likewise.
84568         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
84569         * modules/iconv_open (iconv.h): Likewise.
84570         * modules/locale (locale.h): Likewise.
84571         * modules/netinet_in (netinet/in.h): Likewise.
84572         * modules/sys_select (sys_select.h): Likewise.
84573         * modules/sys_socket (sys/socket.h): Likewise.
84574         * modules/sys_stat (sys/stat.h): Likewise.
84575         * modules/sysexits (sysexits.h): Likewise.
84576         * modules/unistd (unistd.h): Likewise.
84578 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
84580         * modules/closein-tests (Makefile.am): Distribute
84581         `test-closein.sh'.
84583 2007-05-17  Bruno Haible  <bruno@clisp.org>
84585         * tests/test-printf-posix.output: Renamed from
84586         tests/test-fprintf-posix.out.
84587         * modules/fprintf-posix-tests: Update.
84588         * modules/printf-posix-tests: Update.
84589         * modules/vfprintf-posix-tests: Update.
84590         * modules/vprintf-posix-tests: Update.
84591         * tests/test-fprintf-posix.sh: Update.
84592         * tests/test-printf-posix.sh: Update.
84593         * tests/test-vfprintf-posix.sh: Update.
84594         * tests/test-vprintf-posix.sh: Update.
84595         Reported by Ralf Wildenhues.
84597 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
84599         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
84600         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
84601         GCC 4.2, which otherwise issues a lot of warnings.
84602         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
84603         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
84604         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
84605         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
84606         it should no longer be needed.
84607         * lib/string_.h: Likewise.
84608         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
84609         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
84610         * modules/inttypes (inttypes.h): Likewise.
84611         * modules/math (math.h): Likewise.
84612         * modules/search (search.h): Likewise.
84613         * modules/signal (signal.h): Likewise.
84614         * modules/stdint (stdint.h): Likewise.
84615         * modules/stdio (stdio.h): Likewise.
84616         * modules/stdlib (stdlib.h): Likewise.
84617         * modules/string (string.h): Likewise.
84618         * modules/sys_time (sys/time.h): Likewise.
84619         * modules/time (time.h): Likewise.
84620         * modules/wchar (wchar.h): Likewise.
84621         * modules/wctype (wtype.h): Likewise.
84623 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
84625         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
84627 2007-05-13  Bruno Haible  <bruno@clisp.org>
84629         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
84630         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
84631         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
84632         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
84633         (gl_PREREQ_STRTOK_R): Don't require it here.
84635 2007-05-13  Bruno Haible  <bruno@clisp.org>
84637         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
84638         when used in C++ mode.
84640 2007-05-12  Bruno Haible  <bruno@clisp.org>
84642         * lib/linebuffer.h: Tweak doc.
84643         * lib/linebuffer.c: Likewise.
84645 2007-05-12  James Youngman  <jay@gnu.org>
84647         * lib/linebuffer.c (readlinebuffer_delim): New function,
84648         like readlinebuffer, but use a caller-specified delimiter.
84649         (readlinebuffer): Just call readlinebuffer_delim with '\n'
84650         as the delimiter.
84651         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
84653 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
84655         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
84656         * modules/openat (Files): Remove openat-die.c.
84657         (Depends-on): Add openat-die.
84658         * modules/openat-die: New module.
84660 2007-05-06  Bruno Haible  <bruno@clisp.org>
84662         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
84663         Update with info about Cygwin.
84664         * doc/functions/fprintf.texi: Update.
84665         * doc/functions/printf.texi: Update.
84666         * doc/functions/snprintf.texi: Update.
84667         * doc/functions/sprintf.texi: Update.
84668         * doc/functions/vfprintf.texi: Update.
84669         * doc/functions/vprintf.texi: Update.
84670         * doc/functions/vsnprintf.texi: Update.
84671         * doc/functions/vsprintf.texi: Update.
84672         Reported by Eric Blake.
84674 2007-05-06  Bruno Haible  <bruno@clisp.org>
84676         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
84677         padding ourselves for the floating-point directives.
84678         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
84679         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
84680         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
84681         gl_PRINTF_FLAG_ZERO and test its result. Invoke
84682         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
84683         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
84684         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
84685         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
84686         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
84687         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
84688         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
84689         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
84690         * tests/test-snprintf-posix.h (test_function): Also check the width
84691         and some flags in the %f directive.
84692         * tests/test-sprintf-posix.h (test_function): Likewise.
84693         * tests/test-vasnprintf-posix.c (test_function): Likewise.
84694         * tests/test-vasprintf-posix.c (test_function): Likewise.
84695         * doc/functions/fprintf.texi: Update.
84696         * doc/functions/printf.texi: Update.
84697         * doc/functions/snprintf.texi: Update.
84698         * doc/functions/sprintf.texi: Update.
84699         * doc/functions/vfprintf.texi: Update.
84700         * doc/functions/vprintf.texi: Update.
84701         * doc/functions/vsnprintf.texi: Update.
84702         * doc/functions/vsprintf.texi: Update.
84704 2007-05-06  Bruno Haible  <bruno@clisp.org>
84706         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
84707         pass the ' flag character to sprintf or snprintf.
84708         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
84709         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
84710         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
84711         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
84712         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
84713         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
84714         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
84715         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
84716         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
84717         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
84718         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
84719         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
84720         * tests/test-snprintf-posix.h (test_function): Also check the grouping
84721         flag.
84722         * tests/test-sprintf-posix.h (test_function): Likewise.
84723         * tests/test-vasnprintf-posix.c (test_function): Likewise.
84724         * tests/test-vasprintf-posix.c (test_function): Likewise.
84725         * doc/functions/fprintf.texi: Update.
84726         * doc/functions/printf.texi: Update.
84727         * doc/functions/snprintf.texi: Update.
84728         * doc/functions/sprintf.texi: Update.
84729         * doc/functions/vfprintf.texi: Update.
84730         * doc/functions/vprintf.texi: Update.
84731         * doc/functions/vsnprintf.texi: Update.
84732         * doc/functions/vsprintf.texi: Update.
84734 2007-05-01  Bruno Haible  <bruno@clisp.org>
84736         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
84738 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
84740         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
84741         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
84743 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
84745         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
84746         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
84747         <http://lists.gnu.org/r/bug-gnulib/2007-05/msg00021.html>.
84749 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
84751         * lib/argp-help.c (struct hol_entry): New member `ord'.
84752         (HOL_ENTRY_PTRCMP): Use ord for comparison
84753         (hol_sort): Initialize ord.
84755 2007-05-01  Bruno Haible  <bruno@clisp.org>
84757         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
84758         Reported by Eric Blake.
84759         * doc/gnulib.texi (Function Substitutes): Update.
84761 2007-05-01  Bruno Haible  <bruno@clisp.org>
84763         * doc/functions.texi: Remove file, now redundant through
84764         doc/functions/*.texi.
84766 2007-05-01  Bruno Haible  <bruno@clisp.org>
84768         * modules/argp (Depends-on): Add sleep.
84770 2007-05-01  Bruno Haible  <bruno@clisp.org>
84772         * modules/sleep-tests: New file.
84773         * tests/test-sleep.c: New file.
84775         * modules/sleep: New file.
84776         * lib/sleep.c: New file.
84777         * m4/sleep.m4: New file.
84778         * lib/unistd_.h (sleep): New declaration.
84779         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
84780         HAVE_SLEEP.
84781         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
84782         * doc/functions/sleep.texi: Document the sleep module.
84784 2007-05-01  Bruno Haible  <bruno@clisp.org>
84786         * lib/sigprocmask.h: Remove file.
84787         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
84788         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
84789         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
84790         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
84791         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
84792         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
84793         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
84794         HAVE_SIGSET_T as a shell variable.
84795         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
84796         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
84797         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
84798         (Depends-on): Add signal. Remove verify.
84799         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
84800         (Include): Mention <signal.h> instead of sigprocmask.h.
84801         * NEWS: Mention the change.
84802         * lib/fatal-signal.c: Don't include sigprocmask.h.
84804 2007-05-01  Bruno Haible  <bruno@clisp.org>
84806         * modules/signal: New file.
84807         * lib/signal_.h: New file.
84808         * m4/signal_h.m4: New file.
84810 2007-05-01  Bruno Haible  <bruno@clisp.org>
84812         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
84813         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
84814         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
84815         HAVE_WCTYPE_CTMP_BUG into wctype.h.
84817 2007-05-01  Bruno Haible  <bruno@clisp.org>
84819         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
84820         configure time.
84821         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
84822         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
84823         * modules/sys_stat (Makefile.am): Substitute their values into
84824         sys/stat.h.
84826 2007-05-01  Bruno Haible  <bruno@clisp.org>
84828         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
84829         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
84830         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
84832 2007-05-01  Bruno Haible  <bruno@clisp.org>
84834         * doc/header/assert.texi: Undo last change: don't mention the gnulib
84835         'assert' module here.
84837 2007-05-01  Bruno Haible  <bruno@clisp.org>
84839         * doc/functions/*.texi: New files.
84840         * doc/functions/google-ranking.txt: New file.
84841         * doc/gnulib.texi (Function Substitutes): New chapter.
84842         (ctime, inet_ntoa): Remove sections.
84843         * doc/ctime.texi: Remove file.
84844         * doc/inet_ntoa.texi: Remove file.
84845         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
84846         dependencies.
84847         (%.info): New rule, specifying a --reference-limit.
84849 2007-05-01  Bruno Haible  <bruno@clisp.org>
84851         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
84853 2007-05-01  Bruno Haible  <bruno@clisp.org>
84855         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
84856         the portability of 'mkdir' to mingw systems.
84858 2007-05-01  Bruno Haible  <bruno@clisp.org>
84860         * doc/headers/google-ranking.txt: New file.
84862 2007-04-30  Eric Blake  <ebb9@byu.net>
84864         Prefer fseeko to fseek.
84865         * modules/getpass (Depends-on): Add fseeko.
84866         * lib/getpass.c (getpass): Use fseeko, not fseek.
84868 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
84870         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
84871         assumes the sorting is stable, while most qsort implementations
84872         are not.  Use argument addresses to ensure they never compare as
84873         equal.
84875         * tests/test-argp-2.sh (usage-indent test): Fix output
84876         (func_compare): Restore diff options
84877         * tests/test-argp.c: Restore #include "progname.h"
84879 2007-04-29  Bruno Haible  <bruno@clisp.org>
84881         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
84882         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
84883         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
84884         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
84885         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
84886         (configure.ac): Define CHECK_SNPRINTF_POSIX.
84887         (TESTS, check_PROGRAMS): Add test-snprintf.
84888         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
84889         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
84890         (TESTS, check_PROGRAMS): Add test-vsnprintf.
84891         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
84892         assertions that fail on HP-UX, OSF/1, or IRIX.
84893         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
84895 2007-04-29  Bruno Haible  <bruno@clisp.org>
84897         * MODULES.html.sh (posix_functions): Remove 'contents'.
84899 2007-04-29  Karl Berry  <karl@gnu.org>
84901         * config/srclist.txt (gendocs_template_min): new entry.
84903 2007-04-29  Bruno Haible  <bruno@clisp.org>
84905         Work around fpurge bug on BSD systems.
84906         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
84907         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
84908         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
84909         fpurge to rpl_fpurge if the system already has this function.
84910         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
84911         the case where the system already has this function. Correct invariants
84912         on BSD systems.
84913         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
84914         BSD systems.
84916 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
84918         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
84919         proposed by Sven Verdoolaege.
84921         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
84922         options.
84923         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
84924         (usage and help tests): Update
84926 2007-04-29  Bruno Haible  <bruno@clisp.org>
84928         * tests/test-fflush.c (main): Use a file of size 17, not 10.
84929         Print more information in case of failure. Disable a test on BeOS.
84931 2007-04-29  Bruno Haible  <bruno@clisp.org>
84933         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
84934         This helps debugging on systems on which no gdb is available.
84936 2007-04-29  Bruno Haible  <bruno@clisp.org>
84938         * lib/freading.h: Improve comments.
84939         * lib/fwriting.h: Likewise.
84940         * tests/test-freading.c (main): Don't check freading immediately after
84941         repositioning. Needed for glibc.
84943 2007-04-29  Bruno Haible  <bruno@clisp.org>
84945         * lib/freading.c (freading): Trivial simplification.
84947 2007-04-28  Bruno Haible  <bruno@clisp.org>
84949         * tests/test-fwriting.c (main): Also test the interaction between
84950         fflush and fwriting.
84951         * modules/fwriting-tests (Depends-on): Add fflush.
84953         * tests/test-freading.c (main): Also test the interaction between
84954         fflush and freading.
84955         * modules/freading-tests (Depends-on): Add fflush.
84957 2007-04-28  Bruno Haible  <bruno@clisp.org>
84959         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
84960         fseeko and ftello.
84961         Suggested by Eric Blake.
84963 2007-04-28  Jim Meyering  <jim@meyering.net>
84965         Avoid false-negative in gl_STDINT_H's C99 conformance test.
84966         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
84967         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
84969 2007-04-27  Eric Blake  <ebb9@byu.net>
84971         * doc/headers/assert.texi (assert.h): Document assert module use.
84973 2007-04-27  Bruno Haible  <bruno@clisp.org>
84975         * doc/headers/*.texi: New files.
84976         * doc/gnulib.texi (Header File Substitutes): New chapter.
84977         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
84978         dependencies.
84979         (standards.info ,standards.html, standards.dvi): Update dependencies.
84980         (mostlyclean, clean): New targets.
84982 2007-04-27  Bruno Haible  <bruno@clisp.org>
84984         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
84985         * modules/sysexits (Files, Makefile.am): Update.
84987         * lib/sys_socket_.h: Renamed from lib/socket_.h.
84988         * modules/sys_socket (Files, Makefile.am): Update.
84990         * lib/sys_stat_.h: Renamed from lib/stat_.h.
84991         * modules/sys_stat (Files, Makefile.am): Update.
84993 2007-04-27  Eric Blake  <ebb9@byu.net>
84995         * lib/freading.h: Improve comments.
84996         * lib/fwriting.h: Likewise.
84997         * lib/fflush.c: Likewise.
84999         Fix closein for mingw.
85000         * modules/closein-tests: Add tests for closein.
85001         * tests/test-closein.c: New file.
85002         * tests/test-closein.sh: Likewise.
85003         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
85004         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
85006 2007-04-27  Bruno Haible  <bruno@clisp.org>
85008         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
85009         version is < 6.
85010         * lib/math_.h [__DECC]: Likewise.
85011         * lib/stdio_.h [__DECC]: Likewise.
85012         * lib/stdlib_.h [__DECC]: Likewise.
85013         * lib/string_.h [__DECC]: Likewise.
85014         * lib/time_.h [__DECC]: Likewise.
85015         * lib/wchar_.h [__DECC]: Likewise.
85016         * lib/wctype_.h [__DECC]: Likewise.
85018 2007-04-27  Bruno Haible  <bruno@clisp.org>
85020         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
85022 2007-04-27  Bruno Haible  <bruno@clisp.org>
85024         * lib/fflush.c: Add comments.
85025         * modules/fpurge-tests (Depends-on): Add fflush.
85026         * modules/freadable-tests (Depends-on): Likewise.
85027         * modules/fwritable-tests (Depends-on): Likewise.
85029 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
85031         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
85032         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
85033         Report by Bruno Haible <bruno@clisp.org>.
85035 2007-04-26  Eric Blake  <ebb9@byu.net>
85037         Fix fflush on mingw.
85038         * modules/fflush (Depends-on): Add freading.
85039         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
85040         but unread data.
85042 2007-04-26  Eric Blake  <ebb9@byu.net>
85043         and Bruno Haible  <bruno@clisp.org>
85045         Implement freading and fwriting.
85046         * lib/freading.c: New file.
85047         * lib/freading.h: Likewise.
85048         * m4/freading.m4: Likewise.
85049         * modules/freading: Likewise.
85050         * modules/freading-tests: Likewise.
85051         * tests/test-freading.c: Likewise.
85052         * lib/fwriting.c: New file.
85053         * lib/fwriting.h: Likewise.
85054         * m4/fwriting.m4: Likewise.
85055         * modules/fwriting: Likewise.
85056         * modules/fwriting-tests: Likewise.
85057         * tests/test-fwriting.c: Likewise.
85058         * MODULES.html.sh (File stream based Input/Output): Mention them.
85060 2007-04-26  Bruno Haible  <bruno@clisp.org>
85062         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
85063         'long' when we assume it.
85064         Suggested by Eric Blake.
85066 2007-04-26  Bruno Haible  <bruno@clisp.org>
85068         Ensure fseeko, ftello are declared on glibc systems.
85069         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
85070         * modules/fseeko (configure.ac-early): Likewise.
85071         * modules/ftello (configure.ac-early): Likewise.
85072         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
85073         AC_FUNC_FSEEKO for this.
85074         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
85075         (gl_CHECK_FSEEKO): Remove macro.
85077 2007-04-26  Bruno Haible  <bruno@clisp.org>
85079         * tests/test-fflush.c (main): Also check the ftell result after
85080         fflush and fseek/fseeko.
85081         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
85082         file descriptor position cache in the stream.
85083         * lib/fseeko.c (rpl_fseeko): Likewise.
85085 2007-04-26  Bruno Haible  <bruno@clisp.org>
85087         * modules/fflush-tests (Depends-on): Add fseeko.
85089 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
85090             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
85092         * lib/argz_.h: ensure error_t definition is obtained in same
85093         mechanism system argz.h would have.
85094         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
85095         argz facilities are known bad.  Err on the side of caution if
85096         cross-compiling.
85098 2007-04-25  Eric Blake  <ebb9@byu.net>
85100         * lib/fpurge.c (includes): Use stdlib.h for free.
85101         * tests/test-fflush.c (main): Also test fflush-fseeko.
85103 2007-04-25  Bruno Haible  <bruno@clisp.org>
85105         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
85106         * lib/fseeko.c: New file.
85107         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
85108         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
85109         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
85110         gl_FUNC_FSEEKO.
85111         (gl_FUNC_FSEEKO): Invoke it.
85112         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
85113         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
85114         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
85116 2007-04-25  Bruno Haible  <bruno@clisp.org>
85118         * modules/fflush (Depends-on): Add ftello.
85120 2007-04-25  Bruno Haible  <bruno@clisp.org>
85122         * modules/ftello-tests: New file.
85123         * tests/test-ftello.c: New file.
85125         * modules/ftello: New file.
85126         * m4/ftello.m4: New file.
85127         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
85128         HAVE_FTELLO.
85129         * lib/stdio_.h (ftello): New declaration.
85130         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
85131         HAVE_FTELLO.
85133 2007-04-25  Bruno Haible  <bruno@clisp.org>
85135         * modules/fseeko-tests: New file.
85136         * tests/test-fseeko.c: New file.
85138         * modules/fseeko: New file.
85139         * m4/fseeko.m4: New file.
85140         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
85141         HAVE_FSEEKO.
85142         * lib/stdio_.h (fseeko): New declaration.
85143         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
85144         HAVE_FSEEKO.
85146 2007-04-25  Bruno Haible  <bruno@clisp.org>
85148         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
85150 2007-04-25  Bruno Haible  <bruno@clisp.org>
85152         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
85153         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
85154         * tests/test-unistd.c: Likewise.
85155         * tests/test-fcntl.c: Likewise.
85157 2007-04-23  Eric Blake  <ebb9@byu.net>
85159         * lib/fflush.c: Fix missing include.
85160         Reported by Bruno Haible.
85162 2007-04-23  Bruno Haible  <bruno@clisp.org>
85164         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
85165         Reported by Eric Blake.
85167 2007-04-23  Bruno Haible  <bruno@clisp.org>
85169         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
85171 2007-04-23  Bruno Haible  <bruno@clisp.org>
85173         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
85175 2007-04-23  Bruno Haible  <bruno@clisp.org>
85177         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
85178         Needed on HP-UX 11.
85180 2007-04-16  Eric Blake  <ebb9@byu.net>
85182         Make fflush rely on fpurge.
85183         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
85184         open coding all variants.
85185         * modules/fflush (Depends-on): Add fpurge and unistd.
85186         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
85187         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
85189         Fix --with-tests compilation on cygwin.
85190         * modules/argmatch-tests (Makefile.am): List gnulib library first
85191         in LDADD.
85192         * modules/argp-tests (Makefile.am): Likewise.
85193         * modules/array-list-tests (Makefile.am): Likewise.
85194         * modules/array-oset-tests (Makefile.am): Likewise.
85195         * modules/avltree-list-tests (Makefile.am): Likewise.
85196         * modules/avltree-oset-tests (Makefile.am): Likewise.
85197         * modules/avltreehash-list-tests (Makefile.am): Likewise.
85198         * modules/carray-list-tests (Makefile.am): Likewise.
85199         * modules/dirname-tests (Makefile.am): Likewise.
85200         * modules/frexp-tests (Makefile.am): Likewise.
85201         * modules/isnanl-tests (Makefile.am): Likewise.
85202         * modules/linked-list-tests (Makefile.am): Likewise.
85203         * modules/linkedhash-list-tests (Makefile.am): Likewise.
85204         * modules/lock-tests (Makefile.am): Likewise.
85205         * modules/rbtree-list-tests (Makefile.am): Likewise.
85206         * modules/rbtree-oset-tests (Makefile.am): Likewise.
85207         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
85208         * modules/tls-tests (Makefile.am): Likewise.
85209         * modules/tsearch-tests (Makefile.am): Likewise.
85210         * modules/xvasprintf-tests (Makefile.am): Likewise.
85212         Fix fpurge for cygwin.
85213         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
85214         value.
85215         * modules/fpurge-tests (Depends-on): Clean up trash.
85217 2007-04-16  Simon Josefsson  <simon@josefsson.org>
85219         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
85221         * m4/autobuild.m4: Re-indent.
85223 2007-04-13  Bruno Haible  <bruno@clisp.org>
85225         * modules/fpurge-tests: New file.
85226         * tests/test-fpurge.c: New file.
85228         * modules/fpurge: New file.
85229         * lib/fpurge.h: New file.
85230         * lib/fpurge.c: New file.
85231         * m4/fpurge.m4: New file.
85233 2007-04-13  Bruno Haible  <bruno@clisp.org>
85235         * modules/fbufmode-tests: New file.
85236         * tests/test-fbufmode.c: New file.
85238         * modules/fbufmode: New file.
85239         * lib/fbufmode.h: New file.
85240         * lib/fbufmode.c: New file.
85241         * m4/fbufmode.m4: New file.
85243 2007-04-13  Bruno Haible  <bruno@clisp.org>
85245         * modules/fwritable-tests: New file.
85246         * tests/test-fwritable.c: New file.
85248         * modules/fwritable: New file.
85249         * lib/fwritable.h: New file.
85250         * lib/fwritable.c: New file.
85251         * m4/fwritable.m4: New file.
85253 2007-04-13  Bruno Haible  <bruno@clisp.org>
85255         * modules/freadable-tests: New file.
85256         * tests/test-freadable.c: New file.
85258         * modules/freadable: New file.
85259         * lib/freadable.h: New file.
85260         * lib/freadable.c: New file.
85261         * m4/freadable.m4: New file.
85263 2007-04-13  Bruno Haible  <bruno@clisp.org>
85265         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
85266         MOSTLYCLEANFILES.
85268 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
85270         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
85271         gzip bootstrap.conf to avoid dragging in i18n machinery.
85272         (gnulib_tool_option): Use it.
85274 2007-04-13  Bruno Haible  <bruno@clisp.org>
85276         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
85277         %F directives.
85278         * tests/test-vasprintf-posix.c (test_function): Likewise.
85279         * tests/test-snprintf-posix.h (test_function): Likewise.
85280         * tests/test-sprintf-posix.h (test_function): Likewise.
85281         * tests/test-fprintf-posix.h (test_function): Likewise.
85282         * tests/test-printf-posix.h (test_function): Likewise.
85283         * tests/test-fprintf-posix.out: Likewise.
85285 2007-04-13  Bruno Haible  <bruno@clisp.org>
85287         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
85288         * modules/tls-tests (configure.ac): Likewise.
85289         Reported by Arto C. Nirkko <anirkko@insel.ch>.
85291 2007-04-13  Bruno Haible  <bruno@clisp.org>
85293         * lib/tls.c (glthread_tls_get): Fix return type.
85294         Patch by Arto C. Nirkko <anirkko@insel.ch>.
85296 2007-04-12  Eric Blake  <ebb9@byu.net>
85298         * modules/gettime (Depends-on): Remove gettime.
85299         Reported by Dmitry V. Levin.
85301 2007-04-12  Bruno Haible  <bruno@clisp.org>
85303         * modules/fflush (Include): Mention <stdio.h>.
85304         * modules/strtoimax (Include): Mention <inttypes.h>.
85305         * modules/strtoumax (Include): Likewise.
85307 2007-04-12  Eric Blake  <ebb9@byu.net>
85309         * .cvsignore: New file.
85310         * .gitignore: Likewise.
85312 2007-04-12  Bruno Haible  <bruno@clisp.org>
85314         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
85315         not before, since $(LDADD) often contains libgnu.a.
85316         * modules/striconv-tests (test_striconv_LDADD): Likewise.
85317         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
85318         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
85319         Needed on Cygwin.
85321 2007-04-12  Eric Blake  <ebb9@byu.net>
85323         Work around glibc's failure to flush stdin on fclose.
85324         * lib/closein.c (close_stdin): Flush stdin before closing.
85326         Work around glibc's failure to reset seekable stdin on exit.
85327         * modules/closein: New module.
85328         * lib/closein.c: New file.
85329         * lib/closein.h: Likewise.
85330         * m4/closein.m4: Likewise.
85331         * MODULES.html.sh (File stream based Input/Output): Document it.
85333 2007-04-12  Simon Josefsson  <simon@josefsson.org>
85335         * gnulib-tool: Rename generated 'autobuild' script to
85336         'do-autobuild' in --create-megatestdir output.
85338         * doc/gnulib.texi (Build robot for gnulib): Fix.
85340 2007-04-12  Simon Josefsson  <simon@josefsson.org>
85342         * modules/sysexits (Depends-on): Add absolute-header.
85344 2007-04-12  Eric Blake  <ebb9@byu.net>
85346         No need to preserve errno on success.
85347         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
85348         Reported by Bruno Haible.
85350 2007-04-12  Simon Josefsson  <simon@josefsson.org>
85352         * MODULES.html.sh (Support for maintaining and releasing
85353         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
85355 2007-04-12  Simon Josefsson  <simon@josefsson.org>
85357         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
85359 2007-04-12  Simon Josefsson  <simon@josefsson.org>
85361         * modules/autobuild: New module.
85363         * m4/autobuild.m4: New file.
85365 2007-04-11  Bruno Haible  <bruno@clisp.org>
85367         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
85368         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
85369         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
85370         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
85371         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
85372         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
85373         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
85374         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
85375         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
85376         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
85377         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
85378         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
85379         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
85380         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
85381         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
85382         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
85383         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
85384         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
85385         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
85386         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
85387         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
85388         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
85389         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
85390         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
85391         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
85392         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
85393         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
85394         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
85395         Reported by Eric Blake.
85397 2007-04-11  Bruno Haible  <bruno@clisp.org>
85399         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
85401 2007-04-10  Bruno Haible  <bruno@clisp.org>
85403         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
85404         for NaN and Infinity. Needed on FreeBSD 6.1.
85405         * tests/test-vasnprintf-posix.c (test_function): Undo last change
85406         regarding results for "%010a" of Infinity and NaN.
85407         * tests/test-vasprintf-posix.c (test_function): Likewise.
85408         * tests/test-snprintf-posix.h (test_function): Likewise.
85409         * tests/test-sprintf-posix.h (test_function): Likewise.
85410         * tests/test-fprintf-posix.h (test_function): Likewise.
85411         * tests/test-printf-posix.h (test_function): Likewise.
85412         * tests/test-fprintf-posix.out: Likewise.
85414 2007-04-10  Bruno Haible  <bruno@clisp.org>
85416         * modules/locale-tests: New file.
85417         * tests/test-locale.c: New file.
85419         * modules/locale: New file.
85420         * lib/locale_.h: New file.
85421         * m4/locale_h.m4: New file.
85423 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
85424             Bruno Haible  <bruno@clisp.org>
85426         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
85427         be determined, test for availability of the copysignf, copysign,
85428         copysignl functions.
85429         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
85430         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
85431         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
85433 2007-04-09  Eric Blake  <ebb9@byu.net>
85435         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
85436         * modules/stdio (Makefile.am): Support fflush.
85437         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
85438         * modules/fflush: New file.
85439         * lib/fflush.c: Likewise.
85440         * m4/fflush.m4: Likewise.
85441         * modules/fflush-tests: New test.
85442         * tests/test-fflush.c: Likewise.
85443         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
85445 2007-04-06  Bruno Haible  <bruno@clisp.org>
85447         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
85448         (VASNPRINTF): Use signbit for faster determination whether to print a
85449         minus sign.
85450         * modules/vasnprintf (Files): Remove lib/float+.h.
85451         * modules/fprintf-posix (Depends-on): Add signbit.
85452         * modules/snprintf-posix (Depends-on): Likewise.
85453         * modules/sprintf-posix (Depends-on): Likewise.
85454         * modules/vasnprintf-posix (Depends-on): Likewise.
85455         * modules/vasprintf-posix (Depends-on): Likewise.
85456         * modules/vfprintf-posix (Depends-on): Likewise.
85457         * modules/vsnprintf-posix (Depends-on): Likewise.
85458         * modules/vsprintf-posix (Depends-on): Likewise.
85460 2007-04-06  Bruno Haible  <bruno@clisp.org>
85462         * tests/test-frexp.c (main): Test also the sign bit of zero results.
85463         * tests/test-frexpl.c (main): Likewise.
85464         * tests/test-ldexpl.c (main): Likewise.
85465         * modules/frexp-tests (Depends-on): Add signbit.
85466         * modules/frexpl-tests (Depdends-on): Likewise.
85467         * modules/ldexpl-tests (Depdends-on): Likewise.
85469 2007-04-06  Bruno Haible  <bruno@clisp.org>
85471         * modules/signbit-tests: New file.
85472         * tests/test-signbit.c: New file.
85474         * modules/signbit: New file.
85475         * lib/signbitf.c: New file.
85476         * lib/signbitd.c: New file.
85477         * lib/signbitl.c: New file.
85478         * m4/signbit.m4: New file.
85479         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
85480         (signbit): New macro.
85481         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
85482         REPLACE_SIGNBIT.
85483         * modules/math (Makefile.am): Substitute also GNULIB_SIGNBIT and
85484         REPLACE_FREXPL into math.h.
85486 2007-04-06  Bruno Haible  <bruno@clisp.org>
85488         * modules/isnanf-nolibm-tests: New file.
85489         * tests/test-isnanf.c: New file.
85491         * modules/isnanf-nolibm: New file.
85492         * lib/isnanf.h: New file.
85493         * lib/isnanf.c: New file.
85494         * lib/isnan.c: Consider the USE_FLOAT macro.
85495         * m4/isnanf.m4: New file.
85497 2007-04-06  Bruno Haible  <bruno@clisp.org>
85499         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
85500         (Link): New section.
85502         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
85504 2007-04-06  Bruno Haible  <bruno@clisp.org>
85506         Assume the 'long double' type.
85507         * m4/longdouble.m4: Remove file.
85508         * config/srclist.txt: Don't mention longdouble.m4.
85509         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
85510         * lib/float+.h: Likewise.
85511         * lib/frexp.c: Likewise.
85512         * lib/printf-args.h: Likewise.
85513         * lib/printf-args.c: Likewise.
85514         * lib/printf-frexp.c: Likewise.
85515         * lib/printf-parse.c: Likewise.
85516         * lib/vasnprintf.c: Likewise.
85517         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
85518         * m4/intl.m4: Likewise.
85519         * m4/isnanl.m4: Likewise.
85520         * m4/printf.m4: Likewise.
85521         * m4/printf-frexpl.m4: Likewise.
85522         * m4/vasnprintf.m4: Likewise.
85523         * modules/allocsa (Files): Remove m4/longdouble.m4.
85524         * modules/gettext (Files): Likewise.
85525         * modules/relocatable-prog-wrapper (Files): Likewise.
85526         * modules/vasnprintf (Files): Likewise.
85527         * modules/isnanl (Files): Likewise.
85528         (Include): Simplify.
85529         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
85530         (Include): Simplify.
85531         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
85532         (Include): Simplify.
85533         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
85534         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
85535         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
85536         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
85537         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
85538         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
85539         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
85540         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
85541         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
85542         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
85543         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
85544         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
85545         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
85546         * tests/test-isnanl.c: Likewise.
85547         * tests/test-snprintf-posix.h: Likewise.
85548         * tests/test-sprintf-posix.h: Likewise.
85549         * tests/test-vasnprintf-posix.c: Likewise.
85550         * tests/test-vasnprintf-posix2.c: Likewise.
85551         * tests/test-vasprintf-posix.c: Likewise.
85553 2007-04-06  Bruno Haible  <bruno@clisp.org>
85555         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
85556         * lib/math_.h [__DECC]: Include the overridden include file through
85557         #include_next, outside the double-inclusion guard.
85558         * lib/stdio_.h [__DECC]: Likewise.
85559         * lib/stdlib_.h [__DECC]: Likewise.
85560         * lib/string_.h [__DECC]: Likewise.
85561         * lib/time_.h [__DECC]: Likewise.
85562         * lib/wchar_.h [__DECC]: Likewise.
85563         * lib/wctype_.h [__DECC]: Likewise.
85564         * lib/inttypes_.h [__DECC]: Likewise.
85565         Reported by Albert Chin <china@thewrittenword.com> in
85566         <http://lists.gnu.org/r/bug-gnulib/2007-04/msg00088.html>.
85568 2007-04-04  Eric Blake  <ebb9@byu.net>
85570         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
85571         1.5.x.
85573 2007-04-04  Bruno Haible  <bruno@clisp.org>
85575         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
85576         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
85578 2007-04-04  Bruno Haible  <bruno@clisp.org>
85580         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
85581         results for "%010a" of Infinity and NaN.
85582         * tests/test-vasprintf-posix.c (test_function): Likewise.
85583         * tests/test-snprintf-posix.h (test_function): Likewise.
85584         * tests/test-sprintf-posix.h (test_function): Likewise.
85585         * tests/test-fprintf-posix.h (test_function): Remove these tests.
85586         * tests/test-printf-posix.h (test_function): Likewise.
85587         * tests/test-fprintf-posix.out: Update.
85588         Needed for FreeBSD 6.1.
85590 2007-04-04  Bruno Haible  <bruno@clisp.org>
85592         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
85593         directly used by the gnulib modules nor by gnulib-tool.
85595 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
85597         * DEPENDENCIES: Give overall description of version dependency
85598         desirability.  Use more-typical names for apps.
85599         Add shell, coreutils, diffutils, grep, tar, gzip.
85601 2007-04-04  Simon Josefsson  <simon@josefsson.org>
85603         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
85605 2007-04-04  Karl Berry  <karl@gnu.org>
85607         * MODULES.html.sh (func_module): missing '.
85609 2007-04-03  Bruno Haible  <bruno@clisp.org>
85611         * modules/argmatch-tests (Makefile.am): New variable
85612         test_argmatch_LDADD.
85613         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
85614         * modules/array-list-tests (Makefile.am): New variable
85615         test_array_list_LDADD.
85616         * modules/array-oset-tests (Makefile.am): New variable
85617         test_array_oset_LDADD.
85618         * modules/avltree-list-tests (Makefile.am): New variable
85619         test_avltree_list_LDADD.
85620         * modules/avltree-oset-tests (Makefile.am): New variable
85621         test_avltree_oset_LDADD.
85622         * modules/avltreehash-list-tests (Makefile.am): New variable
85623         test_avltreehash_list_LDADD.
85624         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
85625         test_canonicalize_lgpl_LDADD.
85626         * modules/carray-list-tests (Makefile.am): New variable
85627         test_carray_list_LDADD.
85628         * modules/dirname-tests (Makefile.am): New variable
85629         test_dirname_LDADD.
85630         * modules/linked-list-tests (Makefile.am): New variable
85631         test_linked_list_LDADD.
85632         * modules/linkedhash-list-tests (Makefile.am): New variable
85633         test_linkedhash_list_LDADD.
85634         * modules/rbtree-list-tests (Makefile.am): New variable
85635         test_rbtree_list_LDADD.
85636         * modules/rbtree-oset-tests (Makefile.am): New variable
85637         test_rbtree_oset_LDADD.
85638         * modules/rbtreehash-list-tests (Makefile.am): New variable
85639         test_rbtreehash_list_LDADD.
85640         * modules/xvasprintf-tests (Makefile.am): New variable
85641         test_xvasprintf_LDADD.
85642         Reported by Eric Blake.
85644 2007-04-03  Eric Blake  <ebb9@byu.net>
85646         * DEPENDENCIES: Weaken m4 requirements.
85648 2007-04-03  Bruno Haible  <bruno@clisp.org>
85650         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
85651         * modules/isnanl-tests (configure.ac): Likewise.
85653 2007-04-03  Ben Pfaff  <blp@gnu.org>
85655         * modules/iconv_open: Add $(srcdir)/ to source directory
85656         references in Makefile fragments that call gperf, to fix VPATH
85657         builds.
85659 2007-04-03  Bruno Haible  <bruno@clisp.org>
85661         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
85662         * lib/ldexpl.c: Undo last change.
85664 2007-04-03  Bruno Haible  <bruno@clisp.org>
85666         * modules/printf-frexpl (Depends-on): Undo last change.
85667         (Files): Add m4/ldexpl.m4.
85669 2007-04-03  Bruno Haible  <bruno@clisp.org>
85671         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
85672         * modules/isnanl (Link): New section.
85674         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
85675         * modules/frexp (Link): New section.
85677         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
85678         * modules/frexpl (Link): New section.
85680         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
85681         * modules/ldexpl (Link): New section.
85683 2007-04-03  Bruno Haible  <bruno@clisp.org>
85685         * modules/TEMPLATE-EXTENDED: New file.
85686         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
85688 2007-04-03  Bruno Haible  <bruno@clisp.org>
85690         * DEPENDENCIES: New file.
85691         Suggested by Simon Josefsson.
85693 2007-04-03  Bruno Haible  <bruno@clisp.org>
85695         * doc/gnulib.texi: Escape @.
85697 2007-04-03  James Youngman  <jay@gnu.org>
85698         and Paul Eggert  <eggert@cs.ucla.edu>
85700         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
85701         birthtime on all systems that have birthtime, not just those which
85702         use st_birthtimensec rather than st_birthtim.  Putting zero in
85703         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
85704         that the birth time is not available for files on an NFS mount.
85706 2007-04-03  Simon Josefsson  <simon@josefsson.org>
85708         * modules/memxor: Move back from crypto/, suggested by Bruno.
85709         * modules/crypto/hmac-sha1: Fix memxor dependency.
85711         * modules/crypto/gc: Moved from ../.
85713 2007-04-02  Eric Blake  <ebb9@byu.net>
85715         * lib/ldexpl.c (includes): Avoid libm.
85717         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
85719 2007-04-02  Bruno Haible  <bruno@clisp.org>
85721         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
85722         on IRIX.
85724 2007-04-02  Bruno Haible  <bruno@clisp.org>
85726         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
85727         x86 or x86_64 platforms running MacOS X.
85728         Reported by Ryan Schmidt <@ryandesign.com>.
85730 2007-04-02  Bruno Haible  <bruno@clisp.org>
85732         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
85733         i386.
85735 2007-04-01  Simon Josefsson  <simon@josefsson.org>
85737         * modules/crypto/arcfour: Moved from ../.
85738         * modules/crypto/arcfour-tests: Moved from ../.
85739         * modules/crypto/arctwo: Moved from ../.
85740         * modules/crypto/arctwo-tests: Moved from ../.
85741         * modules/crypto/des: Moved from ../.
85742         * modules/crypto/des-tests: Moved from ../.
85743         * modules/crypto/gc-arcfour: Moved from ../.
85744         * modules/crypto/gc-arcfour-tests: Moved from ../.
85745         * modules/crypto/gc-arctwo: Moved from ../.
85746         * modules/crypto/gc-arctwo-tests: Moved from ../.
85747         * modules/crypto/gc-des: Moved from ../.
85748         * modules/crypto/gc-des-tests: Moved from ../.
85749         * modules/crypto/gc-hmac-md5: Moved from ../.
85750         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
85751         * modules/crypto/gc-hmac-sha1: Moved from ../.
85752         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
85753         * modules/crypto/gc-md2: Moved from ../.
85754         * modules/crypto/gc-md2-tests: Moved from ../.
85755         * modules/crypto/gc-md4: Moved from ../.
85756         * modules/crypto/gc-md4-tests: Moved from ../.
85757         * modules/crypto/gc-md5: Moved from ../.
85758         * modules/crypto/gc-md5-tests: Moved from ../.
85759         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
85760         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
85761         * modules/crypto/gc-random: Moved from ../.
85762         * modules/crypto/gc-rijndael: Moved from ../.
85763         * modules/crypto/gc-rijndael-tests: Moved from ../.
85764         * modules/crypto/gc-sha1: Moved from ../.
85765         * modules/crypto/gc-sha1-tests: Moved from ../.
85766         * modules/crypto/gc-tests: Moved from ../.
85767         * modules/crypto/hmac-md5: Moved from ../.
85768         * modules/crypto/hmac-md5-tests: Moved from ../.
85769         * modules/crypto/hmac-sha1: Moved from ../.
85770         * modules/crypto/hmac-sha1-tests: Moved from ../.
85771         * modules/crypto/md2: Moved from ../.
85772         * modules/crypto/md2-tests: Moved from ../.
85773         * modules/crypto/md4: Moved from ../.
85774         * modules/crypto/md4-tests: Moved from ../.
85775         * modules/crypto/md5: Moved from ../.
85776         * modules/crypto/md5-tests: Moved from ../.
85777         * modules/crypto/memxor: Moved from ../.
85778         * modules/crypto/rijndael: Moved from ../.
85779         * modules/crypto/rijndael-tests: Moved from ../.
85780         * modules/crypto/sha1: Moved from ../.
85782 2007-03-30  James Youngman  <jay@gnu.org>
85784         * tests/test-stat-time.c (prepare_test): use chmod() rather than
85785         rename() to change the ctime of a file (because ctime is unaffected
85786         by rename on jfs2 on AIX 5.1).
85787         (main): Start by doing cleanup, in case a previous run failed leaving
85788         test files behind.
85790 2007-03-31  Bruno Haible  <bruno@clisp.org>
85792         Support old proprietary implementations of iconv.
85793         * modules/iconv_open: New file.
85794         * lib/iconv_.h: New file.
85795         * m4/iconv_h.m4: New file.
85796         * lib/iconv_open.c: New file.
85797         * lib/iconv_open-aix.gperf: New file.
85798         * lib/iconv_open-hpux.gperf: New file.
85799         * lib/iconv_open-irix.gperf: New file.
85800         * lib/iconv_open-osf.gperf: New file.
85801         * m4/iconv_open.m4: New file.
85802         * modules/linebreak (Depends-on): Add iconv_open.
85803         * modules/striconv (Depends-on): Likewise.
85804         * modules/striconveh (Depends-on): Likewise.
85805         * modules/unicodeio (Depends-on): Likewise.
85806         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
85807         (iconv_t)(-1).
85808         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
85809         conversion if cd is (iconv_t)(-1).
85810         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
85811         is not possible.
85813 2007-03-31  Bruno Haible  <bruno@clisp.org>
85815         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
85816         work on Solaris either. Protect also second use of "autodetect_jp".
85818 2007-03-31  Bruno Haible  <bruno@clisp.org>
85820         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
85821         the function is not present.
85823 2007-03-31  Bruno Haible  <bruno@clisp.org>
85825         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
85826         the function is not present.
85828 2007-03-31  Bruno Haible  <bruno@clisp.org>
85830         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
85831         a bug in HP-UX iconv_open().
85833 2007-03-31  Bruno Haible  <bruno@clisp.org>
85835         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
85836         (Mathematics <math.h>): New section, add fpieee.
85837         (Input/output <stdio.h>): Add fseterr.
85838         (Mathematics <math.h>): New section, add printf-frexp.
85839         (Container data structures): Add sublist.
85840         (Core language properties): Add fpucw, inline.
85841         (Functions for greatest-width integer types <inttypes.h>): Add
85842         imaxabs, imaxdiv, inttypes.
85843         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
85844         isnanl-nolibm, ldexp.
85845         (Mathematics <math.h>): New section, add printf-frexpl.
85846         (Support for systems lacking POSIX:2001): Add fprintf-posix,
85847         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
85848         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
85849         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
85850         (Unicode string functions): Add unistr/u*-mbtoucr.
85851         (Java): Add javacomp-script, javaexec-script.
85852         (C#): Add csharpcomp-script, csharpexec-script.
85853         (Support for building libraries and executables): Add havelib,
85854         relocatable-*.
85855         (Support for maintaining and releasing projects): Renamed from
85856         'Support for maintaining and release projects'. Add announce-gen.
85858 2007-03-31  Bruno Haible  <bruno@clisp.org>
85860         * README: Talk primarily about git.
85861         (git and CVS): Renamed from CVS.
85862         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
85863         gnulib is available through git.
85864         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
85866 2007-03-30  Bruno Haible  <bruno@clisp.org>
85868         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
85869         * lib/poll_.h: Likewise.
85870         * lib/stat_.h: Likewise.
85871         * lib/sys_time_.h: Likewise.
85872         * lib/sysexit_.h: Likewise.
85873         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
85874         * lib/stdbool_.h: Likewise.
85875         * lib/byteswap_.h: Add double-inclusion guard.
85877 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
85879         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
85881 2007-03-30  Karl Berry  <karl@gnu.org>
85883         * config/srclist-update: double space after USA in the license
85884         substitution, since that's how it's usually (?) written.
85886 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
85888         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
85889         reported by Bruno Haible.
85891 2007-03-29  Bruno Haible  <bruno@clisp.org>
85893         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
85894         a bug in AIX iconv().
85896 2007-03-29  Bruno Haible  <bruno@clisp.org>
85898         * modules/ldexpl-tests: New file.
85899         * tests/test-ldexpl.c: New file.
85901 2007-03-29  Bruno Haible  <bruno@clisp.org>
85903         * lib/ldexpl.c: Include fpucw.h.
85904         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
85905         multiplication.
85906         * modules/ldexpl (Depends-on): Add fpucw.
85908 2007-03-29  Bruno Haible  <bruno@clisp.org>
85910         * modules/ldexpl: New file.
85911         * m4/ldexpl.m4: New file.
85912         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
85913         set.
85914         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
85915         REPLACE_LDEXPL.
85916         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
85917         REPLACE_LDEXPL.
85918         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
85919         gl_FUNC_LDEXPL_WORKS.
85920         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
85921         * modules/mathl (Files): Remove lib/ldexpl.c.
85922         (Depends-on): Add ldexpl.
85924 2007-03-29  Bruno Haible  <bruno@clisp.org>
85926         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
85928 2007-03-29  Bruno Haible  <bruno@clisp.org>
85930         * tests/test-striconveh.c (main): Don't assume that a direct conversion
85931         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
85932         and possibly also HP-UX.
85933         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
85934         work on AIX, IRIX, HP-UX, OSF/1.
85935         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
85936         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
85937         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
85938         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
85939         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
85940         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
85942 2007-03-29  Bruno Haible  <bruno@clisp.org>
85944         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
85946 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
85948         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
85949         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
85951 2007-03-29  Eric Blake  <ebb9@byu.net>
85953         * lib/acl-internal.h: Remove redundant include.
85954         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
85955         Cygwin when a file is locked.
85957 2007-03-29  Bruno Haible  <bruno@clisp.org>
85959         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
85960         file.
85961         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
85963 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
85965         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
85966         try to remove a parent directory if the child couldn't be removed
85967         (except for the first rmdir, which could fail because the child
85968         doesn't exist).  Problem reported by Jeff Blaine in
85969         <http://lists.gnu.org/r/bug-tar/2007-03/msg00014.html>.
85971 2007-03-28  Bruno Haible  <bruno@clisp.org>
85973         * lib/striconveh.c (utf8conv_carefully): New function.
85974         (mem_cd_iconveh_internal): Invoke it.
85976 2007-03-28  Bruno Haible  <bruno@clisp.org>
85978         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
85979         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
85980         input.
85981         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
85982         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
85983         unistr/u8-uctomb.
85985 2007-03-28  Bruno Haible  <bruno@clisp.org>
85987         * modules/unistr/u8-mbtoucr: New file.
85988         * lib/unistr/u8-mbtoucr.c: New file.
85989         * modules/unistr/u16-mbtoucr: New file.
85990         * lib/unistr/u16-mbtoucr.c: New file.
85991         * modules/unistr/u16-mbtoucr: New file.
85992         * lib/unistr/u16-mbtoucr.c: New file.
85993         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
85995 2007-03-27  Simon Josefsson  <simon@josefsson.org>
85996             Bruno Haible  <bruno@clisp.org>
85998         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
85999         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
86000         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
86002         * m4/stdio_h.m4: Add stubs for vasprintf too.
86004         * modules/stdio: Support vasprintf in sed command.
86006         * modules/vasprintf: Depend on stdio for prototypes.  Remove
86007         vasprintf.h.  Add stdio module indicator.
86009         * lib/stdio_.h: Declare asprintf and vasprintf, based on
86010         vasprintf.h.
86012         * lib/vasprintf.h: File removed.
86014         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
86015         * lib/vasprintf.c: Ditto.
86016         * lib/xvasprintf.c: Ditto.
86017         * tests/test-vasprintf-posix.c: Ditto.
86018         * tests/test-vasprintf.c: Ditto.
86020 2007-03-27  Bruno Haible  <bruno@clisp.org>
86022         Make vasnprintf multithread-safe.
86023         * lib/vasnprintf.c (decimal_point_char): New function.
86024         (VASNPRINTF): Use it.
86025         Suggested by Simon Josefsson.
86027 2007-03-27  Eric Blake  <ebb9@byu.net>
86029         Support sub-second birthtime on cygwin.
86030         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
86031         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
86032         (get_stat_birthtime): Also work with st_birthtim.
86034 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
86036         * lib/stat-time.h (USE_BIRTHTIME): Remove.
86037         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
86038         (get_stat_birthtime_ns): Do not try to use "spare" fields.
86039         (get_stat_birthtime_ns): Simplify compile-time tests.
86040         (get_stat_birthtime): Change the API to look like
86041         get_stat_mtime etc., except return a negative tv_nsec on error.
86042         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
86043         Don't check for "spare" fields.
86044         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
86045         or for struct stat.st_birthtime, as these tests aren't used.
86046         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
86048 2007-03-27  Bruno Haible  <bruno@clisp.org>
86050         * lib/stat-time.h: Include <sys/stat.h>.
86052 2007-03-27  James Youngman  <jay@gnu.org>
86054         * lib/stat-time.h (get_stat_birthtime): New function for
86055           retrieving st_birthtime as provided by UFS2 (hence *BSD).
86056         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
86057           and its variants.
86058         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
86059         * modules/stat-time-test: New file.
86060         * tests/test-stat-time.c: New test, devised by Bruno Haible.
86062 2007-03-26  Bruno Haible  <bruno@clisp.org>
86064         Better support of signalling NaNs.
86065         * lib/atanl.c: Include isnanl.h.
86066         (atanl): Perform test for NaN at the beginning of the function and
86067         through a call to isnanl.
86068         * lib/cosl.c: Include isnanl.h.
86069         (cosl): Perform test for NaN at the beginning of the function and
86070         through a call to isnanl.
86071         * lib/ldexpl.c: Include isnanl.h.
86072         (ldexpl): Perform test for NaN through a call to isnanl.
86073         * lib/logl.c: Include isnanl.h.
86074         (logl): Perform test for NaN at the beginning of the function and
86075         through a call to isnanl.
86076         * lib/sinl.c: Include isnanl.h.
86077         (sinl): Perform test for NaN at the beginning of the function and
86078         through a call to isnanl.
86079         * lib/sqrtl.c: Include isnanl.h.
86080         (sqrtl): Perform test for NaN at the beginning of the function and
86081         through a call to isnanl.
86082         * lib/tanl.c: Include isnanl.h.
86083         (tanl): Perform test for NaN at the beginning of the function and
86084         through a call to isnanl.
86085         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
86086         * modules/mathl (Depends-on): Add isnanl.
86088 2007-03-26  Eric Blake  <ebb9@byu.net>
86090         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
86091         regression in logic sense of previous patch.
86093 2007-03-26  Bruno Haible  <bruno@clisp.org>
86095         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
86096         unportable shell command "if ! ...".
86097         Reported by Ralf Wildenhues.
86099 2007-03-25  Bruno Haible  <bruno@clisp.org>
86101         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
86102         <sysexits.h> file, and only add EX_CONFIG.
86103         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
86104         absolute file name and whether it is sufficient. Substitute also
86105         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
86106         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
86107         ABSOLUTE_SYSEXITS_H into sysexits.h.
86109 2007-03-25  Bruno Haible  <bruno@clisp.org>
86111         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
86112         hints is NULL.
86114 2007-03-25  Bruno Haible  <bruno@clisp.org>
86116         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
86117         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
86119 2007-03-25  Bruno Haible  <bruno@clisp.org>
86121         * lib/vasnprintf.c: Include langinfo.h.
86122         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
86123         multithread-safe.
86124         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
86125         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
86126         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
86127         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
86128         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
86129         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
86130         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
86131         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
86132         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
86133         Reported by Simon Josefsson.
86135 2007-03-25  Bruno Haible  <bruno@clisp.org>
86137         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
86138         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
86139         * modules/vasnprintf (Depends-on): Add stdint.
86141 2007-03-25  Bruno Haible  <bruno@clisp.org>
86143         * modules/fpieee: New file.
86144         * m4/fpieee.m4: New file.
86145         * modules/isnan-nolibm (Depends-on): Add fpieee.
86146         * modules/isnanl-nolibm (Depends-on): Add fpieee.
86147         * modules/isnanl (Depends-on): Add fpieee.
86149 2007-03-25  Bruno Haible  <bruno@clisp.org>
86151         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
86153 2007-03-25  Bruno Haible  <bruno@clisp.org>
86155         Avoid test failures on IRIX 6.5.
86156         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
86157         (main): Use it.
86158         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
86159         macros.
86160         (main): Use them.
86162 2007-03-25  Bruno Haible  <bruno@clisp.org>
86164         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
86165         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
86166         exists but doesn't work.
86167         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
86168         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
86169         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
86170         * modules/math (Makefile.am): Substitute also REPLACE_FREXPL into
86171         math.h.
86173 2007-03-25  Bruno Haible  <bruno@clisp.org>
86175         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
86176         returns inf. Needed on IRIX 6.5.
86178 2007-03-25  Bruno Haible  <bruno@clisp.org>
86180         * tests/test-frexpl.c: Include isnanl-nolibm.h.
86181         (main): Use isnanl instead of x != x idiom.
86182         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
86184         * tests/test-frexp.c: Include isnan.h.
86185         (main): Use isnan instead of x != x idiom.
86186         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
86188 2007-03-25  Bruno Haible  <bruno@clisp.org>
86190         * tests/test-frexp.c (NaN): New function/macro.
86191         (main): Use it instead of 0.0 / 0.0.
86192         * tests/test-isnan.c (NaN): New function/macro.
86193         (main): Use it instead of 0.0 / 0.0.
86194         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
86195         (test_function): Use it instead of 0.0 / 0.0.
86196         * tests/test-vasprintf-posix.c (NaN): New function/macro.
86197         (test_function): Use it instead of 0.0 / 0.0.
86198         * tests/test-snprintf-posix.h (NaN): New function/macro.
86199         (test_function): Use it instead of 0.0 / 0.0.
86200         * tests/test-sprintf-posix.h (NaN): New function/macro.
86201         (test_function): Use it instead of 0.0 / 0.0.
86202         * tests/test-fprintf-posix.h (NaN): New function/macro.
86203         (test_function): Use it instead of 0.0 / 0.0.
86204         * tests/test-printf-posix.h (NaN): New function/macro.
86205         (test_function): Use it instead of 0.0 / 0.0.
86207         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
86209 2007-03-25  Bruno Haible  <bruno@clisp.org>
86211         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
86213 2007-03-25  Bruno Haible  <bruno@clisp.org>
86215         * lib/regexec.c (merge_state_with_log): Make static.
86217 2007-03-25  Bruno Haible  <bruno@clisp.org>
86219         * lib/trigl.c (kernel_rem_pio2): Make static.
86221 2007-03-25  Bruno Haible  <bruno@clisp.org>
86223         * lib/sincosl.c (sincosl_table): Make static.
86225 2007-03-25  Bruno Haible  <bruno@clisp.org>
86227         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
86228         if the compiler does not support C99.
86230 2007-03-25  Bruno Haible  <bruno@clisp.org>
86232         * modules/time (Makefile.am): Ensure all rule action lines start with a
86233         tab.
86235 2007-03-24  Bruno Haible  <bruno@clisp.org>
86237         * modules/tsearch-tests: New file.
86238         * tests/test-tsearch.sh: New file.
86239         * tests/test-tsearch.c: New file, mostly copied from glibc.
86241         * modules/search-tests: New file.
86242         * tests/test-search.c: New file.
86244         * modules/search: New file.
86245         * lib/search_.h: New file, incorporating lib/tsearch.h.
86246         * m4/search_h.m4: New file.
86247         * lib/tsearch.h: Remove file.
86248         * lib/tsearch.c: Include search.h instead of tsearch.h.
86249         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
86250         HAVE_TSEARCH.
86251         * modules/tsearch (Files): Remove lib/tsearch.h.
86252         (Depends-on): Add search.
86253         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
86254         (Include): Change tsearch.h into search.h.
86256 2007-03-24  Bruno Haible  <bruno@clisp.org>
86258         * modules/fpucw: New file.
86259         * lib/fpucw.h: New file.
86260         * lib/frexp.c: Include fpucw.h.
86261         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
86262         (FUNC): Use them.
86263         * lib/printf-frexp.c: Include fpucw.h.
86264         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
86265         (FUNC): Use them.
86266         * lib/vasnprintf.c: Include fpucw.h.
86267         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
86268         'long double' calculations.
86269         * tests/test-frexpl.c: Include fpucw.h.
86270         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
86271         * tests/test-printf-frexpl.c: Include fpucw.h.
86272         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
86273         * modules/frexpl (Depends-on): Add fpucw.
86274         * modules/printf-frexpl (Depends-on): Likewise.
86275         * modules/fprintf-posix (Depends-on): Likewise.
86276         * modules/snprintf-posix (Depends-on): Likewise.
86277         * modules/sprintf-posix (Depends-on): Likewise.
86278         * modules/vasnprintf-posix (Depends-on): Likewise.
86279         * modules/vasprintf-posix (Depends-on): Likewise.
86280         * modules/vfprintf-posix (Depends-on): Likewise.
86281         * modules/vsnprintf-posix (Depends-on): Likewise.
86282         * modules/vsprintf-posix (Depends-on): Likewise.
86283         * modules/frexpl-tests (Depends-on): Likewise.
86284         * modules/printf-frexpl-tests (Depends-on): Likewise.
86286 2007-03-24  Bruno Haible  <bruno@clisp.org>
86288         * lib/float+.h: New file.
86289         * lib/isnan.c: Include float+.h.
86290         (SIZE): New macro.
86291         (FUNC): Compare only SIZE bytes of the value.
86292         * lib/vasnprintf.c: Include float+.h.
86293         (VASNPRINTF): When comparing against +0.0L or +0.0, compare only
86294         SIZEOF_LDBL or SIZEOF_DBL bytes.
86295         * modules/isnan-nolibm (Files): Add lib/float+.h.
86296         * modules/isnanl-nolibm (Files): Add lib/float+.h.
86297         * modules/isnanl (Files): Add lib/float+.h.
86298         * modules/vasnprintf (Files): Add lib/float+.h.
86300 2007-03-24  Bruno Haible  <bruno@clisp.org>
86302         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
86303         include isnanl-nolibm.h.
86305 2007-03-24  Bruno Haible  <bruno@clisp.org>
86307         * tests/test-read-file.c (main): Don't produce spurious output for
86308         expected situations. Make the test fail if it encountered unexpected
86309         results.
86311 2007-03-24  Bruno Haible  <bruno@clisp.org>
86313         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
86314         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
86316 2007-03-24  Bruno Haible  <bruno@clisp.org>
86318         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
86320 2007-03-24  Bruno Haible  <bruno@clisp.org>
86322         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
86323         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
86325         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
86326         * modules/utf8-ucs4: Turn into a symbolic link to module
86327         unistr/u8-mbtouc.
86329         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
86330         utf8-ucs4-unsafe.
86331         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
86332         unistr/u8-mbtouc-unsafe.
86334         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
86335         * modules/utf16-ucs4: Turn into a symbolic link to module
86336         unistr/u16-mbtouc.
86338         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
86339         utf16-ucs4-unsafe.
86340         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
86341         unistr/u16-mbtouc-unsafe.
86343         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
86344         * modules/ucs4-utf8: Turn into a symbolic link to module
86345         unistr/u8-ubtomb.
86347         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
86348         * modules/ucs4-utf16: Turn into a symbolic link to module
86349         unistr/u16-ubtomb.
86351 2007-03-24  Bruno Haible  <bruno@clisp.org>
86353         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
86354         Enable the function only if HAVE_INLINE.
86355         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
86356         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
86357         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
86358         Enable the function only if HAVE_INLINE.
86359         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
86360         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
86361         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
86362         Enable the function only if HAVE_INLINE.
86363         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
86364         Enable the function only if HAVE_INLINE.
86365         * modules/utf8-ucs4: Update.
86366         * modules/utf8-ucs4-unsafe: Update.
86367         * modules/utf16-ucs4: Update.
86368         * modules/utf16-ucs4-unsafe: Update.
86369         * modules/ucs4-utf8: Update.
86370         * modules/ucs4-utf16: Update.
86372 2007-03-24  Bruno Haible  <bruno@clisp.org>
86374         * lib/utf8-ucs4.h: Remove file.
86375         * lib/utf8-ucs4-unsafe.h: Remove file.
86376         * lib/utf16-ucs4.h: Remove file.
86377         * lib/utf16-ucs4-unsafe.h: Remove file.
86378         * lib/ucs4-utf8.h: Remove file.
86379         * lib/ucs4-utf16.h: Remove file.
86380         * lib/unistr.h: Include their previous contents.
86381         * m4/utf-ucs4.m4: Remove file.
86382         * m4/ucs4-utf.m4: Remove file.
86383         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
86384         (Depends-on): Add unistr/base.
86385         (configure.ac): Remove gl_UTF_UCS4.
86386         (Makefile.am): Update.
86387         (Include): Change to unistr.h.
86388         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
86389         (Depends-on): Add unistr/base.
86390         (configure.ac): Remove gl_UTF_UCS4.
86391         (Makefile.am): Update.
86392         (Include): Change to unistr.h.
86393         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
86394         (Depends-on): Add unistr/base.
86395         (configure.ac): Remove gl_UTF_UCS4.
86396         (Makefile.am): Update.
86397         (Include): Change to unistr.h.
86398         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
86399         (Depends-on): Add unistr/base.
86400         (configure.ac): Remove gl_UTF_UCS4.
86401         (Makefile.am): Update.
86402         (Include): Change to unistr.h.
86403         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
86404         (Depends-on): Add unistr/base.
86405         (configure.ac): Remove gl_UCS4_UTF.
86406         (Makefile.am): Update.
86407         (Include): Change to unistr.h.
86408         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
86409         (Depends-on): Add unistr/base.
86410         (configure.ac): Remove gl_UCS4_UTF.
86411         (Makefile.am): Update.
86412         (Include): Change to unistr.h.
86413         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
86414         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
86415         utf8-ucs4-unsafe.h.
86416         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
86417         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
86418         utf16-ucs4-unsafe.h.
86419         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
86420         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
86421         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
86422         * lib/unistr/u8-strchr.c: Likewise.
86423         * lib/unistr/u8-strrchr.c: Likewise.
86424         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
86425         * lib/unistr/u16-strchr.c: Likewise.
86426         * lib/unistr/u16-strrchr.c: Likewise.
86427         * lib/striconveh.c: Update.
86428         * lib/linebreak.c: Update.
86430 2007-03-24  Bruno Haible  <bruno@clisp.org>
86432         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
86433         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
86435 2007-03-22  Bruno Haible  <bruno@clisp.org>
86437         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
86439 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
86441         * MODULES.html.sh (File system functions): New module write-any-file.
86442         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
86443         * m4/write-any-file.m4: New files.
86445 2007-03-23  Eric Blake  <ebb9@byu.net>
86447         * gnulib-tool: Rearrange space-tab sequences, since some editors
86448         like to eat them.
86450 2007-03-23  Eric Blake  <ebb9@byu.net>
86452         * lib/version-etc.c (version_etc_va): Update license wording to
86453         be more concise.  Recommended by Richard Stallman.
86455 2007-03-22  Bruno Haible  <bruno@clisp.org>
86457         * lib/poll.c (MSG_PEEK): New fallback definition.
86459 2007-03-22  Bruno Haible  <bruno@clisp.org>
86461         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
86462         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
86463         (main): Update.
86464         Fixes a compilation error on BeOS.
86466 2007-03-22  Bruno Haible  <bruno@clisp.org>
86468         * modules/frexpl-tests: New file.
86469         * tests/test-frexpl.c: New file.
86471         * modules/frexpl: New file.
86472         * m4/frexpl.m4: New file.
86473         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
86474         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
86475         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
86476         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
86477         (Depends-on): Add frexpl. Remove isnanl-nolibm.
86478         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
86480 2007-03-22  Bruno Haible  <bruno@clisp.org>
86482         * lib/frexpl.c: Share code with lib/frexp.c.
86483         * modules/mathl (Files): Add lib/frexp.c.
86484         (Depends-on): Add isnanl-nolibm.
86486 2007-03-22  Bruno Haible  <bruno@clisp.org>
86488         * modules/printf-frexp (Files): Add m4/frexp.m4.
86489         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
86490         only if the found frexp function actually works.
86492 2007-03-22  Bruno Haible  <bruno@clisp.org>
86494         * lib/frexp.c: Remove older implementation that uses divisions.
86496 2007-03-21  Bruno Haible  <bruno@clisp.org>
86498         * modules/frexp-tests: New file.
86499         * tests/test-frexp.c: New file.
86501         * modules/frexp: New file.
86502         * lib/frexp.c: New file.
86503         * m4/frexp.m4: New file.
86504         * lib/math_.h (frexp): New declaration.
86505         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
86506         REPLACE_FREXP.
86507         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
86509 2007-03-21  Bruno Haible  <bruno@clisp.org>
86511         * modules/isnanl-tests: New file.
86512         * tests/test-isnanl.c: New file.
86514         * modules/isnanl: New file.
86515         * lib/isnanl.h: New file.
86516         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
86517         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
86518         gl_FUNC_ISNANL_WORKS.
86519         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
86520         New macros.
86522 2007-03-21  Bruno Haible  <bruno@clisp.org>
86524         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
86525         lib/isnanl.h.
86526         (Include): Update.
86527         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
86528         * lib/vasnprintf.c: Update.
86529         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
86530         tests/test-isnanl.h, remove tests/test-isnanl.c.
86531         (Makefile.am): Update.
86532         * tests/test-isnanl-nolibm.c: New file.
86533         * tests/test-isnanl.h: New file.
86534         * tests/test-isnanl.c: Remove file.
86536 2007-03-21  Jim Meyering  <jim@meyering.net>
86538         When trying to open ".", treat ESTALE like EACCES.
86539         * lib/savewd.c (savewd_save): Resort to forking not just upon
86540         failure with EACCES, but also when errno is ESTALE.
86542 2007-03-20  Bruno Haible  <bruno@clisp.org>
86544         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
86545         Needed on AIX 5.1. Reported by Matthew Woehlke.
86547 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
86549         Suggestions by Bruno Haible:
86550         * lib/acl-internal.h: Include "gettext.h" rather than rolling
86551         our own.
86552         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
86553         * modules/acl (Depends-on): Add gettext.
86555 2007-03-19  Bruno Haible  <bruno@clisp.org>
86557         * modules/iconvme: Remove file.
86558         * lib/iconvme.h: Remove file.
86559         * lib/iconvme.c: Remove file.
86560         * m4/iconvme.m4: Remove file.
86562 2007-03-19  Bruno Haible  <bruno@clisp.org>
86564         * doc/relocatable-maint.texi: Break long shell script line.
86565         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
86567 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
86569         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
86570         handle file_has_acl.
86571         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
86572         * lib/acl.c: Move header inclusions and related macro defns into
86573         lib/acl-internal.h.
86574         (S_ISLNK): Remove defn, since that's now done for us.
86575         (file_has_acl): Move to lib/file-has-acl.c.
86576         Call acl_trivial if available.  This is the crucial part of the fix.
86577         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
86578         shared within the library.  Rewrite a bit, partly to make it compatible
86579         with the GNU coding style.
86580         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
86581         Remove unnecessary double-quotes.
86582         Don't test for acl_to_text; the build will catch that.
86583         Replace acl_entries if it doesn't exist and it is needed.
86584         Check for -lsec and acl_trivial (as used on Solaris 10).
86585         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
86586         lib/file-has-acl.c.
86587         (Depends-on): Add sys_stat, for S_ISLNK.
86589 2007-03-19  Ben Pfaff  <blp@gnu.org>
86591         * doc/gnulib.texi: Fix typos.
86592         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
86594 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
86596         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
86597         If size is zero here, buf must be zero.
86599 2007-03-19  Simon Josefsson  <simon@josefsson.org>
86601         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
86602         <bruno@clisp.org>.
86604 2007-03-18  Bruno Haible  <bruno@clisp.org>
86606         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
86607         Suggested by Eric Blake.
86609 2007-03-18  Ben Pfaff  <blp@gnu.org>
86611         * doc/relocatable.texi: Recommend using as prefix a directory
86612         that does not exist and will never be created.  Based on
86613         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
86614         and others.
86616 2007-03-17  Bruno Haible  <bruno@clisp.org>
86618         * lib/fchownat.c: Include lchown.h.
86620 2007-03-17  Bruno Haible  <bruno@clisp.org>
86622         Fix endless loop when the given allocated size was > INT_MAX.
86623         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
86624         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
86625         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
86626         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
86627         * lib/sprintf.c (sprintf): Likewise.
86629 2007-03-17  Bruno Haible  <bruno@clisp.org>
86631         * tests/test-argp-2.sh (func_compare): Output a context diff.
86633 2007-03-17  Bruno Haible  <bruno@clisp.org>
86635         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
86636         locale's decimal-point character.
86638 2007-03-17  Bruno Haible  <bruno@clisp.org>
86640         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
86641         before comparing it. Needed because on some platforms (e.g. x86) a
86642         'long double' occupies less bytes than sizeof (long double).
86644 2007-03-17  Bruno Haible  <bruno@clisp.org>
86646         * tests/test-crc.c (main): Make printf statements 64-bit clean.
86647         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
86648         * tests/test-getaddrinfo.c (simple): Likewise.
86649         * tests/test-read-file.c (main): Likewise.
86651 2007-03-17  Bruno Haible  <bruno@clisp.org>
86653         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
86655 2007-03-17  Bruno Haible  <bruno@clisp.org>
86657         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
86658         unused variable.
86660 2007-03-17  Bruno Haible  <bruno@clisp.org>
86662         * tests/test-c-strcasecmp.c: Include c-strcase.h.
86663         * tests/test-c-strncasecmp.c: Likewise.
86665 2007-03-17  Bruno Haible  <bruno@clisp.org>
86667         * modules/stdlib (Depends-on): Add unistd.
86668         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
86669         Needed for MacOS X 10.3.
86671 2007-03-17  Bruno Haible  <bruno@clisp.org>
86673         * lib/unistr/u-strdup.h: Include <stdlib.h>.
86675 2007-03-17  Bruno Haible  <bruno@clisp.org>
86677         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
86679 2007-03-17  Bruno Haible  <bruno@clisp.org>
86681         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
86682         to reflect files copied from gnulib (with or without modifications).
86683         Suggested by Jim Meyering.
86685 2007-03-17  Eric Blake  <ebb9@byu.net>
86687         * NEWS: Document stdlib change from 2007-02-18.
86689 2007-03-17  Jim Meyering  <jim@meyering.net>
86691         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
86692         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
86693         someone uses a name containing shell meta-characters.
86694         Reported by Alfred M. Szmidt.
86696         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
86698 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
86700         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
86701         and copy gettext configuration files only if configure.ac contains
86702         a use of AM_GNU_GETTEXT_VERSION.
86704 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
86706         * build-aux/bootstrap (gnulib_name): New variable.
86707         (gnulib_tool_options): Use it.
86709 2007-03-13  Simon Josefsson  <simon@josefsson.org>
86711         * tests/test-des.c: Use new namespace.
86713 2007-03-15  Bruno Haible  <bruno@clisp.org>
86715         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
86716         Reported by James Youngman <jay@gnu.org>.
86718 2007-03-15  Bruno Haible  <bruno@clisp.org>
86720         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
86721         declared prototype. Needed with cc on OSF/1 5.1.
86723 2007-03-15  Bruno Haible  <bruno@clisp.org>
86725         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
86726         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
86727         (struct gl_list_implementation): Add dispose_fn argument to the
86728         'create_empty', 'create' methods.
86729         (struct gl_list_impl_base): Add field 'dispose_fn'.
86730         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
86731         argument.
86732         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
86733         dispose_fn argument.
86734         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
86735         dispose_fn on the dropped values.
86736         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
86737         dispose_fn argument.
86738         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
86739         dropped values.
86740         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
86741         (gl_tree_remove_node): Call dispose_fn on the dropped value.
86742         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
86743         (gl_tree_remove_node): Call dispose_fn on the dropped value.
86744         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
86745         argument.
86746         (gl_tree_list_free): Call dispose_fn on the dropped values.
86747         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
86748         the dropped values.
86749         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
86750         Add dispose_fn argument.
86751         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
86752         Call dispose_fn on the dropped values.
86753         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
86754         Add dispose_fn argument.
86755         (gl_sublist_create): Initialize the 'dispose_fn' field.
86756         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
86757         * tests/test-array_list.c (main): Update.
86758         * tests/test-carray_list.c (main): Update.
86759         * tests/test-avltree_list.c (main): Update.
86760         * tests/test-rbtree_list.c (main): Update.
86761         * tests/test-avltreehash_list.c (main): Update.
86762         * tests/test-rbtreehash_list.c (main): Update.
86763         * tests/test-linked_list.c (main): Update.
86764         * tests/test-linkedhash_list.c (main): Update.
86765         * tests/test-array_oset.c (main): Update.
86767 2007-03-15  Bruno Haible  <bruno@clisp.org>
86769         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
86770         (gl_oset_create_empty): Add dispose_fn argument.
86771         (struct gl_oset_implementation): Add dispose_fn argument to
86772         'create_empty' method.
86773         (struct gl_oset_impl_base): Add dispose_fn field.
86774         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
86775         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
86776         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
86777         values.
86778         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
86779         (gl_tree_oset_free): Call dispose_fn on the dropped values.
86780         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
86781         dropped value.
86782         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
86783         dropped value.
86784         * tests/test-array_oset.c (main): Update.
86785         * tests/test-avltree_oset.c (main): Update.
86786         * tests/test-rbtree_oset.c (main): Update.
86787         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
86789 2007-03-13  Bruno Haible  <bruno@clisp.org>
86791         * tests/test-stdbool.c (i): Update after last patch.
86793 2007-03-12  Bruno Haible  <bruno@clisp.org>
86795         * lib/quotearg.c: Include <wctype.h> early, before the definition of
86796         the iswprint macro. Needed on Solaris 2.5.1.
86798 2007-03-12  Bruno Haible  <bruno@clisp.org>
86800         * tests/test-printf-frexp.c (main): Declare x as volatile.
86802 2007-03-12  Simon Josefsson  <simon@josefsson.org>
86804         * doc/gnulib.texi (Build robot for gnulib): New section.
86806 2007-03-12  Jim Meyering  <jim@meyering.net>
86808         * build-aux/bootstrap: New file.
86809         * build-aux/bootstrap.conf: New file, from coreutils.
86811 2007-03-11  Bruno Haible  <bruno@clisp.org>
86813         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
86815 2007-03-12  Simon Josefsson  <simon@josefsson.org>
86817         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
86818         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
86819         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
86821 2007-03-11  Bruno Haible  <bruno@clisp.org>
86823         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
86824         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
86826 2007-03-11  Bruno Haible  <bruno@clisp.org>
86828         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
86829         formula. Needed for SunPRO C 5.0.
86831 2007-03-11  Bruno Haible  <bruno@clisp.org>
86833         * modules/long-options (Depends-on): Add getopt.
86835 2007-03-11  Bruno Haible  <bruno@clisp.org>
86837         * modules/modechange (Depends-on): Add stdbool.
86839 2007-03-11  Bruno Haible  <bruno@clisp.org>
86841         * modules/i-ring (Depends-on): Add stdbool.
86843 2007-03-11  Bruno Haible  <bruno@clisp.org>
86845         * modules/gc-des (Depends-on): Add stdbool.
86847 2007-03-11  Bruno Haible  <bruno@clisp.org>
86849         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
86851 2007-03-11  Bruno Haible  <bruno@clisp.org>
86853         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
86855 2007-03-11  Bruno Haible  <bruno@clisp.org>
86857         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
86859 2007-03-11  Bruno Haible  <bruno@clisp.org>
86861         * lib/vasnprintf.c (sprintf): Undefine.
86863 2007-03-11  Bruno Haible  <bruno@clisp.org>
86865         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
86866         initializers in SunPRO C and Compaq C compilers.
86868 2007-03-11  Bruno Haible  <bruno@clisp.org>
86870         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
86871         decrementing code ANSI C compliant.
86873 2007-03-11  Bruno Haible  <bruno@clisp.org>
86875         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
86876         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
86878 2007-03-11  Bruno Haible  <bruno@clisp.org>
86880         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
86881         <stdbool.h> substitute doesn't pass.
86883 2007-03-11  Bruno Haible  <bruno@clisp.org>
86885         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
86887 2007-03-11  Bruno Haible  <bruno@clisp.org>
86889         * gnulib-tool (func_create_megatestdir): Create also an autobuild
86890         script, for submission to autobuild.josefsson.org.
86892 2007-03-10  Bruno Haible  <bruno@clisp.org>
86894         * modules/canonicalize-lgpl-tests: New file.
86895         * tests/test-canonicalize-lgpl.sh: New file.
86896         * tests/test-canonicalize-lgpl.c: New file.
86898         * modules/c-strcase-tests: New file.
86899         * tests/test-c-strcase.sh: New file.
86900         * tests/test-c-strcasecmp.c: New file.
86901         * tests/test-c-strncasecmp.c: New file.
86903         * modules/atexit-tests: New file.
86904         * tests/test-atexit.sh: New file.
86905         * tests/test-atexit.c: New file.
86907 2007-03-10  Bruno Haible  <bruno@clisp.org>
86909         * tests/test-binary-io.sh: Use temporary filenames that are not so
86910         likely to clash with those of other tests (in a parallel make).
86911         * tests/test-binary-io.c: Likewise.
86913 2007-03-10  Bruno Haible  <bruno@clisp.org>
86915         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
86916         fallback; use #error instead.
86917         Suggested by Simon Josefsson.
86919 2007-03-10  Bruno Haible  <bruno@clisp.org>
86921         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
86922         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
86923         first and the last.
86925 2007-03-10  Bruno Haible  <bruno@clisp.org>
86927         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
86929 2007-03-10  Bruno Haible  <bruno@clisp.org>
86931         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
86932         "make distcheck".
86933         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
86934         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
86935         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
86937 2007-03-10  Bruno Haible  <bruno@clisp.org>
86939         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
86940         variable.
86941         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
86942         variable.
86944 2007-03-09  Eric Blake  <ebb9@byu.net>
86945         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
86947         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
86948         types are not being provided by gnulib.
86949         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
86950         types are supported.
86952 2007-03-10  Bruno Haible  <bruno@clisp.org>
86954         * lib/stdio_.h (__attribute__): New macro.
86955         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
86956         vsprintf): Specify __attribute__ __format__ for GCC.
86957         Suggested by Eric Blake.
86959 2007-03-09  Bruno Haible  <bruno@clisp.org>
86961         * modules/printf-posix-tests: New file.
86962         * tests/test-printf-posix.sh: New file.
86963         * tests/test-printf-posix.c: New file.
86965         * modules/printf-posix: New file.
86966         * lib/printf.c: New file.
86967         * m4/printf-posix-rpl.m4: New file.
86968         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
86969         REPLACE_PRINTF.
86970         * lib/stdio_.h (printf): New declaration.
86971         (format, __format__, ____printf____, ____scanf____, ____strftime____,
86972         ____strfmon____): New macros.
86973         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
86974         REPLACE_PRINTF.
86976 2007-03-09  Bruno Haible  <bruno@clisp.org>
86978         * tests/test-vasnprintf-posix2.sh: New file.
86979         * tests/test-vasnprintf-posix2.c: New file.
86980         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
86981         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
86982         (Makefile.am): Activate test-vasnprintf-posix2.sh.
86984         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
86985         a locale dependent decimal point, rather than always '.'.
86987 2007-03-09  Eric Blake  <ebb9@byu.net>
86989         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
86990         spite of platforms like Tandem/NSK that define it to -1.
86992 2007-03-08  Bruno Haible  <bruno@clisp.org>
86994         * modules/vprintf-posix-tests: New file.
86995         * tests/test-vprintf-posix.sh: New file.
86996         * tests/test-vprintf-posix.c: New file.
86997         * tests/test-printf-posix.h: New file.
86999         * modules/vprintf-posix: New file.
87000         * lib/vprintf.c: New file.
87001         * m4/vprintf-posix.m4: New file.
87002         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
87003         REPLACE_VPRINTF.
87004         * lib/stdio_.h (vprintf): New declaration.
87005         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
87006         REPLACE_VPRINTF.
87008 2007-03-08  Bruno Haible  <bruno@clisp.org>
87010         * modules/fprintf-posix-tests: New file.
87011         * tests/test-fprintf-posix.sh: New file.
87012         * tests/test-fprintf-posix.c: New file.
87014         * modules/fprintf-posix: New file.
87015         * lib/fprintf.c: New file.
87016         * m4/fprintf-posix.m4: New file.
87017         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
87018         REPLACE_FPRINTF.
87019         * lib/stdio_.h (fprintf): New declaration.
87020         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
87021         REPLACE_FPRINTF.
87023 2007-03-08  Bruno Haible  <bruno@clisp.org>
87025         * modules/vfprintf-posix-tests: New file.
87026         * tests/test-vfprintf-posix.sh: New file.
87027         * tests/test-vfprintf-posix.c: New file.
87028         * tests/test-fprintf-posix.h: New file.
87029         * tests/test-fprintf-posix.out: New file.
87031         * modules/vfprintf-posix: New file.
87032         * lib/vfprintf.c: New file.
87033         * m4/vfprintf-posix.m4: New file.
87034         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
87035         REPLACE_VFPRINTF.
87036         * lib/stdio_.h (vfprintf): New declaration.
87037         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
87038         REPLACE_VFPRINTF.
87040 2007-03-08  Bruno Haible  <bruno@clisp.org>
87042         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
87044 2007-03-08  Bruno Haible  <bruno@clisp.org>
87046         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
87047         instead of 'expr' invocations.
87048         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
87049         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
87050         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
87051         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
87052         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
87053         Suggested by Paul Eggert.
87055 2007-03-08  Bruno Haible  <bruno@clisp.org>
87057         * modules/fseterr-tests: New file.
87058         * tests/test-fseterr.c: New file.
87060         * modules/fseterr: New file.
87061         * lib/fseterr.h: New file.
87062         * lib/fseterr.c: New file.
87064 2007-03-08  Bruno Haible  <bruno@clisp.org>
87066         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
87067         * lib/getopt_.h: Likewise.
87068         * lib/mbswidth.h: Likewise.
87069         * lib/setenv.h: Likewise.
87070         * lib/vasnprintf.h: Likewise.
87071         * lib/vasprintf.h: Likewise.
87072         * lib/verror.h: Likewise.
87073         * lib/xsetenv.h: Likewise.
87074         * lib/xvasprintf.h: Likewise.
87076 2007-03-08  Jim Meyering  <jim@meyering.net>
87078         * users.txt: Add parted.
87080         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
87082 2007-03-07  Bruno Haible  <bruno@clisp.org>
87084         * m4/printf.m4: Make the shell script snippets copy&pastable.
87086 2007-03-02  Bruno Haible  <bruno@clisp.org>
87088         * lib/netinet_in_.h: New file.
87089         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
87090         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
87091         * modules/netinet_in (Files): Add lib/netinet_in_.h.
87092         (Depends-on): Add absolute-header.
87093         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
87094         into netinet/in.h.
87096 2007-03-03  Bruno Haible  <bruno@clisp.org>
87098         * lib/sys_select_.h: New file.
87099         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
87100         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
87101         * modules/sys_select (Files): Add lib/sys_select_.h.
87102         (Depends-on): Add absolute-header.
87103         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
87104         into sys/select.h.
87106 2007-03-02  Bruno Haible  <bruno@clisp.org>
87108         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
87109         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
87110         values.
87111         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
87112         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
87113         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
87114         * modules/sys_socket (Depends-on): Add absolute-header.
87115         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
87116         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
87117         (Include): Remove requirement of inclusion of <sys/types.h>.
87119 2007-03-02  Bruno Haible  <bruno@clisp.org>
87121         * lib/byteswap_.h (bswap_32): Fix formula.
87123 2007-03-06  Bruno Haible  <bruno@clisp.org>
87125         * modules/sprintf-posix-tests: New file.
87126         * tests/test-sprintf-posix.c: New file.
87128         * modules/sprintf-posix: New file.
87129         * lib/sprintf.c: New file.
87130         * m4/sprintf-posix.m4: New file.
87131         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
87132         REPLACE_SPRINTF.
87133         * lib/stdio_.h (sprintf): New declaration.
87134         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
87135         REPLACE_SPRINTF.
87137 2007-03-06  Bruno Haible  <bruno@clisp.org>
87139         * modules/vsprintf-posix-tests: New file.
87140         * tests/test-vsprintf-posix.c: New file.
87141         * tests/test-sprintf-posix.h: New file.
87143         * modules/vsprintf-posix: New file.
87144         * lib/vsprintf.c: New file.
87145         * m4/vsprintf-posix.m4: New file.
87146         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
87147         REPLACE_VSPRINTF.
87148         * lib/stdio_.h (vsprintf): New declaration.
87149         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
87150         REPLACE_VSPRINTF.
87152 2007-03-06  Bruno Haible  <bruno@clisp.org>
87154         * modules/vsnprintf (Depend-on): Remove minmax.
87156 2007-03-06  Bruno Haible  <bruno@clisp.org>
87158         * modules/snprintf-posix-tests: New file.
87159         * tests/test-snprintf-posix.c: New file.
87161         * modules/snprintf-posix: New file.
87162         * m4/snprintf-posix.m4: New file.
87163         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
87164         gl_FUNC_SNPRINTF.
87165         (gl_FUNC_SNPRINTF): Invoke it.
87166         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
87167         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
87168         is set.
87169         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
87171 2007-03-06  Bruno Haible  <bruno@clisp.org>
87173         * modules/vsnprintf-posix-tests: New file.
87174         * tests/test-vsnprintf-posix.c: New file.
87175         * tests/test-snprintf-posix.h: New file.
87177         * modules/vsnprintf-posix: New file.
87178         * m4/vsnprintf-posix.m4: New file.
87179         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
87180         gl_FUNC_VSNPRINTF.
87181         (gl_FUNC_VSNPRINTF): Invoke it.
87182         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
87183         * lib/stdio_.h (vsnprintf): Define as a replacement if
87184         REPLACE_VSNPRINTF is set.
87185         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
87187 2007-03-06  Bruno Haible  <bruno@clisp.org>
87189         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
87190         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
87192 2007-03-06  Bruno Haible  <bruno@clisp.org>
87194         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
87195         (asinl): Declare also if HAVE_DECL_ASINL is set.
87196         (atanl): Declare also if HAVE_DECL_ATANL is set.
87197         (ceill): Declare also if HAVE_DECL_CEILL is set.
87198         (cosl): Declare also if HAVE_DECL_COSL is set.
87199         (expl): Declare also if HAVE_DECL_EXPL is set.
87200         (floorl): Declare also if HAVE_DECL_FLOORL is set.
87201         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
87202         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
87203         (logl): Declare also if HAVE_DECL_LOGL is set.
87204         (sinl): Declare also if HAVE_DECL_SINL is set.
87205         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
87206         (tanl): Declare also if HAVE_DECL_TANL is set.
87207         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
87208         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
87209         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
87210         declaration of frexpl, ldexpl.
87211         * modules/printf-frexpl (Depends-on): Add math.
87212         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
87214 2007-03-05  Bruno Haible  <bruno@clisp.org>
87216         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
87217         frexpl and ldexpl are declared.
87218         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
87220 2007-03-05  Bruno Haible  <bruno@clisp.org>
87222         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
87223         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
87225 2007-03-05  Bruno Haible  <bruno@clisp.org>
87227         * lib/stdio_.h: Include <stddef.h>.
87229 2007-03-05  Bruno Haible  <bruno@clisp.org>
87231         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
87233 2007-03-05  Bruno Haible  <bruno@clisp.org>
87235         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
87236         NetBSD 4, from Ralf Wildenhues.
87238 2007-03-04  Bruno Haible  <bruno@clisp.org>
87240         * lib/vasprintf.h: Update #if logic for the case when the functions
87241         exist but are overridden.
87243 2007-03-04  Bruno Haible  <bruno@clisp.org>
87245         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
87246         implementations: glibc-2.4 and MacOS X 10.3.
87247         * tests/test-vasnprintf-posix.c (test_function): Test also the case
87248         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
87249         * tests/test-vasprintf-posix.c (test_function): Likewise.
87251 2007-03-04  Bruno Haible  <bruno@clisp.org>
87253         * modules/vasprintf-posix-tests: New file.
87254         * tests/test-vasprintf-posix.c: New file.
87256         * modules/vasprintf-posix: New file.
87257         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
87258         defined.
87259         * m4/vasprintf-posix.m4: New file.
87260         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
87261         gl_FUNC_VASPRINTF.
87262         (gl_FUNC_VASPRINTF): Invoke it.
87263         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
87264         here.
87265         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
87267 2007-03-04  Bruno Haible  <bruno@clisp.org>
87269         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
87270         REPLACE_GETTIMEOFDAY.
87271         * modules/sys_time (Makefile.am): Likewise.
87272         * m4/sys_time_h.m4: Likewise.
87273         * m4/gettimeofday.m4: Likewise.
87275 2007-03-04  Bruno Haible  <bruno@clisp.org>
87277         * modules/vasnprintf-posix-tests: New file.
87278         * tests/test-vasnprintf-posix.c: New file.
87280         * modules/vasnprintf-posix: New file.
87281         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
87282         printf-frexpl.h.
87283         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
87284         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
87285         REPLACE_VASNPRINTF is defined.
87286         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
87287         gl_FUNC_VASNPRINTF.
87288         (gl_FUNC_VASNPRINTF): Invoke it.
87289         * m4/vasnprintf-posix.m4: New file.
87290         * m4/printf.m4: New file.
87292 2007-03-04  Bruno Haible  <bruno@clisp.org>
87294         Compile progreloc.c only if --enable-relocatable is specified.
87295         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
87296         if --enable-relocatable was specified.
87297         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
87298         lib_SOURCES.
87300 2007-03-04  Jim Meyering  <jim@meyering.net>
87302         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
87303         Use it consistently, rather than enumerating errno constants.
87305 2007-03-04  Bruno Haible  <bruno@clisp.org>
87307         * modules/xvasprintf-tests: New file.
87308         * tests/test-xvasprintf.c: New file.
87310         * modules/vasprintf-tests: New file.
87311         * tests/test-vasprintf.c: New file.
87313         * modules/vasnprintf-tests: New file.
87314         * tests/test-vasnprintf.c: New file.
87316         * modules/vsnprintf-tests: New file.
87317         * tests/test-vsnprintf.c: New file.
87319         * modules/snprintf-tests: New file.
87320         * tests/test-snprintf.c: New file.
87322 2007-03-04  Bruno Haible  <bruno@clisp.org>
87324         Compile relocatable.c only if --enable-relocatable is specified.
87325         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
87326         gl_RELOCATABLE_LIBRARY.
87327         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
87328         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
87329         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
87330         gl_RELOCATABLE_LIBRARY.
87331         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
87332         (Makefile.am): Remove lib_SOURCES.
87333         * modules/relocatable-lib-lgpl (configure.ac): Invoke
87334         gl_RELOCATABLE_LIBRARY.
87335         (Makefile.am): Remove lib_SOURCES.
87336         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
87337         always.
87338         * modules/relocatable-prog-wrapper (configure.ac): Invoke
87339         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
87341 2007-03-04  Bruno Haible  <bruno@clisp.org>
87343         * modules/argmatch-tests: New file.
87344         * tests/test-argmatch.c: New file.
87346         * tests/test-allocsa.c (main): Halve the number of loop runs.
87348         * modules/alloca-opt-tests: New file.
87349         * tests/test-alloca-opt.c: New file.
87351 2007-03-04  Jim Meyering  <jim@meyering.net>
87353         Work around difference between Linux ACLs and Solaris 10 ZFS.
87354         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
87355         for EINVAL.
87357 2007-03-03  Bruno Haible  <bruno@clisp.org>
87359         * modules/relocatable-prog (Depends-on): Add back progreloc's
87360         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
87362 2007-03-03  Bruno Haible  <bruno@clisp.org>
87364         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
87365         * modules/relocatable-lib: New file.
87367 2007-03-03  Bruno Haible  <bruno@clisp.org>
87369         * modules/relocatable-prog: Renamed from modules/relocatable.
87370         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
87372 2007-03-03  Bruno Haible  <bruno@clisp.org>
87374         * modules/relocatable-script (Files): Add doc/relocatable.texi,
87375         m4/relocatable-lib.m4.
87376         (Depends-on): Remove 'relocatable'.
87377         (configure.ac): Add gl_RELOCATABLE_NOP.
87379 2007-03-03  Bruno Haible  <bruno@clisp.org>
87381         * modules/relocatable-prog-wrapper: New file.
87382         * modules/relocatable (Depends-on): Add it. Remove all other
87383         dependencies except progname.
87384         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
87386         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
87387         (gl_FUNC_STRERROR): Nop.
87388         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
87390         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
87391         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
87393         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
87394         (gl_FUNC_READLINK): Update.
87396         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
87398 2007-03-03  Bruno Haible  <bruno@clisp.org>
87400         * lib/xreadlink.c: Include <unistd.h> unconditionally.
87401         * modules/xreadlink (Depends-on): Add unistd.
87402         * modules/xreadlink-with-size (Depends-on): Likewise.
87404 2007-03-03  Bruno Haible  <bruno@clisp.org>
87406         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
87407         extracted from gt_FUNC_SETENV.
87408         (gt_FUNC_SETENV): Remove macro.
87409         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
87410         remove gt_FUNC_SETENV.
87412 2007-03-03  Bruno Haible  <bruno@clisp.org>
87414         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
87415         ENABLE_RELOCATABLE here.
87416         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
87418 2007-03-03  Bruno Haible  <bruno@clisp.org>
87420         * modules/rbtreehash-list-tests (Depends-on): Add progname.
87421         * tests/test-rbtreehash_list.c: Include progname.h.
87422         (main): Call set_program_name.
87424         * modules/rbtree-oset-tests (Depends-on): Add progname.
87425         * tests/test-rbtree_oset.c: Include progname.h.
87426         (main): Call set_program_name.
87428         * modules/rbtree-list-tests (Depends-on): Add progname.
87429         * tests/test-rbtree_list.c: Include progname.h.
87430         (main): Call set_program_name.
87432         * modules/linked-list-tests (Depends-on): Add progname.
87433         * tests/test-linked_list.c: Include progname.h.
87434         (main): Call set_program_name.
87436 2007-03-03  Bruno Haible  <bruno@clisp.org>
87438         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
87439         All uses of __restrict changed to _Restrict_.
87440         * lib/glob_.h (__restrict): Remove macro.
87442 2007-03-02  Bruno Haible  <bruno@clisp.org>
87444         * modules/gettext (configure.ac): Require gettext infrastructure
87445         from version 0.16.1.
87447 2007-03-02  Bruno Haible  <bruno@clisp.org>
87449         * modules/linkedhash-list-tests (Depends-on): Add progname.
87450         * tests/test-linkedhash_list.c: Include progname.h.
87451         (main): Call set_program_name.
87453         * modules/carray-list-tests (Depends-on): Add progname.
87454         * tests/test-carray_list.c: Include progname.h.
87455         (main): Call set_program_name.
87457         * modules/avltreehash-list-tests (Depends-on): Add progname.
87458         * tests/test-avltreehash_list.c: Include progname.h.
87459         (main): Call set_program_name.
87461         * modules/avltree-oset-tests (Depends-on): Add progname.
87462         * tests/test-avltree_oset.c: Include progname.h.
87463         (main): Call set_program_name.
87465         * modules/avltree-list-tests (Depends-on): Add progname.
87466         * tests/test-avltree_list.c: Include progname.h.
87467         (main): Call set_program_name.
87469         * modules/array-oset-tests (Depends-on): Add progname.
87470         * tests/test-array_oset.c: Include progname.h.
87471         (main): Call set_program_name.
87473         * modules/array-list-tests (Depends-on): Add progname.
87474         * tests/test-array_list.c: Include progname.h.
87475         (main): Call set_program_name.
87477         * modules/argp-tests (Depends-on): Add progname.
87478         * tests/test-argp.c: Include argp.h first. Include progname.h.
87479         (main): Call set_program_name.
87481 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
87483         * doc/gnulib-tool.texi (Initial import): Reword description of
87484         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
87485         limited effect even if defined after the first system include.
87487 2007-03-01  Bruno Haible  <bruno@clisp.org>
87489         * build-aux/config.libpath: Update to libtool-1.5.22.
87490         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
87492 2007-03-01  Bruno Haible  <bruno@clisp.org>
87494         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
87495         foo_CFLAGS.
87496         Reported by Ralf Wildenhues.
87498 2007-03-01  Bruno Haible  <bruno@clisp.org>
87500         * build-aux/install-reloc: Remove object files left over by some
87501         compilers.
87502         Reported by Ralf Wildenhues.
87504 2007-03-01  Bruno Haible  <bruno@clisp.org>
87506         * build-aux/install-reloc: Break long lines.
87508 2007-03-01  Bruno Haible  <bruno@clisp.org>
87510         * doc/relocatable.texi: Document that it may not work on OpenBSD.
87511         Reported by Ralf Wildenhues.
87513 2007-03-01  Bruno Haible  <bruno@clisp.org>
87515         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
87516         include ordering constraints.
87518 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
87520         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
87521         <http://lists.gnu.org/r/bug-gnulib/2007-02/msg00136.html>.
87522         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
87523         as another example.
87524         * lib/time_.h: Fix misspelling.
87525         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
87526         Require gl_HEADER_TIME_H_DEFAULTS.
87527         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
87528         * m4/time_r.m4 (gl_TIME_R): Likewise.
87529         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
87531 2007-03-01  Bruno Haible  <bruno@clisp.org>
87533         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
87534         * m4/utimens.m4 (gl_UTIMENS): Likewise.
87536 2007-03-01  Jim Meyering  <jim@meyering.net>
87538         * modules/xreadlink (Maintainer): Add my name.
87539         * modules/xreadlink-with-size (Depends-on): Alphabetize.
87541 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
87542             Bruno Haible  <bruno@clisp.org>
87544         * build-aux/install-reloc: Compile also c-ctype.c.
87545         * build-aux/relocatable.sh.in: New file.
87546         * doc/relocatable.texi: New file.
87547         * doc/relocatable-maint.texi: New file.
87548         * doc/gnulib.texi: Include relocatable-maint.texi.
87549         * lib/progreloc.c: Include unistd.h unconditionally.
87550         * lib/relocwrapper.c: Include unistd.h unconditionally.
87551         Include c-ctype.h.
87552         (add_dotbin): Use c_tolower.
87553         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
87554         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
87555         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
87556         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
87557         to m4/relocatable-lib.m4.
87558         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
87559         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
87560         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
87561         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
87562         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
87563         * modules/relocatable: New file.
87564         * modules/relocatable-lib: New file.
87565         * modules/relocatable-script: New file.
87567 2007-02-28  Bruno Haible  <bruno@clisp.org>
87569         Import --enable-relocatable infrastructure.
87570         * build-aux/config.libpath: New file, from GNU gettext.
87571         * build-aux/install-reloc: New file, from GNU gettext.
87572         * build-aux/reloc-ldflags: New file, from GNU gettext.
87573         * lib/relocatable.h: New file, from GNU gettext.
87574         * lib/relocatable.c: New file, from GNU gettext.
87575         * lib/relocwrapper.c: New file, from GNU gettext.
87576         * m4/relocatable.m4: New file, from GNU gettext.
87578 2007-02-28  Bruno Haible  <bruno@clisp.org>
87580         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
87582         * modules/xreadlink: New file, from GNU gettext with modifications.
87583         * lib/xreadlink.c: New file, from GNU gettext.
87584         * lib/xreadlink.h: Add comments.
87585         (xreadlink): New declaration.
87587         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
87588         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
87589         lib/xreadlink-with-size.c.
87590         (configure.ac): Remove gl_XREADLINK invocation.
87591         (Makefile.am): Augment lib_SOURCES.
87592         * m4/xreadlink.m4: Remove file.
87593         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
87594         (xreadlink_with_size): Renamed from xreadink.
87595         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
87596         * modules/canonicalize (Depends-on): Replace xreadlink with
87597         xreadlink-with-size.
87598         * lib/canonicalize.c (canonicalize_filename_mode): Update.
87600 2007-02-25  Jim Meyering  <jim@meyering.net>
87602         * build-aux/announce-gen: When complaining about excess arguments,
87603         list them.
87605 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
87607         * README: Document signed integer overflow situation more
87608         accurately.
87610 2007-02-25  Bruno Haible  <bruno@clisp.org>
87612         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
87613         'a' or 'A' conversion.
87615 2007-02-25  Bruno Haible  <bruno@clisp.org>
87617         * modules/filename: Renamed from modules/pathname.
87618         (Files): Replace lib/pathname.h with lib/filename.h. Replace
87619         lib/concatpath.c with lib/concat-filename.c.
87620         (Makefile.am): Update.
87621         (Include): Replace pathname.h with filename.h.
87622         * lib/filename.h: Renamed from lib/pathname.h.
87623         (concatenated_filename): Renamed from concatenated_pathname.
87624         * lib/concat-filename.c: Renamed from lib/concatpath.c.
87625         (concatenated_filename): Renamed from concatenated_pathname.
87626         * lib/findprog.c: Include filename.h instead of pathname.h.
87627         (find_in_path): Update.
87628         * lib/javacomp.c: Include filename.h instead of pathname.h.
87629         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
87630         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
87631         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
87632         is_oldgcj_14_13_usable, is_javac_usable): Update.
87633         * lib/javaexec.c: Include filename.h instead of pathname.h.
87634         (execute_java_class): Update.
87635         * modules/findprog: Update.
87636         * modules/javacomp: Update.
87637         * modules/javaexec: Update.
87638         * MODULES.html.sh (File system functions): Add 'filename', remove
87639         'pathname'.
87641 2007-02-25  Bruno Haible  <bruno@clisp.org>
87643         * modules/printf-frexpl-tests: New file.
87644         * tests/test-printf-frexpl.c: New file.
87646         * modules/printf-frexpl: New file.
87647         * lib/printf-frexpl.h: New file.
87648         * lib/printf-frexpl.c: New file.
87649         * m4/printf-frexpl.m4: New file.
87651 2007-02-25  Bruno Haible  <bruno@clisp.org>
87653         * modules/printf-frexp-tests: New file.
87654         * tests/test-printf-frexp.c: New file.
87656         * modules/printf-frexp: New file.
87657         * lib/printf-frexp.h: New file.
87658         * lib/printf-frexp.c: New file.
87659         * m4/printf-frexp.m4: New file.
87661 2007-02-25  Bruno Haible  <bruno@clisp.org>
87663         Assume automake >= 1.10 for the tests.
87664         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
87665         * modules/arctwo-tests: Likewise.
87666         * modules/argp-tests: Likewise.
87667         * modules/avltree-list-tests: Likewise.
87668         * modules/avltree-oset-tests: Likewise.
87669         * modules/avltreehash-list-tests: Likewise.
87670         * modules/carray-list-tests: Likewise.
87671         * modules/crc-tests: Likewise.
87672         * modules/des-tests: Likewise.
87673         * modules/gc-arcfour-tests: Likewise.
87674         * modules/gc-arctwo-tests: Likewise.
87675         * modules/gc-des-tests: Likewise.
87676         * modules/gc-hmac-md5-tests: Likewise.
87677         * modules/gc-hmac-sha1-tests: Likewise.
87678         * modules/gc-md2-tests: Likewise.
87679         * modules/gc-md4-tests: Likewise.
87680         * modules/gc-md5-tests: Likewise.
87681         * modules/gc-pbkdf2-sha1-tests: Likewise.
87682         * modules/gc-rijndael-tests: Likewise.
87683         * modules/gc-sha1-tests: Likewise.
87684         * modules/gc-tests: Likewise.
87685         * modules/getaddrinfo-tests: Likewise.
87686         * modules/hmac-md5-tests: Likewise.
87687         * modules/hmac-sha1-tests: Likewise.
87688         * modules/linked-list-tests: Likewise.
87689         * modules/linkedhash-list-tests: Likewise.
87690         * modules/lock-tests: Likewise.
87691         * modules/md2-tests: Likewise.
87692         * modules/md4-tests: Likewise.
87693         * modules/md5-tests: Likewise.
87694         * modules/rbtree-list-tests: Likewise.
87695         * modules/rbtree-oset-tests: Likewise.
87696         * modules/rbtreehash-list-tests: Likewise.
87697         * modules/read-file-tests: Likewise.
87698         * modules/rijndael-tests: Likewise.
87699         * modules/stdint-tests: Likewise.
87700         * modules/tls-tests: Likewise.
87702 2007-02-24  Bruno Haible  <bruno@clisp.org>
87704         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
87705         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
87706         function; instead check whether isnan with a double argument links.
87707         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
87708         function; instead check whether isnan with a 'long double' argument
87709         links.
87710         Reported by Eric Blake <ebb9@byu.net>.
87712 2007-02-24  Bruno Haible  <bruno@clisp.org>
87714         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
87715         defined.
87716         * lib/isnanl.c: Remove all code. Just include isnan.c.
87717         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
87719 2007-02-25  Jim Meyering  <jim@meyering.net>
87721         Avoid conflicting types for 'unsetenv' on FreeBSD.
87722         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
87723         conflicting with FreeBSD's (5.0 and 6.1) function declaration
87724         in stdlib.h.
87726 2007-02-24  Bruno Haible  <bruno@clisp.org>
87728         * modules/isnanl-nolibm-tests: New file.
87729         * tests/test-isnanl.c: New file.
87731         * modules/isnanl-nolibm: New file.
87732         * lib/isnanl.h: New file.
87733         * lib/isnanl.c: New file.
87734         * m4/isnanl.m4: New file.
87736 2007-02-24  Bruno Haible  <bruno@clisp.org>
87738         * modules/isnan-nolibm-tests: New file.
87739         * tests/test-isnan.c: New file.
87741         * modules/isnan-nolibm: New file.
87742         * lib/isnan.h: New file.
87743         * lib/isnan.c: New file.
87744         * m4/isnan.m4: New file.
87746 2007-02-24  Bruno Haible  <bruno@clisp.org>
87748         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
87749         assume that an exponent fits in 20 bits.
87751 2007-02-24  Jim Meyering  <jim@meyering.net>
87753         * m4/regex.m4: Update the description of the configure-time option,
87754         --without-included-regex, to state accurately what the defaults are,
87755         and perhaps to give people an idea why using this option is risky.
87757 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
87759         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
87760         loops on small arguments.  This attempts to avoid the problem
87761         Bruno Haible reported for AIX 4.3.2 in
87762         <http://lists.gnu.org/r/bug-gnulib/2007-02/msg00309.html>.
87764 2007-02-23  Bruno Haible  <bruno@clisp.org>
87766         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
87767         Needed for help2man.
87769 2007-02-23  Karl Berry  <karl@gnu.org>
87771         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
87772         exists, foo.h should be cvs-ignored, not committed.
87774 2007-02-23  Eric Blake  <ebb9@byu.net>
87776         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
87777         * lib/stat-time.h (includes): Likewise.
87778         * lib/utimecmp.c (includes): Likewise.
87779         * lib/utimens.h (includes): Likewise.
87780         * lib/getdate.y (includes): Also include "timespec.h" for use
87781         internal to the module.
87782         * modules/utimens (Depends-on): Revert yesterday's patch.
87783         * modules/nanosleep (Depends-on): Add missing dependency.
87785 2007-02-22  Bruno Haible  <bruno@clisp.org>
87787         * lib/glob.c: Don't include getlogin_r.h.
87789 2007-02-22  Jim Meyering  <jim@meyering.net>
87791         * modules/utimens (Depends-on): Add timespec, required for
87792         utimens.h's inclusion of timespec.h.
87794 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
87796         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
87797         long unreadable paths in GNU/Linux.  Problem reported by Andreas
87798         Schwab in
87799         <http://lists.gnu.org/r/bug-gnulib/2007-02/msg00261.html>.
87800         I'll try to think of a better way to fix the Solaris problem.
87802         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
87803         like glibc; on Solaris 10, it fails with errno == EINVAL.
87804         POSIX says the behavior is unspecified if the first argument is NULL,
87805         so play it safe and never pass NULL to the system getcwd.
87807 2007-02-21  Jim Meyering  <jim@meyering.net>
87809         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
87810         of gettimeofday.  It would conflict with the one now always
87811         provided via sys_time_.h.  Reported by Matthew Woehlke, as
87812         an IRIX 6.5 build failure.
87814 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
87816         Minor fixups to port to Solaris 10 with Sun C 5.8.
87817         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
87818         * modules/getcwd (Depends-on): Add dirfd.
87819         * lib/putenv.c (putenv): #undef it.
87820         (rpl_putenv): New decl.
87821         (malloc, free): Include <stdlib.h> rather than prototyping separately.
87823 2007-02-20  Bruno Haible  <bruno@clisp.org>
87825         * modules/stdio-tests: New file.
87826         * tests/test-stdio.c: New file.
87828         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
87829         (Depends-on): Add stdio.
87830         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
87831         (Include): Use <stdio.h> instead of vsnprintf.h.
87832         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
87833         HAVE_DECL_VSNPRINTF.
87834         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
87836         * modules/snprintf (Files): Remove lib/snprintf.h.
87837         (Depends-on): Add stdio.
87838         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
87839         (Include): Use <stdio.h> instead of snprintf.h.
87840         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
87841         HAVE_DECL_SNPRINTF.
87842         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
87843         * lib/getaddrinfo.c: Likewise.
87845         * modules/stdio: New file.
87846         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
87847         * lib/snprintf.h: Remove file.
87848         * lib/vsnprintf.h: Remove file.
87849         * lib/.cppi-disable: Remove snprintf.h.
87850         * m4/stdio_h.m4: New file.
87851         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
87853 2007-02-20  Jim Meyering  <jim@meyering.net>
87855         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
87856         used by e.g., mingw.  From Bruno Haible.
87858 2007-02-19  Bruno Haible  <bruno@clisp.org>
87860         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
87861         warnings.
87862         Reported by Ben Pfaff <blp@cs.stanford.edu>.
87864 2007-02-19  Bruno Haible  <bruno@clisp.org>
87866         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
87867         from mingw users.
87869 2007-02-19  Bruno Haible  <bruno@clisp.org>
87871         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
87872         warnings.
87873         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
87875 2007-02-19  Jim Meyering  <jim@meyering.net>
87877         Don't use FD after a successful "fdopendir (fd)".
87878         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
87879         Reset it by calling dirfd on the just-obtained DIR*.
87881         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
87882         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
87884 2007-02-18  Bruno Haible  <bruno@clisp.org>
87886         * lib/readlink.c: Include <unistd.h>.
87887         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
87888         HAVE_READLINK.
87889         * modules/readlink (Depends-on): Add unistd.
87890         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
87891         (Include): Add <unistd.h>.
87893         * lib/getlogin_r.h: Remove file.
87894         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
87895         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
87896         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
87897         HAVE_DECL_GETLOGIN_R.
87898         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
87899         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
87900         (Include): Use <unistd.h> instead of getlogin_r.h.
87902         * lib/getcwd.h: Remove file.
87903         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
87904         * lib/xgetcwd.c: Likewise.
87905         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
87906         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
87907         * modules/getcwd (Files): Remove lib/getcwd.h.
87908         (Depends-on): Add unistd.
87909         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
87910         (Include): Use <unistd.h> instad of getcwd.h.
87912         * lib/ftruncate.c: Include <unistd.h> first.
87913         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
87914         Set HAVE_FTRUNCATE.
87915         * modules/ftruncate (Depends-on): Add unistd.
87916         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
87918         * lib/fchdir.c: Include <unistd.h> first.
87919         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
87920         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
87921         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
87922         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
87923         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
87925         * lib/dup2.c: Include <unistd.h> first.
87926         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
87927         HAVE_DUP2.
87928         * modules/dup2 (Depends-on): Add unistd.
87929         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
87931         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
87932         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
87933         REPLACE_CHOWN. Don't define chown as a macro here.
87934         * modules/chown (Depends-on): Add unistd.
87935         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
87937         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
87938         Add definition for GL_LINK_WARNING.
87939         (chown, dup2): New declarations.
87940         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
87941         link warning.
87942         (ftruncate): New declaration.
87943         (getcwd): New declaration, taken from old getcwd.h.
87944         (getlogin_r): New declaration, taken from old getlogin_r.h.
87945         (readlink): New declaration.
87946         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
87947         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
87948         (gl_PREREQ_UNISTD): Remove macro.
87949         (gl_UNISTD_MODULE_INDICATOR): New macro.
87950         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
87951         many new variables. Don't set UNISTD_H.
87952         * modules/unistd (Description): Change.
87953         (Depends-on): Add link-warning.
87954         (configure.ac): Update.
87955         (Makefile.am): Create unistd.h always. Substitute many new variables
87956         into it.
87958 2007-02-18  Bruno Haible  <bruno@clisp.org>
87960         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
87961         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
87962         HAVE_GETSUBOPT.
87963         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
87964         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
87965         * lib/getsubopt.h: Remove file.
87966         * modules/getsubopt (Files): Remove lib/getsubopt.h.
87967         (Depends-on): Add stdlib.
87968         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
87969         (Includes): Use <stdlib.h> instead of getsubopt.h.
87970         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
87971         Set HAVE_GETSUBOPT.
87972         * lib/getsubopt.c: Don't include getsubopt.h.
87974 2007-02-18  Bruno Haible  <bruno@clisp.org>
87976         * modules/fchdir (Depends-on): Add dup2.
87978 2007-02-18  Bruno Haible  <bruno@clisp.org>
87980         * lib/stdlib_.h: Handle glibc's special invocation convention
87981         specially.
87983 2007-02-18  Bruno Haible  <bruno@clisp.org>
87985         * modules/stdlib-tests: New file.
87986         * tests/test-stdlib.c: New file.
87988         * modules/mkstemp (Files): Remove lib/mkstemp.h.
87989         (Depends-on): Add stdlib.
87990         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
87991         (Includes): Use <stdlib.h> instead of mkstemp.h.
87992         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
87993         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
87994         * lib/mkstemp.c: Don't include mkstemp.h.
87995         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
87996         * lib/stdlib--.h: Don't include mkstemp.h.
87998         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
87999         (Depends-on): Add stdlib.
88000         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
88001         (Includes): Use <stdlib.h> instead of mkdtemp.h.
88002         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
88003         HAVE_MKDTEMP.
88004         * lib/mkdtemp.c: Don't include mkdtemp.h.
88005         * lib/clean-temp.c: Don't include mkdtemp.h.
88007         * modules/exit (Files): Remove lib/exit.h.
88008         (Depends-on): Add stdlib.
88009         (Makefile.am): Remove lib_SOURCES.
88010         (Include): Use <stdlib.h> instead of exit.h.
88011         * lib/argmatch.c: Don't include exit.h.
88012         * lib/execute.c: Likewise.
88013         * lib/pagealign_alloc.c: Likewise.
88014         * lib/pipe.c: Likewise.
88015         * lib/wait-process.c: Likewise.
88016         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
88017         * lib/exitfail.c: Likewise.
88018         * lib/savewd.c: Likewise.
88019         * lib/xsetenv.c: Likewise.
88021         * modules/stdlib: New file.
88022         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
88023         and extra comments about mkstemp().
88024         * lib/exit.h: Remove file.
88025         * lib/mkdtemp.h: Remove file.
88026         * lib/mkstemp.h: Remove file.
88027         * m4/stdlib_h.m4: New file.
88028         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
88030 2007-02-18  Bruno Haible  <bruno@clisp.org>
88032         * modules/math-tests: New file.
88033         * tests/test-math.c: New file.
88035         * modules/math: New file.
88036         * modules/mathl (Files): Remove lib/mathl.h.
88037         (Depends-on): Add math.
88038         (Makefile.am): Don't mention mathl.h.
88039         (Include): Use <math.h> instead of mathl.h.
88040         * lib/math_.h: New file.
88041         * lib/mathl.h: Remove file.
88042         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
88043         mathl.h.
88044         * lib/asinl.c: Likewise.
88045         * lib/atanl.c: Likewise.
88046         * lib/ceill.c: Likewise.
88047         * lib/cosl.c: Likewise.
88048         * lib/expl.c: Likewise.
88049         * lib/floorl.c: Likewise.
88050         * lib/frexpl.c: Likewise.
88051         * lib/ldexpl.c: Likewise.
88052         * lib/logl.c: Likewise.
88053         * lib/sincosl.c: Likewise.
88054         * lib/sinl.c: Likewise.
88055         * lib/sqrtl.c: Likewise.
88056         * lib/tanl.c: Likewise.
88057         * lib/trigl.c: Likewise.
88058         * m4/math_h.m4: New file.
88059         * MODULES.html.sh (Mathematics): Add math.
88061 2007-02-17  Bruno Haible  <bruno@clisp.org>
88063         * modules/wctype-tests: New file.
88064         * tests/test-wctype.c: New file.
88066         * modules/wchar-tests: New file.
88067         * tests/test-wchar.c: New file.
88069         * modules/unistd-tests: New file.
88070         * tests/test-unistd.c: New file.
88072         * modules/time-tests: New file.
88073         * tests/test-time.c: New file.
88075         * modules/sysexits-tests: New file.
88076         * tests/test-sysexits.c: New file.
88078         * modules/sys_time-tests: New file.
88079         * tests/test-sys_time.c: New file.
88081         * modules/sys_stat-tests: New file.
88082         * tests/test-sys_stat.c: New file.
88084         * modules/sys_socket-tests: New file.
88085         * tests/test-sys_socket.c: New file.
88087         * modules/sys_select-tests: New file.
88088         * tests/test-sys_select.c: New file.
88090         * modules/string-tests: New file.
88091         * tests/test-string.c: New file.
88093         * modules/stdbool-tests: New file.
88094         * tests/test-stdbool.c: New file.
88096         * modules/netinet_in-tests: New file.
88097         * tests/test-netinet_in.c: New file.
88099         * modules/inttypes-tests: New file.
88100         * tests/test-inttypes.c: New file.
88102         * modules/fcntl-tests: New file.
88103         * tests/test-fcntl.c: New file.
88105         * modules/byteswap-tests: New file.
88106         * tests/test-byteswap.c: New file.
88108         * modules/arpa_inet-tests: New file.
88109         * tests/test-arpa_inet.c: New file.
88111 2007-02-17  Bruno Haible  <bruno@clisp.org>
88113         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
88114         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
88115         if the corresponding module is not enabled. Emit link warnings if
88116         the function is used nevertheless.
88117         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
88118         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
88119         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
88120         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
88121         * modules/inttypes (Depends-on): Add link-warning.
88122         (Makefile.am): Copy the contents of build-aux/link-warning.h into
88123         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
88124         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
88125         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
88126         * modules/imaxdiv (configure.ac): Likewise.
88127         * modules/strtoimax (configure.ac): Likewise.
88128         * modules/strtoumax (configure.ac): Likewise.
88130 2007-02-17  Bruno Haible  <bruno@clisp.org>
88132         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
88133         gl_STRING_MODULE_INDICATOR_DEFAULTS.
88134         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
88135         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
88137 2007-02-17  Bruno Haible  <bruno@clisp.org>
88139         * modules/link-warning: New file.
88140         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
88141         * lib/string_.h (GL_LINK_WARNING): Remove definition.
88142         * modules/string (Depends-on): Add link-warning.
88143         (Makefile.am): Copy the contents of build-aux/link-warning.h into
88144         string.h.
88145         * MODULES.html.sh (Support for building libraries and executables): Add
88146         link-warning.
88148 2007-02-17  Bruno Haible  <bruno@clisp.org>
88150         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
88151         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
88152         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
88153         long lines.
88155 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
88156             Bruno Haible  <bruno@clisp.org>
88158         * modules/tmpfile: New file.
88159         * lib/tmpfile.c: New file.
88160         * m4/tmpfile.m4: New file.
88161         * MODULES.html.sh (func_all_modules): New section "Input/output".
88163 2007-02-15  Bruno Haible  <bruno@clisp.org>
88165         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
88166         (supports_delete_on_close): New function.
88167         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
88169 2007-02-14  Bruno Haible  <bruno@clisp.org>
88171         * modules/mbspcasecmp-tests: New file.
88172         * tests/test-mbspcasecmp.sh: New file.
88173         * tests/test-mbspcasecmp.c: New file.
88175         New module mbspcasecmp.
88176         * modules/mbspcasecmp: New file.
88177         * lib/mbspcasecmp.c: New file.
88178         * lib/string_.h (strncasecmp): Change warning message.
88179         (mbspcasecmp): New declaration.
88180         * m4/mbspcasecmp.m4: New file.
88181         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
88182         GNULIB_MBSPCASECMP.
88183         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
88184         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
88186 2007-02-14  Bruno Haible  <bruno@clisp.org>
88188         * modules/mbsncasecmp-tests: New file.
88189         * tests/test-mbsncasecmp.sh: New file.
88190         * tests/test-mbsncasecmp.c: New file.
88192         New module mbsncasecmp.
88193         * modules/mbsncasecmp: New file.
88194         * lib/mbsncasecmp.c: New file.
88195         * lib/string_.h (mbsncasecmp): New declaration.
88196         * m4/mbsncasecmp.m4: New file.
88197         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
88198         GNULIB_MBSNCASECMP.
88199         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
88200         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
88202 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
88204         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
88205         Verify that it doesn't overlap with our flags.
88206         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
88207         do not have the desired effect in multibyte locales; instead, use
88208         mbscasecmp.
88209         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
88210         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
88211         we don't require GNU fnmatch ourselves (if our users require it, they
88212         should do so explicitly).
88214         Fix regex code so it doesn't rely on strcasecmp.
88215         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
88216         Otherwise, include gnulib's langinfo.h.
88217         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
88218         undesirable behavior in non-C locales.  Instead, rely on localecharset.
88219         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
88220         * modules/regex (FILES): Remove m4/codeset.m4.
88221         (Depends-on): Add localcharset.  Remove strcase.
88223 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
88225         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
88226         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
88228 2007-02-13  Bruno Haible  <bruno@clisp.org>
88230         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
88231         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
88233 2007-02-12  Bruno Haible  <bruno@clisp.org>
88235         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
88236         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
88237         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
88238         time warning rather than a link error.
88240 2007-02-12  Bruno Haible  <bruno@clisp.org>
88242         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
88243         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
88244         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
88246 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
88248         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
88249         args, not 2.
88251 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
88253         New module 'time', so that apps can include <time.h> as per
88254         POSIX and GNU instead of separate include files like time_r.h
88255         and timegm.h.  This implementation tries out a simpler approach
88256         for replacing decls in standard include files (as compared to
88257         the string module), somewhat as an experiment.
88259         * config/srclist.txt: Comment out mktime.c for now.
88260         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
88261         since it doesn't apply any more.  Use generic wording instead.
88262         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
88263         'time'.
88264         * lib/time_.h, m4/time_h.m4, modules/time: New files.
88265         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
88266         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
88267         Don't include <sys/types.h>; no longer needed since we assume C89.
88268         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
88269         * lib/strftime.c: Likewise.
88270         * lib/time_r.c: Likewise.
88271         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
88272         * lib/nanosleep.c: Include <time.h> first, to check interface.
88273         * lib/strptime.c: Likewise.
88274         * lib/time_r.c: Likewise.
88275         * lib/timegm.c: Likewise.
88276         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
88277         needed.
88278         * lib/timegm.c: Don't include timegm.h; no longer needed.
88279         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
88280         time.h now handles any problems in that area.
88281         (struct timespec, nanosleep): Remove; time.h now arranges for these.
88282         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
88283         that time.h defines struct timespec.
88284         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
88285         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
88286         handles that.
88287         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
88288         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
88289         needed.  Set REPLACE_LOCALTIME.
88290         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
88291         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
88292         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
88293         nanosleep; time_h.m4 now does that.  Don't require
88294         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
88295         module handles this now.
88296         * modules/getdate (Depends-on): Remove timespec.  Add time.
88297         * modules/nanosleep (Depends-on): Likewise.
88298         * modules/stat-time (Depends-on): Likewise.
88299         * modules/nanosleep (Include): Include time.h, not timespec.h.
88300         * modules/strptime (Files): Remove lib/strptime.h.
88301         (Depends-on): Add extensions, time.
88302         (Include): Include time.h, not strptime.h.
88303         * modules/time_r (Files): Remove lib/time_r.h.
88304         (Depends-on): Add time.
88305         (Include): Include time.h, not time_r.h.
88306         * modules/timegm: Likewise.
88307         * modules/timespec (Description): Now does timespec-related decls
88308         of our own, instead of struct timespec itself.
88309         (Depends-on): Add time; remove extensions.
88310         (Maintainer): Add self.
88311         * modules/utimecmp (Depends-on): Add time; remove timespec.
88312         * modules/utimens (Depends-on): Likewise.
88313         * modules/xnanosleep (Depends-on): Likewise.
88315 2007-02-11  Bruno Haible  <bruno@clisp.org>
88317         * lib/c-strstr.c: Include allocsa.h.
88318         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
88319         * lib/c-strcasestr.c: Include allocsa.h.
88320         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
88321         * lib/strcasestr.c: Include allocsa.h.
88322         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
88323         * lib/mbsstr.c: Include allocsa.h.
88324         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
88325         allocsa/freesa instead of malloc/free.
88326         * lib/mbscasestr.c: Include allocsa.h.
88327         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
88328         allocsa/freesa instead of malloc/free.
88329         * modules/c-strstr (Depends-on): Add allocsa.
88330         * modules/c-strcasestr (Depends-on): Likewise.
88331         * modules/strcasestr (Depends-on): Likewise.
88332         * modules/mbsstr (Depends-on): Likewise.
88333         * modules/mbscasestr (Depends-on): Likewise.
88335 2007-02-11  Bruno Haible  <bruno@clisp.org>
88337         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
88339         * modules/mbsspn-tests: New file.
88340         * tests/test-mbsspn.sh: New file.
88341         * tests/test-mbsspn.c: New file.
88343 2007-02-11  Bruno Haible  <bruno@clisp.org>
88345         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
88347         * modules/mbspbrk-tests: New file.
88348         * tests/test-mbspbrk.sh: New file.
88349         * tests/test-mbspbrk.c: New file.
88351 2007-02-11  Bruno Haible  <bruno@clisp.org>
88353         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
88354         unneeded cast.
88356         * modules/mbscspn-tests: New file.
88357         * tests/test-mbscspn.sh: New file.
88358         * tests/test-mbscspn.c: New file.
88360 2007-02-11  Bruno Haible  <bruno@clisp.org>
88362         * modules/mbscasecmp-tests: New file.
88363         * tests/test-mbscasecmp.sh: New file.
88364         * tests/test-mbscasecmp.c: New file.
88366 2007-02-11  Bruno Haible  <bruno@clisp.org>
88368         Ensure O(n) worst-case complexity of mbscasestr.
88369         * lib/mbscasestr.c: Include stdbool.h.
88370         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
88371         functions.
88372         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
88373         the bookkeeping indicates that it's worth it.
88374         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
88376         * modules/mbscasestr-tests: New file.
88377         * tests/test-mbscasestr1.c: New file.
88378         * tests/test-mbscasestr2.sh: New file.
88379         * tests/test-mbscasestr2.c: New file.
88380         * tests/test-mbscasestr3.sh: New file.
88381         * tests/test-mbscasestr3.c: New file.
88382         * tests/test-mbscasestr4.sh: New file.
88383         * tests/test-mbscasestr4.c: New file.
88384         * m4/locale-tr.m4: New file.
88386 2007-02-11  Bruno Haible  <bruno@clisp.org>
88388         Ensure O(n) worst-case complexity of mbsstr.
88389         * lib/mbsstr.c: Include stdbool.h.
88390         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
88391         functions.
88392         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
88393         bookkeeping indicates that it's worth it.
88394         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
88396         * modules/mbsstr-tests: New file.
88397         * tests/test-mbsstr1.c: New file.
88398         * tests/test-mbsstr2.sh: New file.
88399         * tests/test-mbsstr2.c: New file.
88400         * tests/test-mbsstr3.sh: New file.
88401         * tests/test-mbsstr3.c: New file.
88402         * m4/locale-fr.m4: New file.
88404 2007-02-11  Bruno Haible  <bruno@clisp.org>
88406         * lib/mbsrchr.c (mbsrchr): Fix bug.
88408         * modules/mbsrchr-tests: New file.
88409         * tests/test-mbsrchr.sh: New file.
88410         * tests/test-mbsrchr.c: New file.
88412 2007-02-11  Bruno Haible  <bruno@clisp.org>
88414         * lib/mbschr.c (mbschr): Fix bug.
88416         * modules/mbschr-tests: New file.
88417         * tests/test-mbschr.sh: New file.
88418         * tests/test-mbschr.c: New file.
88419         * m4/locale-zh.m4: New file.
88421 2007-02-11  Bruno Haible  <bruno@clisp.org>
88423         Support for copying multibyte string iterators.
88424         * lib/mbiter.h: Include <string.h>.
88425         (mbiter_multi_copy): New function.
88426         (mbi_copy): New macro.
88427         * lib/mbuiter.h: Include <string.h>.
88428         (mbuiter_multi_copy): New function.
88429         (mbui_copy): New macro.
88431 2007-02-11  Bruno Haible  <bruno@clisp.org>
88433         New module mbslen.
88434         * modules/mbslen: New file.
88435         * lib/mbslen.c: New file.
88436         * lib/string_.h (mbslen): New declaration.
88437         * m4/mbslen.m4: New file.
88438         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
88439         GNULIB_MBSLEN.
88440         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
88441         * MODULES.html.sh (Internationalization functions): Add mbslen.
88443 2007-02-11  Bruno Haible  <bruno@clisp.org>
88445         Ensure O(n) worst-case complexity of strcasestr substitute.
88446         * lib/strcasestr.c: Include stdbool.h.
88447         (knuth_morris_pratt): New function.
88448         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
88449         bookkeeping indicates that it's worth it.
88450         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
88452         * modules/strcasestr-tests: New file.
88453         * tests/test-strcasestr.c: New file.
88455 2007-02-11  Bruno Haible  <bruno@clisp.org>
88457         Ensure O(n) worst-case complexity of c_strcasestr.
88458         * lib/c-strcasestr.c: Include stdbool.h, string.h.
88459         (knuth_morris_pratt): New function.
88460         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
88461         the bookkeeping indicates that it's worth it.
88462         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
88464         * modules/c-strcasestr-tests: New file.
88465         * tests/test-c-strcasestr.c: New file.
88467 2007-02-11  Bruno Haible  <bruno@clisp.org>
88469         Ensure O(n) worst-case complexity of c_strstr.
88470         * lib/c-strstr.c: Include stdbool.h, string.h.
88471         (knuth_morris_pratt): New function.
88472         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
88473         bookkeeping indicates that it's worth it.
88474         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
88476         * lib/c-strstr.c: Complete rewrite for maintainability.
88478         * modules/c-strstr-tests: New file.
88479         * tests/test-c-strstr.c: New file.
88481 2007-02-11  Bruno Haible  <bruno@clisp.org>
88483         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
88484         5.2.1 and earlier, whereby \055 was treated just like the range
88485         delimiter '-'.
88486         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
88488 2007-02-08  Bruno Haible  <bruno@clisp.org>
88490         * modules/regex (Depends-on): Add stdbool.
88491         Reported by Dalibor Topic <robilad@kaffe.org>.
88493 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
88495         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
88496         Prefer returning from main to exiting from it.
88497         Remove unnecessary parens after sizeof.
88499 2007-02-05  Bruno Haible  <bruno@clisp.org>
88501         New module mbssep.
88502         * modules/mbssep: New file.
88503         * lib/mbssep.c: New file.
88504         * lib/string_.h (strsep): Add a conditional link warning.
88505         (mbssep): New declaration.
88506         * m4/mbssep.m4: New file.
88507         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
88508         GNULIB_MBSSEP.
88509         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
88510         * MODULES.html.sh (Internationalization functions): Add mbssep.
88512 2007-02-05  Bruno Haible  <bruno@clisp.org>
88514         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
88515         Optimize search in case of 1 delimiter.
88517 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
88519         * lib/acl.h: Include sys/types.h before sys/acl.h.
88521 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
88523         Merge upstream fix for glibc bugzilla #3957:
88525         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
88527         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
88528         bit for RE_HAT_LISTS_NOT_NEWLINE.
88529         (build_charclass_op): Remove bogus comment.
88531 2007-02-05  Simon Josefsson  <simon@josefsson.org>
88533         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
88535 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
88537         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
88538         * lib/memmem.c [!defined _LIBC]: Include config.h.
88540 2007-02-04  Bruno Haible  <bruno@clisp.org>
88542         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
88543         warning message.
88545 2007-02-04  Bruno Haible  <bruno@clisp.org>
88547         New module mbstok_r.
88548         * modules/mbstok_r: New file.
88549         * lib/mbstok_r.c: New file.
88550         * lib/string_.h (strtok_r): Change argument names to match the
88551         comments. Add a conditional link warning.
88552         (mbstok_r): New declaration.
88553         * m4/mbstok_r.m4: New file.
88554         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
88555         GNULIB_MBSTOK_R.
88556         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
88557         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
88559 2007-02-04  Bruno Haible  <bruno@clisp.org>
88561         New module mbsspn.
88562         * modules/mbsspn: New file.
88563         * lib/mbsspn.c: New file.
88564         * lib/string_.h (strspn): Add a conditional link warning.
88565         (mbsspn): New declaration.
88566         * m4/mbsspn.m4: New file.
88567         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
88568         GNULIB_MBSSPN.
88569         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
88570         * MODULES.html.sh (Internationalization functions): Add mbsspn.
88572 2007-02-04  Bruno Haible  <bruno@clisp.org>
88574         New module mbspbrk.
88575         * modules/mbspbrk: New file.
88576         * lib/mbspbrk.c: New file.
88577         * lib/string_.h (strpbrk): Add a conditional link warning.
88578         (mbspbrk): New declaration.
88579         * m4/mbspbrk.m4: New file.
88580         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
88581         GNULIB_MBSPBRK.
88582         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
88583         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
88585 2007-02-04  Bruno Haible  <bruno@clisp.org>
88587         New module mbscspn.
88588         * modules/mbscspn: New file.
88589         * lib/mbscspn.c: New file.
88590         * lib/string_.h (strcspn): Add a conditional link warning.
88591         (mbscspn): New declaration.
88592         * m4/mbscspn.m4: New file.
88593         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
88594         GNULIB_MBSCSPN.
88595         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
88596         * MODULES.html.sh (Internationalization functions): Add mbscspn.
88598 2007-02-04  Bruno Haible  <bruno@clisp.org>
88600         New module mbscasestr, reduced goal of strcasestr.
88601         * modules/mbscasestr: New file.
88602         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
88603         (mbscasestr): Renamed from strcasestr.
88604         * lib/strcasestr.c: Don't include mbuiter.h.
88605         (strcasestr): Remove support for multibyte locales.
88606         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
88607         Change the conditional link warning.
88608         (mbscasestr): New declaration.
88609         * m4/mbscasestr.m4: New file.
88610         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
88611         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
88612         REPLACE_STRCASESTR.
88613         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
88614         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
88615         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
88616         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
88617         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
88618         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
88619         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
88620         (Depends-on): Remove mbuiter.
88621         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
88623 2007-02-04  Bruno Haible  <bruno@clisp.org>
88625         Simplify handling of strncasecmp.
88626         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
88627         the conditional link warning.
88628         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
88629         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
88630         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
88631         * modules/strcase (configure.ac): Don't invoke
88632         gl_STRING_MODULE_INDICATOR.
88633         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
88635 2007-02-04  Bruno Haible  <bruno@clisp.org>
88637         New module mbscasecmp, reduced goal of strcasecmp.
88638         * modules/mbscasecmp: New file.
88639         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
88640         (mbscasecmp): Renamed from strcasecmp.
88641         * lib/strcasecmp.c: Don't include mbuiter.h.
88642         (strcasecmp): Remove support for multibyte locales.
88643         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
88644         Change the conditional link warning.
88645         (mbscasecmp): New declaration.
88646         * m4/mbscasecmp.m4: New file.
88647         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
88648         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
88649         REPLACE_STRCASECMP.
88650         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
88651         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
88652         GNULIB_MBSCASECMP.
88653         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
88654         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
88655         * modules/strcase (Files): Remove m4/mbrtowc.m4.
88656         (Depends-on): Remove mbuiter.
88657         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
88659 2007-02-04  Bruno Haible  <bruno@clisp.org>
88661         New module mbsstr. Remove module strstr.
88662         * modules/mbsstr: New file.
88663         * modules/strstr: Remove file.
88664         * lib/mbsstr.c: Renamed from lib/strstr.c.
88665         (mbsstr): Renamed from strstr.
88666         * lib/string_.h (strstr): Remove declaration. Change the conditional
88667         link warning.
88668         (mbsstr): New declaration.
88669         * m4/mbsstr.m4: New file.
88670         * m4/strstr.m4: Remove file.
88671         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
88672         REPLACE_STRSTR.
88673         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
88674         Don't initialize GNULIB_STRSTR.
88675         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
88676         substitute GNULIB_STRSTR and REPLACE_STRSTR.
88677         * MODULES.html.sh (Internationalization functions): Add mbsstr.
88678         (Support for systems lacking ANSI C 89): Remove strstr.
88680 2007-02-04  Bruno Haible  <bruno@clisp.org>
88682         New module mbsrchr.
88683         * modules/mbsrchr: New file.
88684         * lib/mbsrchr.c: New file.
88685         * lib/string_.h (strrchr): Add a conditional link warning.
88686         (mbsrchr): New declaration.
88687         * m4/mbsrchr.m4: New file.
88688         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
88689         GNULIB_MBSRCHR.
88690         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
88691         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
88693 2007-02-04  Bruno Haible  <bruno@clisp.org>
88695         New module mbschr.
88696         * modules/mbschr: New file.
88697         * lib/mbschr.c: New file.
88698         * lib/string_.h (strchr): Add a conditional link warning.
88699         (mbschr): New declaration.
88700         * m4/mbschr.m4: New file.
88701         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
88702         GNULIB_MBSCHR.
88703         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
88704         * MODULES.html.sh (Internationalization functions): Add mbschr.
88706 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
88708         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
88710         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
88712 2007-02-04  Bruno Haible  <bruno@clisp.org>
88714         New module description section 'configure.ac-early'.
88715         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
88716         (func_get_autoconf_early_snippet): New function.
88717         (func_import, func_create_testdir): Use it. Remove special cases for
88718         modules 'extensions' and 'lock'.
88719         * modules/extensions (configure.ac-early): Require
88720         gl_USE_SYSTEM_EXTENSIONS.
88721         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
88723 2007-02-04  Bruno Haible  <bruno@clisp.org>
88725         Make use of gcj-4.3's -fsource and -ftarget option.
88726         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
88727         and if so try the options -fsource and -ftarget.
88728         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
88729         source_version, ftarget_option, target_version arguments.
88730         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
88731         (is_envjavac_oldgcj_14_14_usable): Renamed from
88732         is_envjavac_gcj_14_14_usable.
88733         (is_envjavac_oldgcj_14_13_usable): Renamed from
88734         is_envjavac_gcj_14_13_usable.
88735         (is_gcj_present): Update.
88736         (is_gcj_43, is_gcj43_usable): New functions.
88737         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
88738         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
88739         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
88740         try the options -fsource and -ftarget.
88742 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
88744         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
88745         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
88746         larger value.
88748 2007-02-03  Jim Meyering  <jim@meyering.net>
88750         Give tools a better chance to allocate space for very large buffers.
88751         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
88753         Make pwd and readlink work also when run with an unreadable parent dir
88754         on systems with openat support.
88755         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
88756         provided getcwd function, even when we have openat support.
88757         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
88759 2007-02-02  Bruno Haible  <bruno@clisp.org>
88761         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
88762         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
88763         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
88764         portability problems if one of these functions is only used on specific
88765         platforms.
88766         Reported by Paul Eggert.
88768 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
88770         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
88771         is causing more trouble than it's curing.
88772         * lib/regex_internal.h (__mempcpy): Remove.
88773         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
88774         (and make the code a tad smaller to boot).
88775         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
88777 2007-02-02  Jim Meyering  <jim@meyering.net>
88779         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
88780         section, not in the Makefile.am: one.
88782 2007-02-02  Eric Blake  <ebb9@byu.net>
88784         * lib/strchrnul.c: Always include config.h first.
88786         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
88787         gnulib strstr is not necessary here.
88789 2007-02-02  Simon Josefsson  <simon@josefsson.org>
88791         * m4/socklen.m4: Fix typo.
88793 2007-02-02  Eric Blake  <ebb9@byu.net>
88795         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
88796         * modules/netinet_in (Makefile.am): Likewise.
88798 2007-02-01  Bruno Haible  <bruno@clisp.org>
88800         * lib/string_.h (GL_LINK_WARNING): New macro.
88801         (strcasecmp, strstr, strcasestr): If provided by the system,
88802         conditionally define as a macro that leads to a warning instead of to
88803         an error.
88804         (strncasecmp): Conditionally define as a macro that leads to a warning.
88806 2007-02-01  Karl Berry  <karl@gnu.org>
88808         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
88810 2007-02-01  Bruno Haible  <bruno@clisp.org>
88812         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
88813         renamings.
88815 2007-02-01  Eric Blake  <ebb9@byu.net>
88817         * modules/regex (Depends-on): Revert dependence on mempcpy.
88818         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
88819         module's definition of mempcpy.
88820         Reported by Paul Eggert.
88822 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
88824         * lib/string_.h: If the gnulib module XYZ is not present, undefine
88825         the symbol XYZ before redefining it.  This fixes a problem with
88826         programs that don't use XYZ, when compiled on systems that define
88827         XYZ to something else.
88829 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
88831         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
88832         occurs when "mkdir -m foo" creates a setgid directory that is (1)
88833         writeable to group or other and (2) is intended to have a special
88834         mode bit that is set or cleared.  In such a case, the directory
88835         should be neither group- nor other-writeable until the special
88836         mode bits are right.
88838 2007-01-31  Eric Blake  <ebb9@byu.net>
88840         * modules/mountlist (Depends-on): Add strstr.
88842         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
88843         bug.
88844         * modules/string (Makefile.am): Remove redundant replacement.
88845         * modules/regex (Depends-on): Add mempcpy.
88847 2007-01-31  Bruno Haible  <bruno@clisp.org>
88849         New module description field 'Link'.
88850         * gnulib-tool (func_usage): Document --extract-link-directive.
88851         (sed_extract_prog): Recognize 'Link' directive.
88852         (func_get_link_directive): New function.
88853         (func_import): Show summary of link directives.
88854         Handle --extract-link-directive option.
88855         * modules/acl (Link): New section.
88856         * modules/clock-time (Link): New section.
88857         * modules/euidaccess (Link): New section.
88858         * modules/gettext (Link): New section.
88859         * modules/iconv (Link): New section.
88860         * modules/lock (Link): New section.
88861         * modules/nanosleep (Link): New section.
88862         * modules/readline (Link): New section.
88864 2007-01-27  Bruno Haible  <bruno@clisp.org>
88866         Enforce the use of gnulib modules for unportable <string.h> functions.
88867         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
88868         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
88869         (gl_HEADER_STRING_H_BODY): Require it.
88870         * lib/string_.h: If the gnulib module XYZ is not present, redefine
88871         the symbol XYZ to one that gives a link error.
88872         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
88873         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
88874         * modules/mempcpy (configure.ac): Likewise.
88875         * modules/memrchr (configure.ac): Likewise.
88876         * modules/stpcpy (configure.ac): Likewise.
88877         * modules/stpncpy (configure.ac): Likewise.
88878         * modules/strcase (configure.ac): Likewise.
88879         * modules/strcasestr (configure.ac): Likewise.
88880         * modules/strchrnul (configure.ac): Likewise.
88881         * modules/strdup (configure.ac): Likewise.
88882         * modules/strndup (configure.ac): Likewise.
88883         * modules/strnlen (configure.ac): Likewise.
88884         * modules/strpbrk (configure.ac): Likewise.
88885         * modules/strsep (configure.ac): Likewise.
88886         * modules/strstr (configure.ac): Likewise.
88887         * modules/strtok_r (configure.ac): Likewise.
88889 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
88891         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
88893 2007-01-30  Jim Meyering  <jim@meyering.net>
88895         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
88897 2007-01-29  Bruno Haible  <bruno@clisp.org>
88899         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
88900         * lib/execute.c: Likewise.
88901         * lib/pipe.c: Likewise.
88902         * lib/printf-args.h: Likewise.
88903         * lib/printf-args.c: Likewise.
88904         * lib/printf-parse.c: Likewise.
88905         * lib/vasnprintf.c: Likewise.
88907 2007-01-29  Eric Blake  <ebb9@byu.net>
88909         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
88910         declaration.
88912 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
88914         * lib/strptime.h (strptime): Use 'restrict' for args where
88915         POSIX requires this.
88916         * lib/strptime.c (strptime): Likewise.
88917         Change license notice from LGPL to GPL, since gnulib-tool will
88918         change this as needed.
88919         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
88920         defined.
88921         Include "strptime.h" first, to check interface.
88922         Do not #undef _LIBC and _NL_CURRENT.
88923         Do not include <stdlib.h>; no longer needed.
88924         Include "time_r.h" and declare ptime_locale_status
88925         only if _LIBC is not defined.
88926         (__P): Remove unused macro.
88927         (match_string): Bring back glibc version, but use it only if _LIBC
88928         is defined.
88929         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
88930         Remove unnecessary assertion and abort() call.
88931         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
88932         * m4/strptime.m4: Fix serial number comment.
88933         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
88934         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
88935         (Depends-on): Add time_r.
88937 2007-01-29  Bruno Haible  <bruno@clisp.org>
88939         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
88940         strptime.
88941         * modules/strptime (Depends-on): Add stdbool.
88942         * lib/strptime.h: Include <time.h> always. Add comments.
88944 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
88946         * modules/strptime: New file.
88947         * lib/strptime.h: New file.
88948         * lib/strptime.c: New file.
88949         * m4/strptime.m4: New file.
88951 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
88953         * MODULES.html.sh: New module mpsort.
88954         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
88956         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
88957         a circularity problem with HP-UX ia64 reported by Bob Proulx in
88958         <http://lists.gnu.org/r/bug-gnulib/2007-01/msg00394.html>.
88959         All uses changed.
88960         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
88961         All uses changed.
88962         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
88963         to _Restrict_.
88964         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
88965         the parameter matches the prototype.
88967 2007-01-28  Jim Meyering  <jim@meyering.net>
88969         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
88970         sys/time.h here, reverting that part of the previous patch:
88971         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
88973 2007-01-28  Bruno Haible  <bruno@clisp.org>
88975         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
88976         value of $(SYS_TIME_H).
88977         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
88978         remove it conditionally, too. [added by Jim Meyering]
88979         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
88980         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
88981         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
88982         GETTIMEOFDAY_REPLACEMENT to 1.
88984 2007-01-28  Bruno Haible  <bruno@clisp.org>
88986         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
88987         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
88988         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
88989         Set UNISTD_H instead of UNISTD_H2.
88990         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
88992 2007-01-28  Bruno Haible  <bruno@clisp.org>
88994         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
88995         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
88997 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
88999         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
89000         (func_create_testdir): Ensure C locale for `grep' and `tr'
89001         character ranges.
89002         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
89003         ACLOCAL_AMFLAGS parsing state machine.
89005 2007-01-27  Bruno Haible  <bruno@clisp.org>
89007         * modules/unistr/base: Update.
89009 2007-01-27  Bruno Haible  <bruno@clisp.org>
89011         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
89012         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
89013         * modules/unistr/u32-mbtouc-unsafe: Renamed from
89014         modules/unistr/u32-mbtouc.
89015         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
89016         * lib/unistr.h: Update.
89017         * lib/linebreak.c: Update.
89018         * modules/unistr/u32-mbtouc: Renamed from
89019         modules/unistr/u32-mbtouc-safe.
89020         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
89021         * lib/unistr.h: Update.
89022         * lib/unistr/u32-to-u8.c: Update.
89023         * lib/unistr/u32-to-u16.c: Update.
89025 2007-01-27  Bruno Haible  <bruno@clisp.org>
89027         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
89028         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
89029         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
89030         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
89031         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
89032         * modules/unistr/u16-mbtouc-unsafe: Renamed from
89033         modules/unistr/u16-mbtouc.
89034         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
89035         * lib/unistr.h: Update.
89036         * lib/linebreak.c: Update.
89037         * modules/linebreak: Update.
89038         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
89039         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
89040         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
89041         * modules/unistr/u16-mbtouc: Renamed from
89042         modules/unistr/u16-mbtouc-safe.
89043         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
89044         * lib/unistr.h: Update.
89045         * lib/unistr/u16-to-u8.c: Update.
89046         * modules/unistr/u16-to-u8: Update.
89047         * lib/unistr/u16-to-u32.c: Update.
89048         * modules/unistr/u16-to-u32: Update.
89050 2007-01-27  Bruno Haible  <bruno@clisp.org>
89052         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
89053         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
89054         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
89055         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
89056         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
89057         * modules/unistr/u8-mbtouc-unsafe: Renamed from
89058         modules/unistr/u8-mbtouc.
89059         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
89060         * lib/unistr.h: Update.
89061         * lib/striconveh.c: Update.
89062         * modules/striconveh: Update.
89063         * lib/linebreak.c: Update.
89064         * modules/linebreak: Update.
89065         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
89066         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
89067         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
89068         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
89069         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
89070         * lib/unistr.h: Update.
89071         * lib/striconveh.c: Update.
89072         * modules/striconveh: Update.
89073         * lib/unistr/u8-to-u16.c: Update.
89074         * modules/unistr/u8-to-u16: Update.
89075         * lib/unistr/u8-to-u32.c: Update.
89076         * modules/unistr/u8-to-u32: Update.
89078 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
89080         Sync from Libtool.
89081         * lib/argz.c: Do not include strings.h nor memory.h, include
89082         string.h unconditionally.  Patch by Simon Josefsson.
89084 2007-01-27  Bruno Haible  <bruno@clisp.org>
89086         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
89087         from gl_HEADER_STRING_H_BODY.
89088         (gl_HEADER_STRING_H_BODY): Require it.
89089         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
89090         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
89091         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
89092         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
89093         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
89094         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
89095         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
89096         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
89097         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
89098         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
89099         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
89100         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
89101         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
89102         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
89103         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
89105 2007-01-27  Bruno Haible  <bruno@clisp.org>
89107         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
89108         check_PROGRAMS into noinst_PROGRAMS.
89109         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
89110         check_PROGRAMS in this case.
89111         (func_import): Set for_test to false.
89112         (func_create_testdir): Set for_test to true.
89114 2007-01-27  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
89115             Bruno Haible  <bruno@clisp.org>
89117         * modules/strcasestr (Files): Remove lib/strcasestr.h.
89118         (Depends-on): Add string.
89119         (Includes): Use <string.h> instead of strcasestr.h.
89120         * modules/string (Makefile.am): Also substitute the value of
89121         REPLACE_STRCASESTR.
89122         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
89123         assume strcasestr is declared in <string.h> not <strings.h>. Also
89124         set REPLACE_STRCASESTR.
89125         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
89126         REPLACE_STRCASESTR.
89127         * lib/strcasestr.h: Remove file.
89128         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
89129         * lib/string_.h (strcasestr): New declaration.
89131 2007-01-27  Bruno Haible  <bruno@clisp.org>
89133         * lib/string_.h: Use 'extern'.
89135 2007-01-27  Jim Meyering  <jim@meyering.net>
89137         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
89138         of set-but-not-used local, "q".
89140         * lib/mempcpy.c: Include <config.h> before <string.h>.
89141         This fixes a compilation error on HP-UX, due to the system's
89142         "restrict"-using mempcpy prototype.
89144 2007-01-26  Bruno Haible  <bruno@clisp.org>
89146         Small optimization.
89147         * lib/javacomp.c: Include c-strstr.h.
89148          (is_envjavac_gcj): Use c_strstr instead of strstr.
89149         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
89151 2007-01-26  Bruno Haible  <bruno@clisp.org>
89153         * MODULES.html.sh (Unicode string functions): Add the new modules.
89155         * modules/uniconv/u32-strconv-to-locale: New file.
89156         * lib/uniconv/u32-strconv-to-locale.c: New file.
89158         * modules/uniconv/u16-strconv-to-locale: New file.
89159         * lib/uniconv/u16-strconv-to-locale.c: New file.
89161         * modules/uniconv/u8-strconv-to-locale: New file.
89162         * lib/uniconv/u8-strconv-to-locale.c: New file.
89164         * modules/uniconv/u32-strconv-from-locale: New file.
89165         * lib/uniconv/u32-strconv-from-locale.c: New file.
89167         * modules/uniconv/u16-strconv-from-locale: New file.
89168         * lib/uniconv/u16-strconv-from-locale.c: New file.
89170         * modules/uniconv/u8-strconv-from-locale: New file.
89171         * lib/uniconv/u8-strconv-from-locale.c: New file.
89173         * modules/uniconv/u32-strconv-to-enc: New file.
89174         * lib/uniconv/u32-strconv-to-enc.c: New file.
89175         * modules/uniconv/u32-strconv-to-enc-tests: New file.
89176         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
89178         * modules/uniconv/u16-strconv-to-enc: New file.
89179         * lib/uniconv/u16-strconv-to-enc.c: New file.
89180         * lib/uniconv/u-strconv-to-enc.h: New file.
89181         * modules/uniconv/u16-strconv-to-enc-tests: New file.
89182         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
89184         * modules/uniconv/u8-strconv-to-enc: New file.
89185         * lib/uniconv/u8-strconv-to-enc.c: New file.
89186         * modules/uniconv/u8-strconv-to-enc-tests: New file.
89187         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
89189         * modules/uniconv/u32-strconv-from-enc: New file.
89190         * lib/uniconv/u32-strconv-from-enc.c: New file.
89191         * modules/uniconv/u32-strconv-from-enc-tests: New file.
89192         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
89194         * modules/uniconv/u16-strconv-from-enc: New file.
89195         * lib/uniconv/u16-strconv-from-enc.c: New file.
89196         * modules/uniconv/u16-strconv-from-enc-tests: New file.
89197         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
89199         * modules/uniconv/u8-strconv-from-enc: New file.
89200         * lib/uniconv/u8-strconv-from-enc.c: New file.
89201         * lib/uniconv/u-strconv-from-enc.h: New file.
89202         * modules/uniconv/u8-strconv-from-enc-tests: New file.
89203         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
89205         * modules/uniconv/u32-conv-from-enc: New file.
89206         * lib/uniconv/u32-conv-from-enc.c: New file.
89207         * modules/uniconv/u32-conv-from-enc-tests: New file.
89208         * tests/uniconv/test-u32-conv-from-enc.c: New file.
89210         * modules/uniconv/u16-conv-from-enc: New file.
89211         * lib/uniconv/u16-conv-from-enc.c: New file.
89212         * lib/uniconv/u-conv-from-enc.h: New file.
89213         * modules/uniconv/u16-conv-from-enc-tests: New file.
89214         * tests/uniconv/test-u16-conv-from-enc.c: New file.
89216         * modules/uniconv/u8-conv-from-enc: New file.
89217         * lib/uniconv/u8-conv-from-enc.c: New file.
89218         * modules/uniconv/u8-conv-from-enc-tests: New file.
89219         * tests/uniconv/test-u8-conv-from-enc.c: New file.
89221         * modules/uniconv/base: New file.
89222         * lib/uniconv.h: New file.
89224 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
89226         * doc/gnulib-tool.texi (Initial import): Update to match current
89227         behavior with strdup module.
89228         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
89229         * lib/memmem.h: Remove; all uses removed.  This is now done
89230         by <string.h>.
89231         * lib/mempcpy.h: Likewise.
89232         * lib/memrchr.h: Likewise.
89233         * lib/stpcpy.h: Likewise.
89234         * lib/stpncpy.h: Likewise.
89235         * lib/strcase.h: Likewise.
89236         * lib/strchrnul.h: Likewise.
89237         * lib/strdup.h: Likewise.
89238         * lib/strndup.h: Likewise.
89239         * lib/strnlen.h: Likewise.
89240         * lib/strpbrk.h: Likewise.
89241         * lib/strsep.h: Likewise.
89242         * lib/strstr.h: Likewise.
89243         * lib/strtok_r.h: Likewise.
89244         * lib/string_.h: New file.
89245         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
89246         Rely on <string.h> instead.
89247         * lib/canon-host.c: Likewise.
89248         * lib/chdir-long.c: Likewise.
89249         * lib/concatpath.c: Likewise.
89250         * lib/exclude.c: Likewise.
89251         * lib/fchdir.c: Likewise.
89252         * lib/getaddrinfo.c: Likewise.
89253         * lib/getcwd.c: Likewise.
89254         * lib/getsubopt.c: Likewise.
89255         * lib/glob.c: Likewise.
89256         * lib/hard-locale.c: Likewise.
89257         * lib/iconvme.c: Likewise.
89258         * lib/javacomp.c: Likewise.
89259         * lib/mempcpy.c: Likewise.
89260         * lib/memrchr.c: Likewise.
89261         * lib/regex_internal.h: Likewise.
89262         * lib/stpncpy.c: Likewise.
89263         * lib/strcasecmp.c: Likewise.
89264         * lib/strchrnul.c: Likewise.
89265         * lib/strdup.c: Likewise.
89266         * lib/striconv.c: Likewise.
89267         * lib/striconveh.c: Likewise.
89268         * lib/striconveha.c: Likewise.
89269         * lib/strncasecmp.c: Likewise.
89270         * lib/strndup.c: Likewise.
89271         * lib/strnlen.c: Likewise.
89272         * lib/strsep.c: Likewise.
89273         * lib/strstr.c: Likewise.
89274         * lib/strtok_r.c: Likewise.
89275         * lib/userspec.c: Likewise.
89276         * lib/w32spawn.h: Likewise.
89277         * lib/xstrndup.c: Likewise.
89278         * lib/mountlist.c (strstr): Remove decl.
89279         * m4/string_h.m4: New file.
89280         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
89281         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
89282         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
89283         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
89284         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
89285         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
89286         Set REPLACE_STRCASECMP if necessary.
89287         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
89288         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
89289         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
89290         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
89291         HAVE_DECL_STRDUP if necessary.
89292         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
89293         since gl_FUNC_STRNDUP does that now.
89294         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
89295         Check for decl here...
89296         (gl_PREREQ_STRNLEN): ... not here.
89297         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
89298         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
89299         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
89300         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
89301         necessary.
89302         * modules/string: New file.
89303         * modules/memmem (Files): Remove special-purpose include file.
89304         (Depends-on): Add string.
89305         (Include): Include <string.h>, not the removed file.
89306         * modules/mempcpy: Likewise.
89307         * modules/memrchr: Likewise.
89308         * modules/stpcpy: Likewise.
89309         * modules/stpncpy: Likewise.
89310         * modules/strcase: Likewise.
89311         * modules/strchrnul: Likewise.
89312         * modules/strdup: Likewise.
89313         * modules/strndup: Likewise.
89314         * modules/strnlen: Likewise.
89315         * modules/strpbrk: Likewise.
89316         * modules/strsep: Likewise.
89317         * modules/strstr: Likewise.
89318         * modules/strtok_r: Likewise.
89319         * tests/test-dirname.c: Don't include "strdup.h", since
89320         <string.h> now suffices.
89321         * tests/test-memmem.c: Don't include "memmem.h", since
89322         <string.h> now suffices.
89324 2007-01-25  Bruno Haible  <bruno@clisp.org>
89326         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
89327         *resultp is 0.
89329         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
89330         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
89331         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
89332         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
89334         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
89335         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
89336         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
89337         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
89338         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
89339         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
89341 2007-01-24  Bruno Haible  <bruno@clisp.org>
89343         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
89344         <http://lists.gnu.org/r/bug-gnulib/2006-10/msg00279.html>.
89345         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
89346         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
89347         gl_FUNC_FTS_CORE.
89348         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
89349         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
89350         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
89351         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
89352         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
89353         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
89354         gl_FUNC_FCHOWNAT.
89355         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
89356         gl_FUNC_STRFTIME.
89357         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
89358         Reported by Ralf Wildenhues.
89360 2007-01-24  Bruno Haible  <bruno@clisp.org>
89362         Drop AC_REQUIRE calls that are redundant with the module dependencies.
89363         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
89364         gl_GETADDRINFO.
89365         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
89366         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
89367         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
89369 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
89371         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
89372         Don't use 'exit'; just return from 'main'.
89373         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
89375         * lib/fnmatch_.h: Readjust white space and comments to match
89376         glibc, to avoid spurious diffs.
89378 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
89380         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
89381         2004-12-01 change by Jakub Jelinek, since this code won't compile
89382         if !LIBC.  Problem reported by Bob Proulx.
89384 2007-01-23  Bruno Haible  <bruno@clisp.org>
89386         * lib/striconveh.c: Include c-strcaseeq.h.
89387         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
89388         * modules/striconveh (Depends-on): Add c-strcaseeq.
89390 2007-01-23  Bruno Haible  <bruno@clisp.org>
89392         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
89394         * modules/c-strcaseeq: New file.
89395         * lib/c-strcaseeq.h: New file.
89397         * modules/streq: New file.
89398         * lib/streq.h: New file.
89400 2007-01-23  Bruno Haible  <bruno@clisp.org>
89402         * modules/striconveha-tests: New file.
89403         * tests/test-striconveha.c: New file.
89405         * lib/striconveha.h: Include <stdbool.h>.
89406         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
89407         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
89408         (mem_iconveha_notranslit): Renamed from mem_iconveha.
89409         (mem_iconveha): New function.
89410         (str_iconveha_notranslit): Renamed from str_iconveha.
89411         (str_iconveha): New function.
89412         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
89413         c-strcase.
89415 2007-01-23  Bruno Haible  <bruno@clisp.org>
89417         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
89418         encodings without forgiving before trying any encoding with handler.
89419         (str_iconveha): Try all encodings without forgiving before trying any
89420         encoding with handler.
89422 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
89424         Import the following changes from libc.
89426         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
89428         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
89430         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
89432         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
89433         normal_bracket label.
89435         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
89437         [BZ #361]
89438         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
89439         to normal_bracket after fetching the next character.
89441 2007-01-22  Bruno Haible  <bruno@clisp.org>
89443         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
89444         argument.
89445         * lib/striconveh.c (iconv_carefully_1): New function.
89446         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
89447         argument.
89448         (str_cd_iconveh): Update.
89449         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
89450         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
89451         * tests/test-striconveh.c (MAGIC): New macro.
89452         (new_offsets): New function.
89453         (main): Test call with and without offsets.
89455 2007-01-22  Bruno Haible  <bruno@clisp.org>
89457         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
89458         * modules/sys_select (Makefile.am): Likewise.
89459         * modules/sys_socket (Makefile.am): Likewise.
89460         * modules/sys_time (Makefile.am): Likewise.
89462 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
89464         * modules/gettimeofday (License): Change from GPL to LGPL, since
89465         gettimeofday is a library function.
89467 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
89469         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
89471 2007-01-21  Bruno Haible  <bruno@clisp.org>
89473         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
89475 2007-01-21  Bruno Haible  <bruno@clisp.org>
89477         * modules/striconveha: New file.
89478         * lib/striconveha.h: New file.
89479         * lib/striconveha.c: New file.
89480         * MODULES.html.sh (Internationalization functions): Add striconveha.
89481         * lib/striconv.c (str_iconv): Optimize the case of an empty input
89482         string.
89483         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
89485 2007-01-21  Bruno Haible  <bruno@clisp.org>
89487         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
89488         * lib/striconveh.c (str_iconveh): Likewise.
89490 2007-01-21  Bruno Haible  <bruno@clisp.org>
89492         * lib/striconveh.h (mem_iconveh): New declaration.
89493         * lib/striconveh.c (mem_iconveh): New function.
89494         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
89496 2007-01-21  Bruno Haible  <bruno@clisp.org>
89498         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
89500         * lib/striconveh.h (mem_cd_iconveh): Change specification.
89501         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
89502         original result buffer.
89503         (str_cd_iconveh): Update.
89504         * tests/test-striconveh.c (main): Update.
89506         * lib/striconv.h (mem_cd_iconv): Change specification.
89507         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
89508         result buffer.
89509         (str_cd_iconv): Update.
89510         * tests/test-striconv.c (main): Update.
89512 2007-01-21  Bruno Haible  <bruno@clisp.org>
89514         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
89516 2007-01-20  Jim Meyering  <jim@meyering.net>
89518         * lib/userspec.c (parse_with_separator): If a user or group string
89519         starts with "+", skip the corresponding name-to-ID look-up, since
89520         such a look-up must fail: user and group names may not include "+".
89522 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
89524         * lib/poll.c: Include sys/time.h and time.h unconditionally,
89525         since we now assume the sys_time module.
89526         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
89527         check for sys/time.h; no longer needed.
89528         * modules/poll (Depends-on): Depend on sys_time.
89530 2007-01-18  Bruno Haible  <bruno@clisp.org>
89532         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
89533         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
89535         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
89536         gettimeofday.
89538         * tests/test-gettimeofday.c: Include <time.h>.
89539         (dummy): Remove variable.
89541         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
89542         gl_HEADER_SYS_TIME_H.
89543         (gl_HEADER_SYS_TIME_H): New macro.
89545         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
89546         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
89547         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
89548         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
89549         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
89550         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
89551         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
89552         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
89553         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
89554         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
89555         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
89557         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
89558         last change; it caused a compilation error when cross-compiling to
89559         Cygwin.
89561 2007-01-18  Jim Meyering  <jim@meyering.net>
89563         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
89564         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
89565         than the race-prone "test -d sys || mkdir sys".
89566         (configure.ac): Use AC_PROG_MKDIR_P.
89567         * modules/sys_select: Likewise.
89568         * modules/sys_socket: Likewise.
89569         * modules/sys_time: Likewise.
89571 2007-01-18  Eric Blake  <ebb9@byu.net>
89573         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
89574         replace gettimeofday.
89575         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
89576         name, to avoid infinite recursion.
89578 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
89580         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
89581         module sys_time.
89582         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
89583         assume timespec.h defines struct timeval.
89584         * lib/settime.c: Likewise.
89585         * lib/utimens.c: Likewise.
89586         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
89587         since we now assume the gettimeofday module.
89588         * lib/tempname.c (__gen_tempname): Likewise.
89589         * lib/gettimeofday.h: Remove.
89590         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
89591         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
89592         Include <time.h>, for 'time()'.
89593         (localtime_buffer_addr): Also use this workaround if
89594         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
89595         to simplify the uses.  All uses changed.
89596         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
89597         that #undef is inside {}, and 'const' follows type name consistently.
89598         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
89599         (gettimeofday): Do not use the maximum possible value for
89600         tv->tv_usec, since that might break usages other than ls.c.
89601         Instead, we'll leave ls.c alone.  This undoes today's patch
89602         by Bruno.  Add a compile-time warning for 1s-clock resolution;
89603         we've never observed the problem but might as well keep the
89604         canary.
89605         * lib/nanosleep.c: Include timespec.h first, for interface check.
89606         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
89607         now assume the sys_time module.
89608         * lib/tempname.c: Likewise.
89609         * lib/timespec.h: Likewise.
89610         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
89611         needed.
89612         * lib/strftime.c: Likewise.
89613         * lib/timespec.h: Likewise.
89614         * lib/posixtm.c: Include posixtm.h first, for interface check.
89615         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
89616         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
89617         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
89618         * lib/sys_time_.h: New file.
89619         * lib/timespec.h (struct timespec): Use long int, not long.
89620         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
89621         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
89622         Remove obsolescent call to AC_HEADER_TIME.
89623         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
89624         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
89625         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
89626         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
89627         Likewise.
89628         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
89629         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
89630         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
89631         into the sys_time module.  Check for gettimeofday just once.
89632         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
89633         for gettimeofday signature to just check the signature.  Merely
89634         compile it, since linking doesn't test signature.  Improve test for
89635         whether gettimeofday.o is actually needed.
89636         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
89637         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
89638         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
89639         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
89640         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
89641         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
89642         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
89643         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
89644         than worrying about sys/time.h.
89645         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
89646         Don't bother worrying about TIME_WITH_SYS_TIME.
89647         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
89648         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
89649         * m4/sys_time_h.m4: New file.
89650         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
89651         Don't include sys/time.h.  Return from main rather than exiting.
89652         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
89653         all uses changed.
89654         * modules/gethrxtime (Depends-on): Add sys_time.
89655         * modules/gettime (Depends-on): Likewise.
89656         * modules/gettimeofday (Depends-on): Likewise.
89657         * modules/nanosleep (Depends-on): Likewise.
89658         * modules/settime (Depends-on): Likewise.
89659         * modules/tempname (Depends-on): Likewise.
89660         * modules/utimens (Depends-on): Likewise.
89661         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
89662         (Include): Change back to <sys/time.h>.
89663         (Maintainer): Add self.
89664         * modules/sys_time: New file.
89665         * modules/tempname (Depends-on): Add gettimeofday.
89666         * tests/test-gettimeofday.c: Include <sys/time.h>
89667         rather than gettimeofday.h.
89669 2007-01-17  Bruno Haible  <bruno@clisp.org>
89671         * gnulib-tool (func_get_license): Revert last patch. Instead, let
89672         the license default to GPL.
89673         (func_create_testdir): Don't complain if a module is LGPL and its
89674         tests module depends on GPLed modules.
89676 2007-01-17  Bruno Haible  <bruno@clisp.org>
89678         * lib/gettimeofday.c (gettimeofday): Add code for the case
89679         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
89680         maximum possible value for tv->tv_usec, rather than the minimum one.
89682 2005-10-08  Martin Lambers  <marlam@marlam.de>
89683 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
89684 2007-01-16  Bruno Haible  <bruno@clisp.org>
89686         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
89687         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
89688         gl_FUNC_GETTIMEOFDAY.
89689         (Include): Add gettimeofday.h.
89690         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
89691         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
89692         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
89693         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
89694         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
89695         * lib/gettimeofday.h: New file.
89696         * lib/gettimeofday.c: Include <sys/timeb.h>.
89697         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
89698         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
89699         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
89700         fall back on time().
89702         * tests/test-gettimeofday.c: New file.
89703         * modules/gettimeofday-tests: New file.
89705 2007-01-16  Eric Blake  <ebb9@byu.net>
89707         * modules/fnmatch (Depends-on): Depend on wchar.
89708         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
89709         * m4/fnmatch.m4: Likewise.
89710         * modules/mbchar (Makefile.am): Assume <wchar.h>.
89711         * m4/mbchar.m4: Likewise.
89712         * modules/mbswidth (Depends-on): Depend on wchar.
89713         * lib/mbswidth.c: Assume <wchar.h>.
89714         * m4/mbswidth.m4: Likewise.
89715         * modules/quotearg (Depends-on): Depend on wchar.
89716         * lib/quotearg.c: Assume <wchar.h>.
89717         * m4/quotearg.m4: Likewise.
89718         * modules/regex (Depends-on): Depend on wchar.
89719         * lib/regex_internal.h: Assume <wchar.h>.
89720         * m4/regex.m4: Likewise.
89721         * modules/stdint (Depends-on): Depend on wchar.
89722         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
89723         * m4/stdint.m4: Likewise.
89724         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
89725         * modules/strftime (Depends-on): Depend on wchar.
89726         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
89727         * modules/strtol (Depends-on): Depend on wchar.
89728         * lib/strtol.c: Assume <wchar.h>.
89729         * modules/wcwidth (Depends-on): Depend on wchar.
89730         * lib/wcwidth.h: Assume <wchar.h>.
89731         * m4/wcwidth.m4: Likewise.
89733 2007-01-16  Bruno Haible  <bruno@clisp.org>
89735         * modules/csharpexec-script: New, created from...
89736         * modules/csharpexec: ... this.
89738 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
89740         * modules/javaexec-script: New, created from...
89741         * modules/javaexec: ... this.
89743 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
89745         * modules/poll (Dependencies): Add sys_select.
89747 2007-01-15  Jim Meyering  <jim@meyering.net>
89749         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
89750         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
89751         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
89752         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
89754 2007-01-15  Bruno Haible  <bruno@clisp.org>
89756         * modules/striconveh: New file.
89757         * lib/striconveh.h: New file.
89758         * lib/striconveh.c: New file.
89759         * MODULES.html.sh (Internationalization functions): Add striconveh.
89761         * modules/striconveh-tests: New file.
89762         * tests/test-striconveh.c: New file.
89764 2007-01-15  Bruno Haible  <bruno@clisp.org>
89766         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
89767         not from GNU libiconv or GNU libc.
89769 2007-01-15  Bruno Haible  <bruno@clisp.org>
89771         * doc/gnulib-intro.texi (Copyright): Explain the different license
89772         terms for module descriptions, autoconf macros, tests, documentation.
89774 2007-01-14  Bruno Haible  <bruno@clisp.org>
89776         * modules/striconv-tests: New file.
89777         * tests/test-striconv.c: New file.
89779 2007-01-14  Bruno Haible  <bruno@clisp.org>
89781         * modules/iconv-tests: New file.
89782         * tests/test-iconv.c: New file.
89784 2007-01-14  Bruno Haible  <bruno@clisp.org>
89786         * gnulib-tool (func_get_license): For test modules, use the license of
89787         the main module.
89789 2007-01-14  Bruno Haible  <bruno@clisp.org>
89791         * modules/iconv (Include): Clarify that <iconv.h> can only be included
89792         if iconv is found to exist.
89794 2007-01-14  Bruno Haible  <bruno@clisp.org>
89796         * modules/c-ctype-tests: New file.
89797         * tests/test-c-ctype.c: New file.
89799 2007-01-14  Bruno Haible  <bruno@clisp.org>
89801         * modules/binary-io-tests: New file.
89802         * tests/test-binary-io.sh: New file.
89803         * tests/test-binary-io.c: New file.
89805 2007-01-14  Bruno Haible  <bruno@clisp.org>
89807         * modules/array-oset-tests: New file.
89808         * tests/test-array_oset.c: New file.
89810 2007-01-14  Bruno Haible  <bruno@clisp.org>
89812         * modules/array-list-tests: New file.
89813         * tests/test-array_list.c: New file.
89815 2007-01-14  Bruno Haible  <bruno@clisp.org>
89817         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
89818         and make.
89819         Reported by Simon Josefsson in
89820         <http://lists.gnu.org/r/bug-gnulib/2007-01/msg00139.html>
89822 2007-01-14  Bruno Haible  <bruno@clisp.org>
89824         * modules/allocsa-tests: New file.
89825         * tests/test-allocsa.c: New file.
89827 2007-01-14  Bruno Haible  <bruno@clisp.org>
89829         * modules/fchdir (Depends-on): Add absolute-header.
89830         * modules/unistd (Depends-on): Likewise.
89832 2006-12-30  Bruno Haible  <bruno@clisp.org>
89834         * modules/fchdir: New file.
89835         * modules/unistd (Files): Add lib/unistd_.h.
89836         (Makefile.am): Generate unistd.h from unistd_.h.
89837         * lib/fchdir.c: New file.
89838         * lib/dirent_.h: New file.
89839         * lib/unistd_.h: New file.
89840         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
89841         * m4/fchdir.m4: New file.
89842         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
89843         (gl_HEADER_UNISTD): Invoke it.
89844         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
89845         function.
89846         * lib/backupfile.c (opendir, closedir): Undefine.
89847         * lib/chown.c (open, close): Undefine.
89848         * lib/clean-temp.c (open, close): Undefine.
89849         * lib/copy-file.c (open, close): Undefine.
89850         * lib/execute.c (open, close): Undefine.
89851         * lib/fsusage.c (open, close): Undefine.
89852         * lib/gc-gnulib.c (open, close): Undefine.
89853         * lib/getcwd.c (opendir, closedir): Undefine.
89854         * lib/glob.c (opendir, closedir): Undefine.
89855         * lib/javacomp.c (open, close): Undefine.
89856         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
89857         * lib/openat-proc.c (open, close): Undefine.
89858         * lib/pagealign_alloc.c (open, close): Undefine.
89859         * lib/pipe.c (open, close): Undefine.
89860         * lib/progreloc.c (open, close): Undefine.
89861         * lib/savedir.c (opendir, closedir): Undefine.
89862         * lib/utime.c (open, close): Undefine.
89863         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
89865 2007-01-10  Bruno Haible  <bruno@clisp.org>
89867         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
89869 2007-01-12  Eric Blake  <ebb9@byu.net>
89871         Provide a robust <wchar.h>.  Further simplifications are now
89872         possible in other modules, but not included here.
89873         * modules/wchar: New module.
89874         * m4/wchar.m4: New file.
89875         * lib/wchar_.h: Likewise.
89876         * modules/mbchar (Depends-on): Depend on wchar, as the first use
89877         of the new module.
89878         * MODULES.html.sh (Extended multibyte and wide character utilities):
89879         New section.
89881 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
89883         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
89884         to a reasonable default for memory allocation.
89885         (xreadlink): Don't allocate a huge buffer, to work around a buggy
89886         file system that reports garbage st_size values for symlinks.
89887         Problem reported by Liyang Hu.
89889 2007-01-11  Simon Josefsson  <simon@josefsson.org>
89891         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
89892         Emacs .#* auto-save files).
89894 2007-01-11  Bruno Haible  <bruno@clisp.org>
89896         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
89897         directory.
89899 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
89901         Use @...@ consistently in lib/wctype_.h.
89902         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
89903         on it being set to 1 or 0.
89904         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
89905         go back to AC_SUBSTing it.
89906         * modules/wctype (Makefile.am): Undo previous change.
89908 2007-01-10  Eric Blake  <ebb9@byu.net>
89910         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
89911         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
89912         * modules/wctype (Makefile.am): Likewise.
89913         Reported by Chris McGuire.
89915 2007-01-10  Jim Meyering  <jim@meyering.net>
89917         fts.c: a small readability/maintainability improvement
89918         * lib/fts.c (fts_read): Make this code slightly more readable and
89919         maintainable by hoisting the "sp->fts_cur = p" assignments to
89920         immediately follow the statements that set P.  Derived from
89921         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
89923 2007-01-10  Eric Blake  <ebb9@byu.net>
89925         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
89926         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
89927         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
89928         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
89929         Reported by Chris McGuire.
89931 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
89933         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
89934         in sed script.
89936 2007-01-09  Bruno Haible  <bruno@clisp.org>
89938         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
89939         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
89940         variables.
89941         (func_module): Use them.
89943 2007-01-09  Bruno Haible  <bruno@clisp.org>
89945         * modules/unistr/base: New file.
89946         * lib/unistr.h: New file.
89948         * modules/unistr/u8-to-u16: New file.
89949         * lib/unistr/u8-to-u16.c: New file.
89951         * modules/unistr/u8-to-u32: New file.
89952         * lib/unistr/u8-to-u32.c: New file.
89954         * modules/unistr/u16-to-u8: New file.
89955         * lib/unistr/u16-to-u8.c: New file.
89957         * modules/unistr/u16-to-u32: New file.
89958         * lib/unistr/u16-to-u32.c: New file.
89960         * modules/unistr/u32-to-u8: New file.
89961         * lib/unistr/u32-to-u8.c: New file.
89963         * modules/unistr/u32-to-u16: New file.
89964         * lib/unistr/u32-to-u16.c: New file.
89966         * modules/unistr/u8-check: New file.
89967         * modules/unistr/u16-check: New file.
89968         * modules/unistr/u32-check: New file.
89969         * lib/unistr/u8-check.c: New file.
89970         * lib/unistr/u16-check.c: New file.
89971         * lib/unistr/u32-check.c: New file.
89973         * modules/unistr/u8-chr: New file.
89974         * modules/unistr/u16-chr: New file.
89975         * modules/unistr/u32-chr: New file.
89976         * lib/unistr/u8-chr.c: New file.
89977         * lib/unistr/u16-chr.c: New file.
89978         * lib/unistr/u32-chr.c: New file.
89980         * modules/unistr/u8-cmp: New file.
89981         * modules/unistr/u16-cmp: New file.
89982         * modules/unistr/u32-cmp: New file.
89983         * lib/unistr/u8-cmp.c: New file.
89984         * lib/unistr/u16-cmp.c: New file.
89985         * lib/unistr/u32-cmp.c: New file.
89987         * modules/unistr/u8-cpy: New file.
89988         * modules/unistr/u16-cpy: New file.
89989         * modules/unistr/u32-cpy: New file.
89990         * lib/unistr/u8-cpy.c: New file.
89991         * lib/unistr/u16-cpy.c: New file.
89992         * lib/unistr/u32-cpy.c: New file.
89993         * lib/unistr/u-cpy.h: New file.
89995         * modules/unistr/u8-cpy-alloc: New file.
89996         * modules/unistr/u16-cpy-alloc: New file.
89997         * modules/unistr/u32-cpy-alloc: New file.
89998         * lib/unistr/u8-cpy-alloc.c: New file.
89999         * lib/unistr/u16-cpy-alloc.c: New file.
90000         * lib/unistr/u32-cpy-alloc.c: New file.
90001         * lib/unistr/u-cpy-alloc.h: New file.
90003         * modules/unistr/u8-endswith: New file.
90004         * modules/unistr/u16-endswith: New file.
90005         * modules/unistr/u32-endswith: New file.
90006         * lib/unistr/u8-endswith.c: New file.
90007         * lib/unistr/u16-endswith.c: New file.
90008         * lib/unistr/u32-endswith.c: New file.
90009         * lib/unistr/u-endswith.h: New file.
90011         * modules/unistr/u8-mblen: New file.
90012         * modules/unistr/u16-mblen: New file.
90013         * modules/unistr/u32-mblen: New file.
90014         * lib/unistr/u8-mblen.c: New file.
90015         * lib/unistr/u16-mblen.c: New file.
90016         * lib/unistr/u32-mblen.c: New file.
90018         * modules/unistr/u8-mbtouc: New file.
90019         * modules/unistr/u16-mbtouc: New file.
90020         * modules/unistr/u32-mbtouc: New file.
90021         * lib/unistr/u8-mbtouc.c: New file.
90022         * lib/unistr/u16-mbtouc.c: New file.
90023         * lib/unistr/u32-mbtouc.c: New file.
90025         * modules/unistr/u8-mbtouc-safe: New file.
90026         * modules/unistr/u16-mbtouc-safe: New file.
90027         * modules/unistr/u32-mbtouc-safe: New file.
90028         * lib/unistr/u8-mbtouc-safe.c: New file.
90029         * lib/unistr/u16-mbtouc-safe.c: New file.
90030         * lib/unistr/u32-mbtouc-safe.c: New file.
90032         * modules/unistr/u8-move: New file.
90033         * modules/unistr/u16-move: New file.
90034         * modules/unistr/u32-move: New file.
90035         * lib/unistr/u8-move.c: New file.
90036         * lib/unistr/u16-move.c: New file.
90037         * lib/unistr/u32-move.c: New file.
90038         * lib/unistr/u-move.h: New file.
90040         * modules/unistr/u8-next: New file.
90041         * modules/unistr/u16-next: New file.
90042         * modules/unistr/u32-next: New file.
90043         * lib/unistr/u8-next.c: New file.
90044         * lib/unistr/u16-next.c: New file.
90045         * lib/unistr/u32-next.c: New file.
90047         * modules/unistr/u8-prev: New file.
90048         * modules/unistr/u16-prev: New file.
90049         * modules/unistr/u32-prev: New file.
90050         * lib/unistr/u8-prev.c: New file.
90051         * lib/unistr/u16-prev.c: New file.
90052         * lib/unistr/u32-prev.c: New file.
90054         * modules/unistr/u8-set: New file.
90055         * modules/unistr/u16-set: New file.
90056         * modules/unistr/u32-set: New file.
90057         * lib/unistr/u8-set.c: New file.
90058         * lib/unistr/u16-set.c: New file.
90059         * lib/unistr/u32-set.c: New file.
90060         * lib/unistr/u-set.h: New file.
90062         * modules/unistr/u8-startswith: New file.
90063         * modules/unistr/u16-startswith: New file.
90064         * modules/unistr/u32-startswith: New file.
90065         * lib/unistr/u8-startswith.c: New file.
90066         * lib/unistr/u16-startswith.c: New file.
90067         * lib/unistr/u32-startswith.c: New file.
90068         * lib/unistr/u-startswith.h: New file.
90070         * modules/unistr/u8-stpcpy: New file.
90071         * modules/unistr/u16-stpcpy: New file.
90072         * modules/unistr/u32-stpcpy: New file.
90073         * lib/unistr/u8-stpcpy.c: New file.
90074         * lib/unistr/u16-stpcpy.c: New file.
90075         * lib/unistr/u32-stpcpy.c: New file.
90076         * lib/unistr/u-stpcpy.h: New file.
90078         * modules/unistr/u8-stpncpy: New file.
90079         * modules/unistr/u16-stpncpy: New file.
90080         * modules/unistr/u32-stpncpy: New file.
90081         * lib/unistr/u8-stpncpy.c: New file.
90082         * lib/unistr/u16-stpncpy.c: New file.
90083         * lib/unistr/u32-stpncpy.c: New file.
90084         * lib/unistr/u-stpncpy.h: New file.
90086         * modules/unistr/u8-strcat: New file.
90087         * modules/unistr/u16-strcat: New file.
90088         * modules/unistr/u32-strcat: New file.
90089         * lib/unistr/u8-strcat.c: New file.
90090         * lib/unistr/u16-strcat.c: New file.
90091         * lib/unistr/u32-strcat.c: New file.
90092         * lib/unistr/u-strcat.h: New file.
90094         * modules/unistr/u8-strchr: New file.
90095         * modules/unistr/u16-strchr: New file.
90096         * modules/unistr/u32-strchr: New file.
90097         * lib/unistr/u8-strchr.c: New file.
90098         * lib/unistr/u16-strchr.c: New file.
90099         * lib/unistr/u32-strchr.c: New file.
90101         * modules/unistr/u8-strcmp: New file.
90102         * modules/unistr/u16-strcmp: New file.
90103         * modules/unistr/u32-strcmp: New file.
90104         * lib/unistr/u8-strcmp.c: New file.
90105         * lib/unistr/u16-strcmp.c: New file.
90106         * lib/unistr/u32-strcmp.c: New file.
90108         * modules/unistr/u8-strcpy: New file.
90109         * modules/unistr/u16-strcpy: New file.
90110         * modules/unistr/u32-strcpy: New file.
90111         * lib/unistr/u8-strcpy.c: New file.
90112         * lib/unistr/u16-strcpy.c: New file.
90113         * lib/unistr/u32-strcpy.c: New file.
90114         * lib/unistr/u-strcpy.h: New file.
90116         * modules/unistr/u8-strcspn: New file.
90117         * modules/unistr/u16-strcspn: New file.
90118         * modules/unistr/u32-strcspn: New file.
90119         * lib/unistr/u8-strcspn.c: New file.
90120         * lib/unistr/u16-strcspn.c: New file.
90121         * lib/unistr/u32-strcspn.c: New file.
90122         * lib/unistr/u-strcspn.h: New file.
90124         * modules/unistr/u8-strdup: New file.
90125         * modules/unistr/u16-strdup: New file.
90126         * modules/unistr/u32-strdup: New file.
90127         * lib/unistr/u8-strdup.c: New file.
90128         * lib/unistr/u16-strdup.c: New file.
90129         * lib/unistr/u32-strdup.c: New file.
90130         * lib/unistr/u-strdup.h: New file.
90132         * modules/unistr/u8-strlen: New file.
90133         * modules/unistr/u16-strlen: New file.
90134         * modules/unistr/u32-strlen: New file.
90135         * lib/unistr/u8-strlen.c: New file.
90136         * lib/unistr/u16-strlen.c: New file.
90137         * lib/unistr/u32-strlen.c: New file.
90138         * lib/unistr/u-strlen.h: New file.
90140         * modules/unistr/u8-strmblen: New file.
90141         * modules/unistr/u16-strmblen: New file.
90142         * modules/unistr/u32-strmblen: New file.
90143         * lib/unistr/u8-strmblen.c: New file.
90144         * lib/unistr/u16-strmblen.c: New file.
90145         * lib/unistr/u32-strmblen.c: New file.
90147         * modules/unistr/u8-strmbtouc: New file.
90148         * modules/unistr/u16-strmbtouc: New file.
90149         * modules/unistr/u32-strmbtouc: New file.
90150         * lib/unistr/u8-strmbtouc.c: New file.
90151         * lib/unistr/u16-strmbtouc.c: New file.
90152         * lib/unistr/u32-strmbtouc.c: New file.
90154         * modules/unistr/u8-strncat: New file.
90155         * modules/unistr/u16-strncat: New file.
90156         * modules/unistr/u32-strncat: New file.
90157         * lib/unistr/u8-strncat.c: New file.
90158         * lib/unistr/u16-strncat.c: New file.
90159         * lib/unistr/u32-strncat.c: New file.
90160         * lib/unistr/u-strncat.h: New file.
90162         * modules/unistr/u8-strncmp: New file.
90163         * modules/unistr/u16-strncmp: New file.
90164         * modules/unistr/u32-strncmp: New file.
90165         * lib/unistr/u8-strncmp.c: New file.
90166         * lib/unistr/u16-strncmp.c: New file.
90167         * lib/unistr/u32-strncmp.c: New file.
90169         * modules/unistr/u8-strncpy: New file.
90170         * modules/unistr/u16-strncpy: New file.
90171         * modules/unistr/u32-strncpy: New file.
90172         * lib/unistr/u8-strncpy.c: New file.
90173         * lib/unistr/u16-strncpy.c: New file.
90174         * lib/unistr/u32-strncpy.c: New file.
90175         * lib/unistr/u-strncpy.h: New file.
90177         * modules/unistr/u8-strnlen: New file.
90178         * modules/unistr/u16-strnlen: New file.
90179         * modules/unistr/u32-strnlen: New file.
90180         * lib/unistr/u8-strnlen.c: New file.
90181         * lib/unistr/u16-strnlen.c: New file.
90182         * lib/unistr/u32-strnlen.c: New file.
90183         * lib/unistr/u-strnlen.h: New file.
90185         * modules/unistr/u8-strpbrk: New file.
90186         * modules/unistr/u16-strpbrk: New file.
90187         * modules/unistr/u32-strpbrk: New file.
90188         * lib/unistr/u8-strpbrk.c: New file.
90189         * lib/unistr/u16-strpbrk.c: New file.
90190         * lib/unistr/u32-strpbrk.c: New file.
90191         * lib/unistr/u-strpbrk.h: New file.
90193         * modules/unistr/u8-strrchr: New file.
90194         * modules/unistr/u16-strrchr: New file.
90195         * modules/unistr/u32-strrchr: New file.
90196         * lib/unistr/u8-strrchr.c: New file.
90197         * lib/unistr/u16-strrchr.c: New file.
90198         * lib/unistr/u32-strrchr.c: New file.
90200         * modules/unistr/u8-strspn: New file.
90201         * modules/unistr/u16-strspn: New file.
90202         * modules/unistr/u32-strspn: New file.
90203         * lib/unistr/u8-strspn.c: New file.
90204         * lib/unistr/u16-strspn.c: New file.
90205         * lib/unistr/u32-strspn.c: New file.
90206         * lib/unistr/u-strspn.h: New file.
90208         * modules/unistr/u8-strstr: New file.
90209         * modules/unistr/u16-strstr: New file.
90210         * modules/unistr/u32-strstr: New file.
90211         * lib/unistr/u8-strstr.c: New file.
90212         * lib/unistr/u16-strstr.c: New file.
90213         * lib/unistr/u32-strstr.c: New file.
90214         * lib/unistr/u-strstr.h: New file.
90216         * modules/unistr/u8-strtok: New file.
90217         * modules/unistr/u16-strtok: New file.
90218         * modules/unistr/u32-strtok: New file.
90219         * lib/unistr/u8-strtok.c: New file.
90220         * lib/unistr/u16-strtok.c: New file.
90221         * lib/unistr/u32-strtok.c: New file.
90222         * lib/unistr/u-strtok.h: New file.
90224         * modules/unistr/u8-uctomb: New file.
90225         * modules/unistr/u16-uctomb: New file.
90226         * modules/unistr/u32-uctomb: New file.
90227         * lib/unistr/u8-uctomb.c: New file.
90228         * lib/unistr/u16-uctomb.c: New file.
90229         * lib/unistr/u32-uctomb.c: New file.
90231         * MODULES.html.sh (Unicode string functions): Add the new modules.
90233 2007-01-08  Bruno Haible  <bruno@clisp.org>
90235         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
90236         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
90237         subdirectories.
90239 2007-01-08  Karl Berry  <karl@gnu.org>
90241         * doc/error.texi: mention that main() fns must set program_name
90242         when progname is used.
90244 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
90246         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
90247         WCTYPE_H is empty, for the benefit of builds from non-distclean
90248         directories.  Problem reported by Eric Blake in
90249         <http://lists.gnu.org/r/bug-gnulib/2007-01/msg00157.html>.
90251 2007-01-08  Bruno Haible  <bruno@clisp.org>
90253         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
90254         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
90255         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
90256         PROVIDE_CANONICALIZE_FILENAME_MODE.
90257         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
90259 2007-01-08  Bruno Haible  <bruno@clisp.org>
90261         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
90262         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
90263         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
90264         * lib/fts.c: Likewise.
90265         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
90267 2006-12-25  Bruno Haible  <bruno@clisp.org>
90269         * modules/utf8-ucs4-safe: New file.
90270         * lib/utf8-ucs4-safe.h: New file.
90271         * lib/unistr/utf8-ucs4-safe.c: New file.
90273         * modules/utf16-ucs4-safe: New file.
90274         * lib/utf16-ucs4-safe.h: New file.
90275         * lib/unistr/utf16-ucs4-safe.c: New file.
90277         * MODULES.html.sh (Unicode string functions): Add the new modules.
90279 2007-01-08  Bruno Haible  <bruno@clisp.org>
90281         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
90282         (Depends-on): Add unitypes.
90283         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
90284         (u8_mbtouc_aux): Move out to separate file.
90285         (u8_mbtouc): Use ucs4_t, uint8_t types.
90286         * lib/unistr/utf8-ucs4.c: New file.
90288         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
90289         (Depends-on): Add unitypes.
90290         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
90291         (u16_mbtouc_aux): Move out to separate file.
90292         (u16_mbtouc): Use ucs4_t, uint16_t types.
90293         * lib/unistr/utf16-ucs4.c: New file.
90295         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
90296         (Depends-on): Add unitypes.
90297         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
90298         (u8_uctomb_aux): Move out to separate file.
90299         (u8_uctomb): Use ucs4_t, uint8_t types.
90300         * lib/unistr/ucs4-utf8.c: New file.
90302         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
90303         (Depends-on): Add unitypes.
90304         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
90305         (u16_uctomb_aux): Move out to separate file.
90306         (u16_uctomb): Use ucs4_t, uint16_t types.
90307         * lib/unistr/ucs4-utf16.c: New file.
90309 2006-12-25  Bruno Haible  <bruno@clisp.org>
90311         * modules/unitypes: New file.
90312         * lib/unitypes.h: New file.
90313         * MODULES.html.sh (func_all_modules): New section "Unicode string
90314         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
90315         this section. Add unitypes.
90317 2007-01-08  Bruno Haible  <bruno@clisp.org>
90319         Avoid variable names that conflict with those from libtool.
90320         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
90321         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
90322         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
90323         library_names_spec to acl_library_names_spec, hardcode_* to
90324         acl_hardcode_*.
90325         Reported by Ralf Wildenhues.
90327 2007-01-08  Bruno Haible  <bruno@clisp.org>
90329         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
90330         definition.
90331         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
90332         definition.
90333         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
90334         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
90335         definition.
90336         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
90337         definition.
90338         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
90339         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
90340         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
90341         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
90342         definition.
90343         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
90344         definition.
90345         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
90346         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
90347         GC_USE_<algorithm>.
90348         * lib/gc-libgcrypt.c: Likewise.
90349         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
90350         * modules/gc-arctwo (configure.ac): Likewise.
90351         * modules/gc-des (configure.ac): Likewise.
90352         * modules/gc-hmac-md5 (configure.ac): Likewise.
90353         * modules/gc-hmac-sha1 (configure.ac): Likewise.
90354         * modules/gc-md2 (configure.ac): Likewise.
90355         * modules/gc-md4 (configure.ac): Likewise.
90356         * modules/gc-md5 (configure.ac): Likewise.
90357         * modules/gc-random (configure.ac): Likewise.
90358         * modules/gc-rijndael (configure.ac): Likewise.
90359         * modules/gc-sha1 (configure.ac): Likewise.
90361 2007-01-08  Bruno Haible  <bruno@clisp.org>
90363         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
90364         macro definition.
90365         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
90366         definition.
90367         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
90368         definition.
90369         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
90370         * modules/fcntl-safer (configure.ac): Likewise.
90371         * modules/fopen-safer (configure.ac): Likewise.
90372         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
90373         GNULIB_FWRITEERROR macro definition.
90375 2007-01-08  Bruno Haible  <bruno@clisp.org>
90377         * m4/gnulib-common.m4: New file.
90378         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
90379         (func_get_filelist): Add m4/gnulib-common.m4.
90381 2007-01-08  Bruno Haible  <bruno@clisp.org>
90383         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
90384         command.
90386 2007-01-08  Jim Meyering  <jim@meyering.net>
90388         Use a more robust test for a "can't happen" condition.
90389         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
90390         narrowed the st_size value.  Presuming the "can't happen" condition
90391         is true, that narrowing could conceivably convert an invalid st_size
90392         value into a valid one.  Instead, use a change based on Matthew
90393         Woehlke's original patch.
90395         Slight readability improvement: use an assert-like macro
90396         in place of literal "abort ()" uses.
90397         * lib/fts.c (fts_assert): Define.
90398         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
90399         Use this macro instead of a bare 'abort'.
90401 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
90403         Don't worry about using IRIX 5.3's wctype.h broken definitions;
90404         simply work around them.
90405         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
90406         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
90407         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
90408         declaring.
90409         Don't bother to define as macros, since the standard doesn't require it.
90410         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
90411         longer worry about IRIX 5.3.
90412         (HAVE_WCTYPE_CTMP_BUG): Remove.
90414 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
90416         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
90417         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
90418         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
90419         Problems reported by Georg Schwarz for IRIX 5.3.
90421         * gnulib-tool (autoconf_minversion): Take the maximum version number
90422         found, not the minimum.  Problem reported by James Youngman.
90424 2007-01-03  Karl Berry  <karl@gnu.org>
90426         * doc/error.texi: new file, explaining interaction with progname.
90427         * doc/gnulib.texi: include it.  Update copyright.
90429 2007-01-03  Simon Josefsson  <simon@josefsson.org>
90431         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
90432         AC_CANONICAL_HOST, to improve autobuild outputs.
90434 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
90435             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
90437         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
90438         sockets, server sockets, and other file descriptors.  Count errors
90439         to compute the return value.  Reorder the code a bit to be easier
90440         to follow.  Don't set event bits that were not requested (except
90441         POLLERR and POLLHUP).
90443 2007-01-01  Bruno Haible  <bruno@clisp.org>
90445         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
90447 2007-01-03  Jim Meyering  <jim@meyering.net>
90449         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
90451 2007-01-02  Bruno Haible  <bruno@clisp.org>
90453         * modules/settime (Include): Require timespec.h.
90454         * modules/nanosleep (Include): Likewise.
90456 2007-01-01  Bruno Haible  <bruno@clisp.org>
90458         * gnulib-tool (func_emit_copyright_notice): Bump year.
90459         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
90461 2007-01-01  Bruno Haible  <bruno@clisp.org>
90463         Improve support for OpenBSD.
90464         * build-aux/config.rpath (libname_spec): Export.
90465         (library_names_spec): New variable. Export.
90466         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
90467         library_names_spec from the config.rpath output. Locate shared library
90468         through the name pattern in library_names_spec.
90470 2007-01-01  Eric Blake  <ebb9@byu.net>
90472         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
90474 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
90476         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
90477         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
90478         assume the C locale, and avoid an "eval" that could cause trouble.
90479         Problem with SORT reported by Bob Proulx.
90481         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
90482         Define.  Trivial patch from Henning Nielsen Lund, originally
90483         sent to bug-grep@gnu.org today.
90485 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
90487         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
90488         struct stat.  Problem reported by Henning Nielsen Lund.
90489         * lib/acl.c: Include acl.h first, to check interface.  Don't
90490         bother to include sys/types.h and sys/stat.h again.
90492 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
90494         Import the following change from libc; problem reported by
90495         Sven Verdoolaege.
90497         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
90499         [BZ #1373]
90500         * lib/argp.h: Remove __NTH for __argp_usage inline function.
90502 2006-12-28  Jim Meyering  <jim@meyering.net>
90504         * build-aux/announce-gen: Do not assume that the package
90505         builds any of tar.gz, tar.bz2, and .xdelta files.
90506         Suggestion from Simon Josefsson.
90508 2006-12-28  Simon Josefsson  <simon@josefsson.org>
90510         * modules/announce-gen: New file.
90512 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
90514         * lib/mbchar.h: Just include <wctype.h>; the wctype module
90515         handles its gotchas now.
90516         * lib/mbswidth.c: Likewise.
90517         * lib/wcwidth.h: Likewise.
90518         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
90519         and iswcntrl; the wctype module does this stuff now.
90520         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
90521         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
90522         * modules/mbchar (Depends-on): Add wctype.
90523         * modules/mbswidth (Depends-on): Likewise.
90524         * modules/wcwidth (Depends-on): Likewise.
90526 2006-12-27  Eric Blake  <ebb9@byu.net>
90528         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
90529         module uses more than what <wctype.h> is required to provide.
90531 2006-12-26  Eric Blake  <ebb9@byu.net>
90533         * gnulib-tool (sed_extract_prog): Avoid space-tab.
90535 2006-12-26  Eric Blake  <ebb9@byu.net>
90537         * modules/absolute-header: New module.
90538         * modules/fcntl (Depends-on): Depend on it.
90539         * modules/inttypes (Depends-on): Likewise.
90540         * modules/stdint (Depends-on): Likewise.
90541         * modules/sys_stat (Depends-on): Likewise.
90542         * modules/wctype (Depends-on): Likewise.
90543         * MODULES.html.sh (Support for building libraries and
90544         executables): Document it.
90546 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
90548         * gnulib-tool (SED): Remove, undoing previous change.
90549         The problem was that it broke coreutils on Solaris, because
90550         "sed --posix" leaked into a makefile.
90551         (sed): New alias, if 'alias' and GNU sed.
90553 2006-12-24  Jim Meyering  <jim@meyering.net>
90555         Work around an fchownat bug in glibc-2.4:
90556         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
90557         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
90558         in spite of the -P option.
90559         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
90560         New macros.
90561         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
90562         * modules/openat (Files): Add lib/fchownat.c.
90563         * lib/openat.c (fchownat): Don't define here.  Move to...
90564         * lib/fchownat.c: ...this new file.
90566 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
90568         Fix bug reported by Bruno Haible in
90569         <http://lists.gnu.org/r/bug-gnulib/2006-12/msg00228.html>
90570         where quotearg.c didn't compile on Mac OS X 10.2 because it
90571         lacks <wchar.h> and wint_t.
90572         * lib/wctype_.h (__wctype_wint_t): New type.
90573         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
90574         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
90575         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
90576         Arg is now of type __wctype_wint_t, not wint_t.
90577         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
90578         substitute HAVE_WINT_T.
90579         * modules/wctype (Files): Add m4/wint_t.m4.
90580         (wctype.h): Substitute HAVE_WINT_T.
90582 2006-12-23  Bruno Haible  <bruno@clisp.org>
90584         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
90586 2006-12-23  Bruno Haible  <bruno@clisp.org>
90588         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
90589         S_ISLNK.
90590         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
90591         mingw.
90593 2006-12-22  Bruno Haible  <bruno@clisp.org>
90595         * lib/copy-file.c: Include acl.h.
90596         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
90597         Close the file descriptors only after being done with copy_acl.
90598         * modules/copy-file (Depends-on): Add acl.
90600 2006-12-22  Bruno Haible  <bruno@clisp.org>
90602         * gnulib-tool (SED): New variable.
90603         Use $SED instead of sed everywhere.
90605 2006-12-22  Bruno Haible  <bruno@clisp.org>
90607         * modules/no-c++: New file.
90608         * m4/no-c++.m4: New file.
90609         * MODULES.html.sh (Support for building libraries and executables):
90610         Add no-c++.
90612 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
90614         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
90615         Include <limits.h>, and use its INT_MAX to rewrite the
90616         j loop so that it does not overflow 'int'.  Problem reported by
90617         Ralf Wildenhues in
90618         <http://lists.gnu.org/r/bug-gnulib/2006-12/msg00084.html>.
90619         Play it safe by shifting left by 1 rather than multiplying by 2,
90620         as GCC is less likely to optimize this away when the value
90621         is signed (when it assumes overflow leads to undefined behavior).
90622         Also, don't assume time_t uses two's complement.
90624 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
90626         * MODULES.html.sh: New module wctype.
90627         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
90628         * lib/fnmatch.c: Don't bother to include <wchar.h> before
90629         <wctype.h>, since the new wctype module should fix this.
90630         * lib/quotearg.c: Include <wctype.h> unconditionally, since
90631         the wctype module should arrange for it.
90632         * lib/regex_internal.h: Likewise.
90633         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
90634         since the wctype module should handle this now.
90635         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
90636         * modules/fnmatch (Depends-on): Add wctype.
90637         * modules/quotearg (Depends-on): Likewise.
90638         * modules/regex (Depends-on): Likewise.
90640 2006-12-19  Bruno Haible  <bruno@clisp.org>
90642         * lib/strdup.h [C++]: Wrap definitions in extern "C".
90643         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
90645 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
90647         * modules/savewd (Depends-on): Fix dependency on fcntl.
90649 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
90651         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
90652         conforms to C99, rather than relying on the user's environment
90653         setting of STDINT_H.
90655 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
90656         and Eric Blake  <ebb9@byu.net>
90658         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
90659         This is more consistent with the other defines here.
90660         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
90661         Port to z/OS.  Problem reported by Paul Gilmartin.
90662         Change local vars to use gl_ prefix rather than ac_.
90663         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
90664         with other defines.
90665         * modules/double-slash-root: New module.
90666         * modules/dirname (Files): Remove m4/double-slash-root.m4.
90667         (Depends-on): Add double-slash-root.
90668         * MODULES.html.sh (File system functions): Mention new module.
90670 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
90672         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
90673         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
90674         This is for the benefit of gzip, which doesn't do i18n.
90676 2006-12-12  Jim Meyering  <jim@meyering.net>
90678         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
90679         Reported by Andreas Schwab <schwab@suse.de>.
90681 2006-12-12  Bruno Haible  <bruno@clisp.org>
90683         Merge these changes.
90684         2006-09-05  Bruno Haible  <bruno@clisp.org>
90685         * lib/iconvme.c (iconv_string): No need to save and restore errno when
90686         iconv_alloc succeeded.
90687         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
90688         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
90689         test for " && dest " at the end - dest is always != NULL there. Call
90690         iconv with 4xNULL arguments initially, to reset the state. Call iconv
90691         with 2xNULL arguments, also to flush the state storage. Handle the
90692         IRIX iconv behaviour. Realloc the final result, to throw away unused
90693         memory.
90695 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
90697         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
90698         and fchmodat unconditionally, since glibc 2.4 has them.
90699         Problem reported by Arkadiusz Miskiewicz.
90701 2006-12-10  Bruno Haible  <bruno@clisp.org>
90703         * gnulib-tool (func_import): Show the include files only for those
90704         modules that are copied and specified.
90705         Reported by Karl Berry.
90707 2006-12-08  Jim Meyering  <jim@meyering.net>
90709         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
90710         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
90712         * build-aux/announce-gen: Add two new options, both optional:
90713         --bootstrap-tools=TOOL_LIST
90714               a comma-separated list of tools, e.g.,
90715               autoconf,automake,bison,gnulib
90716         --gnulib-snapshot-date=DATE
90717               if gnulib is in the bootstrap tool list,
90718               then report this as the snapshot date.
90719               If not specified, use the current date/time.
90720               If you specify a date here, be sure it's UTC.
90722 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
90724         * tests/test-argp-2.sh: Fix test to match actual output.
90725         (func_compare): Fix sed script to be portable.
90727 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
90729         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
90730         workaround for this case.  It is not autoconfigured now; offhand
90731         it's hard to see how to autoconfigure it.
90733 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
90735         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
90736         a directory that is about to be chowned.  Such a directory's
90737         initial file permissions should permit the owner only and this
90738         should not be changed until after the chown, since the group and
90739         other bits would be incorrect if they granted permission before
90740         the chown.
90742         Fix porting problem for iswctype reported by Georg Schwarz in:
90743         http://lists.gnu.org/r/bug-coreutils/2006-12/msg00017.html
90744         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
90745         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
90746         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
90747         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
90749 2006-12-03  Jim Meyering  <jim@meyering.net>
90751         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
90752         p->fts_statp may not yet be defined.
90753         (fts_read): Instead, set it in the caller, once p->fts_statp is
90754         sure to be defined, and corresponds to a top-level directory.
90755         This bug made du -x fail.  Here's the coreutils test case:
90756         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
90757         Reported by Mike Frysinger.
90759 2006-12-01  Jim Meyering  <jim@meyering.net>
90761         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
90762         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
90763         Reported by Simon Josefsson.
90765 2006-11-30  Jim Meyering  <jim@meyering.net>
90767         * m4/warning.m4: Use the all-permissive copyright notice
90768         recommended by RMS (rather than LGPL).
90769         * m4/vararrays.m4: Likewise.
90770         * m4/flexmember.m4: Likewise.
90772 2006-11-29  Bruno Haible  <bruno@clisp.org>
90774         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
90775         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
90776         using +=.
90777         Reported by Simon Josefsson <simon@josefsson.org>.
90779 2006-11-28  James Youngman  <jay@gnu.org>
90781         * README: Advise users that they might find the bug-gnulib@gnu.org
90782         and autotools-announce@gnu.org mailing lists useful.
90784 2006-11-28  Bruno Haible  <bruno@clisp.org>
90786         * m4/ptrdiff_max.m4: Remove file.
90788 2006-11-21  Bruno Haible  <bruno@clisp.org>
90790         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
90791         _AC_COMPUTE_INT.
90792         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
90793         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
90794         _AC_COMPUTE_INT.
90795         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
90796         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
90797         _AC_COMPUTE_INT.
90798         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
90800 2006-11-28  Jim Meyering  <jim@meyering.net>
90802         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
90803         warning from "gcc -Wshadow" about shadowing the builtin.
90805 2006-11-27  Bruno Haible  <bruno@clisp.org>
90807         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
90808         _AC_COMPUTE_INT.
90809         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
90811 2006-11-27  Bruno Haible  <bruno@clisp.org>
90812             Paul Eggert  <eggert@cs.ucla.edu>
90814         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
90816 2006-11-26  Bruno Haible  <bruno@clisp.org>
90818         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
90819         noinst_LTLIBRARIES.
90821 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
90822             Bruno Haible  <bruno@clisp.org>
90824         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
90825         if compiling with "gcc -ansi".
90827 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
90829         Fix some incompatibilities with gcc -ansi -pedantic.
90830         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
90831         if compiling pedantically with GCC, unless it's C99 or later.
90832         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
90833         it mishandles gcc -ansi -pedantic as well.
90834         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
90835         if gcc -pedantic.
90836         * lib/regexec.c (check_node_accept_bytes): Don't use auto
90837         initializers for struct if -pedantic, unless it's C99 or later.
90839 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
90841         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
90842         Don't close an fd more than once. Identical atimes indicate
90843         success, not failure.
90845 2006-11-22  Robinson Mittmann  <bob@hoplon.com>  (tiny change)
90847         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
90849 2006-11-23  Jim Meyering  <jim@meyering.net>
90851         * build-aux/announce-gen: New file.  From coreutils.
90853 2006-11-22  Jim Meyering  <jim@meyering.net>
90855         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
90856         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
90857         (fts_read): Use a temporary to narrow the overused st_size member
90858         before using it in a switch statement.  Reported by Matthew Woehlke.
90860         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
90861         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
90863 2006-11-20  Bruno Haible  <bruno@clisp.org>
90865         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
90866         changequote instead of pairs of brackets.
90867         Reported by Andreas Schwab <schwab@suse.de>.
90869 2006-11-21  Jim Meyering  <jim@meyering.net>
90871         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
90872         so as to remain compatible with older compilers.
90873         Patch from Michael Deutschmann.
90875 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
90877         * MODULES.html.sh (File system functions): Add openat.
90879         * lib/openat.h (rpl_fstatat): New macro, if
90880         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
90881         (fstatat): Define to rpl_fstatat under the same conditions,
90882         unless COMPILING_FSTATAT.
90883         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
90884         seems to have the bug.
90885         * lib/fstatat.c: New file.
90886         * modules/openat (Files): Add it.
90888 2006-11-20  Bruno Haible  <bruno@clisp.org>
90890         * Makefile: New file.
90892 2006-11-20  Jim Meyering  <jim@meyering.net>
90894         The beginnings of syntax-related checks for gnulib.
90895         * lib/Makefile: New file.
90896         * lib/t-idcache: New script.  Ensure that the two halves of
90897         idcache.c stay in sync.
90899         * lib/idcache.c: Adjust comments in user- and group- portions to
90900         be more accurate, and to be consistent with one another.
90902 2006-11-20  Jim Meyering  <jim@meyering.net>
90904         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
90905         continue using the flexible array member (thus, this module performs
90906         half as many malloc calls), with the addition that...
90907         (getgroup, getuser): Consistently record a non-match via an empty
90908         "name" string, and map an empty string match to a NULL return value.
90909         * modules/idcache (Depends-on): Re-add flexmember.
90911         * lib/idcache.c (getuser): Remove all uses of the register keyword.
90912         (getuidbyname, getgroup, getgidbyname): Likewise.
90914         Use cleaner syntax: NULL rather than 0.
90915         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
90917 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
90919         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
90920         It mishandled the case where the group was missing.
90921         Problem reported by Greg Schafer.
90922         * modules/idcache: Likewise.
90924 2006-11-18  Jim Meyering  <jim@meyering.net>
90926         * check-module (%exempt_header): Add exception for some
90927         conditionally-included headers.
90929         * modules/i-ring (Depends-on): Add verify.
90930         (License): Change to LGPL.
90932 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
90934         * modules/getaddrinfo (Depends-on): Remove inttostr; add snprintf.
90935         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
90936         and inttostr.h.  Use snprintf rather than uinttostr, so that
90937         LGPLed code doesn't depend on GPLed.
90939 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
90941         * modules/inline (License): Change from GPL to LGPL.
90943 2006-11-17  Jim Meyering  <jim@meyering.net>
90945         * modules/d-type (License): Switch to LGPL.
90947 2006-11-15  Bruno Haible  <bruno@clisp.org>
90949         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
90951 2006-11-15  Eric Blake  <ebb9@byu.net>
90953         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
90954         the module dependency.
90956 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
90957             Bruno Haible  <bruno@clisp.org>
90959         * gnulib-tool (func_create_testdir): Add license consistency check.
90961 2006-11-15  Eric Blake  <ebb9@byu.net>
90963         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
90964         random "(cached)" in configure output.
90966 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
90968         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
90969         test for conforming inttypes.h is both announced and cached.
90971         * MODULES.html.sh (seen_modules, seen_files): New variables.
90972         (func_module): Rewrite to use a few less gnulib-tool and sed
90973         invocations.  Avoid a couple of quadratic algorithms for ...
90974         (missed_modules, missed_files): ... these, with ...
90975         (func_append, func_tmpdir): ... these new functions, from
90976         gnulib-tool.  Analogously, install traps for cleanup.
90978         * tests/test-gc.c (main): Remove unused variables.
90979         * tests/test-read-file.c: Include stdlib.h, for 'free'.
90981 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
90983         * modules/inttostr (License): Change to LGPL.
90985 2006-11-14  Eric Blake  <ebb9@byu.net>
90987         * modules/tempname (License): Change to LGPL.
90989 2006-11-14  Eric Blake  <ebb9@byu.net>
90991         * doc/functions.texi (Function Portability): *printf functions on
90992         Cygwin now understand all POSIX size specifiers.
90994 2006-11-14  Bruno Haible  <bruno@clisp.org>
90996         * modules/c-ctype (License): Change to LGPL.
90998 2006-11-12  Bruno Haible  <bruno@clisp.org>
91000         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
91001         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
91002         for GNOME libraries, for which the include files are installed in
91003         subdirectories of $prefix/include.
91005 2006-11-12  Bruno Haible  <bruno@clisp.org>
91007         * m4/lib-link.m4: Require at least autoconf-2.54.
91008         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
91009         name to underscores for the --with option.
91011 2006-11-13  Bruno Haible  <bruno@clisp.org>
91013         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
91014         the tests directory.
91015         Reported by Ralf Wildenhues.
91017 2006-11-13  Bruno Haible  <bruno@clisp.org>
91019         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
91020         (func_emit_initmacro_end): Undo the override here.
91021         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
91022         Works around the famous automake error in coreutils.
91024 2006-11-13  Eric Blake  <ebb9@byu.net>
91026         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
91027         element, not its node.
91029 2006-11-12  Bruno Haible  <bruno@clisp.org>
91031         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
91032         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
91034 2006-11-12  Bruno Haible  <bruno@clisp.org>
91036         * gnulib-tool: New option --local-symlink.
91037         (func_usage): Document it.
91038         (lsymbolic): New variable.
91039         (func_import, func_create_testdir): If --symlink was not specified,
91040         test whether --local-symlink was specified and the file comes from
91041         the local_gnulib_dir.
91043 2006-11-12  Bruno Haible  <bruno@clisp.org>
91045         * gnulib-tool (func_ln): New function.
91046         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
91048 2006-11-12  Bruno Haible  <bruno@clisp.org>
91050         Finish support for source files in subdirectories.
91051         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
91052         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
91053         AUTOMAKE_OPTIONS.
91054         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
91056 2006-11-12  Bruno Haible  <bruno@clisp.org>
91058         * gnulib-tool (func_get_automake_snippet): Synthesize also an
91059         EXTRA_lib_SOURCES augmentation.
91060         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
91062 2006-11-12  Jim Meyering  <jim@meyering.net>
91064         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
91065         file descriptors.  This also averts a failure on systems with
91066         native openat support when a traversed directory lacks "x" access.
91067         * lib/fts_.h: Include "i-ring.h"
91068         (struct FTS) [fts_fd_ring]: New member.
91069         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
91070         (FCHDIR): Add parentheses.
91071         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
91072         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
91073         When descending, rather than simply closing the previous
91074         fts_cwd_fd value, push that file descriptor onto the ring.
91075         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
91076         (fts_open): Initialize the new fd_ring member.
91077         (fts_close): Clear the ring.
91078         (fts_safe_changedir): When possible, use our new fd_ring to skip
91079         the diropen and fstat and dev/ino comparison that would normally
91080         accompany a virtual `chdir ("..")'.
91082         * modules/fts (Depends-on): Add i-ring.
91083         * modules/i-ring: New module.
91084         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
91085         * m4/i-ring.m4: New file.
91087 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
91089         * gnulib-tool (func_create_testdir): Fix replacement of
91090         `build-aux' in configure.ac.  Run autotools in gltests
91091         subdirectory.
91092         (func_create_testdir, func_create_megatestdir, test): There is
91093         no need for '--force' in most autotool invocations in a new
91094         tree.  Actually fail the whole test if any of the tools, or the
91095         configure or make stages fail.
91097         Sync from Automake.
91098         * build-aux/gnupload: Revert last change.  Add pointer to upload
91099         instructions of the GNU Maintenance Instructions.
91100         Suggestion by Karl Berry.
91102 2006-11-10  Jim Meyering  <jim@meyering.net>
91104         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
91106 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
91108         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
91109         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
91110         (bind_textdomain_codeset) [! ENABLE_NLS]:
91111         Evaluate all the arguments.  That way, callers get compatible behavior
91112         if the arguments have side effects.  Also, it avoids some GCC
91113         diagnostics in some cases; Joel E. Denny reported problems when Bison
91114         was configured with --enable-gcc-warnigs.
91116 2006-11-10  Jim Meyering  <jim@meyering.net>
91118         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
91119         relevant options in CFLAGS (like -O, -fno-inline) are taken into
91120         account.
91122 2006-11-10  Jim Meyering  <jim@meyering.net>
91124         * modules/inline: New file/module.
91125         * modules/xalloc (Files): Remove m4/inline.m4.
91126         (Depends-on): Add inline, instead.
91127         * modules/oset: Likewise.
91128         * modules/list: Likewise.
91130 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
91132         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
91133         Problem reported by Matthew Woehlke.
91135 2006-11-09  Bruno Haible  <bruno@clisp.org>
91137         * lib/tempname.c (gen_tempname): Remove variant that invokes
91138         __gen_tempname.
91139         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
91140         __gen_tempname.
91142 2006-11-08  Bruno Haible  <bruno@clisp.org>
91144         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
91145         to 'yes' instead of 'cross-compiling'.
91147 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
91149         * lib/quotearg.h (quotearg_free): New decl.
91150         * lib/quotearg.c (quotearg_free): New function.
91151         (slot0, nslots, slotvec0, slotvec):
91152         Now file-scope so that quotearg_free can get at them.
91154 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
91156         Sync from Automake.
91157         * build-aux/gnupload: Add missing 'gnu' to example URL.
91158         Report by Karl Berry.
91160 2006-11-08  Bruno Haible  <bruno@clisp.org>
91162         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
91163         Suggested by Paul Eggert.
91165 2006-11-08  Jim Meyering  <jim@meyering.net>
91167         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
91168         It's already included if !_LIBC.
91169         (fts_safe_changedir): Add a comment.
91171 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
91173         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
91174         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
91175         Matthew Woehlke.
91177         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
91178         definitions up, to avoid colliding with change below.
91179         (static_inline) [HAVE_INLINE]: New macro.
91180         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
91181         Provide extern decls when !HAVE_INLINE.  Do not define unless
91182         static_inline is defined, either by us or by xmalloc.c.  Use
91183         static_inline rather than static inline.
91184         (XCALLOC): Optimize sizeof(T) = 1 case.
91185         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
91187 2006-11-07  Bruno Haible  <bruno@clisp.org>
91189         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
91190         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
91191         AC_C_INLINE.
91192         * modules/xalloc (Files): Add m4/inline.m4.
91194 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
91196         * README: Fix typo.
91197         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
91198         (Miscellanous Notes): ...from this.
91200 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
91202         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
91203         Mention that offsetof should be used instead of sizeof.
91204         From Bruno Haible.
91206 2006-11-07  Bruno Haible  <bruno@clisp.org>
91208         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
91210 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
91212         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
91213         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
91214         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
91215         (gl_tree_add_before, gl_tree_add_after):
91216         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
91217         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
91218         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
91219         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
91220         (gl_linked_add_after, gl_linked_add_at): Likewise.
91221         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
91222         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
91223         (gl_tree_add_before, gl_tree_add_after): Likewise.
91224         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
91225         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
91226         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
91228 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
91230         * lib/gl_oset.h: Use C comment style, not C++ comment style.
91232 2006-11-06  Bruno Haible  <bruno@clisp.org>
91234         * m4/inline.m4: New file.
91235         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
91236         * modules/list (Files): Add m4/inline.m4.
91237         * modules/oset (Files): Likewise.
91239 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
91241         * lib/idcache.c: Include <stddef.h>, for offsetof.
91242         (struct userid.name): Change from char * to a flexible array member.
91243         All uses changed.
91244         * modules/idcache (Depends-on): Add flexmember.
91246         * MODULES.html.sh (Core language properties): New module flexmember.
91247         * modules/flexmember, m4/flexmember.m4: New files.
91249         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
91250         inline functions that are identical with the old xnmalloc_inline,
91251         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
91252         that we can avoid some unnecessary integer multiplications and
91253         divisions in the common case where the element size is known at
91254         compile time.
91255         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
91256         needed.
91257         (xnboundedmalloc): Remove.
91258         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
91259         arguments, for consistency with rest of this header.
91260         (xcharalloc): Rewrite using XNMALLOC.
91261         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
91262         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
91263         versions have been moved to lib/xalloc.h and renamed to be the
91264         non-*_inline versions.
91265         (xmalloc, xrealloc): Implement without reference to the xnmalloc
91266         and xnrealloc functions, since those functions are now inline and
91267         now call us.
91268         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
91269         renaming described above.
91270         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
91271         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
91272         captures the dependency in AC_C_INLINE.
91274         New module canonicalize-lgpl, proposed by Charles Wilson in
91275         <http://lists.gnu.org/r/bug-gnulib/2006-11/msg00020.html>
91276         with a few small changes afterwards.
91277         * MODULES.html.sh (File system functions): New module
91278         canonicalize-lgpl.
91279         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
91280         and canonicalize_file_name.
91281         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
91282         * modules/canonicalize-lgpl: New files.
91284 2006-11-05  Bruno Haible  <bruno@clisp.org>
91286         * gnulib-tool (func_import, func_create_testdir): Create directories
91287         also for files in subdirectories of lib/.
91289 2006-11-05  Bruno Haible  <bruno@clisp.org>
91291         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
91292         ANSI C compliant.
91294 2006-11-03  Bruno Haible  <bruno@clisp.org>
91296         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
91297         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
91298         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
91299         (xnboundedmalloc): New inline function.
91300         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
91301         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
91302         xmalloc.
91303         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
91304         xmalloc.
91305         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
91306         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
91307         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
91308         xmalloc.
91309         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
91310         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
91311         xmalloc.
91312         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
91313         gl_tree_add_after): Use XMALLOC instead of xmalloc.
91314         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
91315         xmalloc.
91316         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
91317         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
91318         gl_tree_add_after): Use XMALLOC instead of xmalloc.
91319         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
91320         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
91321         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
91322         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
91324 2006-11-03  Bruno Haible  <bruno@clisp.org>
91326         * lib/c-ctype.h [C++]: Define functions without name mangling.
91327         * lib/fwriteerror.h [C++]: Likewise.
91328         * lib/gcd.h [C++]: Likewise.
91329         * lib/linebreak.h [C++]: Likewise.
91331 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
91333         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
91334         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
91335         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
91336         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
91337         Check for functions and headers just once.
91338         Check for declaration of canonicalize_file_name.
91339         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
91341 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
91343         * gnulib-tool (func_import): Fix typo in actioncmd.
91345 2006-11-02  Bruno Haible  <bruno@clisp.org>
91347         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
91348         newline sequence in the Makefile.am snippet as a space, like "make"
91349         does.
91350         Reported by Roger Persson <perrog@gmail.com>.
91352 2006-11-01  Bruno Haible  <bruno@clisp.org>
91354         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
91355         already declared in <string.h>.
91356         * lib/strcase.h (strncasecmp): Don't declare it if yes.
91358 2006-11-01  Bruno Haible  <bruno@clisp.org>
91360         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
91361         * lib/strcase.h: Include <string.h>.
91362         (strcasecmp): Define to rpl_strcasecmp here.
91364 2006-11-01  Bruno Haible  <bruno@clisp.org>
91366         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
91368 2006-11-01  Eric Blake  <ebb9@byu.net>
91370         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
91372         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
91374 2006-10-29  Bruno Haible  <bruno@clisp.org>
91376         Make it compile in C++ mode.
91377         * lib/full-write.c (full_rw): Add a cast.
91379 2006-11-01  Bruno Haible  <bruno@clisp.org>
91381         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
91382         be POSIX compliant.
91383         Reported by Roger Persson <perrog@gmail.com>.
91385 2006-11-01  Eric Blake  <ebb9@byu.net>
91387         * lib/getopt_.h: Fix comments.
91389 2006-10-31  Eric Blake  <ebb9@byu.net>
91391         * modules/tmpdir (Depends-on): Add sys_stat.
91392         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
91393         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
91394         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
91395         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
91396         tempname.
91398 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
91400         Avoid some C++ diagnostics reported by Bruno Haible.
91401         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
91402         xmalloc.
91403         (quotearg_alloc): Use xcharalloc rather than xmalloc.
91404         (struct slotvec): Move to top level.
91405         (quotearg_n_options): Rewrite to avoid xmalloc.
91406         * lib/xalloc.h (xcharalloc): New function.
91407         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
91408         [defined __cplusplus]: Add function template that provides result
91409         type propagation.  This part of the change is from Bruno Haible.
91411 2006-10-29  Bruno Haible  <bruno@clisp.org>
91413         Make it compile in C++ mode.
91414         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
91415         * lib/strnlen1.c (strnlen1): Cast memchr result.
91416         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
91417         * lib/clean-temp.c (string_equals, string_hash): Add casts.
91418         (create_temp_dir): Rename local variable 'template'.
91419         (compile_csharp_using_sscli): Add cast.
91420         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
91421         * lib/findprog.c (find_in_path): Likewise.
91422         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
91423         * lib/wait-process.c (register_slave_subprocess): Likewise.
91425 2006-10-22  Bruno Haible  <bruno@clisp.org>
91427         * modules/tsearch: New file.
91428         * lib/tsearch.h: New file.
91429         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
91430         * m4/tsearch.m4: New file.
91431         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
91433 2006-10-29  Eric Blake  <ebb9@byu.net>
91435         * lib/arcfour.c: Assume config.h.
91436         * lib/arctwo.c: Likewise.
91437         * lib/base64.c: Likewise.
91438         * lib/check-version.c: Likewise.
91439         * lib/crc.c: Likewise.
91440         * lib/des.c: Likewise.
91441         * lib/gc-gnulib.c: Likewise.
91442         * lib/gc-libgcrypt.c: Likewise.
91443         * lib/gc-pbkdf2-sha1.c: Likewise.
91444         * lib/getaddrinfo.c: Likewise.
91445         * lib/getdelim.c: Likewise.
91446         * lib/getline.c: Likewise.
91447         * lib/hmac-md5.c: Likewise.
91448         * lib/hmac-sha1.c: Likewise.
91449         * lib/iconvme.c: Likewise.
91450         * lib/md2.c: Likewise.
91451         * lib/md4.c: Likewise.
91452         * lib/memxor.c: Likewise.
91453         * lib/read-file.c: Likewise.
91454         * lib/readline.c: Likewise.
91455         * lib/rijndael-alg-fst.c: Likewise.
91456         * lib/rijndael-api-fst.c: Likewise.
91457         * lib/xgetdomainname.c: Likewise.
91459 2006-10-28  Eric Blake  <ebb9@byu.net>
91461         * lib/xstrndup.c: Assume config.h.
91463 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
91465         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
91466         stat-macros.h is now for our own macros, whereas stat_h is for
91467         macros in the <sys/stat.h> name space.
91468         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
91469         (STAT_MACROS_H): Remove.
91470         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
91471         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
91472         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
91473         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
91474         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
91475         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
91476         Move these macros to ...
91477         * lib/stat_.h: here.  Don't include stat-macros.h.
91478         * lib/canonicalize.c: Don't include stat-macros.h.
91479         * lib/chown.c: Likewise.
91480         * lib/euidaccess.c: Likewise.
91481         * lib/file-type.c: Likewise.
91482         * lib/filemode.c: Likewise.
91483         * lib/glob.c: Likewise.
91484         * lib/isapipe.c: Likewise.
91485         * lib/lchown.c: Likewise.
91486         * lib/lstat.c: Likewise.
91487         * lib/mkdir-p.c: Likewise.
91488         * lib/rmdir.c: Likewise.
91489         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
91490         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
91491         unless mkdir isn't declared, to speed up 'configure'.
91492         Always create sys/stat.h, since it's unlikely any real sys/stat.h
91493         would define all the S_* symbols.
91494         * modules/canonicalize (Depends-on):
91495         Depend on sys_stat, not stat-macros.
91496         * modules/chown: Likewise.
91497         * modules/euidaccess: Likewise.
91498         * modules/filemode: Likewise.
91499         * modules/file-type: Likewise.
91500         * modules/glob: Likewise.
91501         * modules/isapipe: Likewise.
91502         * modules/lchown: Likewise.
91503         * modules/lstat: Likewise.
91504         * modules/mkancesdirs: Likewise.
91505         * modules/rmdir: Likewise.
91506         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
91507         * modules/modechange: Likewise.
91508         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
91509         (configure.ac): Remove gl_STAT_MACROS.
91510         * modules/sys_stat (Depends-on): Remove stat-macros.
91512 2006-10-27  Bruno Haible  <bruno@clisp.org>
91514         * m4/signed.m4: Remove file.
91515         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
91516         invocation.
91517         * modules/vasnprintf (Files): Remove m4/signed.m4.
91519 2006-10-27  Bruno Haible  <bruno@clisp.org>
91521         Update to GNU gettext 0.16.
91522         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
91523         m4/inttypes-h.m4, m4/signed.m4.
91524         * m4/gettext.m4: Update to GNU gettext 0.16.
91525         * m4/intl.m4: New file, from GNU gettext.
91526         * m4/intldir.m4: New file, from GNU gettext.
91527         * config/srclist.txt: Update
91529 2006-10-27  Eric Blake  <ebb9@byu.net>
91531         * MODULES.html.sh: Document tempname.
91532         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
91533         dependencies.
91534         (Files): Move lib/tempname.c...
91535         * modules/tempname: ...to this new module.
91536         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
91537         (gl_PREREQ_TEMPNAME): Move...
91538         * m4/tempname.m4: ...to this new file.
91539         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
91540         * modules/sys_stat (Depends-on): Add stat-macros.
91541         * lib/stat_.h (includes): Pick up stat macros.
91542         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
91543         if stat macros are broken.
91544         * lib/tempname.c (includes): No need to include "stat-macros.h".
91545         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
91546         (direxists, __path_search) [!_LIBC]: Don't compile these in
91547         gnulib; the tmpdir module covers that.
91548         * lib/tempname.h: New file.
91550 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
91552         * COPYING: Explain how gnulib-tool converts licence headers.
91553         Almost all wording by Eric Blake.
91555 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
91557         * lib/mbchar.h (is_basic_table): Make read-only.
91558         * lib/mbchar.c (is_basic_table): Likewise.
91559         Reported by John Darrington.
91561 2006-10-25  Bruno Haible  <bruno@clisp.org>
91563         * lib/progname.h (set_program_name): Undefine before defining.
91565 2006-10-25  Bruno Haible  <bruno@clisp.org>
91567         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
91568         false for non-gcc C++ compilers.
91569         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
91571 2006-10-24  Bruno Haible  <bruno@clisp.org>
91573         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
91574         iconv implementations like Irix iconv.
91576 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
91578         * modules/vararrays: New file.
91579         * m4/vararrays.m4: New file, taken from diffutils.
91580         * MODULES.html.sh: New module vararrays.
91582 2006-10-24  Karl Berry  <karl@gnu.org>
91584         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
91585         Don't call GNU Unix.
91587 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
91589         * users.txt: Add Libtool.
91591         Sync from Libtool:
91593         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
91595         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
91596         to gnulib's policy of including config.h unconditionally.
91598 2006-10-24  Bruno Haible  <bruno@clisp.org>
91600         * modules/wcwidth (Files): Add m4/wint_t.m4.
91601         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
91602         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
91604 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
91606         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
91607         to pacify GCC with some -W flags enabled.  Problem reported by
91608         Bruno Haible.
91610 2006-10-24  Jim Meyering  <jim@meyering.net>
91612         * MODULES.html.sh: Remove uinttostr.  It's not a module.
91613         Reported by Karl Berry.
91615 2006-10-23  Bruno Haible  <bruno@clisp.org>
91617         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
91619 2006-10-24  Bruno Haible  <bruno@clisp.org>
91621         * lib/gl_list.h: Use C comment style, not C++ comment style.
91623 2006-10-23  Eric Blake  <ebb9@byu.net>
91625         * lib/getaddrinfo.c (includes): Add missing include.
91627 2006-10-23  Bruno Haible  <bruno@clisp.org>
91628             Paul Eggert  <eggert@cs.ucla.edu>
91630         Ability to rename obstack_free.
91631         * lib/obstack.h (__obstack_free): New macro. Declare instead of
91632         obstack_free.
91633         (obstack_free): Invoke the __obstack_free macro.
91634         * lib/obstack.c (obstack_free): Use __obstack_free macro.
91636 2006-10-23  Bruno Haible  <bruno@clisp.org>
91637             Paul Eggert  <eggert@cs.ucla.edu>
91639         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
91640         __argc, __argv from the declaration. (They are defined as macros on
91641         mingw.)
91643 2006-10-22  Bruno Haible  <bruno@clisp.org>
91645         * doc/gnulib-intro.texi: New file.
91646         * doc/gnulib.texi: Include it.
91648 2006-10-21  Bruno Haible  <bruno@clisp.org>
91650         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
91651         "Introduction", "Miscellanous Notes", "Particular Modules".
91653 2006-10-21  Bruno Haible  <bruno@clisp.org>
91655         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
91656         Change mostlyclean-local rule to avoid sh syntax error from bash
91657         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
91659 2006-10-23  Jim Meyering  <jim@meyering.net>
91661         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
91662         in place of snprintf.
91664         * modules/inttostr (Files): Add lib/uinttostr.c.
91665         * lib/uinttostr.c (inttostr): New file/function.
91666         * lib/inttostr.h (uinttostr): Declare.
91667         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
91668         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
91669         Add uinttostr.
91670         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
91672 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
91674         * lib/canonicalize.c (ELOOP): Define if not already defined.
91675         Problem reported by Bruno Haible in
91676         <http://lists.gnu.org/r/bug-gnulib/2006-10/msg00282.html>.
91678 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
91680         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
91681         Problem reported by Perry Smith and Ville Laurikari.
91683         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
91684         uses.
91686 2006-10-19  Bruno Haible  <bruno@clisp.org>
91688         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
91689         for mingw.
91691 2006-10-19  Bruno Haible  <bruno@clisp.org>
91693         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
91694         Needed for mingw.
91696 2006-10-19  Bruno Haible  <bruno@clisp.org>
91698         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
91700 2006-10-19  Bruno Haible  <bruno@clisp.org>
91702         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
91703         it.
91705 2006-10-19  Bruno Haible  <bruno@clisp.org>
91707         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
91708         invocation.
91710 2006-10-19  Bruno Haible  <bruno@clisp.org>
91712         * gnulib-tool (func_create_testdir): Don't include ftruncate and
91713         mountlist by default.
91715 2006-10-16  Bruno Haible  <bruno@clisp.org>
91717         * lib/c-strstr.c: Include c-strstr.h.
91719 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
91721         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
91722         in a slash.
91724 2006-10-18  Bruno Haible  <bruno@clisp.org>
91726         * lib/lock.h [C++]: Wrap definitions in extern "C".
91728 2006-10-18  Bruno Haible  <bruno@clisp.org>
91730         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
91731         gl_LIBOBJS list.
91733 2006-10-18  Bruno Haible  <bruno@clisp.org>
91735         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
91737 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
91739         * lib/xstrtol.h: Include gettext.h.
91740         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
91741         Problem reported by Eric Blake.
91742         * modules/xstrtol (Depends-on): Add gettext-h.
91744 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
91746         * lib/strftime.c (advance): New macro.
91747         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
91748         incomplete type, so you can't add 0 to it.  Problem and patch
91749         reported by Eelco Dolstra for dietlibc.
91751 2006-10-18  Jim Meyering  <jim@meyering.net>
91753         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
91754         type for a local, and rename it: s/up/user_proc/.
91756 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
91758         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
91759         READ_UTMP_USER_PROCESS.
91760         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
91762 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
91764         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
91765         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
91767 2006-10-17  Eric Blake  <ebb9@byu.net>
91769         * lib/sigprocmask.c (sigprocmask): Fix typo.
91771         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
91773         * modules/clean-temp (Makefile.am): Don't add to make output...
91774         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
91775         config.h.
91777 2006-10-17  Bruno Haible  <bruno@clisp.org>
91779         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
91780         differently if DEFAULT_TEXT_DOMAIN is set.
91782 2006-10-16  Bruno Haible  <bruno@clisp.org>
91784         * lib/clean-temp.c: Include fwriteerror.h.
91786 2006-10-16  Bruno Haible  <bruno@clisp.org>
91788         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
91790 2006-10-16  Bruno Haible  <bruno@clisp.org>
91792         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
91793         * lib/sigprocmask.h: Include <sys/types.h>.
91794         (sigset_t): Use the system's definition if present.
91796 2006-10-17  Eric Blake  <ebb9@byu.net>
91798         * lib/xvasprintf.c (includes): Assume config.h.
91799         * lib/xasprintf.c (includes): Likewise.
91801 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
91803         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
91804         at least as wide as intmax_t.
91806 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
91808         (Imported from Automake.)
91809         * build-aux/gnupload: Update to version 1.1 of directive file.
91811 2006-10-16  Eric Blake  <ebb9@byu.net>
91813         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
91814         match Automake 1.10a.
91816 2006-10-14  Bruno Haible  <bruno@clisp.org>
91818         * modules/sigprocmask: New file.
91819         * lib/sigprocmask.h: New file.
91820         * lib/sigprocmask.c: New file.
91821         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
91822         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
91823         request sigprocmask.o.
91824         (gl_PREREQ_SIGPROCMASK): New macro.
91825         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
91826         (Depends-on): Add sigprocmask.
91827         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
91828         gt_SIGNALBLOCKING. Test for 'raise' only once.
91829         * lib/fatal-signal.c: Include sigprocmask.h.
91830         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
91831         unblock_fatal_signals): Define always.
91832         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
91833         sigprocmask.
91835 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
91837         Sync from Automake.
91838         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
91839         which incorrectly sets the mode of an existing destination
91840         directory.  In some cases the unpatched install-sh could do the
91841         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
91842         system.  We hope this is rare in practice, but it's clearly worth
91843         fixing.  Problem reported by Alex Unleashed in
91844         <http://lists.gnu.org/r/bug-autoconf/2006-10/msg00012.html>.
91845         Also, don't bother to check for -m bugs unless we're using -m;
91846         suggested by Stepan Kasal.
91848 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
91850         Sync from Automake.
91851         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
91852         `-c' flag, so they appear at the same position as in %FASTDEP%
91853         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
91854         which ignores unknown options only after the first non-option.
91855         Bug report against M4 by Nelson H. F. Beebe.
91857 2006-10-13  Jim Meyering  <jim@meyering.net>
91859         Fix a bug in yesterday's change.
91860         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
91861         p->fts_statp->st_dev would be used uninitialized.
91862         Ensures that we always call fts_stat on the very first entry.
91863         Miklos Szeredi reported that find -xdev stopped working.
91865 2006-10-12  Bruno Haible  <bruno@clisp.org>
91867         * gnulib-tool (func_get_automake_snippet): Append an automatically
91868         computed EXTRA_DIST augmentation.
91869         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
91870         * modules/alloca-opt (Makefile.am): Likewise.
91871         * modules/allocsa (Makefile.am): Likewise.
91872         * modules/arcfour (Makefile.am): Likewise.
91873         * modules/arctwo (Makefile.am): Likewise.
91874         * modules/argmatch (Makefile.am): Likewise.
91875         * modules/argz (Makefile.am): Likewise.
91876         * modules/atexit (Makefile.am): Likewise.
91877         * modules/backupfile (Makefile.am): Likewise.
91878         * modules/byteswap (Makefile.am): Likewise.
91879         * modules/c-strtod (Makefile.am): Likewise.
91880         * modules/c-strtold (Makefile.am): Likewise.
91881         * modules/calloc (Makefile.am): Likewise.
91882         * modules/canon-host (Makefile.am): Likewise.
91883         * modules/canonicalize (Makefile.am): Likewise.
91884         * modules/chdir-long (Makefile.am): Likewise.
91885         * modules/chdir-safer (Makefile.am): Likewise.
91886         * modules/check-version (Makefile.am): Likewise.
91887         * modules/chown (Makefile.am): Likewise.
91888         * modules/cloexec (Makefile.am): Likewise.
91889         * modules/close-stream (Makefile.am): Likewise.
91890         * modules/closeout (Makefile.am): Likewise.
91891         * modules/crc (Makefile.am): Likewise.
91892         * modules/csharpexec (Makefile.am): Likewise.
91893         * modules/cycle-check (Makefile.am): Likewise.
91894         * modules/des (Makefile.am): Likewise.
91895         * modules/dev-ino (Makefile.am): Likewise.
91896         * modules/dirfd (Makefile.am): Likewise.
91897         * modules/dirname (Makefile.am): Likewise.
91898         * modules/dup2 (Makefile.am): Likewise.
91899         * modules/eealloc (Makefile.am): Likewise.
91900         * modules/error (Makefile.am): Likewise.
91901         * modules/euidaccess (Makefile.am): Likewise.
91902         * modules/exclude (Makefile.am): Likewise.
91903         * modules/exitfail (Makefile.am): Likewise.
91904         * modules/fcntl-safer (Makefile.am): Likewise.
91905         * modules/fcntl (Makefile.am): Likewise.
91906         * modules/file-type (Makefile.am): Likewise.
91907         * modules/fileblocks (Makefile.am): Likewise.
91908         * modules/filemode (Makefile.am): Likewise.
91909         * modules/filenamecat (Makefile.am): Likewise.
91910         * modules/fnmatch (Makefile.am): Likewise.
91911         * modules/fopen-safer (Makefile.am): Likewise.
91912         * modules/fpending (Makefile.am): Likewise.
91913         * modules/fprintftime (Makefile.am): Likewise.
91914         * modules/free (Makefile.am): Likewise.
91915         * modules/fsusage (Makefile.am): Likewise.
91916         * modules/ftruncate (Makefile.am): Likewise.
91917         * modules/fts (Makefile.am): Likewise.
91918         * modules/gc-arcfour (Makefile.am): Likewise.
91919         * modules/gc-des (Makefile.am): Likewise.
91920         * modules/gc-hmac-md5 (Makefile.am): Likewise.
91921         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
91922         * modules/gc-md4 (Makefile.am): Likewise.
91923         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
91924         * modules/gc-sha1 (Makefile.am): Likewise.
91925         * modules/gc (Makefile.am): Likewise.
91926         * modules/getaddrinfo (Makefile.am): Likewise.
91927         * modules/getcwd (Makefile.am): Likewise.
91928         * modules/getdelim (Makefile.am): Likewise.
91929         * modules/getdomainname (Makefile.am): Likewise.
91930         * modules/getgroups (Makefile.am): Likewise.
91931         * modules/gethostname (Makefile.am): Likewise.
91932         * modules/gethrxtime (Makefile.am): Likewise.
91933         * modules/getline (Makefile.am): Likewise.
91934         * modules/getloadavg (Makefile.am): Likewise.
91935         * modules/getlogin_r (Makefile.am): Likewise.
91936         * modules/getndelim2 (Makefile.am): Likewise.
91937         * modules/getopt (Makefile.am): Likewise.
91938         * modules/getpagesize (Makefile.am): Likewise.
91939         * modules/getpass-gnu (Makefile.am): Likewise.
91940         * modules/getpass (Makefile.am): Likewise.
91941         * modules/getsubopt (Makefile.am): Likewise.
91942         * modules/gettime (Makefile.am): Likewise.
91943         * modules/gettimeofday (Makefile.am): Likewise.
91944         * modules/getugroups (Makefile.am): Likewise.
91945         * modules/getusershell (Makefile.am): Likewise.
91946         * modules/glob (Makefile.am): Likewise.
91947         * modules/group-member (Makefile.am): Likewise.
91948         * modules/hard-locale (Makefile.am): Likewise.
91949         * modules/hash (Makefile.am): Likewise.
91950         * modules/hmac-md5 (Makefile.am): Likewise.
91951         * modules/hmac-sha1 (Makefile.am): Likewise.
91952         * modules/human (Makefile.am): Likewise.
91953         * modules/idcache (Makefile.am): Likewise.
91954         * modules/imaxabs (Makefile.am): Likewise.
91955         * modules/imaxdiv (Makefile.am): Likewise.
91956         * modules/inet_ntop (Makefile.am): Likewise.
91957         * modules/inet_pton (Makefile.am): Likewise.
91958         * modules/intprops (Makefile.am): Likewise.
91959         * modules/inttostr (Makefile.am): Likewise.
91960         * modules/inttypes (Makefile.am): Likewise.
91961         * modules/isapipe (Makefile.am): Likewise.
91962         * modules/javaversion (Makefile.am): Likewise.
91963         * modules/lchmod (Makefile.am): Likewise.
91964         * modules/lchown (Makefile.am): Likewise.
91965         * modules/localcharset (Makefile.am): Likewise.
91966         * modules/long-options (Makefile.am): Likewise.
91967         * modules/lstat (Makefile.am): Likewise.
91968         * modules/malloc (Makefile.am): Likewise.
91969         * modules/mathl (Makefile.am): Likewise.
91970         * modules/mbchar (Makefile.am): Likewise.
91971         * modules/md2 (Makefile.am): Likewise.
91972         * modules/md4 (Makefile.am): Likewise.
91973         * modules/md5 (Makefile.am): Likewise.
91974         * modules/memcasecmp (Makefile.am): Likewise.
91975         * modules/memchr (Makefile.am): Likewise.
91976         * modules/memcmp (Makefile.am): Likewise.
91977         * modules/memcoll (Makefile.am): Likewise.
91978         * modules/memcpy (Makefile.am): Likewise.
91979         * modules/memmem (Makefile.am): Likewise.
91980         * modules/memmove (Makefile.am): Likewise.
91981         * modules/mempcpy (Makefile.am): Likewise.
91982         * modules/memrchr (Makefile.am): Likewise.
91983         * modules/memset (Makefile.am): Likewise.
91984         * modules/memxor (Makefile.am): Likewise.
91985         * modules/mkancesdirs (Makefile.am): Likewise.
91986         * modules/mkdir-p (Makefile.am): Likewise.
91987         * modules/mkdir (Makefile.am): Likewise.
91988         * modules/mkdtemp (Makefile.am): Likewise.
91989         * modules/mkstemp (Makefile.am): Likewise.
91990         * modules/mktime (Makefile.am): Likewise.
91991         * modules/modechange (Makefile.am): Likewise.
91992         * modules/mountlist (Makefile.am): Likewise.
91993         * modules/nanosleep (Makefile.am): Likewise.
91994         * modules/obstack (Makefile.am): Likewise.
91995         * modules/openat (Makefile.am): Likewise.
91996         * modules/pagealign_alloc (Makefile.am): Likewise.
91997         * modules/pathmax (Makefile.am): Likewise.
91998         * modules/physmem (Makefile.am): Likewise.
91999         * modules/poll (Makefile.am): Likewise.
92000         * modules/posixtm (Makefile.am): Likewise.
92001         * modules/posixver (Makefile.am): Likewise.
92002         * modules/putenv (Makefile.am): Likewise.
92003         * modules/quote (Makefile.am): Likewise.
92004         * modules/quotearg (Makefile.am): Likewise.
92005         * modules/raise (Makefile.am): Likewise.
92006         * modules/read-file (Makefile.am): Likewise.
92007         * modules/readline (Makefile.am): Likewise.
92008         * modules/readlink (Makefile.am): Likewise.
92009         * modules/readtokens (Makefile.am): Likewise.
92010         * modules/readutmp (Makefile.am): Likewise.
92011         * modules/realloc (Makefile.am): Likewise.
92012         * modules/regex (Makefile.am): Likewise.
92013         * modules/rename-dest-slash (Makefile.am): Likewise.
92014         * modules/rename (Makefile.am): Likewise.
92015         * modules/rijndael (Makefile.am): Likewise.
92016         * modules/rmdir (Makefile.am): Likewise.
92017         * modules/rpmatch (Makefile.am): Likewise.
92018         * modules/safe-read (Makefile.am): Likewise.
92019         * modules/safe-write (Makefile.am): Likewise.
92020         * modules/same-inode (Makefile.am): Likewise.
92021         * modules/same (Makefile.am): Likewise.
92022         * modules/save-cwd (Makefile.am): Likewise.
92023         * modules/savedir (Makefile.am): Likewise.
92024         * modules/setenv (Makefile.am): Likewise.
92025         * modules/settime (Makefile.am): Likewise.
92026         * modules/sha1 (Makefile.am): Likewise.
92027         * modules/sig2str (Makefile.am): Likewise.
92028         * modules/snprintf (Makefile.am): Likewise.
92029         * modules/stat-macros (Makefile.am): Likewise.
92030         * modules/stat-time (Makefile.am): Likewise.
92031         * modules/stdbool (Makefile.am): Likewise.
92032         * modules/stdint (Makefile.am): Likewise.
92033         * modules/stdlib-safer (Makefile.am): Likewise.
92034         * modules/stpcpy (Makefile.am): Likewise.
92035         * modules/stpncpy (Makefile.am): Likewise.
92036         * modules/strcase (Makefile.am): Likewise.
92037         * modules/strcasestr (Makefile.am): Likewise.
92038         * modules/strchrnul (Makefile.am): Likewise.
92039         * modules/strcspn (Makefile.am): Likewise.
92040         * modules/strdup (Makefile.am): Likewise.
92041         * modules/strerror (Makefile.am): Likewise.
92042         * modules/strftime (Makefile.am): Likewise.
92043         * modules/strndup (Makefile.am): Likewise.
92044         * modules/strnlen (Makefile.am): Likewise.
92045         * modules/strpbrk (Makefile.am): Likewise.
92046         * modules/strsep (Makefile.am): Likewise.
92047         * modules/strstr (Makefile.am): Likewise.
92048         * modules/strtod (Makefile.am): Likewise.
92049         * modules/strtoimax (Makefile.am): Likewise.
92050         * modules/strtok_r (Makefile.am): Likewise.
92051         * modules/strtol (Makefile.am): Likewise.
92052         * modules/strtoll (Makefile.am): Likewise.
92053         * modules/strtoul (Makefile.am): Likewise.
92054         * modules/strtoull (Makefile.am): Likewise.
92055         * modules/strtoumax (Makefile.am): Likewise.
92056         * modules/strverscmp (Makefile.am): Likewise.
92057         * modules/sys_socket (Makefile.am): Likewise.
92058         * modules/sys_stat (Makefile.am): Likewise.
92059         * modules/sysexits (Makefile.am): Likewise.
92060         * modules/time_r (Makefile.am): Likewise.
92061         * modules/timegm (Makefile.am): Likewise.
92062         * modules/timespec (Makefile.am): Likewise.
92063         * modules/tmpfile-safer (Makefile.am): Likewise.
92064         * modules/trim (Makefile.am): Likewise.
92065         * modules/unistd-safer (Makefile.am): Likewise.
92066         * modules/unlinkdir (Makefile.am): Likewise.
92067         * modules/unlocked-io (Makefile.am): Likewise.
92068         * modules/userspec (Makefile.am): Likewise.
92069         * modules/utime (Makefile.am): Likewise.
92070         * modules/utimecmp (Makefile.am): Likewise.
92071         * modules/utimens (Makefile.am): Likewise.
92072         * modules/vasnprintf (Makefile.am): Likewise.
92073         * modules/vasprintf (Makefile.am): Likewise.
92074         * modules/vsnprintf (Makefile.am): Likewise.
92075         * modules/xalloc (Makefile.am): Likewise.
92076         * modules/xgetcwd (Makefile.am): Likewise.
92077         * modules/xnanosleep (Makefile.am): Likewise.
92078         * modules/xreadlink (Makefile.am): Likewise.
92079         * modules/xstrtod (Makefile.am): Likewise.
92080         * modules/xstrtol (Makefile.am): Likewise.
92081         * modules/xstrtold (Makefile.am): Likewise.
92082         * modules/yesno (Makefile.am): Likewise.
92083         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
92085 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
92087         * modules/error (Makefile.am): Distribute files through
92088         EXTRA_DIST, not lib_SOURCES.
92090 2006-10-12  Eric Blake  <ebb9@byu.net>
92092         * modules/error (Makefile.am): Distribute files in /lib.
92093         * modules/obstack (Makefile.am): Likewise.
92095 2006-10-12  Bruno Haible  <bruno@clisp.org>
92097         * modules/acl (Makefile.am): Distribute all files in lib/ through
92098         EXTRA_DIST.
92099         * modules/arcfour (Makefile.am): Likewise.
92100         * modules/arctwo (Makefile.am): Likewise.
92101         * modules/argmatch (Makefile.am): Likewise.
92102         * modules/argz (Makefile.am): Likewise.
92103         * modules/atexit (Makefile.am): Likewise.
92104         * modules/backupfile (Makefile.am): Likewise.
92105         * modules/c-strtod (Makefile.am): Likewise.
92106         * modules/c-strtold (Makefile.am): Likewise.
92107         * modules/calloc (Makefile.am): Likewise.
92108         * modules/canon-host (Makefile.am): Likewise.
92109         * modules/canonicalize (Makefile.am): Likewise.
92110         * modules/chdir-long (Makefile.am): Likewise.
92111         * modules/chdir-safer (Makefile.am): Likewise.
92112         * modules/check-version (Makefile.am): Likewise.
92113         * modules/chown (Makefile.am): Likewise.
92114         * modules/cloexec (Makefile.am): Likewise.
92115         * modules/close-stream (Makefile.am): Likewise.
92116         * modules/closeout (Makefile.am): Likewise.
92117         * modules/crc (Makefile.am): Likewise.
92118         * modules/cycle-check (Makefile.am): Likewise.
92119         * modules/des (Makefile.am): Likewise.
92120         * modules/dirfd (Makefile.am): Likewise.
92121         * modules/dirname (Makefile.am): Likewise.
92122         * modules/dup2 (Makefile.am): Likewise.
92123         * modules/euidaccess (Makefile.am): Likewise.
92124         * modules/exclude (Makefile.am): Likewise.
92125         * modules/exitfail (Makefile.am): Likewise.
92126         * modules/fcntl-safer (Makefile.am): Likewise.
92127         * modules/file-type (Makefile.am): Likewise.
92128         * modules/fileblocks (Makefile.am): Likewise.
92129         * modules/filemode (Makefile.am): Likewise.
92130         * modules/filenamecat (Makefile.am): Likewise.
92131         * modules/fnmatch (Makefile.am): Likewise.
92132         * modules/fopen-safer (Makefile.am): Likewise.
92133         * modules/fpending (Makefile.am): Likewise.
92134         * modules/fprintftime (Makefile.am): Likewise.
92135         * modules/free (Makefile.am): Likewise.
92136         * modules/fsusage (Makefile.am): Likewise.
92137         * modules/ftruncate (Makefile.am): Likewise.
92138         * modules/fts (Makefile.am): Likewise.
92139         * modules/gc (Makefile.am): Likewise.
92140         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
92141         * modules/getaddrinfo (Makefile.am): Likewise.
92142         * modules/getcwd (Makefile.am): Likewise.
92143         * modules/getdelim (Makefile.am): Likewise.
92144         * modules/getdomainname (Makefile.am): Likewise.
92145         * modules/getgroups (Makefile.am): Likewise.
92146         * modules/gethostname (Makefile.am): Likewise.
92147         * modules/gethrxtime (Makefile.am): Likewise.
92148         * modules/getline (Makefile.am): Likewise.
92149         * modules/getloadavg (Makefile.am): Likewise.
92150         * modules/getlogin_r (Makefile.am): Likewise.
92151         * modules/getopt (Makefile.am): Likewise.
92152         * modules/getpass (Makefile.am): Likewise.
92153         * modules/getpass-gnu (Makefile.am): Likewise.
92154         * modules/getsubopt (Makefile.am): Likewise.
92155         * modules/gettime (Makefile.am): Likewise.
92156         * modules/gettimeofday (Makefile.am): Likewise.
92157         * modules/getugroups (Makefile.am): Likewise.
92158         * modules/getusershell (Makefile.am): Likewise.
92159         * modules/glob (Makefile.am): Likewise.
92160         * modules/group-member (Makefile.am): Likewise.
92161         * modules/hard-locale (Makefile.am): Likewise.
92162         * modules/hash (Makefile.am): Likewise.
92163         * modules/hmac-md5 (Makefile.am): Likewise.
92164         * modules/hmac-sha1 (Makefile.am): Likewise.
92165         * modules/human (Makefile.am): Likewise.
92166         * modules/idcache (Makefile.am): Likewise.
92167         * modules/imaxabs (Makefile.am): Likewise.
92168         * modules/imaxdiv (Makefile.am): Likewise.
92169         * modules/inet_ntop (Makefile.am): Likewise.
92170         * modules/inet_pton (Makefile.am): Likewise.
92171         * modules/inttostr (Makefile.am): Likewise.
92172         * modules/isapipe (Makefile.am): Likewise.
92173         * modules/lchown (Makefile.am): Likewise.
92174         * modules/long-options (Makefile.am): Likewise.
92175         * modules/lstat (Makefile.am): Likewise.
92176         * modules/malloc (Makefile.am): Likewise.
92177         * modules/mathl (Makefile.am): Likewise.
92178         * modules/mbchar (Makefile.am): Likewise.
92179         * modules/md2 (Makefile.am): Likewise.
92180         * modules/md4 (Makefile.am): Likewise.
92181         * modules/md5 (Makefile.am): Likewise.
92182         * modules/memcasecmp (Makefile.am): Likewise.
92183         * modules/memchr (Makefile.am): Likewise.
92184         * modules/memcmp (Makefile.am): Likewise.
92185         * modules/memcoll (Makefile.am): Likewise.
92186         * modules/memcpy (Makefile.am): Likewise.
92187         * modules/memmem (Makefile.am): Likewise.
92188         * modules/memmove (Makefile.am): Likewise.
92189         * modules/mempcpy (Makefile.am): Likewise.
92190         * modules/memrchr (Makefile.am): Likewise.
92191         * modules/memset (Makefile.am): Likewise.
92192         * modules/memxor (Makefile.am): Likewise.
92193         * modules/mkancesdirs (Makefile.am): Likewise.
92194         * modules/mkdir (Makefile.am): Likewise.
92195         * modules/mkdir-p (Makefile.am): Likewise.
92196         * modules/mkdtemp (Makefile.am): Likewise.
92197         * modules/mkstemp (Makefile.am): Likewise.
92198         * modules/mktime (Makefile.am): Likewise.
92199         * modules/modechange (Makefile.am): Likewise.
92200         * modules/mountlist (Makefile.am): Likewise.
92201         * modules/nanosleep (Makefile.am): Likewise.
92202         * modules/openat (Makefile.am): Likewise.
92203         * modules/pagealign_alloc (Makefile.am): Likewise.
92204         * modules/physmem (Makefile.am): Likewise.
92205         * modules/poll (Makefile.am): Likewise.
92206         * modules/posixtm (Makefile.am): Likewise.
92207         * modules/posixver (Makefile.am): Likewise.
92208         * modules/putenv (Makefile.am): Likewise.
92209         * modules/quote (Makefile.am): Likewise.
92210         * modules/quotearg (Makefile.am): Likewise.
92211         * modules/raise (Makefile.am): Likewise.
92212         * modules/read-file (Makefile.am): Likewise.
92213         * modules/readline (Makefile.am): Likewise.
92214         * modules/readlink (Makefile.am): Likewise.
92215         * modules/readtokens (Makefile.am): Likewise.
92216         * modules/readutmp (Makefile.am): Likewise.
92217         * modules/realloc (Makefile.am): Likewise.
92218         * modules/regex (Makefile.am): Likewise.
92219         * modules/rename (Makefile.am): Likewise.
92220         * modules/rename-dest-slash (Makefile.am): Likewise.
92221         * modules/rijndael (Makefile.am): Likewise.
92222         * modules/rmdir (Makefile.am): Likewise.
92223         * modules/rpmatch (Makefile.am): Likewise.
92224         * modules/safe-read (Makefile.am): Likewise.
92225         * modules/safe-write (Makefile.am): Likewise.
92226         * modules/same (Makefile.am): Likewise.
92227         * modules/save-cwd (Makefile.am): Likewise.
92228         * modules/savedir (Makefile.am): Likewise.
92229         * modules/setenv (Makefile.am): Likewise.
92230         * modules/settime (Makefile.am): Likewise.
92231         * modules/sha1 (Makefile.am): Likewise.
92232         * modules/sig2str (Makefile.am): Likewise.
92233         * modules/snprintf (Makefile.am): Likewise.
92234         * modules/stdlib-safer (Makefile.am): Likewise.
92235         * modules/stpcpy (Makefile.am): Likewise.
92236         * modules/stpncpy (Makefile.am): Likewise.
92237         * modules/strcase (Makefile.am): Likewise.
92238         * modules/strcasestr (Makefile.am): Likewise.
92239         * modules/strchrnul (Makefile.am): Likewise.
92240         * modules/strcspn (Makefile.am): Likewise.
92241         * modules/strdup (Makefile.am): Likewise.
92242         * modules/strerror (Makefile.am): Likewise.
92243         * modules/strftime (Makefile.am): Likewise.
92244         * modules/strndup (Makefile.am): Likewise.
92245         * modules/strnlen (Makefile.am): Likewise.
92246         * modules/strpbrk (Makefile.am): Likewise.
92247         * modules/strsep (Makefile.am): Likewise.
92248         * modules/strstr (Makefile.am): Likewise.
92249         * modules/strtod (Makefile.am): Likewise.
92250         * modules/strtoimax (Makefile.am): Likewise.
92251         * modules/strtok_r (Makefile.am): Likewise.
92252         * modules/strtol (Makefile.am): Likewise.
92253         * modules/strtoll (Makefile.am): Likewise.
92254         * modules/strtoul (Makefile.am): Likewise.
92255         * modules/strtoull (Makefile.am): Likewise.
92256         * modules/strtoumax (Makefile.am): Likewise.
92257         * modules/strverscmp (Makefile.am): Likewise.
92258         * modules/time_r (Makefile.am): Likewise.
92259         * modules/timegm (Makefile.am): Likewise.
92260         * modules/tmpfile-safer (Makefile.am): Likewise.
92261         * modules/unistd-safer (Makefile.am): Likewise.
92262         * modules/unlinkdir (Makefile.am): Likewise.
92263         * modules/userspec (Makefile.am): Likewise.
92264         * modules/utime (Makefile.am): Likewise.
92265         * modules/utimecmp (Makefile.am): Likewise.
92266         * modules/utimens (Makefile.am): Likewise.
92267         * modules/vasnprintf (Makefile.am): Likewise.
92268         * modules/vasprintf (Makefile.am): Likewise.
92269         * modules/vsnprintf (Makefile.am): Likewise.
92270         * modules/xalloc (Makefile.am): Likewise.
92271         * modules/xgetcwd (Makefile.am): Likewise.
92272         * modules/xnanosleep (Makefile.am): Likewise.
92273         * modules/xreadlink (Makefile.am): Likewise.
92274         * modules/xstrtod (Makefile.am): Likewise.
92275         * modules/xstrtol (Makefile.am): Likewise.
92276         * modules/xstrtold (Makefile.am): Likewise.
92277         * modules/yesno (Makefile.am): Likewise.
92279 2006-10-12  Jim Meyering  <jim@meyering.net>
92281         * m4/getloadavg.m4: Revert the change below.
92283         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
92284         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
92285         fail with a symlink, which is what coreutils' ./bootstrap now
92286         creates by default.
92288 2006-10-12  Bruno Haible  <bruno@clisp.org>
92290         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
92291         mingw.
92292         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
92293         MSVC and mingw explicitly.
92295 2006-10-11  Simon Josefsson  <jas@extundo.com>
92296             Bruno Haible  <bruno@clisp.org>
92298         Add support for multiple gnulib-tool invocations in the scope of a
92299         single configure.ac file.
92300         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
92301         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
92302         with the same contents as the _LIBADD variable.
92303         (func_emit_initmacro_start, func_emit_initmacro_end,
92304         func_emit_initmacro_done): New functions.
92305         (func_import, func_create_testdir): Invoke them. Allow the identifiers
92306         gl_LIBOBJS and gl_LTLIBOBJS.
92308 2006-10-11  Bruno Haible  <bruno@clisp.org>
92310         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
92311         (func_create_testdir): Don't create po/Makefile.am, don't invoke
92312         autoreconf. Instead, invoke autopoint explicitly but move back the
92313         *.m4 files from gnulib.
92315 2006-10-11  Bruno Haible  <bruno@clisp.org>
92317         * gnulib-tool (func_usage): Make module names after --create-testdir
92318         optional.
92319         (func_create_testdir): If no module was specified, use nearly all
92320         modules.
92322 2006-10-12  Jim Meyering  <jim@meyering.net>
92324         Big performance improvement for fts-based tools that use FTS_NOSTAT.
92325         Avoid spurious inode-mismatch problems on non-POSIX file systems.
92326         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
92327         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
92328         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
92329         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
92330         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
92331         (fts_set_stat_required): New function.
92332         (fts_open): Defer the calls to fts_stat, if possible or requested.
92333         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
92334         into fts_stat itself.
92335         (fts_read): Perform any required (deferred) fts_stat call.
92336         (fts_build): Likewise, for the directory we're about to open and read.
92337         In the readdir loop, carefully decide whether each entry will require
92338         an eventual call to fts_stat, using dirent.d_type info if available.
92339         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
92340         a command line argument into this function.  Update all callers.
92341         Map a return value of FTS_DOT to FTS_D for a command line argument.
92342         * modules/fts (Depends-on): Add d-type.  Alphabetize.
92343         Thanks to Miklos Szeredi for his tenacity and for the initial
92344         bug report about "find" failing on a FUSE-based file system.
92346         * lib/fts.c (fts_open): Use consistent indentation.
92348 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
92350         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
92351         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
92352         reported by Jim Meyering.  All uses of cache variables renamed
92353         to match Autoconf's.
92354         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
92355         the other one.
92357         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
92358         Fix misspelling in diagnostic.
92360 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
92362         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
92363         defined.  Problem reported by Matthew Woehlke.
92365         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
92366         Add support for Tandem NonStop R series.
92367         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
92368         Use new macro.
92370         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
92371         (has_trailing_slash): Omit size arg; all callers changed.
92372         Omit 'inline', since it doesn't help performance and we'd
92373         need to configure it.
92374         Don't count //, ///, etc. as having a trailing slash.
92375         As a side effect, this removes a C99ism reported by Matthew Woehlke.
92376         (rpl_rename_dest_slash): On failure, use rename's errno rather
92377         than (in some cases) an incorrect or junk errno.
92378         Simplify code by removing need to compute length; this does
92379         cause it to make two passes instead of one over the file name,
92380         but it's worth it.
92382         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
92383         change, since Autoconf's version may no longer be appropriate now
92384         that we are using CVS Autoconf's version.  Add support for Tandem.
92386 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
92387             Bruno Haible  <bruno@clisp.org>
92389         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
92390         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
92391         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
92392         gl_AC_TYPE_LONG_LONG.
92394         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
92395         instead of HAVE_LONG_LONG.
92396         * lib/printf-args.c (printf_fetchargs): Likewise.
92397         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
92398         * lib/vasnprintf.c (VASNPRINTF): Likewise.
92399         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
92400         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
92401         gl_AC_TYPE_LONG_LONG.
92403 2006-10-11  Bruno Haible  <bruno@clisp.org>
92405         * m4/longlong.m4: Add comments.
92406         * m4/ulonglong.m4: Likewise.
92408 2006-10-10  Bruno Haible  <bruno@clisp.org>
92410         Make it possible to #define stpcpy, strdup to aliases.
92411         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
92412         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
92414 2006-10-10  Bruno Haible  <bruno@clisp.org>
92416         Make it possible to #define gcd to an alias.
92417         * lib/gcd.c: Include config.h.
92419 2006-10-10  Bruno Haible  <bruno@clisp.org>
92421         Make it possible to #define c_isascii to an alias.
92422         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
92423         defined. Undefine the macros before defining them, to avoid gcc
92424         warnings.
92425         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
92426         define NO_C_CTYPE_MACROS early.
92428 2006-10-10  Bruno Haible  <bruno@clisp.org>
92430         Make it possible to #define set_program_name to an alias.
92431         * lib/progname.c: Don't undefine set_program_name; instead, undefine
92432         ENABLE_RELOCATABLE early.
92434 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
92436         Port to Tandem NSK OSS, which has 64-bit signed int but at most
92437         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
92438         http://lists.gnu.org/r/bug-coreutils/2006-10/msg00062.html
92439         More generally, don't assume that 64-bit signed int is available
92440         if unsigned int is, and vice versa.
92441         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
92442         unsigned symbols, not on their signed counterparts.
92443         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
92444         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
92445         (UINT64_C, UINTMAX_C):
92446         Likewise.
92447         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
92448         unsigned counterparts.
92449         (Have_long_long, Unsigned): New macros.
92450         (Int): Renamed from INT.
92451         (strtoimax): Use the new macros.
92452         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
92453         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
92454         * modules/inttypes (inttypes.h): Substitute
92455         HAVE_UNSIGNED_LONG_LONG_INT.
92456         * modules/stdint (stdint.h): Likewise.
92457         (Files): Add m4/ulonglong.m4.
92459 2006-10-10  Bruno Haible  <bruno@clisp.org>
92461         Fix a gcc -Wshadow warning.
92462         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
92463         to 'bucket'.
92464         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
92465         gl_linked_indexof_from_to): Likewise.
92466         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
92467         Likewise.
92468         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
92469         Likewise.
92470         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
92471         Reported by Eric Blake.
92473 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
92475         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
92476         for NetBSD.  Problem reported by Bruno Haible.
92478 2006-10-09  Jim Meyering  <jim@meyering.net>
92480         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
92481         Patch from Bruno Haible.
92483 2006-10-09  Jim Meyering  <jim@meyering.net>
92485         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
92486         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
92487         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
92489 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
92491         Don't include <config.h> twice; this doesn't work in some cases,
92492         e.g., when config.h has "#define intmax_t long long int" and
92493         we include <config.h>, <inttypes.h>, <config.h> in that order.
92494         Problem reported by Matthew Woehlke in:
92495         http://lists.gnu.org/r/bug-coreutils/2006-10/msg00073.html
92496         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
92497         * lib/fts-cycle.c: Don't include config.h.
92498         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
92499         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
92500         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
92501         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
92502         inttypes.h.
92503         * lib/xstrtoumax.c: Likewise.
92504         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
92505         __strtol and the like, so that this module is more like its siblings.
92506         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
92507         Remove; no longer needed now that we assume gnulib inttypes.h.
92509 2006-10-08  Bruno Haible  <bruno@clisp.org>
92511         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
92512         option.
92514 2006-10-07  Jim Meyering  <jim@meyering.net>
92516         * modules/inttypes (inttypes.h): Revert what seems to have been
92517         an inadvertent part of today's change: use "|", not "/" in the
92518         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
92520 2006-10-07  Bruno Haible  <bruno@clisp.org>
92522         * modules/sublist: New file.
92524 2006-10-07  Bruno Haible  <bruno@clisp.org>
92526         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
92527         * modules/argz (argz.h): Likewise.
92528         * modules/arpa_inet (arpa/inet.h): Likewise.
92529         * modules/byteswap (byteswap.h): Likewise.
92530         * modules/configmake (configmake.h): Likewise.
92531         * modules/fcntl (fcntl.h): Likewise.
92532         * modules/fnmatch (fnmatch.h): Likewise.
92533         * modules/getopt (getopt.h): Likewise.
92534         * modules/glob (glob.h): Likewise.
92535         * modules/inttypes (inttypes.h): Likewise.
92536         * modules/netinet_in (netinet/in.h): Likewise.
92537         * modules/poll (poll.h): Likewise.
92538         * modules/stdbool (stdbool.h): Likewise.
92539         * modules/stdint (stdint.h): Likewise.
92540         * modules/sys_select (sys/select.h): Likewise.
92541         * modules/sys_socket (sys/socket.h): Likewise.
92542         * modules/sys_stat (sys/stat.h): Likewise.
92543         * modules/sysexits (sysexits.h): Likewise.
92544         * modules/unistd (unistd.h): Likewise.
92545         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
92546         Add a "DO NOT EDIT" comment to the generated file.
92547         (func_import): Likewise for gnulib-comp.m4.
92549 2006-10-07  Bruno Haible  <bruno@clisp.org>
92551         * lib/gl_sublist.h: New file.
92552         * lib/gl_sublist.c: New file.
92554 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
92556         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
92557         name (relative to the original working directory) and the file
92558         name component (relative to the temporary working directory).  All
92559         callers changed.
92560         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
92561         * lib/mkdir-p.c (make_dir_parents): Likewise.
92562         * lib/mkdir-p.h (make_dir_parents): Likewise.
92564 2006-10-06  Eric Blake  <ebb9@byu.net>
92566         Define several macros for use by the clean-temp module.
92567         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
92568         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
92569         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
92571         * lib/clean-temp.h (close_stream_temp): New declaration.
92572         * lib/clean-temp.c (includes): Pull in headers according to what
92573         other modules are in use.
92574         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
92576 2006-10-06  Bruno Haible  <bruno@clisp.org>
92578         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
92579         instead of fopen, fwriteerror.
92581 2006-10-06  Bruno Haible  <bruno@clisp.org>
92583         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
92584         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
92585         int.
92586         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
92587         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
92588         Return an error indicator.
92589         Suggested by Eric Blake.
92591 2006-10-06  Bruno Haible  <bruno@clisp.org>
92593         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
92594         Reported by Eric Blake.
92596 2006-10-06  Bruno Haible  <bruno@clisp.org>
92598         * modules/closeout (Description): Mention stderr too.
92600 2006-10-06  Bruno Haible  <bruno@clisp.org>
92601         and Paul Eggert  <eggert@cs.ucla.edu>
92603         * lib/closeout.c (close_stdout): Also close stderr.
92604         * lib/closeout.h: Update comment.
92606 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
92608         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
92609         <http://lists.gnu.org/r/bug-coreutils/2006-10/msg00063.html>.
92610         * lib/dirchownmod.c: Include lchown.h.
92611         * lib/lchown.c: Don't include files that lchown.h now includes.
92612         Don't declare chown, since lchown.h now does that.
92613         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
92614         (lchown): Define to rpl_chown if lchown is declared but
92615         does not exist.  Declare using a prototype if lchown is not
92616         declared.  Add a copyright notice.
92617         * lib/mkstemp.h: Include <unistd.h>.
92618         * lib/openat.c: Include lchown.h.
92620         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
92621         we now test for that separately.
92622         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
92623         rather than O_NOFOLLOW, when testing whether it's possible to
92624         avoid a race condition reliably.
92625         * lib/savewd.c (savewd_chdir): Likewise.
92627         Remove macros that are no longer needed now that stdint.h is
92628         reliable.
92629         * lib/fsusage.c (UINTMAX_MAX): Remove.
92630         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
92631         * lib/utimecmp.c (SIZE_MAX): Remove.
92633         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
92635         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
92636         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
92637         O_NOATIME works.
92639 2006-10-05  Bruno Haible  <bruno@clisp.org>
92641         * lib/gl_list.h (gl_sortedlist_search_from_to,
92642         gl_sortedlist_indexof_from_to): New declarations.
92643         (gl_list_implementation): New fields sortedlist_search_from_to,
92644         sortedlist_indexof_from_to.
92645         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
92646         inline functions.
92647         * lib/gl_list.c (gl_sortedlist_search_from_to,
92648         gl_sortedlist_indexof_from_to): New functions.
92649         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
92650         function.
92651         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
92652         (gl_array_sortedlist_search_from_to): New function.
92653         (gl_array_list_implementation): Update.
92654         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
92655         function.
92656         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
92657         (gl_carray_sortedlist_search_from_to): New function.
92658         (gl_carray_list_implementation): Update.
92659         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
92660         gl_linked_sortedlist_indexof_from_to): New functions.
92661         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
92662         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
92663         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
92664         gl_tree_sortedlist_indexof_from_to): New functions.
92665         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
92666         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
92667         Update.
92668         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
92669         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
92670         Update.
92672 2006-10-05  Bruno Haible  <bruno@clisp.org>
92674         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
92675         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
92676         (struct gl_list_implementation): Add fields search_from_to,
92677         indexof_from_to. Remove fields search, indexof.
92678         (gl_list_search): Use the search_from_to method.
92679         (gl_list_search_from, gl_list_search_from_to): New functions.
92680         (gl_list_indexof): Use the indexof_from_to method.
92681         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
92682         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
92683         (gl_list_search_from, gl_list_search_from_to): New functions.
92684         (gl_list_indexof): Use the indexof_from_to method.
92685         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
92686         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
92687         gl_array_indexof. Add start_index, end_index arguments.
92688         (gl_array_search_from_to): Renamed from gl_array_search. Add
92689         start_index, end_index arguments.
92690         (gl_array_remove, gl_array_list_implementation): Update.
92691         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
92692         gl_carray_indexof. Add start_index, end_index arguments.
92693         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
92694         start_index, end_index arguments.
92695         (gl_carray_remove, gl_carray_list_implementation): Update.
92696         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
92697         gl_linked_search. Add start_index, end_index arguments.
92698         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
92699         start_index, end_index arguments.
92700         (gl_linked_remove): Update.
92701         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
92702         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
92703         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
92704         field to 'size_t'.
92705         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
92706         gl_tree_search. Add start_index, end_index arguments.
92707         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
92708         start_index, end_index arguments.
92709         (gl_tree_remove): Update.
92710         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
92711         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
92712         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
92713         function.
92714         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
92715         gl_tree_search. Add start_index, end_index arguments.
92716         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
92717         start_index, end_index arguments.
92718         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
92719         Update.
92720         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
92722 2006-10-05  Bruno Haible  <bruno@clisp.org>
92724         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
92726         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
92727         fwriteerror_temp): New declarations.
92728         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
92729         (descriptors): New variable.
92730         (cleanup): First, close the descriptors.
92731         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
92732         fclose_temp, fwriteerror_temp): New functions.
92734 2006-10-04  Jim Meyering  <jim@meyering.net>
92736         * lib/fts.c (fts_open): Tiny comment change.
92738 2006-10-04  Bruno Haible  <bruno@clisp.org>
92740         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
92741         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
92742         gl_LOCK_BODY.
92743         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
92744         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
92745         gl_LOCK_EARLY_BODY.
92746         (gl_LOCK): Require gl_LOCK_BODY.
92748 2006-10-04  Bruno Haible  <bruno@clisp.org>
92750         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
92751         (gl_oset_search_atleast): New declaration.
92752         (struct gl_oset_implementation): Add field 'search_atleast'.
92753         (gl_oset_search_atleast): New inline function.
92754         * lib/gl_oset.c (gl_oset_search_atleast): New function.
92755         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
92756         (gl_array_oset_implementation): Update.
92757         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
92758         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
92759         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
92761 2006-10-04  Bruno Haible  <bruno@clisp.org>
92763         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
92765 2006-10-03  Bruno Haible  <bruno@clisp.org>
92767         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
92768         from gl_avltreehash_list_implementation.
92770 2006-10-03  Bruno Haible  <bruno@clisp.org>
92772         * lib/gl_oset.c (gl_oset_add): Fix return type.
92774 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
92776         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
92778 2006-10-02  Eric Blake  <ebb9@byu.net>
92780         * modules/strnlen (Depends-on): Add extensions.
92782 2006-10-02  Eric Blake  <ebb9@byu.net>
92784         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
92785         definition in 2.60+.
92787 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
92789         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
92790         checks.
92792 2006-10-02  Bruno Haible  <bruno@clisp.org>
92794         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
92795         to the AUTOMAKE_OPTIONS.
92796         Reported by Jim Meyering.
92798 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
92800         Work around bug in Solaris 10 /proc file system:
92801         /proc/self/fd/NNN/.. isn't the parent directory of
92802         the directory whose file descriptor is NNN.  This needs to
92803         be worked around at run time, not compile time, since a
92804         program might be built on Solaris 8, where things work, and
92805         run on Solaris 10.
92806         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
92807         to use the following interface instead:
92808         (OPENAT_BUFFER_SIZE): New macro.
92809         (openat_proc_name): New function.
92810         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
92811         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
92812         Likewise.
92813         * lib/openat-proc.c: New file.
92814         * modules/openat (Files): Add lib/openat-proc.c.
92815         (Depends-on): Add same-inode, stdbool.
92816         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
92818 2006-09-29  Bruno Haible  <bruno@clisp.org>
92820         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
92821         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
92822         argument. Set stdout_closed before testing for ferror, not after.
92823         (fwriteerror, fwriteerror_no_ebadf): New functions.
92825 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
92827         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
92829 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
92831         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
92832         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
92834 2006-09-28  Jim Meyering  <jim@meyering.net>
92836         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
92837         Include <unistd.h>.
92839 2006-09-28  Bruno Haible  <bruno@clisp.org>
92841         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
92842         * modules/linkedhash-list (Depends-on): Likewise.
92843         * modules/rbtreehash-list (Depends-on): Likewise.
92845 2006-09-28  Bruno Haible  <bruno@clisp.org>
92847         * lib/strndup.h: Simplify the redefinition of strndup.
92848         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
92849         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
92851 2006-09-28  Bruno Haible  <bruno@clisp.org>
92853         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
92854         * lib/gl_linkedhash_list.c: Likewise.
92855         * lib/gl_rbtreehash_list.c: Likewise.
92857 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
92859         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
92860         getaddrinfo.
92862         * lib/__fpending.h: Don't include <stdio_ext.h> unless
92863         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
92864         it causes <stdio_ext.h> to cause a compile-time error.
92865         Problem reported by Nelson H. F. Beebe.
92866         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
92867         of HAVE_DECL___PENDING.
92869         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
92870         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
92871         declaration.
92873 2006-09-27  Jim Meyering  <jim@meyering.net>
92875         This file could end up with a definition for a function
92876         named __strndup, rather than rpl_strndup on a system with
92877         incomplete weak_alias support.
92878         * lib/strndup.c (strndup): Rename from __strndup.
92879         Remove #defines that used to map __strndup to strndup.
92880         Don't use K&R prototypes.
92881         Remove LIBC-related code, since this file is not sync'd with glibc.
92882         * lib/strndup.h: Revamp, accordingly.
92883         * m4/strndup.m4: Modernize.
92885 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
92887         * modules/savewd (Depends-on): Add 'raise'.
92888         * lib/savewd.c: Include <signal.h>, for 'raise'.
92890 2006-09-26  Jim Meyering  <jim@meyering.net>
92892         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
92893         when we detect Darwin 8.7.0's acl_get_file bug.
92894         Rearrange to perform the new (below) run-test while $LIBS
92895         contains any acl-related library.  Set USE_ACL at the end.
92896         (gl_ACL_GET_FILE): New function.
92898 2006-09-26  Eric Blake  <ebb9@byu.net>
92900         * lib/verror.c: Include <config.h> unconditionally.
92902 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
92904         * modules/clock-time (Maintainer): Add self.
92905         * modules/getlogin_r (Depends-on): Add extensions.
92907 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
92909         * modules/clock-time: New module.
92910         * modules/nanosleep (Depends-on): Add clock-time.
92911         * modules/gethrxtime (Depends-on): Likewise.
92912         * modules/gettime (Depends-on): Likewise.
92913         * modules/settime (Depends-on): Likewise.
92915         * modules/fts-lgpl: Depend on openat.
92916         * modules/mkancesdirs: Depend on savewd.
92917         * modules/mkdir-p: Likewise.
92919 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
92921         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
92923         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
92924         `gl_have_arbitrary_file_name_length_limit' to
92925         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
92926         actually works between configure runs.
92928 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
92929             Bruno Haible  <bruno@clisp.org>
92931         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
92933 2006-09-25  Jim Meyering  <jim@meyering.net>
92935         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
92936         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
92938 2006-09-25  Eric Blake  <ebb9@byu.net>
92940         * gnulib-tool (func_import, func_create_testdir): Fix typos in
92941         exec's in 2006-09-18 patch when shuffling fds.
92943 2006-09-25  Bruno Haible  <bruno@clisp.org>
92945         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
92946         Reported by Jim Meyering.
92948 2006-09-24  Jim Meyering  <jim@meyering.net>
92950         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
92951         compare a pointer against a literal "0".  That caused failures with
92952         at least HP-UX's hpcc.
92954 2006-09-22  Simon Josefsson  <jas@extundo.com>
92956         * modules/gc-sha1:
92957         * modules/gc-md4:
92958         * modules/gc-hmac-sha1:
92959         * modules/gc-hmac-md5:
92960         * modules/gc-des:
92961         * modules/gc-arcfour: Distribute more files.
92963 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
92965         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
92966         (gl_linked_iterator_from_to): Initialize struct completely.
92967         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
92968         (gl_tree_iterator_from_to): Likewise
92969         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
92970         * lib/gl_array_list.c [lint] (gl_array_iterator)
92971         (gl_array_iterator_from_to): Likewise.
92972         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
92973         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
92974         (gl_carray_iterator_from_to): Likewise.
92976         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
92977         * lib/md4.c (md4_process_block): Remove unused variable.
92978         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
92979         parentheses for clarity.
92981 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
92983         * modules/bison-i18n (Depends-on): Add gettext.
92985 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
92987         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
92988         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
92989         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
92990         also add missing comma that caused broken test.
92991         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
92992         stdlib.h, for `abort'.
92993         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
92994         variables.
92995         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
92996         include unistd.h if present, for `rmdir'.
92997         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
92998         variables.
92999         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
93000         in the process include standard headers for prototypes.
93001         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
93002         gets declared on GNU/Linux.
93003         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
93004         unistd.h, for `rmdir'.
93005         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
93007         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
93008         always true.
93009         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
93011         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
93013 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
93015         * gnulib-tool (func_version): Create output all at once.  This
93016         may help avoid triggering unnecessary SIGPIPEs, and at any
93017         rate it doesn't hurt.
93019 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
93020             Bruno Haible  <bruno@clisp.org>
93022         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
93023         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
93024         * m4/signed.m4 (bh_C_SIGNED): Likewise.
93026         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
93027         (gl_FUNC_VASPRINTF): Invoke it.
93029 2006-09-22  Bruno Haible  <bruno@clisp.org>
93031         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
93032         getloadavg.c as first argument.
93034 2006-09-22  Bruno Haible  <bruno@clisp.org>
93036         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
93037         at the beginning of the gl_INIT macro.
93038         * modules/getloadavg (configure.ac): Pass $gl_source_base to
93039         gl_GETLOADAVG.
93041 2006-09-22  Bruno Haible  <bruno@clisp.org>
93043         * gnulib-tool (func_create_megatestdir): Don't include the config-h
93044         module.
93045         Suggested by Ralf Wildenhues.
93047 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
93049         Import this patch from libc:
93051         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
93053         * lib/regex_internal.c (re_string_reconstruct): Handle
93054         offset < pstr->valid_raw_len && pstr->offsets_needed case.
93055         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
93056         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
93057         re_string_context_at.
93059         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
93060         now requires it.
93061         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
93062         gl_REGEX now does it for us.
93063         (gl_REGEX): Add test taken from
93064         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
93066         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
93067         Check that large offsets work.  Modernize Autoconf usages.
93068         Prefer "yes" to mean a good thing rather than a bad.
93069         Don't put "#define mkstemp" in config.h, as this might interfere
93070         with standard system headers that "#define mkstemp mkstemp64".
93072         * modules/mkstemp (Depends-on): Add extensions, so that
93073         mkstemp is visible on some platforms.
93074         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
93075         (Include): Change to "mkstemp.h" from <stdlib.h>.
93076         (Files): Add mkstemp.h.
93078         * lib/mkstemp.h: New file, since some standard headers
93079         #define mkstemp.
93080         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
93081         Include "mkstemp.h".
93082         Make the _LIBC code resemble glibc original more,
93083         e.g., use K&R style.
93084         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
93085         (mkstemp): Remove, since mkstemp.h does this for us.
93086         * lib/stdlib--.h: Include mkstemp.h.
93088         Import this patch from libc:
93090         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
93092         * lib/tempname.c (__gen_tempname): Change attempts_min
93093         into a macro.  Use preprocessor to decide how to initialize
93094         attempts [Coverity CID 67].
93096 2006-09-20  Bruno Haible  <bruno@clisp.org>
93098         * lib/mkdtemp.c: Import from libc.
93099         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
93100                 * sysdeps/posix/tempname.c (__gen_tempname): Change
93101                 attempts_min into a macro.  Use preprocessor to decide how to
93102                 initialize attempts [Coverity CID 67].
93103         2001-11-27  Paul Eggert  <eggert@twinsun.com>
93104                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
93105                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
93107 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
93109         * gnulib-tool (func_exit): New function, to allow to pass the
93110         exit status portably through the trap.  Use everywhere.
93111         (--help, --version): Signal a write error.
93112         (trap): catch SIGPIPE, for write errors.
93113         Exit at the end of the trap, with the correct exit status.
93115 2006-09-19  Karl Berry  <karl@gnu.org>
93117         * doc/gnulib.texi: note about the license texinfo files.
93119 2006-09-19  Eric Blake  <ebb9@byu.net>
93121         * gnulib-tool: Avoid space-tab.
93123 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
93125         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
93126         that prevented coreutils 6.1 from building.  Problem reported
93127         by Petter Reinholdtsen.
93129 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
93131         * gnulib-tool (avoidlist): Fix typo that broke options like
93132         --avoid=lock that are used by coreutils bootstrap.
93134 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
93136         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
93137         more systematically.
93139 2006-09-18  Jim Meyering  <jim@meyering.net>
93141         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
93143 2006-09-18  Bruno Haible  <bruno@clisp.org>
93145         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
93147 2006-09-18  Bruno Haible  <bruno@clisp.org>
93149         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
93150         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
93151         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
93152         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
93153         * m4/gettext.m4: Require autoconf >= 2.52.
93154         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
93155         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
93156         of gl_cv_header_inttypes_h.
93158 2006-09-18  Bruno Haible  <bruno@clisp.org>
93160         * lib/javaversion.c: Include configmake.h.
93162 2006-09-18  Bruno Haible  <bruno@clisp.org>
93164         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
93165         avoid that the while loops be executed in a subshell.
93167 2006-09-18  Bruno Haible  <bruno@clisp.org>
93169         * MODULES.html.sh (func_module): Break long lines.
93170         Suggested by Bruce Korb <bkorb@gnu.org>.
93172 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
93174         Speed up by a factor of 1.12.
93175         * gnulib-tool (nl): New variable.
93176         (func_import): Rewrite include directive extraction to only read each
93177         directive once.
93179 2006-09-17  Bruno Haible  <bruno@clisp.org>
93181         * modules/javaversion (Makefile.am): Remove DEFS setting.
93182         (Depends-on): Add configmake, for PKGDATADIR definition.
93184 2006-09-17  Bruno Haible  <bruno@clisp.org>
93186         * gnulib-tool (func_create_testdir): Rewrite all files at once.
93188 2006-09-17  Bruno Haible  <bruno@clisp.org>
93190         * gnulib-tool (func_append): New function, stolen from libtool.m4.
93191         (func_modules_transitive_closure, func_modules_add_dummy,
93192         func_modules_to_filelist, func_import, func_create_testdir,
93193         func_create_megatestdir, ...): Use it wherever possible.
93194         Suggested by Ralf Wildenhues.
93196 2006-09-16  Karl Berry  <karl@gnu.org>
93198         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
93199         to avoid sectioning errors.
93200         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
93201         [ifinfo]: blank line after @center-ed titles.
93202         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
93203         Spell FSF address consistently with others.
93204         (These changes approved by rms.)
93206 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
93208         Speed up by a factor of 1.61.
93209         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
93210         already checked module names again.
93212 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
93214         Speed up by a factor of 1.13.
93215         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
93216         for new_files, and the input to func_add_or_update.
93218 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
93220         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
93221         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
93223 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
93225         * modules/mkancesdirs (Depends-on): Add fcntl.
93226         * modules/savewd: New file.
93227         * MODULES.html.sh (File system functions): Add savewd.
93229         * modules/configmake (Makefile.am): Add support for the
93230         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
93232 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
93234         * m4/savewd.m4: New file.
93236 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
93238         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
93239         (dirchownmod): New arg FD.  All callers changed.
93240         Use FD rather than opening the directory ourself, as opening is
93241         now the caller's responsibility.
93242         * lib/dirchownmod.h: Likewise.
93243         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
93244         hosts that require <sys/types.h> before <sys/stat.h>.  Include
93245         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
93246         (test_dir): Remove.
93247         (mkancesdirs): Return length of prefix of FILE that has already
93248         been made, or -2 if there is a child doing the work.  Redo
93249         algorithm so that it is O(N) rather than O(N**2).  Optimize away
93250         ".", and treat ".." specially since it might stray back into
93251         already-created areas.  Use a subprocess if necessary.  New arg
93252         WD; all users changed.  MAKE_DIR function should now return 1
93253         if it creates a directory that is not readable.  Return -2 if
93254         a child process is spun off.
93255         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
93256         Adjust signature to match code.
93257         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
93258         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
93259         all users changed.
93260         * lib/savewd.c, lib/savewd.h: New files.
93262 2006-09-15  Jim Meyering  <jim@meyering.net>
93264         * modules/rename-dest-slash: New module.
93265         * MODULES.html.sh (posix_compat): Add it here.
93267         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
93269 2006-09-15  Jim Meyering  <jim@meyering.net>
93271         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
93272         file.
93274         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
93276 2006-09-15  Jim Meyering  <jim@meyering.net>
93278         * lib/rename-dest-slash.c (has_trailing_slash): Use
93279         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
93280         (rpl_rename_dest_slash): Perform the cheaper trailing slash
93281         test before testing whether SRC is a directory.
93282         Suggestions from Bruno Haible.
93284         Avoid a warning about an unused variable.
93285         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
93286         into the #ifdef block where it's used.
93288         * lib/rename-dest-slash.c: New file.
93290 2006-09-14  Bruno Haible  <bruno@clisp.org>
93292         * lib/allocsa.c: Include <config.h> unconditionally.
93293         * lib/asnprintf.c: Likewise.
93294         * lib/asprintf.c: Likewise.
93295         * lib/c-strcasecmp.c: Likewise.
93296         * lib/c-strcasestr.c: Likewise.
93297         * lib/c-strncasecmp.c: Likewise.
93298         * lib/c-strstr.c: Likewise.
93299         * lib/classpath.c: Likewise.
93300         * lib/clean-temp.c: Likewise.
93301         * lib/concatpath.c: Likewise.
93302         * lib/copy-file.c: Likewise.
93303         * lib/csharpcomp.c: Likewise.
93304         * lib/csharpexec.c: Likewise.
93305         * lib/execute.c: Likewise.
93306         * lib/fatal-signal.c: Likewise.
93307         * lib/findprog.c: Likewise.
93308         * lib/fwriteerror.c: Likewise.
93309         * lib/gl_array_list.c: Likewise.
93310         * lib/gl_array_oset.c: Likewise.
93311         * lib/gl_avltree_list.c: Likewise.
93312         * lib/gl_avltree_oset.c: Likewise.
93313         * lib/gl_avltreehash_list.c: Likewise.
93314         * lib/gl_carray_list.c: Likewise.
93315         * lib/gl_linked_list.c: Likewise.
93316         * lib/gl_linkedhash_list.c: Likewise.
93317         * lib/gl_list.c: Likewise.
93318         * lib/gl_oset.c: Likewise.
93319         * lib/gl_rbtree_list.c: Likewise.
93320         * lib/gl_rbtree_oset.c: Likewise.
93321         * lib/gl_rbtreehash_list.c: Likewise.
93322         * lib/imaxabs.c: Likewise.
93323         * lib/imaxdiv.c: Likewise.
93324         * lib/javacomp.c: Likewise.
93325         * lib/javaexec.c: Likewise.
93326         * lib/javaversion.c: Likewise.
93327         * lib/linebreak.c: Likewise.
93328         * lib/localcharset.c: Likewise.
93329         * lib/lock.c: Likewise.
93330         * lib/mbchar.c: Likewise.
93331         * lib/mbswidth.c: Likewise.
93332         * lib/mkdtemp.c: Likewise.
93333         * lib/pipe.c: Likewise.
93334         * lib/printf-args.c: Likewise.
93335         * lib/printf-parse.c: Likewise.
93336         * lib/progname.c: Likewise.
93337         * lib/progreloc.c: Likewise.
93338         * lib/readlink.c: Likewise.
93339         * lib/sh-quote.c: Likewise.
93340         * lib/stpcpy.c: Likewise.
93341         * lib/stpncpy.c: Likewise.
93342         * lib/strcasecmp.c: Likewise.
93343         * lib/strcasestr.c: Likewise.
93344         * lib/strcspn.c: Likewise.
93345         * lib/striconv.c: Likewise.
93346         * lib/strncasecmp.c: Likewise.
93347         * lib/strnlen1.c: Likewise.
93348         * lib/strstr.c: Likewise.
93349         * lib/strtok_r.c: Likewise.
93350         * lib/tls.c: Likewise.
93351         * lib/tmpdir.c: Likewise.
93352         * lib/unicodeio.c: Likewise.
93353         * lib/unsetenv.c: Likewise.
93354         * lib/vasnprintf.c: Likewise.
93355         * lib/vasprintf.c: Likewise.
93356         * lib/wait-process.c: Likewise.
93357         * lib/xallocsa.c: Likewise.
93358         * lib/xsetenv.c: Likewise.
93359         * lib/xstriconv.c: Likewise.
93361 2006-09-13  Simon Josefsson  <jas@extundo.com>
93363         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
93364         that internally, suggested by Ralf Wildenhues
93365         <Ralf.Wildenhues@gmx.de>.
93367 2006-09-13  Simon Josefsson  <jas@extundo.com>
93369         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
93370         @LIBOBJS@.
93371         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
93373 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
93375         * lib/_fpending.c: Include <config.h> unconditionally, since we no
93376         longer worry about uses that don't define HAVE_CONFIG_H.
93377         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
93378         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
93379         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
93380         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
93381         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
93382         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
93383         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
93384         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
93385         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
93386         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
93387         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
93388         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
93389         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
93390         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
93391         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
93392         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
93393         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
93394         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
93395         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
93396         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
93397         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
93398         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
93399         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
93400         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
93401         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
93402         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
93403         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
93404         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
93405         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
93406         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
93407         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
93408         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
93409         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
93410         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
93411         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
93412         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
93413         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
93414         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
93415         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
93416         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
93417         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
93418         Likewise.
93420 2006-09-13  Eric Blake  <ebb9@byu.net>
93422         * lib/getopt.c: Fix typo in last commit.
93424 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
93426         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
93427         dgettext.
93429 2006-09-12  Jim Meyering  <jim@meyering.net>
93431         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
93432         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
93433         Reported by Nelson H. F. Beebe.
93435 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
93437         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
93438         program_invocation_name and program_invocation_short_name are
93439         initialized.
93440         * lib/argp-namefrob.h: Move declarations of program_invocation_name
93441         and program_invocation_short_name to argp.h, so they are visible
93442         to user programs.
93443         * lib/argp.h: Likewise
93445 2006-09-10  Bruno Haible  <bruno@clisp.org>
93447         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
93448         m4/inttypes_h.m4, m4/uintmax_t.m4.
93450 2006-09-10  Bruno Haible  <bruno@clisp.org>
93452         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
93453         gl_AC_TYPE_UINTMAX_T.
93455 2006-09-10  Bruno Haible  <bruno@clisp.org>
93457         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
93459 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
93461         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
93462         convention.  Text proposed by Bruno Haible.
93463         (struct argp_option): Document the use of N_() wrappers.
93465         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
93466         '\v', and translate the two parts separately, instead of feeding
93467         the whole string to gettext.  This allows to exclude
93468         '\v' from the strings visible to the translator by writing doc
93469         strings as N_("..") "\v" N_("..").
93471 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
93473         * config/srclist.txt: Undo latest change; the bug was fixed.
93475 2006-09-09  Bruno Haible  <bruno@clisp.org>
93477         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
93478         assignments if building a library without libtool.
93479         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
93480         in func_emit_lib_Makefile_am.
93481         (func_import): When building a static library libfoo.a, arrange to
93482         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
93483         (func_create_testdir): Likewise.
93484         * modules/gc (configure.ac, Makefile.am): If building statically,
93485         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
93486         * modules/iconvme (configure.ac, Makefile.am): Likewise.
93487         * modules/striconv (configure.ac, Makefile.am): Likewise.
93488         Based on a suggestion by Ralf Wildenhues.
93490 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
93492         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
93493         Check for unistd.h too, since Autoconf doesn't assume POSIX.
93494         Also:
93496         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
93497         Add year_2050_test to catch glibc bug 2821
93498         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
93500         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
93501         Prefer #ifdef to #if.
93503         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
93504         Return from 'main' instead of calling 'exit'.
93506 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
93508         * lib/mktime.c (guess_time_tm): Fix bug where mktime
93509         returned the maximum time_t value rather than (time_t) -1.
93510         Problem originally reported by William Bardwell
93511         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
93513         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
93514         Moved to here ...
93515         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
93516         ... from here.
93518 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
93520         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
93521         2821 is fixed.
93523 2006-09-08  Jim Meyering  <jim@meyering.net>
93525         Don't make generated files read-only.  That would bother too many
93526         people.  However, do retain the ability to work when targets are
93527         read-only: remove the destination and temporary files before writing
93528         them (when generated via sed or echo), or by using the -f option for
93529         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
93530         * modules/alloca-opt, modules/argz, modules/arpa_inet:
93531         * modules/byteswap, modules/configmake, modules/fcntl:
93532         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
93533         * modules/localcharset, modules/netinet_in, modules/poll:
93534         * modules/stdbool, modules/stdint, modules/sys_select:
93535         * modules/sys_socket, modules/sys_stat, modules/sysexits:
93537 2006-09-08  Jim Meyering  <jim@meyering.net>
93539         Avoid new build failure on FreeBSD 6.0.
93540         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
93541         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
93542         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
93544 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
93546         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
93548 2006-09-07  Jim Meyering  <jim@meyering.net>
93550         Fix global typo in last change: use chmod u-w, not chmod u-x.
93551         Spotted by Paul Eggert and Bruce Korb.
93552         * modules/alloca-opt, modules/argz, modules/arpa_inet:
93553         * modules/byteswap, modules/configmake, modules/fcntl:
93554         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
93555         * modules/localcharset, modules/netinet_in, modules/poll:
93556         * modules/stdbool, modules/stdint, modules/sys_select:
93557         * modules/sys_socket, modules/sys_stat, modules/sysexits:
93559 2006-09-06  Jim Meyering  <jim@meyering.net>
93561         Make generated files be read-only.
93562         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
93563         Ensure that each generated file is now read-only.
93564         * modules/argz: Likewise.
93565         * modules/arpa_inet: Likewise.
93566         * modules/byteswap: Likewise.
93567         * modules/configmake: Likewise.
93568         * modules/fcntl: Likewise.
93569         * modules/fnmatch: Likewise.
93570         * modules/getopt: Likewise.
93571         * modules/glob: Likewise.
93572         * modules/inttypes: Likewise.
93573         * modules/netinet_in: Likewise.
93574         * modules/poll: Likewise.
93575         * modules/stdbool: Likewise.
93576         * modules/stdint: Likewise.
93577         * modules/sys_select: Likewise.
93578         * modules/sys_socket: Likewise.
93579         * modules/sys_stat: Likewise.
93580         * modules/sysexits: Likewise.
93581         * modules/localcharset: Same as above, but continue using temporary
93582         file named "t-$@" (why different?) rather than the "$@-t" used
93583         everywhere else.
93585         * modules/sysexits (Makefile.am): Replace literal occurrences
93586         of "sysexit.h" more readable, and more consistent, "$@".
93588 2006-09-06  Bruno Haible  <bruno@clisp.org>
93590         * modules/striconv: New file.
93591         * modules/xstriconv: New file.
93592         * MODULES.html.sh (Internationalization functions): Add striconv,
93593         xstriconv.
93595 2006-09-06  Bruno Haible  <bruno@clisp.org>
93597         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
93598         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
93599         not using libtool correctly.
93601 2006-09-06  Bruno Haible  <bruno@clisp.org>
93603         * lib/striconv.h: New file.
93604         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
93605         iconvstring.c.
93606         * lib/xstriconv.h: New file.
93607         * lib/xstriconv.c: New file.
93609 2006-09-06  Bruno Haible  <bruno@clisp.org>
93611         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
93612         lib_..._LDFLAGS.
93614 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
93616         * lib/argz_.h: Sync from Libtool.
93618         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
93619                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
93621         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
93623 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
93625         * modules/trim: New file.
93627 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
93629         * lib/trim.h: New file.
93630         * lib/trim.c: New file.
93632 2006-09-05  Bruno Haible  <bruno@clisp.org>
93634         * MODULES.html.sh (String handling): Add trim.
93636 2006-09-04  Karl Berry  <karl@gnu.org>
93638         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
93639         until next release.
93641 2006-09-03  Bruno Haible  <bruno@clisp.org>
93643         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
93644         correctly.
93646 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
93648         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
93649         not gl_GETLOADAVG.  Omit unneeded semicolons.
93650         Problems reported by Ralf Wildenhues in
93651         <http://lists.gnu.org/r/bug-gnulib/2006-09/msg00000.html>.
93652         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
93653         at the end, which is the usual gnulib style.
93655         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
93656         of doing all the work ourselves.
93657         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
93658         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
93660 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
93662         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
93663         Problem reported by Ralf Wildenhues in
93664         <http://lists.gnu.org/r/bug-gnulib/2006-09/msg00000.html>.
93666         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
93667         HAVE_STRUCT_STATFS_F_FSTYPENAME.
93669 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
93671         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
93672         yesterday's patch by changing test -n to test -z.
93674 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
93676         * modules/getloadavg (Files): Add m4/getloadavg.m4.
93677         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
93678         the former is now obsolescent.
93680         * modules/chdir-long (Depends-on): Add fcntl.
93682 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
93684         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
93685         obsolescent, and programs should use gnulib instead.
93686         * m4/getloadavg.m4: New file, with contents taken from Autoconf
93687         but with prefixes changed.
93689 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
93691         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
93692         or stdbool.h, because they might not exist while configuring.
93694         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
93695         Don't include unistd.h or limits.h; not needed, since chdir-long.h
93696         does that for us.
93697         (O_DIRECTORY): Remove.
93699 2006-08-31  Eric Blake  <ebb9@byu.net>
93701         * gnulib-tool: Don't let emacs change spaces to TAB.
93703 2006-08-31  Bruno Haible  <bruno@clisp.org>
93705         * gnulib-tool: When calling func_import more than once, do it in a
93706         subshell.
93707         Reported by Eric Blake <ebb9@byu.net>.
93709 2006-08-31  Bruno Haible  <bruno@clisp.org>
93711         * gnulib-tool (nl): Remove variable.
93712         (sed_transform_lib_file): Use more robust test for config-h module.
93713         (func_import): Fix typo in 2006-08-25 patch.
93715 2006-08-31  Bruno Haible  <bruno@clisp.org>
93717         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
93718         specified, augment Makefile.am variables instead of assigning them.
93720 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
93722         Work around a bug in both the Linux and SunOS 64-bit kernels:
93723         nanosleep mishandles sleeps for longer than 2**31 seconds.
93724         Problem reported by Frank v Waveren in
93725         <http://lists.gnu.org/r/bug-coreutils/2006-08/msg00298.html>.
93726         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
93727         Check for nanosleep bug.
93728         (LIB_NANOSLEEP): Append clock_gettime library if needed.
93730 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
93732         Work around a bug in both the Linux and SunOS 64-bit kernels:
93733         nanosleep mishandles sleeps for longer than 2**31 seconds.
93734         Problem reported by Frank v Waveren in
93735         <http://lists.gnu.org/r/bug-coreutils/2006-08/msg00298.html>.
93736         * lib/nanosleep.c (BILLION): New constant.
93737         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
93738         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
93739         implementation.
93741 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
93743         * modules/nanosleep (Depends-on): Add gettime.
93745 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
93746         and Simon Josefsson  <jas@extundo.com>
93747         and Oskar Liljeblad  <oskar@osk.mine.nu>
93749         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
93750         * gnulib-tool (func_import): New license type 'unmodifiable license
93751         text'.
93752         * modules/fdl: Use it.  Longer description.
93753         * module/gpl, module/lgpl: New files.
93755 2006-08-30  Jim Meyering  <jim@meyering.net>
93757         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
93758         shadowing the parameter.
93760 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
93762         Sync from Libtool:
93764         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
93766         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
93767         sharing with gnulib.  Report by Eric Blake.
93769 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
93771         * modules/isapipe: New file.
93772         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
93774 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
93776         * modules/configmake (Makefile.am): Add a comment, and omit
93777         the CONFIGMAKE_ prefix from generated macro names.  Suggested
93778         by Bruno Haible.
93780 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
93782         * m4/isapipe.m4: New file.
93784 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
93786         * lib/isapipe.c, lib/isapipe.h: New files.
93788 2006-08-29  Jim Meyering  <jim@meyering.net>
93790         * modules/configmake (Makefile.am): Make configmake.h depend on
93791         Makefile.  Otherwise, a stale configmake.h could hang around.
93793 2006-08-29  Eric Blake  <ebb9@byu.net>
93795         * lib/error.c (error_at_line, print_errno_message): Match libc, after
93796         resolution of upstream bug 3044.
93798 2006-08-29  Bruno Haible  <bruno@clisp.org>
93800         * modules/localcharset (Depends-on): Add configmake.
93801         (Makefile.am): Remove setting of LIBDIR through DEFS.
93803 2006-08-29  Bruno Haible  <bruno@clisp.org>
93805         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
93806         defined.
93808 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
93810         * modules/fcntl: New file.
93811         * modules/chdir-safer (Depends-on): Add fcntl.
93812         * modules/fts: Likewise.
93813         * modules/mkdir-p: Likewise.
93815         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
93816         This undoes the most recent change, since we're now addressing the
93817         problem in a different way.
93819         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
93820         into output, since the output might be called Makefile.am even
93821         if $makefile_name is something different.
93822         (func_import): Use $makefile_am rather than
93823         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
93824         empty.
93826         * modules/inttypes (Files): Add m4/inttypes-h.m4.
93828 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
93830         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
93831         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
93832         recent change to stdint.m4, since we're now addressing the problem in a
93833         different way.
93835 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
93837         * m4/fcntl_h.m4: New file.
93839 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
93841         * lib/fcntl_.h: New file.
93842         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
93843         the fcntl module.
93844         * lib/dirchownmod.c: Likewise.
93845         * lib/fts.c: Likewise.
93847         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
93848         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
93849         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
93850         just before including <inttypes.h>, to avoid circular inclusion.
93852 2006-08-28  Jim Meyering  <jim@meyering.net>
93854         * doc/visibility.texi: Actually read and correct the grammar of the
93855         sentence affected by yesterday's change.
93857 2006-08-28  Eric Blake  <ebb9@byu.net>
93859         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
93860         needs wrapper.
93862 2006-08-28  Eric Blake  <ebb9@byu.net>
93864         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
93866 2006-08-28  Eric Blake  <ebb9@byu.net>
93868         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
93870 2006-08-28  Bruno Haible  <bruno@clisp.org>
93872         * modules/c-strstr: New file, from GNU gettext.
93873         * MODULES.html.sh (String handling): Add c-strstr.
93875 2006-08-28  Bruno Haible  <bruno@clisp.org>
93877         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
93878         macros.
93879         Reported by Eric Blake.
93881 2006-08-28  Bruno Haible  <bruno@clisp.org>
93883         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
93884         (VASNPRINTF): Return a string of length > INT_MAX without failing.
93885         * lib/vasprintf.c: Include errno.h, limits.h.
93886         (EOVERFLOW): New fallback definition.
93887         (vasprintf): Test here whether the string length is > INT_MAX.
93888         * lib/vsnprintf.c: Include errno.h, limits.h.
93889         (EOVERFLOW): New fallback definition.
93890         (vsnprintf): Fix bug when generated string was too long for the buffer.
93891         Test here whether the string length is > INT_MAX.
93893 2006-08-28  Bruno Haible  <bruno@clisp.org>
93895         * lib/inttypes_.h (SCNX*): Remove definitions.
93896         Reported by Eric Blake.
93898 2006-08-28  Bruno Haible  <bruno@clisp.org>
93900         * lib/c-strstr.h: New file, from GNU gettext.
93901         * lib/c-strstr.c: New file, from GNU gettext.
93903 2006-08-28  Bruno Haible  <bruno@clisp.org>
93905         * gnulib-tool: Reorder some statements.
93907 2006-08-28  Bruno Haible  <bruno@clisp.org>
93909         * gnulib-tool: New option --makefile-name.
93910         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
93911         $makefile_name.
93912         (func_import): Write $makefile_name to the cache file, and read it from
93913         there unless explicitly specified. Use $makefile_name as file name
93914         instead of Makefile.am. Adjust the recommendations accordingly.
93916 2006-08-28  Bruno Haible  <bruno@clisp.org>
93918         * gnulib-tool (func_verify_module): Check against misapplying patch.
93920 2006-08-28  Bruno Haible  <bruno@clisp.org>
93922         * gnulib-tool (func_relativize, func_relconcat): New functions.
93923         Give an error if --local-dir is given with --update.
93924         Remove trailing slashes from $local_gnulib_dir.
93925         (func_import): Store the relativized $local_gnulib_dir in
93926         gnulib-cache.m4, and read it from there if not specified explicitly.
93928 2006-08-28  Bruno Haible  <bruno@clisp.org>
93930         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
93931         is the current directory. Respect also $local_gnulib_dir.
93933 2006-08-28  Bruno Haible  <bruno@clisp.org>
93934             Simon Josefsson  <jas@extundo.com>
93936         BeOS portability.
93937         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
93939 2006-08-27  Jim Meyering  <jim@meyering.net>
93941         * doc/visibility.texi: Remove duplicate word: "pointer".
93943 2006-08-26  Bruno Haible  <bruno@clisp.org>
93945         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
93946         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
93947         (Makefile.am): Create inttypes.h from inttypes_.h.
93948         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
93950         * modules/imaxabs: New file.
93952         * modules/imaxdiv: New file.
93954 2006-08-26  Bruno Haible  <bruno@clisp.org>
93956         * m4/inttypes.m4: New file.
93957         * m4/_inttypes_h.m4: Remove file.
93958         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
93959         PRI_MACROS_BROKEN.
93960         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
93962         * m4/imaxabs.m4: New file.
93964         * m4/imaxdiv.m4: New file.
93966 2006-08-26  Bruno Haible  <bruno@clisp.org>
93968         * lib/inttypes_.h: New file.
93969         * lib/inttypes.h: Remove file.
93970         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
93972         * lib/imaxabs.c: New file.
93974         * lib/imaxdiv.c: New file.
93976 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
93978         New config-h module, so that "make" output needn't be cluttered
93979         by -DHAVE_CONFIG_H.
93980         * MODULES.html.sh (Support for building libraries and executables):
93981         Add config-h.
93982         * modules/config-h: New file.
93983         * gnulib-tool (nl, sed_transform_lib_file): New vars.
93984         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
93985         the config-h module is used.
93987         New configmake module, so that "make" output needn't be cluttered
93988         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
93989         * MODULES.html.sh (Support for building libraries and executables):
93990         Add configmake.
93991         * modules/configmake: New file.
93993 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
93995         * m4/config-h.m4: New file.
93997 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
93999         * config/srclist.txt: Add elisp-comp.
94001 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
94003         * MODULES.html.sh (Support for building libraries and executables):
94004         Add elisp-comp.
94005         * build-aux/elisp-comp: New file.
94006         * modules/elisp-comp: New file.
94008 2006-08-24  Bruno Haible  <bruno@clisp.org>
94010         * gnulib-tool (func_create_testdir): Use non-default values of
94011         sourcebase and m4base.
94013 2006-08-24  Bruno Haible  <bruno@clisp.org>
94015         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
94016         HTML structure.
94018 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
94020         * modules/openat (Depends-on): Add lchown.
94022 2006-08-23  Bruno Haible  <bruno@clisp.org>
94024         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
94025         of gl_LOCK_EARLY instead of gl_LOCK.
94027 2006-08-23  Bruno Haible  <bruno@clisp.org>
94029         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
94030         on OSF/1 to no.
94031         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
94033 2006-08-23  Bruno Haible  <bruno@clisp.org>
94035         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
94036         as unusable.
94038         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
94039         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
94040         (gl_LOCK): New macro.
94042 2006-08-22  Simon Josefsson  <jas@extundo.com>
94044         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
94045         to md5 module.
94047 2006-08-22  Simon Josefsson  <jas@extundo.com>
94049         * MODULES.html.sh: Add "Support for maintaining and release
94050         projects".
94052         * build-aux/gnupload: New file, from coreutils.
94054 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
94056         Avoid the need for AC_LIBSOURCES in m4 macros.
94057         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
94058         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
94059         * modules/check-version (EXTRA_DIST): Add check-version.h.
94060         * modules/crc (EXTRA_DIST): Add crc.h.
94061         * modules/des (EXTRA_DIST): Add des.h.
94062         * modules/gc (EXTRA_DIST): Add gc.h.
94063         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
94064         * modules/getline (EXTRA_DIST): Add getline.h.
94065         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
94066         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
94067         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
94068         * modules/md2 (EXTRA_DIST): Add md2.h.
94069         * modules/md4 (EXTRA_DIST): Add md4.h.
94070         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
94071         * modules/read-file (EXTRA_DIST): Add read-file.h.
94072         * modules/readline (EXTRA_DIST): Add readline.h.
94073         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
94074         rijndael-api-fst.h.
94076 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
94078         * m4/rijndael.m4 (gl_ARCFOUR):
94079         * m4/arctwo.m4 (gl_ARCTWO):
94080         * m4/check-version.m4 (gl_CHECK_VERSION):
94081         * m4/crc.m4 (gl_CRC):
94082         * m4/des.m4 (gl_DES):
94083         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
94084         * m4/gc.m4 (gl_GC):
94085         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
94086         * m4/getline.m4 (gl_FUNC_GETLINE):
94087         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
94088         * m4/hmac-md5.m4 (gl_HMAC_MD5):
94089         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
94090         * m4/md2.m4 (gl_MD2):
94091         * m4/md4.m4 (gl_MD4):
94092         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
94093         * m4/read-file.m4 (gl_FUNC_READ_FILE):
94094         * m4/readline.m4 (gl_FUNC_READLINE):
94095         * m4/rijndael.m4 (gl_RIJNDAEL):
94096         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
94097         to get the necessary .h files and whatnot.
94099 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
94101         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
94102         gnulib rather than the other way around.
94103         * config/srclistvars.sh (COREUTILS): Remove.
94105 2006-08-22  Jim Meyering  <jim@meyering.net>
94107         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
94109         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
94111 2006-08-22  Eric Blake  <ebb9@byu.net>
94113         * modules/regexprops-generic: New file.
94114         * MODULES.html.sh (Support for building documentation): List it.
94116 2006-08-22  Eric Blake  <ebb9@byu.net>
94118         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
94119         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
94120         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
94121         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
94123 2006-08-22  Bruno Haible  <bruno@clisp.org>
94125         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
94126         and lib_LTLIBRARIES like the other lib_* variables.
94128 2006-08-22  Bruno Haible  <bruno@clisp.org>
94130         * build-aux/x-to-1.in: New file, from GNU gettext.
94132 2006-08-22  Bruno Haible  <bruno@clisp.org>
94134         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
94135         <utmpx.h> exists.
94137 2006-08-22  Bruno Haible  <bruno@clisp.org>
94139         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
94140         <utmpx.h> exists.
94142 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
94144         BeOS portability.
94145         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
94146         exist.
94147         Problem reported by Bruno Haible.
94149 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
94151         Avoid the need for AC_LIBSOURCES in m4 macros.
94152         * modules/acl (EXTRA_DIST): Add acl.h.
94153         * modules/argmatch (Files): Add m4/argmatch.m4.
94154         (configure.ac): Add gl_ARGMATCH.
94155         (EXTRA_DIST): Renamed from lib_SOURCES, for
94156         consistency with the other modules.  Remove argmatch.c.
94157         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
94158         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
94159         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
94160         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
94161         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
94162         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
94163         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
94164         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
94165         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
94166         * modules/closeout (EXTRA_DIST): Add closeout.h.
94167         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
94168         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
94169         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
94170         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
94171         dirname.h; remove basename.c and stripslash.c.
94172         * modules/exclude (EXTRA_DIST): Add exclude.h.
94173         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
94174         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
94175         * modules/file-type (EXTRA_DIST): Add file-type.h.
94176         * modules/filemode (EXTRA_DIST): Add filemode.h.
94177         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
94178         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
94179         * modules/fpending (EXTRA_DIST): Add __fpending.h.
94180         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
94181         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
94182         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
94183         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
94184         * modules/getdate (EXTRA_DIST): Add getdate.c.
94185         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
94186         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
94187         * modules/getpass (EXTRA_DIST): Add getpass.h.
94188         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
94189         * modules/group-member (EXTRA_DIST): Add group-member.h.
94190         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
94191         * modules/hash (EXTRA_DIST): Add hash.h.
94192         * modules/human (EXTRA_DIST): Add human.h.
94193         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
94194         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
94195         * modules/lchown (EXTRA_DIST): Add lchown.h.
94196         * modules/long-options (EXTRA_DIST): Add long-options.h.
94197         * modules/lstat (EXTRA_DIST): Add lstat.h.
94198         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
94199         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
94200         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
94201         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
94202         * modules/memxor (EXTRA_DIST): Add memxor.h.
94203         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
94204         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
94205         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
94206         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
94207         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
94208         * modules/physmem (EXTRA_DIST): Add physmem.h.
94209         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
94210         * modules/posixver (EXTRA_DIST): Add posixver.h.
94211         * modules/quote (EXTRA_DIST): Add quote.h.
94212         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
94213         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
94214         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
94215         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
94216         regex_internal.h regexec.c.
94217         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
94218         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
94219         * modules/same (EXTRA_DIST): Add same.h.
94220         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
94221         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
94222         * modules/savedir (EXTRA_DIST): Add savedir.h.
94223         * modules/sha1 (EXTRA_DIST): Add sha1.h.
94224         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
94225         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
94226         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
94227         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
94228         * modules/strdup (EXTRA_DIST): Add strdup.h.
94229         * modules/strftime (EXTRA_DIST): Add strftime.h.
94230         * modules/strndup (EXTRA_DIST): Add strndup.h.
94231         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
94232         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
94233         * modules/time_r (EXTRA_DIST): Add time_r.h.
94234         * modules/timespec (EXTRA_DIST): Add timespec.h.
94235         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
94236         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
94237         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
94238         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
94239         * modules/userspec (EXTRA_DIST): Add userspec.h.
94240         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
94241         * modules/utimens (EXTRA_DIST): Add utimens.h.
94242         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
94243         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
94244         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
94245         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
94246         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
94247         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
94248         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
94249         * modules/yesno (EXTRA_DIST): Add yesno.h.
94251 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
94253         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
94255         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
94256         * m4/dev-ino.m4, same-inode.m4: Remove.
94258         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
94259         * m4/acl.m4 (AC_FUNC_ACL):
94260         * m4/backupfile.m4 (gl_BACKUPFILE):
94261         * m4/c-strtod.m4 (gl_C99_STRTOLD):
94262         * m4/canon-host.m4 (gl_CANON_HOST):
94263         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
94264         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
94265         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
94266         * m4/cloexec.m4 (gl_CLOEXEC):
94267         * m4/close-stream.m4 (gl_CLOSE_STREAM):
94268         * m4/closeout.m4 (gl_CLOSEOUT):
94269         * m4/dirfd.m4 (gl_FUNC_DIRFD):
94270         * m4/dirname.m4 (gl_DIRNAME):
94271         * m4/exclude.m4 (gl_EXCLUDE):
94272         * m4/exitfail.m4 (gl_EXITFAIL):
94273         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
94274         * m4/file-type.m4 (gl_FILE_TYPE):
94275         * m4/filemode.m4 (gl_FILEMODE):
94276         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
94277         * m4/fpending.m4 (gl_FUNC_FPENDING):
94278         * m4/fprintftime.m4 (gl_FPRINTFTIME):
94279         * m4/fts.m4 (gl_FUNC_FTS):
94280         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
94281         * m4/getdate.m4 (gl_GETDATE):
94282         * m4/gethrxtime.m4 (gl_GETHRXTIME):
94283         * m4/getpagesize.m4 (gl_GETPAGESIZE):
94284         * m4/getpass.m4 (gl_FUNC_GETPASS):
94285         * m4/gettime.m4 (gl_GETTIME):
94286         * m4/getugroups.m4 (gl_GETUGROUPS):
94287         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
94288         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
94289         * m4/hard-locale.m4 (gl_HARD_LOCALE):
94290         * m4/hash.m4 (gl_HASH):
94291         * m4/idcache.m4 (gl_IDCACHE):
94292         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
94293         * m4/lchown.m4 (gl_FUNC_LCHOWN):
94294         * m4/long-options.m4 (gl_LONG_OPTIONS):
94295         * m4/lstat.m4 (gl_FUNC_LSTAT):
94296         * m4/md5.m4 (gl_MD5):
94297         * m4/memcasecmp.m4 (gl_MEMCASECMP):
94298         * m4/memcoll.m4 (gl_MEMCOLL):
94299         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
94300         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
94301         * m4/memxor.m4 (gl_MEMXOR):
94302         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
94303         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
94304         * m4/modechange.m4 (gl_MODECHANGE):
94305         * m4/mountlist.m4 (gl_MOUNTLIST):
94306         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
94307         * m4/openat.m4 (gl_FUNC_OPENAT):
94308         * m4/pathmax.m4 (gl_PATHMAX):
94309         * m4/physmem.m4 (gl_PHYSMEM):
94310         * m4/posixtm.m4 (gl_POSIXTM):
94311         * m4/posixver.m4 (gl_POSIXVER):
94312         * m4/quote.m4 (gl_QUOTE):
94313         * m4/quotearg.m4 (gl_QUOTEARG):
94314         * m4/readtokens.m4 (gl_READTOKENS):
94315         * m4/readutmp.m4 (gl_READUTMP):
94316         * m4/regex.m4 (gl_REGEX):
94317         * m4/safe-read.m4 (gl_SAFE_READ):
94318         * m4/safe-write.m4 (gl_SAFE_WRITE):
94319         * m4/same.m4 (gl_SAME):
94320         * m4/save-cwd.m4 (gl_SAVE_CWD):
94321         * m4/savedir.m4 (gl_SAVEDIR):
94322         * m4/settime.m4 (gl_SETTIME):
94323         * m4/sha1.m4 (gl_SHA1):
94324         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
94325         * m4/stat-macros.m4 (gl_STAT_MACROS):
94326         * m4/stat-time.m4 (gl_STAT_TIME):
94327         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
94328         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
94329         * m4/strdup.m4 (gl_FUNC_STRDUP):
94330         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
94331         * m4/strndup.m4 (gl_FUNC_STRNDUP):
94332         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
94333         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
94334         * m4/time_r.m4 (gl_TIME_R):
94335         * m4/timespec.m4 (gl_TIMESPEC):
94336         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
94337         * m4/unlinkdir.m4 (gl_UNLINKDIR):
94338         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
94339         * m4/userspec.m4 (gl_USERSPEC):
94340         * m4/utimecmp.m4 (gl_UTIMECMP):
94341         * m4/utimens.m4 (gl_UTIMENS):
94342         * m4/xalloc.m4 (gl_XALLOC):
94343         * m4/xgetcwd.m4 (gl_XGETCWD):
94344         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
94345         * m4/xreadlink.m4 (gl_XREADLINK):
94346         * m4/xstrtod.m4 (gl_XSTRTOD):
94347         * m4/yesno.m4 (gl_YESNO):
94348         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
94349         to get the necessary .h files and whatnot.
94351 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
94352             Bruno Haible  <bruno@clisp.org>
94354         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
94355         /bin/sh understanding of '!' conditional negation.
94357 2006-08-21  Jim Meyering  <jim@meyering.net>
94359         * modules/openat (Depends-on): Really alphabetize.
94361         * modules/acl (Depends-on): Add error and quote.
94363         * check-module (find_included_lib_files): Add at-func.c to the
94364         ok-to-include-more-than-once white list.
94366         * modules/openat (Depends-on): Add lstat.  Alphabetize.
94368 2006-08-21  Bruno Haible  <bruno@clisp.org>
94370         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
94371         Emit a pkgdata_DATA variable only if some snippets add contents to it.
94372         Reported by Martin Lambers <marlam@marlam.de>.
94374 2006-08-21  Bruno Haible  <bruno@clisp.org>
94376         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
94377         specify an installation location, don't emit a noinst_LIBRARIES or
94378         noinst_LTLIBRARIES assignment.
94380 2006-08-21  Bruno Haible  <bruno@clisp.org>
94382         BeOS portability.
94383         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
94384         BeOS has mbrtowc() but no <wctype.h>.
94386 2006-08-21  Bruno Haible  <bruno@clisp.org>
94388         BeOS portability.
94389         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
94390         exist.
94392 2006-08-21  Bruno Haible  <bruno@clisp.org>
94394         BeOS portability.
94395         * lib/mbchar.h: Include <wctype.h> only if it exists.
94397 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
94399         Remove files that are no longer needed by their respective modules.
94400         * m4/obstack.m4: Remove.
94401         * m4/strerror_r.m4: Remove.
94402         * m4/uint32_t.m4: Remove.
94403         * m4/uintptr_t.m4: Remove.
94404         * m4/ullong_max.m4: Remove.
94405         * m4/xstrtoimax.m4: Remove.
94406         * m4/xstrtoumax.m4: Remove.
94408         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
94409         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
94410         dependencies now capture this.
94412         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
94413         Do not use AC_LIBSOURCES, since gnulib modules now do this.
94414         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
94415         * m4/human.m4 (gl_HUMAN): Likewise.
94416         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
94417         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
94419         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
94421         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
94422         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
94423         stdint.
94424         * m4/human.m4 (gl_HUMAN): Likewise.
94425         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
94426         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
94427         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
94428         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
94429         * m4/xstrtol (gl_XSTRTOL): Likewise.
94431         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
94432         AC_TYPE_LONG_LONG_INT.
94433         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
94434         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
94435         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
94436         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
94438         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
94439         on stdbool.
94441         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
94442         (gl_PREREQ_XSTRTOUL): Remove.
94444         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
94446         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
94447         mode.
94449 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
94451         Add and change modules to make it easier for coreutils to use
94452         gnulib-tool.
94453         * modules/backupfile (Files): Remove m4/d-ino.m4.
94454         (Depends-on): Add d-ino.
94455         * modules/cycle-check (Depends-on): Add stdint.
94456         (lib_SOURCES): Add cycle-check.h.
94457         * modules/d-ino: New module.
94458         * modules/d-type: New module.
94459         * modules/error (Files): Remove m4/strerror_r.m4.
94460         * modules/filemode (Files): Add m4/st_dm_mode.m4.
94461         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
94462         m4/inttypes_h.m4, m4/uintmax_t.m4.
94463         (Depends-on): Add stdint.
94464         (lib_SOURCES): Add fsusage.h.
94465         * modules/getcwd (Files): Remove d-ino.m4.
94466         (Depends-on): Add d-ino.
94467         * modules/getndelim2 (Depends-on): Add stdint.
94468         * modules/glob (Files): Remove m4/d-type.m4.
94469         (Depends-on): Add d-type.
94470         * modules/host-os: New module.
94471         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
94472         m4/inttypes_h.m4, m4/uintmax_t.m4.
94473         * Depends-on: Add stdint.
94474         (lib_SOURCES): Add human.h.
94475         * modules/inttostr (Files): Remove m4/intmax_t.m4,
94476         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
94477         m4/uintmax_t.m4, m4/ulonglong.m4.
94478         (Depends-on): Add stdint.
94479         (EXTRA_DIST): Add inttostr.h.
94480         * modules/lchmod: New module.
94481         * modules/link-follow: New module.
94482         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
94483         (Depends-on): Add lchmod.
94484         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
94485         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
94486         (Depends-on): Add stdint.
94487         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
94488         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
94489         (Depends-on): Add stdint.
94490         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
94491         * modules/perl: New module.
94492         * modules/regex (Depends-on): Add stdint.
94493         * modules/rmdir-errno: New module.
94494         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
94495         m4/intmax_t.m4.
94496         (Depends-on): Add stdint.
94497         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
94498         m4/uintmax_t.m4.
94499         (Depends-on): Add stdint.
94500         * modules/unlink-busy: New module.
94501         * modules/utimecmp (Depends-on): Add stdint.
94502         * modules/uptime: New module.
94503         * modules/winsz-ioctl: New module.
94504         * modules/winsz-termios: New module.
94505         * modules/xnanosleep (Depends-on): Add nanosleep.
94506         * modules/ullong_max: Remove.
94507         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
94508         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
94509         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
94510         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
94511         (Depends-on): Add inttypes.
94512         (lib_SOURCES): Add xstrtol.h.
94513         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
94514         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
94515         * MODULES.html.sh: Move 'assert' into the assert section.
94516         Move 'dummy' into the linking section.
94517         Remove ullong_max.
94518         Add section for compatibility checks for POSIX:2001 functions,
94519         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
94520         winsz-ioctl, and winsz-termios into it.
94521         Add lchmod.
94522         Add top-level Misc section and put host-os, perl, and uptime
94523         into it.
94525 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
94527         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
94528         now assume the stdint module.  Do not include inttypes.h.
94529         * lib/fsusage.h: Likewise.
94530         * lib/getndelim2.c: Likewise.
94531         * lib/human.h: Likewise.
94532         * lib/inttostr.h: Likewise.
94533         * lib/obstack.c: Likewise.
94534         * lib/regex_internal.h: Likewise.
94535         * lib/tempname.c: Likewise.
94536         * lib/utimecmp.c: Likewise.
94537         * lib/xstrtol.h: Likewise.
94539         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
94541         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
94542         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
94543         * lib/xtime.h: Likewise.
94545 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
94547         * modules/openat (Files): Add lib/fchmodat.c.
94548         Fixes problem reported by Jay Youngman.
94550 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
94552         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
94553         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
94555 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
94556             Bruno Haible  <bruno@clisp.org>
94558         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
94559         and is a script that invokes bison. Tighten the code. Add comments.
94561 2006-08-18  Jim Meyering  <jim@meyering.net>
94563         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
94564         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
94565         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
94566         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
94568 2006-08-18  Bruno Haible  <bruno@clisp.org>
94570         * modules/bison-i18n: New file.
94571         * MODULES.html.sh (Internationalization functions): Add it.
94573 2006-08-18  Bruno Haible  <bruno@clisp.org>
94575         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
94576         sys/statvfs.h. When getmntinfo was found, check its declaration and
94577         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
94579 2006-08-18  Bruno Haible  <bruno@clisp.org>
94581         * m4/bison-i18n.m4: New file, from bison.
94583 2006-08-18  Bruno Haible  <bruno@clisp.org>
94585         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
94586         (ME_DUMMY): Treat "kernfs" as a dummy.
94587         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
94589 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
94591         Update from coreutils.
94593         2006-08-15  Jim Meyering  <jim@meyering.net>
94595         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
94597         2006-01-17  Jim Meyering  <jim@meyering.net>
94599         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
94601         2006-01-11  Jim Meyering  <jim@meyering.net>
94603         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
94604         Check for the lchmod function.
94606 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
94608         Update from coreutils.
94610         * lib/__fpending.h: Add copyright notice.
94611         * lib/fprintftime.h: Likewise.
94612         * lib/savedir.c: Use (C) in copyright notice.
94613         * lib/savedir.h: Likewise.
94615         2006-08-15  Jim Meyering  <jim@meyering.net>
94617         * lib/at-func.c: New file, with the logic of all emulated at-functions.
94618         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
94619         in support of the EXPECTED_ERRNO macro.
94620         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
94621         definitions.  Instead, define the appropriate symbols and include
94622         "at-func.c".
94623         * lib/mkdirat.c (mkdirat): Likewise.
94624         * lib/fchmodat.c (fchmodat): Likewise.
94625         (ENOSYS): Remove definition.
94626         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
94627         it.  Don't include "unistd--.h" -- it wasn't ever used.
94629         2006-01-17  Jim Meyering  <jim@meyering.net>
94631         Rewrite fts.c not to change the current working directory,
94632         by using openat, fstatat, fdopendir, etc..
94634         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
94635         (HAVE_OPENAT_SUPPORT): Define.
94636         [_LIBC] (fchdir): Don't undef or define; no longer used.
94637         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
94638         Now, this `function' always succeeds, and consumes its file descriptor
94639         parameter -- so callers must not close such FDs.  Update callers.
94640         (diropen_fd, opendirat, cwd_advance_fd): New functions.
94641         (diropen): Add parameter, SP.  Adjust all callers.
94642         Implement using diropen_fd, rather than open.
94643         (fts_open): Initialize new member, fts_cwd_fd.
94644         Remove fts_rft-setting code.
94645         (fts_close): Close fts_cwd_fd, if necessary.
94646         (__opendir2): Define in terms of opendir or opendirat,
94647         depending on whether the FST_NOCHDIR flag is set.
94648         (fts_build): Since fts_safe_changedir consumes its FD, and since
94649         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
94650         and close the dup'd file descriptor upon failure.
94651         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
94652         (fts_safe_changedir): Tweak semantics to reflect that this function
94653         now calls cwd_advance_fd and hence consumes its FD argument.
94654         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
94655         [struct FTS] (fts_rft): Remove now-unused member.
94656         [struct FTS] (fts_cycle.state): Improve comment.
94658         * lib/openat.c (openat_needs_fchdir): New function.
94659         * lib/openat.h (openat_needs_fchdir): Declare it.
94661 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
94663         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
94664         Problem and fix reported by Pádraig Brady in
94665         <http://lists.gnu.org/r/bug-coreutils/2006-08/msg00099.html>.
94667 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
94669         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
94671 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
94673         * lib/memcoll.c (memcoll): Optimize for the common case where the
94674         arguments are bytewise equal.
94676 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
94678         * doc/regexprops-generic.texi: Add a copyright notice.
94680 2006-08-15  Bruno Haible  <bruno@clisp.org>
94682         * modules/tmpdir (License): Change to LGPL.
94684 2006-08-15  Bruno Haible  <bruno@clisp.org>
94686         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
94687         module.
94689 2006-08-14  Simon Josefsson  <jas@extundo.com>
94691         * config/srclist.txt: Add gnupload.
94693 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
94695         Change copyright notice from LGPL 2 to GPL 2, since that's the
94696         standard form used in the gnulib repository.
94697         * tests/test-lock.c: Likewise.
94698         * tests/test-stdint.c: Likewise.
94699         * tests/test-tls.c: Likewise.
94701         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
94702         prelude-manager.  User shorter URLs for GNU projects, without '?'.
94703         Add copyright notice.
94705         * check-module: Add copyright notice.  Output a copyright
94706         notice if "--version" is specified.
94707         * modules/COPYING: New file.
94708         * tests/test-getaddrinfo.c: Add copyright notice.
94709         * tests/test-verify.c: Likewise.
94711 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
94713         Change copyright notice from LGPL 2 to GPL 2, since that's the
94714         standard form used in the gnulib repository.
94715         * lib/lock.c: LGPL -> GPL.
94716         * lib/lock.h: Likewise.
94717         * lib/strnlen1.c: Likewise.
94718         * lib/strnlen1.h: Likewise.
94719         * lib/tls.c: Likewise.
94720         * lib/tls.h: Likewise.
94721         * lib/tmpdir.c: Likewise.
94723         * lib/TODO: Remove; this belongs only in coreutils.
94725 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
94727         Add copyright notices to long-enough files that lack them, since
94728         otherwise the files aren't clearly free.  Use the same notice that
94729         getdate.texi already uses.
94730         * doc/alloca-opt.texi: Add copyright notice.
94731         * doc/alloca.texi: Likewise.
94732         * doc/ctime.texi: Likewise.
94733         * doc/functions.texi: Likewise.
94734         * doc/gcd.texi: Likewise.
94735         * doc/gnulib-tool.texi: Likewise.
94736         * doc/inet_ntoa.texi: Likewise.
94737         * doc/visibility.texi: Likewise.
94739         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
94740         * doc/quote.texi: Add copyright notice.
94742         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
94743         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
94744         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
94745         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
94746         is now obsolete, and give a pointer to the Sun list.
94747         Add copyright notice.
94749 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
94751         * config/srclistvars.sh: Add copyright notice.
94753 2006-08-14  Eric Blake  <ebb9@byu.net>
94755         Import the following change from libc:
94757         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
94759         Upstream bug 2997.
94760         * lib/misc/error.c: Add space between program name and message if file
94761         name is missing.
94763 2006-08-12  Karl Berry  <karl@gnu.org>
94765         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
94766         remove, these originate in gnulib now.
94768 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
94770         * doc/Makefile (standards.info standards.html standards.dvi):
94771         Also depend on make-stds.texi.
94773 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
94775         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
94776         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
94778         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
94779         in wchar_t.  Problem reported by Eric Blake.
94781         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
94782         LEN is smaller than SIZE.  Suggested by Bruno Haible.
94783         Also, help the compiler to keep LEN in a register.
94785 2006-08-11  Eric Blake  <ebb9@byu.net>
94787         * users.txt: Sort.  Add tar.
94789 2006-08-11  Bruno Haible  <bruno@clisp.org>
94791         * users.txt: New file.
94793 2006-08-11  Bruno Haible  <bruno@clisp.org>
94795         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
94796         before <wchar.h>. Needed for OSF/1 and BSD/OS.
94798 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
94800         * modules/snprintf (Depends-on): Remove minmax.
94801         (Maintainer): Add self and Bruno.
94803 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
94805         * lib/.cppi-disable: Add snprintf.h, socket_.h.
94806         * lib/snprintf.c: Include <errno.h> and <limits.h>.
94807         (EOVERFLOW): Define if the system does not.
94808         Do not include "minmax.h"; it wasn't used.
94809         (snprintf): Don't assume size_t promotes to an unsigned type.
94810         Fix bug when generated string was too long for the buffer: the
94811         buffer's contents are supposed to be the initial prefix of the
94812         output.  Don't assume vasnprintf returns EOVERFLOW if the size
94813         exceeds INT_MAX; do the check ourselves.
94815         Import the following changes from libc:
94817         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
94819         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
94820         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
94821         set wc to the byte which couldn't be converted.
94822         (re_string_reconstruct): Don't clear valid_raw_len before calling
94823         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
94824         tip_context using re_string_context_at.
94826         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
94828         * lib/posix/regex.h: g++ still cannot handled [restrict].
94830         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
94832         * lib/posix/regex.h: Remove special handling for VMS.
94834 2006-08-10  Jim Meyering  <jim@meyering.net>
94836         * modules/same-inode: New module.
94837         * modules/dev-ino: New module.
94838         * modules/cycle-check: Depend on these modules, rather than simply
94839         including their .h files.
94840         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
94841         required via m4/cycle-check.m4.
94842         * modules/same: Depend on new same-inode module, rather than
94843         including same-inode.h.
94844         * modules/chdir-safer: New file.
94846         * modules/chown (Depends-on): Add stat-macros.
94848 2006-08-10  Jim Meyering  <jim@meyering.net>
94850         * m4/cycle-check.m4: New file.
94851         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
94852         * m4/dev-ino.m4, m4/same-inode.m4: New files.
94854 2006-08-10  Eric Blake  <ebb9@byu.net>
94856         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
94857         in from original proposal.
94859 2006-08-10  Eric Blake  <ebb9@byu.net>
94860         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
94862         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
94863         namespace.
94865 2006-08-10  Bruno Haible  <bruno@clisp.org>
94867         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
94868         as well.
94870 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
94872         Sync from coreutils.
94874         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
94876         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
94877         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
94879 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
94881         * modules/restrict: Remove; no longer needed now that we assume
94882         Autoconf 2.59 or later.
94883         * MODULES.html.sh: Remove 'restrict'.
94884         * modules/argp (Depends-on): Remove 'restrict'.
94885         * modules/base64 (Depends-on): Likewise.
94886         * modules/gc (Depends-on): Likewise.
94887         * modules/getaddrinfo (Depends-on): Likewise.
94888         * modules/glob (Depends-on): Likewise.
94889         * modules/inet_ntop (Depends-on): Likewise.
94890         * modules/inet_pton (Depends-on): Likewise.
94891         * modules/memxor (Depends-on): Likewise.
94892         * modules/regex (Depends-on): Likewise.
94893         * modules/strtok_r (Depends-on): Likewise.
94894         * modules/time_r (Depends-on): Likewise.
94896 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
94898         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
94899         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
94900         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
94901         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
94902         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
94903         * m4/memxor.m4 (gl_MEMXOR): Likewise.
94904         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
94905         gl_C_RESTRICT replaced by AC_C_RESTRICT.
94907         Merge from coreutils.
94908         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
94909         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
94910         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
94911         * m4/time_r.m4 (gl_TIME_R): Likewise.
94913 2006-08-09  Karl Berry  <karl@gnu.org>
94915         * config/srclist.txt: no more gettext-tools, per Bruno.
94917 2006-08-08  Eric Blake  <ebb9@byu.net>
94919         * modules/verror: New module.
94920         * MODULES.html.sh: Document it.
94922 2006-08-08  Eric Blake  <ebb9@byu.net>
94924         * lib/verror.h, lib/verror.c: New files.
94926 2006-08-08  Eric Blake  <ebb9@byu.net>
94928         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
94929         verror_at_line output complies with GNU Coding Standards even when
94930         file is NULL.
94932 2006-08-07  Bruno Haible  <bruno@clisp.org>
94934         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
94935         versions of AIX.
94936         Reported by Ralf Wildenhues.
94938 2006-08-07  Bruno Haible  <bruno@clisp.org>
94940         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
94941         in an AC_DEFUN. Needed so that the autoconf snippets can use
94942         AC_REQUIRE.
94944 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
94946         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
94947         Initialize pkgdata_DATA.
94948         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
94949         overriding it.
94951 2006-08-06  Eric Blake  <ebb9@byu.net>
94953         * lib/error.h: Fold in some upstream changes from glibc.
94954         * lib/error.c: Likewise.
94956 2006-08-04  Bruno Haible  <bruno@clisp.org>
94958         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
94959         Make the mostlyclean-local rule depend on mostlyclean-generic.
94960         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
94962 2006-07-31  Bruno Haible  <bruno@clisp.org>
94964         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
94965         <stdlib.h>, <string.h>.
94967 2006-07-30  Bruno Haible  <bruno@clisp.org>
94969         * modules/readlink (License): Change to LGPL.
94971 2006-07-30  Bruno Haible  <bruno@clisp.org>
94973         * modules/javaversion (Makefile.am): Distribute javaversion.java and
94974         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
94975         set PKGDATADIR to point to it.
94977 2006-07-30  Bruno Haible  <bruno@clisp.org>
94979         * modules/csharpexec (configure.ac): Comment out macro invocation.
94980         * modules/javaexec (configure.ac): Likewise.
94981         * modules/javacomp-script (configure.ac): Likewise.
94983         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
94985 2006-07-30  Bruno Haible  <bruno@clisp.org>
94987         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
94988         linked-list.
94990 2006-07-30  Bruno Haible  <bruno@clisp.org>
94992         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
94994 2006-07-30  Bruno Haible  <bruno@clisp.org>
94996         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
94997         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
94998         get removed.
95000 2006-07-29  Bruno Haible  <bruno@clisp.org>
95002         Make it possible for gnulib-tool to work with locally modified or
95003         augmented gnulib repositories.
95004         * gnulib-tool (func_usage): Document --local-dir option.
95005         (local_gnulib_dir): New variable.
95006         Handle --local-dir option.
95007         (func_lookup_file): New function.
95008         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
95009         (func_get_description, func_get_filelist, func_get_description,
95010         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
95011         func_get_automake_snippet, func_get_include_directive,
95012         func_get_license, func_get_maintainer): Use func_lookup_file.
95013         (func_import, func_create_testdir): Use func_lookup_file.
95015 2006-07-29  Bruno Haible  <bruno@clisp.org>
95017         * modules/setenv (Depends-on): Add unistd.
95019 2006-07-29  Bruno Haible  <bruno@clisp.org>
95021         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
95023 2006-07-29  Bruno Haible  <bruno@clisp.org>
95025         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
95027 2006-07-29  Bruno Haible  <bruno@clisp.org>
95029         * gnulib-tool (import, update): If there is no Makefile.am, look at
95030         aclocal.m4, instead of bailing out.
95032 2006-07-29  Bruno Haible  <bruno@clisp.org>
95034         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
95035         Categorize the options by when they are useful.
95037 2006-07-29  Bruno Haible  <bruno@clisp.org>
95039         * gnulib-tool (func_usage): Document option --no-libtool.
95040         Handle option --no-libtool.
95041         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
95042         for changed semantics of $libtool variable.
95043         (func_import): Likewise. If libtool is not used, show this through
95044         an option --no-libtool.
95045         (func_create_testdir): Update.
95047 2006-07-29  Bruno Haible  <bruno@clisp.org>
95049         * gnulib-tool (func_import): Extend error message about missing
95050         --doc-base.
95052 2006-07-29  Bruno Haible  <bruno@clisp.org>
95054         * gnulib-tool (func_import): Don't create the $docbase directory if
95055         there is no file to store there.
95057 2006-07-29  Bruno Haible  <bruno@clisp.org>
95059         * gnulib-tool (autoconf_minversion): If a --dir option is given and
95060         relevant, look for configure.ac there, not in the current directory.
95061         Also use a simple search for AC_PREREQ, not "autoconf --trace".
95063 2006-07-29  Bruno Haible  <bruno@clisp.org>
95065         * gnulib-tool (SORT): New variable.
95066         (func_usage): Undocument --assume-autoconf option.
95067         Remove --assume-autoconf option handling.
95068         (autoconf_minversion): Determine from the contents of configure.ac.
95069         (func_import): Remove autoconf_minversion handling.
95070         Suggested by Eric Blake.
95072 2006-07-29  Bruno Haible  <bruno@clisp.org>
95074         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
95076 2006-07-29  Bruno Haible  <bruno@clisp.org>
95078         * config/srclist.txt (*setenv.[ch]): Remove rules.
95080 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
95082         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
95084 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
95086         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
95087         arpa/inet.h.
95089 2006-07-28  Simon Josefsson  <jas@extundo.com>
95091         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
95092         * modules/inet_pton (Depends-on): Likewise.
95094 2006-07-28  Simon Josefsson  <jas@extundo.com>
95096         * m4/netinet_in_h.m4: New file.
95098 2006-07-28  Simon Josefsson  <jas@extundo.com>
95100         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
95101         #include's.
95103 2006-07-28  Simon Josefsson  <jas@extundo.com>
95105         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
95106         #include's.
95108 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
95110         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
95111         setgid on directories only if they set these bits.
95112         * lib/modechange.h: Remove obsolete comment about masks.
95114 2006-07-28  Eric Blake  <ebb9@byu.net>
95116         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
95117         macro expansion.
95119 2006-07-28  Bruno Haible  <bruno@clisp.org>
95121         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
95123 2006-07-28  Bruno Haible  <bruno@clisp.org>
95125         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
95127 2006-07-28  Bruno Haible  <bruno@clisp.org>
95129         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
95130         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
95131         Define fallbacks.
95132         Avoids link error on FreeBSD 4.x.
95133         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
95135         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
95136         encoding.
95137         * lib/mbswidth.c (iswcntrl): Likewise.
95139 2006-07-27  Bruno Haible  <bruno@clisp.org>
95141         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
95142         test.
95144 2006-07-27  Bruno Haible  <bruno@clisp.org>
95146         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
95147         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
95148         defined.
95150 2006-07-26  Eric Blake  <ebb9@byu.net>
95152         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
95154 2006-07-26  Eric Blake  <ebb9@byu.net>
95156         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
95157         like mingw that lack mkstemp.
95158         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
95159         avoid compilation warning on mingw.
95161 2006-07-26  Bruno Haible  <bruno@clisp.org>
95163         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
95164         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
95165         INT_FAST*_MIN, INTPTR_MIN.
95167 2006-07-25  Bruno Haible  <bruno@clisp.org>
95169         * modules/version-etc (Depends-on): Add stdarg.
95171 2006-07-25  Bruno Haible  <bruno@clisp.org>
95173         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
95174         complex commands.
95176 2006-07-25  Bruno Haible  <bruno@clisp.org>
95178         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
95179         defined in <stdarg.h> or config.h.
95181 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
95183         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
95184         (gl_STDIO_SAFER): Remove.
95186 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
95188         * MODULES.html.sh (File stream based Input/Output):
95189         Add fopen-safer, tmpfile-safer; remove stdio-safer.
95190         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
95191         * modules/fopen-safer, modules/tmpfile-safer: New files.
95192         * modules/stdio-safer: Remove.
95194 2006-07-24  Bruno Haible  <bruno@clisp.org>
95196         * modules/tmpdir: New file.
95197         * MODULES.html.sh (File system functions): Add it.
95199 2006-07-24  Bruno Haible  <bruno@clisp.org>
95201         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
95202         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
95204 2006-07-24  Bruno Haible  <bruno@clisp.org>
95206         * modules/clean-temp: New file.
95208 2006-07-24  Bruno Haible  <bruno@clisp.org>
95210         * m4/tmpdir.m4: New file, from GNU gettext.
95212 2006-07-24  Bruno Haible  <bruno@clisp.org>
95214         * lib/tmpdir.h: New file, from GNU gettext.
95215         * lib/tmpdir.c: New file, from GNU gettext.
95217 2006-07-24  Bruno Haible  <bruno@clisp.org>
95219         * lib/clean-temp.h: New file, from GNU gettext.
95220         * lib/clean-temp.c: New file, from GNU gettext.
95222 2006-07-23  Eric Blake  <ebb9@byu.net>
95224         * modules/stdio-safer (Files): Add tmpfile-safer.c.
95225         (Depends-on): Add binary-io.
95227 2006-07-23  Eric Blake  <ebb9@byu.net>
95229         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
95231 2006-07-23  Eric Blake  <ebb9@byu.net>
95233         * lib/tmpfile-safer.c: New file.
95234         * lib/stdio-safer.h (fopen_safer): Add prototype.
95235         * lib/stdio--.h (tmpfile): Make safer.
95237 2006-07-23  Bruno Haible  <bruno@clisp.org>
95239         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
95240         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
95241         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
95242         gl_linked_remove_at): Use it.
95244 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
95245         and Simon Josefsson <jas@extundo.com>
95247         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
95249         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
95251 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
95253         * modules/close-stream: New file.
95254         * modules/closeout (Description): Make it clear that it exits
95255         with a diagnostic on error.
95256         (Depends-on): Add close-stream.  Remove fpending, stdbool.
95257         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
95259 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
95261         * m4/close-stream.m4: New file.
95263 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
95265         * lib/close-stream.c, lib/close-stream.h: New files.
95267 2006-07-22  Bruno Haible  <bruno@clisp.org>
95269         Merge from GNU gettext 0.15.
95271         2006-05-01  Bruno Haible  <bruno@clisp.org>
95273                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
95275         2006-07-22  Bruno Haible  <bruno@clisp.org>
95277                 * modules/javaversion: New file.
95278                 * MODULES.html.sh (Java): Add javaversion.
95280         2006-03-12  Bruno Haible  <bruno@clisp.org>
95282                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
95284         2005-12-04  Bruno Haible  <bruno@clisp.org>
95286                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
95287                 (untested).
95289         2006-06-21  Bruno Haible  <bruno@clisp.org>
95291                 Avoid warnings from recent versions of mcs.
95292                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
95293                 -o, -L, -r any more. Use options documented since mcs-1.0
95294                 instead. Similarly for -g.
95296         2005-12-04  Bruno Haible  <bruno@clisp.org>
95298                 * build-aux/csharpcomp.sh.in: Suffix for resources is
95299                 .resources, not .resource.
95301         2005-07-09  Bruno Haible  <bruno@clisp.org>
95303                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
95304                 add a .dll suffix.
95305                 Reported by Mark Junker <mjscod@gmx.de>.
95307         2006-07-22  Bruno Haible  <bruno@clisp.org>
95309                 * modules/gettext: Upgrade to gettext-0.15.
95310                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
95311                 m4/visibility.m4.
95312                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
95314 2006-07-22  Bruno Haible  <bruno@clisp.org>
95316         Merge from GNU gettext 0.15.
95318         2006-03-25  Bruno Haible  <bruno@clisp.org>
95320                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
95322         2006-07-21  Bruno Haible  <bruno@clisp.org>
95324                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
95325                 "1.1".
95327         2006-05-09  Bruno Haible  <bruno@clisp.org>
95329                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
95330                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
95331                 for the conftestver execution.
95333         2006-05-01  Bruno Haible  <bruno@clisp.org>
95335                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
95336                 optional target-version argument. Verify that the compiler
95337                 groks source of the specified source-version, or add -source
95338                 option as necessary. Verify that the compiler produces
95339                 bytecode in the specified target-version, or add -target and
95340                 -source options as necessary. Make the result of the test
95341                 available as variable CONF_JAVAC. Also log error output in
95342                 config.log.
95344         2006-03-11  Bruno Haible  <bruno@clisp.org>
95346                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
95348         2006-05-09  Bruno Haible  <bruno@clisp.org>
95350                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
95351                 CLASSPATH_SEPARATOR to a semicolon.
95353         2006-03-12  Bruno Haible  <bruno@clisp.org>
95355                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
95356                 available as variable CONF_JAVA, for subsequent autoconf
95357                 tests. Also log error output in config.log.
95359         2006-07-19  Bruno Haible  <bruno@clisp.org>
95361                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
95362                 that getline works on glibc2 systems. Needed to avoid trouble
95363                 in relocatable.c.
95364                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
95366         2005-12-04  Bruno Haible  <bruno@clisp.org>
95368                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
95369                 launcher (untested).
95371         2005-12-04  Bruno Haible  <bruno@clisp.org>
95373                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
95375         2006-07-22  Bruno Haible  <bruno@clisp.org>
95377                 * gettext.m4: Update from GNU gettext-0.15.
95378                 * nls.m4: Likewise.
95379                 * po.m4: Likewise.
95380                 * inttypes-pri.m4: Likewise.
95381                 * inttypes-h.m4: Renamed from inttypes.m4.
95382                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
95384 2006-07-22  Bruno Haible  <bruno@clisp.org>
95386         Merge from GNU gettext 0.15.
95388         2005-07-05  Bruno Haible  <bruno@clisp.org>
95390                 * printf-args.c (printf_fetchargs): Work around broken
95391                 definition of wint_t on mingw.
95393         2005-02-12  Bruno Haible  <bruno@clisp.org>
95395                 * xallocsa.h: Add extern "C" for C++.
95397         2006-05-17  Bruno Haible  <bruno@clisp.org>
95399                 Cygwin portability.
95400                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
95402         2006-04-30  Bruno Haible  <bruno@clisp.org>
95404                 * progreloc.c: Include <mach-o/dyld.h> if available.
95405                 (find_executable): Use _NSGetExecutablePath when possible.
95407         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
95409                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
95410                 function.
95412         2005-12-29  Bruno Haible  <bruno@clisp.org>
95414                 * progreloc.c (set_program_name_and_installdir): Fix
95415                 compilation error.
95417         2005-12-04  Bruno Haible  <bruno@clisp.org>
95419                 Cygwin portability.
95420                 * progreloc.c: Include <windows.h> also on Cygwin.
95421                 (find_executable): Add support for Cygwin.
95422                 (set_program_name_and_installdir): Handle also platforms with
95423                 nonempty EXEEXT.
95425         2006-07-11  Bruno Haible  <bruno@clisp.org>
95427                 * javacomp.c: Fix a comment.
95428                 Reported by Jim Meyering.
95430         2006-04-30  Bruno Haible  <bruno@clisp.org>
95432                 * javacomp.h (compile_java_class): Add source_version,
95433                 target_version arguments.
95434                 * javacomp.c: Rewritten to choose only a compiler that
95435                 respects the specified source_version and target_version.
95437         2006-06-27  Bruno Haible  <bruno@clisp.org>
95439                 Assume correct S_ISDIR macro.
95440                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
95442         2006-07-22  Bruno Haible  <bruno@clisp.org>
95444                 * javaversion.h: New file, from GNU gettext.
95445                 * javaversion.c: New file, from GNU gettext.
95446                 * javaversion.java: New file, from GNU gettext.
95447                 * javaversion.class: New file, from GNU gettext.
95449         2006-05-17  Bruno Haible  <bruno@clisp.org>
95451                 Cygwin portability.
95452                 * javaexec.c (execute_java_class): Test for jview program
95453                 also on Cygwin.
95455         2006-04-09  Bruno Haible  <bruno@clisp.org>
95457                 * fatal-signal.c: Don't include string.h.
95458                 (at_fatal_signal): Use a copying loop instead of memcpy.
95460         2005-12-04  Bruno Haible  <bruno@clisp.org>
95462                 * csharpexec.c: Add support for 'clix' launcher (untested).
95463                 (execute_csharp_using_sscli): New function.
95464                 (execute_csharp_program): Call it.
95466         2006-06-21  Bruno Haible  <bruno@clisp.org>
95468                 Avoid warnings from recent versions of mcs.
95469                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
95470                 -o, -L, -r any more. Use options documented since mcs-1.0
95471                 instead. Similarly for -g.
95473         2005-07-09  Bruno Haible  <bruno@clisp.org>
95475                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
95476                 add a .dll suffix.
95477                 Reported by Mark Junker <mjscod@gmx.de>.
95479         2006-06-17  Bruno Haible  <bruno@clisp.org>
95481                 * config.charset: Update for NetBSD 3.0.
95483         2006-05-17  Bruno Haible  <bruno@clisp.org>
95485                 Cygwin portability.
95486                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
95488         2006-05-16  Bruno Haible  <bruno@clisp.org>
95490                 * localcharset.c [CYGWIN]: Include <windows.h>.
95491                 (get_charset_aliases): For Cygwin, return the same CPxxx
95492                 aliases list as under WIN32.
95493                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
95494                 the environment variables. Fall back to GetACP().
95496         2006-04-05  Bruno Haible  <bruno@clisp.org>
95498                 * config.charset: Update Juan Manuel Guerrero's address.
95500         2005-02-12  Bruno Haible  <bruno@clisp.org>
95502                 * allocsa.h: Add extern "C" for C++.
95504         2005-02-10  Bruno Haible  <bruno@clisp.org>
95506                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
95507                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
95509         2006-07-22  Bruno Haible  <bruno@clisp.org>
95511                 * gettext.h: Update to GNU gettext-0.15.
95513 2006-07-22  Bruno Haible  <bruno@clisp.org>
95515         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
95516         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
95517         lib-prefix.m4, longdouble.m4, ssize_t.m4.
95519 2006-07-21  Eric Blake  <ebb9@byu.net>
95521         * modules/stdlib-safer: New file.
95522         * MODULES.html.sh (File stream based Input/Output): Add
95523         stdlib-safer.
95525 2006-07-21  Eric Blake  <ebb9@byu.net>
95527         * lib/stdlib-safer.h: New file from coreutils, required by
95528         stdlib--.h.
95530 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
95532         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
95534 2006-07-20  Bruno Haible  <bruno@clisp.org>
95536         * gnulib-tool: Recognize new option --assume-autoconf.
95537         (autoconf_minversion): New variable.
95538         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
95540 2006-07-20  Bruno Haible  <bruno@clisp.org>
95542         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
95544 2006-07-19  Derek R. Price  <derek@ximbiot.com>
95546         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
95547         Reindent and repaginate.
95549 2006-07-19  Derek Price  <derek@ximbiot.com>
95551         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
95552         Correct grammar.
95554 2006-07-17  Bruno Haible  <bruno@clisp.org>
95556         * modules/list: New file.
95557         * modules/array-list: New file.
95558         * modules/carray-list, modules/carray-list-tests: New files.
95559         * modules/linked-list, modules/linked-list-tests: New files.
95560         * modules/avltree-list, modules/avltree-list-tests: New files.
95561         * modules/rbtree-list, modules/rbtree-list-tests: New files.
95562         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
95563         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
95564         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
95565         * modules/oset: New file.
95566         * modules/array-oset: New file.
95567         * modules/avltree-oset, modules/avltree-oset-tests: New files.
95568         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
95569         * tests/test-carray_list.c: New file.
95570         * tests/test-linked_list.c: New file.
95571         * tests/test-avltree_list.c: New file.
95572         * tests/test-rbtree_list.c: New file.
95573         * tests/test-linkedhash_list.c: New file.
95574         * tests/test-avltreehash_list.c: New file.
95575         * tests/test-rbtreehash_list.c: New file.
95576         * tests/test-avltree_oset.c: New file.
95577         * tests/test-rbtree_oset.c: New file.
95578         * MODULES.html.sh (Container data structures): New section.
95580 2006-07-17  Bruno Haible  <bruno@clisp.org>
95582         * m4/gl_list.m4: New file.
95584 2006-07-17  Bruno Haible  <bruno@clisp.org>
95586         * lib/gl_list.h: New file.
95587         * lib/gl_list.c: New file.
95588         * lib/gl_array_list.h: New file.
95589         * lib/gl_array_list.c: New file.
95590         * lib/gl_carray_list.h: New file.
95591         * lib/gl_carray_list.c: New file.
95592         * lib/gl_linked_list.h: New file.
95593         * lib/gl_linked_list.c: New file.
95594         * lib/gl_anylinked_list1.h: New file.
95595         * lib/gl_anylinked_list2.h: New file.
95596         * lib/gl_avltree_list.h: New file.
95597         * lib/gl_avltree_list.c: New file.
95598         * lib/gl_anyavltree_list1.h: New file.
95599         * lib/gl_anyavltree_list2.h: New file.
95600         * lib/gl_rbtree_list.h: New file.
95601         * lib/gl_rbtree_list.c: New file.
95602         * lib/gl_anyrbtree_list1.h: New file.
95603         * lib/gl_anyrbtree_list2.h: New file.
95604         * lib/gl_anytree_list1.h: New file.
95605         * lib/gl_anytree_list2.h: New file.
95606         * lib/gl_linkedhash_list.h: New file.
95607         * lib/gl_linkedhash_list.c: New file.
95608         * lib/gl_anyhash_list1.h: New file.
95609         * lib/gl_anyhash_list2.h: New file.
95610         * lib/gl_avltreehash_list.h: New file.
95611         * lib/gl_avltreehash_list.c: New file.
95612         * lib/gl_rbtreehash_list.h: New file.
95613         * lib/gl_rbtreehash_list.c: New file.
95614         * lib/gl_anytreehash_list1.h: New file.
95615         * lib/gl_anytreehash_list2.h: New file.
95617         * lib/gl_oset.h: New file.
95618         * lib/gl_oset.c: New file.
95619         * lib/gl_array_oset.h: New file.
95620         * lib/gl_array_oset.c: New file.
95621         * lib/gl_avltree_oset.h: New file.
95622         * lib/gl_avltree_oset.c: New file.
95623         * lib/gl_rbtree_oset.h: New file.
95624         * lib/gl_rbtree_oset.c: New file.
95625         * lib/gl_anytree_oset.h: New file.
95627 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
95629         * m4/mkancesdirs.m4: New file.
95630         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
95631         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
95632         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
95633         it.
95635 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
95637         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
95638         * lib/mkancesdirs.h: New files.
95639         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
95640         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
95641         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
95642         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
95643         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
95644         callers changed.  Revamp internals significantly, by not
95645         attempting to create directories that are temporarily more
95646         permissive than the final results.  Do not attempt to use
95647         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
95648         This removes some race conditions, fixes some bugs, and simplifies
95649         things.  Use new dirchownmod function to do owner and mode changes.
95650         * lib/mkdir-p.h: Likewise.
95651         * lib/modechange.c (octal_to_mode): New function.
95652         (struct mode_change): New member mentioned.
95653         (make_node_op_equals): New arg mentioned.  All callers changed.
95654         (mode_compile): Keep track of which mode bits the user has explicitly
95655         mentioned.
95656         (mode_adjust): New arg DIR, so that we implement the X op correctly.
95657         New arg PMODE_BITS, to keep track of which mode bits the user
95658         mentioned; it treats S_ISUID and S_ISGID speciall.
95659         All callers changed.
95660         * lib/modechange.h: Likewise.
95662 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
95664         * MODULES.html.sh: Add mkancestors.
95665         * modules/mkancesdirs: New module.
95666         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
95667         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
95668         The chdir-safer and afs files are now orphans; I'll remove them
95669         unless someone speaks up.
95670         Add lib/dirchownmod.c, lib/dirchownmod.h.
95671         (Depends-on): Remove alloca, chown, save-cwd, dirname.
95672         Add lchown, mkancesdirs.
95673         (Maintainer): Add self.
95675 2006-07-15  Karl Berry  <karl@gnu.org>
95677         * gnulib-tool: help message wording/arrangement.
95679 2006-07-14  Simon Josefsson  <jas@extundo.com>
95681         * doc/gnulib.texi (Libtool and Windows): New section.
95683 2006-07-12  Simon Josefsson  <jas@extundo.com>
95685         * modules/gendocs (License): Fix license, approved by Karl.
95687 2006-07-12  Eric Blake  <ebb9@byu.net>
95689         * MODULES.html.sh: Add gendocs.
95691 2006-07-11  Eric Blake  <ebb9@byu.net>
95693         * modules/fdl: New module, to install doc/fdl.texi.
95694         * MODULES.html.sh: Add new section for documentation modules.
95695         * gnulib-tool: Avoid space-tab.
95696         (--doc-base): New option, to manage files from doc.
95698 2006-07-11  Eric Blake  <ebb9@byu.net>
95700         * m4/absolute-header.m4: Fix comments to match recent change.
95702 2006-07-11  Eric Blake  <ebb9@byu.net>
95704         * gnulib-tool: List --doc-base before --tests-base.
95706 2006-07-11  Derek R. Price  <derek@ximbiot.com>
95708         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
95710 2006-07-11  Bruno Haible  <bruno@clisp.org>
95712         * README: Mention where to put documentation.
95714 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
95716         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
95718 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
95720         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
95721         to stdint.m4.
95723 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
95725         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
95726         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
95727         "no/such/file/stdint.h" when there is no such file, so that
95728         the resulting C code can be parsed by dodgy compilers.
95729         Problems reported by Bob Proulx.
95731 2006-07-10  Derek R. Price  <derek@ximbiot.com>
95733         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
95734         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
95735         macros into the GNU _D_EXACT_NAMLEN.
95736         * lib/savedir.c:  Likewise.
95737         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
95739 2006-07-10  Derek R. Price  <derek@ximbiot.com>
95740         and Paul Eggert  <eggert@cs.ucla.edu>
95742         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
95743         * m4/savedir.m4:
95744         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
95745         macros into the GNU _D_EXACT_NAMLEN.
95747 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
95749         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
95750         around the absolute name, to work around a problem with the HP-UX
95751         11.23 native C compiler, reported by Bob Proulx.
95753 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
95755         * doc/maintain.texi, make-stds.texi: Sync from
95756         <http://savannah.gnu.org/projects/gnustandards>.
95758 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
95760         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
95762 2006-07-09  Jim Meyering  <jim@meyering.net>
95764         * m4/glob.m4: Remove a doubled word in a comment.
95766 2006-07-09  Jim Meyering  <jim@meyering.net>
95768         * lib/argp-pv.c: Remove a doubled word in a comment.
95769         * lib/check-version.c (check_version): Likewise.
95770         * lib/javacomp.c (compile_java_class): Likewise.
95772 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
95774         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
95775         for the benefit of people using Autoconf 2.60.  If you want to
95776         support older Autoconf versions you can copy m4/onceonly_2_57.m4
95777         (or m4/onceonly.m4, if pre-2.57) manually.
95779 2006-07-08  Jim Meyering  <jim@meyering.net>
95781         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
95782         comment.
95783         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
95784         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
95785         comment.
95787 2006-07-08  Jim Meyering  <jim@meyering.net>
95789         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
95791 2006-07-07  Simon Josefsson  <jas@extundo.com>
95793         * tests/test-crc.c: Change expected crc value, the test vector
95794         were probably computed using the old broken crc.c?
95796 2006-07-06  Simon Josefsson  <jas@extundo.com>
95798         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
95799         now the canonical place for the M4 file).
95801         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
95802         from the sys_socket dependency now.
95804         * modules/inet_pton (Files): Ditto.
95806         * modules/inet_ntop (Files): Ditto.
95808 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
95810         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
95811         not gl_PREREQ_GETUSERSHELL.
95813 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
95815         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
95816         with only one argument, for Autoconf 2.60.
95817         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
95818         expand to nothing, so add a shell command to avoid syntax error.
95819         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
95821 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
95823         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
95825 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
95827         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
95828         no longer needed.  Check for isblank decl.
95829         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
95830         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
95831         of existence.
95833 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
95835         * lib/getloadavg.c: Use __VMS, not VMS.
95836         * lib/getopt.c: Likewise.
95837         * lib/getpagesize.h: Likewise.
95838         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
95839         and probably does not work.
95841 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
95843         * lib/.cppi-disable: Add wcwidth.
95844         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
95845         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
95846         (ISGRAPH): Remove.  All uses changed to isgraph.
95847         (FOLD) [!defined _LIBC]: Remove special case.
95848         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
95849         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
95850         HAVE_ISBLANK.
95851         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
95852         case.
95854 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
95856         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
95857         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
95858         brackets.  Other minor changes to suppress some compiler
95859         warnings.
95861 2006-07-06  Derek R. Price  <derek@ximbiot.com>
95862         and Paul Eggert  <eggert@cs.ucla.edu>
95864         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
95865         of invoking obsolescent AC_HEADER_DIRENT macro.
95866         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
95867         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
95868         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
95869         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
95870         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
95871         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
95872         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
95873         * m4/readdir.m4: Remove; no longer needed.
95875 2006-07-06  Derek R. Price  <derek@ximbiot.com>
95876         and Paul Eggert  <eggert@cs.ucla.edu>
95878         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
95879         Don't worry about this obsolete case any more.
95880         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
95881         directories.
95882         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
95883         worry about this obsolete case any more.
95884         * lib/fts.c: Likewise.
95885         * lib/getcwd.c: Likewise.
95886         * lib/glob.h: Likewise.
95887         * lib/savedir.c: Likewise.
95889 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
95891         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
95892         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
95893         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
95894         needed.
95895         All uses removed.
95896         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
95897         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
95898         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
95899         needed.
95900         * m4/getdate.m4 (gl_GETDATE): Likewise.
95901         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
95902         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
95903         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
95904         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
95905         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
95906         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
95907         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
95908         needed.
95910 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
95912         * lib/memcasecmp.c: Include <limits.h>.
95913         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
95914         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
95915         Don't assume isdigit succeeds only on '0' through '9'.
95917 2006-07-05  Eric Blake  <ebb9@byu.net>
95919         * modules/getaddrinfo (Depends-on): Add snprintf.
95921 2006-07-05  Eric Blake  <ebb9@byu.net>
95923         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
95924         to avoid 'header present but could not be compiled' on cygwin.
95926 2006-07-05  Eric Blake  <ebb9@byu.net>
95928         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
95929         missing from netdb.h.
95930         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
95932 2006-07-05  Derek R. Price  <derek@ximbiot.com>
95934         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
95935         no longer needed.
95936         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
95937         * m4/getdate.m4 (gl_GETDATE): Likewise.
95938         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
95939         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
95940         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
95941         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
95942         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
95944 2006-07-05  Derek R. Price  <derek@ximbiot.com>
95946         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
95947         All uses of is_space replaced by isspace.
95948         * lib/exit.h: Don't talk about STDC_HEADERS.
95949         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
95950         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
95951         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
95952         replaced by isprint etc.
95953         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
95954         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
95955         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
95956         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
95957         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
95958         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
95960 2006-07-05  Bruno Haible  <bruno@clisp.org>
95962         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
95963         the function exists, before testing against AIX.
95964         Reported by Martin Lambers <marlam@marlam.de>.
95966 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
95968         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
95969         From Mark D. Baushke.
95971 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
95973         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
95974         to the absolute name, not just one, to bypass Sun C 5.8's
95975         "warning: #include of /usr/include/... may be non-portable".
95977 2006-07-04  Eric Blake  <ebb9@byu.net>
95979         * modules/dirname-tests: New test module.
95980         * tests/test-dirname.c: New file, replacing dirname.c
95981         TEST_DIRNAME section that was recently deleted.
95983 2006-07-04  Bruno Haible  <bruno@clisp.org>
95985         Assume ANSI C header files and <ctype.h> functions.
95986         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
95987         (mbsnwidth): Use isprint, iscntrl instead.
95989 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
95991         Merge from coreutils.
95992         * MODULES.html.sh: Add xstrtold.
95993         * modules/xstrtold: New file.
95994         * modules/cycle-check (Files): Add lib/same-inode.h.
95995         * modules/dirname (Files): Add m4/double-slash-root.m4.
95996         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
95997         * modules/mkdir-p (Files): Add lib/same-inode.h.
95998         * modules/same (Files): Add lib/same-inode.h.
96000 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
96002         * m4/absolute-header.m4: Renamed from full-header-path.m4.
96003         This is to keep the terminology clean; POSIX talks about
96004         "absolute pathnames", not "full pathnames", but the GNU
96005         Coding Standards say to use "path" for something else;
96006         so use "absolute" to keep both sides happy.
96007         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
96008         Set gl_absolute_header, not gl_full_header_path.
96009         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
96010         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
96011         All uses changed.
96013         Merge from coreutils.
96015         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
96017         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
96018         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
96019         want to require the building of c-strtod.o.
96020         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
96021         needs -lm directly.
96022         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
96024         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
96026         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
96027         --as-needed option if available.  Problem reported by Albert Chin in
96028         <http://lists.gnu.org/r/bug-gnulib/2006-06/msg00114.html>.
96029         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
96030         cc merely issues a bunch of annoying warnings for --as-needed
96031         (this problem was reported by Bob Proulx).  Also, try linking with
96032         -lm to detect a bug in binutils 2.16 (this problem was reported
96033         by Ralf Wildenhues).
96035         2006-06-18  Jim Meyering  <jim@meyering.net>
96037         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
96038         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
96039         macro.
96040         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
96041         also check for glibc-2.4's abort-inducing bug.
96043         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
96044         Low-probability clean-up should be to use rmdir to get rid of
96045         the just-created directory, not unlink.
96047         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
96048         configure fail, and request a bug report to inform us about it.
96049         Add a comment that, barring reports to the contrary, in 2007 we'll
96050         assume ftruncate is universally available.
96052         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
96054         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
96056         2006-03-12  Jim Meyering  <jim@meyering.net>
96058         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
96059         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
96060         * m4/same.m4 (gl_SAME): Likewise.
96061         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
96063         2006-03-11  Eric Blake  <ebb9@byu.net>
96065         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
96066         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
96067         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
96068         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
96070 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
96072         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
96073         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
96074         reported by Mark D. Baushke, one in
96075         <http://lists.gnu.org/r/bug-gnulib/2006-07/msg00015.html>.
96077         Merge from coreutils.
96079         * lib/.cppi-disable: Add stdint_.h.
96080         * lib/.cvsignore: Add stdint.h.
96082         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
96084         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
96085         both double and long double versions.
96086         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
96087         * lib/xstrtold.c: New file.
96088         * lib/xstrtod.h (xstrtold): New decl.
96090         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
96092         * lib/filemode.c (setst): Remove.
96093         (strmode): Rewrite to avoid setst.  This makes the code shorter,
96094         (arguably) clearer, and the generated code is a bit smaller on my
96095         Debian GNU/Linux stable x86 host.
96097         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
96099         * lib/filemode.c: Include "filemode.h" first, to test the interface.
96100         Assume that filemode.h includes sys/types.h and sys/stat.h.
96101         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
96102         (ftypelet): Reorder to put common cases first, for efficiency.
96103         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
96104         to do 'M'.
96105         (strmode): Renamed from mode_string, and now stores 12 bytes instead
96106         of 10, for compatibility with FreeBSD.  All callers changed.
96107         (filemodestring): Now stores 12 bytes instead of 10, and sets file
96108         types that can't be deduced solely from st_mode.  First arg is now a
96109         const pointer.
96110         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
96111         (strmode): Renamed from mode_string.
96112         (filemodestring): New decl.
96113         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
96114         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
96115         needed.
96116         (S_ISPORT, S_ISWHT): New macros, if not already defined.
96118         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
96120         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
96121         fsusage.h now does that.  Include fsusage.h first, to test interface.
96122         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
96123         at most one method (the old code could have generated decls that
96124         didn't conform to C89, not that this was ever exercised).
96125         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
96127         2006-03-19  Jim Meyering  <jim@meyering.net>
96129         Work even in a chroot where d_ino values for entries in "/"
96130         don't match the stat.st_ino values for the same names.
96131         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
96132         number, iterate through all entries again, using lstat instead.
96133         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
96134         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
96136         * lib/getcwd.c (__getcwd): Clarify a comment.
96137         Use memcpy in place of a call to strcpy.
96139         2006-03-12  Jim Meyering  <jim@meyering.net>
96141         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
96142         matches that of the current directory (which we're about to chdir ".."
96143         out of), then save the dev-ino of the parent, instead.
96145         * lib/same-inode.h (SAME_INODE): New file/macro.
96146         * lib/chdir-safer.c (SAME_INODE): Remove definition.
96147         Include "same-inode.h", instead.
96148         * lib/same.c: Likewise.
96149         * lib/cycle-check.h: Include "same-inode.h".
96150         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
96151         * lib/cycle-check.c (SAME_INODE): Remove definition.
96152         * lib/root-dev-ino.h: Include "same-inode.h".
96154         2006-03-11  Eric Blake  <ebb9@byu.net>
96156         * lib/same.c (same_name): s/base_name/last_component/
96157         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
96158         * lib/filenamecat.c (file_name_concat): Likewise.
96160         2006-03-11  Eric Blake  <ebb9@byu.net>,
96161                     Paul Eggert  <eggert@cs.ucla.edu>
96163         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
96164         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
96165         drive prefix.
96166         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
96167         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
96168         (last_component): New method.
96169         * lib/dirname.c (dir_len): Determine when drive letters need a
96170         subsequent slash.  Preserve // when it is special.
96171         (dir_name): Don't append dot when drive letter is absolute.
96172         [TEST_DIRNAME]: Move into a full-blown gnulib test.
96173         * lib/basename.c (base_name): New semantics - malloc the result.
96174         Preserve // when it is special.  Preserve relative files that look
96175         like drive letters.
96176         (base_len): Preserve // when it is special.
96177         (last_component): New method, similar to old base_name semantics.
96178         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
96179         base_name.  Strip redundant slashes from ///.
96181 2006-07-03  Jim Meyering  <jim@meyering.net>
96183         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
96184         macro is used before the first cycle_check call.
96186 2006-07-03  Eric Blake  <ebb9@byu.net>
96188         * modules/dirname (Depends-on): Add xstrndup.
96190 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
96192         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
96193         test cases, so that config.log is a bit easier to follow.
96195 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
96197         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
96198         both are 64 bits, since this seems to be the tradition, and this
96199         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
96200         we ever run into a host that prefers long long to long in this
96201         case, we'll need another configure-time test.  Problem reported by
96202         Jim Meyering.
96204 2006-07-02  Eric Blake  <ebb9@byu.net>
96206         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
96208 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
96210         * modules/inttypes (Depends-on): No longer depends on stdint.
96211         * modules/stdint (Description): Say more about assumptions.
96212         Say that the fast types might differ.  Say macros are used.
96213         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
96214         (Makefile.am): Revise list of substituted symbols to match
96215         new stdint.m4.
96216         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
96217         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
96218         * tests/test-stdint.c (verify_same_types)
96219         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
96220         the code conforms to C99/C89.
96221         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
96222         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
96224 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
96226         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
96227         but fix a bug, by requiring at least 64 bits.
96228         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
96229         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
96230         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
96231         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
96233         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
96234         changes.  Make 2.59 a prerequisite.  Check and substitute for
96235         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
96236         inttypes.h.  Do not use special include files; just use the
96237         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
96238         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
96239         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
96240         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
96241         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
96242         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
96243         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
96244         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
96245         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
96246         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
96247         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
96248         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
96249         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
96250         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
96251         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
96252         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
96253         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
96254         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
96255         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
96256         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
96257         WINT_MAX.  Check for C99 conformance more strictly, by detecting
96258         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
96259         not check for things that C99 does not require, e.g., int8_t.  If
96260         a test isn't needed unless <stdint.h> isn't working, and is
96261         unlikely to be needed for any other reason, then don't do it
96262         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
96263         size_t, since we assume C89 freestanding at least.  Do not check
96264         for sig_atomic_t, wchar_t, or wint_t, since the code now does
96265         the right thing even if the types are not defined.  Instead use:
96266         (gl_STDINT_TYPE_PROPERTIES): New macro.
96267         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
96268         testing whether <sys/types.h> clashes, as Autoconf does this for
96269         us now.  All uses removed.
96270         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
96271         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
96272         (gl_CHECK_TYPE_SAME):
96273         Remove; no longer needed.
96274         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
96275         exists, since we'll return 0 anyway in that case.
96276         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
96278 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
96280         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
96281         possible collision with system files.
96282         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
96283         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
96284         WCHAR_MIN and WCHAR_MAX in this case.
96285         (<stddef.h>): Do not include; no longer needed.
96286         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
96287         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
96288         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
96289         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
96290         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
96291         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
96292         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
96293         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
96294         !defined(__c99))]: Include in this case too, since it's harmless
96295         now.
96296         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
96297         dangerous to do so.
96298         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
96299         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
96300         (_STDINT_MIN, _STDINT_MAX): New macros.
96301         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
96302         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
96303         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
96304         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
96305         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
96306         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
96307         macros, not typedefs; this simplifies things quite a bit.
96308         Use long int for all types narrower than int64_t.
96309         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
96310         Define in terms of long long int or int64_t or long int,
96311         not int64_t or int32_t.  This saves some compile-time testing.
96312         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
96313         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
96314         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
96315         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
96316         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
96317         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
96318         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
96319         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
96320         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
96321         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
96322         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
96323         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
96324         undef any previous version and define our own version, for
96325         simplicity and consistency with the new macros for types.
96326         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
96327         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
96328         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
96329         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
96330         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
96331         @WINT_T_SUFFIX@ to keep things simple here.
96332         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
96333         Simplify by assuming typical 8/16/32/64 host, since we're
96334         already doing that elsewhere anyway.
96335         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
96336         and assume long long int is 64 bits if available.  This
96337         speeds up 'configure'.
96339 2006-07-01  Eric Blake  <ebb9@byu.net>
96341         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
96342         Reported by Andreas Buening.
96344 2006-07-01  Eric Blake  <ebb9@byu.net>
96346         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
96348 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
96350         * lib/getaddrinfo.c: fixed typo
96352 2006-06-29  Jim Meyering  <jim@meyering.net>
96354         * modules/strftime (Maintainer): Add my name, since with the
96355         FPRINTFTIME changes strftime.c has forked from glibc.
96357 2006-06-29  Eric Blake  <ebb9@byu.net>
96359         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
96361 2006-06-29  Eric Blake  <ebb9@byu.net>
96363         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
96365 2006-06-29  Eric Blake  <ebb9@byu.net>
96367         * lib/stat_.h: New file.
96369 2006-06-29  Eric Blake  <ebb9@byu.net>
96371         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
96372         unused static function.
96374 2006-06-29  Eric Blake  <ebb9@byu.net>
96376         * doc/functions.texi (Function Portability): Document missing lstat
96377         on mingw.
96379 2006-06-29  Eric Blake  <ebb9@byu.net>
96381         * MODULES.html.sh: Add sys_stat.
96382         * modules/sys_stat: New module.
96383         * modules/mkstemp (Depends-on): Add sys_stat.
96385 2006-06-29  Derek R. Price  <derek@ximbiot.com>
96387         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
96389 2006-06-29  Derek R. Price  <derek@ximbiot.com>
96391         * m4/c-bs-a.m4: Removed.
96393 2006-06-29  Derek R. Price  <derek@ximbiot.com>
96395         * lib/strftime.c: Assume strftime() exists.
96397 2006-06-29  Derek Price  <derek@ximbiot.com>
96399         * modules/c-bs-a: Removed - \a is C89.
96400         * MODULES.html.sh: Remove c-bs-a.
96402 2006-06-29  Bruno Haible  <bruno@clisp.org>
96404         * modules/wcwidth (License): Change to LGPL.
96406 2006-06-28  Simon Josefsson  <jas@extundo.com>
96408         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
96409         on _WIN32.
96411         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
96412         getnameinfo.
96414 2006-06-28  Simon Josefsson  <jas@extundo.com>
96416         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
96418 2006-06-28  Simon Josefsson  <jas@extundo.com>
96420         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
96421         functions there.  It will succeed on Windows XP, but on Windows
96422         2000 and (presumably) earlier, it will fail, and use the internal
96423         re-implementation.
96424         (use_win32_p): New function.
96425         (getaddrinfo): Use strtoul on servname, to support numeric ports.
96426         Support AI_NUMERICSERV to disable getservbyname.
96427         (getnameinfo): New function, only supports
96428         NI_NUMERICHOST|NI_NUMERICSERV for now.
96430         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
96431         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
96432         getnameinfo.
96434 2006-06-28  Eric Blake  <ebb9@byu.net>
96436         * modules/wcwidth: New file.
96437         * modules/mbchar (Depends-on): Add wcwidth.
96438         * modules/mbswidth (Depends-on): Add wcwidth.
96439         * MODULES.html.sh: Add wcwidth.
96441 2006-06-28  Eric Blake  <ebb9@byu.net>
96443         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
96444         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
96446 2006-06-28  Eric Blake  <ebb9@byu.net>
96448         * lib/xvasprintf.h: Fix comments.
96450 2006-06-28  Eric Blake  <ebb9@byu.net>
96452         * lib/mbchar.h (wcwidth): Include wcwidth.h.
96453         * lib/mbswidth.c (wcwidth): Move from here...
96454         * lib/wcwidth.h: ...to this new file.
96456 2006-06-28  Derek R. Price  <derek@ximbiot.com>
96458         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
96460         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
96461         it's obsolete.
96462         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
96464 2006-06-28  Derek R. Price  <derek@ximbiot.com>
96466         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
96467         Autoconf 2.60 says this stuff was obsolete.
96469 2006-06-28  Bruno Haible  <bruno@clisp.org>
96471         * modules/wcwidth (Files): Add m4/wchar_t.m4.
96473 2006-06-28  Bruno Haible  <bruno@clisp.org>
96475         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
96476         gt_TYPE_WCHAR_T.
96478 2006-06-28  Bruno Haible  <bruno@clisp.org>
96480         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
96481         declaration for wcwidth.
96482         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctype.h>.
96484 2006-06-28  Bruno Haible  <bruno@clisp.org>
96486         * lib/mkdtemp.c [MINGW]: Include <io.h>.
96487         (mkdir): Define using _mkdir.
96489 2006-06-28  Bruno Haible  <bruno@clisp.org>
96491         * lib/getaddrinfo.h: Fix POSIX URL.
96492         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
96493         _WIN32.
96494         (use_win32_p): Make static.
96495         (getaddrinfo): Reject service name if it is empty or does not consist
96496         solely of decimal digits, or if its value is > 65535.
96497         (getnameinfo): Remove useless casts.
96499 2006-06-27  Simon Josefsson  <jas@extundo.com>
96501         * modules/sys_select: New file, suggested by Bruno Haible, Paul
96502         Eggert and Martin Lambers.
96504 2006-06-27  Simon Josefsson  <jas@extundo.com>
96506         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
96507         Eggert and Martin Lambers.
96509 2006-06-27  Bruno Haible  <bruno@clisp.org>
96511         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
96512         result to 0, not to empty.
96513         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
96515 2006-06-27  Bruno Haible  <bruno@clisp.org>
96517         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
96519 2006-06-26  Simon Josefsson  <jas@extundo.com>
96521         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
96522         present.
96524 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
96526         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
96527         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
96528         <http://lists.gnu.org/r/bug-gnulib/2006-06/msg00181.html>.
96530 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
96532         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
96534 2006-06-26  Bruno Haible  <bruno@clisp.org>
96536         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
96538 2006-06-26  Bruno Haible  <bruno@clisp.org>
96540         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
96542 2006-06-26  Bruno Haible  <bruno@clisp.org>
96544         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
96545         SGI C compiler in pre-C99 mode.
96546         Suggested by Mark D. Baushke and Larry Jones.
96548 2006-06-26  Bruno Haible  <bruno@clisp.org>
96550         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
96551         WCHAR_MAX.
96552         Reported by Mark D. Baushke and Larry Jones.
96554 2006-06-26  Bruno Haible  <bruno@clisp.org>
96556         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
96557         in pre-C99 mode.
96558         Suggested by Mark D. Baushke and Larry Jones.
96560 2006-06-23  Simon Josefsson  <jas@extundo.com>
96561             Bruno Haible  <bruno@clisp.org>
96563         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
96564         Emit mostlyclean-local rule.
96565         (func_emit_tests_Makefile_am): Likewise.
96566         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
96568 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
96570         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
96572 2006-06-23  Bruno Haible  <bruno@clisp.org>
96574         * tests/test-stdint.c: Update to match ISO C 99 Technical
96575         Corrigendum 1.
96577 2006-06-23  Bruno Haible  <bruno@clisp.org>
96579         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
96581 2006-06-23  Bruno Haible  <bruno@clisp.org>
96583         * lib/stdint_.h: Treat IRIX like OpenBSD.
96585 2006-06-23  Bruno Haible  <bruno@clisp.org>
96587         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
96588         ISO C 99 Technical Corrigendum 1.
96590 2006-06-22  Simon Josefsson  <jas@extundo.com>
96592         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
96593         MinGW.
96595 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
96597         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
96598         needed.  Some compiler complained about some of them.  Problem reported
96599         by Larry Jones in
96600         <http://lists.gnu.org/r/bug-gnulib/2006-06/msg00172.html>.
96602 2006-06-21  Simon Josefsson  <jas@extundo.com>
96604         * tests/test-getaddrinfo.c: New file.
96606         * modules/getaddrinfo-tests: New file.
96608         * MODULES.html.sh: Add inet_pton.
96610         * modules/inet_pton: New file.
96612 2006-06-21  Simon Josefsson  <jas@extundo.com>
96614         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
96615         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
96616         of using the (limited) gnulib implementation on Windows XP.
96618         * m4/inet_pton.m4: New file.
96620 2006-06-21  Simon Josefsson  <jas@extundo.com>
96622         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
96623         variable.
96625         * lib/socket_.h: Don't define WINVER.
96627         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
96628         slightly modified to work in gnulib.
96630 2006-06-21  Simon Josefsson  <jas@extundo.com>
96632         * doc/gnulib.texi (Windows sockets): Add.
96634 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
96636         * lib/read-file.c (fread_file): Start with buffer allocation of
96637         0 bytes rather than 1 byte; this simplifies the code.
96638         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
96639         code to free buffer and save/restore errno.
96640         (internal_read_file): Remove unused local.
96642 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
96644         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
96645         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
96646         Problem reported by Denis Excoffier in
96647         <http://lists.gnu.org/r/bug-tar/2006-06/msg00023.html>.
96649 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
96651         * modules/sys_socket, modules/socklen: Include sys/types since
96652         FreeBSD 4.x's sys/socket.h needs it.
96654 2006-06-19  Simon Josefsson  <jas@extundo.com>
96656         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
96658 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
96660         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
96662 2006-06-19  Bruno Haible  <bruno@clisp.org>
96664         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
96665         and FULL_PATH_INTTYPES_H in angle brackets.
96666         Reported by Mark D. Baushke <mdb@gnu.org>.
96668 2006-06-17  Eric Blake  <ebb9@byu.net>
96670         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
96671         errno.
96673 2006-06-17  Bruno Haible  <bruno@clisp.org>
96675         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
96676         <sys/inttypes.h>.
96678 2006-06-17  Bruno Haible  <bruno@clisp.org>
96680         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
96681         whether errno is declared. Assume <errno.h> declares errno.
96683 2006-06-17  Bruno Haible  <bruno@clisp.org>
96685         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
96687 2006-06-17  Bruno Haible  <bruno@clisp.org>
96689         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
96690         problem on Solaris 2.5.1.
96692 2006-06-16  Eric Blake  <ebb9@byu.net>
96694         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
96695         * lib/unicodeio.c [!defined errno]: Likewise.
96696         * lib/strtol.c [!defined errno]: Likewise.
96697         * lib/strtod.c [!defined errno]: Likewise.
96699 2006-06-15  Eric Blake  <ebb9@byu.net>
96701         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
96703 2006-06-15  Eric Blake  <ebb9@byu.net>
96705         * config/srclist.txt (ssize_t.m4): Lose sync.
96707 2006-06-15  Bruno Haible  <bruno@clisp.org>
96709         * modules/stdint (Files): Include m4/full-header-path.m4,
96710         m4/size_max.m4, m4/wchar_t.m4.
96711         (Makefile.am): Many more substitutions.
96712         * modules/stdint-tests: New file.
96713         * tests/test-stdint.c: New file.
96715 2006-06-15  Bruno Haible  <bruno@clisp.org>
96717         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
96718         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
96719         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
96720         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
96721         gl_CHECK_TYPE_SAME): New macros.
96723 2006-06-15  Bruno Haible  <bruno@clisp.org>
96725         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
96727 2006-06-15  Bruno Haible  <bruno@clisp.org>
96729         * lib/stdint_.h: Rewritten to be fully auto-configured.
96730         Fixes bug on HP-UX/IA64.
96732 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
96734         * lib/getdate.y (__attribute__): Don't define if already defined.
96735         Problem reported by Larry Jones.
96736         * lib/utimens.c (__attribute__): Likewise.
96738 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
96740         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
96741         reported by Andreas Schwab.
96743 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
96744             Bruno Haible  <bruno@clisp.org>
96746         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
96747         check for the declaration of strnlen and a run test that exposes the
96748         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
96749         rpl_strndup.
96751 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
96752             Bruno Haible  <bruno@clisp.org>
96754         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
96756 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
96758         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
96759         compile test, for Tru64 4.0D.
96761 2006-05-28  Karl Berry  <karl@gnu.org>
96763         * config/srclist.txt (printf-args.c): lose sync.
96765 2006-05-26  Martin Lambers  <marlam@marlam.de>
96767         * lib/getpass.c: Updates the test for the native W32 API, and adds
96768         missing includes, thus fixing compilation warnings.
96770 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
96772         * lib/exclude.c (exclude_fnmatch): New function.
96773         (excluded_file_name): Call exclude_fnmatch.
96774         * lib/exclude.h (excluded_file_name): New prototype
96776 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
96778         * lib/tempname.c (small_open, large_open): New macros.
96779         (__open, __open64) [!_LIBC]: Remove.
96780         (__gen_tempname): Use small_open and large_open instead of __open
96781         and __open64.  This fixes a portability bug on HP-UX 11.11i
96782         reported by Simon Wing-Tang in
96783         <http://lists.gnu.org/r/bug-coreutils/2006-05/msg00114.html>.
96785 2006-05-24  Bruno Haible  <bruno@clisp.org>
96787         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
96788         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
96789         Reported by Thorsten Maerz <torte@netztorte.de> via
96790         Aaron Stone <aaron@serendipity.cx>.
96792 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
96794         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
96795         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
96796         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
96797         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
96798         not really conditional on the cache.
96799         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
96801 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
96803         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
96804         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
96805         (my_usleep): Don't mishandle maximum value.
96807 2006-05-19  Jim Meyering  <jim@meyering.net>
96809         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
96811 2006-05-17  Bruno Haible  <bruno@clisp.org>
96813         Cygwin portability.
96814         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
96816 2006-05-17  Bruno Haible  <bruno@clisp.org>
96818         * lib/stdint_.h: Fix recognition of Cygwin.
96820 2006-05-15  Bruno Haible  <bruno@clisp.org>
96822         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
96823         on libtool patch by Ralf Wildenhues.
96825 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
96827         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
96828         test for C99 conformance; (bool) 0.5 is an integer constant
96829         expression, but (bool) -0.5 is not.  Problem reported by Fedor
96830         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
96832 2006-05-11  Simon Josefsson  <jas@extundo.com>
96834         * m4/xvasprintf.m4: Fix obvious typo.
96836 2006-05-11  Jim Meyering  <jim@meyering.net>
96838         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
96839         James Lemley.
96841 2006-05-10  Simon Josefsson  <jas@extundo.com>
96843         * lib/md4.c: Typo fix, update copyright years.
96844         (K1, K2): Don't use L because it turn computations into 64-bit on
96845         64-bit platforms.
96847 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
96849         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
96850         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
96851         unwanted sign propagation, e.g., on hosts with 64-bit int.
96852         There still are some problems with reeelly weird theoretical hosts
96853         (e.g., 33-bit int) but it's not worth worrying about now.
96854         * lib/sha1.c (rol): Likewise.
96855         (K1, K2, K3, K4): Remove unnecessary L suffix.
96857 2006-05-10  Bruno Haible  <bruno@clisp.org>
96859         * lib/des.c: Cast to avoid warnings.
96861 2006-05-09  Bruno Haible  <bruno@clisp.org>
96863         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
96864         (Depends-on): Depend also on xsize, stdarg.
96865         (configure.ac): Add gl_XVASPRINTF.
96867 2006-05-09  Bruno Haible  <bruno@clisp.org>
96869         * m4/xvasprintf.m4: New file.
96871 2006-05-09  Bruno Haible  <bruno@clisp.org>
96873         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
96874         (EOVERFLOW): Define fallback value.
96875         (xstrcat): New function.
96876         (xvasprintf): Recognize the special case of a string concatenation.
96878 2006-05-08  Eric Blake  <ebb9@byu.net>
96880         * gnulib-tool (func_version): Base copyright year on CVS date.
96881         (func_emit_copyright_notice): New function.
96882         (func_emit_lib_Makefile_am): Use it.
96883         (func_emit_tests_Makefile_am): Likewise.
96884         (func_import): Likewise.
96886 2006-05-08  Bruno Haible  <bruno@clisp.org>
96888         * modules/stdarg: New file.
96889         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
96891 2006-05-08  Bruno Haible  <bruno@clisp.org>
96893         * m4/stdarg.m4: New file, from GNU gettext.
96895 2006-05-08  Bruno Haible  <bruno@clisp.org>
96897         * config/srclist.txt (build-aux/config.rpath): different from latest
96898         release.
96900 2006-05-08  Bruno Haible  <bruno@clisp.org>
96902         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
96904 2006-05-05  Jim Meyering  <jim@meyering.net>
96906         * m4/warning.m4: New file, derived from bison's file by the same name.
96908 2006-05-03  Bruno Haible  <bruno@clisp.org>
96910         * lib/stdint_.h: Shorter URL.
96911         * lib/inttypes.h: Likewise.
96913 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
96915         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
96917 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
96919         * lib/verify.h: Document the internals better.  Most of this change
96920         was written by Bruno Haible.
96922 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
96924         * doc/verify.texi: New file, partly based on a proposal by
96925         Bruno Haible.
96927 2006-05-02  Bruno Haible  <bruno@clisp.org>
96929         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
96930         test from here...
96931         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
96933 2006-04-29  Bruno Haible  <bruno@clisp.org>
96935         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
96936         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
96938 2006-04-29  Bruno Haible  <bruno@clisp.org>
96940         * gnulib-tool: Make --update option actually work.
96942 2006-04-29  Bruno Haible  <bruno@clisp.org>
96944         * doc/gcd.texi: New file.
96945         * doc/gnulib.texi: Include it.
96947 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
96949         * lib/getdate.y (get_date): When adding relative date, start with the
96950         initial time, not with the result of the first mktime call.
96952 2006-04-25  Bruno Haible  <bruno@clisp.org>
96954         * gnulib-tool (func_import): Output the include directives in three
96955         blocks, sorted separately.
96956         Reported by Ben Pfaff <blp@cs.stanford.edu>.
96958 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
96960         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
96961         to define main with arguments, for C++.  Reported by Eric Blake.
96962         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
96963         Prefer 'int main ()' to 'int main (void)', for C++.
96964         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
96965         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
96966         for 'main', for C99 and C++.
96968 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
96970         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
96971         Don't assume that exit status -1 is valid.
96972         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
96973         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
96974         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
96975         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
96976         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
96977         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
96978         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
96979         functions can be used without declaring them, or that you can
96980         exit with status -1.
96981         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
96983 2006-04-24  Karl Berry  <karl@gnu.org>
96985         * config/srclist.txt (longdouble.m4): sync lost.
96987 2006-04-24  Eric Blake  <ebb9@byu.net>
96989         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
96991 2006-04-24  Bruno Haible  <bruno@clisp.org>
96993         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
96994         poll() implementation in AIX.
96995         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
96997 2006-04-24  Bruno Haible  <bruno@clisp.org>
96999         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
97000         assigned exactly once.
97002 2006-04-23  Claudio Fontana  <claudio@gnu.org>
97003             Bruno Haible  <bruno@clisp.org>
97005         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
97006         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
97007         for AM_CPPFLAGS.
97009 2006-04-23  Bruno Haible  <bruno@clisp.org>
97011         * modules/copy-file: Depend on unistd.
97012         * modules/execute: Likewise.
97013         * modules/fatal-signal: Likewise.
97014         * modules/findprog: Likewise.
97015         * modules/mkdtemp : Likewise.
97016         * modules/pipe: Likewise.
97017         * modules/wait-process: Likewise.
97019 2006-04-23  Bruno Haible  <bruno@clisp.org>
97021         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
97022         condition was already detected.
97023         Reported by Ben Pfaff <blp@cs.stanford.edu>.
97025 2006-04-23  Bruno Haible  <bruno@clisp.org>
97027         * lib/copy-file.c: Include <unistd.h> unconditionally.
97028         * lib/execute.c: Likewise.
97029         * lib/fatal-signal.c: Likewise.
97030         * lib/findprog.c: Likewise.
97031         * lib/mkdtemp.c: Likewise.
97032         * lib/pipe.h: Likewise.
97033         * lib/pipe.c: Likewise.
97034         * lib/wait-process.h: Likewise.
97036 2006-04-23  Bruno Haible  <bruno@clisp.org>
97038         * gnulib-tool (func_usage): Fix --import description. Document
97039         --update.
97040         (func_import): Create temporary file in a temporary directory, if
97041         --dry-run is specified. Silence errors from 'grep' when there are no
97042         m4 files in $m4dir.
97043         (func_create_testdir): Silence errors from 'grep' when there are no
97044         m4 files in $m4dir.
97045         Reported by Karl Berry <karl@freefriends.org>.
97047 2006-04-20  Bruno Haible  <bruno@clisp.org>
97049         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
97050         one argument, so that the code will be portable to Autoconf 2.60.
97051         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
97052         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
97053         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
97055 2006-04-19  Derek Price  <derek@ximbiot.com>
97056             Eric Blake  <ebb9@byu.net>
97058         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
97059         rather than "/full/path.h".  Update comment to match.  Shorten &
97060         generalize m4_translit call via AS_TR_CPP.
97062 2006-04-19  Derek Price  <derek@ximbiot.com>
97063             Eric Blake  <ebb9@byu.net>
97065         * lib/inttypes.h: Correct grammar in comment.
97067 2006-04-18  Derek Price  <derek@ximbiot.com>
97068             Paul Eggert  <eggert@cs.ucla.edu>
97070         * modules/inttypes: New file.
97071         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
97073 2006-04-18  Derek Price  <derek@ximbiot.com>
97074             Paul Eggert  <eggert@cs.ucla.edu>
97076         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
97077         New files.
97079 2006-04-18  Derek Price  <derek@ximbiot.com>
97080             Paul Eggert  <eggert@cs.ucla.edu>
97082         * lib/inttypes.h: New file.
97083         * lib/strtoimax.c: Assume <inttypes.h>.
97085 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
97087         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
97088         isn't mounted.  Problem reported by Kir Kolyshkin.
97090 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
97092         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
97093         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
97094         Derek R. Price.
97095         * lib/regex.h (RE_DUP_MAX): Update comment to match current
97096         implementation.
97098 2006-04-12  Eric Blake  <ebb9@byu.net>
97100         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
97101         is now done automatically by the corresponding Autoconf macro.
97103 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
97105         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
97106         time_r.h.
97108 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
97110         Merge regex changes from libc, removing some of our
97111         POSIX-conformance changes that were rejected and redoing them in a
97112         less-intrusive way.
97114         * lib/regcomp.c (re_compile_internal, init_dfa):
97115         Length arg is now size_t, not Idx.  All uses changed.
97116         (peek_token): Forward decl now says internal_function.
97117         (__re_error_msgid, __re_error_msgid_idx):
97118         Now static rather than extern with attribute_hidden.
97119         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
97120         For some reason libc prefers K&R style defns for external functions.
97121         (regerror) [!defined _LIBC]: Likewise.
97122         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
97123         (seek_collating_symbol_entry, lookup_collation_sequence_value):
97124         (build_range_exp, build_collating_symbol):
97125         Use K&R-style defn.
97126         (re_compile_fastmap): Use '\0' to memset, not 0.
97127         (utf8_sb_map): Make the calculations more obvious.
97128         (init_dfa, parse_bracket_exp, build_charclass_op):
97129         Call calloc and cast result, as glibc does.
97130         (init_word_char, fetch_token, peek_token, peek_token_bracket):
97131         (build_range_exp, build_collating_symbol):
97132         Now internal functions.
97134         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
97136         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
97137         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
97138         Don't depend on VMS; depend on __VMS instead, for POSIX
97139         namespace cleanness.
97140         (regoff_t): Define to ssize_t, not long int.
97142         Remove the REG_ macros named below.  Instead, make the old names
97143         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
97144         __USE_GNU_REGEX.
97145         (REG_BACKSLASH_ESCAPE_IN_LISTS):
97146         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
97147         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
97148         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
97149         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
97150         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
97151         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
97152         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
97153         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
97154         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
97155         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
97156         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
97157         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
97158         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
97159         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
97160         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
97161         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
97162         (REG_NREGS):
97163         Remove.  All uses replaced by the old RE_* names.
97164         (RE_BACKSLASH_ESCAPE_IN_LISTS):
97165         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
97166         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
97167         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
97168         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
97169         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
97170         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
97171         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
97172         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
97173         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
97174         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
97175         Don't bother having these macros be independent of each others'
97176         values, since they no longer exist in the POSIX name space.
97178         Rename the following member names back to their old names,
97179         unless !__USE_GNU_REGEX.  All uses changed back.
97180         (buffer): Renamed from re_buffer.
97181         (allocated): Renamed from re_allocated.
97182         (used): Renamed from re_used.
97183         (syntax): Renamed from re_syntax.
97184         (fastmap): Renamed from re_fastmap.
97185         (translate): Renamed from re_translate.
97186         (can_be_null): Renamed from re_can_be_null.
97187         (regs_allocated): Renamed from re_regs_allocated.
97188         (fastmap_accurate): Renamed from re_fastmap_accurate.
97189         (no_sub): Renamed from re_no_sub.
97190         (not_bol): Renamed from re_not_bol.
97191         (not_eol): Renamed from re_not_eol.
97192         (newline_anchor): Renamed from re_newline_anchor.
97193         (num_regs): Renamed from rm_num_regs.
97194         (start): Renamed from rm_start.
97195         (end): Renamed from rm_end.
97197         (free_state): Move up a bit.
97199         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
97200         #define to be empty.
97201         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
97202         when that is what is intended.
97203         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
97204         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
97205         (MAX): New macro.
97206         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
97207         All uses changed back to re_malloc, etc.  It's now the caller's
97208         responsibility to check for overflow; all callers changed.
97209         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
97210         (re_x2nrealloc): Remove.
97211         (free_state): Remove decl.
97213         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
97214         (re_set_registers, re_exec):
97215         Use K&R-style defn.
97217         2006-01-31  Roland McGrath  <roland@redhat.com>
97219         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
97220         Reported by Mike Frysinger <vapier@gentoo.org>.
97222         2006-01-15  Andreas Jaeger  <aj@suse.de>
97224         [BZ #1950]
97225         * lib/regex_internal.c (re_string_reconstruct): Adjust for
97226         build_wcs_upper_buffer change.
97227         (build_wcs_upper_buffer): Change return type.
97229         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
97231         * lib/regex_internal.h: Include <stdint.h> if available.
97233         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
97235         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
97237         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
97239         * lib/regcomp.c: Adjust for changed secondary hash function.
97241         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
97243         * lib/regex.h: Pretty printing.
97244         Clean up namespace a bit.
97246         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
97248         * lib/regexec.c (update_cur_sifted_state, check_arrival,
97249         check_arrival_add_next_nodes): Avoid using uninitialized variable.
97251         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
97252                     Ulrich Drepper  <drepper@redhat.com>
97254         [BZ #1302]
97255         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
97256         changed.
97257         (bitset_word_t): Renamed from bitset_word.  All uses changed.
97259         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
97261         [BZ #281]
97262         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
97263         * lib/regcomp.c: Remove unnecessary uses of
97264         unsigned RE_TRANSLATE_TYPE.
97265         * lib/regex_internal.h: Likewise.
97266         * lib/regex_internal.c: Likewise.
97267         * lib/regexec.c: Likewise.
97268         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
97270         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
97272         * lib/regexec.c (find_recover_state): Remove unnecessary
97273         initialization.
97274         (transit_state_bkref): Make DFA a const pointer.
97275         (get_subexp): Likewise.
97276         (check_arrival): Likewise.
97277         (update_cur_sifted_state): Likewise.
97278         (re_search_internal): Likewise.
97279         (prune_impossible_nodes): Likewise.
97280         (acquire_init_state_context): Likewise.
97281         (proceed_next_node): Likewise.
97282         (set_regs): Likewise.
97283         (free_fail_stack_return): Likewise.
97284         (check_arrival_expand_ecl): Mark DFA parameter as const.
97285         (check_arrival_expand_ecl_sub): Likewise.
97286         (check_subexp_limits): Likewise.
97287         (sub_epsilon_src_nodes):  Likewise.
97288         (add_epsilon_src_nodes):  Likewise.
97289         (merge_state_array): Likewise.
97290         (update_regs): Likewise.
97291         (build_trtable): Likewise.
97292         (sift_states_backward): Mark MCTX parameter as const.
97293         (build_sifted_states): Likewise.
97294         (update_cur_sifted_state): Likewise.
97295         (sift_states_mkref): Likewise.
97296         (check_arrival_expand_ecl): Mark eclosure as const.
97297         (check_dst_limits_calc_pos_1): Likewise.
97298         * lib/regex_internal.h (re_match_context_t): Make dfa a const
97299         pointer.
97301         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
97303         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
97304         (transit_state_sb): Likewise.
97305         (transit_state_mb): Likewise.
97306         (sift_states_iter_mb): Likewise.
97307         (check_arrival_add_next_nodes): Likewise.
97308         (check_node_accept_bytes): Change first parameter to pointer-to-const.
97309         [_LIBC] (re_search_2_stub): Use mempcpy.
97311         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
97312         mbrtowc for very simple UTF-8 case.
97314         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
97315         a pointer-to-const.
97316         (re_acquire_state_context): Likewise.
97317         * lib/regex_internal.h: Adjust prototypes.
97319         * lib/regex.c: Prevent using C++ compilers.
97321         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
97322         (re_acquire_state_context): Likewise.
97324 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
97326         * modules/regex (Depends-on): Add ssize_t.
97328 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
97330         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
97331         translation table.
97333 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
97335         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
97337 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
97338             Bruno Haible  <bruno@clisp.org>
97340         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
97341         <sys/types.h> and <inttypes.h>.
97343 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
97345         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
97346         `__error_t_defined', so argp.h will not typedef the former.
97348 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
97350         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
97351         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
97352         glibc names.  Even if glibc is changed to conform to POSIX, the
97353         traditional names will be available anyway, since regex depends on
97354         the extensions module.  Also, fix a longstanding typo in the
97355         implementation of Spencer ERE test #75 from grep 2.3.  Problems
97356         reported by Emanuele Giaquinta.  Also, change sense of cached
97357         variable, so that the message makes sense.
97359 2006-03-24  Simon Josefsson  <jas@extundo.com>
97361         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
97362         including some doc fixes.
97363         (base64_encode_alloc): Fix +1 bug on allocation failures.
97365 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
97367         * lib/base64.c (base64_encode): Do not read past end of array with
97368         unsanitized input on systems with CHAR_BIT > 8.
97370 2006-03-24  Eric Blake  <ebb9@byu.net>
97372         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
97374 2006-03-22  Karl Berry  <karl@gnu.org>
97376         * config/srclist.txt (*setenv.[ch]): get from coreutils.
97377         * config/srclistvars.sh (COREUTILS): new var.
97379 2006-03-17  Jim Meyering  <jim@meyering.net>
97381         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
97382         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
97384 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
97386         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
97387         no longer needs it.  Instead, check that regoff_t is as least
97388         as wide as ptrdiff_t.
97390         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
97391         so that our regex.h stays compatible with the installed regex.
97392         This is helpful for installers who configure --without-included-regex.
97393         Problem reported by Emanuele Giaquinta.
97395 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
97397         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
97398         Typedef to long int, not to off_, as POSIX will likely change
97399         in that direction.
97401 2006-03-15  Eric Blake  <ebb9@byu.net>
97403         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
97405 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
97407         * lib/argp-help.c (validate_uparams): Fix typo
97408         * lib/argp-parse.c (argp_default_options): Consistently begin help
97409         messages with a lowercase letter.
97411 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
97413         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
97414         overrun buffers and shouldn't be used (much as gets shouldn't be
97415         used).
97416         * lib/time_r.c (asctime_r, ctime_r): Likewise.
97418 2006-03-08  Simon Josefsson  <jas@extundo.com>
97420         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
97421         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
97423 2006-03-08  Simon Josefsson  <jas@extundo.com>
97425         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
97426         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
97428 2006-03-08  Simon Josefsson  <jas@extundo.com>
97430         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
97431         signal that configure disabled the device.
97433 2006-03-08  Simon Josefsson  <jas@extundo.com>
97435         * build-aux/maint.mk: Fix refresh-po, to handle no translated
97436         languages.
97438 2006-03-07  Simon Josefsson  <jas@extundo.com>
97440         * modules/getopt (Depends-on): Add unistd.
97442         * modules/unistd: New file.
97444 2006-03-07  Simon Josefsson  <jas@extundo.com>
97446         * modules/gc-random: New file.
97448 2006-03-07  Simon Josefsson  <jas@extundo.com>
97450         * m4/unistd_h.m4: New file.
97452 2006-03-07  Simon Josefsson  <jas@extundo.com>
97454         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
97455         test to be side-effect free by storing the result in the cache
97456         variable gl_cv_lib_readline, and moving the assignment of
97457         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
97458         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
97460 2006-03-07  Simon Josefsson  <jas@extundo.com>
97462         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
97463         error on missing devices (the functions will return an error).
97465         * m4/gc.m4: Move random stuff to gc-random.m4
97467 2006-03-07  Simon Josefsson  <jas@extundo.com>
97469         * lib/unistd_.h: New file.
97471 2006-03-07  Simon Josefsson  <jas@extundo.com>
97473         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
97475 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
97477         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
97478         Problem reported by Juan Manuel Guerrero.
97480 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
97482         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
97483         the unistd module.
97484         * lib/getlogin_r.c: Likewise.
97485         * lib/getlogin_r.h: Likewise.
97486         * lib/glob.c: Likewise.
97487         * lib/pagealign_alloc.c: Likewise.
97488         * lib/unistd_.h: Remove; no longer needed.
97490 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
97492         * MODULES.html.sh (Support for systems lacking POSIX:2001):
97493         Add unistd.
97494         * modules/c-stack (Depends-on): Add unistd.
97495         * modules/getlogin_r: Likewise.
97496         * modules/glob: Likewise.
97497         * modules/pagealign_alloc: Likewise.
97498         * modules/unistd (Files): Remove lib/unistd_.h.
97499         (EXTRA_DIST): Remove.
97500         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
97501         need unistd_.h.
97502         (MOSTLYCLEANFILES): Remove unistd.h-t.
97504 2006-03-03  Simon Josefsson  <jas@extundo.com>
97506         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
97508 2006-03-03  Simon Josefsson  <jas@extundo.com>
97510         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
97511         libidn and bison.
97513 2006-03-03  Simon Josefsson  <jas@extundo.com>
97515         * build-aux/maint.mk: Add indent target.
97517 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
97519         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
97520         our replacement poll.h in any case, to avoid a differing
97521         declaration from a system header.  Seen on AIX.
97523 2006-03-01  Simon Josefsson  <jas@extundo.com>
97525         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
97526         <kasal@ucw.cz>.
97528 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
97530         * modules/gettime (Depends-on): Add extensions module.
97531         * modules/nanosleep (Depends-on): Likewise.
97532         * modules/settime (Depends-on): Likewise.
97534 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
97536         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
97537         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
97538         pedantically.
97539         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
97540         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
97542         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
97543         not "==".  Reported by Ralf Wildenhues.
97545 2006-03-01  Karl Berry  <karl@gnu.org>
97547         * doc/Copyright/request-*: new files, synced from gnuorg.
97549 2006-03-01  Karl Berry  <karl@gnu.org>
97551         * config/srclist.txt (Copyright/*): new entries.
97553 2006-02-28  Simon Josefsson  <jas@extundo.com>
97555         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
97557 2006-02-27  Simon Josefsson  <jas@extundo.com>
97559         * lib/base64.h: Indent #define's.  From Jim Meyering
97560         <jim@meyering.net>.
97562 2006-02-27  Jim Meyering  <jim@meyering.net>
97564         Revert the change of 2006-02-24, so these files can continue
97565         to be sync'd from gettext.
97566         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
97567         of `config.h'.
97569 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
97571         * modules/intprops: New file.
97572         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
97573         Add intprops.
97574         * modules/getloadavg (Files): Remove lib/intprops.h.
97575         (Depends-on): Add intprops.
97576         * modules/human: Likewise.
97577         * modules/inttostr: Likewise.
97578         * modules/openat: Likewise.
97579         * modules/sig2str: Likewise.
97580         * modules/userspec: Likewise.
97581         * modules/utimecmp: Likewise.
97582         * modules/xnanosleep: Likewise.
97583         * modules/xstrtol: Likewise.
97585 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
97587         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
97588         * modules/lock-tests (TESTS): Use $(EXEEXT).
97589         * modules/tls-tests: Likewise.
97590         * modules/argp-tests: Likewise.
97591         (check_PROGRAMS): New var, replacing...
97592         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
97594 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
97596         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
97597         `config.h'.
97599 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
97601         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
97603 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
97605         Sync from coreutils.
97606         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
97607         gl_CHDIR_SAFER.
97609 2006-02-22  Jim Meyering  <jim@meyering.net>
97611         Sync from coreutils.
97612         * m4/chdir-safer.m4: New file.
97614 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
97616         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
97617         AT_FDCWD exceeds INT_MAX.
97618         * lib/openat.h (AT_FDCWD): Likewise.
97620 2006-02-17  Eric Blake  <address@hidden>
97622         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
97624 2006-02-16  Simon Josefsson  <jas@extundo.com>
97626         * modules/getaddrinfo (Depends-on): Add sys_socket.
97628 2006-02-15  Simon Josefsson  <jas@extundo.com>
97630         * build-aux/maint.mk: Add dsyntax-check rule.
97632 2006-02-15  Eric Blake  <ebb9@byu.net>
97634         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
97635         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
97636         'present but cannot compile' warnings on cygwin.
97637         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
97638         use ws2tcpip.h if sys/socket.h works.
97639         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
97640         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
97642 2006-02-14  Simon Josefsson  <jas@extundo.com>
97644         * modules/maintainer-makefile (Files): Rename.
97646         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
97647         and (the local) Makefile.cfg to maint-cfg.mk.
97649         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
97650         to the latter.
97652         * modules/maintainer-makefile: New module.
97654         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
97655         severaly stripped to make it possible to build it up from scratch
97656         with reliable tests.
97658         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
97659         fixes to permit overriding the default actions when configure and
97660         makefile are not available.
97662 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
97664         Sync from coreutils.
97665         * modules/lstat (Depends-on): Don't depend on xalloc.
97666         (License): Change from GPL to LGPL, since this is now simply a
97667         replacement for a libc function.
97669 2006-02-14  Jim Meyering  <jim@meyering.net>
97671         Sync from coreutils.
97673         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
97674         failure on deficient systems, and simplify gnulib lgpl dependencies.
97675         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
97676         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
97678         * lib/xalloc-die.c: Remove unused definition of N_.
97680 2006-02-14  Jim Meyering  <jim@meyering.net>
97682         Sync from coreutils.
97683         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
97684         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
97685         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
97686         double-quote uses of that variable, to accommodate the rare case in
97687         which getmntent is available in none of the libraries checked.  This
97688         happens at least on FreeBSD 5.0.
97690 2006-02-13  Simon Josefsson  <jas@extundo.com>
97692         * gnulib-tool (Usage): Fix --import, from
97693         karl@freefriends.org (Karl Berry).
97695 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
97697         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
97699 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
97701         * lib/argp-namefrob.h: Restore changes accidentally lost during the
97702         "autoupdate" on 2005-12-12.
97704 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
97706         * modules/closeout (Depends-on): Remove atexit.
97708 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
97710         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
97711         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
97713 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
97715         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
97716         __EXTENSIONS__ if this causes compilation to fail.  Problem
97717         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
97718         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
97720 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
97722         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
97723         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
97724         <http://lists.gnu.org/r/bug-gnulib/2006-01/msg00074.html>.
97725         All uses changed.
97727 2006-01-26  Simon Josefsson  <jas@extundo.com>
97729         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
97730         prototype is visible on mingw32.
97732         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
97733         for mingw32.
97735         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
97736         mingw32).
97738 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
97740         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
97741         attempt to open for write; this always fails, at least on POSIX
97742         hosts.  This reinstates the 2006-01-09 change, which was
97743         inadvertently removed.
97745 2006-01-26  Bruno Haible  <bruno@clisp.org>
97747         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
97748         Reported by Paul Eggert.
97750 2006-01-26  Bruno Haible  <bruno@clisp.org>
97751             Paul Eggert  <eggert@cs.ucla.edu>
97753         * lib/stdbool_.h (_Bool)
97754         [(! (defined __cplusplus || defined __BEOS__)
97755           && !defined __GNUC__
97756           && !(defined __HP_cc || defined __xlc__
97757                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
97758                || defined __sgi))]:
97759         #define to signed char in these cases too; this simplifies
97760         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
97761         etc., separately) and makes it more conservative.
97763 2006-01-25  Simon Josefsson  <jas@extundo.com>
97765         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
97766         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
97767         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
97769 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
97771         * lib/argp-namefrob.h: Bugfix. Remove stray #
97773 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
97775         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
97776         so that we test the test.
97777         Check for yet another HP-UX cc bug involving *bool |= bool.
97779 2006-01-25  Karl Berry  <karl@gnu.org>
97781         * config/srclist.txt (vasnprintf.c): sync lost.
97783 2006-01-25  Jim Meyering  <jim@meyering.net>
97785         Sync from the stable (b5) branch of coreutils:
97787         * lib/fts.c (fts_children): Don't let close() clobber errno from
97788         failed fchdir().
97790         * lib/fts.c (fts_stat): When following a symlink-to-directory,
97791         don't necessarily interpret stat-fails+lstat-succeeds as indicating
97792         a dangling symlink.  That can also happen at least for ELOOP.
97793         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
97794         FYI, this bug predates the inclusion of fts.c in coreutils.
97796         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
97797         in their own block, so pre-c99 compilers don't object.
97799         Avoid the double-free (first in fts_read, second in fts_close) that
97800         would occur when an `active' directory is made inaccessible (e.g.,
97801         via chmod a-x) during a traversal.
97802         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
97803         before returning.  Reproduce this failure by
97804         mkdir -p a/b; cd a; chmod a-x . b
97805         Reported by Stavros Passas.
97807 2006-01-25  Jim Meyering  <jim@meyering.net>
97809         * lib/fileblocks.c: Remove more useless parentheses.
97810         * lib/readutmp.h: Likewise.
97812 2006-01-25  Bruno Haible  <bruno@clisp.org>
97814         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
97815         warnings.
97816         Reported by Paul Eggert.
97818 2006-01-25  Bruno Haible  <bruno@clisp.org>
97820         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
97821         rid of a trap command. For Solaris sh.
97822         Reported by Mark D. Baushke <mdb@gnu.org>.
97824 2006-01-24  Simon Josefsson  <jas@extundo.com>
97826         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
97827         Bruno.
97829 2006-01-24  Karl Berry  <karl@gnu.org>
97831         * config/srclist.txt (argp-namefrob.h): sync lost.
97833 2006-01-24  Jim Meyering  <jim@meyering.net>
97835         * modules/openat (Files): Add lib/intprops.h.
97836         From Mark D. Baushke.
97838 2006-01-24  Jim Meyering  <jim@meyering.net>
97840         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
97841         Reported by Mark D. Baushke.
97843 2006-01-24  Jim Meyering  <jim@meyering.net>
97845         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
97847 2006-01-24  Bruno Haible  <bruno@clisp.org>
97849         * modules/strnlen (Maintainer): Change from glibc to all.
97851 2006-01-24  Bruno Haible  <bruno@clisp.org>
97853         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
97854         Patch by Paul Eggert.
97856 2006-01-24  Bruno Haible  <bruno@clisp.org>
97858         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
97859         already has it.
97860         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
97861         2005-11-26.
97863         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
97864         'signed char' to avoid problems with the built-in _Bool type.
97865         Reported by Paul Eggert on 2005-11-26.
97867 2006-01-24  Bruno Haible  <bruno@clisp.org>
97869         * gnulib-tool (func_import): Avoid constructing complicated sed
97870         expressions inside backquote.
97871         Report and solution by Mark D. Baushke <mdb@gnu.org>.
97873 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
97875         These changes imported from libc.
97876         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
97877         test and two separate function calls.
97878         * lib/strndup.c (__strndup): Add libc_hidden_def.
97880 2006-01-23  Simon Josefsson  <jas@extundo.com>
97882         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
97883         Remove the test_*_SOURCES variable: automake infers it by default.
97884         * modules/tls-tests: Likewise.
97886 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
97888         Work around porting bugs reported by Dieter in
97889         <http://lists.gnu.org/r/bug-bison/2006-01/msg00049.html>.
97890         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
97891         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
97892         Include "getopt.h" first, to check interface.
97893         (getenv): Declare only if defined HAVE_DECL_GETENV &&
97894         !HAVE_DECL_GETENV.
97895         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
97896         (__strndup): Revert to K&R-style function dfns, the glibc style.
97897         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
97898         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
97899         Include strnlen.h first, to get prototype properly.
97900         (strnlen): Renamed from __strnlen.
97901         Remove weak alias.
97903 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
97905         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
97907 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
97909         * config/srclist.txt: Adjust to reflect glibc reorganization.
97910         This affects only comments.
97912 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
97914          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
97915          Reported by Bruce Korb <bkorb@gnu.org>.
97917 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
97919         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
97920         to pacify gcc -Wswitch-default.
97922 2006-01-22  Bruno Haible  <bruno@clisp.org>
97924         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
97925         temporary buffer for sprintf, take into account the precision also
97926         for 'd', 'i', 'u', 'o', 'x', 'X'.
97928 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
97930         * modules/argp-tests: New module
97931         * tests/test-argp.c: New file
97932         * tests/test-argp-2.sh: New file
97934 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
97936         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
97937         (__argp_base_name): Removed
97938         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
97939         typo.
97940         (__argp_base_name): Provide macro definition or extern declaration
97941         depending on the configuration
97943 2006-01-20  Simon Josefsson  <jas@extundo.com>
97945         * modules/inet_ntop (Depends-on): Depend on sys_socket.
97947 2006-01-20  Simon Josefsson  <jas@extundo.com>
97949         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
97951 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
97953         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
97954         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
97955         Suggested by Bruno Haible.
97957 2006-01-20  Karl Berry  <karl@gnu.org>
97959         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
97960         until changes propagate, I guess.
97962 2006-01-19  Simon Josefsson  <jas@extundo.com>
97964         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
97966 2006-01-19  Simon Josefsson  <jas@extundo.com>
97968         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
97970 2006-01-19  Simon Josefsson  <jas@extundo.com>
97972         * gnulib-tool: Set check_PROGRAMS.
97974         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
97975         modules/des-tests, modules/gc-arcfour-tests,
97976         modules/gc-arctwo-tests, modules/gc-des-tests,
97977         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
97978         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
97979         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
97980         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
97981         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
97982         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
97983         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
97984         test_*_SOURCES.
97986 2006-01-18  Simon Josefsson  <jas@extundo.com>
97988         * modules/socklen (Depends-on): Depend on sys_socket.
97990 2006-01-18  Simon Josefsson  <jas@extundo.com>
97992         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
97993         modules/des-tests, modules/gc-arcfour-tests,
97994         modules/gc-arctwo-tests, modules/gc-des-tests,
97995         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
97996         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
97997         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
97998         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
97999         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
98000         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
98001         $(EXEEXT) to automake TESTS variable, for mingw32.
98003 2006-01-17  Simon Josefsson  <jas@extundo.com>
98005         * modules/socklen (Include): Need sys/socket.h.
98007 2006-01-17  Bruno Haible  <bruno@clisp.org>
98009         * modules/ssize_t (Include): Add <sys/types.h>.
98011 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
98013         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
98014         it's not portable and it doesn't work with cross-compiles.
98015         Problem reported by Bruno Haible.  Fix missing-$ typo in
98016         'test "gl_cv_ignore_unused_libraries" ...' that prevented
98017         -zignore from being used with Sun's C compiler.
98019 2006-01-12  Simon Josefsson  <jas@extundo.com>
98021         * lib/base64.c: Fix warning, reported by Bruno Haible
98022         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
98024 2006-01-12  Bruno Haible  <bruno@clisp.org>
98026         * modules/ldd: New file.
98027         * build-aux/ldd.sh.in: New file.
98028         * MODULES.html.sh (Support for building libraries and executables): Add
98029         ldd.
98031 2006-01-12  Bruno Haible  <bruno@clisp.org>
98033         * m4/ldd.m4: New file.
98035 2006-01-12  Bruno Haible  <bruno@clisp.org>
98037         * gnulib-tool (func_import, func_create_testdir): Don't go into an
98038         endless loop while replacing $auxdir with build-aux.
98040 2006-01-11  Simon Josefsson  <jas@extundo.com>
98042         * lib/stdint_.h (SIZE_MAX): Add missing (.
98044 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
98046         Sync from coreutils.
98047         * lib/md5.c: Fix commentary typos.
98048         (alignof, UNALIGNED_P): No need for a GCC-specific version.
98049         * lib/md5.h (__attribute__): Remove; unused.
98050         * lib/sha1.c: Fix commentary to match md5 better.
98051         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
98052         so that we don't need to worry about alignment.  All uses changed.
98053         This merges the 2005-10-28 md5 change into sha1.
98055 2006-01-11  Jim Meyering  <jim@meyering.net>
98057         Sync from coreutils.
98058         * lib/md5.c (OP): Fix spacing.
98060 2006-01-11  Bruno Haible  <bruno@clisp.org>
98062         Ensure automatic ordering between gl_LOCK and gl_ARGP.
98063         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
98064         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
98066 2006-01-11  Bruno Haible  <bruno@clisp.org>
98068         Ensure automatic ordering between gl_LOCK and gl_ARGP.
98069         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
98070         the "early" section as well.
98072 2006-01-11  Bruno Haible  <bruno@clisp.org>
98074         Avoid "ar: no archive members specified" error on MacOS X.
98075         * gnulib-tool (func_modules_add_dummy): New function.
98076         (func_import, func_create_testdir): Invoke it.
98078 2006-01-11  Bruno Haible  <bruno@clisp.org>
98080         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
98081         with $auxdir in AC_CONFIG_FILES statements.
98083 2006-01-11  Bruno Haible  <bruno@clisp.org>
98085         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
98086         Initialize also noinst_HEADERS to empty.
98088 2006-01-11  Bruno Haible  <bruno@clisp.org>
98090         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
98091         variables.
98092         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
98093         autoreconf.
98095 2006-01-11  Bruno Haible  <bruno@clisp.org>
98097         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
98098         overridable by the user.
98099         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
98101 2006-01-10  Simon Josefsson  <jas@extundo.com>
98103         * modules/sys_socket: New file.
98105 2006-01-10  Simon Josefsson  <jas@extundo.com>
98107         * m4/sys_socket_h.m4: New file.
98109 2006-01-10  Simon Josefsson  <jas@extundo.com>
98111         * lib/socket_.h: New file.
98113 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
98115         * modules/readutmp (Maintainer): Add myself.
98117 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
98119         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
98120         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
98121         People who are still concerned with buggy memcmp implementations
98122         can invoke gl_FUNC_MEMCMP themselves.
98124 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
98126         * lib/regex_internal.h (BITSET_WORD_BITS):
98127         Work around a bug in 64-bit PGC (before version 6.1-2), where the
98128         preprocessor mishandles large unsigned values as if they were signed.
98129         Problem reported by Claudio Fontana in
98130         <http://lists.gnu.org/r/bug-gnulib/2005-12/msg00061.html>.
98132 2006-01-10  Jim Meyering  <jim@meyering.net>
98134         Avoid the double-free (first in fts_read, second in fts_close) that
98135         would occur when an `active' directory is made inaccessible (e.g.,
98136         via chmod a-x) during a traversal.
98137         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
98138         before returning.  Reproduce this failure by
98139         mkdir -p a/b; cd a; chmod a-x . b
98140         Reported by Stavros Passas.
98142         Sync from coreutils.
98143         * lib/sha1.c: Tweak grammar in a comment.
98145 2006-01-10  Jim Meyering  <jim@meyering.net>
98147         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
98148         Patch by Joerg Sonnenberger.
98150 2006-01-10  Bruno Haible  <bruno@clisp.org>
98152         * modules/readutmp: Depend on module free.
98153         * modules/strtok_r: Depend on module restrict.
98155 2006-01-10  Bruno Haible  <bruno@clisp.org>
98157         * modules/gettext (configure.ac): Add an invocation of
98158         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
98160 2006-01-10  Bruno Haible  <bruno@clisp.org>
98162         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
98163         Reported by Werner Lemberg <wl@gnu.org>.
98165 2006-01-10  Bruno Haible  <bruno@clisp.org>
98167         * lib/localcharset.c: Update from GNU gettext.
98169 2006-01-10  Bruno Haible  <bruno@clisp.org>
98171         * lib/argp.h (__const): Remove macro. Use const instead.
98172         * lib/argp-fmtstream.h (__const): Likewise.
98173         * lib/glob_.h (__const): Remove macro.
98174         * lib/glob-libc.h: Use const instead of __const.
98176 2006-01-10  Bruno Haible  <bruno@clisp.org>
98178         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
98179         variable.
98180         Needed to avoid an automake error regarding the 'gettext' module.
98182 2006-01-09  Simon Josefsson  <jas@extundo.com>
98184         * modules/inet_ntop (Depends-on): Add restrict.
98186 2006-01-09  Simon Josefsson  <jas@extundo.com>
98188         * modules/gc-rijndael-tests (License): Put under LGPL.
98190         * modules/gc-des-tests (License): Likewise.
98192         * modules/gc-arcfour-tests (License): Likewise.
98194         * modules/gc-arctwo-tests (License): Likewise.
98196         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
98198         * modules/gc-hmac-sha1-tests (Files): Likewise.
98200         * modules/gc-hmac-md5-tests (License): Likewise.
98202         * modules/gc-sha1-tests (License): Likewise.
98204         * modules/gc-md5-tests (License): Likewise.
98206         * modules/gc-md4-tests (License): Likewise.
98208         * modules/gc-md2-tests (License): Likewise.
98210         * modules/gc-tests (License): Likewise.
98212         * modules/des-tests (License): Likewise.
98214         * modules/md4-tests (License): Likewise.
98216         * modules/md2-tests (License): Likewise.
98218 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
98220         Sync from coreutils:
98222         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
98223         * modules/lib-ignore: New file.
98224         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
98225         chdir-safer.m4, lchmod.m4.
98226         * modules/openat: Add mkdirat.c, openat-priv.h.
98228 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
98230         Sync from coreutils.
98231         * m4/lib-ignore.m4: New file.
98232         * m4/lchmod.m4: New file.
98234 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
98236         Sync from coreutils.
98237         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
98238         for write access: POSIX says that must fail.
98239         * lib/fts.c (diropen): Likewise.
98240         * lib/save-cwd.c (save_cwd): Likewise.
98241         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
98242         well, for minor improvements on hosts that lack O_DIRECTORY.
98243         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
98244         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
98245         Fall back on chown if open failed with EACCES.
98247         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
98248         Report an error at compile-time if only a 1-second nominal clock
98249         resolution is found.
98251         * lib/lchmod.h: New file.
98252         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
98253         (make_dir_parents): Use lchown rather than chown, and
98254         lchmod rather than chmod.
98256         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
98257         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
98258         "proc" reported by n0dalus.
98260         * lib/mountlist.c: Include <limits.h>.
98261         (dev_from_mount_options)
98262         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
98263         New function.  It no longer assumes "dev=" has the System V meaning
98264         on Linux (since it doesn't).  It also parses "dev=" more carefully.
98265         (read_file_system_list)
98266         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
98267         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
98268         dev= in that case.
98270         * lib/posixtm.h (PDS_PRE_2000): New macro.
98271         * lib/posixtm.c (year): Arg is now syntax_bits rather than
98272         allow_century.  All usages changed.  Reject dates outside the range
98273         1969-1999 if PDS_PRE_2000 is used.
98275 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
98277         Sync from coreutils.
98278         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
98279         (Time of day items): Mention the possibility of leap seconds.
98280         Problem reported by Dr. David Alan Gilbert.
98282 2006-01-09  Jim Meyering  <jim@meyering.net>
98284         Sync from coreutils.
98286         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
98288         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
98290         * lib/modechange.c (mode_compile): Reject an invalid mode string
98291         that starts with an octal digit.  From Andreas Gruenbacher.
98293         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
98294         and dup to open_safer and dup_safer, respectively.
98295         (openat_permissive): Fix typo in comment.
98297         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
98298         "gettext.h"; either no longer needed or are guaranteed by openat.h.
98299         (_): Remove; no longer needed.
98300         (openat): Renamed from rpl_openat; no need for rpl_openat
98301         since openat.h renames openat for us.
98302         Replace most of the body with a call to openat_permissive,
98303         to avoid duplicate code.
98304         Port to (probably hypothetical) environments were mode_t is
98305         wider than int.
98306         (openat_permissive): Require mode arg, so that we can check
98307         types better.  Put it just after flags.  Change cwd failure
98308         indicator from pointer-to-bool to pointer-to-errno-value.
98309         All callers changed.
98310         Invoke openat_save_fail and/or openat_restore_fail if
98311         cwd_errno is null, so that openat can call us.
98312         (openat_permissive, fdopendir, fstatat, unlinkat):
98313         Simplify errno handling to avoid some duplicate code,
98314         as it's OK to set errno on success.
98315         * lib/openat.h: Revamp code so that function macros depend on
98316         __OPENAT_PREFIX only, not also on AT_FDCWD.
98317         (openat_ro): Remove.  Caller changed to use openat_permissive.
98318         (openat_permissive): Now a macro, if not a function.
98319         (openat_restore_fail, openat_save_fail): Now always functions,
98320         since mkdirat needs them even if __OPENAT_PREFIX is defined.
98322         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
98323         and openat.c.
98324         * lib/mkdirat.c: Include openat-priv.h.
98325         Remove definitions of macros defined therein.
98326         * lib/openat.c: Likewise.
98328         * lib/mkdirat.c (mkdirat): New file and function.
98329         * lib/openat.h (mkdirat): Declare.
98331         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
98333         * lib/openat.h (openat_permissive): Declare.
98334         (openat_ro): Define.
98336         * lib/openat.c (EXPECTED_ERRNO): New macro.
98337         (openat_permissive): New function -- used in remove.c rewrite.
98338         (all functions): Set errno just before returning, only if there
98339         was an actual failure.
98340         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
98342         Emulate openat-family functions using Linux's procfs, if possible.
98343         Idea and some code based on Ulrich Drepper's glibc changes.
98345         * lib/openat.c: (BUILD_PROC_NAME): New macro.
98346         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
98347         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
98348         before falling back on save_cwd and restore_cwd.
98349         (fdopendir, fstatat, unlinkat): Likewise.
98351         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
98352         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
98354         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
98355         as second argument to va_arg.  Otherwise, some versions of gcc
98356         warn that `if this code is reached, the program will abort'.
98358 2006-01-09  Jim Meyering  <jim@meyering.net>
98360         Sync from coreutils.
98361         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
98362         Require openat-priv.h.
98364 2006-01-09  Bruno Haible  <bruno@clisp.org>
98366         * modules/strnlen (Include): Use strnlen.h.
98368 2006-01-09  Bruno Haible  <bruno@clisp.org>
98370         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
98372 2006-01-09  Bruno Haible  <bruno@clisp.org>
98374         * lib/sysexit_.h (EX_OK): New macro.
98375         Suggested by Martin Lambers <marlam@marlam.de>.
98377 2006-01-09  Bruno Haible  <bruno@clisp.org>
98379         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
98380         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
98382 2006-01-09  Bruno Haible  <bruno@clisp.org>
98384         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
98385         numbers.
98387 2006-01-09  Bruno Haible  <bruno@clisp.org>
98389         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
98390         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
98391         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
98392         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
98394 2006-01-09  Bruno Haible  <bruno@clisp.org>
98396         * build-aux/javacomp.sh.in: New file, moved from lib/.
98397         * modules/javacomp-script (Files): Update.
98398         (configure.ac): Add AC_CONFIG_FILES invocation.
98399         (EXTRA_DIST): Remove variable.
98401         * build-aux/javaexec.sh.in: New file, moved from lib/.
98402         * modules/javaexec (Files): Update.
98403         (configure.ac): Add AC_CONFIG_FILES invocation.
98404         (EXTRA_DIST): Remove javaexec.sh.in.
98406         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
98407         * modules/csharpcomp-script (Files): Update.
98408         (configure.ac): Add AC_CONFIG_FILES invocation.
98409         (EXTRA_DIST): Remove variable.
98411         * build-aux/csharpexec.sh.in: New file, moved from lib/.
98412         * modules/csharpexec (Files): Update.
98413         (configure.ac): Add AC_CONFIG_FILES invocation.
98414         (EXTRA_DIST): Remove csharpexec.sh.in.
98416 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
98418         Sync from coreutils.
98420         Add POSIX ACL support
98421         * lib/acl.h (copy_acl, set_acl): Add declarations.
98422         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
98423         systems other than Linux.
98424         (chmod_or_fchmod): New function: use fchmod when possible,
98425         and chmod otherwise.
98426         (file_has_acl): Add a POSIX ACL implementation, with a
98427         Linux-specific subcase.
98428         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
98429         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
98430         acls are unsupported.
98431         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
98432         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
98433         are unsupported.
98435 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
98437         Sync from coreutils.
98438         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
98440 2006-01-07  Bruno Haible  <bruno@clisp.org>
98442         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
98443         gl_EARLY.
98445 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
98447         * lib/strftime.c (tzname): Don't declare if it is already #defined.
98448         Problem reported for Mingw by Mark Junker.
98450 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
98452         * README: Gnulib normally doesn't generate a tarball.
98454 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
98456         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
98457         long int, not int, for nanosecond counts, so that people who are
98458         used to POSIX struct timespec won't be surprised.  Reported by Jim
98459         Meyering.
98461 2005-12-28  Bruno Haible  <bruno@clisp.org>
98463         * build-aux/config.rpath: Update from GNU gettext.
98465 2005-12-16  Jim Meyering  <jim@meyering.net>
98467         * modules/fprintftime: New module.
98468         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
98470 2005-12-16  Jim Meyering  <jim@meyering.net>
98472         * m4/fprintftime.m4: New file.
98474 2005-12-16  Jim Meyering  <jim@meyering.net>
98476         * lib/fprintftime.c, lib/fprintftime.h: New files.
98478 2005-12-15  Simon Josefsson  <jas@extundo.com>
98480         * modules/socklen (configure.ac): Fix M4 macro name, to align with
98481         new m4/socklen.m4.
98483 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
98485         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
98486         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
98488 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
98490         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
98491         * lib/argp-help.c (fill_in_uparams): Check if the constructed
98492         struct uparams is valid. Fall back to the default values if it is
98493         not.
98495 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
98497         * modules/argp (Files): Add argp-pin.c
98498         (Depends-on): dirname
98499         (lib_SOURCES): Add argp-pin.c
98501 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
98503         * m4/argp.m4:  Check if program_invocation_name and
98504         program_invocation_short_name are declared and define appropriate
98505         macros if they are not.
98507 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
98509         * lib/argp-help.c (__argp_base_name): New function
98510         (__argp_short_program_name): Rewrite using __argp_base_name
98511         * lib/argp-namefrob.h: Define program_invocation_name and
98512         program_invocation_short_name if requested
98513         (__argp_base_name): Add prototype
98514         * lib/argp-parse.c (argp_def): Use gettext wrappers
98515         (argp_default_parser): Use __argp_base_name
98516         * lib/argp-pin.c: New file. Defines program_invocation_name and
98517         program_invocation_short_name on systems that lack them.
98519 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
98521         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
98522         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
98523         porting problem reported by Georg Schwarz in
98524         <http://lists.gnu.org/r/bug-coreutils/2005-12/msg00083.html>.
98526 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
98528         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
98529         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
98530         porting problem reported by Georg Schwarz in
98531         <http://lists.gnu.org/r/bug-coreutils/2005-12/msg00083.html>.
98533 2005-12-05  Bruno Haible  <bruno@clisp.org>
98535         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
98536         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
98537         Reported by Mark Junker <mjscod@gmx.de>.
98539 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
98541         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
98542         Use implementation from Albert Chin, with some
98543         comments/corrections by Stepan Kasal and myself.
98545 2005-12-02  Bruno Haible  <bruno@clisp.org>
98547         * gnulib-tool (func_import): Accept GPLed build tool modules when
98548         --lgpl is given.
98549         * modules/csharpcomp-script: New file.
98550         * modules/csharpcomp: Depend on it.
98551         * modules/javacomp-script: New file.
98552         * modules/javacomp: Depend on it.
98553         Suggested by Simon Josefsson.
98555 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
98557         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
98558         statement, to work around an HP-UX 10.20 compiler bug reported by
98559         Peter O'Gorman.
98561 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
98563         * modules/savedir (Depends-on): Add openat.
98565 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
98567         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
98568         (uintmax_t) [defined uintmax_t]: Do not declare.
98569         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
98570         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
98571         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
98572         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
98573         sake of portability to weird hosts that C allows (though we don't
98574         know of any practical examples).
98576         * lib/savedir.h (fdsavedir): New decl.
98577         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
98578         contains most of the former guts of savedir.
98579         (savedir): Use savedirstream.
98580         Include "openat.h".
98582 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
98584         * modules/obstack (Files): Add m4/ulonglong.m4.
98585         Problem reported by Davide Angelocola.
98587 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
98589         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
98590         coreutils no longer futzes with rounding modes.
98592 2005-11-14  Jim Meyering  <jim@meyering.net>
98594         * lib/mkstemp-safer.c: Include <config.h>, required for possible
98595         replacement of mkstemp.
98597 2005-11-10  Simon Josefsson  <jas@extundo.com>
98599         * lib/readline.c: Remove EOL.
98601 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
98603         * modules/gethrxtime (Depends-on): Add gettime.
98605 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
98607         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
98608         or gettimeofday; no longer needed.
98610 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
98612         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
98613         time business.
98614         (gethrxtime) [! (HAVE_NANOUPTIME
98615         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
98616         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
98617         our own approximation.
98619 2005-11-08  Eric Blake  <ebb9@byu.net>
98621         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
98623 2005-11-08  Eric Blake  <ebb9@byu.net>
98625         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
98627 2005-11-04  Bruno Haible  <bruno@clisp.org>
98629         * gnulib-tool: Implement --update mode.
98631 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
98633         Fix porting problem reported by Theodoros V. Kalamatianos.
98634         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
98635         Don't assume that futimes failing means we must fail.
98637 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
98639         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
98640         variables to suggest the intended function of the PATH_MAX check.
98642 2005-10-30  Kean Johnston  <jkj@sco.com>
98644         Trivial changes to support SCO systems.
98645         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
98646         as PATH_MAX.
98647         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
98648         where __ptr is null when no I/O is pending.
98650 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
98652         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
98653         leave errno alone.  Problem reported by Dmitry V. Levin.
98655 2005-10-28  Simon Josefsson  <jas@extundo.com>
98657         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
98658         Test more.
98660         * tests/test-gc-md2.c, tests/test-md2.c: New files.
98662         * modules/md2, modules/md2-tests: New files.
98664 2005-10-28  Simon Josefsson  <jas@extundo.com>
98666         * m4/inet_ntop.m4: More tests.
98668         * m4/gc-md2.m4, md2.m4: New file.
98670 2005-10-28  Simon Josefsson  <jas@extundo.com>
98672         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
98673         "restrict" keywords, as per POSIX.  Protect the function
98674         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
98675         Don't use K&R prototypes.  Check the sprintf return values.
98676         Re-define EAFNOSUPPORT if not present.  Indent.
98678         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
98679         suggested by Bruno Haible <bruno@clisp.org>.
98681         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
98683         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
98685         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
98686         libgcrypt).
98688         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
98690         * lib/md2.h, lib/md2.c: New files.
98692 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
98694         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
98695         errno alone.  Problem reported by Frederic Jolliton.
98697 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
98699         * modules/verify (License): Change from GPL to LGPL.  This is a
98700         tiny module and there are apparently near-equivalents that are
98701         under the BSD license.
98703 2005-10-24  Simon Josefsson  <jas@extundo.com>
98705         * modules/sha1: Relicense to LGPL.
98707 2005-10-24  Simon Josefsson  <jas@extundo.com>
98709         * lib/md4.h: Shrink buffer size, now that we changed the type.
98711 2005-10-23  Simon Josefsson  <jas@extundo.com>
98713         * gnulib-tool (func_import): Fix --tests-base.
98715 2005-10-22  Simon Josefsson  <jas@extundo.com>
98717         * modules/arcfour (Depends-on): Need stdint.
98719 2005-10-22  Simon Josefsson  <jas@extundo.com>
98721         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
98722         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
98724 2005-10-22  Simon Josefsson  <jas@extundo.com>
98726         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
98727         suggested by Bruno Haible <bruno@clisp.org>.
98729 2005-10-22  Simon Josefsson  <jas@extundo.com>
98731         * lib/crc.h: Include stddef.h, for size_t.
98733 2005-10-22  Simon Josefsson  <jas@extundo.com>
98735         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
98736         arcfour_context struct (simplify test vector testing in GNU
98737         Shishi).
98739 2005-10-21  Simon Josefsson  <jas@extundo.com>
98741         * modules/des, modules/des-tests: New files.
98743         * modules/gc-des, modules/gc-des-tests: New files.
98745         * tests/test-des.c, tests/test-gc-des.c: New file.
98747 2005-10-21  Simon Josefsson  <jas@extundo.com>
98749         * modules/arctwo, modules/arctwo-tests: New files.
98751         * tests/test-arctwo.c: New file.
98753         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
98755         * tests/test-gc-arctwo.c: New file.
98757 2005-10-21  Simon Josefsson  <jas@extundo.com>
98759         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
98760         Bruno Haible <bruno@clisp.org>.
98762         * m4/gc-des.m4: New file.
98764 2005-10-21  Simon Josefsson  <jas@extundo.com>
98766         * m4/arctwo.m4: New file.
98768         * m4/gc-arctwo.m4: New file.
98770 2005-10-21  Simon Josefsson  <jas@extundo.com>
98772         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
98773         block.
98775 2005-10-21  Simon Josefsson  <jas@extundo.com>
98777         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
98778         <bruno@clisp.org>.
98780         * lib/hmac-sha1.c (hmac_sha1): Likewise.
98782         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
98783         Bruno Haible <bruno@clisp.org>.
98785         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
98786         <bruno@clisp.org>.
98788 2005-10-21  Simon Josefsson  <jas@extundo.com>
98790         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
98792 2005-10-21  Simon Josefsson  <jas@extundo.com>
98794         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
98796 2005-10-21  Simon Josefsson  <jas@extundo.com>
98798         * lib/des.h, lib/des.c: New files.
98800         * lib/gc-gnulib.c: Support DES.c
98802 2005-10-21  Simon Josefsson  <jas@extundo.com>
98804         * lib/arctwo.h, lib/arctwo.c: New files.
98806         * lib/gc-gnulib.c: Support ARCTWO.
98808 2005-10-21  Simon Josefsson  <jas@extundo.com>
98810         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
98811         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
98813 2005-10-21  Simon Josefsson  <jas@extundo.com>
98815         * gnulib-tool (func_import, func_create_testdir): Define automake
98816         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
98817         Makefile.am snippet),
98818         suggested by Bruno Haible <bruno@clisp.org>.
98820         * modules/gc (Makefile.am): Use it.
98822 2005-10-21  Bruno Haible  <bruno@clisp.org>
98824         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
98825         patch.
98827 2005-10-19  Simon Josefsson  <jas@extundo.com>
98829         * tests/test-gc-rijndael.c: New file.
98831         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
98833 2005-10-19  Simon Josefsson  <jas@extundo.com>
98835         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
98836         interface too.
98838 2005-10-19  Simon Josefsson  <jas@extundo.com>
98840         * tests/test-gc-arcfour.c: New file.
98842         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
98844 2005-10-19  Simon Josefsson  <jas@extundo.com>
98846         * modules/gc-md4, modules/gc-md4-tests: New file.
98848         * tests/test-gc-md4.c: New file.
98850 2005-10-19  Simon Josefsson  <jas@extundo.com>
98852         * m4/gc-md4.m4: New file.
98854 2005-10-19  Simon Josefsson  <jas@extundo.com>
98856         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
98857         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
98858         <kasal@ucw.cz>.
98860 2005-10-19  Simon Josefsson  <jas@extundo.com>
98862         * m4/gc-arcfour.m4: New file.
98864         * m4/gc-rijndael.m4: New file.
98866 2005-10-19  Simon Josefsson  <jas@extundo.com>
98868         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
98870 2005-10-19  Simon Josefsson  <jas@extundo.com>
98872         * lib/gc-gnulib.c: Support ARCFOUR.
98874 2005-10-19  Simon Josefsson  <jas@extundo.com>
98876         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
98877         support.
98879         * lib/gc.h: Add ECB enum type.
98881         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
98883 2005-10-18  Simon Josefsson  <jas@extundo.com>
98885         * tests/test-md5.c: New file.
98887         * modules/md5-tests: New file.
98889 2005-10-18  Simon Josefsson  <jas@extundo.com>
98891         * tests/test-md4.c: New file.
98893         * modules/md4, modules/md4-tests: New files.
98895 2005-10-18  Simon Josefsson  <jas@extundo.com>
98897         * m4/md4.m4: New file.
98899 2005-10-18  Simon Josefsson  <jas@extundo.com>
98901         * lib/md4.h, lib/md4.c: New files, based on md5.?.
98903 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
98905         * gnulib-tool (func_create_testdir): Omit the second check whether
98906         BUILT_SOURCES in nonempty.
98908 2005-10-17  Simon Josefsson  <jas@extundo.com>
98910         * tests/test-rijndael.c: New file.
98912 2005-10-17  Simon Josefsson  <jas@extundo.com>
98914         * modules/sha1: Depend on stdint instead of md5.
98916         * modules/md5: Depend on stdint, remove uint32_t.
98918 2005-10-17  Simon Josefsson  <jas@extundo.com>
98920         * modules/gc-sha1-tests: New file.
98922         * tests/test-gc-sha1.c: New file.
98924 2005-10-17  Simon Josefsson  <jas@extundo.com>
98926         * m4/md5.m4: Remove call to uint32_t.m4.
98928 2005-10-17  Simon Josefsson  <jas@extundo.com>
98930         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
98932         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
98933         md5.h.
98935         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
98937         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
98939 2005-10-17  Simon Josefsson  <jas@extundo.com>
98941         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
98943 2005-10-17  Simon Josefsson  <jas@extundo.com>
98945         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
98947 2005-10-17  Simon Josefsson  <jas@extundo.com>
98949         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
98951         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
98953 2005-10-17  Bruno Haible  <bruno@clisp.org>
98955         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
98956         that it can also be used in a test.
98958 2005-10-16  Bruno Haible  <bruno@clisp.org>
98960         * gnulib-tool (func_emit_tests_Makefile_am): Also define
98961         TESTS_ENVIRONMENT, so that individual tests can augment it.
98963         * gnulib-tool (func_create_testdir): Use an intermediate target for
98964         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
98965         macros, like $(ALLOCA_H), which cannot be passed through the command
98966         line.
98968 2005-10-15  Simon Josefsson  <jas@extundo.com>
98970         * modules/rijndael-tests: New file.
98972         * modules/rijndael: New file.
98974 2005-10-15  Simon Josefsson  <jas@extundo.com>
98976         * m4/rijndael.m4: New file.
98978 2005-10-15  Simon Josefsson  <jas@extundo.com>
98980         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
98982         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
98984 2005-10-14  Simon Josefsson  <jas@extundo.com>
98986         * tests/test-arcfour.c: New file.
98988         * modules/arcfour, modules/arcfour-tests: New files.
98990 2005-10-14  Simon Josefsson  <jas@extundo.com>
98992         * m4/arcfour.m4: New file.
98994 2005-10-14  Simon Josefsson  <jas@extundo.com>
98996         * lib/arcfour.h, lib/arcfour.c: New files.
98998 2005-10-14  Roland McGrath  <roland@redhat.com>
99000         Import from libc.  [BZ #1331]
99001         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
99002         macro argument.
99003         Reported by Matej Vela <vela@debian.org>.
99005 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
99007         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
99008         include <wchar.h>; no longer needed.
99010 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
99012         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
99014 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
99015         and  Ulrich Drepper  <drepper@redhat.com>
99017         Import from libc.
99018         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
99019         instead of inline stream orientation test and two separate
99020         function calls.  Pay no attention to USE_IN_LIBIO.
99022 2005-10-13  Simon Josefsson  <jas@extundo.com>
99024         * modules/gc-hmac-md5-tests: New file.
99026         * tests/test-gc-hmac-sha1.c: New file.
99028         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
99030         * modules/gc-hmac-md5-tests: New file.
99032         * tests/test-gc-md5.c: New file.
99034         * modules/gc-md5-tests: New file.
99036 2005-10-13  Simon Josefsson  <jas@extundo.com>
99038         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
99039         Move memory allocation outside of loop.
99041 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
99043         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
99044         intermediate directory is in a read-only file system.  Problem
99045         reported by Eric Blake.
99047 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
99049         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
99051 2005-10-12  Simon Josefsson  <jas@extundo.com>
99053         * tests/test-hmac-sha1.c: New file.
99055         * modules/hmac-sha1-tests: New file.
99057         * modules/hmac-sha1: New file.
99059 2005-10-12  Simon Josefsson  <jas@extundo.com>
99061         * modules/gc-sha1: New file.
99063 2005-10-12  Simon Josefsson  <jas@extundo.com>
99065         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
99067         * tests/test-gc-pbkdf2-sha1.c: New file.
99069 2005-10-12  Simon Josefsson  <jas@extundo.com>
99071         * modules/gc-md5, modules/gc-hmac-md5: New files.
99073         * modules/gc (Files): Remove md5, memxor and hmac files.
99075 2005-10-12  Simon Josefsson  <jas@extundo.com>
99077         * m4/gc-pbkdf2-sha1.m4: New file.
99079         * m4/gc-hmac-sha1.m4: New file.
99081         * m4/gc-sha1: New file.
99083         * m4/hmac-sha1.m4: New file.
99085 2005-10-12  Simon Josefsson  <jas@extundo.com>
99087         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
99089         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
99091 2005-10-12  Simon Josefsson  <jas@extundo.com>
99093         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
99094         suggested by Bruno Haible <bruno@clisp.org>.
99096 2005-10-12  Simon Josefsson  <jas@extundo.com>
99098         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
99100 2005-10-12  Simon Josefsson  <jas@extundo.com>
99102         * lib/gc-pbkdf2-sha1.c: New file.
99104         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
99106 2005-10-12  Simon Josefsson  <jas@extundo.com>
99108         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
99110         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
99112 2005-10-12  Simon Josefsson  <jas@extundo.com>
99114         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
99115         GC_USE_HMAC_MD5, respectively.
99117         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
99118         (gc_md5): Fix typo.
99120         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
99122         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
99124         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
99126 2005-10-12  Bruno Haible  <bruno@clisp.org>
99128         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
99129         Reported by Stepan Kasal <kasal@ucw.cz>.
99131 2005-10-11  Simon Josefsson  <jas@extundo.com>
99133         * tests/test-crc.c: New file.
99135         * modules/crc, modules/crc-tests: New files.
99137 2005-10-11  Simon Josefsson  <jas@extundo.com>
99139         * m4/crc.m4: New file.
99141 2005-10-11  Simon Josefsson  <jas@extundo.com>
99143         * lib/gc.h: Add gc_hash and gc_hash_buffer.
99145         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
99147         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
99149 2005-10-11  Simon Josefsson  <jas@extundo.com>
99151         * lib/crc.h, lib/crc.c: New files.
99153         * lib/gc.h (gc_hash_buffer): Add doc.
99155 2005-10-11  Bruno Haible  <bruno@clisp.org>
99157         * modules/c-strcasestr: New file.
99158         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
99160 2005-10-11  Bruno Haible  <bruno@clisp.org>
99162         * modules/c-strcase: New file.
99163         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
99165 2005-10-11  Bruno Haible  <bruno@clisp.org>
99167         * lib/strcasecmp.c: Include limits.h.
99168         (strcasecmp): Avoid integer overflow on exotic platforms.
99169         * lib/strncasecmp.c: Include limits.h.
99170         (strncasecmp): Avoid integer overflow on exotic platforms.
99171         Reported by Paul Eggert.
99173 2005-10-11  Bruno Haible  <bruno@clisp.org>
99175         * lib/c-strcasestr.h: New file, from GNU gettext.
99176         * lib/c-strcasestr.c: New file, from GNU gettext.
99178 2005-10-11  Bruno Haible  <bruno@clisp.org>
99180         * lib/c-strcase.h: New file, from GNU gettext.
99181         * lib/c-strcasecmp.c: New file, from GNU gettext.
99182         * lib/c-strncasecmp.c: New file, from GNU gettext.
99184 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
99186         * modules/mempcpy (License): GPL -> LGPL.
99187         * modules/strchrnul (License): Likewise.
99188         * modules/sysexits (License): Likewise.
99190 2005-10-08  Simon Josefsson  <jas@extundo.com>
99192         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
99194 2005-10-07  Simon Josefsson  <jas@extundo.com>
99196         * m4/memxor.m4: Remove gl_C_RESTRICT call.
99198 2005-10-06  Simon Josefsson  <jas@extundo.com>
99200         * tests/test-hmac-md5.c: New file.
99202         * modules/hmac-md5-tests: New file.
99204         * modules/hmac-md5: New file.
99206 2005-10-06  Simon Josefsson  <jas@extundo.com>
99208         * m4/hmac-md5.m4: New file.
99210         * m4/memxor.m4: Require gl_C_RESTRICT.
99212 2005-10-06  Simon Josefsson  <jas@extundo.com>
99214         * lib/memxor.c (memxor): Avoid casts and warnings.
99216 2005-10-06  Simon Josefsson  <jas@extundo.com>
99218         * lib/hmac-md5.c: New file.
99220         * lib/hmac.h: New file.
99222 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
99224         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
99225         promotes to int, not unsigned int, to catch the AIX 5.3
99226         compiler bug.
99228 2005-10-05  Simon Josefsson  <jas@extundo.com>
99230         * modules/memxor: New file.
99232         * modules/iconv (Files): Move config.rpath to havelib, it is used
99233         there.
99235         * modules/havelib (Files): Add config.rpath.
99237 2005-10-05  Simon Josefsson  <jas@extundo.com>
99239         * m4/memxor.m4: New file.
99241 2005-10-05  Simon Josefsson  <jas@extundo.com>
99243         * lib/memxor.c (memxor): Fix compiler error.
99245         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
99246         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
99248         * lib/memxor.h, lib/memxor.c: New files.
99250         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
99251         we assume all systems have it, suggested by Jim Meyering
99252         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
99253         any systems lack sys/socket.h; mingw32 is known to lack it, but we
99254         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
99255         same reasons.
99257 2005-10-05  Simon Josefsson  <jas@extundo.com>
99259         * config/srclist.txt: Add glibc bug 1423 for md5.h.
99261 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
99263         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
99264         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
99265         needed, since the source code now assumes these .h files.
99267 2005-10-05  Derek Price  <derek@ximbiot.com>
99269         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
99271 2005-10-05  Bruno Haible  <bruno@clisp.org>
99273         * modules/stdint (License): Change to LGPL.
99275 2005-10-04  Simon Josefsson  <jas@extundo.com>
99277         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
99278         D. Baushke" <mdb@gnu.org>.
99280 2005-10-04  Bruno Haible  <bruno@clisp.org>
99282         * lib/verify.h (verify_true): Provide alternative definition for C++.
99284 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
99286         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
99287         (SSIZE_MAX): New macro, if not already defined.
99288         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
99289         than 2 GiB.
99291 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
99293         Sync from coreutils.
99294         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
99295         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
99296         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
99297         ULLONG_MAX doesn't work with 2.7.2.1.
99299 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
99301         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
99302         From Ben Pfaff.
99304         * modules/exclude (Depends-on): Depend on verify.
99305         * modules/strtoimax (Depends-on): Likewise.
99306         * modules/utimecmp (Depends-on): Likewise.
99308 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
99310         * lib/exclude.c: Include verify.h.
99311         (verify): Remove.  All callers changed to use verify.h's version.
99312         * lib/strtoimax.c: Likewise.
99313         * lib/utimecmp.c: Likewis.e
99315         Sync from coreutils.
99316         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
99317         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
99318         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
99319         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
99320         bother returning ENOSYS if settimeofday or stime fails; just let
99321         them return whatever errno they want to return.
99322         * lib/utimens.c: Include unistd.h, for dup2.
99323         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
99324         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
99326 2005-10-02  Jim Meyering  <jim@meyering.net>
99328         Sync from coreutils.
99329         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
99330         from glibc-2.2.5 that fails for read-only files.
99332 2005-10-02  Jim Meyering  <jim@meyering.net>
99334         Sync from coreutils.
99335         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
99336         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
99337         `#if HAVE_CONFIG_H'.
99338         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
99339         Remove AT_FDCWD test.
99340         Do not consume the fd unless successful.
99341         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
99342         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
99343         block, so that we don't even try to compile it if settimeofday is
99344         available.  This works around a compilation failure on OSF1 V5.1,
99345         due to stime requiring a `long int*' while tv_sec is `int'.
99347 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
99349         Sync from coreutils.
99350         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
99351         against `yes', rather than just testing for nonempty.
99353 2005-10-01  Simon Josefsson  <jas@extundo.com>
99355         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
99356         and Darwin.
99358         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
99359         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
99360         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
99361         freeaddrinfo and gai_strerror are declared by the POSIX headers.
99362         Check if struct addrinfo is declared.
99364 2005-10-01  Simon Josefsson  <jas@extundo.com>
99366         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
99367         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
99368         AI_* and EAI_* definitions.  Protect function declarations.
99370 2005-10-01  Jim Meyering  <jim@meyering.net>
99372         Sync from coreutils.
99374         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
99375         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
99376         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
99377         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
99378         in the inet and nsl libraries.  Required on Solaris 5.7.
99380 2005-10-01  Jim Meyering  <jim@meyering.net>
99382         Sync from coreutils.
99383         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
99384         in the inet and nsl libraries.  Required on Solaris 5.7.
99386 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
99388         * lib/getdelim.c (getdelim): Remove unused variables.
99390 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
99392         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
99393         so that the code works even with ancient cpp.  Portability problem
99394         with GCC 2.7.2.1 reported by Thomas M.Ott.
99396 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
99398         * modules/regex (Depends-on): Add strcase.
99400         * modules/gethostname (Licence): Change from GPL to LGPL, since
99401         gethostname.c is a trivial implementation of a standard library
99402         function.
99403         * modules/poll (License): Change from GPL to LGPL, since it's
99404         derived from LGPL code.
99406 2005-09-27  Jim Meyering  <jim@meyering.net>
99408         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
99409         HAVE_CONFIG_H.
99411         * lib/intprops.h (signed_type_or_expr__): Define.
99412         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
99413         for unsigned types.
99415 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
99417         * lib/verify.h (verify_expr): Remove, replacing with:
99418         (verify_true): New macro that returns true instead of void.
99419         (verify_type__): Remove.
99420         (verify): Use verify_true rather than verify_type__.
99422 2005-09-26  Bruno Haible  <bruno@clisp.org>
99424         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
99425         is necessary.
99426         (lib_SOURCES): Remove mbchar.c.
99427         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
99428         (Files): Add m4/mbrtowc.m4.
99429         * modules/mbiter: Likewise.
99430         * modules/mbuiter: Likewise.
99432 2005-09-26  Bruno Haible  <bruno@clisp.org>
99434         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
99435         compile mbchar.c if they are not both present.
99436         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
99437         * m4/mbiter.m4 (gl_MBITER): Likewise.
99438         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
99439         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
99440         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
99442 2005-09-25  Jim Meyering  <jim@meyering.net>
99444         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
99445         also uses socklen_t.
99447 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
99449         * lib/utimens.c (ENOSYS): Define if not already defined.
99450         (futimens): Support having a null PATH if the file descriptor
99451         is nonnegative.
99453         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
99454         Remove.
99455         (__attribute): Define to empty unless GCC 3.1 or later.
99456         This works around a core dump on OpenBSD 3.4, which has GCC
99457         2.95.3, which dumps core when given __attribute__(()).  It also
99458         simplifies other tests, since we really don't want to bother with
99459         worrying about which ancient version of GCC supported what.
99460         Original problem reported by Yoann Vandoorselaere, with part of
99461         the fix suggested by Derek Price.
99463 2005-09-24  Jim Meyering  <jim@meyering.net>
99465         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
99466         so we can once again use a positive bitfield width of 1 -- now we
99467         don't have to explain why we were using a bitfield width of 2.
99469 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
99471         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
99472         and similarly for the other external symbols.  Problem reported
99473         by James Gallager.
99475         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
99476         bug reported by Jim Meyering.
99478         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
99479         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
99480         not needed, since socklen is a prerequisite module.
99482 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
99484         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
99485         Problem reported by Eric Blake.
99486         (getaddrinfo): Initialize se so that it's not garbage.
99487         Redo internal storage allocation so that it doesn't make unportable
99488         assumptions about alignment.
99489         Fix a memory leak.
99491         * lib/utimens.c (futimens): Use futimesat if available.
99492         Prefer it to futimes since it doesn't have the futimes bug.
99494         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
99495         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
99496         Instead, declare a function that returns a pointer to an array,
99497         and use verify_type__ to declare the size of the array.
99498         Problem and germ of a solution reported by Bruno Haible.
99499         (verify_type__): Use 2, not 1, for bitfield size, to avoid
99500         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
99502 2005-09-23  Jim Meyering  <jim@meyering.net>
99504         Sync from coreutils.
99505         Correct build failure (socklen_t not defined) on at least
99506         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
99507         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
99509 2005-09-23  Jim Meyering  <jim@meyering.net>
99511         * modules/getaddrinfo (Depends-on): Add socklen.
99513 2005-09-23  Bruno Haible  <bruno@clisp.org>
99515         * tests/test-verify.c: New file.
99517 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
99519         Sync from coreutils.
99521         * modules/argmatch (Depends-on): Add verify.
99522         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
99523         unistd-safer.
99524         * modules/save-cwd (Depends-on): Likewise.
99526         * modules/openat (Files): Add lib/openat-die.c.
99527         (Depends-on): Remove error, exitfail.
99528         Add dirname.
99530         * modules/verify: New file.
99531         * MODULES.html.sh (Diagnostics <assert.h>): New section,
99532         with "verify" module.
99534 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
99536         Sync from coreutils.
99538         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
99539         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
99540         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
99541         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
99542         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
99543         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
99544         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
99545         Don't bother checking for string.h, stdlib.h, unistd.h.
99546         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
99547         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
99548         module's job.
99549         * m4/jm-macros.m4 (gl_MACROS): Likewise.
99550         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
99552         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
99553         (gl_GETDATE): Use it.
99555         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
99557 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
99559         Sync from coreutils.
99561         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
99562         stat-time.h.
99563         * lib/argmatch.h: Include verify.h
99564         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
99565         (ARGMATCH_ASSERT): Remove; unused.
99566         * lib/canonicalize.c: Assume STDC_HEADERS.
99567         * lib/exclude.c: Include "strcase.h".
99568         * lib/regex_internal.h [!defined _LIBC]: Likewise.
99569         * lib/getusershell.c: Include stdio--.h rather than stdio.h
99570         and stdio-safer.h.
99571         (getusershell): Call fopen, not fopen_safer.
99572         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
99573         Do not include unistd-safer.h.
99574         (save_cwd): Don't call fd_safer; no longer needed
99575         now that we include fcntl--.h.
99577         * lib/getdate.y (relative_time): New type.
99578         (RELATIVE_TIME_0): New constant.
99579         (parser_control): Use relative_time instead of doing it ourselves.
99580         (%union): Add new relative_time rel member.
99581         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
99582         Now typeless.
99583         (relunit, relunit_snumber): Now of type rel.
99584         (zone, rel, relunit, get_date): Adjust to above changes.
99586         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
99587         Do not include unistd-safer.h.
99588         (getloadavg): Don't call fd_safer; no longer needed
99589         now that we include fcntl--.h.
99591         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
99592         (make_dir_parents): Treat ENOSYS like EEXIST.
99594         Improve quality of diagnostics on restore_cwd failure.
99595         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
99596         (make_dir_parents): Last arg is now int * (for errno), not bool *.
99597         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
99598         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
99599         each time through the loop.  Do not diagnose restore_cwd failure;
99600         that is the caller's job (and perhaps the caller does not care).
99602         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
99603         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
99604         If the file already exists but is not a directory, don't bother
99605         to try to make its parents.
99606         Close potential file descriptor leak if we can't chdir("/") (!).
99607         Don't always return true if chdir($PWD) fails; return true only
99608         if the requested action was done successfully (except for the
99609         chdir($PWD)).
99610         Don't log final directory unless we actually made it.
99611         Refactor to avoid duplicate code to fix up permissions.
99612         Don't attempt to fix up parent permissions if chdir($PWD) fails.
99614         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
99615         to make it a bit faster and (I hope) clearer.
99616         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
99617         Fix bug in formats like %2N.
99619         * lib/verify.h: New file.
99621 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
99623         Sync from coreutils.
99624         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
99626 2005-09-22  Jim Meyering  <jim@meyering.net>
99628         Sync from coreutils.
99630         * m4/lstat.m4 (gl_FUNC_LSTAT):
99631         Use AC_LIBSOURCES to require lstat.c and lstat.h.
99632         Remove obsolete comment.
99633         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
99634         * m4/xstrtod.m4: Likewise.
99636         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
99638 2005-09-22  Jim Meyering  <jim@meyering.net>
99640         Sync from coreutils.
99642         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
99644         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
99645         the .tm_year member, since otherwise gcc-4.0 would now warn about
99646         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
99648         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
99649         order to avoid an unsuppressible warning from gcc on 64-bit systems.
99651         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
99652         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
99653         when run in a time zone for which daylight savings time is in effect
99654         for the starting date.
99656         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
99657         stop us from restricting permissions of just-created absolute-named
99658         directories.
99659         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
99660         to restore initial working directory.
99661         * lib/mkdir-p.c (make_dir_parents): New parameter:
99662         different_working_dir, to tell caller if/when we change the working
99663         directory and are unable to return to the initial one.
99664         * lib/mkdir-p.h (make_dir_parents): Update prototype.
99665         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
99666         `return false'.  This fixes a bug introduced on 2004-07-30.
99668         * lib/openat.c (fdopendir): Be sure to close the supplied
99669         file descriptor before returning.  This makes our replacement
99670         implementation a little closer to Solaris's, where fdopendir
99671         ties the file descriptor to the returned DIR* pointer.
99672         * lib/openat.c (unlinkat): New function.
99673         * lib/openat.h (unlinkat): Add prototype.
99674         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
99675         (openat_restore_fail): Rename from openat_restore_die.
99676         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
99678         Provide an alternative to exiting immediately upon save_cwd or
99679         restore_cwd failure.  Now, an application can arrange e.g.,
99680         to perform a longjump in that case.
99681         * lib/openat.c: Include dirname.h.
99682         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
99683         (rpl_openat, fdopendir, fstatat): Call openat_save_die
99684         and openat_restore_die rather than calling error directly.
99685         Don't include "error.h" or "exitfail.h"; they're no longer needed.
99687         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
99688         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
99689         define.
99691         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
99692         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
99693                             int utc, int nanoseconds);
99694         Background:
99695         date should not have to allocate a megabyte of virtual memory to
99696         handle a format argument like +%1048575T.  When implemented with
99697         strftime, it must allocate such a buffer, use strftime to fill it
99698         in, print it, then free it.
99699         With fprintftime, it simply prints everything and exits.
99700         With no need for memory allocation, that's one fewer way to fail.
99701         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
99702         optional field width, not before, so we accept %9:z, not %:9z.
99703         (my_strftime): Be sure to use L_('x') for literals.
99705         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
99706         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
99707         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
99708         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
99709         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
99710         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
99711         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
99712         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
99713         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
99714         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
99715         * lib/xgethostname.c, lib/xreadlink.c:
99716         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
99718         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
99719         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
99720         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
99721         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
99722         and don't include <sys/file.h>).
99724 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
99726         Sync from coreutils.
99728         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
99729         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
99730         [!LDAV_DONE]: Avoid unused variable warning.
99732 2005-09-21  Bruno Haible  <bruno@clisp.org>
99734         * lib/unicodeio.h (unicode_to_mb): New declaration.
99736 2005-09-20  Derek Price  <derek@ximbiot.com>
99738         * lib/getaddrinfo.c: Don't include <netdb.h> included from
99739         getaddrinfo.h.
99741 2005-09-20  Bruno Haible  <bruno@clisp.org>
99743         * gnulib-tool: Remove trailing slashes from the values specified for
99744         --source-base, --m4-base, --tests-base, --aux-dir.
99745         Suggested by Simon Josefsson <jas@extundo.com>.
99747 2005-09-20  Bruno Haible  <bruno@clisp.org>
99749         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
99750         func_modules_to_filelist, func_import, func_create_testdir): Make all
99751         sorting results locale-independent, so that gnulib-cache.m4 doesn't
99752         change when gnulib-tool is invoked in a different locale.
99754 2005-09-19  Simon Josefsson  <jas@extundo.com>
99756         * m4/socklen.m4: Fix typo.
99758 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
99760         Use a consistent style for including <config.h>.
99761         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
99762         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
99763         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
99764         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
99765         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
99766         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
99767         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
99768         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
99769         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
99770         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
99771         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
99772         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
99773         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
99774         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
99775         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
99776         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
99777         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
99778         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
99779         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
99780         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
99781         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
99782         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
99783         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
99784         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
99785         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
99786         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
99787         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
99788         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
99789         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
99790         lib/xstrtoumax.c, lib/yesno.c:
99791         Standardize inclusion of config.h.
99792         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
99793         lib/inttostr.h:  Removed inclusion of config.h from header files.
99794         * lib/inttostr.c:  Adjusted in-tree users.
99795         * lib/timespec.h: Remove superfluous warning to include config.h.
99796         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
99797         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
99798         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
99799         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
99800         config.h with HAVE_CONFIG_H.
99802 2005-09-19  Jim Meyering  <jim@meyering.net>
99804         * modules/pathmax (License): Change to LGPL.
99806 2005-09-19  Derek Price  <derek@ximbiot.com>
99808         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
99810 2005-09-19  Bruno Haible  <bruno@clisp.org>
99812         * gnulib-tool (import): Provide default for --tests-base.
99814 2005-09-19  Bruno Haible  <bruno@clisp.org>
99816         * doc/quote.texi: New file, extracted from gnulib.texi.
99817         * doc/ctime.texi: New file, extracted from gnulib.texi.
99818         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
99819         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
99820         * doc/gnulib.texi: Include them.
99822 2005-09-18  Bruno Haible  <bruno@clisp.org>
99824         Portability fix.
99825         * gnulib-tool (func_readlink): New function.
99826         (func_ln_if_changed): Use it.
99828 2005-09-18  Bruno Haible  <bruno@clisp.org>
99830         * gnulib-tool: Support --with-tests also with --import.
99831         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
99832         (func_import): Use variables $testsbase and $inctests. Emit a
99833         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
99834         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
99835         SUBDIRS += $testsdir.
99836         (func_create_testdir): Update.
99838 2005-09-18  Bruno Haible  <bruno@clisp.org>
99840         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
99841         instead of $dry_run.
99842         (func_cp_if_changed, func_mv_if_changed): Remove functions.
99843         (func_ln_if_changed): Don't handle dry-run here.
99844         (func_import): In dry-run mode, detect more precisely which actions
99845         would be performed, and don't use "...ing" verbs.
99847 2005-09-18  Bruno Haible  <bruno@clisp.org>
99849         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
99850         (func_import): Use join on two temporary files instead of three nested
99851         loops, in order to determine which files are new or old.
99853 2005-09-18  Bruno Haible  <bruno@clisp.org>
99855         * gnulib-tool (func_import): Comment out code that spits out the
99856         new files with --dry-run.
99858 2005-09-18  Bruno Haible  <bruno@clisp.org>
99860         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
99862 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
99864         * lib/stat-time.h: New file.
99865         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
99866         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
99867         in a different way.
99868         (timespec_cmp): New function.
99869         * lib/utimecmp.c: Include stat-time.h.
99870         (SYSCALL_RESOLUTION): Depend on whether various struct stat
99871         members exist, not on the obsolescent ST_MTIM_NSEC.
99872         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
99874 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
99876         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
99878 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
99880         * MODULES.html.sh (File system functions): Add stat-time.
99881         * modules/stat-time: New file.
99882         * modules/timespec (Files): Remove m4/st_mtim.m4; this
99883         is now done in a different way, by the stat-time module.
99884         * modules/utimecmp (Depends-on): Add stat-time.
99886 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
99888         * m4/st_mtim.m4: Remove.  Superseded by...
99889         * m4/stat-time.m4: New file.
99890         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
99891         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
99893 2005-09-15  Derek Price  <derek@ximbiot.com>
99895         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
99897 2005-09-15  Derek Price  <derek@ximbiot.com>
99899         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
99900         * lib/regex_internal.c: Ditto, using this...
99901         (__GNUC_PREREQ): ...new macro.
99902         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
99903         using...
99904         (__GNUC_PREREQ): ...this new macro.
99906         * lib/strstr.h: Include string.h. Define strstr as a macro here.
99908 2005-09-15  Derek Price  <derek@ximbiot.com>
99909             Paul Eggert  <eggert@cs.ucla.edu>
99911         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
99912         changes, consolidating in...
99913         * lib/regex_internal.h: ...this file.
99915 2005-09-13  Jim Meyering  <jim@meyering.net>
99917         * lib/canon-host.c: Filter through gnu indent and reword comments
99918         slightly.
99919         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
99921 2005-09-13  Derek Price  <derek@ximbiot.com>
99923         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
99924         failure.
99925         Reported by Jim Meyering  <jim@meyering.net>.
99927 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
99929         * lib/base64.c: Typo.
99930         (base64_encode): Put b64str in initialized data section.
99932 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
99934         Merge glibc and coreutils changes into gnulib, plus a few
99935         extra fixes.
99936         * lib/md5.c: Use #error rather than a string.
99937         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
99938         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
99939         (__attribute__): Define to empty for non recent-GCC.
99940         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
99941         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
99942         Renamed from their non-__ counterparts, with new macros replacing
99943         them if not _LIBC.  Add __THROW attribute.
99944         (rol): Remove.
99945         (struct md5_ctx): Align buffer if using GCC.
99946         * lib/sha1.h (struct sha1_ctx): Likewise.
99947         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
99948         The old name was backwards.
99949         (NOTSWAP): Remove; not used.
99950         (rol): New macro, moved here from md5.h.
99951         (sha1_process_block): Remove a FIXME that doesn't make sense.
99953 2005-09-12  Derek Price  <derek@ximbiot.com>
99955         Return usable errors from canon-host.
99956         * lib/canon-host.h: New file.
99957         * lib/canon-host.c (canon_host): Wrap...
99958         (canon_host_r): ...this new function, which now relies exclusively on
99959         getaddrinfo.
99960         (ch_strerror): New function.
99961         (last_cherror): New global.
99962         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
99963         interface.
99964         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
99965         void *.
99966         (freeaddrinfo): Free ai->ai_canonname when set.
99968 2005-09-12  Derek Price  <derek@ximbiot.com>
99970         Make canon-host require getaddrinfo.
99971         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
99972         AC_LIBSOURCE canon-host.h.  Call...
99973         (gl_PREREQ_CANON_HOST): ...this new function, which requires
99974         gl_GETADDRINFO.
99975         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
99977 2005-09-12  Derek Price  <derek@ximbiot.com>
99979         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
99980         LGPL.
99981         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
99983 2005-09-12  Derek Price  <derek@ximbiot.com>
99985         * lib/gai_strerror.c: Include config.h when available.  Include
99986         getaddrinfo.h before other headers to test interface.
99987         Reported by Larry Jones <lawrence.jones@ugs.com>.
99989 2005-09-12  Derek Price  <derek@ximbiot.com>
99990             Paul Eggert  <eggert@cs.ucla.edu>
99992         * modules/glob (Files): Add glob-libc.h.
99994 2005-09-12  Derek Price  <derek@ximbiot.com>
99995             Paul Eggert  <eggert@cs.ucla.edu>
99997         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
99998         glob_.h, glob-libc.h.
99999         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
100001 2005-09-12  Derek Price  <derek@ximbiot.com>
100002             Paul Eggert  <eggert@cs.ucla.edu>
100004         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
100005         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
100006         protecting things that should be done only in gnulib contexts.
100007         * lib/glob_.h: New file, containing only the glob things needed for
100008         gnulib.
100009         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
100010         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
100011         (glob, globfree, glob_pattern_p): Now defined simply in terms of
100012         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
100013         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
100014         and to respect the namespace rules better.
100016 2005-09-08  Simon Josefsson  <jas@extundo.com>
100018         * modules/socklen: New file.
100020 2005-09-08  Simon Josefsson  <jas@extundo.com>
100022         * m4/socklen.m4: New file.
100024 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
100026         * modules/utimens (Files): Add m4/utimbuf.m4, since
100027         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
100028         Reported by Sergey Poznyakoff.
100030 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
100032         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
100033         definitions, since that's the preferred style in glibc.
100034         Fix a minor spacing issue, and update copyright notice to match
100035         glibc's.
100037 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
100039         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
100041 2005-09-06  Simon Josefsson  <jas@extundo.com>
100043         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
100044         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
100046 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
100048         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
100049         warning.
100051 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
100053         * config/srclist.txt: Add glibc bug 1302.
100055 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
100057         Change bitset word type from unsigned int to unsigned long int,
100058         as this has better performance on typical 64-bit hosts.
100059         Port bitset code to hosts with unusual word sizes.
100060         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
100061         (build_collating_symbol):
100062         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
100063         argument is a bitset.  This is merely a style issue, but it makes
100064         it clearer that an entire array is expected.
100065         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
100066         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
100067         Port to the case where bitset_word is not the same as unsigned int.
100068         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
100069         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
100070         Likewise.
100071         * lib/regexec.c (check_dst_limits_calc_pos_1,
100072         check_subexp_matching_top):
100073         (build_trtable, group_nodes_into_DFAstates):
100074         Likewise.
100075         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
100076         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
100077         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
100078         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
100079         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
100080         * lib/regcomp.c (optimize_subexps, lower_subexp):
100081         Work even if bitset_word has holes in its bitwise representation.
100082         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
100083         * lib/regexec.c (check_dst_limits_calc_pos_1,
100084         check_subexp_matching_top):
100085         Likewise.
100086         * lib/regex_internal.c (re_string_reconstruct):
100087         Don't assume UCHAR_MAX == 255.
100088         * lib/regex_internal.h (bitset_set_all): Likewise.
100089         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
100090         All uses changed.
100091         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
100092         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
100093         All uses changed.
100094         (BITSET_WORD_MAX): New macro.
100095         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
100096         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
100097         (bitset_empty, bitset_copy):
100098         Prefer sizeof (bitset) to multiplying it out ourselves.
100099         (bitset_not_merge): Remove; unused.
100100         (bitset_contain): Return bool, not unsigned int with one bit on.
100101         All callers changed.
100102         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
100103         alignment than re_node_set; do this by defining a new internal
100104         type struct dests_alloc and using it to allocate memory.
100106 2005-09-05  Bruno Haible  <bruno@clisp.org>
100108         * gnulib-tool (func_import): Fix comparison in handling of symbolic
100109         links.
100111 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
100113         * modules/size_max (Makefile.am): Add size_max.h
100115 2005-09-04  Derek Price  <derek@ximbiot.com>
100117         * gnulib-tool (func_import): Fix reversed $symbolic logic.
100119 2005-09-03  Simon Josefsson  <jas@extundo.com>
100121         * gnulib-tool: Fix typo.
100123 2005-09-03  Simon Josefsson  <jas@extundo.com>
100125         * config/srclist.txt: Add glibc bug 1293.
100127 2005-09-03  Derek Price  <derek@ximbiot.com>
100129         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
100130         From Larry Jones <lawrence.jones@ugs.com>.
100132 2005-09-02  Simon Josefsson  <jas@extundo.com>
100134         * modules/socklen: New file.
100136 2005-09-02  Simon Josefsson  <jas@extundo.com>
100138         * modules/havelib: New module.
100140         * modules/gettext, modules/iconv, modules/lock, modules/readline:
100141         Use havelib.
100143 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
100145         Check for arithmetic overflow when calculating sizes, to prevent
100146         some buffer-overflow issues.  These patches are conservative, in the
100147         sense that when I couldn't determine whether an overflow was possible,
100148         I inserted a run-time check.
100149         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
100150         macros.
100151         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
100152         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
100153         (re_xnrealloc, re_x2nrealloc): New inline functions.
100154         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
100155         parse_bracket_exp):
100156         (build_equiv_class, build_charclass): Check for arithmetic overflow
100157         in size expression calculations.
100158         * lib/regex_internal.c (re_string_realloc_buffers):
100159         (build_wcs_upper_buffer, re_node_set_add_intersect):
100160         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
100161         (re_dfa_add_node, register_state): Likewise.
100162         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
100163         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
100164         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
100165         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
100167 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
100169         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
100170         m4/ulonglong.m4.  Problem reported by Martin Lambers.
100172 2005-09-02  Bruno Haible  <bruno@clisp.org>
100174         Support for lib vs. lib64 distinction on biarch platforms.
100175         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
100176         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
100177         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
100179 2005-09-02  Bruno Haible  <bruno@clisp.org>
100181         * gnulib-tool (import): In the other first-use case, provide defaults
100182         as well.
100184 2005-09-02  Bruno Haible  <bruno@clisp.org>
100186         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
100187         patches not yet found in the latest gettext release.
100189 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
100191         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
100192         to avoid a collision with bits/local_lim.h in glibc.
100193         All uses changed.  Problem reported by Dmitry V. Levin in
100194         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
100196         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
100197         bugs in int versus size_t comparisons.
100198         (re_string_context_at): Fix bug where the code assumed that
100199         Idx is signed.
100201         Use bool where appropriate.
100202         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
100203         All callers changed.
100204         (calc_eclosure_iter): Likewise, for ROOT arg.
100205         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
100206         (build_charclass_op): Likewise, for NON_MATCH arg.
100207         * lib/regex_internal.c (re_string_allocate, re_string_construct):
100208         (re_string_construct_common): Likewise, for ICASE arg.
100209         * lib/regexec.c (re_search_2_stub, re_search_stub):
100210         Likewise, for RET_LEN arg.
100211         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
100212         (set_regs): Likewise, for FL_BACKTRACK arg.
100213         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
100214         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
100215         (calc_eclosure_iter, parse_bracket_exp):
100216         Use bool for internal variables that are booleans.
100217         * lib/regexec.c (re_search_internal, check_matching,
100218         proceed_next_node):
100219         (set_regs, build_sifted_states, sift_states_bkref):
100220         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
100221         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
100222         (find_collation_sequence_value):
100223         Likewise.
100224         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
100225         (re_node_set_compare):
100226         Return bool, not int. All callers changed.
100227         * lib/regexec.c (check_halt_node_context, check_dst_limits):
100228         (build_trtable, check_node_accept): Likewise.
100229         * lib/regex_internal.h: Include stdbool.h.
100231         Fix bugs uncovered when converting to bool.
100232         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
100233         failure instead of charging ahead blindly.
100234         * lib/regex_internal.c (register_state): Likewise.
100235         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
100236         for freeing internal storage.
100237         (group_nodes_into_DFA_states): Use unsigned int, not int, for
100238         bitset pieces used as boolean, to avoid undefined behavior
100239         on hosts that do int overflow checking.
100241 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
100243         * config/srclist.txt: Add glibc bugs 1285-1287.
100245 2005-09-01  Jim Meyering  <jim@meyering.net>
100247         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
100248         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
100249         Require gl_STAT_MACROS, too.
100251 2005-09-01  Bruno Haible  <bruno@clisp.org>
100253         * gnulib-tool (import): In the first-use case, provide defaults.
100255 2005-09-01  Bruno Haible  <bruno@clisp.org>
100257         * gnulib-tool (func_import): Remove the .tmp files.
100259 2005-09-01  Bruno Haible  <bruno@clisp.org>
100261         * gnulib-tool (func_import): Fix handling of symbolic links.
100263 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
100265         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
100266         old glibc regex code mishandles strings longer than 2**31 bytes.
100267         This patch fixes this when the regex code is used in gnulib
100268         (i.e., outside glibc).
100270         This patch should not affect the use of the regex code inside
100271         glibc.  No doubt this problem also needs to be handled for glibc
100272         as well, but the result will be an incompatible change to the
100273         glibc ABI, and the old ABI will have to be supported too.  That
100274         can be the subject for another patch.
100276         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
100277         governing whether the rest of this patch is active.  By default,
100278         the macro is disabled and the patch has no effect.
100279         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
100280         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
100281         (struct re_pattern_buffer, re_search, re_search_2, re_match):
100282         (re_match_2, re_set_registers): Use the new types.
100283         * lib/regex_internal.h (Idx, re_hashval_t): New types.
100284         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
100285         New macros.
100286         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
100287         (re_string_context_at, bin_tree_t, re_dfastate_t):
100288         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
100289         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
100290         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
100291         (re_string_char_size_at, re_string_wchar_at):
100292         (re_string_elem_size_at):
100293         Use the new types and macros to port to 64-bit hosts.
100294         Use unsigned types for internal values, so that the code
100295         mostly works even for arrays larger than SSIZE_MAX.
100296         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
100297         (search_duplicated_node, calc_eclosure_iter, fetch_number):
100298         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
100299         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
100300         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
100301         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
100302         (calc_inveclosure, parse_dup_op, build_range_exp):
100303         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
100304         (fetch_number, create_token_tree, mark_opt_subexp):
100305         Likewise.
100306         * lib/regex_internal.c (re_string_construct_common,
100307         create_ci_newstate):
100308         (create_cd_newstate, re_string_allocate, re_string_construct):
100309         (re_string_realloc_buffers, build_wcs_upper_buffer):
100310         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
100311         (re_string_reconstruct, re_string_peek_byte_case):
100312         (re_string_fetch_byte_case, re_string_context_at):
100313         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
100314         (re_node_set_init_copy, re_node_set_add_intersect):
100315         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
100316         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
100317         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
100318         (re_acquire_state, re_acquire_state_context, register_state):
100319         Likewise.
100320         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
100321         search_cur_bkref_entry):
100322         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
100323         (re_search_internal, re_search_2_stub, re_search_stub)
100324         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
100325         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
100326         (update_cur_sifted_state, check_dst_limits):
100327         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
100328         (check_subexp_limits, sift_states_bkref, merge_state_array):
100329         (check_subexp_matching_top, get_subexp, get_subexp_sub):
100330         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
100331         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
100332         (expand_bkref_cache, check_node_accept_bytes):
100333         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
100334         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
100335         (acquire_init_state_context, check_halt_node_context):
100336         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
100337         (sift_states_backward, clean_state_log_if_needed):
100338         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
100339         (find_recover_state, transit_state_sb, transit_state_mb):
100340         (transit_state_bkref, build_trtable, match_ctx_clean):
100341         Likewise.
100342         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
100343         to work around an assumption that REG_MISSING is negative.
100345         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
100346         (seek_collating_symbol_entry) [defined _LIBC]:
100347         (lookup_collation_sequence_value) [defined _LIBC]:
100348         (build_range_exp, build_collating_symbol) [defined _LIBC]:
100349         Use prototypes rather than old-style function definitions.
100350         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
100351         (transit_state_sb) [0]:
100352         (find_collation_sequence_value) [defined _LIBC]: Likewise.
100354         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
100355         rm_eo.
100357         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
100358         (optimize_subexps, lower_subexp):
100359         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
100360         since the signed shift might overflow.  Use 1u<<31 instead.
100361         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
100362         Likewise.
100363         * lib/regexec.c (check_dst_limits_calc_pos_1,
100364         check_subexp_matching_top): Likewise.
100366         * lib/regcomp.c (optimize_subexps, lower_subexp):
100367         Use CHAR_BIT rather than 8, for clarity.
100368         * lib/regexec.c (check_dst_limits_calc_pos_1):
100369         (check_subexp_matching_top): Likewise.
100370         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
100371         have to worry about portability issues when shifting it left.
100372         Remove no-longer-needed test for table_size > 0.
100373         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
100374         in a word, as the resulting behavior is undefined.
100375         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
100376         in one case, a <= should have been an <, and in another case the
100377         whole test was missing.
100378         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
100379         the standard name CHAR_BIT.
100380         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
100381         this is not true on one's complement and signed-magnitude hosts.
100383         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
100384         next_last_offset.
100385         (struct re_dfa_t): Remove unused member states_alloc.
100386         * lib/regcomp.c (init_dfa): Don't initialize unused members.
100388 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
100390         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
100391         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
100392         and large-file glibc and in 32-bit large-file Solaris.
100394 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
100396         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
100397         lengths fit in regoff_t; this isn't true if regoff_t is the same
100398         width as size_t.
100399         * lib/regex.c (re_search_internal): 5th arg is LAST_START
100400         (= START + RANGE) instead of RANGE.  This avoids overflow
100401         problems when regoff_t is the same width as size_t.
100402         All callers changed.
100403         (re_search_2_stub): Check for overflow when adding the
100404         sizes of the two strings.
100405         (re_search_stub): Check for overflow when adding START
100406         to RANGE; if it occurs, substitute the extreme value.
100408 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
100410         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
100412 2005-08-31  Jim Meyering  <jim@meyering.net>
100414         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
100415         a pointer-to-const.
100416         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
100417         (register_state): Likewise.
100418         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
100419         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
100420         (group_nodes_into_DFAstates): Likewise.
100422 2005-08-31  Jim Meyering  <jim@meyering.net>
100424         * check-module: Add a FIXME comment.
100426 2005-08-31  Eric Blake  <ebb9@byu.net>
100428         * modules/unistd-safer (Files): Add unistd--.h.
100429         * modules/stdio-safer (Files): Add stdio--.h.
100431 2005-08-31  Derek Price  <derek@ximbiot.com>
100433         * lib/getdelim.c (getdelim): Return EOF on EOF.
100434         Reported by Larry Jones <lawrence.jones@ugs.com>.
100436 2005-08-31  Bruno Haible  <bruno@clisp.org>
100438         Avoid unnecessary diffs in the generated lib/Makefile.am.
100439         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
100440         the generated files.
100441         (func_import): Don't set cmd.
100443 2005-08-31  Bruno Haible  <bruno@clisp.org>
100445         * lib/strstr.c: Include <stddef.h>, for NULL.
100446         * lib/strcasestr.c: Likewise.
100447         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
100449 2005-08-31  Bruno Haible  <bruno@clisp.org>
100451         * gnulib-tool: New option --macro-prefix.
100452         (func_import): Use macro_prefix.
100453         (import): Handle option --macro-prefix.
100455 2005-08-31  Bruno Haible  <bruno@clisp.org>
100457         * gnulib-tool (import): Rename most ac_* variables to cached_*.
100458         Also use new variables cached_lgpl, cached_libtool.
100460 2005-08-31  Bruno Haible  <bruno@clisp.org>
100462         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
100463         always instantiating them.
100465 2005-08-31  Bruno Haible  <bruno@clisp.org>
100467         * gnulib-tool (func_import): Read the previous cached settings
100468         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
100469         earlier added by gnulib but are now dropped. Warn when a gnulib file
100470         overwrites a non-gnulib file.
100472 2005-08-31  Bruno Haible  <bruno@clisp.org>
100474         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
100475         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
100476         projects that don't keep autogenerated files in CVS. Put into
100477         actioncmd only the specified modules, not the transitive closure.
100479 2005-08-31  Bruno Haible  <bruno@clisp.org>
100481         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
100482         Create directories that shall be filled.
100483         (import): Don't look for gl_* macros in configure.ac. Recurse across
100484         all directories containing a gnulib-cache.m4 files, if meaningful.
100486 2005-08-31  Bruno Haible  <bruno@clisp.org>
100488         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
100489         (import): Set seen_libtool when we see gl_LIBTOOL.
100491 2005-08-31  Bruno Haible  <bruno@clisp.org>
100493         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
100494         declaration macro definitions from generated gnulib.m4.
100496 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
100498         * lib/iconvme.h: Add prototype for iconv_alloc.
100500 2005-08-29  Simon Josefsson  <jas@extundo.com>
100502         * lib/iconvme.c: Fix errno.
100504 2005-08-29  Bruno Haible  <bruno@clisp.org>
100506         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
100507         that it works when the directory contains spaces.
100509 2005-08-29  Bruno Haible  <bruno@clisp.org>
100511         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
100513 2005-08-29  Bruno Haible  <bruno@clisp.org>
100515         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
100516         Emit more advice.
100518 2005-08-29  Bruno Haible  <bruno@clisp.org>
100519         and Stepan Kasal  <kasal@ucw.cz>
100521         * check-module: If more parameters are given, check each of them
100522         separately; add more exceptions, as noted by Jim Meyering.
100523         (check_module): New procedure.
100524         (%exempt_header): Now contains all exceptions.
100526 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
100528         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
100530 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
100532         * lib/iconvme.c: Split iconv_string into iconv_alloc.
100534 2005-08-28  Bruno Haible  <bruno@clisp.org>
100536         * m4/gnulib-tool.m4: New file.
100538 2005-08-27  Jim Meyering  <jim@meyering.net>
100540         * modules/unistd-safer (Files): Add pipe-safer.c.
100541         * modules/fcntl-safer (Files): Add creat-safer.c.
100543 2005-08-27  Jim Meyering  <jim@meyering.net>
100545         * m4/stdlib-safer.m4: New file.  From coreutils.
100546         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
100547         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
100548         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
100549         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
100550         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
100552 2005-08-27  Jim Meyering  <jim@meyering.net>
100554         * lib/fopen-safer.c: Merge minor changes from coreutils.
100555         * lib/dup-safer.c: Likewise.
100556         * lib/fd-safer.c: Likewise.
100558         Merge from coreutils.
100559         * lib/stdio--.h: New file.
100560         * lib/stdlib--.h: New file.
100561         * lib/mkstemp-safer.c: New file.
100563         GNU tar needs these.
100564         * lib/pipe-safer.c: New file.
100565         * lib/creat-safer.c: New file.
100566         * lib/fcntl--.h (creat): Define to creat_safer.
100567         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
100568         * lib/unistd--.h (pipe): Define to pipe_safer.
100569         * lib/unistd-safer.h: Declare pipe_safer.
100571 2005-08-26  Simon Josefsson  <jas@extundo.com>
100573         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
100574         Haible <bruno@clisp.org>.
100576 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
100578         * lib/regex_internal.h: Remove all references to
100579         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
100580         or better.
100581         (bitset_not, bitset_merge, bitset_not_merge):
100582         (bitset_mask, re_string_allocate, re_string_construct):
100583         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
100584         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
100585         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
100586         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
100587         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
100588         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
100589         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
100590         (re_acquire_state_context):
100591         Remove unnecessary forward decls.
100592         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
100593         Put __attribute at function definition,
100594         now that the function decl has been removed.
100595         * lib/regex_internal.c (re_string_peek_byte_case):
100596         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
100597         Likewise.
100599 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
100601         * m4/regex.m4: Add AC_PREREQ(2.50).
100602         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
100604 2005-08-25  Simon Josefsson  <jas@extundo.com>
100606         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
100607         __fsetlocking.
100609 2005-08-25  Simon Josefsson  <jas@extundo.com>
100611         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
100612         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
100613         GLIBC specific code.
100615 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
100617         Make regex safe for g++.  This fixes one real bug (an "err"
100618         that should have been "*err").  g++ problem reported by
100619         Sam Steingold.
100620         * lib/regex_internal.h (re_calloc): New macro, consistent with
100621         re_malloc etc.  All callers of calloc changed to use re_calloc.
100622         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
100623         not int.  All callers changed.
100624         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
100625         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
100626         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
100627         (find_recover_state): Change "err" to "*err"; this fixes what
100628         appears to be a real bug.
100629         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
100630         versus int.
100632 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
100634         * modules/regex (Depends-on): Add malloc, since the code
100635         assumes that !malloc(0) means failure.
100637 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
100639         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
100641         alloca modernization/simplification for regex.
100642         * lib/regex.c: Remove portability cruft for alloca.  This no longer
100643         needs to be at the start of the file, and can be moved into
100644         regex_internal.h and simplified.
100645         * lib/regex_internal.h: Include <alloca.h>.
100646         (__libc_use_alloca) [!defined _LIBC]: New macro.
100647         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
100648         now works outside glibc.
100650 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
100652         * config/srclist.txt: Add glibc bugs 1241, 1245.
100654 2005-08-25  Jim Meyering  <jim@meyering.net>
100656         * lib/open-safer.c: Include <config.h>.
100657         Otherwise, we'd lose LARGEFILE support in any file using
100658         e.g. "fcntl--.h"
100660 2005-08-25  Bruno Haible  <bruno@clisp.org>
100662         * m4/minmax.m4: Require autoconf 2.52.
100663         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
100664         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
100665         alternatives of translit over the alphabet.
100666         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
100668 2005-08-24  Simon Josefsson  <jas@extundo.com>
100670         * tests/test-getpass.c: New file.
100672 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
100674         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
100675         for GNU regex features.
100677 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
100679         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
100680         * lib/regex.h (regerror): Likewise.
100682         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
100683         requires this.  (The code never needed it.)
100685         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
100686         All uses of recently-renamed identifiers changed to use the new,
100687         POSIX-compliant names.  The code will build and run just fine
100688         without these changes, but it's better to eat our own dog food
100689         and use the standard-conforming names.
100691         * lib/regex.h: Fix a multitude of POSIX name space violations.
100692         These changes have an effect only for programs that define
100693         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
100694         do not change anything for programs compiled in the normal way.
100695         Also, there is no effect on the ABI.
100697         (_REGEX_SOURCE): New macro.
100698         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
100699         defined and _GNU_SOURCE is not; this fixes a name space violation.
100701         Rename the following macros to obey POSIX requirements.
100702         The old names are still visible as macros if _REGEX_SOURCE is defined.
100703         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
100704         RE_BACKSLASH_ESCAPE_IN_LISTS.
100705         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
100706         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
100707         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
100708         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
100709         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
100710         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
100711         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
100712         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
100713         (REG_INTERVALS): renamed from RE_INTERVALS.
100714         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
100715         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
100716         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
100717         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
100718         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
100719         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
100720         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
100721         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
100722         RE_UNMATCHED_RIGHT_PAREN_ORD.
100723         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
100724         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
100725         (REG_DEBUG): renamed from RE_DEBUG.
100726         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
100727         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
100728         unusual, since we can't clash with the POSIX REG_ICASE.
100729         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
100730         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
100731         (REG_NO_SUB): renamed from RE_NO_SUB.
100732         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
100733         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
100734         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
100735         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
100736         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
100737         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
100738         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
100739         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
100740         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
100741         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
100742         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
100743         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
100744         RE_SYNTAX_POSIX_MINIMAL_BASIC.
100745         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
100746         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
100747         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
100748         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
100749         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
100750         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
100751         (REG_FIXED): Renamed from REGS_FIXED.
100752         (REG_NREGS): Renamed from RE_NREGS.
100754         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
100755         of other REG_* macros, since POSIX says the user is allowed to
100756         #undef these macros selectively.
100758         (reg_errcode_t): Update comment stating what other tables need
100759         to be consistent.
100761         Rename the following enum values to obey POSIX requirements.
100762         The old names are still visible as macros.
100763         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
100764         is not defined, since GNU is supposed to be a superset of POSIX as
100765         much as possible, and since we want reg_errcode_t to be a signed
100766         type for implementation consistency.
100767         (_REG_NOERROR): Renamed from REG_NOERROR.
100768         (_REG_NOMATCH): Renamed from REG_NOMATCH.
100769         (_REG_BADPAT): Renamed from REG_BADPAT.
100770         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
100771         (_REG_ECTYPE): Renamed from REG_ECTYPE.
100772         (_REG_EESCAPE): Renamed from REG_EESCAPE.
100773         (_REG_ESUBREG): Renamed from REG_ESUBREG.
100774         (_REG_EBRACK): Renamed from REG_EBRACK.
100775         (_REG_EPAREN): Renamed from REG_EPAREN.
100776         (_REG_EBRACE): Renamed from REG_EBRACE.
100777         (_REG_BADBR): Renamed from REG_BADBR.
100778         (_REG_ERANGE): Renamed from REG_ERANGE.
100779         (_REG_ESPACE): Renamed from REG_ESPACE.
100780         (_REG_BADRPT): Renamed from REG_BADRPT.
100781         (_REG_EEND): Renamed from REG_EEND.
100782         (_REG_ESIZE): Renamed from REG_ESIZE.
100783         (_REG_ERPAREN): Renamed from REG_ERPAREN.
100784         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
100785         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
100786         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
100787         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
100789         (_REG_RE_NAME, _REG_RM_NAME): New macros.
100790         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
100791         changed.  But support the old name if the new one is not defined
100792         and if _REGEX_SOURCE.
100794         Change the following member names in struct re_pattern_buffer.
100795         The old names are still supported if !_REGEX_SOURCE.
100796         The new names are always supported, regardless of _REGEX_SOURCE.
100797         (re_buffer): Renamed from buffer.
100798         (re_allocated): Renamed from allocated.
100799         (re_used): Renamed from used.
100800         (re_syntax): Renamed from syntax.
100801         (re_fastmap): Renamed from fastmap.
100802         (re_translate): Renamed from translate.
100803         (re_can_be_null): Renamed from can_be_null.
100804         (re_regs_allocated): Renamed from regs_allocated.
100805         (re_fastmap_accurate): Renamed from fastmap_accurate.
100806         (re_no_sub): Renamed from no_sub.
100807         (re_not_bol): Renamed from not_bol.
100808         (re_not_eol): Renamed from not_eol.
100809         (re_newline_anchor): Renamed from newline_anchor.
100811         Change the following member names in struct re_registers.
100812         The old names are still supported if !_REGEX_SOURCE.
100813         The new names are always supported, regardless of _REGEX_SOURCE.
100814         (rm_num_regs): Renamed from num_regs.
100815         (rm_start): Renamed from start.
100816         (rm_end): Renamed from end.
100818         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
100819         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
100820         Prepend __ to parameter names.
100822         Undo yesterday's changes.
100824 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
100826         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
100827         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
100828         lib/regex.c.
100830 2005-08-24  Jim Meyering  <jim@meyering.net>
100832         Sync from coreutils.
100833         * m4/fcntl-safer.m4: New file.
100835         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
100836         and object files for this module.
100838 2005-08-24  Jim Meyering  <jim@meyering.net>
100840         Sync from coreutils.
100841         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
100843 2005-08-24  Jim Meyering  <jim@meyering.net>
100845         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
100846         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
100848 2005-08-24  Jim Meyering  <jim@meyering.net>
100850         * modules/fcntl-safer: New module.
100851         * modules/fts (Depends-on): Add fcntl-safer.
100852         * MODULES.html.sh (File descriptor based Input/Output):
100853         Add fcntl-safer.
100855 2005-08-24  Bruno Haible  <bruno@clisp.org>
100857         Support for unit test modules.
100858         * modules/README: Mention tests modules.
100859         * modules/TEMPLATE-TESTS: New file.
100860         * gnulib-tool: New options --extract-tests-module, --with-tests and
100861         --tests-base (unused for the moment).
100862         (testsbase, inctests): New variables.
100863         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
100864         (func_verify_module): Exclude TEMPLATE-TESTS.
100865         (func_verify_nontests_module, func_verify_tests_module): New functions.
100866         (func_get_dependencies): Add implicit dependency for tests modules.
100867         (func_get_tests_module): New function.
100868         (func_modules_transitive_closure): When --with-tests was specified,
100869         include the unit tests as well, unless explicitly avoided.
100870         (func_emit_lib_Makefile_am): Ignore the tests modules here.
100871         (func_emit_tests_Makefile_am): New function.
100872         (func_create_testdir): When --with-tests was specified, emit a
100873         tests/ directory.
100874         * MODULES.html.sh (Future developments): Update.
100876 2005-08-24  Bruno Haible  <bruno@clisp.org>
100878         * modules/tls-tests: New file.
100879         * tests/test-tls.c: New file, from GNU gettext.
100881 2005-08-24  Bruno Haible  <bruno@clisp.org>
100883         * modules/lock-tests: New file.
100884         * tests/test-lock.c: New file, from GNU gettext.
100886 2005-08-24  Bruno Haible  <bruno@clisp.org>
100888         * lib/lock.h: Add multiple inclusion guard.
100889         * lib/tls.h: Add multiple inclusion guard.
100891 2005-08-24  Bruno Haible  <bruno@clisp.org>
100893         * gnulib-tool: Add support for the --aux-dir option to
100894         --create-testdir, --create-megatestdir, --test, --megatest.
100895         (func_create_testdir, func_create_megatestdir): Optionally emit a
100896         AC_CONFIG_AUX_DIR directive.
100897         (create-testdir, create-megatestdir, test, megatest): Provide a
100898         default value for $auxdir.
100900 2005-08-24  Bruno Haible  <bruno@clisp.org>
100902         * gnulib-tool (import): Use compound statement instead of subshell
100903         where possible.
100905 2005-08-24  Bruno Haible  <bruno@clisp.org>
100907         * gnulib-tool (import): Change --aux-dir default to "build-aux".
100909 2005-08-24  Bruno Haible  <bruno@clisp.org>
100911         * gnulib-tool (func_version): Update.
100913 2005-08-24  Bruno Haible  <bruno@clisp.org>
100915         * gnulib-tool (func_import, func_create_testdir,
100916         func_create_megatestdir): Quote all autoconf macro arguments.
100918 2005-08-24  Bruno Haible  <bruno@clisp.org>
100920         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
100921         option --force, because --force causes the aclocal.m4 of each
100922         subdirectory to be newer than the corresponding config.h.in.
100924 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
100926         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
100927         All contents moved to gl_REGEX.
100928         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
100929         assume that it does.
100931 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
100933         * lib/regex.h (REG_NOSYS)
100934         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
100935         Define, since POSIX requires it as of 2001.
100936         (_REG_ENOSYS)
100937         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
100938         New private symbol, used to keep the enum signed in all cases.
100939         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
100940         Youngman in
100941         <http://lists.gnu.org/r/bug-gnulib/2005-07/msg00132.html>.
100943         * lib/regex_internal.c (re_string_skip_chars, register_state):
100944         (calc_state_hash):
100945         Remove forward decls; no longer needed now that we use prototypes.
100946         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
100947         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
100948         (clean_state_log_if_needed): Likewise.
100950 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
100952         * config/srclist.txt: Add glibc bugs 1231-1233.
100954 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
100956         Fix problems reported by Sam Steingold in
100957         <http://lists.gnu.org/r/bug-gnulib/2005-08/msg00007.html>.
100958         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
100959         assumed that reg_errcode_t is a signed type, which is not
100960         necessarily true if _XOPEN_SOURCE is not defined.
100961         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
100962         since some compilers warn about it otherwise.
100964 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
100966         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
100967         (init_word_char, create_initial_state, duplicate_node_closure):
100968         (fetch_token, peek_token_bracket, build_range_exp):
100969         (build_collating_symbol): Remove forward decls; no longer needed
100970         now that we use prototypes.
100972         * lib/regcomp.c:
100973         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
100974         (re_compile_fastmap_iter, regcomp, regerror, regfree):
100975         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
100976         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
100977         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
100978         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
100979         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
100980         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
100981         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
100982         (build_range_exp, build_collating_symbol, parse_bracket_exp):
100983         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
100984         (build_charclass, build_charclass_op, fetch_number, create_tree):
100985         (create_token_tree, mark_opt_subexp, duplicate_tree):
100986         Use prototypes rather than old-style definitions.
100988         * lib/regex_internal.c:
100989         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
100990         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
100991         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
100992         (re_string_reconstruct, re_string_peek_byte_case):
100993         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
100994         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
100995         (re_node_set_init_copy, re_node_set_add_intersect):
100996         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
100997         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
100998         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
100999         (re_acquire_state, re_acquire_state_context, register_state):
101000         (create_ci_newstate, create_cd_newstate, free_state):
101001         Likewise.
101002         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
101003         re_search_2):
101004         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
101005         (re_search_internal, prune_impossible_nodes):
101006         (acquire_init_state_context, check_matching, static):
101007         (check_halt_node_context, check_halt_state_context, proceed_next_node):
101008         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
101009         (update_regs, sift_states_backward, build_sifted_states):
101010         (clean_state_log_if_needed, merge_state_array):
101011         (update_cur_sifted_state, add_epsilon_src_nodes):
101012         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
101013         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
101014         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
101015         (find_recover_state, check_subexp_matching_top, transit_state_mb):
101016         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
101017         (check_arrival, check_arrival_add_next_nodes):
101018         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
101019         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
101020         (check_node_accept_bytes, check_node_accept, extend_buffers):
101021         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
101022         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
101023         (sift_ctx_init):
101024         Likewise.
101026         * lib/regex_internal.h:
101027         (re_string_allocate, re_string_construct, re_string_reconstruct):
101028         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
101029         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
101030         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
101031         (re_string_context_at, re_string_peek_byte_case):
101032         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
101033         is defined, since we now use prototypes always.
101035         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
101036         C89 or better.  All uses removed.
101038 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
101040         * config/srclist.txt: Add glibc bugs 1220-1227.
101042 2005-08-20  Jim Meyering  <jim@meyering.net>
101044         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
101045         of unused local, dfa.
101047 2005-08-20  Bruno Haible  <bruno@clisp.org>
101049         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
101051 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
101053         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
101054         (re_node_set_insert_last, re_dfa_add_node):
101055         Rename local variables to avoid GCC shadowing warnings.
101057 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
101059         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
101060         [defined lint]: Suppress bogus uninitialized-variable warnings.
101062         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
101063         and let the caller return REG_ESPACE if out of space.  This
101064         removes an uninitialied-variable warning with GCC 4.0.1, and also
101065         avoids taking the address of a local variable.  All callers
101066         changed.
101068 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
101070         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
101071         $LIBCSRC/posix/regexec.c.
101072         Add glibc bug 1217 for regcomp.c.
101074 2005-08-19  Jim Meyering  <jim@meyering.net>
101076         * lib/regexec.c (proceed_next_node): Redo local variables to
101077         avoid GCC shadowing warnings.
101079 2005-08-18  Bruno Haible  <bruno@clisp.org>
101081         * lib/strstr.c (strstr): Fix return value in multibyte case.
101082         * lib/strcasestr.c (strcasestr): Likewise.
101084 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
101086         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
101088 2005-08-17  Jim Meyering  <jim@meyering.net>
101090         Make the %s format (seconds since the epoch) work for a negative
101091         number and when used with a zero-padded field width, e.g. %015s.
101093         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
101094         label so that it precedes the code to set `digits'.  Otherwise,
101095         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
101096         print `00-22'.  Now, it prints `-0022', as it should.
101098 2005-08-17  Bruno Haible  <bruno@clisp.org>
101100         * modules/strstr (Files): Add m4/mbrtowc.m4.
101101         (Depends-on): Add mbuiter.
101103 2005-08-17  Bruno Haible  <bruno@clisp.org>
101105         * modules/strcasestr: New file.
101106         * MODULES.html.sh (String handling, based on ANSI C 89): Add
101107         strcasestr.
101109 2005-08-17  Bruno Haible  <bruno@clisp.org>
101111         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
101113 2005-08-17  Bruno Haible  <bruno@clisp.org>
101115         * modules/mbuiter: New file.
101116         * MODULES.html.sh (Extended multibyte and wide character utilities):
101117         Add mbuiter.
101119 2005-08-17  Bruno Haible  <bruno@clisp.org>
101121         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
101122         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
101124 2005-08-17  Bruno Haible  <bruno@clisp.org>
101126         * m4/strcasestr.m4: New file.
101128 2005-08-17  Bruno Haible  <bruno@clisp.org>
101130         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
101131         * lib/strstr.c: Completely rewritten, with multibyte locale support.
101133 2005-08-17  Bruno Haible  <bruno@clisp.org>
101135         * lib/strcasestr.h: New file.
101136         * lib/strcasestr.c: New file.
101138 2005-08-17  Bruno Haible  <bruno@clisp.org>
101140         * lib/strcasecmp.c: Use mbuiter.h.
101142 2005-08-17  Bruno Haible  <bruno@clisp.org>
101144         * lib/mbuiter.h: New file.
101146 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
101148         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
101149         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
101150         and gl_GETOPT are both invoked via different paths (as happens
101151         with GNU tar CVS because it uses both argp and getopt), the former
101152         wins.
101154 2005-08-16  Bruno Haible  <bruno@clisp.org>
101156         * modules/tls: New file.
101157         * MODULES.html.sh (Multithreading): Add tls.
101159 2005-08-16  Bruno Haible  <bruno@clisp.org>
101161         * modules/strnlen1: New file.
101162         * MODULES.html.sh (String handling): Add strnlen1.
101164 2005-08-16  Bruno Haible  <bruno@clisp.org>
101166         * modules/strcase (Files): Add m4/mbrtowc.m4.
101167         (Depends-on): Add strnlen1, mbchar.
101169 2005-08-16  Bruno Haible  <bruno@clisp.org>
101171         * modules/mbiter: New file.
101172         * MODULES.html.sh (Extended multibyte and wide character utilities):
101173         Add mbiter.
101175 2005-08-16  Bruno Haible  <bruno@clisp.org>
101177         * modules/mbfile: New file.
101178         * MODULES.html.sh (Extended multibyte and wide character utilities):
101179         Add mbfile.
101181 2005-08-16  Bruno Haible  <bruno@clisp.org>
101183         * modules/mbchar: New file.
101184         * MODULES.html.sh (Extended multibyte and wide character utilities):
101185         New section.
101187 2005-08-16  Bruno Haible  <bruno@clisp.org>
101189         * m4/tls.m4: New file, from GNU gettext.
101191 2005-08-16  Bruno Haible  <bruno@clisp.org>
101193         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
101194         always.
101195         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
101197 2005-08-16  Bruno Haible  <bruno@clisp.org>
101199         * m4/mbiter.m4: New file.
101201 2005-08-16  Bruno Haible  <bruno@clisp.org>
101203         * m4/mbfile.m4: New file.
101205 2005-08-16  Bruno Haible  <bruno@clisp.org>
101207         * m4/mbchar.m4: New file.
101209 2005-08-16  Bruno Haible  <bruno@clisp.org>
101211         * lib/tls.h: New file, from GNU gettext.
101212         * lib/tls.c: New file, from GNU gettext.
101214 2005-08-16  Bruno Haible  <bruno@clisp.org>
101216         * lib/strnlen1.h: New file.
101217         * lib/strnlen1.c: New file.
101219 2005-08-16  Bruno Haible  <bruno@clisp.org>
101221         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
101222         (mbi_init): Update.
101223         (mbi_avail, mbi_advance): Let the iteration end before the terminating
101224         NUL byte, not after it.
101226 2005-08-16  Bruno Haible  <bruno@clisp.org>
101228         * lib/strcase.h (strcasecmp): Add note in comments.
101229         * lib/strncasecmp.c: Use code from strcasecmp.c.
101230         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
101231         (strcasecmp): Work correctly in multibyte locales.
101233 2005-08-16  Bruno Haible  <bruno@clisp.org>
101235         * lib/mbiter.h: New file.
101237 2005-08-16  Bruno Haible  <bruno@clisp.org>
101239         * lib/mbfile.h: New file.
101241 2005-08-16  Bruno Haible  <bruno@clisp.org>
101243         * lib/mbchar.h: New file.
101244         * lib/mbchar.c: New file.
101246 2005-08-16  Bruno Haible  <bruno@clisp.org>
101248         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
101249         the valid ones. Makes the comparison operations transitive:
101250         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
101251         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
101253 2005-08-15  Simon Josefsson  <jas@extundo.com>
101255         * modules/ssize_t (License): Change to 'unlimited'.
101257         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
101259 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
101261         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
101262         Add comments for each pending glibc patch.
101264 2005-08-15  Bruno Haible  <bruno@clisp.org>
101266         * lib/regex.h (__restrict_arr): Don't define to __restrict if
101267         __cplusplus is defined.
101269 2005-08-14  Jim Meyering  <jim@meyering.net>
101271         Sync from coreutils.
101273         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
101274         Use the hash-table-based cycle-detection code not just when
101275         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
101276         Reported by James Youngman in
101277         <http://lists.gnu.org/r/bug-gnulib/2005-08/msg00011.html>.
101278         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
101279         FTS_TIGHT_CYCLE_CHECK.
101280         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
101281         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
101282         once again.
101283         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
101284         * lib/fts.c (fd_safer): Remove decl.
101285         Include fcntl--.h rather than unistd-safer.h
101286         (fts_safe_changedir): Don't call fd_safer; no longer needed
101287         now that we include fcntl--.h.
101289 2005-08-12  Simon Josefsson  <jas@extundo.com>
101291         * modules/getndelim2: Use ssize_t module.
101292         * modules/getnline: Likewise.
101293         * modules/safe-read: Likewise.
101294         * modules/xreadlink: Likewise.
101296         * modules/ssize_t: New file.
101298 2005-08-12  Simon Josefsson  <jas@extundo.com>
101300         * m4/readline.m4: Look for termcap, curses or ncurses if required.
101302 2005-08-12  Simon Josefsson  <jas@extundo.com>
101304         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
101305         ssize_t.
101307 2005-08-12  Simon Josefsson  <jas@extundo.com>
101309         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
101310         readline, getdelim and check_version.
101311         (Support for systems lacking ISO C 99: Sizes of integer types):
101312         Add size_max.
101314 2005-08-12  Bruno Haible  <bruno@clisp.org>
101316         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
101318 2005-08-11  Simon Josefsson  <jas@extundo.com>
101320         * modules/readline: New file.
101322         * modules/strnlen (Files): Add strnlen.h.
101324 2005-08-11  Simon Josefsson  <jas@extundo.com>
101326         * m4/readline.m4: New file.
101328 2005-08-11  Simon Josefsson  <jas@extundo.com>
101330         * lib/readline.h, readline.c: New file.
101332 2005-08-11  Simon Josefsson  <jas@extundo.com>
101334         * doc/gnulib.texi (Initial import, Finishing touches): Mention
101335         gl_AVOID.
101337 2005-08-11  Bruno Haible  <bruno@clisp.org>
101339         * lib/strnlen.h (strnlen): Change parameter name to match comment.
101341 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
101343         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
101345 2005-08-10  Simon Josefsson  <jas@extundo.com>
101347         * tests/test-iconvme.c: New file.
101349 2005-08-10  Simon Josefsson  <jas@extundo.com>
101351         * m4/strnlen.m4: New file.
101353         * m4/strndup.m4: Don't check for strnlen declaration, done in
101354         strnlen.m4.
101356 2005-08-10  Simon Josefsson  <jas@extundo.com>
101358         * lib/strndup.c: Use strnlen.h.
101360         * lib/strnlen.h: New file.
101362 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
101364         * README: Typos.
101366 2005-08-02  Simon Josefsson  <jas@extundo.com>
101368         * modules/readline: New file.
101370 2005-08-02  Simon Josefsson  <jas@extundo.com>
101372         * modules/getdelim: New file.
101374         * modules/getline: Rewrite, don't use getndelim2.
101376 2005-08-02  Simon Josefsson  <jas@extundo.com>
101378         * m4/getline.m4: Separate out getdelim stuff into separate module.
101380         * m4/getdelim.m4: New file.
101382 2005-08-02  Simon Josefsson  <jas@extundo.com>
101384         * lib/getline.h, getline.c: Rewrite.
101386         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
101388 2005-07-31  Bruno Haible  <bruno@clisp.org>
101390         * lib/lock.h (gl_lock_initializer): New macro.
101391         (gl_lock_define_initialized): Use it.
101392         (gl_rwlock_initializer): New macro.
101393         (gl_rwlock_define_initialized): Use it.
101394         (gl_recursive_lock_initializer): New macro.
101395         (gl_recursive_lock_define_initialized): Use it.
101397 2005-07-30  Karl Berry  <karl@gnu.org>
101399         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
101400         Report from Ben Pfaff, regarding getopt.
101402 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
101404         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
101405         normal way.
101406         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
101407         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
101408         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
101409         (gl_GETOPT): Use the new macros.  Most of the implementation
101410         is moved to the new macros.  This is for programs like Emacs
101411         that don't want all the functionality of gl_GETOPT.
101413 2005-07-26  Bruno Haible  <bruno@clisp.org>
101415         * m4/lock.m4: Update from GNU gettext.
101417 2005-07-26  Bruno Haible  <bruno@clisp.org>
101419         * lib/lock.h: Update from GNU gettext.
101420         * lib/lock.c: Update from GNU gettext.
101422 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
101424         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
101425         obsolescent AC_TRY_RUN.  Include the default includes files, for
101426         'exit'.
101428 2005-07-24  Bruno Haible  <bruno@clisp.org>
101430         * modules/visibility: New file.
101431         * MODULES.html.sh (Misc): Add visibility.
101433 2005-07-24  Bruno Haible  <bruno@clisp.org>
101435         * m4/visibility.m4: New file.
101437 2005-07-24  Bruno Haible  <bruno@clisp.org>
101439         * doc/visibility.texi: New file.
101441 2005-07-22  Bruno Haible  <bruno@clisp.org>
101443         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
101444         $(ALLOCA_H), redundant through BUILT_SOURCES.
101445         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
101446         redundant through BUILT_SOURCES.
101447         * modules/byteswap (Makefile.am): Remove explicit dependency on
101448         $(BYTESWAP_H), redundant through BUILT_SOURCES.
101449         * modules/fnmatch (Makefile.am): Remove explicit dependency on
101450         $(FNMATCH_H), redundant through BUILT_SOURCES.
101451         * modules/getopt (Makefile.am): Remove explicit dependency on
101452         $(GETOPT_H), redundant through BUILT_SOURCES.
101453         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
101454         redundant through BUILT_SOURCES.
101455         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
101456         redundant through BUILT_SOURCES.
101457         * modules/stdbool (Makefile.am): Remove explicit dependency on
101458         $(STDBOOL_H), redundant through BUILT_SOURCES.
101459         * modules/stdint (Makefile.am): Remove explicit dependency on
101460         $(STDINT_H), redundant through BUILT_SOURCES.
101461         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
101462         Remove explicit dependency on $(SYSEXITS_H).
101463         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
101465 2005-07-18  Simon Josefsson  <jas@extundo.com>
101467         * lib/check-version.c (check_version): Accept identical versions too.
101469 2005-07-18  Bruno Haible  <bruno@clisp.org>
101471         * modules/lock: New file.
101472         * MODULES.html.sh (Multithreading): New section.
101474 2005-07-18  Bruno Haible  <bruno@clisp.org>
101476         * m4/lock.m4: New file, from GNU gettext.
101478 2005-07-18  Bruno Haible  <bruno@clisp.org>
101480         * lib/lock.h: New file, from GNU gettext.
101481         * lib/lock.c: New file, from GNU gettext.
101483 2005-07-18  Bruno Haible  <bruno@clisp.org>
101485         * lib/lock.h (gl_once_t): New type.
101486         (gl_once_define, gl_once): New macros.
101487         * lib/lock.c (fresh_once): New variable.
101488         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
101489         functions.
101491 2005-07-16  Simon Josefsson  <jas@extundo.com>
101493         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
101494         workaround, suggested by Bruno.
101496 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
101498         * modules/xalloc (Depends-on): Add xalloc-die.
101499         * modules/xvasprintf (Depends-on): Add xalloc-die.
101501 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
101503         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
101504         with a minor change.
101506 2005-07-15  Bruno Haible  <bruno@clisp.org>
101508         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
101509         When using lib/poll.c, define poll as rpl_poll.
101511 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
101513         * modules/argp (Depends-on): Remove unlocked-io.
101515 2005-07-14  Derek Price  <derek@ximbiot.com>
101517         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
101518         for glob symlink bug.
101520 2005-07-14  Bruno Haible  <bruno@clisp.org>
101522         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
101523         Instead, test for *_unlocked function declarations directly.
101525 2005-07-11  Simon Josefsson  <jas@extundo.com>
101527         * modules/size_max: New file.
101529         * modules/xsize: Depend on size_max module for size_max.m4.
101531 2005-07-11  Simon Josefsson  <jas@extundo.com>
101533         * lib/size_max.h: New file.
101535 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
101537         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
101538         copyright symbol and the year.
101539         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
101540         (version_etc_va): Use parameterized copyright notice.
101541         Reword to conform to the current GNU coding standards.
101543 2005-07-11  Karl Berry  <karl@gnu.org>
101545         * doc/gnulib.texi (Quoting): new node.
101546         (Initial import): more info, from Patrice.
101548 2005-07-11  Bruno Haible  <bruno@clisp.org>
101550         * gnulib-tool (func_usage): Document option --avoid.
101551         (Command line options): Handle --avoid.
101552         (func_acceptable): New function.
101553         (func_modules_transitive_closure): Use it.
101555 2005-07-11  Bruno Haible  <bruno@clisp.org>
101557         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
101558         Reported by Jim Meyering.
101560 2005-07-10  Bruno Haible  <bruno@clisp.org>
101562         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
101563         Needed when size_t is smaller than 'unsigned int'.
101564         Reported by Paul Eggert.
101566 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
101568         * modules/argp (Depends-on): Add unlocked-io
101570 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
101572         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
101573         block of defines.
101575 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
101577         * config/srclist.txt: Comment out regcomp.c, since we have a porting
101578         fix now.
101580 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
101581         and Paul Eggert  <eggert@cs.ucla.edu>
101583         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
101584         in wint_t, not wchar_t.  Remove now-unnecessary cast.
101586 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
101588         * modules/regex (Files): Add lib/regex_internal.c,
101589         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
101590         (Depends-on): Add extensions.
101591         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
101593 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
101595         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
101596         pathconf.
101597         * m4/same.m4 (gl_SAME): Likewise.
101598         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
101600         * m4/regex.m4: Adjust to new libc regex implementation.
101601         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
101602         all the .c and .h parts of (the new) regex.
101603         Quote the m4 stuff better.
101604         Check for RE_ICASE bug of old gnulib.
101605         Check for REG_STARTEND of recent libc.
101606         Rename local variables from jm_* to gl_*.
101607         Quote operand of "test -f".
101608         Say "recent enough" version of libc, not "version 2".
101609         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
101610         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
101611         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
101612         Remove check for btowc, isascii.
101613         Require AM_LANGINFO_CODESET.
101615 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
101617         * lib/regex.c, regex.h: Sync from libc.
101618         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
101619         * lib/regexec.c:
101620         New files, synced from libc, except that regex_internal.h
101621         currently has a small porting fix.
101623 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
101625         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
101626         regex_internal.c, regexec.c.
101627         Add regex_internal.h too, but as a comment, since the libc version
101628         is currently broken in gnulib mode.
101630 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
101632         Support programs like Emacs that use gnulib but not gettext.
101633         * MODULES.html.sh (Internationalization functions): Add gettext-h.
101634         * modules/gettext-h: New file.
101635         * modules/gettext (Files): Remove lib/gettext.h.
101636         (Depends-on): Add gettext-h.
101637         (Makefile.am): Remove lib_SOURCES.
101638         * modules/argmatch, modules/c-stack, modules/closeout:
101639         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
101640         * modules/execute, modules/file-type, modules/getaddrinfo:
101641         * modules/getopt, modules/human, modules/javacomp:
101642         * modules/javaexec, modules/mkdir-p, modules/obstack:
101643         * modules/openat, modules/pagealign_alloc, modules/pipe:
101644         * modules/quotearg, modules/regex, modules/rpmatch:
101645         * modules/unicodeio, modules/userspec, modules/version-etc:
101646         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
101647         * modules/xsetenv:
101648         Depend on gettext-h, not gettext.
101650 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
101652         * gnulib-tool (func_import): Add support for 'public domain' license.
101653         * modules/alloca, modules/atexit, modules/memmove:
101654         Now public domain, not GPL.
101655         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
101656         * modules/realloc, modules/strerror, modules/strtod:
101657         Now LGPL, not GPL.
101659 2005-07-05  Bruno Haible  <bruno@clisp.org>
101661         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
101662         autoconf CVS. Needed for mingw.
101664 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
101666         Remove the dependency of the strftime module on the tzset module.
101667         * modules/strftime (Depends-on): Remove dependency on tzset.
101669 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
101671         Remove the dependency of the strftime module on the tzset module.
101672         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
101673         gl_FUNC_TZSET_CLOBBER.
101675 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
101677         Remove the dependency of the strftime module on the tzset module.
101678         * lib/strftime.c (my_strftime)
101679         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
101680         Copy the input structure, to work around some of the bug with
101681         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
101682         Solaris releases, you should also use the tzset module, but we won't
101683         require it as a dependency any more since we don't want LGPLed code
101684         to depend on GPLed code.
101686 2005-07-02  Jim Meyering  <jim@meyering.net>
101688         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
101689         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
101690         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
101691         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
101693 2005-07-02  Jim Meyering  <jim@meyering.net>
101695         * lib/backupfile.c (backup_args): Change a `0' to NULL.
101697 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
101699         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
101700         declares only 'struct timespec;' (!).
101702 2005-07-01  Jim Meyering  <jim@meyering.net>
101704         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
101705         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
101706         * lib/save-cwd.c, tempname.c:
101707         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
101708         and don't include <sys/file.h>).
101710 2005-06-29  Jim Meyering  <jim@meyering.net>
101712         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
101713         type name.  Use the variable name instead.
101714         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
101715         Likewise.
101717 2005-06-28  Simon Josefsson  <jas@extundo.com>
101719         * modules/check-version (Files): Add check-version.m4.
101721 2005-06-28  Simon Josefsson  <jas@extundo.com>
101723         * m4/check-version.m4: New file, suggested by Jim Meyering
101724         <jim@meyering.net>.
101726 2005-06-28  Simon Josefsson  <jas@extundo.com>
101728         * lib/check-version.h, lib/check-version.c: New files.
101730 2005-06-28  Simon Josefsson  <jas@extundo.com>
101732         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
101733         collision with global variable.  Better indentation.  Don't
101734         increment buffer pointer beyond buffer end.  Based on comments
101735         from Paul Eggert <eggert@cs.ucla.edu>.
101737         * lib/base64.h: Indent.
101739 2005-06-28  Simon Josefsson  <jas@extundo.com>
101741         * doc/gnulib.texi (Library version handling): New section.
101743 2005-06-28  Jim Meyering  <jim@meyering.net>
101745         * check-module (find_included_lib_files): Hard-code another
101746         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
101747         but modules/fts-lgpl (correctly) does not list those files.
101749         * modules/canonicalize (Files): Add lib/pathmax.h.
101751 2005-06-25  Simon Josefsson  <jas@extundo.com>
101753         * modules/check-version: New file.
101755 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
101757         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
101758         initializer of struct addrinfo, as an indication that we don't
101759         care how many members the structure has.
101761 2005-06-24  Derek Price  <derek@ximbiot.com>
101762         and Bruno Haible  <bruno@clisp.org>
101764         Remove stat module & update lstat.
101765         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
101766         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
101767         * m4/stat.m4: Remove this file.
101769 2005-06-24  Derek Price  <derek@ximbiot.com>
101770         and Bruno Haible  <bruno@clisp.org>
101772         Remove stat module & update lstat.
101773         * lib/stat.c: Remove this file...
101774         (slash_aware_lstat): ...moving this content and its support...
101775         * lib/lstat.c (rpl_lstat): ...into here.
101776         * lib/lstat.h: New file.
101778 2005-06-24  Derek Price  <derek@ximbiot.com>
101779         and Bruno Haible  <bruno@clisp.org>
101781         Remove stat module & update lstat.
101782         * config/srclist.txt (libc sources): Remove stat.
101784 2005-06-24  Derek Price  <derek@ximbiot.com>
101785         and Bruno Haible  <bruno@clisp.org>
101787         Remove stat module & update lstat.
101788         * MODULES.html.sh (stat): Remove.
101789         * MODULES.html: Regenerated.
101790         * modules/lstat (Description): Correct function name.
101791         (Files): Add "lstat.h".
101792         (Depends-on): Remove stat, add xalloc, stat-macros.
101793         * modules/stat: Remove this file.
101794         (Include): Add "lstat.h", remove <sys/stat.h>.
101796 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
101798         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
101799         (ranged_convert): Don't save conversion in a temporary struct.
101800         This causes a warning with GCC 4.0.0, and anyway in the typical
101801         case it's not worth the extra 100 bytes or so of code.
101802         (ranged_convert, __mktime_internal): When calling a function via a
101803         pointer P, use P () rather than (*P) (), as we now assume C89 or
101804         better.
101806 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
101808         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
101809         "who -r" failed to give output.  Problem reported by Tim Waugh.
101811         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
101812         (xcalloc): Use it to avoid needless tests.
101813         Problem reported by Jim Meyering.
101815 2005-06-20  Derek Price  <derek@ximbiot.com>
101817         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
101818         unnecessary for Autoconfs > 2.59c.
101820 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
101822         * lib/argp.h (__option_is_short): Check upper limit of
101823         __key. Isprint() requires its argument to have the value
101824         of an unsigned char or EOF.
101826 2005-06-16  Jim Meyering  <jim@meyering.net>
101828         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
101829         when either N or S is zero.
101831 2005-06-16  Derek Price  <derek@ximbiot.com>
101833         * m4/bison.m4: Declare YACC & YFLAGS precious.
101835 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
101837         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
101838         multibyte string or pattern, fall back on unibyte matching.
101839         Problem reported by James Youngman.
101841 2005-06-08  Bruno Haible  <bruno@clisp.org>
101843         * modules/csharpcomp: New file.
101844         * MODULES.html.sh (C#): Add csharpcomp.
101846 2005-06-08  Bruno Haible  <bruno@clisp.org>
101848         * m4/csharpcomp.m4: New file, from GNU gettext.
101850 2005-06-08  Bruno Haible  <bruno@clisp.org>
101852         * lib/csharpcomp.h: New file, from GNU gettext.
101853         * lib/csharpcomp.c: New file, from GNU gettext.
101854         * lib/csharpcomp.sh.in: New file, from GNU gettext.
101856 2005-06-08  Bruno Haible  <bruno@clisp.org>
101858         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
101859         warning on mingw.
101861 2005-06-07  Derek Price  <derek@ximbiot.com>
101863         Sync from CVS.
101864         * lib/glob_.h: Indent nested #ifdef.
101866 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
101868         Sync from coreutils.
101869         Use "file name" when talking about file names, instead of "filename"
101870         or "path", as per the GNU coding standards.
101871         * lib/mkdir-p.c: Renamed from makepath.c.
101872         (make_dir_parents): Renamed from make_path.  All callers changed.
101873         * lib/mkdir-p.h: Likewise.  All includers changed.
101874         * lib/filenamecat.c: Renamed from path-concat.c.
101875         (file_name_concat): Renamed from path_concat.  All callers changed.
101876         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
101877         * lib/filenamecat.h: Likewise.  All includers changed.
101878         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
101879         in comments or local variable names.
101880         * lib/basename.c: Likewise.
101881         * lib/canonicalize.c, canonicalize.h: Likewise.
101882         * lib/dirname.c, dirname.h: Likewise.
101883         * lib/euidaccess.c: Likewise.
101884         * lib/exclude.c: Likewise
101885         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
101886         * lib/fsusage.c, fsuage.h: Likewise.
101887         * lib/fts.c, fts_.h: Likewise.
101888         * lib/getcwd.c: Likewise.
101889         * lib/getloadavg.c: Likewise.
101890         * lib/mkstemp.c: Likewise.
101891         * lib/mountlist.c, mountlist.h: Likewise.
101892         * lib/openat.c, openat.h: Likewise.
101893         * lib/readlink-stub.c: Likewise.
101894         * lib/readutmp.c, readutmp.h: Likewise.
101895         * lib/rename.c: Likewise.
101896         * lib/rmdir.c: Likewise.
101897         * lib/same.c: Likewise.
101898         * lib/savedir.c: Likewise.
101899         * lib/stripslash.c: Likewise.
101900         * lib/tempname.c: Likewise.
101901         * lib/xreadlink.c: Likewise.
101902         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
101903         All uses changed.
101904         * lib/exclude.h: Likewise.
101906         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
101907         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
101908         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
101909         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
101910         * lib/pathmax.h: Include <limits.h> unconditionally, since other
101911         files have been getting away with it for years (MORE/BSD 4.3
101912         is extinct now).
101913         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
101914         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
101916         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
101917         Define to 256, not 255, as per modern POSIX.
101919 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
101921         Sync from coreutils.
101922         Use "file name" when talking about file names, instead of "filename"
101923         or "path", as per the GNU coding standards.
101924         * MODULES.html.sh: mkdir-p renamed from makepath.
101925         filenamecat renamed from path-concat.
101926         * modules/filenamecat: Renamed from modules/path-concat.
101927         (Files): filenamecat.h and filenamecat.c renamed from
101928         path-concat.h and path-concat.c.
101929         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
101930         (Include): filenamecat.h, not path-concat.h.
101931         * modules/mkdir-p: Renamed from modules/makepath.
101932         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
101933         makepath.c.
101934         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
101935         (Include): mkdir-p.h, not makepath.h.
101937 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
101939         Sync from coreutils.
101940         * m4/mkdir-p.m4: Renamed from makepath.m4.
101941         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
101942         Rename files from makepath.c to mkdir-p.c, and from
101943         makepath.h to mkdir-p.h.
101944         * m4/filenamecat.m4: Renamed from path-concat.m4.
101945         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
101946         Rename files from path-concat.c to filenamecat.c,
101947         and from path-concat.h to filenamecat.h.
101948         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
101949         "file name" in local variables or comments.
101950         * m4/rename.m4: Likewise.
101952 2005-06-01  Bruno Haible  <bruno@clisp.org>
101954         * modules/csharpexec: New file.
101955         * MODULES.html.sh (C#): New section.
101957 2005-06-01  Bruno Haible  <bruno@clisp.org>
101959         * m4/csharp.m4: New file, from GNU gettext.
101960         * m4/csharpexec.m4: New file, from GNU gettext.
101962 2005-06-01  Bruno Haible  <bruno@clisp.org>
101964         * lib/csharpexec.h: New file, from GNU gettext.
101965         * lib/csharpexec.c: New file, from GNU gettext.
101966         * lib/csharpexec.sh.in: New file, from GNU gettext.
101968 2005-05-31  Derek Price  <derek@ximbiot.com>
101969             Paul Eggert  <eggert@cs.ucla.edu>
101971         Sync from cvs.
101972         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
101974 2005-05-31  Derek Price  <derek@ximbiot.com>
101975             Paul Eggert  <eggert@cs.ucla.edu>
101977         Sync from cvs.
101978         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
101980 2005-05-29  Derek Price  <derek@ximbiot.com>
101982         * config/srclist.txt (glob_.h, glob.c): Add these files.
101984 2005-05-29  Derek Price  <derek@ximbiot.com>
101986         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
101987         * modules/glob: New file.
101988         * modules/getlogin_r: Add link to POSIX spec in description.
101990 2005-05-29  Derek Price  <derek@ximbiot.com>
101991             Paul Eggert  <eggert@cs.ucla.edu>
101993         * m4/glob.m4: New file.
101995 2005-05-29  Derek Price  <derek@ximbiot.com>
101996             Paul Eggert  <eggert@cs.ucla.edu>
101998         * lib/glob_.h, lib/glob.c: New files.
102000 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
102002         * modules/fts (Files): Remove m4/inttypes-pri.m4.
102003         * modules/fts-lgpl (Depends-on): Remove gettext.
102005 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
102007         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
102008         and don't require gt_INTTYPES_PRI.
102010 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
102012         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
102014         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
102015         the configuration hassle isn't worth it.
102016         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
102017         (LONGEST_MODIFIER, PRIuMAX): Remove.
102019 2005-05-27  Bruno Haible  <bruno@clisp.org>
102021         * lib/getlogin_r.h: Remove second include of <stddef.h>.
102023 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
102025         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
102026         _POSIX_PTHREAD_SEMANTICS for Solaris.
102028 2005-05-25  Derek Price  <derek@ximbiot.com>
102030         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
102032 2005-05-25  Derek Price  <derek@ximbiot.com>
102033             Paul Eggert  <eggert@cs.ucla.edu>
102035         * modules/getlogin_r, m4/getlogin_r.m4: New files.
102036         * lib/getlogin_r.c, getlogin_r.h: New files.
102038 2005-05-25  Bruno Haible  <bruno@clisp.org>
102039             Derek Price  <derek@ximbiot.com>
102041         * lib/getlogin_r.h: Simplify API documentation.
102043 2005-05-23  Derek Price  <derek@ximbiot.com>
102045         * modules/minmax (Files): Add m4/minmax.m4.
102046         (configure.ac): Add gl_MINMAX.
102048 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
102050         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
102051         so that unistd-safer.h (GPL'ed code) need not be included.
102053 2005-05-22  Bruno Haible  <bruno@clisp.org>
102055         * m4/minmax.m4: New file.
102056         Based on a patch by Derek Price <derek@ximbiot.com>.
102058 2005-05-22  Bruno Haible  <bruno@clisp.org>
102060         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
102061         (INT64_MIN): Fix definition.
102062         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
102064         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
102065         NEED_SIGNED_INT_TYPES.
102067         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
102068         HAVE_SYSTEM_INTTYPES.
102070 2005-05-22  Bruno Haible  <bruno@clisp.org>
102072         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
102073         Also include <sys/param.h> if it defines MIN, MAX.
102074         Based on a patch by Derek Price <derek@ximbiot.com>.
102076 2005-05-21  Jim Meyering  <jim@meyering.net>
102078         * modules/fts (Files): Add m4/inttypes-pri.m4.
102079         (Depends-on): Add lstat and remove gettext.  Alphabetize.
102081 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
102083         New fts module.
102084         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
102085         (setup_dir, free_dir): New functions.
102086         (enter_dir, leave_dir): Define trivial
102087         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
102088         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
102089         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
102090         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
102091         Move to fts-cycle.c.
102092         (fts_open): Use setup_dir.
102093         (fts_close): Use free_dir.
102094         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
102095         This adds a label and some gotos, but the alternatives were messier.
102096         Check for memory allocation failure when entering a dir.
102097         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
102098         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
102099         (FTS): New member fts_cycle, that is a union that contains the
102100         old active_dir_ht and cycle_state.  All uses changed to mention
102101         fts_cycle.ht and fts_cycle.state.
102102         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
102103         fts.c, with the following changes:
102104         (setup_dir, free_dir): New functions.
102105         (enter_dir): Now returns bool.  Return true if successful, false
102106         if memory exhausted.  All callers changed.
102107         Do not bother partly cleaning up on
102108         memory allocation failure; that is free_dir's job.
102109         However, free ad if hash_insert fails, to avoid memory leak.
102110         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
102111         fts->fts_options to see which union member to use.
102113 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
102115         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
102116         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
102118 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
102120         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
102122 2005-05-20  Jim Meyering  <jim@meyering.net>
102124         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
102125         Now a macro, to pacify GCC.
102127 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
102129         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
102130         of -1.
102132 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
102134         * lib/chown.c (rpl_chown): Return -1 on failure.
102136 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
102138         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
102139         Don't check for stddef.h.
102140         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
102141         don't use its results.
102142         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
102143         since we include them unconditionally.  Don't require
102144         AM_STDBOOL_H, since stdbool is a prerequisite.
102145         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
102146         since we assume C89 or better.
102147         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
102148         as we don't use their results.
102149         Don't check for fchdir, memmove, memset, strrchr, as we use
102150         them unconditionally.
102151         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
102152         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
102154 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
102156         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
102157         Include <stddef.h> unconditionally, since we assume C89 now.
102158         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
102159         * lib/fts.c: Include fts_.h first, to check interface.
102160         Do not include intprops.h; no longer needed.
102161         Include cycle-check.h and hash.h, since fts_.h no longer does.
102162         Remove unnecessary casts of closedir to void.
102163         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
102164         decide whether to decrement nlinks.
102165         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
102166         (FTS): Use struct hash_table * instead of Hash_table, so that
102167         we no longer need to include hash.h here.
102169 2005-05-18  Jim Meyering  <jim@meyering.net>
102171         * modules/dirfd (License): Change to LGPL.  Most of the code
102172         is already in the public domain.
102174 2005-05-18  Jim Meyering  <jim@meyering.net>
102176         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
102177         Reported by Yoann Vandoorselaere.
102179 2005-05-17  Jim Meyering  <jim@meyering.net>
102181         * m4/fts.m4: New file, from coreutils.
102183 2005-05-17  Jim Meyering  <jim@meyering.net>
102185         * lib/fts.c, lib/fts_.h: New files, from coreutils.
102187 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
102189         Sync from coreutils.
102190         * m4/unlinkdir.m4: New file.
102192 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
102194         Sync from coreutils.
102195         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
102196         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
102197         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
102198         White space changes only.
102199         * lib/makepath.c (make_path): Port to hosts where leading "//" is
102200         special.
102201         * lib/yesno.c: Include getline.h, not ctype.h.
102202         (yesno): Don't remove leading white space; POSIX doesn't allow it.
102203         Use getline to remove arbitrary restriction on response length.
102205 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
102207         * config/srclist-update: Spell out "Street" in FSF postal
102208         mail address; this is the style the FSF seems to prefer.
102210         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
102211         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
102212         this updates FSF postal mail address.
102214         Sync from coreutils.
102215         * modules/unlinkdir: New file.
102216         * modules/yesno (Depends-on): Add getline.
102217         * MODULES.html.sh (File system functions): Add unlinkdir.
102219 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
102221         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
102222         lib/strsep.h:
102223         Change the initial comment to refer to GPL, not LGPL.
102224         gnulib-tool will change it to LGPL as needed.
102226         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
102227         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
102228         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
102229         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
102230         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
102231         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
102232         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
102233         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
102234         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
102235         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
102236         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
102237         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
102238         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
102239         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
102240         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
102241         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
102242         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
102243         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
102244         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
102245         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
102246         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
102247         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
102248         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
102249         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
102250         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
102251         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
102252         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
102253         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
102254         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
102255         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
102256         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
102257         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
102258         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
102259         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
102260         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
102261         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
102262         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
102263         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
102264         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
102265         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
102266         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
102267         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
102268         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
102269         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
102270         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
102271         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
102272         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
102273         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
102274         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
102275         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
102276         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
102277         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
102278         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
102279         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
102280         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
102281         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
102282         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
102283         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
102284         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
102285         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
102286         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
102287         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
102288         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
102289         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
102290         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
102291         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
102292         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
102293         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
102294         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
102295         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
102296         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
102297         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
102298         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
102299         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
102300         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
102301         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
102302         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
102303         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
102304         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
102305         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
102306         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
102307         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
102308         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
102309         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
102310         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
102311         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
102312         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
102313         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
102314         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
102315         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
102316         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
102317         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
102318         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
102319         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
102320         lib/yesno.c, lib/yesno.h:
102321         Update FSF postal mail address.
102323 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
102325         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
102326         tests/test-memmem.c, tests/test-stpncpy.c:
102327         Update FSF postal mail address.
102329 2005-05-13  Bruno Haible  <bruno@clisp.org>
102331         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
102332         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
102333         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
102334         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
102335         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
102336         Add support for 64-bit integers in the MSVC compiler.
102338 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
102340         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
102342 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
102344         * gnulib-tool (func_import): Sort and uniquify recommended includes.
102346 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
102348         * doc/getdate.texi (General date syntax): Don't say that date
102349         date --iso-8601=ns generates acceptable dates; it doesn't yet.
102350         Problem reported by Nic Ferrier.
102352 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
102354         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
102355         specified in ai_socktype. Fix invalid ai_protocol
102356         check. ai_protocol is usually set to 0 or depending on
102357         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
102358         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
102359         ai_socktype / ai_protocol in the returned addrinfo structure.
102361 2005-05-10  Simon Josefsson  <jas@extundo.com>
102363         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
102364         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
102366 2005-05-10  Karl Berry  <karl@gnu.org>
102368         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
102369         (from http://www.gnu.org/licenses).
102370         * doc/COPYING.LIB: also rename to COPYING.LESSER.
102371         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
102372         fdl.texi suffices.
102374 2005-05-10  Karl Berry  <karl@gnu.org>
102376         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
102377         (COPYING.DOC): remove.
102379         * config/srclist-update: new FSF address.
102381 2005-05-10  Derek Price  <derek@ximbiot.com>
102383         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
102384         possible.
102386 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
102387             Bruno Haible  <bruno@clisp.org>
102389         * modules/inet_ntop: New file.
102390         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
102391         inet_ntop.
102393 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
102394             Bruno Haible  <bruno@clisp.org>
102396         * m4/inet_ntop.m4: New file.
102398 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
102399             Bruno Haible  <bruno@clisp.org>
102401         * lib/inet_ntop.h: New file.
102402         * lib/inet_ntop.c: New file, from glibc with modifications.
102404 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
102406         * modules/time_r (License): Change to LGPL.
102407         * modules/extensions (License): Change to LGPL.  Actually,
102408         the license is more permissive than that, but currently gnulib-tool
102409         doesn't know how to handle more-permissive licenses.
102411         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
102412         Problem reported by Dave Love.
102414 2005-05-08  Jim Meyering  <jim@meyering.net>
102416         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
102417         blank.
102419 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
102421         * modules/argmatch (Depends-on): Add stdbool.
102422         * modules/backupfile (Depends-on): Likewise.
102423         * modules/chdir-long (Depends-on): Likewise.
102424         * modules/closeout (Depends-on): Likewise.
102425         * modules/cycle-check (Depends-on): Likewise.
102426         * modules/dirname (Depends-on): Likewise.
102427         * modules/fnmatch (Depends-on): Likewise.
102428         * modules/fsusage (Depends-on): Likewise.
102429         * modules/fwriteerror (Depends-on): Likewise.
102430         * modules/getcwd (Depends-on): Likewise.
102431         * modules/getloadavg (Depends-on): Likewise.
102432         * modules/hard-locale (Depends-on): Likewise.
102433         * modules/makepath (Depends-on): Likewise.
102434         * modules/mountlist (Depends-on): Likewise.
102435         * modules/nanosleep (Depends-on): Likewise.
102436         * modules/posixtm (Depends-on): Likewise.
102437         * modules/quotearg (Depends-on): Likewise.
102438         * modules/readtokens (Depends-on): Likewise.
102439         * modules/readtokens0 (Depends-on): Likewise.
102440         * modules/readutmp (Depends-on): Likewise.
102441         * modules/save-cwd (Depends-on): Likewise.
102442         * modules/strftime (Depends-on): Likewise.
102443         * modules/userspec (Depends-on): Likewise.
102444         * modules/utimecmp (Depends-on): Likewise.
102445         * modules/xgetcwd (Depends-on): Likewise.
102446         * modules/xnanosleep (Depends-on): Likewise.
102447         * modules/xstrtod (Depends-on): Likewise.
102448         * modules/yesno (Depends-on): Likewise.
102450 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
102452         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
102453         needless checks.
102455 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
102457         Merge from coreutils.  Among other things,
102458         add bulletproofing for cases where stdin, stdout, or stderr are closed.
102459         * lib/fd-safer.c: New file.
102460         * lib/fcntl-safer.h, open-safer.c: Remove.
102461         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
102462         * lib/dup-safer.c: Include unistd-safer.h first.
102463         Don't include errno.h.
102464         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
102465         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
102466         * lib/file-type.c: Rely on file-type.h change.
102467         * lib/getloadavg.c: Include unistd-safer.h.
102468         (getloadavg): Use safer open.
102469         * lib/getusershell.c: Include "stdio-safer.h".
102470         (getusershell): Use safer fopen.
102471         * lib/long-options.c (long_options): Use NULL rather than 0.
102472         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
102473         'free'.
102474         * lib/modechange.c: Likewise.
102475         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
102476         (MODE_DONE): New constant.
102477         (struct mode_change): Remove 'next' member.
102478         (make_node_op_equals): New function; like the old one of the
102479         same name, except it allocates an array.
102480         (mode_compile, mode_create_from_ref): Use it.
102481         (mode_compile): Allocate result as an array, not a linked list.
102482         Parse octal string ourself, so that we catch mistakes like "+0".
102483         (mode_adjust): Arg is an array, not a linked list.
102484         * lib/modechange.c: Include stat-macros.h, xalloc.h.
102485         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
102486         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
102487         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
102488         Remove.  This is now stat-macros.h's job.
102489         (talloc): Remove.  All callers replaced by xalloc, so that
102490         our invokers don't have to worry about reporting memory failures.
102491         (make_node_op_equals): Remove.
102492         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
102493         New constants.
102494         (struct mode_change): Moved here from modechange.h.
102495         (mode_append_entry): Remove.
102496         (mode_compile): Remove MASKED_OPS arg, since it encouraged
102497         apps to have incorrect behavior.  Use simpler algorithm for head
102498         and tail.  Don't futz with umask; that's now the job of mode_adjust.
102499         Detect more invalid usages rather than having somewhat-random behavior.
102500         Don't insert an "a=" action, as that leads to incorrect behavior.
102501         (mode_compile, mode_create_from_ref): Return NULL on error instead
102502         of an enum, since now there's only one way to have an error.  All
102503         callers changed.
102504         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
102505         at the correct time.  Simplify calculation of "+u" and its ilk.
102506         Don't mishandle "+X".
102507         (mode_free): Remove "register" and localize decls.
102508         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
102509         (struct mode_change): Move to modechange.c; callers don't
102510         need to see this stuff.
102511         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
102512         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
102513         (mode_change, mode_adjust): Reflect the new signatures noted above.
102514         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
102515         that might redefine system include files.
102516         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
102517         (my_usleep): Use NULL rather than (void *) 0.
102518         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
102519         Use siginterrupt to specify that system calls should be interrupted.
102520         (rpl_nanosleep): Move initialization of suspended closer to call of
102521         my_usleep.
102522         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
102523         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
102524         (desirable_utmp_entry): New function.
102525         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
102526         using x2nrealloc, to simplify logic.
102527         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
102528         size calculation.  Do not assume utmp file is a regular file.
102529         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
102530         (READ_UTMP_CHECK_PIDS): New constant.
102531         * lib/save-cwd.c: Include unistd-safer.h.
102532         (save_cwd): Use fd_safer.
102533         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
102534         [!_LIBC] Include "stat-macros.h" instead.
102535         * lib/unistd-safer.h (fd_safer): New decl.
102537 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
102539         * modules/getloadavg (Depends-on): Add unistd-safer.
102540         * modules/getusershell (Depends-on): Add stdio-safer.
102541         * modules/lstat (Depends-on): Remove xalloc.
102542         * modules/mkstemp (Depends-on): Add stat-macros.
102543         * modules/modechange (Depends-on): Remove xstrtol.
102544         Add stat-macros, xalloc.
102545         * modules/save-cwd (Depends-on): Add unistd-safer.
102546         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
102547         * modules/unistd-safer (Files): Add lib/fd-safer.c
102548         (Makefile.am): Remove lib_SOURCES.
102550         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
102551         Remove fcntl-safer; unistd-safer supersedes it.
102553 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
102555         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
102556         AC_HEADER_STAT.
102557         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
102558         (gl_PREREQ_CHOWN): Remove.
102559         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
102560         it.  Don't require AC_HEADER_STAT.
102561         (gl_PREREQ_LSTAT): Remove.
102562         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
102563         Don't require AC_HEADER_STAT.
102564         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
102565         (gl_PREREQ_RMDIR): Remove.
102566         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
102567         mention stat-macros.h or AC_HEADER_STAT, since we'll make
102568         the stat-macros module a prerequisite.
102569         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
102570         * m4/filemode.m4 (gl_FILEMODE): Likewise.
102571         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
102572         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
102573         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
102574         variable names.
102575         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
102576         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
102577         variable prefixes.
102578         * m4/fcntl-safer.m4: Remove.
102579         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
102580         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
102581         Invoke gl_PREREQ_FD_SAFER.
102582         (gl_PREREQ_FD_SAFER): New macro.
102583         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
102584         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
102585         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
102586         Remove duplicate call to AC_LIBOBJ(readutmp).
102587         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
102589         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
102590         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
102592 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
102594         * MODULES.html.sh (Misc): Add byteswap.
102596 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
102598         * modules/getcwd (Depends-on): Add extensions.
102599         * modules/openat (Depends-on): Likewise.
102601 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
102603         * modules/byteswap: New file.
102605 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
102607         * m4/byteswap.m4: New file.
102609 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
102611         * lib/byteswap_.h: New file.
102613 2005-04-25  Karl Berry  <karl@gnu.org>
102615         * m4/gettext.m4: Update from GNU gettext 0.14.4.
102617 2005-04-25  Albert Chin  <china@thewrittenword.com>
102619         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
102620         Toolkit C bug.
102622 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
102624         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
102625         (func_ln_if_changed): Remove forcibly for no error message
102626         in case file does not exist.
102628 2005-04-19  Simon Josefsson  <jas@extundo.com>
102630         * gnulib-tool (Options): Make --symlink mean --symbolic.
102632 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
102634         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
102636 2005-04-16  Simon Josefsson  <jas@extundo.com>
102638         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
102640 2005-04-15  Simon Josefsson  <jas@extundo.com>
102642         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
102644 2005-04-15  Simon Josefsson  <jas@extundo.com>
102646         * gnulib-tool: Rename --symlink to --symbolic.
102648 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
102650         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
102651         symbolic links to files instead of copying/moving.  Add --aux-dir,
102652         specifying directory relative --dir where auxiliary build tools
102653         are placed.
102655 2005-04-14  Bruno Haible  <bruno@clisp.org>
102657         * modules/allocsa (License): Change to LGPL.
102658         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
102660 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
102662         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
102663         that "UTC +1 second" continues to work.  Problem reported
102664         by Dmitry V. Levin.
102665         (relunit_snumber): New rule.
102666         (relunit): Use it.
102668 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
102670         * lib/getdate.y (universal_time_zone_table): New constant.
102671         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
102672         universal_time_zone_table.
102673         (lookup_zone): Prefer universal_time_zone_table to
102674         local_time_zone_table, so that "GMT" time stamps are allowed in
102675         London during the summer.  Problem reported by Ian Abbott.
102677 2005-04-12  Jim Meyering  <jim@meyering.net>
102679         * lib/human.c (humblock): Set *options even when returning due to
102680         xstrtoumax conversion failure.  Thanks to a used-uninitialized
102681         warning from gcc-4.
102683 2005-04-09  Jim Meyering  <jim@meyering.net>
102685         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
102686         -Wuninitialized: initialize tm0.tm_year.
102688 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
102690         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
102691         count, since there's no maximum.  All uses changed.
102692         Add member dsts_seen.
102693         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
102694         not being INT_MAX.
102695         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
102696         Use pc_rels_seen to decide whether a date is absolute.
102698         * lib/getdate.y (number): Don't overwrite year.
102699         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
102700         check.
102702 2005-04-02  Simon Josefsson  <jas@extundo.com>
102704         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
102705         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
102707 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
102709         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
102710         where no absolute path name can be longer than PATH_MAX.
102712 2005-03-27  Jim Meyering  <jim@meyering.net>
102714         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
102716 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
102718         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
102719         "one's complement" -> "ones' complement" in comment, as per Knuth.
102720         "value of type" -> "type or expression" in comment.
102721         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
102723 2005-03-26  Jim Meyering  <jim@meyering.net>
102725         Comment nits.
102726         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
102727         Correct typos: s/or/of/.
102729 2005-03-26  Jim Meyering  <jim@meyering.net>
102731         * modules/check-include-files: Move to ../ and rename to...
102732         * check-module: ...this.
102734 2005-03-25  Jim Meyering  <jim@meyering.net>
102736         * modules/xvasprintf (Files): Add xalloc.h.
102738 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
102740         * modules/gettext (Files): config/config.rpath ->
102741         build-aux/config.rpath
102742         * modules/iconv (Files): Likewise.
102743         Problem reported by Oskar Liljeblad.
102745 2005-03-23  Jim Meyering  <jim@meyering.net>
102747         * modules/check-include-files: New script to check for
102748         missing dependencies, multiple includes, etc.
102750         * modules/c-strtold (Depends-on): Add xalloc.
102751         * modules/c-strtod (Depends-on): Add xalloc.
102752         * modules/hash (Depends-on): Add xalloc.
102753         (Files): Remove lib/xalloc.h.
102755         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
102756         * modules/userspec (Files): Add lib/inttostr.h.
102758 2005-03-23  Jim Meyering  <jim@meyering.net>
102760         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
102762 2005-03-22  Jim Meyering  <jim@meyering.net>
102764         * modules/stat-macros: New module.
102765         * modules/canonicalize, modules/euidaccess, modules/file-type,
102766         * modules/filemode, modules/lchown, modules/makepath,
102767         * modules/rmdir, modules/stat: Depend on new stat-macros module
102768         rather than listing lib/stat-macros.h manually.
102769         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
102771 2005-03-22  Jim Meyering  <jim@meyering.net>
102773         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
102775 2005-03-22  Bruno Haible  <bruno@clisp.org>
102777         * config/srclist.txt: Replace target directory 'config' with
102778         'build-aux'.
102779         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
102780         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
102781         ../build-aux/.
102783 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
102785         * modules/chdir-long (Depends-on): Add mempcpy.
102787         * modules/acl, modules/backupfile, modules/c-strtod,
102788         modules/c-strtold, modules/canon-host, modules/canonicalize,
102789         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
102790         modules/exclude, modules/exitfail, modules/file-type,
102791         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
102792         modules/getdate, modules/getline, modules/getpagesize,
102793         modules/getpass, modules/getugroups, modules/group-member,
102794         modules/hard-locale, modules/hash, modules/human, modules/idcache,
102795         modules/inttostr, modules/long-options, modules/makepath,
102796         modules/md5, modules/memcasecmp, modules/memcoll,
102797         modules/modechange, modules/mountlist, modules/path-concat,
102798         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
102799         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
102800         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
102801         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
102802         modules/strftime, modules/strndup, modules/strverscmp,
102803         modules/timespec, modules/unlocked-io, modules/userspec,
102804         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
102805         modules/yesno:
102806         Remove lib_SOURCES line from Makefile.am section, as this is now
102807         done automatically by the corresponding Autoconf macro.
102809 2005-03-21  Jim Meyering  <jim@meyering.net>
102811         Changes imported from coreutils.
102813         * lib/cycle-check.c: Don't include xalloc.h.
102815         * lib/path-concat.c: Don't include assert.h.
102816         (path_concat): Remove assertion that would have triggered
102817         for ABASE starting with more than one slash.
102818         Reported by Andreas Schwab.
102820         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
102821         properly when ABASE is an absolute file name.
102822         Correct the description of this function.
102823         Include <assert.h>.
102824         Add an assertion and a test driver.
102825         This fixes a bug introduced on 2004-07-02.
102826         Andreas Schwab reported the resulting failure of cp --parents:
102827         http://lists.gnu.org/r/bug-coreutils/2005-01/msg00130.html
102829 2005-03-21  Jim Meyering  <jim@meyering.net>
102831         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
102832         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
102834 2005-03-21  Jim Meyering  <jim@meyering.net>
102835         and  Paul Eggert  <eggert@cs.ucla.edu>
102837         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
102838         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
102839         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
102840         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
102841         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
102842         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
102843         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
102844         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
102845         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
102846         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
102847         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
102848         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
102849         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
102850         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
102851         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
102852         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
102853         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
102854         for these modules.
102856 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
102858         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
102859         (which shouldn't happen), generate nothing instead of returning 0
102860         immediately, so that nstrftime (NULL, ...) doesn't return 0.
102862 2005-03-16  Bruno Haible  <bruno@clisp.org>
102864         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
102865         HAVE_LONGLONG_64BIT.
102867 2005-03-16  Bruno Haible  <bruno@clisp.org>
102869         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
102870         HAVE_LONGLONG_64BIT.
102872 2005-03-16  Bruno Haible  <bruno@clisp.org>
102874         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
102875         HAVE_LONGLONG_64BIT.
102877 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
102879         * lib/strftime.c (my_strftime): Prepend space to format so that we can
102880         reliably distinguish strftime failure from empty output on POSIX
102881         hosts.
102883 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
102885         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
102886         (iconv_string): Don't guess a size-zero buffer, as that might cause
102887         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
102888         result would be 'too large', where 'too large' is (heuristically)
102889         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
102890         overflow concerns.  This will prevent some unwanted malloc failures
102891         when the inputs are very large.
102893 2005-03-15  Karl Berry  <karl@gnu.org>
102895         * config/srclist.txt (config.rpath): from gettext.
102896         * config/config.rpath: update.
102898 2005-03-15  Bruno Haible  <bruno@clisp.org>
102900         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
102901         to 'negate'.
102903         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
102904         variable.
102906         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
102907         results.
102909 2005-03-14  Simon Josefsson  <jas@extundo.com>
102911         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
102912         <fx@gnu.org>.
102914 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
102916         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
102917         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
102918         intprops.h.
102919         * lib/strtol.c: Likewise.
102921 2005-03-14  Jim Meyering  <jim@meyering.net>
102923         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
102924         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
102925         to be nonzero so that we (and caller) can detect the difference
102926         between a valid zero-length expansion and an error return, even
102927         when the underlying strftime fails before writing anything into
102928         that location.
102930 2005-03-14  Bruno Haible  <bruno@clisp.org>
102932         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
102933         Update from GNU gettext 0.14.3.
102935 2005-03-10  Jim Meyering  <jim@meyering.net>
102937         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
102939 2005-03-10  Jim Meyering  <jim@meyering.net>
102941         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
102942         so that this module works on systems without fchdir.
102944 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
102946         Factor int-properties macros into a single file, except for
102947         glibc-related files.
102948         * lib/intprops.h: New file.
102949         * lib/getloadavg.c: Include it instead of limits.h.
102950         (INT_STRLEN_BOUND): Remove.
102951         * lib/human.c: Include intprops.h.
102952         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
102953         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
102954         302/1000.
102955         * lib/inttostr.h: Include intprops.h instead of limits.h.
102956         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
102957         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
102958         for consistency with intprops.h.
102959         (time_t_is_integer, twos_complement_arithmetic): Use them.
102960         * lib/sig2str.h: Include <signal.h>, intprops.h.
102961         (INT_STRLEN_BOUND): Remove.
102962         * lib/strftime.c (TYPE_SIGNED): Remove.
102963         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
102964         * lib/strtol.c: Adjust comments to match intprops.h.
102965         * lib/userspec.c: Include intprops.h.
102966         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
102967         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
102968         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
102969         instead of rolling our own expressions.
102970         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
102972         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
102973         instead of int.
102974         (my_strftime): Do not mishandle years close to INT_MAX, by doing
102975         the right thing even if adding 1900 would overflow.  Similarly
102976         for tm_mon + 1 and tm_yday + 1.
102977         Make %Y always equivalent to %C%y, and similarly for %G and %g.
102978         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
102979         (DO_SIGNED_NUMBER): New macro.
102980         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
102982 2005-03-07  Bruno Haible  <bruno@clisp.org>
102984         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
102986 2005-03-07  Bruno Haible  <bruno@clisp.org>
102988         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
102990 2005-03-04  Derek R. Price  <derek@ximbiot.com>
102992         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
102993         (func_import): Only replace files via --import when they have actually
102994         changed.
102996 2005-03-03  Derek R. Price  <derek@ximbiot.com>
102998         * m4/mmap-anon.m4: New file.
102999         * m4/pagealign_alloc.m4: New file.
103001 2005-03-03  Derek R. Price  <derek@ximbiot.com>
103002             Bruno Haible  <bruno@clisp.org>
103004         * modules/pagealign_alloc: New file.
103005         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
103007 2005-03-03  Derek R. Price  <derek@ximbiot.com>
103008             Bruno Haible  <bruno@clisp.org>
103010         * lib/pagealign_alloc.h: New file.
103011         * lib/pagealign_alloc.c: New file.
103013 2005-03-03  Bruno Haible  <bruno@clisp.org>
103015         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
103016         Use an all-permissive copyright notice, recommended by RMS.
103018 2005-03-02  Bruno Haible  <bruno@clisp.org>
103020         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
103021         of AIX, the replacement has to be done only after <string.h> is
103022         included, therefore not in config.h. stpncpy.h does the replacement,
103023         and stpncpy.c uses it.
103025 2005-03-02  Bruno Haible  <bruno@clisp.org>
103027         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
103028         stpncpy.c uses it.
103030 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
103032         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
103033         The workaround isn't strictly needed for POSIX conformance, and
103034         it's too much of a pain to configure and maintain.  We'll ask
103035         people to fix their kernels instead.
103036         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
103037         (NANOSLEEP_BUG_WORKAROUND): Remove.
103038         (xnanosleep): Remove the workaround.
103040 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
103042         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
103043         Reported by Derek Price.
103044         (Include): Add "timespec.h".
103046         * modules/xnanosleep (Depends-on): Remove gethrxtime.
103048 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
103050         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
103051         to detect nanosleep bug.
103053 2005-03-01  Bruno Haible  <bruno@clisp.org>
103055         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
103057 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
103059         * modules/gethrxtime: New file.
103060         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
103061         (Depends-on): Add gethrxtime.
103062         (configure.ac): Add gl_XNANOSLEEP.
103063         (Makefile.am): Remove lib_SOURCES line.
103065 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
103067         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
103068         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
103070 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
103072         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
103073         * lib/timespec.h (gettime): Return void, since it always
103074         succeeds now.  All uses changed.
103075         * lib/gettime.c (gettime): Likewise.
103076         [HAVE_NANOTIME]: Prefer nanotime.
103077         Assume gettimeofday succeeds, as POSIX requires.
103078         Assime time () succeeds, since other code already does.
103079         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
103080         (timespec_subtract): Remove.
103081         (NANOSLEEP_BUG_WORKAROUND): New constant.
103082         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
103083         things considerably.  Use it only on GNU/Linux hosts, since the
103084         workaround shouldn't be needed elsewhere.
103086 2005-02-24  Bruno Haible  <bruno@clisp.org>
103088         * modules/gettext (Files): Add m4/glibc2.m4.
103090 2005-02-24  Bruno Haible  <bruno@clisp.org>
103092         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
103093         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
103094         * m4/progtest.m4:
103095         Update from GNU gettext 0.14.2.
103096         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
103098 2005-02-24  Bruno Haible  <bruno@clisp.org>
103100         * lib/localcharset.c: Update from GNU gettext 0.14.2.
103101         * lib/config.charset: Update from GNU gettext 0.14.2.
103103 2005-02-24  Bruno Haible  <bruno@clisp.org>
103105         * lib/gettext.h: Update from GNU gettext 0.14.2.
103107 2005-02-23  Simon Josefsson  <jas@extundo.com>
103109         * m4/iconvme.m4: New file.
103111 2005-02-23  Jim Meyering  <jim@meyering.net>
103113         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
103114         change.
103115         Thanks to Bruno Haible for catching it.
103117 2005-02-22  Simon Josefsson  <jas@extundo.com>
103119         * modules/iconvme: New file.
103121         * MODULES.html.sh: Add iconvme.
103123 2005-02-22  Simon Josefsson  <jas@extundo.com>
103125         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
103127 2005-02-22  Simon Josefsson  <jas@extundo.com>
103129         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
103131 2005-02-22  Jim Meyering  <jim@meyering.net>
103133         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
103134         s/ifndef/ifdef/.
103136 2005-02-20  Neil Conway  <neilc@samurai.com>
103138         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
103139         returned by OSX/Darwin if the specified buffer is not large
103140         enough for the hostname.
103142 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
103144         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
103145         pass it to _help, otherwise the latter coredumps trying to
103146         dereference state.root_argp.
103148 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
103150         * modules/chdir-long (Depends-on): Add memrchr.
103151         * modules/memrchr (Files): Add lib/memrchr.h.
103152         (Include): "memrchr.h".
103154 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
103156         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
103158 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
103160         * lib/memrchr.h: New file.
103161         * lib/chdir-long.c: Include it.
103162         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
103163         Don't bother including stddef.h.
103165 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
103167         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
103168         inclusion.
103169         Include <sys/types.h>, for dev_t.
103170         (ME_DUMMY, ME_REMOTE): Move from here....
103171         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
103172         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
103173         Dmitry V. Levin.
103174         Include mountlist.h first, to test the interface.
103176 2005-01-29  Bruno Haible  <bruno@clisp.org>
103178         * lib/progname.c (program_name): Initialize.
103179         Needed when linking statically on MacOS X.
103181 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
103183         Sync from coreutils.
103184         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
103185         (Depends-on): Add c-strtod.
103186         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
103188 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
103190         Sync from coreutils.
103191         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
103193         Remove files that are specific to coreutils.
103194         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
103196 2005-01-28  Bruno Haible  <bruno@clisp.org>
103198         * modules/javacomp: New file.
103199         * MODULES.html.sh (Java): Add javacomp.
103201 2005-01-28  Bruno Haible  <bruno@clisp.org>
103203         * m4/javacomp.m4: New file, from GNU gettext.
103205 2005-01-28  Bruno Haible  <bruno@clisp.org>
103207         * lib/javacomp.sh.in: New file, from GNU gettext.
103208         * lib/javacomp.h: New file, from GNU gettext.
103209         * lib/javacomp.c: New file, from GNU gettext.
103211 2005-01-26  Simon Josefsson  <jas@extundo.com>
103213         * lib/gai_strerror.c: Use GPL in header.
103215 2005-01-26  Bruno Haible  <bruno@clisp.org>
103217         * modules/javaexec: New file.
103218         * MODULES.html.sh (Java): Add javaexec.
103220 2005-01-26  Bruno Haible  <bruno@clisp.org>
103222         * m4/javaexec.m4: New file, from GNU gettext.
103224 2005-01-26  Bruno Haible  <bruno@clisp.org>
103226         * lib/javaexec.sh.in: New file, from GNU gettext.
103227         * lib/javaexec.h: New file, from GNU gettext.
103228         * lib/javaexec.c: New file, from GNU gettext.
103230 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
103232         * modules/lchown (Depends-on): Remove lchown.h
103234 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
103236         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
103237         must be defined if the header file was not found, in order
103238         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
103240 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
103242         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
103243         initializers for struct pentry_state.
103244         (__argp_error): Check return value of __asprintf
103245         (__argp_failure): Translate error message
103247         * lib/argp-parse.c: Removed braces around the expansion of N_()
103249 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
103251         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
103252         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
103253         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
103254         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
103255         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
103256         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
103257         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
103258         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
103259         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
103260         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
103261         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
103262         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
103263         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
103264         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
103265         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
103266         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
103267         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
103268         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
103269         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
103270         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
103271         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
103272         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
103273         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
103274         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
103275         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
103276         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
103277         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
103278         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
103279         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
103280         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
103281         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
103282         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
103283         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
103284         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
103285         xstrtol.m4, xstrtoumax.m4, yesno.m4:
103286         Use an all-permissive copyright notice, recommended by RMS.
103288 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
103290         * modules/chdir-long (Depends-on): Remove mempcpy.
103292 2005-01-21  Jim Meyering  <jim@meyering.net>
103294         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
103295         same value as for Solaris 9.
103297         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
103298         component length.  This included changing the parameter to be
103299         of type `char *' rather than `char const *'.
103300         * lib/chdir-long.h (chdir_long): Update prototype.
103302         * lib/openat.c (fdopendir, fstatat): New functions.
103303         * lib/openat.h: Include headers required for use of DIR and struct
103304         stat.
103305         [AT_SYMLINK_NOFOLLOW]: Define.
103306         (fdopendir, fstatat): Add prototypes.
103308 2005-01-21  Bruno Haible  <bruno@clisp.org>
103310         * modules/classpath: New file.
103311         * MODULES.html.sh (Java): Add classpath.
103313 2005-01-21  Bruno Haible  <bruno@clisp.org>
103315         * lib/classpath.h: New file, from GNU gettext.
103316         * lib/classpath.c: New file, from GNU gettext.
103318 2005-01-20  Simon Josefsson  <jas@extundo.com>
103320         * modules/version-etc-fsf: New file.
103322 2005-01-20  Simon Josefsson  <jas@extundo.com>
103324         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
103325         * lib/version-etc.c: Remove version_etc_copyright.
103326         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
103327         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
103329 2005-01-20  Simon Josefsson  <jas@extundo.com>
103331         * lib/base64.h (isbase64): Add.
103333         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
103334         using a unsigned prototype, don't inline.
103335         (base64_decode): Use it.
103337 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
103339         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
103340         it.
103342 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
103344         * lib/save-cwd.c (save_cwd): Remove code to support the case
103345         where fchdir is missing or flaky.
103347 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
103349         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
103351 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
103353         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
103354         AC_LIBSOURCES now does this.
103355         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
103356         with new ullong_max module.
103358 2005-01-19  Bruno Haible  <bruno@clisp.org>
103360         * modules/sh-quote: New file.
103361         * MODULES.html.sh (Executing programs): Add sh-quote.
103363 2005-01-19  Bruno Haible  <bruno@clisp.org>
103365         * lib/sh-quote.h: New file, from GNU gettext.
103366         * lib/sh-quote.c: New file, from GNU gettext.
103368 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
103370         Merge from coreutils.
103371         * m4/ullong_max.m4: New file.
103372         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
103373         (gl_MACROS): Assume localeconv exists.
103375 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
103377         Merge changes from coreutils, as described below in several
103378         changelogs dated today.
103380         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
103381         (O_DIRECTORY): Remove; not needed here, since "." must be
103382         a directory.  All uses removed.
103383         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
103384         universal on Suns, and we also need to test for IRIX.
103385         Revamp code to use 'if' rather than '#if'.
103386         Avoid unnecessary comparison of cwd->desc to 0.
103388         * lib/utimens.c (futimens): Robustify the previous patch, by checking
103389         for known valid error numbers rather than observed invalid ones.
103391 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
103393         * modules/ullong_max: New file.
103395         * modules/chdir-long, modules/openat: New files.
103396         * modules/save-cwd (Depends-on): Depend on chdir-long.
103397         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
103399 2005-01-18  Jim Meyering  <jim@meyering.net>
103401         Merge from coreutils.
103402         * m4/chdir-long.m4, m4/openat.m4: New files.
103403         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
103404         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
103405         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
103406         is sane and DOES follow symlinks.  Besides, testing 20 different
103407         systems found no broken chown implementations.
103408         Prompted by a change in rsync's copy of this macro.
103409         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
103411         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
103413         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
103414         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
103415         NULL-means-set-to-current-time semantics.
103416         Remove temporary file immediately, rather than waiting
103417         for configure's at-exit trap code to do it.
103419 2005-01-18  Jim Meyering  <jim@meyering.net>
103421         * lib/version-etc.c (version_etc_copyright): Update copyright date.
103423         * lib/utimens.c (futimens): Account for the fact that futimes
103424         can also fail with errno == ENOSYS or errno == ENOENT.
103425         Patch from Dmitry V. Levin.
103427         Change the name of the robust chdir function from chdir to chdir_long.
103428         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
103429         (restore_cwd): Use chdir_long, not chdir.
103430         * lib/chdir-long.c: Renamed from chdir.c.
103431         * lib/chdir-long.h: Renamed from chdir.h.
103432         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
103433         Hurd.
103435 2005-01-18  Bruno Haible  <bruno@clisp.org>
103437         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
103438         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
103439         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
103440         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
103441         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
103442         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
103443         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
103444         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
103445         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
103446         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
103447         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
103448         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
103449         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
103450         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
103451         Use an all-permissive copyright notice, recommended by RMS.
103453 2005-01-18  Bob Proulx  <bob@proulx.com>
103455         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
103456         simplify offsetof() macro construct to avoid compile failure with
103457         native HP-UX 11.0 ANSI C compiler.
103459 2005-01-17  Bruno Haible  <bruno@clisp.org>
103461         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
103462         redundant because stpncpy.m4 takes care of it.
103464 2005-01-17  Bruno Haible  <bruno@clisp.org>
103466         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
103468 2005-01-17  Bruno Haible  <bruno@clisp.org>
103470         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
103471         used.
103473 2005-01-17  Bruno Haible  <bruno@clisp.org>
103475         * lib/fwriteerror.h (fwriteerror): Change specification to include
103476         fclose.
103477         * lib/fwriteerror.c: Include <stdbool.h>.
103478         (fwriteerror): At the end, close the file stream. Record whether
103479         stdout was already closed.
103481 2005-01-17  Bruno Haible  <bruno@clisp.org>
103483         * lib/execute.c (environ): Declare if needed.
103484         * lib/pipe.c (environ): Likewise.
103485         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
103487 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
103489         * modules/argp: Depend on vsnprintf
103491 2005-01-10  Jim Meyering  <jim@meyering.net>
103493         * modules/closeout (Depends-on): Add atexit.
103495 2005-01-06  Bruno Haible  <bruno@clisp.org>
103497         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
103499 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
103501         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
103502         definitions to be after all include files, to avoid collisions.
103503         Problem reported by Bob Proulx.
103505 2005-01-04  Jim Meyering  <jim@meyering.net>
103507         Changes imported from coreutils.
103508         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
103509         as the mkstemp template, use a temporary directory and an
103510         8.3-friendly template to avoid trouble on systems like DJGPP.
103511         Reported by Juan M. Guerrero via Stepan Kasal.
103512         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
103513         close. Remove the temporary directory right away, rather than waiting
103514         for configure's at-exit trap code to do it.
103515         Suggestion from Stepan Kasal.
103517 2005-01-01  Simon Josefsson  <jas@extundo.com>
103519         * gnulib-tool: Print #include directives when --import'ing.
103521 2004-12-28  Simon Josefsson  <jas@extundo.com>
103523         * tests/test-base64.c: Include required header files.  Remove
103524         unused variables.
103526 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
103528         * modules/error (Depends-on): Remove gettext.
103530 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
103532         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
103533         not needed.  This removes a dependency on the gettext module.
103534         [defined _LIBC]: Do not include <libintl.h>; not needed.
103536 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
103538         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
103539         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
103541 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
103543         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
103544         HAVE_DECL_STRTOLD.
103546 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
103548         * modules/getdate (Depends-on): Remove alloca-opt.
103550 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
103552         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
103554 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
103556         * lib/argp-parse.c: Include <stddef.h>.
103557         (alignof, alignto): New macros.
103558         (parser_init): Don't assume that void * is aligned sufficiently
103559         for struct option.
103561         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
103562         need to extend the stack.
103563         (YYINITDEPTH): New macro, so that the initial stack isn't overly
103564         large.
103566 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
103568         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
103570 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
103572         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
103573         (2004-10-24) change.  Apparently this was a false alarm.
103575         * modules/getdate: Depend on alloca-opt, not alloca.
103577 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
103579         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
103580         Remove now-obsolete comment about AIX.
103581         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
103582         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
103583         (YYMAXDEPTH): New macro.
103585 2004-12-18  Simon Josefsson  <jas@extundo.com>
103587         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
103589 2004-12-18  Bruno Haible  <bruno@clisp.org>
103591         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
103593 2004-12-18  Bruno Haible  <bruno@clisp.org>
103595         * lib/fatal-signal.c (fatal_signals): Make non-const.
103596         (init_fatal_signals): New function.
103597         (uninstall_handlers, install_handlers): Ignore signals that were set to
103598         SIG_IGN.
103599         (at_fatal_signal): Call init_fatal_signals.
103600         (init_fatal_signal_set): Likewise. Ignore signals that were set to
103601         SIG_IGN.
103602         Reported by Paul Eggert.
103604 2004-12-18  Bruno Haible  <bruno@clisp.org>
103606         * doc/alloca.texi: New file.
103607         * doc/alloca-opt.texi: New file.
103609 2004-12-17  Jim Meyering  <jim@meyering.net>
103611         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
103612         Otherwise, install-sh could exit with improper exit status when
103613         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
103615 2004-12-16  Simon Josefsson  <jas@extundo.com>
103617         * tests/test-base64.c: Add license.
103619 2004-12-15  Stepan Kasal  <address@hidden>
103621         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
103623 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
103625         * modules/getcwd (Files): Add m4/d-ino.m4.
103626         Suggested by Mark D. Baushke.
103628 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
103630         * lib/getdate.y (textint): New member "negative".
103631         (time_zone_hhmm): New function.
103632         Expect 14 shift-reduce conflicts, not 13.
103633         (o_colon_minutes): New rule.
103634         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
103635         (yylex): Set the "negative" member of signed numbers.
103637 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
103639         * doc/getdate.texi (Time of day items, Time zone items):
103640         Describe new formats +00:00, UTC+00:00.
103642 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
103644         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
103645         spurious "-l"s.  Problem reported by Stepan Kasal.
103647 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
103649         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
103650         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
103652 2004-12-04  Simon Josefsson  <jas@extundo.com>
103654         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
103655         Vandoorselaere <yoann@prelude-ids.org>.
103657 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
103659         Changes imported from coreutils.
103660         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
103661         exist.
103662         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
103664 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
103666         Changes imported from coreutils.
103667         * lib/hard-locale.c: Assume <locale.h> exists.
103668         Include "strdup.h".
103669         (GLIBC_VERSION): New macro.
103670         (hard_locale): Assume setlocale exists.
103671         Rewrite to avoid #ifdef.
103672         Use strdup rather than malloc + strcpy.
103673         * lib/human.c: Assume <locale.h> exists.
103674         (human_readable): Assume localeconv exists.
103676 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
103678         * modules/hard-locale (Depends-on): Add strdup.
103680 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
103682         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
103683         convert T2, not T.  (Imported from libc.)
103685 2004-11-30  Simon Josefsson  <jas@extundo.com>
103687         * modules/restrict (License): Change to LGPL.
103689 2004-11-30  Simon Josefsson  <jas@extundo.com>
103691         * m4/restrict.m4: Add copyright and copying conditions.
103693 2004-11-30  Simon Josefsson  <jas@extundo.com>
103695         * m4/base64.m4: New file.
103697 2004-11-30  Simon Josefsson  <jas@extundo.com>
103699         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
103700         base64.
103702         * tests/test-base64.c: New file.
103704         * modules/base64: New file.
103706 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
103708         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
103709         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
103711         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
103713 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
103715         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
103716         (__getcwd.c): Don't restore errno; glibc doesn't.
103717         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
103718         first, falling back to our code only if its results look suspicious.
103719         Ensure that the resulting buffer is only as large as necessary.
103721         * lib/readutmp.c: Include readutmp.h first.
103722         Include <errno.h>, since readutmp.h no longer does that.
103723         * lib/readutmp.h: Don't include <errno.h>,
103724         <sys/param.h>, <time.h>; not needed to establish interface.
103725         (errno): Remove decl.
103726         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
103727         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
103728         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
103730 2004-11-28  Simon Josefsson  <jas@extundo.com>
103732         * lib/base64.h, base64.c: New file.
103734 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
103736         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
103738 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
103740         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
103741         (Depends-on): Remove pathmax, same.  Add mempcpy.
103742         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
103743         (Makefile.am): Append getcwd.h to lib_SOURCES.
103744         (Include): Add getcwd.h.
103745         (Maintainer): Change from Jim Meyering to "all, glibc",
103746         since getdate now uses intended-for-glibc code.
103747         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
103748         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
103750 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
103752         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
103753         HP's ANSI C compiler.
103754         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
103755         Declaring int functions causes warnings on some modern systems and
103756         shouldn't be needed to compile on ancient ones.
103757         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
103758         defined.
103760         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
103761         with the following changes.
103762         (__set_errno): Parenthesize properly.
103763         Include <stdbool.h>.
103764         (MIN, MAX, MATCHING_INO): New macros.
103765         (__getcwd): Define with prototype, not K&R form.
103766         Use heuristics to allocate default buffer on stack if possible.
103767         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
103768         behavior, and to avoid the PATH_MAX limit when computing
103769         ../../../../...
103770         Use MATCHING_INO to compare inode number to file.
103771         Check for arithmetic overflow in size calculations.
103772         Fix bug in reallocation of dot array that caused getcwd to fail
103773         on directories nested deeper than 75.
103774         Be more careful about saving errno on error.
103775         Do not use realloc; use only free+malloc, as this is a bit
103776         more flexible and avoids a needless copy operation.
103777         Do not inspect st_dev and st_ino for symbolic links; POSIX
103778         doesn't specify the latter.
103779         Check for closedir errors.
103780         Avoid needless casts.
103781         Use "#ifdef weak_alias" around weak_alias, to be like other
103782         glibc code.
103783         The following changes to getcwd.c have effect only when used in
103784         gnulib; they have no effect inside glibc proper.
103785         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
103786         as alloca isn't used.
103787         (alloca, __alloca): Likewise.
103788         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
103789         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
103790         unconditionally, as gnulib assumes C89 or better.
103791         Do not include <sys/param.h>.
103792         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
103793         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
103794         better.
103795         (NULL) [!defined NULL]: Remove; we assume C89 or better.
103796         Include <dirent.h> in a way that is compatible with modern Autoconf.
103797         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
103798         New macros, if not already defined.
103799         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
103800         Use "_LIBC", not "defined _LIBC", for consistency.
103801         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
103802         a mempcpy module.
103803         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
103804         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
103805         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
103806         credit only to Jim Meyering and adjust the copyright dates.
103807         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
103808         <stdlib.h>, <unistd.h>, "pathmax.h".
103809         Instead, include "xgetcwd.h" (first) and "getcwd.h".
103810         (INITIAL_BUFFER_SIZE): Remove.
103811         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
103813 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
103815         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
103816         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
103817         Use the _ONCE methods, for efficiency.
103818         Check for fcntl.h.  In test program, include <errno.h>
103819         and <fcntl.h> if available.  Remove old K&R cruft from
103820         test program.  Check for common errors in GNU/Linux,
103821         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
103822         don't do AC_LIBOBJ, as that's getcwd.m4's job.
103823         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
103824         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
103825         name accordingly.
103826         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
103827         accommodate new getcwd.c.
103828         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
103829         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
103830         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
103831         that's all we need now.
103833 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
103835         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
103836         argp-parse.c depends on getopt internals, that means we should
103837         always use our getopt, to be on the safe side.
103838         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
103839         order not to spoil the result of an eventual previous invocation
103840         of gl_GETOPT_SUBSTITUTE.
103842 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
103844         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
103845         redefinition warnings. To avoid them, include the defines
103846         in `#if !defined __need_getopt ... #endif'. The only place
103847         where __getopt_argv_const is used is in definitions
103848         of getopt_long and getopt_long_only below, which are as well
103849         protected by `#ifndef __need_getopt'.
103850         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
103851         __need_getopt after including <stdio.h> and <unistd.h> These
103852         headers might have defined it.
103854 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
103856         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
103858 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
103860         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
103861         (futimens): New function, which uses futimes if available.
103862         (futimens, utimens): Support timespec==NULL, with same semantics
103863         as utime and utimens.
103864         * lib/utimens.h (futimens): New decl.
103866 2004-11-23  Jim Meyering  <jim@meyering.net>
103868         * lib/getopt_.h: Remove trailing blanks.
103870 2004-11-23  Jim Meyering  <jim@meyering.net>
103872         * lib/__fpending.c: Add comment.
103874 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
103876         * modules/canonicalize (Depends-on): Add xreadlink.
103877         Problem reported by James Youngman.
103879 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
103881         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
103882         New macros.
103883         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
103884         optopt): Use them instead of invoking ## directly; otherwise, the
103885         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
103887 2004-11-19  Bruno Haible  <bruno@clisp.org>
103889         * lib/strtok_r.c: Move comments from here...
103890         * lib/strtok_r.h: ... to here.
103892 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
103894         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
103895         implementations that mishandle size_t overflow.
103897 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
103899         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
103900         might fail.  Problem reported by Yoann Vandoorselaere.
103901         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
103902         implementations that mishandle size_t overflow.
103904 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
103906         * modules/canon-host (Depends-on): Add strdup.
103908 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
103910         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
103912 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
103914         * lib/canon-host.c: Include "strdup.h".
103915         (canon_host): Use getaddrinfo if available, so that IPv6 works.
103916         Use strdup instead of malloc/strcpy to duplicate strings.
103918         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
103919         (human_space_before_unit): New constant.
103920         * lib/human.c (human_readable): Support it.
103922         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
103923         (xgetcwd): Set errno correctly when failing.
103924         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
103925         the failure is actually due to a PATH_MAX problem.
103927         Further getopt changes to make it more likely that glibc will
103928         buy the changes back.
103929         * lib/getopt.c (POSIXLY_CORRECT): New constant.
103930         (getopt): Use it, so to preserve glibc semantic
103931         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
103932         when compiling for libc.
103933         * lib/getopt_.h (__getopt_argv_const): Bring it back.
103934         (getopt_long, getopt_long_only): Use it.
103936         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
103937         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
103938         (getopt): Argv is now char * const *, as per standard.
103939         (_getopt_internal_r, _getopt_internal): Argv is now char **,
103940         not char *__getopt_argv_const *.
103941         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
103942         _getopt_long_only_r): Likewise.
103943         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
103944         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
103945         _getopt_long_r, _getopt_long_only_r): Likewise.
103946         * lib/getopt_.h (__getopt_argv_const): Remove.
103947         (getopt): Argv is now char * const *, as per standard.
103949         * lib/getdate.y (tORDINAL): New token.
103950         (day, relunit): Allow it for relative times.
103951         (relative_time_table): Use tORDINAL for ordinals.
103953 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
103955         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
103956         Document that "second" isn't allowed as an ordinal number.
103958 2004-11-16  Jim Meyering  <jim@meyering.net>
103960         * modules/closeout (Depends-on): Add fpending.
103962 2004-11-15  Jim Meyering  <jim@meyering.net>
103964         * lib/closeout.c: Include "__fpending.h" once again.
103965         Include <stdbool.h>.
103966         (close_stdout): Don't fail just because stdout was closed initially,
103967         since some programs don't write to stdout in the normal course of
103968         operation (other than --version and --help), and we don't want this
103969         function to make e.g. `touch file >&-' fail.
103970         But do fail if it was closed and someone has tried to write to it.
103971         E.g., `printf foo >&-' must fail.
103973 2004-11-13  Jim Meyering  <jim@meyering.net>
103975         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
103977 2004-11-12  Simon Josefsson  <jas@extundo.com>
103979         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
103980         small doc fix is still pending.
103982 2004-11-11  Simon Josefsson  <jas@extundo.com>
103984         * modules/strtok_r: New file.
103986         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
103987         strtok_r.
103989 2004-11-11  Simon Josefsson  <jas@extundo.com>
103991         * m4/strtok_r.m4: New file.
103993         * m4/getopt.m4: Replace opterr.
103995 2004-11-11  Simon Josefsson  <jas@extundo.com>
103997         * lib/strtok_r.h, strtok_r.c: New file.
103999 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
104001         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
104002         of replacing opterr, getopt, etc.  This should handle the
104003         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
104005 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
104007         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
104008         we can stop lying to compilers about the constness of argv when we
104009         are compiled outside glibc.
104010         (getopt, getopt_long, getopt_long_only): Use it.
104011         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
104012         _getopt_internal, getopt): Likewise.
104013         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
104014         _getopt_long_only_r): Likewise.
104015         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
104016         _getopt_long_r, _getopt_long_only_r): Likewise.
104018         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
104019         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
104020         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
104021         the other external symbols.
104022         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
104023         declaration, since the above renaming now works around collisions.
104025 2004-11-11  Jim Meyering  <jim@meyering.net>
104027         * lib/linebreak.c: Remove trailing blanks.
104028         * lib/alloca_.h: Likewise.
104029         * lib/acosl.c: Likewise.
104030         * lib/euidaccess.c: Likewise.
104031         * lib/allocsa.h: Likewise.
104033 2004-11-10  Simon Josefsson  <jas@extundo.com>
104035         * m4/getaddrinfo.m4: New file.
104037 2004-11-10  Simon Josefsson  <jas@extundo.com>
104039         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
104041 2004-11-10  Simon Josefsson  <jas@extundo.com>
104043         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
104044         getaddrinfo.
104046         * modules/getaddrinfo: New file.
104048 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
104050         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
104052 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
104054         * lib/mktime.c (SHR): New macro, which is a portable
104055         substitute for >> that should work even on Crays.
104056         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
104057         Problem reported by Mark D. Baushke in
104058         <http://lists.gnu.org/r/bug-gnulib/2004-11/msg00071.html>.
104059         * lib/getdate.y (SHR): Likewise.
104060         (tm_diff): Use it.
104061         * lib/strftime.c (SHR): Likewise.
104062         (tm_diff): Use it.
104063         * lib/quotearg.c (struct quoting_options): Use unsigned int for
104064         quote_these_too, so that right shifts are well defined.  All uses
104065         changed.
104067 2004-11-10  Jim Meyering  <jim@meyering.net>
104069         Ensure that no close failure goes unreported.
104070         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
104071         return early when it seems there's nothing to flush.
104072         Don't include __fpending.h.
104074 2004-11-10  Jim Meyering  <jim@meyering.net>
104076         * modules/closeout (Depends-on): Remove fpending.
104078 2004-11-10  Jim Meyering  <jim@meyering.net>
104080         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
104082 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
104084         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
104085         gl_FUNC_STRFTIME.
104086         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
104087         and AC_REQUIRE when possible, to avoid duplicate checks.
104088         Check for <wchar.h>.
104090 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
104092         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
104094 2004-11-09  Bruno Haible  <bruno@clisp.org>
104096         * m4/sockpfaf.m4: New file.
104098 2004-11-05  Bruno Haible  <bruno@clisp.org>
104100         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
104101         Reported by Mark D. Baushke <mdb@cvshome.org>.
104103 2004-11-04  Bruno Haible  <bruno@clisp.org>
104105         2004-09-11  Bruno Haible  <bruno@clisp.org>
104106                 * allocsa.valgrind: New file.
104107         2004-02-06  Bruno Haible  <bruno@clisp.org>
104108                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
104109                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
104110                 Reported by Christopher Seip <chris.seip@hp.com>.
104112 2004-11-04  Bruno Haible  <bruno@clisp.org>
104114         * modules/allocsa (Files): Add lib/allocsa.valgrind.
104115         (Makefile.am): Distribute it.
104117 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
104119         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
104120         with errno == ERANGE if the buffer is too small.
104121         Problem reported by Mark D. Baushke.
104123 2004-11-03  Albert Chin  <china@thewrittenword.com>
104124             Paul Eggert  <eggert@cs.ucla.edu>
104126         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
104127         equivalent, substitute $ac_type for equivalent type rather than
104128         blindly using uint32_t *always* which won't work if uint32_t is not
104129         available.  Define _UINT32_T to work around typedef of uint32_t if
104130         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
104131         2.5.1.
104133 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
104135         * m4/jm-macros.m4: Sync from coreutils.
104136         (gl_MACROS): Check for mbrlen, for pathchk.
104137         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
104139 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
104141         * lib/xreadlink.c (MAXSIZE): New macro.
104142         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
104143         size does not exceed MAXSIZE.  Avoid cast.
104144         As suggested by Mark D. Baushke in
104145         <http://lists.gnu.org/r/bug-gnulib/2004-11/msg00009.html>,
104146         if readlink fails with buffer size just under MAXSIZE, try again
104147         with MAXSIZE.
104149 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
104151         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
104153 2004-11-02  Derek R. Price  <derek@ximbiot.com>
104154         and  Paul Eggert  <eggert@cs.ucla.edu>
104156         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
104157         (get_date): Overparenthesize to avoid GCC warning.
104159 2004-11-02  Bruno Haible  <bruno@clisp.org>
104161         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
104162         returns void.
104164 2004-11-02  Bruno Haible  <bruno@clisp.org>
104166         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
104167         function returns void.
104169 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
104171         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
104172         fflush_unlocked, flockfile, funlockfile, funlockfile,
104173         fputs_unlocked, putc_unlocked.
104175 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
104177         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
104178         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
104179         already declared.
104181 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
104183         * modules/getdate (Files): Add doc/getdate.texi.
104184         (Depends-on): Add setenv, xalloc.
104186 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
104188         * lib/getdate.y: Add support for TZ="foo" within a date string.
104189         Fix some bugs near time_t boundaries.  Reject dates with
104190         out-of-range components, e.g., "Sept 31".
104191         Include <stdlib.h>, "setenv.h", "xalloc.h".
104192         (ISDIGIT_LOCALE): Remove; unused.
104193         Note that the TZ and time functions used here are not reentrant.
104194         (mktime_ok, get_tz): New functions.
104195         (TZBUFSIZE): New constant.
104196         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
104197         This requires that we sometimes generate our own TZ="XXX..." setting.
104199 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
104201         * doc/getdate.texi: New file, from coreutils with modifications for
104202         the new TZ parsing.
104204 2004-10-27  Derek R. Price  <derek@ximbiot.com>
104206         * lib/mktime.c (not_equal_tm): Remove redundant check.
104208 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
104210         * modules/regex (lib_SOURCES): Add regex.c.
104211         Reported by James Youngman in
104212         <http://lists.gnu.org/r/bug-gnulib/2004-10/msg00199.html>.
104214 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
104216         * lib/getdate.y: Use Bison 1.875 features, and some minor
104217         code cleanups.  This change does not affect semantics.
104218         Don't include <stdlib.h>; no longer needed.
104219         Don't include unlocked-io.h; only the "#if TEST" code uses
104220         stdio, and performance isn't crucial there.
104221         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
104222         Bison 1.875 features as described below.
104223         All uses of "PC." replaced by "pc->".
104224         (YYSTYPE): Add a forward declaration.
104225         (yylex, yyerror): Use full prototypes in forward decls.
104226         Use "%pure-parser" rather than obsolescent "%pure_parser".
104227         Use %parse-param and %lex-param instead of obsolescent
104228         YYPARSE_PARAM and YYLEX_PARAM.
104229         (meridian_table, month_and_day_table, time_units_table,
104230         relative_time_table, time_zone_table, military_table,
104231         lookup_zone, lookup_word, get_date):
104232         Use NULL instead of 0 where appropriate.
104233         (to_hour): Avoid abort (), to avoid a dependency on
104234         stdlib.h.
104235         (yyerror, yylex): Now accepts parser_control * arg.
104236         (main) [TEST]: Use '\0' rather than 0 for char.
104238 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
104240         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
104242 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
104244         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
104245         It's now the caller's responsibility to handle the case where
104246         !HAVE_GETPAGESIZE && !defined getpagesize.
104248         * lib/mktime.c (leapyear): Arg is long int, not int.
104250 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
104252         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
104254 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
104256         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
104257         missing.  Problem reported by James Youngman.
104259 2004-10-16  Simon Josefsson  <jas@extundo.com>
104261         * gnulib-tool: Fix comments.  Fix parse problem.
104262         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
104264 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
104266         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
104267         implementation of getopt_long.  Problem reported by Alexander Taler in:
104268         http://lists.gnu.org/r/bug-gnulib/2004-10/msg00103.html
104270 2004-10-15  Bruno Haible  <bruno@clisp.org>
104272         * gnulib-tool: Untabify. Initialize supplied_libname.
104273         (func_usage): More homogenous output.
104274         (func_modules_transitive_closure, func_modules_to_filelist,
104275         func_emit_lib_Makefile_am): New functions.
104276         (func_import): New function, extracted from big case statement. Use
104277         func_get_license, func_modules_transitive_closure,
104278         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
104279         opt_lgpl. Don't use test -a, as it's not portable.
104280         (func_create_testdir): Use func_modules_transitive_closure,
104281         func_modules_to_filelist, func_emit_lib_Makefile_am.
104283 2004-10-15  Bruno Haible  <bruno@clisp.org>
104285         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
104287 2004-10-15  Bruno Haible  <bruno@clisp.org>
104289         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
104290         the portions belonging to each module.
104291         Suggested by Derek Robert Price <derek@ximbiot.com>.
104293 2004-10-12  Simon Josefsson  <jas@extundo.com>
104295         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
104296         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
104297         to real functions.
104299 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
104301         * modules/vsnprintf: New file.
104303 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
104305         * m4/vsnprintf.m4: New file.
104307 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
104309         * lib/vsnprintf.h: New file.
104310         * lib/vsnprintf.c: New file.
104312 2004-10-11  Bruno Haible  <bruno@clisp.org>
104314         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
104315         vsnprintf.
104317 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
104319         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
104321 2004-10-07  Bruno Haible  <bruno@clisp.org>
104323         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
104324         fits into the provided buffer.
104326 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
104328         * lib/diacrit.c, diacrit.h: Add GPL notice.
104330         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
104331         notice.
104332         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
104333         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
104334         This avoids a potential constant-folding bug.
104336 2004-10-05  Bruno Haible  <bruno@clisp.org>
104338         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
104339         for the declaration of strsep.
104341 2004-10-05  Bruno Haible  <bruno@clisp.org>
104343         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
104345 2004-10-04  Simon Josefsson  <jas@extundo.com>
104347         * modules/memmem: New file.
104348         * tests/test-memmem.c: New file.
104349         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
104351 2004-10-04  Simon Josefsson  <jas@extundo.com>
104353         * m4/memmem.m4: New file.
104355 2004-10-04  Simon Josefsson  <jas@extundo.com>
104357         * lib/memmem.h: New file.
104358         * lib/memmem.c: New file, taken from glibc.
104360 2004-10-04  Simon Josefsson  <jas@extundo.com>
104362         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
104363         '#ifdef USE_UNLOCKED_IO'.
104365 2004-10-04  Simon Josefsson  <jas@extundo.com>
104367         * config/srclist.txt: Add memmem from glibc.
104369 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
104371         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
104373         * modules/argmatch, modules/argp, modules/closeout, modules/error,
104374         modules/exclude, modules/getdate, modules/getline,
104375         modules/getndelim2, modules/getpass, modules/getpass-gnu,
104376         modules/getusershell, modules/linebuffer, modules/md5,
104377         modules/mountlist, modules/posixtm, modules/readtokens,
104378         modules/readutmp, modules/regex, modules/sha1,
104379         modules/version-etc, modules/yesno:
104380         Remove dependency on unlocked-io.
104382 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
104384         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
104386         * m4/unlocked-io.m4: Add copyright notice.
104387         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
104389 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
104391         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
104392         * lib/xmalloc.c (xmemdup): Likewise.
104393         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
104394         XFREE): Remove these long-obsolescent macros.
104395         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
104396         * lib/xstrdup.c: Remove.
104398         * lib/regex.c (re_comp): Cast gettext return value to char *,
104399         Problem reported by Martin Neitzel via Mark D. Baushke.
104401 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
104403         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
104404         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
104405         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
104406         regex.c, sha1.c, version-etc.c, yesno.c:
104407         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
104408         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
104409         the includer's responsibility.
104411         Sync from coreutils.
104413         * lib/modechange.c (mode_compile): Don't decrement a pointer that
104414         points to the start of a string, as the C Standard says the
104415         resulting behavior is undefined.
104417         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
104418         simple -> simple_backups, numbered_existing ->
104419         numbered_existing_backups, numbered -> numbered_backups
104420         to avoid shadowing problems.  All uses changed.
104421         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
104422         * lib/backupfile.c (check_extension, numbered_backup):
104423         Rename locals to avoid shadowing 'basename'.
104424         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
104425         once.
104427         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
104428         * lib/.cvsignore: Add getopt.h.
104430 2004-10-04  Bruno Haible  <bruno@clisp.org>
104432         * modules/README: New file.
104433         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
104434         not a module.
104436 2004-10-02  Jim Meyering  <jim@meyering.net>
104438         * lib/dirfd.h, getpagesize.h: Add copyright notice.
104440 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
104442         * modules/strsep: New file.
104444 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
104446         * m4/strsep.m4: New file.
104448 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
104450         * lib/strsep.h: New file.
104451         * lib/strsep.c: New file.
104453 2004-10-01  Simon Josefsson  <jas@extundo.com>
104455         * lib/snprintf.c (snprintf): Handle size==0.
104457 2004-10-01  Simon Josefsson  <jas@extundo.com>
104458             Bruno Haible  <bruno@clisp.org>
104460         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
104461         (snprintf): Declare 'args'.
104463 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
104465         * lib/snprintf.c: Remove comments as to why each header is needed.
104467 2004-10-01  Bruno Haible  <bruno@clisp.org>
104469         * MODULES.html.sh: Add strsep.
104471 2004-09-30  Simon Josefsson  <jas@extundo.com>
104473         * modules/snprintf: New file.
104475 2004-09-30  Simon Josefsson  <jas@extundo.com>
104477         * m4/snprintf.m4: New file.
104479 2004-09-30  Simon Josefsson  <jas@extundo.com>
104481         * lib/snprintf.h, lib/snprintf.c: New files.
104483 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
104485         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
104486         (hol_entry_help): Never translate an empty string.
104487         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
104488         * lib/argp.h (OPTION_NO_TRANS): New option.
104490 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
104492         * modules/argp (Maintainer): Replace Simon Josefsson
104493         by Sergey Poznyakoff.
104495 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
104497         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
104498         changes merged back into glibc.
104500 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
104502         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
104504 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
104506         * lib/xvasprintf.c: Include xalloc.h.
104507         (xvasprintf): Use xalloc_die, not xmalloc_die.
104509 2004-09-29  Bruno Haible  <bruno@clisp.org>
104511         * modules/alloca-opt: New file, derived from modules/alloca.
104512         * modules/allocsa: Depend on alloca-opt instead of alloca.
104513         * modules/setenv: Likewise.
104514         * modules/vasnprintf: Likewise.
104515         * MODULES.html.sh: Add alloca-opt.
104517 2004-09-28  Simon Josefsson  <jas@extundo.com>
104519         * gnulib-tool: New parameter --lgpl, to asseert that modules are
104520         LGPL, and to replace license template from GPL to LGPL.
104522 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
104524         * modules/dummy: Change license to LGPL.
104526 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
104528         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
104530 2004-09-24  Simon Josefsson  <jas@extundo.com>
104532         * modules/minmax (License): Change from GPL to LGPL.
104534 2004-09-23  Simon Josefsson  <jas@extundo.com>
104536         * gnulib-tool (--import): Typo.
104538 2004-09-23  Simon Josefsson  <jas@extundo.com>
104540         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
104542 2004-09-22  Bruno Haible  <bruno@clisp.org>
104544         * modules/*: Add 'License' field.
104545         * gnulib-tool: Accept --extract-license option.
104546         (func_get_license): New function.
104548 2004-09-21  Bruno Haible  <bruno@clisp.org>
104550         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
104551         Reported by Simon Josefsson.
104553 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
104555         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
104556         gl_AC_TYPE_LONG_LONG.
104558 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
104560         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
104562 2004-09-18  Simon Josefsson  <jas@extundo.com>
104563         and  Paul Eggert  <eggert@cs.ucla.edu>
104565         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
104566         calls with autoreconf.  Define GL_LIB.
104568 2004-09-14  Karl Berry  <karl@gnu.org>
104570         * config/srclist.txt: unsync setenv.c, sigh.
104572 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
104574         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
104575         Problem reported by Bruno Haible in:
104576         http://lists.gnu.org/r/bug-tar/2004-09/msg00023.html
104578 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
104580         * config/srclist.txt: Comment out argp-pvh.c.
104582 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
104584         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
104585         in case some system header has #define'd it.  Problem reported by
104586         Soeren D. Schulze in
104587         <http://lists.gnu.org/r/bug-gnulib/2004-09/msg00017.html>.
104589 2004-09-09  Karl Berry  <karl@gnu.org>
104591         * regex.[ch]: delete from the root.  These were supposed to be
104592                 synced with emacs cvs, but this has not happened for about
104593                 a year, and anyway nothing else uses emacs regex.[ch].
104594                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
104595                 lib/regex[.ch] is untouched.
104597 2004-09-09  Bruno Haible  <bruno@clisp.org>
104599         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
104601 2004-09-09  Bruno Haible  <bruno@clisp.org>
104603         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
104604         modifications.
104605         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
104607 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
104609         * modules/xvasprintf: New file.
104610         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
104612 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
104614         * lib/xvasprintf.h: New file.
104615         * lib/xvasprintf.c: New file.
104616         * lib/xasprintf.c: New file.
104618 2004-09-08  Bruno Haible  <bruno@clisp.org>
104620         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
104622 2004-09-08  Bruno Haible  <bruno@clisp.org>
104624         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
104625         length is > INT_MAX.
104626         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
104627         more.
104629 2004-09-08  Bruno Haible  <bruno@clisp.org>
104631         * lib/stdint_.h: New file, taken from GNU clisp.
104633 2004-09-08  Bruno Haible  <bruno@clisp.org>
104634             Oskar Liljeblad  <oskar@osk.mine.nu>
104636         * modules/stdint: New file.
104637         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
104639 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
104641         Import from coreutils.
104642         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
104643         strings on unbounded length.  alloca's performance benefits aren't
104644         that important here.
104645         (V_STRDUP): Remove.
104646         (parse_with_separator): New function, with most of the internals
104647         of the old parse_user_spec.  Allow user to omit both user and group,
104648         for compatibility with FreeBSD.
104649         Clone only the user name, not the entire spec.
104650         Do not set *uid, *gid unless entirely successful.
104651         Avoid memory leak in some failing cases.
104652         Fix regression for USER.GROUP reported by Dmitry V. Levin in
104653         <http://lists.gnu.org/r/bug-coreutils/2004-08/msg00102.html>
104654         (parse_user_spec): Rewrite to use parse_with_separator.
104656 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
104658         * modules/userspec: Don't depend on alloca.
104660 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
104662         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
104664 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
104666         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
104667         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
104668         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
104670 2004-08-16  Simon Josefsson  <jas@extundo.com>
104672         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
104673         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
104674         Add --dry-run for --import.
104675         Let user provided command line parameters override configure.ac
104676         settings.
104678 2004-08-12  Simon Josefsson  <jas@extundo.com>
104680         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
104681         as discussed with Paul Eggert in threads rooted at
104682         <http://lists.gnu.org/r/bug-gnulib/2004-06/msg00039.html>
104683         and
104684         <http://lists.gnu.org/r/bug-gnulib/2004-07/msg00001.html>.
104685         Before, the test was empty, and relied on ELIDE_CODE in source
104686         code.)
104687         (gl_PREREQ_GETOPT): New macro.
104688         (gl_GETOPT): Use them.
104690 2004-08-12  Simon Josefsson  <jas@extundo.com>
104692         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
104693         * lib/getopt_.h: Renamed from getopt.h.
104695 2004-08-12  Simon Josefsson  <jas@extundo.com>
104697         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
104698         Change default library name from libfoo to libgnu.
104699         Now, if you have a configure.ac that says:
104700                 gl_SOURCE_BASE(gl)
104701                 gl_M4_BASE(gl/m4)
104702                 gl_MODULES(error getopt etcetera)
104703                 gl_INIT
104704         you can import all you need by running:
104705                 ../gnulib/gnulib-tool --import
104707         * modules/getopt (Files): Rename getopt.h to getopt_.h.
104708         (Makefile.am): Rewrite, use logic from argz.
104709         (Include): Use <getopt.h> instead of "getopt.h".
104711 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
104713         * modules/argp (Files): Add m4/unlocked-io.m4.
104714         (Depends-on): Add extensions.
104716 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
104718         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
104719         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
104720         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
104721         Check for program_invocation_name, program_invocation_short_name,
104722         flockfile, funlockfile, features.h, _getopt_long_only_r.
104724 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
104726         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
104727         its complicated substitute.
104728         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
104729         and program_invocation_name.
104730         (__argp_basename) [!_LIBC]: Remove; the only use was
104731         replaced by its body.
104732         (__argp_short_program_name): Change condition from
104733         !defined __argp_short_program_name to
104734         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
104735         to match argp-namefrob.h.
104736         (__argp_failure): Don't assume strerror_r returns char *.
104737         * lib/argp-parse.c (N_): Define unconditionally.
104738         (argp_default_options): Fill out initializers with 0 to avoid
104739         gcc warnings.
104741 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
104743         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
104744         getopt1.c.
104746 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
104748         Merge from coreutils.
104750         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
104752         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
104753         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
104755 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
104757         Merge from coreutils.
104759         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
104760         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
104761         for Reliant Unix 5.43.
104763         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
104764         (union fooround): Use uintmax_t, not long int.
104765         The rest is a merge from libc:
104766         [defined _LIBC]: Include <shlib-compat.h>.
104767         (_obstack) [defined _LIBC]: Remove after 2.3.4.
104769         * lib/settime.c (settime): Recode to avoid warning with
104770         Sun Forte C 6U2.
104772         * lib/strverscmp.c: Convert to UTF-8.
104774 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
104776         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
104777         m4/uintmax_t.m4.
104779 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
104781         * modules/xalloc-die: New file.
104782         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
104784         * modules/md5 (Files): Add m4/uint32_t.m4.
104785         * modules/sha1: Renamed from modules/sha.
104786         (Files):
104787         Rename lib/sha.h to lib/sha1.h.
104788         Rename lib/sha.c to lib/sha1.c.
104789         Rename m4/sha.m4 to m4/sha1.m4.
104790         (lib_SOURCES): Likewise.
104791         (configure.ac): Rename gl_SHA to gl_SHA1.
104792         (Include): sha.h -> sha1.h.
104794 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
104796         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
104797         * m4/sha1.m4: Renamed from sha.m4.
104798         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
104800 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
104802         * lib/obstack.h (obstack_empty_p):
104803         Don't assume that chunk->contents is suitably aligned.
104804         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
104805         Likewise. Problem reported by Benno in
104806         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
104808         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
104809         readable.  This could be improved further but it'd take some work.
104811 2004-08-08  Simon Josefsson  <jas@extundo.com>
104813         * modules/xgethostname (Depends-on): Remove exit and error (not
104814         used).
104816         * modules/getpass-gnu: Add getpass.h.
104817         (Depends-on): Add stdbool.
104818         * modules/getpass: Add getpass.h.
104820 2004-08-08  Simon Josefsson  <jas@extundo.com>
104822         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
104823         Check getpass declaration.
104825 2004-08-08  Simon Josefsson  <jas@extundo.com>
104827         * lib/xgethostname.c: Don't include error.h (not used).
104829         * lib/getpass.h: Add.
104830         * lib/getpass.c: Include getpass.h first.
104832 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
104834         * lib/xalloc-die.c: New file.
104835         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
104836         All uses removed.
104837         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
104838         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
104839         xalloc-die.c.
104840         (_, N_, xalloc_die): Move to xalloc-die.c.
104841         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
104842         so that we needn't mess with xalloc_msg_memory_exhausted.
104844         * lib/sha1.h: Renamed from sha.h.
104845         (SHA1_H): Renamed from _SHA_H.
104846         (sha1_ctx): Renamed from sha_ctx.
104847         (sha1_init_ctx): Renamed from sha_init_ctx.
104848         (sha1_process_block): Renamed from sha_process_block.
104849         (sha1_process_bytes): Renamed from sha_process_bytes.
104850         (sha1_finish_ctx): Renamed from sha_finish_ctx.
104851         (sha1_read_ctx): Renamed from sha_read_ctx.
104852         (sha1_stream): Renamed from sha_stream.
104853         (sha1_buffer): Renamed from sha_buffer.
104854         * lib/sha1.c: Likewise; renamed from sha.c.
104855         Do not include <sys/types.h>.
104856         Include <stddef.h> rather than <stdlib.h>.
104858 2004-08-08  Bruno Haible  <bruno@clisp.org>
104860         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
104861         FILESYSTEM_PREFIX_LEN.
104862         * lib/progreloc.c: Likewise.
104863         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
104865 2004-08-06  Simon Josefsson  <jas@extundo.com>
104867         * modules/progname (Depends-on): Don't depend on stdbool.
104869 2004-08-06  Simon Josefsson  <jas@extundo.com>
104871         * modules/getsubopt: New file.
104872         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
104873         getsubopt.
104875 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
104877         More merge from coreutils.
104879         * m4/utimens.m4, m4/utimecmp.m4: New files.
104880         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
104881         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
104882         prereq.m4, sha.m4: Import changes from coreutils.
104884 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
104886         More merge from coreutils.
104887         * modules/raise, modules/readtokens0, modules/utimens:
104888         * modules/utimecmp, module/xnanosleep: New files.
104889         * modules/strftime: Add lib/strftime.h.
104890         Change include from <time.h> to "strftime.h".
104891         * modules/yesno: Add lib/yesno.h.
104892         * modules/backupfile: Remove lib/addext.c.
104893         * modules/euidaccess: Add stat-macros.h.
104894         * modules/canonicalize, modules/euidaccess,
104895         modules/filemode, modules/lchown, modules/makepath,
104896         modules/rmdir, modules/stat: Likewise.
104898 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
104900         Merge from tar.
104901         * lib/argp-help.c (make_hol, hol_append): Don't assume that
104902         SIZE_MAX is a valid preprocessor constant.
104903         (__argp_basename): Change from "#ifndef _LIBC"
104904         to "#ifndef __argp_short_program_name", so that
104905         we don't compile these functions for tar.
104907         More merges from coreutils.
104908         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
104909         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
104910         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
104911         * lib/addext.c: Remove; no longer needed.
104912         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
104913         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
104914         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
104915         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
104916         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
104917         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
104918         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
104919         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
104920         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
104921         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
104922         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
104923         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
104924         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
104925         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
104926         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
104927         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
104928         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
104929         Import changes from coreutils.
104931 2004-08-05  Simon Josefsson  <jas@extundo.com>
104933         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
104935 2004-08-05  Simon Josefsson  <jas@extundo.com>
104937         * m4/getsubopt.m4: New file.
104939 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
104941         Merge from coreutils.
104943         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
104944         * m4/getcwd-path-max.m4: New files.
104946         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
104947         FILESYSTEM_PREFIX_LEN ->
104948         FILE_SYSTEM_PREFIX_LEN.
104949         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
104950         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
104951         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
104952         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
104954         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
104955         prerequisite modules now handle the DOS stuff.
104956         Don't check for unistd.h.
104958 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
104960         Merge from coreutils.
104962         * lib/.gdb-history: Remove; this doesn't belong here.
104964         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
104965         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
104966         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
104967         * lib/getcwd.c: New files.
104969         * lib/dirname.h: Include <stdbool.h>.
104970         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
104971         for consistency with POSIX terminology.  All uses changed.
104972         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
104973         (strip_trailing_slashes): Use bool for booleans.
104974         * lib/stripslash.c (strip_trailing_slashes): Likewise.
104976         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
104977         sometimes returns a positive errno value even when it succeeds.
104978         (print_errno_message) [!LIBC]: Fall back on strerror if
104979         __strerror_r fails.
104981         * lib/path-concat.c (mempcpy): Don't define if a system header defines
104982         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
104983         (longest_relative_suffix): New function.
104984         (path_concat): Use it.  Assume first argument is not NULL.
104985         Port to DOS.  Omit redundant separators.
104986         Report an error instead of returning NULL.
104987         Use mempcpy instead of memcpy.
104988         (xpath_concat): Remove: not declared or used.
104990         * lib/same.h: Include <stdbool.h>
104991         (same_name): Return bool, not int.
104992         * lib/same.c (same_name): Likewise.
104993         (errno): Don't declare; we assume C89 or better now.
104995         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
104996         if not already defined.
104998         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
104999         * lib/dup-safer.c (errno): Likewise.
105001 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
105003         Merge from coreutils.
105004         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
105005         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
105006         * modules/path-concat: Don't depend on strdup.
105008 2004-08-03  Simon Josefsson  <jas@extundo.com>
105010         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
105011         * lib/progname.h: Don't include stdbool.h.
105013 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
105015         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
105016         * MODULES.html.sh (func_all_modules): Remove fatal.
105018 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
105020         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
105022 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
105024         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
105025         working.
105027 2004-08-02  Simon Josefsson  <jas@extundo.com>
105029         * lib/getsubopt.h: New file, with comments from Bruno Haible.
105030         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
105031         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
105033 2004-08-01  Simon Josefsson  <jas@extundo.com>
105035         * lib/xgetdomainname.c: Include stdlib.h, for free().
105037 2004-07-19  Bruno Haible  <bruno@clisp.org>
105039         * MODULES.html.sh (func_all_modules): Add dummy.
105041 2004-07-16  Simon Josefsson  <jas@extundo.com>
105043         * modules/dummy: New file.
105045 2004-07-16  Simon Josefsson  <jas@extundo.com>
105047         * lib/dummy.c: New file.
105049 2004-07-16  Bruno Haible  <bruno@clisp.org>
105051         * lib/backupfile.h: Add extern "C" for C++.
105052         * lib/closeout.h: Likewise.
105053         * lib/copy-file.h: Likewise.
105054         * lib/findprog.h: Likewise.
105055         * lib/full-write.h: Likewise.
105056         * lib/pathname.h: Likewise.
105057         * lib/progname.h: Likewise.
105058         * lib/stpcpy.h: Likewise.
105059         * lib/stpncpy.h: Likewise.
105060         * lib/strcase.h: Likewise.
105061         * lib/strstr.h: Likewise.
105062         * lib/xalloc.h: Likewise.
105064         * lib/mbswidth.h: Add extern "C" for C++.
105065         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
105067 2004-07-13  Robert Millan  <robertmh@gnu.org>
105069         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
105071 2004-07-09  Simon Josefsson  <jas@extundo.com>
105073         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
105074         failed without this.)
105076 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
105078         * modules/chown (Files): Add lib/fchown-stub.c, since
105079         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
105081 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
105083         * lib/fchown-stub.c: New file.
105085 2004-06-24  Jim Meyering  <jim@meyering.net>
105087         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
105089 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
105091         * modules/argz: Omit "#include".
105093         * MODULES.html.sh (func_all_modules): Add calloc, to match
105094         2004-06-01 addition of calloc module.
105096 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
105098         * m4/argz.m4: New file, which is autoupdated from libtool.
105100 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
105102         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
105103         libtool.
105105 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
105107         * config/srclist-update: Don't insist on "USA." before the
105108         close-comment, as libtool omits the period and puts the */ on a
105109         separate line.
105110         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
105111         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
105113 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
105115         * modules/argz: New file.
105116         * MODULES.html.sh (func_all_modules): Add argz.
105118 2004-06-12  Jim Meyering  <jim@meyering.net>
105119         and  Paul Eggert  <eggert@cs.ucla.edu>
105121         * modules/hash (Files): Add lib/xalloc.h.
105122         * modules/pipe (Depends-on): Add wait-process.
105123         * modules/stat (Depends-on): Add xalloc.
105124         * modules/userspec (Files): Add lib/userspec.h.
105125         * modules/xstrto
105127         Upgrade from gettext-0.13.
105128         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
105129         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
105130         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
105132 2004-06-10  Jim Meyering  <jim@meyering.net>
105134         * lib/calloc.c: New file.
105136 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
105138         * lib/getdate.y (yylex): Allow space between sign and number.
105139         Problem reported by Dan Jacobson.
105141 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
105143         Merge from coreutils CVS.
105145         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
105146         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
105147         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
105148         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
105149         xstrtol.m4: Fix copyright date and/or serial number.
105151         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
105152         See if we need an fchown replacement.
105153         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
105154         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
105155         and use the replacement function if we detect either defect.
105157         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
105158         gl_UTIMECMP.
105160 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
105161         and  Jim Meyering  <jim@meyering.net>
105163         Merge from coreutils CVS.
105165         * lib/stat-macros.h: New file, with contents from file-type.h
105166         and coreutils' system.h.
105167         * lib/file-type.c: Include "stat-macros.h".
105168         * lib/file-type.h (file_type): Move all macro definitions to new file,
105169         stat-macros.h.
105171         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
105172         Wrap old code with this conditional.
105173         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
105174         function that does not dereference symlinks.
105175         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
105177         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
105178         dependency problems.
105179         (xreadlink): Accept new arg SIZE, for efficiency.
105180         All decls and uses changed.
105181         * lib/xreadlink.h: Include <stddef.h>, for size_t.
105183         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
105184         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
105186         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
105187         sysexits.h.
105189 2004-06-01  Jim Meyering  <jim@meyering.net>
105191         * m4/calloc.m4: New file.
105193 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
105195         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
105196         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
105197         Also, fix a typo in a diagnostic.
105199 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
105201         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
105202         or AC_FUNC_REALLOC.
105204 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
105206         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
105207         macros to be defined.
105208         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
105209         the allocator returns NULL because the requested size is zero.
105211 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
105213         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
105214         var.  Add comment explaining why libc still defines it.  This
105215         merges the following patch from glibc:
105216         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
105218 2004-05-20  Andreas Schwab  <schwab@suse.de>
105220         * m4/free.m4: Replace free if it not known to work, not the other
105221         way round.
105223 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
105225         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
105226         present in glibc since revision 1.1 of this file.
105227         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
105228         obstack_alignment_mask, obstack_alloc, obstack_base,
105229         obstack_blank, obstack_blank_fast, obstack_chunk_size,
105230         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
105231         obstack_grow0, obstack_init, obstack_int_grow,
105232         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
105233         obstack_next_free, obstack_object_size, obstack_ptr_grow,
105234         obstack_ptr_grow_fast, obstack_room): Remove declarations of
105235         nonexistent functions.
105237 2004-05-18  Karl Berry  <karl@gnu.org>
105239         * config/srclist.txt: break link for vasnprintf.c.
105241 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
105243         Port obstack to the AS/400, where pointers are 16 bytes wide and
105244         you cannot cast an integer to a valid pointer.  This patch is
105245         currently waiting to be integrated into glibc; see
105246         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
105248         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
105249         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
105250         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
105251         (struct obstack): temp member is now a union of a pointer and
105252         an integer, instead of an integer.  All integer uses changed.
105253         This does not affect the physical layout of struct obstack,
105254         except on hosts (like the AS/400) where the size or alignment of
105255         void * is greater than that of ptrdiff_t.
105256         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
105257         __STDC__)]: Store temporary in pointer member of union, not
105258         integer member.
105259         * lib/obstack.c: Include <stddef.h>, for offsetof.
105260         (struct fooalign): Remove; it doesn't need a name.
105261         (union fooround): Change double to long double, and add void *.
105262         (DEFAULT_ALIGNMENT): Use offsetof to compute.
105263         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
105264         not a macro.  Hence the values are always int; so remove all
105265         casts-to-int in uses.
105267 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
105269         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
105270         we can get this patch merged into glibc.
105272 2004-05-17  Derek R. Price  <derek@ximbiot.com>
105273             Paul Eggert  <eggert@cs.ucla.edu>
105275         * m4/argp: Depend on alloca.
105277 2004-05-17  Derek R. Price  <derek@ximbiot.com>
105278             Paul Eggert  <eggert@cs.ucla.edu>
105280         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
105281         freecoding.
105283 2004-05-17  Bruno Haible  <bruno@clisp.org>
105285         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
105286         precision that consists of a '.' followed by an empty digit string.
105287         Patch by Tor Lillqvist <tml@iki.fi>.
105289 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
105291         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
105292         for backward compatibility with older code.  We need our own
105293         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
105294         it under some other name, and our alloca.h will define it.
105296 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
105297             Derek Price  <derek@ximbiot.com>
105299         * lib/alloca.c: Include <alloca.h>, to get our interface.
105300         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
105301         include <alloca.h> first.  Use C89 prototype for alloca; this
105302         requires including <stddef.h> for size_t.  Use extern "C" if C++.
105303         Use #elif for simplicity, since we can assume C89 now.
105304         Don't try to source the system alloca.h since it will not be found
105305         and to prevent recursively including its replacement.
105306         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
105307         * lib/regex.c: Likewise.
105309 2004-05-16  Derek Price  <derek@ximbiot.com>
105310             Paul Eggert  <eggert@cs.ucla.edu>
105312         getline cleanup.  This changes the getndelim2 API: both order of
105313         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
105314         no delimiter).
105316         * lib/getline.c: Don't include stddef.h or stdio.h, since our
105317         interface does that.
105318         (getline): Always use getdelim, so that we don't have two
105319         copies of this code.
105320         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
105321         if available.
105322         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
105323         (GETNDELIM2_MAXIMUM): New macro.
105324         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
105325         instead of the old practice of delim2==0.  All callers changed.
105326         Return -1 on overflow, instead of returning junk.
105327         Do not set *linesize unless allocation succeeds.
105328         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
105329         that we include sys/types.h.
105330         * lib/getnline.h: Likewise.
105331         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
105332         (getndelim2): Reorder arguments.
105333         * lib/getnline.c (getnline, getndelim):
105334         Don't discard the NMAX argument.
105335         (getnline): Invoke getndelim, to avoid code duplication.
105336         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
105337         of (size_t) -1 by callers of the getnline family.
105339 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
105341         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
105342         Check for gettimeofday.
105343         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
105344         Check for settimeofday, stime.
105346 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
105348         * lib/nanosleep.c (suspended): Change its type from int to
105349         sig_atomic_t volatile.
105350         (first_call): Make it private to rpl_nanosleep, and have it
105351         be zero initially as that's a bit faster.
105352         (my_usleep): Round up fractional times instead of truncating them,
105353         as this is the usual meaning for 'sleep'.
105355         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
105356         doesn't work.
105357         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
105358         (ENOSYS): Define if not defined.
105359         (settime): Fall back on stime if it exists and settimeofday fails.
105360         But don't bother with fallbacks if a method fails with errno == EPERM.
105362 2004-05-11  Jim Meyering  <jim@meyering.net>
105364         Prior to this change, the save_cwd caller required read access to the
105365         current directory on most systems (ones with the fchdir function).
105367         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
105368         fails, try write-only, and finally, resort to using xgetcwd.
105370 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
105372         * lib/obstack.c, obstack.h: Import changes from libc.
105374 2004-04-28  Bruno Haible  <bruno@clisp.org>
105376         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
105377         also implicitly appends .exe to executables.
105378         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
105379         accepts Windows pathnames.
105380         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
105381         Treat Cygwin like Windows, since it now accepts Windows pathnames.
105382         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
105383         Treat Cygwin like Windows, since it now accepts Windows pathnames.
105384         Reported by Derek Robert Price <derek@ximbiot.com>.
105386 2004-04-21  Karl Berry  <karl@gnu.org>
105388         * config/srclist.txt (localcharset.c): break sync.
105390 2004-04-20  Paul Eggert  <eggert@twinsun.com>
105392         * m4/host-os.m4: Add a copyright notice.
105394 2004-04-20  Jim Meyering  <jim@meyering.net>
105396         Change UTILS_ to gl_ in AC_DEFINE'd names.
105397         Change utils_- and jm_-prefixed variables, too.
105398         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
105399         UTILS_FUNC_MKDIR_TRAILING_SLASH.
105400         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
105402         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
105403         Don't emit trailing blanks.
105404         Also rename jm_-prefixed variables to have gl_ prefix.
105406         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
105407         Also rename jm_-prefixed variables to have gl_ prefix.
105409         * m4/jm-macros.m4: Reflect the renamings.
105410         * m4/prereq.m4: Likewise.
105412 2004-04-20  Jim Meyering  <jim@meyering.net>
105414         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
105415         memory.
105417 2004-04-20  Jim Meyering  <jim@meyering.net>
105418             Bruno Haible  <bruno@clisp.org>
105420         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
105421         memory when realloc fails.
105423 2004-04-19  Jim Meyering  <jim@meyering.net>
105425         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
105426         now that readutmp.c may call `free (0)'.
105428 2004-04-19  Bruno Haible  <bruno@clisp.org>
105430         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
105431         * m4/inttypes_h.m4: Likewise.
105432         * m4/stdint_h.m4: Likewise.
105433         * m4/intmax_t.m4: Likewise.
105434         * m4/uintmax_t.m4: Likewise.
105436 2004-04-18  Jim Meyering  <jim@meyering.net>
105438         * m4/prereq.m4: Don't forbid jm_ prefix.
105440         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
105441         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
105442         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
105443         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
105444         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
105445         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
105446         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
105447         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
105448         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
105449         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
105450         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
105451         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
105452         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
105453         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
105454         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
105455         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
105456         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
105457         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
105458         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
105460 2004-04-18  Jim Meyering  <jim@meyering.net>
105462         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
105463         failure, don't leak memory and do call END_UTMP_ENT.
105465 2004-04-16  Jim Meyering  <jim@meyering.net>
105467         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
105468         coreutils' stat program.
105469         (gl_PREREQ): Don't require jm_PREREQ_STAT.
105471 2004-04-11  Paul Eggert  <eggert@twinsun.com>
105473         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
105474         C89.
105475         (CHAR_BIT): Remove, since we assume C89.
105476         Include <stdint.h> if available, as per current Autoconf CVS advice.
105478 2004-03-31  Jim Meyering  <jim@meyering.net>
105480         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
105481         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
105482         * m4/xalloc.m4: Likewise.
105484 2004-03-30  Paul Eggert  <eggert@twinsun.com>
105486         Merge from coreutils.
105488         * m4/inttostr.m4: New file.
105489         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
105490         Require AM_STDBOOL_H and gl_TIMESPEC instead.
105491         Require gl_CLOCK_TIME.
105492         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
105494 2004-03-30  Paul Eggert  <eggert@twinsun.com>
105496         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
105497         not bool, to be more consistent with Unix conventions.
105498         Suggested by Bruno Haible.
105500         Merge from coreutils.
105502         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
105503         * lib/umaxtostr.c: New files.
105505         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
105506         the usual <time.h> dance.
105507         (get_date): Change signature to support fractional time stamps.
105508         All callers changed.
105509         * lib/getdate.y: Include "getdate.h" first, as we can now
105510         assume C89 and don't need to worry about 'const'.
105511         Similarly, include "unlocked-io.h" near start, not in middle.
105512         Include <limits.h>.
105513         (textint.value): Use long int rather than int.
105514         (textint.digits): Use size_t rather than int.
105515         (BILLION, LOG10_BILLION): New constants.
105516         (parser_control): New member rel_ns.  Members day_ordinal,
105517         time_zone, month, day, hour, minutes, rel_year, rel_month,
105518         rel_day, rel_hour, rel_minutes, rel_seconds
105519         are now long int, not int.  Member seconds is now struct timespec,
105520         not int.  New member timespec_seen.  Members dates_seen, days_seen,
105521         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
105522         not int.
105523         (%union.intval): Now long int, not int.
105524         New member timespec.
105525         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
105526         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
105527         (spec): Now is a timespec or an item list.
105528         (timespec, items): New nonterminals.
105529         (time, rel, relunit, number, get_date):
105530         Add support for fractional seconds.
105531         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
105532         (gmtime, localtime, mktime): Remove decls; not needed with C89.
105533         (to_hour): First arg is now long int, not int.
105534         (to_year): Returns long int, not int.
105535         Don't treat year -70 like 70.
105536         (tm_diff): Returns long int, not int.
105537         (lookup_word): Use bool instead of int when appropriate.
105538         (yylex): Use size_t for count, not int.
105539         Detect overflow when parsing large integer constants.
105540         Add support for fractions.
105541         (get_date): Make pointers 'const' if possible.
105542         Use more-portable code to detect integer overflow.
105543         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
105544         Don't use ctime; it's not reliable if the year has >4 digits.
105546         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
105547         This is for compatibility with BSD.
105549         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
105550         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
105551         From coreutils' system.h.
105553         * lib/userspec.c: Don't include "posixver.h".
105554         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
105555         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
105556         compatible extension.  Simplify code by removing a boolean int
105557         that was always nonzero if a string was nonnull.
105559 2004-03-30  Jim Meyering  <jim@meyering.net>
105561         Merge from coreutils.
105563         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
105564         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
105565         on some systems one must include <grp.h> before it.
105566         Reported by Christian Krackowizer.
105568 2004-03-30  Jim Meyering  <jim@meyering.net>
105570         Merge from coreutils.
105572         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
105574         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
105575         an empty input stream.
105577         * lib/readtokens.c: Include <stdbool.h>.
105578         (readtoken): Use `size_t' rather than int/long.
105579         All callers adjusted.
105580         Use `bool' rather than `int' where appropriate.
105581         Use memset rather than an explicit loop.
105582         Use x2nrealloc rather than xrealloc.
105583         Allow the use of `\0' as a delimiter.
105584         (readtokens): Likewise.
105585         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
105587 2004-03-30  Jim Meyering  <jim@meyering.net>
105589         * m4/realloc.m4: Remove file, since now it does no more than
105590         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
105591         the `configure.ac' section of module/realloc.
105592         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
105594 2004-03-30  Bruno Haible  <bruno@clisp.org>
105596         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
105597         nonnull.
105599 2004-03-29  Paul Eggert  <eggert@twinsun.com>
105601         Merge changes to getloadavg.c from coreutils and Emacs.
105603         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
105604         Define to an expression, not to the empty string.
105605         Include cloexec.h and xalloc.h.
105606         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
105607         Use set_cloexec_flag rather than rolling our own.
105608         * lib/cloexec.c, lib/cloexec.h: New files.
105610 2004-03-29  Paul Eggert  <eggert@twinsun.com>
105612         * m4/cloexec.m4: New file.
105614 2004-03-18  Paul Eggert  <eggert@twinsun.com>
105616         * lib/getopt.h: Sync with libc CVS.
105618 2004-03-18  Paul Eggert  <eggert@twinsun.com>
105619             Bruno Haible  <bruno@clisp.org>
105621         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
105622         mbswidth.
105624 2004-03-18  Paul Eggert  <eggert@twinsun.com>
105625             Bruno Haible  <bruno@clisp.org>
105627         * lib/mbswidth.h: Include <wchar.h> only if
105628         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
105629         <wchar.h>.
105630         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
105632 2004-03-09  Paul Eggert  <eggert@twinsun.com>
105634         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
105635         Sync with libc CVS.
105636         * lib/getopt_int.h: New file, also synced from libc.
105638 2004-03-09  Paul Eggert  <eggert@twinsun.com>
105640         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
105641         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
105642         Bring back getopt.c, getopt.h, getopt1.c.
105644 2004-03-07  Paul Eggert  <eggert@twinsun.com>
105646         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
105647         All uses changed.  Check for sa_sigaction member; this fixes
105648         a bug first reported by Jason Andrade in
105649         <http://mail.gnu.org/r/bug-textutils/2003-03/msg00027.html>.
105651 2004-03-07  Paul Eggert  <eggert@twinsun.com>
105653         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
105654         '#if' expressions.  Unlike the code it replaces, it does not
105655         depend on (defined _SC_PAGESIZE).  However, it does depend on
105656         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
105657         first reported by Jason Andrade in
105658         <http://mail.gnu.org/r/bug-textutils/2003-03/msg00027.html>.
105660 2004-02-25  Simon Josefsson  <jas@extundo.com>
105662         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
105664 2004-02-25  Simon Josefsson  <jas@extundo.com>
105666         * lib/strdup.h: New file.
105667         * lib/strdup.c: Include it.
105668         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
105669         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
105671 2004-02-23  Karl Berry  <karl@gnu.org>
105673         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
105674         (from fencepost.gnu.org:/gd/gnuorg).
105676 2004-02-23  Karl Berry  <karl@gnu.org>
105678         * config/srclistvars.sh (GNUORG) [karl]: redefine.
105679         * config/srclist.txt: add maintain/standards documents.
105681 2004-02-18  Bruno Haible  <bruno@clisp.org>
105683         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
105684         Reported by Derek Robert Price <derek@ximbiot.com>.
105686 2004-02-16  Karl Berry  <karl@gnu.org>
105688         * config/mkinstalldirs, install-sh: update from automake.
105690 2004-02-06  Karl Berry  <karl@gnu.org>
105692         * m4/po.m4: update from gettext 0.14.1.
105694 2004-02-06  Karl Berry  <karl@gnu.org>
105696         * lib/config.charset: update from gettext 0.14.1.
105698 2004-02-05  Paul Eggert  <eggert@twinsun.com>
105700         Add comments and code, prompted by suggestions from Bruno Haible
105701         for sh-quote.
105702         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
105703         describing the enum quoting_style values.
105704         * lib/quotearg.c (quotearg_alloc): New function.
105705         (quotearg_buffer_restyled): Treat lone { and } as special.
105706         Treat = as special.  Work around bug with older shells
105707         that "see" a '\' that is really the 2nd byte of a multibyte char.
105708         Quote empty string with shell_quoting_style.
105710 2004-02-03  Bruno Haible  <bruno@clisp.org>
105712         * m4/pipe.m4: New file, from GNU gettext.
105714 2004-02-03  Bruno Haible  <bruno@clisp.org>
105716         * lib/pipe.h: New file, from GNU gettext.
105717         * lib/pipe.c: New file, from GNU gettext.
105719 2004-01-27  Bruno Haible  <bruno@clisp.org>
105721         * m4/execute.m4: New file, from GNU gettext.
105723 2004-01-27  Bruno Haible  <bruno@clisp.org>
105725         * lib/execute.h: New file, from GNU gettext.
105726         * lib/execute.c: New file, from GNU gettext.
105727         * lib/w32spawn.h: New file, from GNU gettext.
105729 2004-01-24  Paul Eggert  <eggert@twinsun.com>
105731         Merge from diffutils.
105733         * lib/file-type.c (file_type): Add typed memory objects.
105734         * lib/file-type.h (S_TYPEISTMO): New macro.
105736         * lib/c-stack.h (c_stack_action): Remove argv argument.
105737         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
105738         (die): Don't calculate message unless segv_action returns.
105739         (get_stack_location, min_address_from_argv, max_address_from_argv,
105740         volatile stack_base, volatile_stack_size): Remove.
105741         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
105742         that every segmentation violation is a stack overflow.  (Ouch!)
105743         See Debian bug 136249 (still outstanding) for more info about why
105744         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
105746 2004-01-24  Paul Eggert  <eggert@twinsun.com>
105748         Exit-status fix from coreutils.
105750         Use exit_failure consistently in place of EXIT_FAILURE,
105751         so that program exit statuses are consistent on failure.
105753         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
105754         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
105755         * lib/argmatch.h: Comment fix to match the above.
105756         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
105757         Now a macro referring to exit_failure, instead of a separate
105758         variable.  Include "exitfail.h" to get it.
105759         * lib/xstrtol.h: Include "exitfail.h".
105760         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
105762         * lib/long-options.c (parse_long_options): Use prototype
105763         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
105764         for clarity.
105766 2004-01-21  Jim Meyering  <jim@meyering.net>
105768         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
105769         so as not to conflict with a different-sized __mktime_internal
105770         function in GNU libc.
105771         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
105772         Problem building statically-linked `ls' reported by Michael Brunnbauer.
105774 2004-01-20  Karl Berry  <karl@gnu.org>
105776         * config/config.guess: update from config.
105778         * config/srclistvars.sh: GNUWWWLICENSES for karl.
105780 2004-01-20  Bruno Haible  <bruno@clisp.org>
105782         Safer stack allocation.
105783         * lib/setenv.c: Include allocsa.h.
105784         (alloca): Remove fallback definition.
105785         (freea): Remove macro.
105786         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
105787         instead of freea.
105789 2004-01-20  Bruno Haible  <bruno@clisp.org>
105791         * m4/eealloc.m4: New file, from GNU gettext.
105793 2004-01-20  Bruno Haible  <bruno@clisp.org>
105795         * m4/allocsa.m4: New file, from GNU gettext.
105797 2004-01-20  Bruno Haible  <bruno@clisp.org>
105799         * lib/xallocsa.h: New file, from GNU gettext.
105800         * lib/xallocsa.c: New file, from GNU gettext.
105802 2004-01-20  Bruno Haible  <bruno@clisp.org>
105804         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
105806 2004-01-20  Bruno Haible  <bruno@clisp.org>
105808         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
105809         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
105810         specially.
105812 2004-01-20  Bruno Haible  <bruno@clisp.org>
105814         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
105815         patch.
105817 2004-01-20  Bruno Haible  <bruno@clisp.org>
105819         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
105821 2004-01-20  Bruno Haible  <bruno@clisp.org>
105823         * lib/eealloc.h: New file.
105825 2004-01-20  Bruno Haible  <bruno@clisp.org>
105827         * lib/binary-io.h: Avoid warnings on Cygwin.
105829 2004-01-20  Bruno Haible  <bruno@clisp.org>
105831         * lib/allocsa.h: New file, from GNU gettext.
105832         * lib/allocsa.c: New file, from GNU gettext.
105834 2004-01-18  Karl Berry  <karl@gnu.org>
105836         * doc/gpl.texi, doc/lgpl.texi: new files.
105838 2004-01-18  Karl Berry  <karl@gnu.org>
105840         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
105841         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
105843 2004-01-15  Paul Eggert  <eggert@twinsun.com>
105845         Merge from coreutils.
105847         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
105848         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
105849         (gl_DEFAULT_POSIX2_VERSION): Move
105850         the documentation from 'configure' into 'config.hin',
105851         so that 'configure --help' isn't burdened by it and
105852         we don't have to worry about its formatting there.
105853         Reword the documentation so that it's more succinct
105854         and can be run together into a single paragraph.
105855         * m4/same.m4 (gl_SAME): Check for pathconf.
105857 2004-01-15  Paul Eggert  <eggert@twinsun.com>
105859         Merge from coreutils.
105861         * lib/posixver.c: Include posixver.h.
105863         * lib/same.c: Include <stdbool.h>, <limits.h>.
105864         (_POSIX_NAME_MAX): Define if not defined.
105865         (MIN): New macro.
105866         (same_name): If file names are silently truncated, report
105867         that the file names are the same if they are the same after
105868         the silent truncation.
105870         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
105871         conversion function.
105872         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
105873         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
105874         longer needed.
105876 2004-01-15  Jim Meyering  <jim@meyering.net>
105878         Merge from coreutils.
105880         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
105881         if no library is required.
105882         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
105883         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
105884         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
105885         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
105886         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
105887         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
105888         value, $ac_cv_search_crypt, if it's "none required".
105889         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
105890         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
105891         not gl_FUNC_GETLOADAVG.
105892         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
105893         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
105895 2004-01-15  Jim Meyering  <jim@meyering.net>
105897         Merge from coreutils.
105899         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
105900         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
105901         http://mail.gnu.org/r/bug-coreutils/2003-11/msg00144.html
105903         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
105904         optional configure-time default.
105906         * lib/version-etc.c (version_etc_copyright): Update copyright date.
105908         * lib/xreadlink.c (xreadlink): Correct outdated comment.
105910 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
105912         Merge from coreutils.
105914         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
105915         value, $ac_cv_search_nanosleep, if it's "none required".
105917 2004-01-14  Paul Eggert  <eggert@twinsun.com>
105919         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
105920         with like-named macro in fnmatch.c.
105921         (EXT): Use an internal constant instead.
105923         Merge fnmatch patches from glibc.
105924         * lib/fnmatch.c (mbsinit): Remove define.
105925         Add libc_hidden_ver (__fnmatch, fnmatch).
105926         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
105927         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
105929 2004-01-14  Karl Berry  <karl@gnu.org>
105931         * config/install-sh: update from automake.
105933 2004-01-13  Karl Berry  <karl@gnu.org>
105935         * config/install-sh: update from automake.
105937 2004-01-09  Karl Berry  <karl@gnu.org>
105939         * config/install-sh: update from automake.
105941 2004-01-05  Karl Berry  <karl@gnu.org>
105943         * config/config.{sub,guess}: update from config.
105945 2003-12-31  Karl Berry  <karl@gnu.org>
105947         * config/depcomp: update from automake.
105949 2003-12-14  Karl Berry  <karl@gnu.org>
105951         * lib/config.charset: update from gettext-runtime.
105953 2003-12-03  Paul Eggert  <eggert@twinsun.com>
105955         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
105956         Bug reported by Alfred M. Szmidt.
105958 2003-12-03  Bruno Haible  <bruno@clisp.org>
105960         * m4/gettext.m4: Upgrade from gettext-0.13.
105961         * m4/po.m4: Upgrade from gettext-0.13.
105962         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
105963         * m4/intmax.m4: New file, from gettext-0.13.
105964         * m4/printf-posix.m4: New file, from gettext-0.13.
105966 2003-11-29  Karl Berry  <karl@gnu.org>
105968         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
105970 2003-11-25  Paul Eggert  <eggert@twinsun.com>
105971             Bruno Haible  <bruno@clisp.org>
105973         * lib/printf-parse.h: Don't include sys/types.h.
105974         (ARG_NONE): New macro.
105975         (char_directive): Change type of *arg_index fields to size_t.
105976         * lib/printf-parse.c: Don't include sys/types.h.
105977         (SSIZE_MAX): Remove macro.
105978         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
105979         Remove unnecessary overflow check.
105980         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
105981         fields.
105983 2003-11-25  Bruno Haible  <bruno@clisp.org>
105985         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
105987 2003-11-25  Bruno Haible  <bruno@clisp.org>
105989         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
105990         gt_TYPE_SSIZE_T.
105992 2003-11-24  Paul Eggert  <eggert@twinsun.com>
105994         * modules/alloca: Remove dependency on xalloc.
105996 2003-11-24  Paul Eggert  <eggert@twinsun.com>
105998         * lib/alloca.c: Remove dependency on xalloc module.
105999         (xalloc_die): Remove.
106000         (memory_full) [!defined emacs]: New macro.
106001         [!defined emacs]: Don't include xalloc.h.
106002         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
106003         address arithmetic overflows.  Change datatypes a bit to avoid
106004         unnecessary casts.
106006 2003-11-22  Jim Meyering  <jim@meyering.net>
106008         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
106009         s/size/size_t/.
106011 2003-11-21  Karl Berry  <karl@gnu.org>
106013         * config/config.{sub,guess}: update from config.
106015 2003-11-18  Karl Berry  <karl@gnu.org>
106017         * config/config.{sub,guess}: update from config.
106019         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
106021 2003-11-17  Paul Eggert  <eggert@twinsun.com>
106023         * README: Mention that S+T cannot overflow if S is the size of
106024         an existing object and T is sufficiently small.
106026 2003-11-17  Jim Meyering  <jim@meyering.net>
106028         On systems without utime and without a utimes function capable of
106029         dealing with a NULL struct utimbuf* argument, this utime replacement
106030         could -- in unusual circumstances -- leak a file descriptor.
106031         * lib/utime.c: Include <unistd.h> and <errno.h>.
106032         (utime_null): Be sure to close `fd' and to preserve errno.
106033         Reported by Geoff Collyer via Arnold Robbins.
106035 2003-11-17  Bruno Haible  <bruno@clisp.org>
106037         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
106038         (Depends-on): Add xsize.
106040 2003-11-17  Bruno Haible  <bruno@clisp.org>
106042         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
106044 2003-11-17  Bruno Haible  <bruno@clisp.org>
106046         * lib/vasnprintf.c (alloca): Remove fallback definition.
106047         (freea): Remove definition.
106048         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
106049         Reported by Paul Eggert.
106051 2003-11-16  Paul Eggert  <eggert@twinsun.com>
106052             Bruno Haible  <bruno@clisp.org>
106054         Protect against address arithmetic overflow.
106055         * lib/printf-args.h: Include stddef.h.
106056         (arguments): Change type of field 'count' to size_t.
106057         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
106058         'unsigned int' where appropriate.
106059         * lib/printf-parse.h: Include sys/types.h.
106060         (char_directive): Change type of *arg_index fields to ssize_t.
106061         (char_directives): Change type of fields 'count', max_*_length to
106062         size_t.
106063         * lib/printf-parse.c: Include sys/types.h and xsize.h.
106064         (SSIZE_MAX): Define fallback value.
106065         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
106066         instead of 'int' where appropriate. Check a_allocated, d_allocated
106067         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
106068         * lib/vasnprintf.c: Include xsize.h.
106069         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
106070         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
106071         overflow. Avoid wraparound when converting a width or precision from
106072         decimal to binary.
106074 2003-11-16  Bruno Haible  <bruno@clisp.org>
106076         Update from GNU gettext.
106077         * lib/printf-parse.c: Generalize to it can be compiled for wide
106078         strings.
106079         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
106080         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
106081         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
106082         SNPRINTF): New macros.
106083         Don't include <alloca.h> if the file is used inside libintl.
106084         (local_wcslen): New function, for Solaris 2.5.1.
106085         (VASNPRINTF): Use it instead of wcslen.
106087 2003-11-16  Bruno Haible  <bruno@clisp.org>
106089         * lib/xsize.h (xmax): New function.
106090         (xsum, xsum3, xsum4): Declare as "pure" functions.
106092 2003-11-12  Paul Eggert  <eggert@twinsun.com>
106094         * modules/xalloc (Files): Undo latest change, since xalloc.h
106095         no longer needs SIZE_MAX or PTRDIFF_MAX.
106097 2003-11-12  Paul Eggert  <eggert@twinsun.com>
106099         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
106100         gl_PTRDIFF_MAX.
106102 2003-11-12  Paul Eggert  <eggert@twinsun.com>
106104         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
106105         "return", to pacify some unknown compiler.  Problem reported
106106         by Joerg Schilling.
106108 2003-11-12  Paul Eggert  <eggert@twinsun.com>
106110         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
106111         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
106112         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
106113         heuristic is just as accurate as far as we know, and it removes a
106114         dependency on size_max.m4 and ptrdiff_max.m4.
106116 2003-11-11  Bruno Haible  <bruno@clisp.org>
106118         * modules/xsize (Files): Add m4/size_max.m4.
106119         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
106121 2003-11-11  Bruno Haible  <bruno@clisp.org>
106123         * m4/size_max.m4: New file.
106124         * m4/ptrdiff_max.m4: New file.
106125         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
106126         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
106127         (gl_XALLOC): Invoke it.
106129 2003-11-11  Bruno Haible  <bruno@clisp.org>
106131         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
106132         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
106133         defined.
106135 2003-11-10  Paul Eggert  <eggert@twinsun.com>
106137         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
106138         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
106139         rejected some allocations of exactly SIZE_MAX - 2 bytes.
106140         From Bruno Haible.
106141         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
106142         not (size_t) -1, since it's defined here.
106144 2003-11-09  Karl Berry  <karl@gnu.org>
106146         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
106148 2003-11-06  Paul Eggert  <eggert@twinsun.com>
106150         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
106151         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
106152         Reject sizes of exactly SIZE_MAX bytes.
106153         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
106154         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
106156 2003-11-05  Bruno Haible  <bruno@clisp.org>
106158         * lib/xsize.h: Include limits.h, to avoid a possible collision with
106159         SIZE_MAX defined in <limits.h> on Solaris.
106161 2003-11-04  Jim Meyering  <jim@meyering.net>
106163         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
106164         variable names, rather than @VAR@.
106165         * modules/poll: Likewise.
106167 2003-11-04  Bruno Haible  <bruno@clisp.org>
106169         * modules/xsize: New file.
106170         * modules/linebreak: Depend on xsize.
106171         * MODULES.html.sh (func_all_modules): Add xsize.
106173 2003-11-04  Bruno Haible  <bruno@clisp.org>
106175         * m4/xsize.m4: New file.
106177 2003-11-04  Bruno Haible  <bruno@clisp.org>
106179         * lib/xsize.h: New file.
106180         * lib/linebreak.c: Include xsize.h.
106181         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
106182         argument for overflow.
106183         Suggested by Paul Eggert.
106185 2003-11-03  Karl Berry  <karl@gnu.org>
106187         * config/config.{guess,sub}: update from config.
106189 2003-11-03  Jim Meyering  <jim@meyering.net>
106191         * modules/userspec (lib_SOURCES): Add userspec.h.
106192         (Include): Add "userspec.h".
106193         Improve description.
106195 2003-11-03  Jim Meyering  <jim@meyering.net>
106197         * lib/userspec.c: Include "userspec.h".
106198         * lib/userspec.h: New file.
106200 2003-11-03  Bruno Haible  <bruno@clisp.org>
106202         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
106204 2003-11-03  Bruno Haible  <bruno@clisp.org>
106206         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
106207         available, to avoid (extremely rare) race condition.
106208         Suggested by Paul Eggert.
106210 2003-11-02  Karl Berry  <karl@gnu.org>
106212         * config/srclist.txt (vasprintf.c): sync broken, sigh.
106214 2003-10-31  Paul Eggert  <eggert@twinsun.com>
106216         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
106217         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
106218         (read_filesystem_list): Set and use me_type_malloced.
106219         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
106220         whatever the type happens to be), for brevity and consistency.
106221         Check for size calculation overflow on Alphas running OSF/1.
106223 2003-10-31  Jim Meyering  <jim@meyering.net>
106225         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
106227         * lib/linebuffer.c: Include <string.h> for declaration of memset.
106229 2003-10-30  Paul Eggert  <eggert@twinsun.com>
106230             Bruno Haible  <bruno@clisp.org>
106232         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
106233         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
106235 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
106237         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
106238         netbsd*-gnu*.  Suggested by Robert Millan.
106240 2003-10-29  Paul Eggert  <eggert@twinsun.com>
106242         * modules/group-member: Depend on stdbool.
106244 2003-10-29  Paul Eggert  <eggert@twinsun.com>
106246         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
106248 2003-10-29  Paul Eggert  <eggert@twinsun.com>
106250         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
106251         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
106252         after the 'gnu' in these cases.  This fixes some bugs in the
106253         previous change, and is based on suggestions by Robert Millan.
106255 2003-10-29  Paul Eggert  <eggert@twinsun.com>
106257         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
106258         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
106259         no longer needed.
106260         * lib/quotearg.c (quotearg_n_options): Use it.
106261         * lib/group-member.c: Include <stdbool.h>.
106262         (free_group_info): Arg is now const *; don't free arg.
106263         (get_group_info): Now returns bool and accepts struct group_info *,
106264         rather than returning a malloc'ed struct group_info *.
106265         All uses changed.  Check for overflow in internal size calculation.
106267         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
106268         rather than xmalloc/xrealloc.
106269         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
106270         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
106271         conformance bug: the old code used a pointer after freeing the
106272         storage that it addressed.
106273         * lib/hash.c (hash_initialize): Simplify the code by using
106274         xalloc_oversized rather than doing it by hand.
106275         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
106276         the buffer preserved.  Use free and xmalloc instead.
106277         * lib/quotearg.c (quotearg_n_options): Likewise.
106278         Use a simpler test for size overflow.  Don't use xalloc_oversized
106279         because unsigned int might be wider than size_t (!); this suggests
106280         that we should switch from unsigned int to size_t for slot numbers.
106282 2003-10-28  Paul Eggert  <eggert@twinsun.com>
106284         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
106285         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
106286         NetBSD kernels.  Requested by Richard Stallman.
106288 2003-10-27  Paul Eggert  <eggert@twinsun.com>
106290         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
106291         to allocate the returned structure.  Do not allocate a subarray,
106292         as x2nrealloc will do that.
106293         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
106294         instead of xnrealloc.
106295         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
106297 2003-10-27  Bruno Haible  <bruno@clisp.org>
106299         * lib/stdbool_.h: Better support for BeOS.
106301 2003-10-26  Paul Eggert  <eggert@twinsun.com>
106303         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
106304         now uses inline.
106306 2003-10-26  Paul Eggert  <eggert@twinsun.com>
106308         * lib/xalloc.h (xalloc_oversized): New static inline function, for
106309         callers that want to do their own size-overflow checking.  Include
106310         <stdbool.h>, since xalloc_oversized returns bool.
106311         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
106312         to use xalloc_oversized.
106314         Add two functions x2realloc, x2nrealloc, for programs that grow
106315         arrays dynamically by doubling their sizes.
106316         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
106317         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
106318         New functions.
106320         Port to C99 semantics for 'inline' of external functions.
106321         Bug reported by Bruno Haible.
106322         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
106323         with the old contents of xnmalloc.
106324         (xnmalloc, xmalloc): Use it.
106325         (xnrealloc_inline): New static inline function,
106326         with the old contents of xnrealloc.
106327         (xnrealloc, xrealloc): Use it.
106329         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
106330         that.
106332 2003-10-26  Karl Berry  <karl@gnu.org>
106334         * config/srclist.txt (COPYING.DOC): no longer available from
106335         /gd/gnuorg; don't know where the ultimate source is.
106337 2003-10-25  Paul Eggert  <eggert@twinsun.com>
106339         Fix several address-calculation bugs in the hash modules,
106340         plus some minor code cleanup.
106342         * lib/hash.h: Include <stdbool.h>, for bool.
106343         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
106344         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
106345         hash_get_n_entries, hash_get_max_bucket_length,
106346         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
106347         hash_rehash): Use size_t rather than unsigned.
106348         * lib/hash.c (struct hash_table, hash_get_n_buckets,
106349         hash_get_n_buckets_used, hash_get_n_entries,
106350         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
106351         hash_get_entries, hash_do_for_each, hash_string, is_prime,
106352         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
106353         Likewise.
106354         (SIZE_MAX): Define if not defined.
106355         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
106356         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
106357         hash_print):
106358         Use const * when possible.
106359         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
106360         (check_tuning): Fix bug: if tuning parameters were very close to
106361         0 or 1, rounding errors could have caused subscript violations.
106362         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
106363         (hash_initialize): Add 'fail:' label
106364         to free table and return NULL, and use it to simplify code.
106365         Use calloc rather than clearing the storage ourself.
106366         (hash_initialize, hash_rehash): Check for arithmetic overflow in
106367         buffer size calculations.
106368         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
106369         Include <stddef.h>, for size_t.
106370         * lib/hash-pjw.c (hash_pjw): Likewise.
106371         Switch to method described by Bruno Haible.
106372         Include <limits.h>, for CHAR_BIT.
106373         (SIZE_BITS): New macro.
106375 2003-10-23  Paul Eggert  <eggert@twinsun.com>
106377         * m4/getline.m4 (AM_FUNC_GETLINE):
106378         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
106379         hosts.  Problem reported by Derek Robert Price in
106380         <http://mail.gnu.org/r/bug-gnulib/2003-10/msg00092.html>.
106381         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
106382         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
106384 2003-10-21  Paul Eggert  <eggert@twinsun.com>
106386         * lib/getndelim2.c (getndelim2): When size calculation overflows,
106387         ceiling the allocation at NMAX bytes rather than silently
106388         discarding input bytes before NMAX is reached.  This makes
106389         a difference only if NMAX exceeds SIZE_MAX / 2.
106391         * lib/obstack.c: Merge from glibc.
106392         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
106393         Add libc_hidden_def (_obstack_newchunk).
106394         (_obstack_free) [! defined _LIBC]: Remove.
106395         [defined _LIBC]: Make a strong alias from obstack_free, rather than
106396         a clone of the function body.
106397         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
106398         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
106400         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
106401         glibc.
106402         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
106403         arg to memcpy.
106405         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
106406         (obstack_ptr_grow_fast, obstack_int_grow_fast):
106407         Don't use lvalue casts, as GCC plans to remove support for them
106408         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
106409         was also present in the non-GCC version, indicating that this
106410         code had always been buggy and had never been widely used.
106411         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
106412         Use the fast variant of each macro, rather than copying the
106413         definiens of the fast variant; that way, we'll be more likely to
106414         catch future bugs in the fast variants.
106416 2003-10-20  Bruno Haible  <bruno@clisp.org>
106418         * modules/wait-process: New file.
106419         * MODULES.html.sh (func_all_modules): Add wait-process.
106421 2003-10-20  Bruno Haible  <bruno@clisp.org>
106423         * m4/wait-process.m4: New file.
106425 2003-10-20  Bruno Haible  <bruno@clisp.org>
106427         * lib/wait-process.h: New file, from GNU gettext.
106428         * lib/wait-process.c: New file, from GNU gettext.
106430 2003-10-19  Jim Meyering  <jim@meyering.net>
106432         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
106433         HPUX 10.20.
106435 2003-10-18  Karl Berry  <karl@gnu.org>
106437         * config/config.guess: update from config.
106439 2003-10-16  Paul Eggert  <eggert@twinsun.com>
106441         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
106442         (getgroups): First arg is int, not size_t.
106443         Don't let 'free' mangle errno.
106445 2003-10-16  Paul Eggert  <eggert@twinsun.com>
106447         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
106449 2003-10-16  Karl Berry  <karl@gnu.org>
106451         * config/config.{guess,sub}: update from config.
106453 2003-10-16  Jim Meyering  <jim@meyering.net>
106455         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
106456         memcpy.
106458 2003-10-15  Paul Eggert  <eggert@twinsun.com>
106460         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
106461         (SIZE_MAX): Remove.
106462         (new_exclude, add_exclude_file): Initial size no longer needs to
106463         be a power of 2.
106464         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
106465         our own address arithmetic overflow checking.
106467         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
106468         (fnmatch): Do not alloca more than 2000 wide characters;
106469         instead, use malloc for large buffers.
106470         Check for address arithmetic overflow, and return -1
106471         with errno set to ENOMEM in that case.
106472         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
106473         (NEW_PATTERN): Do not alloca more than 8000 bytes;
106474         instead, return -1.  Check for address arithmetic overflow.
106476 2003-10-14  Paul Eggert  <eggert@twinsun.com>
106478         Handle invalid suffixes and overflow independently, so that
106479         callers can treat them independently as needed.  Fix some bugs in
106480         suffix handling, e.g., "100k@" was not diagnosed as an invalid
106481         suffix for a human-readable blocksize.  The major caller-visible
106482         change is the addition of a new
106483         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
106484         that both overflow and suffix chars were found.
106486         * lib/human.c (humblock): Don't check separately for invalid suffix
106487         char; that is xstrtoumax's job (now that its bug is fixed).
106488         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
106489         INTMAX_MAX]: New macros.
106490         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
106491         TYPE_MAXIMUM): New macros.
106492         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
106493         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
106494         if overflow occurs, as it's what __strtol does and it's more useful
106495         in practice.
106496         (__xstrtol): If __strtol reports some error other than ERANGE,
106497         reflect it to the caller as LONGINT_INVALID.  If it reports
106498         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
106499         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
106500         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
106501         value.
106502         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
106503         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
106504         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
106505         [defined UINTMAX_MAX]: New macros.
106507 2003-10-14  Bruno Haible  <bruno@clisp.org>
106509         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
106511 2003-10-14  Bruno Haible  <bruno@clisp.org>
106513         * m4/sig_atomic_t: New file, from GNU gettext.
106514         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
106516 2003-10-14  Bruno Haible  <bruno@clisp.org>
106518         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
106519         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
106520         Also use volatile where needed.
106522 2003-10-12  Paul Eggert  <eggert@twinsun.com>
106524         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
106525         Change maintainer from Bruno Haible to 'all'.
106527 2003-10-12  Paul Eggert  <eggert@twinsun.com>
106529         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
106531 2003-10-12  Paul Eggert  <eggert@twinsun.com>
106533         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
106534         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
106535         and define in terms of the other primitives.
106536         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
106537         (SIZE_MAX): Define if not already defined.
106538         (array_size_overflow): New function.
106539         (xalloc_die): Abort instead of exiting if 'error' returns.
106540         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
106541         (xmalloc, xrealloc): Use them.
106542         (xcalloc): Check for address arithmetic overflow.
106543         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
106544         a bit faster than strcpy.
106546 2003-10-10  Simon Josefsson  <jas@extundo.com>
106548         * modules/argp (Depends-on): Add restrict and strcase.
106550 2003-10-10  Simon Josefsson  <jas@extundo.com>
106552         * m4/argp.m4: Add AC_C_INLINE.
106554 2003-10-08  Paul Eggert  <eggert@twinsun.com>
106556         Merge getpass from libc, plus a few fixes.
106558         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
106559         Include <stdbool.h>.
106560         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
106561         __fsetlocking to empty.
106562         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
106563         do include <bits/libc-lock.h>.
106564         Do not include <fcntl.h>; not needed.
106565         [_LIBC]: Include <wchar.h>.
106566         (NOTCANCEL_MODE): New macro.
106567         (flockfile, funlockfile) [_LIBC]: New macros.
106568         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
106569         [!_LIBC]: New macros.
106570         (call_fclose): New function.
106571         (getpass): Use it.  Save tty stream separately; this simplifies the
106572         code and makes it more reliable if stdin happens to equal stdout.
106573         Invoke __fsetlocking on tty.
106574         Handle thread cancellation if needed.
106575         Namespace cleanup (use __tcgetattr, __getline).
106576         Use bool for Booleans.
106577         [USE_IN_LIBIO]: Handle wide streams.
106578         [!_LIBC]: Unconditionally do the fseek, since we don't know what
106579         stream might go where.
106581         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
106582         doesn't have to include <stdio.h> before us.
106583         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
106584         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
106585         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
106586         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
106587         if not declared, so that we can use getpass.c code from libc without
106588         rewriting it.
106589         (flockfile, ftrylockfile, funlockfile): New macros.
106591 2003-10-08  Paul Eggert  <eggert@twinsun.com>
106593         * modules/getpass: Depend on stdbool.
106595 2003-10-08  Paul Eggert  <eggert@twinsun.com>
106597         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
106599 2003-10-07  Karl Berry  <karl@gnu.org>
106601         * config/config.{guess,sub}: update from config.
106603 2003-10-06  Jim Meyering  <jim@meyering.net>
106604             Bruno Haible  <bruno@clisp.org>
106606         This lets translators provide better translations for the
106607         "Written by ..." part of --version output.
106608         * lib/version-etc.h: Include stdarg.h.
106609         (version_etc_copyright): Declare as readonly.
106610         (version_etc): Make this function variadic with a NULL-terminated list
106611         of author name strings.
106612         (version_etc_va): New declaration.
106613         * lib/version-etc.c: Include stdarg.h, stdlib.h.
106614         (version_etc_copyright): Declare as readonly.
106615         (version_etc_va): New function. Provide a different translatable string
106616         for each possible number of authors < 10. Abbreviate when there are 10
106617         authors or more.
106618         (version_etc): Make this function variadic. Call version_etc_va.
106619         Suggestion from Gary V. Vaughan.
106621         * lib/long-options.h (parse_long_options): Change prototype: the
106622         authors string is moved to the end and becomes variadic.
106623         * lib/long-options.c: Include stdarg.h.
106624         (parse_long_options): Make this function variadic, too.
106625         Call version_etc_va, not version_etc.
106627 2003-10-06  Bruno Haible  <bruno@clisp.org>
106629         * modules/version-etc-2: Remove file.
106630         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
106632 2003-10-06  Bruno Haible  <bruno@clisp.org>
106634         * modules/fatal-signal: New file.
106635         * MODULES.html.sh (func_all_modules): Add fatal-signal.
106637 2003-10-06  Bruno Haible  <bruno@clisp.org>
106639         * m4/fatal-signal.m4: New file.
106640         * m4/signalblocking.m4: New file, from GNU gettext.
106642 2003-10-06  Bruno Haible  <bruno@clisp.org>
106644         * lib/version-etc-2.h: Remove file.
106645         * lib/version-etc-2.c: Remove file.
106647 2003-10-06  Bruno Haible  <bruno@clisp.org>
106649         * lib/fatal-signal.h: New file, from GNU gettext.
106650         * lib/fatal-signal.c: New file, from GNU gettext.
106652 2003-10-05  Paul Eggert  <eggert@twinsun.com>
106654         * README: Rework advice for preventing empty .o files.
106655         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
106656         not <sys/types.h>.
106658 2003-10-04  Karl Berry  <karl@gnu.org>
106660         * lib/argp*: update from libc.
106662 2003-10-04  Karl Berry  <karl@gnu.org>
106664         * config/config.{guess,sub}: update from config.
106666 2003-10-02  Bruno Haible  <bruno@clisp.org>
106668         * modules/lchown (Include): Add lchown.h.
106669         * modules/time_r (Include): Use "..." syntax.
106670         * modules/xgetdomainname (Include): Add xgetdomainname.h.
106672 2003-10-01  Simon Josefsson  <jas@extundo.com>
106674         * MODULES.html.sh (func_all_modules): Move gethostname from section
106675         'based on' to section 'lacking' POSIX:2001.
106677 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
106679         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
106680         to output mode on the same stream.
106682 2003-09-29  Paul Eggert  <eggert@twinsun.com>
106684         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
106685         Fix arg typo in previous patch.
106687 2003-09-28  Jim Meyering  <jim@meyering.net>
106689         * lib/error.c: Correct cpp indentation.
106691 2003-09-27  Paul Eggert  <eggert@twinsun.com>
106693         * modules/free: New file.
106695 2003-09-27  Paul Eggert  <eggert@twinsun.com>
106697         * m4/free.m4: New file.
106699 2003-09-27  Paul Eggert  <eggert@twinsun.com>
106701         * lib/minmax.h (MIN, MAX)
106702         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
106703         Omit the special code that used __typeof__, since we worry that
106704         it could be more trouble than it's worth.  See:
106705         http://mail.gnu.org/r/bug-gnulib/2003-01/msg00090.html
106706         http://mail.gnu.org/r/bug-gnulib/2003-01/msg00095.html
106708         * lib/free.c: New file.
106710 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
106712         Trivial fixes to Makefile.am parts of module listings.
106713         * modules/strstr: Append strstr.h to lib_SOURCES.
106714         * modules/strcase: Likewise, for strcase.h.
106716 2003-09-27  Karl Berry  <karl@gnu.org>
106718         * config/mkinstalldirs: update from automake.
106720 2003-09-26  Paul Eggert  <eggert@twinsun.com>
106722         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
106723         (error_tail): Do not loop, reallocating temporary buffer, since
106724         the output cannot contain more wide characters than the input
106725         contains bytes, the size must be big enough already.  This avoids
106726         one potential size overflow calculation.  Check for size overflow
106727         when calculating temporary buffer size.  Free temporary buffer
106728         when done, if it was allocated with malloc; this plugs a memory
106729         leak.  Remove casts from void * to pointers, that are no longer
106730         needed now that we're assuming C89 or better.
106732         Merge error changes from glibc.
106734         * lib/error.c, error.h: Update copyright notice header to match glibc.
106735         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
106736         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
106737         Disable cancellation while printing error.
106738         * lib/error.h: Prepend __ to parameter names.
106740 2003-09-26  Jim Meyering  <jim@meyering.net>
106742         * lib/error.c (error_tail): Move some declarations
106743         into inner scope where the local variables are used.
106745 2003-09-26  Bruno Haible  <bruno@clisp.org>
106747         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
106748         stpncpy().
106749         Don't define stpncpy through config.h; it's now done through stpncpy.h.
106751 2003-09-26  Bruno Haible  <bruno@clisp.org>
106753         * lib/stpncpy.h (gnu_stpncpy): New declaration.
106754         (stpncpy): Define as alias for gnu_stpncpy.
106755         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
106757 2003-09-25  Simon Josefsson  <jas@extundo.com>
106759         * lib/xgetdomainname.h: New file.
106760         * lib/xgetdomainname.c: New file.
106762 2003-09-25  Simon Josefsson  <jas@extundo.com>
106763             Bruno Haible  <bruno@clisp.org>
106765         * modules/getdomainname: New file.
106766         * modules/xgetdomainname: New file.
106767         * MODULES.html.sh (func_all_modules): Add getdomainname,
106768         xgetdomainname.
106770 2003-09-25  Simon Josefsson  <jas@extundo.com>
106771             Bruno Haible  <bruno@clisp.org>
106773         * m4/getdomainname.m4: New file.
106775 2003-09-25  Simon Josefsson  <jas@extundo.com>
106776             Bruno Haible  <bruno@clisp.org>
106778         * lib/getdomainname.h: New file.
106779         * lib/getdomainname.c: New file.
106781 2003-09-25  Karl Berry  <karl@gnu.org>
106783         * lib/argp-fmtstream.c, argp-help.c: update from libc.
106785 2003-09-25  Karl Berry  <karl@gnu.org>
106787         * config/install-sh: update from automake.
106789 2003-09-25  Bruno Haible  <bruno@clisp.org>
106791         * modules/version-etc-2: New file, from modules/version-etc with
106792         modifications.
106793         * MODULES.html.sh (func_all_modules): Add version-etc-2.
106795 2003-09-25  Bruno Haible  <bruno@clisp.org>
106797         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
106798         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
106800 2003-09-24  Simon Josefsson  <jas@extundo.com>
106802         * modules/xgethostname: Add xgethostname.h.
106804 2003-09-24  Paul Eggert  <eggert@twinsun.com>
106806         * lib/linebuffer.c (freebuffer): Don't free the argument, just
106807         the buffer associated with the argument.  Bug reported by
106808         Simon Josefsson.
106810 2003-09-24  Paul Eggert  <eggert@twinsun.com>
106812         * README: Document assumptions that 'int' is at least 32 bits
106813         wide, that integer arithmetic is 2's complement without overflow,
106814         that there are no holes in integer values, that adding sizes of
106815         two nonoverlapping objects can't overflow, and that all-bits-zero
106816         yields scalar zero.  Fix spelling and capitalization typos.
106818 2003-09-19  Karl Berry  <karl@gnu.org>
106820         * lib/argp.h: update from libc.
106822 2003-09-17  Paul Eggert  <eggert@twinsun.com>
106824         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
106825         to avoid spurious warnings like "AC_RUN_IFELSE was called before
106826         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
106828 2003-09-17  Paul Eggert  <eggert@twinsun.com>
106830         * gnulib-tool: Use "test -h", not "test -L", for portability
106831         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
106832         (tags_regexp): Remove, since \| doesn't conform to POSIX.
106833         (sed_extract_prog): Issue s commands one-by-one, rather than
106834         using \| in one s command.
106836 2003-09-16  Paul Eggert  <eggert@twinsun.com>
106838         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
106839         input error, instead of returning NULL the next time we are called
106840         (and therefore losing track of errno).
106842 2003-09-16  Bruno Haible  <bruno@clisp.org>
106844         * gnulib-tool (func_create_testdir): Warn about duplicated
106845         dependencies.
106847 2003-09-15  Paul Eggert  <eggert@twinsun.com>
106849         * modules/argmatch, modules/fatal, modules/obstack,
106850         modules/xalloc, modules/xgethostname: Sort dependencies by
106851         importance, not alphabetically.
106853 2003-09-15  Paul Eggert  <eggert@twinsun.com>
106855         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
106856         fails, so that the caller gets the proper errno.
106858         * lib/readutmp.c (read_utmp): Likewise.
106859         Check for fstat error.  Close stream and free storage
106860         when failing.
106862 2003-09-14  Karl Berry  <karl@gnu.org>
106864         * config/srclist.txt (strdup.c): disable for c89 changes.
106866 2003-09-14  Jim Meyering  <jim@meyering.net>
106868         * lib/getloadavg.c: Correct cpp indentation.
106869         * lib/strdup.c: Likewise.
106870         * lib/vasnprintf.c: Likewise.
106872 2003-09-14  Bruno Haible  <bruno@clisp.org>
106874         * modules/fwriteerror: New file.
106875         * MODULES.html.sh (func_all_modules): Add fwriteerror.
106877 2003-09-14  Bruno Haible  <bruno@clisp.org>
106879         * lib/fwriteerror.h: New file.
106880         * lib/fwriteerror.c: New file.
106882 2003-09-12  Paul Eggert  <eggert@twinsun.com>
106884         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
106885         modules/xgethostname, modules/xalloc: Depend on exit.
106887 2003-09-12  Paul Eggert  <eggert@twinsun.com>
106889         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
106891         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
106892         and AC_MINIX, too, so that their extensions are available.
106894         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
106895         This macro has been superseded by gl_BACKUPFILE.
106897         More patches to assume C89 or better.
106899         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
106901         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
106902         unconditionally.
106903         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
106904         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
106905         Include <string.h>, <stdlib.h> unconditionally.
106906         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
106907         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
106908         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
106909         headers or for string.h.
106910         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
106911         or strtoul.
106913         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
106914         headers.
106915         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
106916         * m4/userspec.m4 (gl_USERSPEC): Likewise.
106917         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
106918         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
106919         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
106920         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
106921         memcpy, memset.
106922         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
106923         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
106924         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
106925         strtol.
106926         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
106927         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
106928         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
106929         strtoul.
106931 2003-09-12  Paul Eggert  <eggert@twinsun.com>
106933         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
106934         * lib/obstack.c [!defined _LIBC]: Likewise.
106935         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
106936         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
106937         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
106939         More changes to assume C89 or better.
106941         * lib/error.c (error_tail): Assume vprintf.
106943         * lib/argmatch.c (getenv): Remove decl.
106944         * lib/progreloc.c (get_full_program_name): Define via prototype.
106945         * lib/setenv.c (clearenv): Likewise.
106946         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
106947         needed.
106948         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
106949         (malloc, memcpy): Remove decls.
106950         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
106951         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
106952         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
106953         (memcpy): Remove macro.
106954         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
106955         (__P): Remove.  All uses removed.
106956         (PTR): Remove.  All uses changed to void *.
106957         (CHAR_BIT, NULL): Remove.
106958         (spaces, zeros, memset_space, memset_zero)
106959         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
106960         Remove.
106961         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
106962         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
106963         Define with prototype.
106964         Remove now-unnecessary prototype decl.
106965         (extra_args_spec): Assume ANSI C.  All uses changed.
106966         (extra_args_spec_iso): Remove.
106967         (my_strftime, emacs_strftimeu): Define via prototype.
106968         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
106969         unconditionally.
106970         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
106971         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
106972         (strtoul, strtol): Remove decls.
106973         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
106974         LONG_MAX): Remove.
106975         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
106976         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
106977         (LOCALE_PARAM_PROTO): New macro.
106978         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
106979         (INTERNAL (strtol), strtol): Define with a prototype.
106980         (PARAMS): Remove.  All uses removed.
106981         * lib/tempname.c: Include <string.h> unconditionally.
106982         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
106983         * lib/xgethostname.c (main): Define with a prototype.
106984         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
106985         Include <stdlib.h> unconditionally.
106986         (calloc, malloc, realloc, free): Remove decls.
106987         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
106988         Include <stdlib.h> unconditionally.  Sort include file names.
106989         (strtod): Remove.
106990         (xstrtod): Define with a prototype.
106991         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
106992         (strtol, strtoul): Remove decls.
106994 2003-09-11  Paul Eggert  <eggert@twinsun.com>
106996         More patches to assume C89 or better.
106997         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
106998         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
106999         string.h, memchr, STDC_HEADERS.
107001 2003-09-11  Paul Eggert  <eggert@twinsun.com>
107003         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
107004         Include <stdlib.h>, <string.h> unconditionally.
107005         Remove now-unnecessary cast to char *.
107006         * lib/strnlen.c: Include <string.h> unconditionally.
107007         * lib/yesno.c (yesno): Define with a prototype.
107009 2003-09-11  Bruno Haible  <bruno@clisp.org>
107011         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
107013 2003-09-10  Jim Meyering  <jim@meyering.net>
107015         * lib/error.c: Correct indentation of cpp directives.
107017 2003-09-10  Bruno Haible  <bruno@clisp.org>
107019         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
107020         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
107021         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
107022         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
107023         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
107024         <stdlib.h> and <string.h> checks.
107025         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
107026         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
107028 2003-09-10  Bruno Haible  <bruno@clisp.org>
107030         * lib/strcspn.c: Include <string.h> unconditionally.
107031         * lib/strpbrk.c: Include <string.h> unconditionally.
107032         * lib/strstr.c: Include <string.h> unconditionally.
107033         * lib/unicodeio.c: Include <string.h> unconditionally.
107034         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
107035         * lib/unsetenv.c: Likewise.
107036         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
107037         * lib/yesno.c: Include <stdlib.h> unconditionally.
107038         (rpmatch): Add prototype.
107040 2003-09-09  Paul Eggert  <eggert@twinsun.com>
107042         More patches to assume C89 or better.
107043         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
107044         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
107045         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
107046         or for string.h.
107047         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
107048         stdlib.h.
107049         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
107050         C headers.
107051         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
107052         string.h.
107053         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
107054         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
107055         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
107056         or for string.h.
107057         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
107058         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
107059         C headers.
107060         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
107061         memcpy.
107062         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
107063         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
107064         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
107065         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
107066         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
107067         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
107068         string.h, free.
107069         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
107070         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
107071         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
107072         C headers, or for string.h.
107073         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
107074         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
107075         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
107076         headers, memory.h, stdlib.h, string.h, strings.h.
107077         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
107078         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
107079         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
107080         strchr.
107081         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
107082         headers, memory.h, string.h.
107083         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
107084         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
107085         free.
107086         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
107087         headers.
107088         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
107089         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
107090         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
107091         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
107092         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
107094 2003-09-09  Paul Eggert  <eggert@twinsun.com>
107096         More K&R removal.
107098         * lib/acosl.c (main): Use a prototype.
107099         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
107100         tanl.c: Likewise.
107102         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
107104         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
107105         (getopt, etopt_long, getopt_long_only, _getopt_internal)
107106         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
107107         with a prototype.
107108         * lib/getopt.c (const): Remove macro.
107109         Include <string.h> unconditionally.
107110         (my_index): Remove; all uses changed to strchr.
107111         (strlen): Remove decl.
107112         (exchange): Remove forward decl; no longer needed.
107113         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
107114         Define with prototype.
107115         * lib/getopt1.c (const): Remove macro.
107116         (getopt_long, getopt_long_only, main): Define with prototype.
107118         * lib/getugroups.c: Include <string.h> unconditionally.
107120         * lib/getusershell.c: Include <stdlib.h> unconditionally.
107121         (getusershell, setusershell, endusershell, readname, main):
107122         Define with prototypes.
107124         * lib/group-member.c: Include group-member.h first.
107125         Include <stdlib.h> unconditionally.
107127         * lib/hard-locale.c: Include hard-locale.h first.
107128         Include <stdlib.h>, <string.h> unconditionally.
107130         * lib/hash.c (free, malloc): Remove decls.
107131         Include <stdlib.h> unconditionally.
107133         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
107134         (getenv): Do not declare.
107136         * lib/idcache.c: Include <string.h> unconditionally.
107138         * lib/long-options.c: Include long-options.h first, to test interface.
107139         Include <stdlib.h> unconditionally.
107141         * lib/makepath.c: Include makepath.h first, to test interface.
107142         Include <stdlib.h> and <string.h> unconditionally.
107144         * lib/linebuffer.c: Include <stdlib.h>.
107145         (free): Remove decl.
107147         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
107148         stddef.h. rpl_malloc returns void *, not char *.
107149         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
107150         prototype.
107152         * lib/md5.h: Include <limits.h> unconditionally.
107153         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
107154         (__P): Remove; all uses removed.
107155         * lib/md5.c: Include "md5.h" first.
107156         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
107157         md5_buffer, md5_process_bytes, md5_process_block):
107158         Define with prototypes.
107159         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
107160         * lib/sha.c: Include "sha.h" first.
107161         Include <stdlib.h>, <string.h> unconditionally.
107163         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
107164         * lib/memcmp.c (__ptr_t): Likewise.
107165         * lib/memrchr.c (__ptr_t): Likewise.
107166         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
107167         Include <string.h> unconditionally.
107168         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
107169         * lib/memchr.c: Include <stdlib.h> unconditionally.
107170         * lib/memchr.c (LONG_MAX): Remove.
107171         * lib/memrchr.c (LONG_MAX): Likewise.
107172         * lib/memchr.c (__memchr): Define via a prototype.
107173         * lib/memrchr.c (__memrchr): Likewise.
107174         * lib/memcmp.c (__P): Remove, and remove all uses.
107175         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
107176         Remove forward decls; no longer needed.
107177         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
107178         Use types required by C89 in prototype.
107180         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
107181         * lib/savedir.c: Likewise.
107182         * lib/mkdir.c (free): Remove decl.
107183         * lib/rmdir.c (rmdir): Define with a prototype.
107184         * lib/savedir.c: Include savedir.h first, to test interface.
107186         * lib/mktime.c (STDC_HEADERS): Remove.
107187         Include <stdlib.h>, <string.h> unconditionally.
107189         * lib/modechange.c: Include <stdlib.h> unconditionally.
107190         (malloc): Remove decl.
107192         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
107193         (free): Remove decl.
107195         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
107196         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
107197         (This type really should be intptr_t, but that's a C99ism.)
107198         (_obstack_memcpy): Remove: all uses changed to memcpy.
107199         Include <string.h> unconditionally.
107200         (struct obstack): Assume __STDC__ for types of members
107201         chunkfun, freefun, extra_arg.
107202         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
107203         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
107204         obstack_begin, obstack_specify_allocation,
107205         obstack_specify_allocation_with_arg, obstack_chunkfun,
107206         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
107207         Remove unprototyped decls and the macros that use them.
107208         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
107209         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
107210         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
107211         (defined __STDC__ && __STDC__)]:
107212         Remove nonprototyped code.
107213         Include <stdlib.h> unconditionally.
107214         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
107215         _obstack_allocated_p, _obstack_free, obstack_free,
107216         _obstack_memory_used, print_and_abort):
107217         Define using prototypes.
107218         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
107219         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
107220         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
107221         obstack_next_free, obstack_object_size, obstack_room) [0]:
107222         Remove unused, unprototyped code.
107224         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
107226         * lib/physmem.c (physmem_total, physmem_available, main): Define
107227         with prototypes.
107229         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
107230         (main): Define with a prototype.
107232         * lib/posixver.c (getenv): Remove decl.
107234         * lib/putenv.c (malloc): Returns void *, not char *.
107235         Include <string.h> unconditionally.
107236         (strchr, memcpy, NULL): Do not define.
107238         * lib/readtokens.c: Include readtokens.h first, to test interface.
107239         Include <stdlib.h>, <string.h> unconditionally.
107240         (init_tokenbuffer): Define with a prototype.
107242         * lib/regex.c (PARAMS): Remove.  All uses removed.
107243         All uses of _RE_ARGS removed, too.
107244         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
107245         unconditionally.
107246         (bzero): Assume memset exists.
107247         (memcmp, memcpy, NULL): Remove.
107248         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
107249         char, or assignments to local vars of type signed char.
107250         (init_syntax_once, PREFIX(extract_number_and_incr),
107251         PREFIX(print_partial_compiled_pattern),
107252         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
107253         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
107254         PREFIX(regex_grow_registers), PREFIX(regex_compile),
107255         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
107256         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
107257         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
107258         wcs_compile_range, byte_compile_range, truncate_wchar,
107259         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
107260         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
107261         count_mbs_length, wcs_re_match_2_internal,
107262         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
107263         PREFIX(alt_match_null_string_p),
107264         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
107265         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
107266         regfree, PREFIX(extract_number)): Define with prototype.  Remove
107267         now-unnecessary declaration, if any.
107268         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
107269         regcomp, regexec):
107270         Remove now-unnecessary casts among pointer types.
107271         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
107273         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
107274         (free): Remove decl.
107276         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
107278         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
107279         (free): Remove decl.
107281         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
107282         * lib/xgetcwd.c: Likewise.
107284         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
107285         (free): Remove decl.
107287         * lib/strchrnul.c (strchrnul): Define with a prototype.
107288         Fix bug: c_in was not converted to char before searching.
107290         The following changes are not K&R related:
107292         * lib/group-member.h: Include <sys/types.h>, so that this file is
107293         self-contained.
107294         * lib/makepath.h: Likewise.
107296         * lib/getusershell.c (readname, default_index, line_size, readname):
107297         Use size_t, not int, for sizes.
107298         (readname): If the size overflows, report an error instead of
107299         looping forever.
107301 2003-09-09  Paul Eggert  <eggert@twinsun.com>
107303         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
107304         libc.
107306 2003-09-09  Paul Eggert  <eggert@twinsun.com>
107308         * README: New section: portability guidelines.
107310 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
107312         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
107313         C89 spec.
107315 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
107317         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
107319 2003-09-08  Paul Eggert  <eggert@twinsun.com>
107321         Assume C89 or better; remove K&R cruft.
107322         A few of these changes were first proposed by Derek Robert Price
107323         in <http://mail.gnu.org/r/bug-gnulib/2003-07/msg00105.html>.
107325         * lib/addext.c: Include <string.h> unconditionally.
107326         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
107327         Don't declare getenv or malloc.
107329         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
107330         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
107331         (NULL): Remove.
107332         (find_stack_direction, alloca): Use prototypes.
107334         * lib/atexit.c (atexit): Define using a prototype.
107336         * lib/basename.c, dirname.c, stripslash.c:
107337         Include <string.h> unconditionally.
107339         * lib/bcopy.c: Include <stddef.h>.
107340         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
107342         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
107344         * lib/error.h (error, error_at_line, error_print_progname)
107345         [! (defined (__STDC__) && __STDC__)]: Remove decls.
107346         * lib/error.c: Include error.h first, to check interface.
107347         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
107348         (VA_START): Remove; all uses changeed to va_start.
107349         (exit, strerror): Remove decls.
107350         (error_print_progname): Prototype uncondionally.
107351         Don't include <errno.h>; no longer needed.
107352         (private_strerror): Remove.
107353         (error_tail): Always define.
107354         (error, error_at_line): Assume C89 or better; always use prototypes.
107355         * lib/fatal.c: Include "fatal.h" first, to test interface.
107356         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
107357         (VA_START): Remove; all uses changed to va_start.
107358         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
107359         this case.
107360         (exit): Remove decl.
107361         (fatal): Prototype unconditionally.  Assume va_start works.
107362         Abort at end, to pacify gcc.
107364         * lib/euidaccess.c (main): Define with a prototype.
107366         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
107368         * lib/exitfail.c: Include <stdlib.h> unconditionally.
107370         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
107371         prototypes.
107372         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
107373         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
107374         (getenv): Remove decl.
107375         (fnmatch): Define using a prototype.
107376         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
107377         (FCT): Define using a prototype.
107379         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
107381         * lib/gethostname.c: Include <stddef.h>.
107382         (gethostname): Define with prototype.  Length is size_t, not int.
107384 2003-09-08  Paul Eggert  <eggert@twinsun.com>
107386         Assume C89 or better; remove K&R cruft.
107387         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
107388         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
107389         string.h, getenv, malloc.
107390         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
107391         headers.
107392         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
107393         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
107394         do not check for strerror.
107395         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
107396         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
107397         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
107398         do not check for doprnt or vprintf.
107399         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
107400         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
107402 2003-09-08  Paul Eggert  <eggert@twinsun.com>
107404         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
107405         getversion.c should have been removed then, but was accidentally
107406         preserved.
107408         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
107409         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
107411 2003-09-08  Karl Berry  <karl@gnu.org>
107413         * config/config.sub, config.guess, srclistvars.sh: update from savannah
107414                 config, forget about prep.
107416         * config/depcomp, missing: update from automake.
107418 2003-09-07  Paul Eggert  <eggert@twinsun.com>
107420         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
107421         <http://mail.gnu.org/r/bug-gnulib/2003-09/msg00028.html>.
107423 2003-09-07  Paul Eggert  <eggert@twinsun.com>
107425         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
107426         copy_tm_result.  Bug reported by Simon Josefsson in
107427         <http://mail.gnu.org/r/bug-gnulib/2003-09/msg00028.html>.
107429 2003-09-06  Paul Eggert  <eggert@twinsun.com>
107431         * m4/time_r.m4: New file.
107432         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
107433         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
107434         is. Check for timegm declaration.
107435         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
107436         Do not check for gmtime_r.
107437         Replace mktime if __mktime_internal does not exist and if mktime
107438         hasn't been replaced already.
107440 2003-09-06  Paul Eggert  <eggert@twinsun.com>
107442         * lib/time_r.c, lib/time_r.h: New files.
107444         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
107445         __localtime_r.
107446         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
107447         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
107449         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
107450         __gmtime_r.
107451         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
107452         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
107453         Include <time_r.h>.
107455         * lib/timegm.c: Switch to glibc implementation, with the following
107456         changes:
107457         [defined HAVE_CONFIG_H]: Include <config.h>.
107458         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
107459         (__mktime_internal) [!defined _LIBC]: New decl.
107460         (__gmtime_r) [!defined _LIBC]: New macro and function.
107461         (timegm): Use a prototype, since gnulib assumes C89.
107462         Do not bother declaring tmp to be const, as it's not really usefu.
107463         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
107464         (timegm): Declare only if HAVE_DECL_TIMEGM.
107466 2003-09-06  Paul Eggert  <eggert@twinsun.com>
107468         * MODULES.html.sh (func_all_modules): Add time_r.
107469         * modules/time_r: New file.
107470         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
107471         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
107473 2003-09-03  Paul Eggert  <eggert@twinsun.com>
107475         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
107476         Bug reported by Lute Kamstra in
107477         <http://mail.gnu.org/r/bug-gnulib/2003-09/msg00003.html>.
107479         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
107480         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
107481         course with correspondingly smaller numbers for tomorrow and
107482         yesterday.  From Tadayoshi Funaba.  Originally installed into
107483         sh-utils on 1999-08-07, but the patch got lost (I guess during the
107484         coreutils merge?).
107486 2003-08-31  Simon Josefsson  <jas@extundo.com>
107488         * modules/timegm: New file.
107489         * MODULES.html.sh (func_all_modules): Add timegm.
107491 2003-08-31  Simon Josefsson  <jas@extundo.com>
107493         * m4/timegm.m4: New file.
107495 2003-08-31  Simon Josefsson  <jas@extundo.com>
107497         * lib/timegm.h: New file.
107498         * lib/timegm.c: New file.  Based on
107499         wget-1.8.2/src/http.c:mktime_from_utc.
107501 2003-08-31  Karl Berry  <karl@gnu.org>
107503         * lib/argp.h: update from libc.
107505 2003-08-28  Bruno Haible  <bruno@clisp.org>
107507         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
107508         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
107509         followed by '#define fnmatch fnmatch_posix' gives an error.
107511 2003-08-28  Bruno Haible  <bruno@clisp.org>
107513         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
107514         warning on QNX, which defines O_BINARY to 000000.
107516 2003-08-27  Jim Meyering  <jim@meyering.net>
107518         * m4/mkstemp.m4: Require that the system mkstemp be able to create
107519         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
107520         would fail after 32.  Reported by Danny Levinson.  Details here:
107521         http://mail.gnu.org/r/bug-coreutils/2003-08/msg00124.html
107523 2003-08-24  Bruno Haible  <bruno@clisp.org>
107525         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
107526         MSVC7 <stdio.h> is included later.
107528 2003-08-22  Simon Josefsson  <jas@extundo.com>
107530         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
107532 2003-08-20  Karl Berry  <karl@gnu.org>
107534         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
107536 2003-08-20  Bruno Haible  <bruno@clisp.org>
107538         * modules/progname: New file.
107539         * MODULES.html.sh (func_all_modules): Add progname.
107541 2003-08-20  Bruno Haible  <bruno@clisp.org>
107543         * lib/progname.h: New file, from GNU gettext.
107544         * lib/progname.c: New file, from GNU gettext.
107545         * lib/progreloc.c: New file, from GNU gettext.
107547 2003-08-19  Jim Meyering  <jim@meyering.net>
107549         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
107550         http://mail.gnu.org/r/bug-gnulib/2003-08/msg00155.html
107552 2003-08-19  Bruno Haible  <bruno@clisp.org>
107554         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
107555         more.
107557 2003-08-19  Bruno Haible  <bruno@clisp.org>
107559         * lib/xstrdup.c: Assume <string.h> exists.
107561 2003-08-18  Paul Eggert  <eggert@twinsun.com>
107563         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
107564         in makefile rules.
107566 2003-08-18  Jim Meyering  <jim@meyering.net>
107568         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
107569         * m4/lib-ld.m4: Likewise.
107571 2003-08-18  Jim Meyering  <jim@meyering.net>
107573         * lib/setenv.h: Indent nested cpp directive.
107574         * lib/vasnprintf.c: Remove trailing blanks.
107576 2003-08-17  Simon Josefsson  <jas@extundo.com>
107578         * modules/xstrndup: New file.
107579         * MODULES.html.sh (func_all_modules): Add xstrndup.
107581 2003-08-17  Simon Josefsson  <jas@extundo.com>
107583         * modules/argp: Fix autoconf macro name. Add more dependencies.
107585 2003-08-17  Simon Josefsson  <jas@extundo.com>
107587         * m4/xstrndup.m4: New file.
107589 2003-08-17  Simon Josefsson  <jas@extundo.com>
107591         * m4/argp.m4: New file.
107593 2003-08-17  Simon Josefsson  <jas@extundo.com>
107594             Bruno Haible  <bruno@clisp.org>
107596         * lib/xstrndup.h: New file.
107597         * lib/xstrndup.c: New file.
107599 2003-08-17  Bruno Haible  <bruno@clisp.org>
107601         * modules/strndup (Files, Include): Add lib/strndup.h.
107603 2003-08-17  Bruno Haible  <bruno@clisp.org>
107605         * modules/euidaccess (Files): Add lib/euidaccess.h.
107607 2003-08-17  Bruno Haible  <bruno@clisp.org>
107609         * lib/strndup.h: New file.
107611 2003-08-17  Bruno Haible  <bruno@clisp.org>
107613         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
107614         like AC_GNU_SOURCE.
107615         * modules/extensions (configure.ac): Comment out the invocation of
107616         gl_USE_SYSTEM_EXTENSIONS.
107618 2003-08-16  Paul Eggert  <eggert@twinsun.com>
107620         Merges from coreutils, etc.
107621         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
107622         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
107623         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
107624         fixing a typo.
107625         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
107626         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
107628 2003-08-16  Paul Eggert  <eggert@twinsun.com>
107630         Document merge from coreutils.
107631         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
107632         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
107633         * modules/utime: Add m4/utimes-null.m4.
107635 2003-08-16  Paul Eggert  <eggert@twinsun.com>
107637         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
107638         space, undoing this 2003-08-12 change:
107639         <http://mail.gnu.org/r/bug-gnulib/2003-08/msg00080.html>
107641 2003-08-16  Paul Eggert  <eggert@twinsun.com>
107643         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
107644         strtoul.c from libc, undoing this 2003-08-12 change:
107645         <http://mail.gnu.org/r/bug-gnulib/2003-08/msg00080.html>
107647 2003-08-16  Jim Meyering  <jim@meyering.net>
107649         Merges from coreutils.
107650         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
107651         prefix.  Adjust cache variables similarly.  Create 500 rather than
107652         just 300 files, to exercise bug on Darwin6.5, too.
107653         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
107654         $missing_dir.
107655         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
107656         AM_SYS_POSIX_TERMIOS.
107657         Reported by mkc@mathdogs.com.
107658         Also change use of $am_cv_sys_posix_termios
107659         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
107660         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
107661         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
107662         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
107663         in /proc/mounts until it finds one with matching device number.  This
107664         is unnecessary when the FILE argument *is* a mount point.  No stat call
107665         is necessary in that case.  So, disable the statvfs-testing code on
107666         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
107667         as RedHat bug# 84846.
107668         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
107669         to 1MB, so as not to render systems with no stack size limit (e.g.,
107670         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
107671         Include <unistd.h>.  On some systems,
107672         it is required for the definition of _SC_PAGESIZE.
107674 2003-08-16  Jim Meyering  <jim@meyering.net>
107676         Merge from coreutils.
107677         * lib/xstrtoimax.c: #else #if -> #elif.
107678         * lib/xstrtoumax.c: Likewise.
107680 2003-08-16  Jim Meyering  <jim@meyering.net>
107682         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
107683         * m4/utimes.m4: Removed.
107684         * m4/utimes-null.m4: Renamed from utimes.m4.
107686         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
107687         to 1MB, so as not to render systems with no stack size limit (e.g.,
107688         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
107689         Include <unistd.h>.  On some systems,
107690         it is required for the definition of _SC_PAGESIZE.
107692 2003-08-16  Jim Meyering  <jim@meyering.net>
107693         and Paul Eggert  <eggert@cs.ucla.edu>
107695         Merges from coreutils, etc.
107697         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
107698         using the latest version from cvs.  This avoids problems with #line
107699         directives using a vendor (Sun) compiler.
107700         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
107701         Don't set GETGROUPS_LIB here; now it's
107702         done via getgroups.m4's wrapper function.
107703         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
107704         rather than just in sh-util/configure.in, so that the
107705         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
107706         same.
107707         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
107708         AC_FUNC_GETLOADAVG where to find getloadavg.c.
107709         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
107710         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
107711         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
107712         Remove code that is now done by the newly-required macros.
107713         Append $(EXEEXT) to DF_PROG.
107714         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
107715         Do not invoke or require the following here,
107716         since prereq.m4 or some gnulib .m4 now does this for us:
107717         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
107718         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
107719         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
107720         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
107721         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
107722         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
107723         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
107724         AC_FUNC_OBSTACK.
107725         Do not replace the following functions, as this is now the job
107726         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
107727         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
107728         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
107729         atexit getpass, strdup, getpagesize.
107730         Replace 'raise'.
107731         Do not check for the following functions, as this is now the job
107732         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
107733         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
107734         setregid.
107735         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
107736         Check for sys/sysctl.h.
107737         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
107738         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
107739         of checking for ssize_t ourselves.
107741         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
107742         Require every macro that gnulib/modules/* suggests for us.
107743         (jm_PREREQ_ADDEXT): New macro.
107744         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
107745         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
107747         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
107748         (gl_PHYSMEM): Use it.
107749         Also check for `table' function.
107750         Check for new headers and functions.
107751         Add check for sys/sysmp.h.
107752         With suggestions from Kaveh Ghazi.
107753         Ignore headers that are present but cannot be compiled.  This
107754         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
107755         C 5.4.
107757 2003-08-15  Paul Eggert  <eggert@twinsun.com>
107759         Document merge from coreutils.
107760         * modules/userspec: Depend on posixver.
107761         * modules/strftime: Depend on tzset.
107763 2003-08-15  Paul Eggert  <eggert@twinsun.com>
107765         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
107766         rather than tab, after '#' in shell-script copyright notices.
107767         Suggested by Bruno Haible.
107769 2003-08-15  Paul Eggert  <eggert@twinsun.com>
107771         * config/srclist-update: Use three spaces, rather than tab, after '#'
107772         in shell-script copyright notices.  Suggested by Bruno Haible.
107773         Remove unnecessary parenthesization in regular expression.
107775 2003-08-15  Jim Meyering  <jim@meyering.net>
107777         Merge from coreutils.
107778         * lib/xgethostname.c: Include <stdlib.h>.
107779         (xghostname): Don't exit for anything other than memory-related
107780         failure; just return NULL.
107781         * lib/userspec.c: Include "posixver.h".
107782         (parse_user_spec): Accept `.' as a separator only
107783         in pre-POSIX-200112 mode.
107784         * lib/strtoimax.c: Use #elif rather than #else #if.
107785         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
107786         Remove function, now that we can rely on a working tzset function.
107787         [!_LIBC]: Ensure that the required autoconf test has been run.
107788         [!defined _NL_CURRENT && HAVE_STRFTIME]:
107789         Use underlying_strftime for %r.
107790         * lib/sha.c: Merge in some clean-up and optimization changes from
107791         glibc.
107792         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
107793         Ensure that it is a multiple of 64.
107794         Rearrange loop exit tests so as to avoid performing an
107795         additional fread after encountering an error or EOF.
107796         * lib/realloc.c: Update copyright date.
107798 2003-08-15  Jim Meyering  <jim@meyering.net>
107799         and Paul Eggert  <eggert@twinsun.com>
107801         Merge from coreutils.
107802         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
107803         member but strut utmpx does not.  Needed for AIX 4.3.3.
107804         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
107806 2003-08-15  Jim Meyering  <jim@meyering.net>
107807         and Paul Eggert  <eggert@cs.ucla.edu>
107809         Merges from coreutils, etc.
107810         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
107811         Require gl_FUNC_TZSET_CLOBBER.
107812         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
107813         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
107814         members.
107816 2003-08-14  Paul Eggert  <eggert@twinsun.com>
107818         Help the merge from coreutils.
107819         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
107820         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
107821         * m4/tzset.m4: Use it too.
107823 2003-08-14  Paul Eggert  <eggert@twinsun.com>
107825         * modules/tzset: New file.
107827 2003-08-14  Jim Meyering  <jim@meyering.net>
107829         Merges from coreutils.
107830         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
107831         variable names, rather than @FNMATCH_H@.
107832         * modules/alloca: Likewise for $(ALLOCA_H).
107834         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
107835         the three copies of the literal target, `fnmatch.h'.
107836         * modules/alloca (alloca.h): Likewise.
107838 2003-08-14  Jim Meyering  <jim@meyering.net>
107840         Merge from coreutils.
107841         * m4/tzset.m4: New file.
107842         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
107843         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
107844         otherwise, AIX 5.1 systems would end up using the latter.
107845         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
107846         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
107847         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
107848         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
107850 2003-08-14  Jim Meyering  <jim@meyering.net>
107852         Merge from coreutils.
107853         * lib/obstack.h: Whitespace changes.
107854         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
107855         and xcalloc return values.
107856         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
107857         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
107858         hang on OSF/1 5.1 for DIR on both local and remote file systems.
107859         Reported by (and fix confirmed by) Nelson H. F. Beebe.
107860         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
107861         error from mntctl.
107862         Use mntctl's return value to drive the entry-processing loop, since
107863         we can't rely on the value of the vmt_length member in the last
107864         entry.  On some systems doing so could result in exhausting
107865         virtual memory.  Based in part on a patch from Mike Jetzer.
107867 2003-08-14  Jim Meyering  <jim@meyering.net>
107868         and Paul Eggert  <eggert@twinsun.com>
107870         Merges from coreutils, plus other fixes.
107871         * lib/physmem.c: Merge in portability changes from gcc/libiberty
107872         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
107873         for credits and details.  Thanks to Kaveh Ghazi for helping
107874         to keep these files in sync.
107875         (ARRAY_SIZE): Define it.
107876         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
107877         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
107878         (memcasecmp): Don't assume size_t fits in unsigned int.
107879         Remove casts and duplicate code.
107880         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
107881         (memcpy): Remove definition.
107882         Merge in some clean-up and optimization changes from glibc.
107883         [BLOCKSIZE]: Move definition to top of file.
107884         Ensure that it is a multiple of 64.
107885         Rearrange loop exit tests so as to avoid performing an
107886         additional fread after encountering an error or EOF.
107887         * lib/md5.h (md5_uintptr): Define.
107888         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
107889         return to the initial working directory.  Preserve errno
107890         for caller.
107891         * lib/idcache.c: Include "xalloc.h".
107892         (xmalloc, xrealloc): Remove decls.
107893         (getuser): Remove casts no longer required in C89.
107894         * lib/human.c: Include stdio.h, for sprintf.
107895         * lib/group-member.c: Include "xalloc.h".
107896         (xmalloc, xrealloc): Remove decls.
107897         (get_group_info): Remove casts no longer required in C89.
107898         * lib/getusershell.c (readname): Remove casts no longer required in
107899         C89.
107900         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
107901         * lib/getline.c: Whitespace fix, from coreutils.
107903 2003-08-13  Paul Eggert  <eggert@twinsun.com>
107905         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
107906         Check for isascii.
107908         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
107909         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
107910         Undo previous (whitespace-only) change.
107912 2003-08-13  Paul Eggert  <eggert@twinsun.com>
107914         * lib/exclude.c: Include <ctype.h>
107915         (IN_CTYPE_DOMAIN): New macro.
107916         (is_space): New fn.
107917         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
107918         and empty lines.
107920         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
107921         Undo previous (whitespace-only) change.
107923 2003-08-13  Paul Eggert  <eggert@twinsun.com>
107925         * config/srclist-update: Change update back to the old behavior,
107926         leaving whitespace alone.  Use one 'sed' command rather than a
107927         pipeline.
107928         (fixlicense): Now a variable, not a function.
107929         (remove_trailing_blanks): Remove.
107930         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
107931         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
107932         Undo previous (whitespace-only) change.
107934 2003-08-12  Paul Eggert  <eggert@twinsun.com>
107936         Merge from coreutils.
107937         * modules/euidaccess: Add lib_SOURCES, include for new
107938         file euidaccess.h
107940 2003-08-12  Paul Eggert  <eggert@twinsun.com>
107942         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
107943         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
107944         Normalize leading white space and remove trailing white space.
107946         Merge from coreutils
107947         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
107949         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
107950         0.12.1.  These files are now being upgraded automatically by
107951         ../config/srclist-update.
107953 2003-08-12  Paul Eggert  <eggert@twinsun.com>
107955         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
107956         Normalize leading white space and remove trailing white space.
107957         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
107958         notice, as per ../config/srclist-update.
107960         Merge from coreutils.
107961         * lib/euidaccess.h: New file.
107962         * lib/euidaccess.c: Include it.
107963         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
107964         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
107965         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
107967 2003-08-12  Paul Eggert  <eggert@twinsun.com>
107969         * config/srclist-update: Add copyright notice.
107970         (remove_id_lines, remove_trailing_blanks): New constants.
107971         (fixfile): Use them to normalize spacing a bit in copied files.
107972         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
107973         Normalize leading white space and remove trailing white space.
107975         * config/texinfo.tex: Sync with texinfo.
107977         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
107978         strtoul.c from libc, to merge coreutils whitespace changes.
107980         * config/srclist.txt: Get the following m4 files from gettext:
107981         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
107982         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
107983         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
107984         wint_t.m4.
107986 2003-08-12  Karl Berry  <karl@gnu.org>
107988         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
107989         been made.
107991 2003-08-11  Paul Eggert  <eggert@twinsun.com>
107993         * modules/gnu-source, m4/gnu-source.m4:
107994         Remove; we're assuming Autoconf 2.54 or later now.
107995         Suggested by Bruno Haible.
107996         * MODULES.html.sh (func_all_modules): Remove gnu-source.
107998 2003-08-11  Bruno Haible  <bruno@clisp.org>
108000         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
108002 2003-08-11  Bruno Haible  <bruno@clisp.org>
108004         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
108005         (vasnprintf): Use it instead of wcslen.
108007 2003-08-11  Bruno Haible  <bruno@clisp.org>
108009         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
108010         value to ensure that _Bool promotes to int. Use #define for _Bool when
108011         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
108013 2003-08-10  Karl Berry  <karl@gnu.org>
108015         * lib/regex.h: update from libc (whitespace fix).
108017 2003-08-09  Paul Eggert  <eggert@twinsun.com>
108019         Merge some files from coreutils.  These changes were
108020         originally made by Jim Meyering.
108021         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
108022         many older Unixes require this.
108023         * lib/alloca.c (alloca): Remove cast to argument of free;
108024         no longer needed in C89.
108025         * lib/alloca_.h, regex.h: Fix white space to match
108026         what GNU indent does.
108028 2003-08-09  Paul Eggert  <eggert@twinsun.com>
108030         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
108031         apparently Emacs's Unicode mode got confused before my 2003-08-05
108032         checkin.
108034 2003-08-08  Paul Eggert  <eggert@twinsun.com>
108036         * m4/extensions.m4: New file.
108037         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
108038         Require gl_USE_SYSTEM_EXTENSIONS.
108039         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
108040         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
108042 2003-08-08  Paul Eggert  <eggert@twinsun.com>
108044         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
108045         * modules/extensions, modules/gnu-source: New files.
108046         * modules/timespec, modules/unlocked-io: Depend on extensions.
108048 2003-08-07  Paul Eggert  <eggert@twinsun.com>
108050         * modules/restrict: New file.
108051         * MODULES.html.sh (func_all_modules): Add restrict.
108052         * modules/regex: Depend on restrict.
108054 2003-08-07  Paul Eggert  <eggert@twinsun.com>
108056         * m4/restrict.m4: New file.
108057         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
108059 2003-08-07  Bruno Haible  <bruno@clisp.org>
108061         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
108062         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
108064 2003-08-07  Bruno Haible  <bruno@clisp.org>
108066         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
108067         makes the module 'getndelim2' compatible with the module 'getline'.
108069 2003-08-05  Paul Eggert  <eggert@twinsun.com>
108071         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
108072         byte with "\201" to avoid glitches when editing that source file
108073         with multi-gnome-terminal.
108075 2003-08-05  Paul Eggert  <eggert@twinsun.com>
108077         * lib/bumpalloc.h: Remove.
108079 2003-08-05  Paul Eggert  <eggert@twinsun.com>
108081         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
108082         * modules/bumpalloc: Remove.
108084 2003-08-04  Paul Eggert  <eggert@twinsun.com>
108086         * lib/getloadavg.c: Change copyright notice and spacing to conform to
108087         GNU coding style.
108089         Merge from coreutils.
108090         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
108091         1. From glibc.
108092         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
108093         from Karl Berry, implemented by Jim Meyering.
108094         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
108095         from Dmitry V. Levin.
108096         Remove anachronistic cast of xrealloc.
108097         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
108098         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
108099         type. Otherwise, it wouldn't compile with at least /bin/cc on
108100         ymp-cray-unicos9.0.2.X.
108101         Combine two mostly-identical uses of alloca into one.
108102         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
108104 2003-08-04  Dave Love  <d.love@dl.ac.uk>
108106         [From Emacs.]
108108         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
108109         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
108110         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
108111         obsolete NLIST_NAME_UNION.
108112         [__GNU__]: Undef BSD and FSCALE.
108113         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
108115 2003-08-03  Paul Eggert  <eggert@twinsun.com>
108117         * lib/stdbool_.h (_Bool): Make it signed char, instead of
108118         an enum type, so that it's guaranteed to promote to int.  See:
108119         <http://mail.gnu.org/r/bug-gnulib/2003-07/msg00124.html>
108121 2003-08-03  Karl Berry  <karl@gnu.org>
108123         * config/depcomp: update from automake.
108125 2003-07-31  Paul Eggert  <eggert@twinsun.com>
108127         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
108128         (strerror): Don't assume that a printable int fits in 14 bytes.
108130 2003-07-31  Bruno Haible  <bruno@clisp.org>
108132         * modules/getpass-gnu: New file.
108133         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
108135 2003-07-31  Bruno Haible  <bruno@clisp.org>
108137         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
108139 2003-07-24  Karl Berry  <karl@gnu.org>
108141         * config/missing: update from automake.
108143 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
108144             Bruno Haible  <bruno@clisp.org>
108146         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
108147         * lib/getline.c (getline, getdelim): Likewise.
108148         Remove _GNU_SOURCE define; now it's defined in config.h through
108149         m4/getline.m4.
108151 2003-07-23  Karl Berry  <karl@gnu.org>
108153         * config/config.sub: update from prep.
108155 2003-07-22  Paul Eggert  <eggert@twinsun.com>
108157         * modules/xalloc (Depends-on): Add exitfail.
108158         * modules/xmemcoll: Likewise.
108160 2003-07-22  Paul Eggert  <eggert@twinsun.com>
108162         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
108163         over-parenthesization in macros.
108165         Sync with coreutils.
108167         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
108168         required by C99.
108170         Use `exit_failure' for xalloc and xmemcoll instead of their own
108171         private exit-failure variables.
108172         * lib/xalloc.h (xalloc_exit_failure): Remove.
108173         * lib/xmalloc.c: Likewise.  Include exitfail.h.
108174         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
108175         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
108176         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
108177         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
108179 2003-07-20  Jim Meyering  <jim@meyering.net>
108181         * modules/closeout (Depends-on): Add exitfail.
108182         Suggestion from Bruno Haible.
108184 2003-07-19  Karl Berry  <karl@gnu.org>
108186         * config/config.sub: update from prep.
108188 2003-07-18  Paul Eggert  <eggert@twinsun.com>
108190         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
108191         Remove.
108192         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
108193         to test that it can stand by itself.  Include "exitfail.h".
108194         Clients should set exit_failure instead.
108195         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
108197 2003-07-18  Bruno Haible  <bruno@clisp.org>
108199         * modules/getndelim2: New file.
108200         * modules/getline: Share files with module getndelim2.
108201         * modules/getnline: Depend on getndelim2 instead of sharing files with
108202         it. Add getnline.c to lib_SOURCES.
108203         * MODULES.html.sh (func_all_modules): Add getndelim2.
108205 2003-07-18  Bruno Haible  <bruno@clisp.org>
108207         * m4/getndelim2.m4: New file.
108208         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
108209         invoke gl_PREREQ_GETNDELIM2.
108210         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
108211         gl_PREREQ_GETNDELIM2.
108212         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
108213         gl_GETNDELIM2.
108215 2003-07-18  Bruno Haible  <bruno@clisp.org>
108217         * lib/getndelim2.h: New file.
108218         * lib/getndelim2.c: Make into a module of its own. Include config.h,
108219         getndelim2.h.
108220         (getndelim2): Make non-static. Change return type to ssize_t.
108221         * lib/getline.h: Change argument names.
108222         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
108223         * lib/getnline.c: Include getndelim2.h.
108225 2003-07-18  Andreas Schwab  <schwab@suse.de>
108227         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
108229 2003-07-17  Karl Berry  <karl@gnu.org>
108231         * config/config.sub: update from prep.
108233 2003-07-17  Bruno Haible  <bruno@clisp.org>
108235         * modules/getnline: New file.
108236         * modules/getline: Add lib/getndelim2.c to source file list.
108237         * MODULES.html.sh (func_all_modules): Add getnline.
108239 2003-07-17  Bruno Haible  <bruno@clisp.org>
108241         * m4/getnline.m4: New file.
108243 2003-07-17  Bruno Haible  <bruno@clisp.org>
108245         * m4/Makefile.am.in: Remove file.
108246         * m4/Makefile.am: Remove file.
108247         * m4/Makefile.in: Remove file.
108249 2003-07-17  Bruno Haible  <bruno@clisp.org>
108251         * lib/getnline.h: New file.
108252         * lib/getnline.c: New file.
108253         * lib/getndelim2.c: New file, extracted from getline.c.
108254         (getndelim2): Renamed from getdelim2, with added nmax argument.
108255         * lib/getline.c: Include getndelim2.c.
108256         (getdelim2): Moved out to getndelim2.c.
108257         (getline, getdelim): Update.
108259 2003-07-17  Bruno Haible  <bruno@clisp.org>
108261         * lib/Makefile.am: Remove file.
108262         * lib/Makefile.in: Remove file.
108264 2003-07-17  Bruno Haible  <bruno@clisp.org>
108266         * configure.in: Remove file.
108267         * Makefile.in: Remove file.
108269 2003-07-17  Bruno Haible  <bruno@clisp.org>
108271         * MODULES.html.sh: Put the </BODY> right before </HTML>.
108273 2003-07-16  Karl Berry  <karl@gnu.org>
108275         * config/srclist-update: was running fixlicense twice, which caused
108276                 texinfo.tex to be nullified for some reason.  Simplify,
108277                 $gplsrc is no longer needed as far as I can see?
108279 2003-07-16  Jim Meyering  <jim@meyering.net>
108281         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
108283 2003-07-15  Paul Eggert  <eggert@twinsun.com>
108285         * config/srclist.txt: Get the following files from gettext-runtime/intl
108286         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
108287         ref-del.sin.  From Bruno Haible.
108288         * config/srclist-update (fixfile): Change grep pattern again, since the
108289         previous fix didn't work (there was another trailing $).  Use
108290         '[$]' to escape the $s.
108292 2003-07-15  Karl Berry  <karl@gnu.org>
108294         * lib/vasnprintf.c: update from gettext.
108296 2003-07-15  Karl Berry  <karl@gnu.org>
108298         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
108299         gets expanded when surrounded by '$'.
108301 2003-07-15  Jim Meyering  <jim@meyering.net>
108303         * modules/save-cwd: Don't depend on error.  From Derek Price.
108305 2003-07-15  Jim Meyering  <jim@meyering.net>
108307         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
108309 2003-07-14  Simon Josefsson  <jas@extundo.com>
108311         * modules/mempcpy: New file.
108312         * MODULES.html.sh (func_all_modules): Add mempcpy.
108314 2003-07-14  Simon Josefsson  <jas@extundo.com>
108316         * m4/mempcpy.m4: New file.
108318 2003-07-14  Simon Josefsson  <jas@extundo.com>
108320         * lib/mempcpy.h: New file.
108321         * lib/mempcpy.c: New file.
108323 2003-07-14  Paul Eggert  <eggert@twinsun.com>
108325         * modules/getdate, modules/posixtm: Depend on mktime.
108327 2003-07-14  Paul Eggert  <eggert@twinsun.com>
108329         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
108330         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
108331         unicodeio.c, unicodeio.h, unlocked-io.h:
108332         Switch from LGPL to GPL.
108334 2003-07-14  Paul Eggert  <eggert@twinsun.com>
108336         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
108337         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
108338         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
108339         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
108340         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
108341         updated automatically by ../config/srclist-update.  This changes
108342         their license from LPGL to GPL.
108344 2003-07-14  Paul Eggert  <eggert@twinsun.com>
108346         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
108347         assumed to refer to the root of the most recent stable gettext version.
108348         * config/srclistvars.sh: Add defaults for eggert.
108349         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
108350         Match "This program" as well as "The program".  This is needed
108351         for gettext.
108353 2003-07-14  Jim Meyering  <jim@meyering.net>
108355         Don't emit diagnostics.  Let callers do that.
108356         * lib/save-cwd.c: Don't include "error.h".
108357         (save_cwd): Don't call error.  Ensure that errno is valid
108358         when returning nonzero.
108360         * lib/save-cwd.h (restore_cwd): Update prototype.
108361         * lib/save-cwd.c (restore_cwd): Remove two parameters.
108362         Simplify.  Don't call error upon failure.  Let callers do that.
108363         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
108364         when auditing is enabled.  But don't bother updating the #if.
108366 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
108368         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
108369         it breaks C++ compilation.
108370         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
108372 2003-07-10  Simon Josefsson  <jas@extundo.com>
108374         * modules/strchrnul (Makefile.am): Add strchrnul.h.
108376 2003-07-10  Jim Meyering  <jim@meyering.net>
108378         * m4/clock_time.m4: Remove trailing blank.
108379         * m4/intmax_t.m4: Likewise.
108381 2003-07-10  Jim Meyering  <jim@meyering.net>
108383         * lib/vasnprintf.c: Remove trailing blanks.
108384         Make cpp indentation consistent.
108386 2003-07-09  Paul Eggert  <eggert@twinsun.com>
108388         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
108389         posixver.c, strftime.c, strnlen.c, strverscmp.c:
108390         Switch from LGPL to GPL.
108392 2003-07-09  Paul Eggert  <eggert@twinsun.com>
108394         * config/srclist.txt: Sort sublists.  Add
108395         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
108396         that differ from gnulib for one reason or another; we'd like this list
108397         to be smaller but for now let's document what we have.
108399 2003-07-08  Paul Eggert  <eggert@twinsun.com>
108401         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
108402         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
108403         and sweeter "eval x=$x".
108404         * config/srclist.txt: Get lib/argp* from glibc.
108406 2003-07-07  Paul Eggert  <eggert@twinsun.com>
108408         * lib/mktime.c: Fix some boundary cases and remove need for floating
108409         point.
108411         Issue a compile-time diagnostic if time_t is floating point, or if
108412         two's complement arithmetic is not in effect, or if arithmetic
108413         right shift does not propagate the sign.  These assumptions were
108414         all in the original code but they weren't checked.
108416         (TIME_T_MIDPOINT, verify): New macros.
108417         (__isleap): Remove; it has integer overflow problems.
108418         (leapyear): New function, without those problems.
108419         (ydhms_tm_diff): Remove; splitting into two parts.
108420         (ydhms_diff): New function, containing the arithmetic part of
108421         the old ydhms_tm_diff function.  Issue a compile-time
108422         diagnostic if we are not using C99 integer division.
108423         Avoid casts when possible.
108424         (guess_time_tm): New function, containing the checking part of
108425         the old ydhms_tm_diff function.  Return the new value, rather than
108426         the difference between it and the old.  Accept a new argument T
108427         so that *T specifies the old value.  Check for overflow in the result.
108429         (__mktime_internal): Use a time_t offset, not a long int offset.
108430         This undoes the 2003-06-04 change, which is no longer needed now
108431         that we have better overflow checking.
108432         (localtime_offset): Likewise.
108434         (__mktime_internal): Avoid harmful overflow on hosts where time_t
108435         and long are 64-bit but int is only 32-bit.
108436         (ydhms_diff): Use long int to store year1 and yday1.
108437         Issue a compile-time diagnostic if long int is not wide enough.
108439         (__mktime_internal): Use long int to store adjusted year and yday.
108440         Use plain C rather than preprocessor commands, if that doesn't
108441         affect efficiency.
108442         Check for overflow (and try to repair) after each probe
108443         rather than checking only at the very end.  This avoids some bugs
108444         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
108445         does not equal GMT offset at maximum time).
108446         Use integer to check for overflow rather than floating point; this
108447         is more portable to non-IEEE hosts, and is a tad faster.
108448         When we detect that we are oscillating between two values,
108449         don't check whether tm_isdst has the requested value, since
108450         we already know the answer.  When tm_isdst has the wrong value,
108451         use a different heuristic to find the right one, based on the
108452         extreme values actually observed in practice in tz2003a,
108453         rather than the (overly optimistic) "previous 3 calendar quarters".
108455         (not_equal_tm, print_tm, check_result): Use "const T" rather than
108456         "T const" to accommodate glibc style.
108457         (check_result): Use less-confusing report format.  "long" -> "long int.
108458         (main): Likewise.
108459         Don't loop if the iteration overflows time_t.
108460         Allow a negative step in the iteration.
108462 2003-07-06  Karl Berry  <karl@gnu.org>
108464         * config/depcomp: update from automake.
108465         * config/config.sub: update from prep.
108467 2003-07-03  Karl Berry  <karl@gnu.org>
108469         * config/config.guess: update from prep.
108471 2003-07-01  Paul Eggert  <eggert@twinsun.com>
108473         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
108474         xreadlink.c now includes it unconditionally.
108476 2003-07-01  Paul Eggert  <eggert@twinsun.com>
108478         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
108479         having it depend on HAVE_SYS_TYPES_H.
108481 2003-07-01  Bruno Haible  <bruno@clisp.org>
108483         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
108484         <sys/types.h> should be sufficient.
108485         Reported by Paul Eggert.
108487 2003-06-26  Karl Berry  <karl@gnu.org>
108489         * config/depcomp: update from automake.
108491 2003-06-26  Bruno Haible  <bruno@clisp.org>
108493         * modules/human: Depend on module stdbool.
108495 2003-06-25  Bruno Haible  <bruno@clisp.org>
108497         * modules/readlink: New file.
108498         * modules/xreadlink: Depend on it.
108499         * MODULES.html.sh (func_all_modules): Add readlink.
108501 2003-06-25  Bruno Haible  <bruno@clisp.org>
108503         * m4/readlink.m4: New file.
108505 2003-06-25  Bruno Haible  <bruno@clisp.org>
108507         * lib/readlink.c: New file.
108509 2003-06-22  Karl Berry  <karl@gnu.org>
108511         * config/srclist.txt: update mkinstalldirs from automake.
108512         * config/mkinstalldirs: update.
108514 2003-06-22  Bruno Haible  <bruno@clisp.org>
108516         Portability to mingw32.
108517         * m4/ssize_t.m4: New file, from GNU gettext.
108518         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
108519         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
108521 2003-06-22  Bruno Haible  <bruno@clisp.org>
108523         * modules/safe-read: Add m4/ssize_t.m4.
108524         * modules/xreadlink: Add m4/ssize_t.m4.
108526 2003-06-20  Bruno Haible  <bruno@clisp.org>
108528         Assume C89, so PARAMS isn't needed.
108529         * lib/unicodeio.h (PARAMS): Remove.
108530         * lib/unicodeio.c: Don't use PARAMS.
108532 2003-06-18  Karl Berry  <karl@gnu.org>
108534         * config/config.{guess,sub}: update from prep.
108536 2003-06-18  Jim Meyering  <jim@meyering.net>
108538         Merge changes from coreutils.
108539         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
108540         Remove explicit declarations of xmalloc and realloc.
108541         Include xalloc.h.
108542         (read_utmp): Remove anachronistic cast of xmalloc.
108544 2003-06-17  Paul Eggert  <eggert@twinsun.com>
108546         Assume C89, so PARAMS isn't needed.
108547         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
108548         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
108549         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
108550         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
108551         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
108552         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
108553         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
108554         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
108555         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
108556         lib/xstrtod.h, lib/xstrtol.h: Likewise.
108557         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
108558         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
108559         no longer needed. Anyway, config.h should always be included before any
108560         other file.
108562 2003-06-11  Simon Josefsson  <jas@extundo.com>
108564         * modules/sysexits: New file.
108565         * MODULES.html.sh (func_all_modules): Add sysexits.
108567 2003-06-11  Simon Josefsson  <jas@extundo.com>
108569         * lib/sysexit_.h: New file.
108571 2003-06-11  Derek Price  <derek@ximbiot.com>
108573         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
108574         necessary.
108576 2003-06-11  Bruno Haible  <bruno@clisp.org>
108578         * m4/sysexits.m4: New file.
108580 2003-06-10  Simon Josefsson  <jas@extundo.com>
108582         * lib/argp.h: New file, from glibc.
108583         * lib/argp-ba.c: New file, from glibc.
108584         * lib/argp-eexst.c: New file, from glibc.
108585         * lib/argp-fmtstream.c: New file, from glibc.
108586         * lib/argp-fmtstream.h: New file, from glibc.
108587         * lib/argp-fs-xinl.c: New file, from glibc.
108588         * lib/argp-help.c: New file, from glibc.
108589         * lib/argp-namefrob.h: New file, from glibc.
108590         * lib/argp-parse.c: New file, from glibc.
108591         * lib/argp-pv.c: New file, from glibc.
108592         * lib/argp-pvh.c: New file, from glibc.
108593         * lib/argp-xinl.c: New file, from glibc.
108595 2003-06-10  Simon Josefsson  <jas@extundo.com>
108597         * modules/strchrnul: New file.
108599 2003-06-10  Simon Josefsson  <jas@extundo.com>
108601         * modules/argp: New file.
108603 2003-06-10  Simon Josefsson  <jas@extundo.com>
108605         * m4/strchrnul.m4: New file.
108607 2003-06-10  Simon Josefsson  <jas@extundo.com>
108609         * lib/strchrnul.h: New file.
108610         * lib/strchrnul.c: New file.
108612 2003-06-10  Bruno Haible  <bruno@clisp.org>
108614         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
108616 2003-06-07  Karl Berry  <karl@gnu.org>
108618         * config/config.{guess,sub}: update from prep.
108620 2003-06-07  Jim Meyering  <jim@meyering.net>
108622         * modules/strtod: Use $(...) notation, not @...@ for
108623         AC_REPLACE'd variables.
108624         * modules/localcharset: Likewise.
108626 2003-06-07  Jim Meyering  <jim@meyering.net>
108628         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
108629         in place of my name in the copyright comment.
108630         Remove definition and uses of __P.
108632         From coreutils.
108633         * lib/stat.c: Don't declare xmalloc explicitly.
108634         Instead, include "xalloc.h".
108635         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
108636         xrealloc, and xcalloc return values.
108637         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
108638         Improve comment.
108639         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
108641 2003-06-07  Bruno Haible  <bruno@clisp.org>
108643         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
108644         avoid AC_CONFIG_LINKS.
108645         * modules/fnmatch (Makefile.am): Use explicit creation rule for
108646         fnmatch.h, to avoid AC_CONFIG_LINKS.
108647         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
108649 2003-06-07  Bruno Haible  <bruno@clisp.org>
108651         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
108652         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
108653         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
108654         directory.
108655         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
108656         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
108657         directory.
108659 2003-06-06  Jim Meyering  <jim@meyering.net>
108661         Merge from coreutils.
108662         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
108663         Consolidate declarations and initializations of *_base* locals.
108665         Merge from coreutils.
108666         This avoids a core dump on systems without GNU putenv,
108667         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
108668         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
108669         (unsetenv): New static function, from GNU libc.
108670         (rpl_putenv): Use it.
108672         * lib/modechange.c: Remove trailing blanks.
108674         Merge from coreutils.
108675         * lib/fsusage.c: Remove declaration of statfs.
108676         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
108678         * lib/posixtm.c: Include <stdbool.h> unconditionally.
108680 2003-06-06  Jim Meyering  <jim@meyering.net>
108682         * lib/stdbool_.h: Renamed from stdbool.h.in.
108684 2003-06-06  Jim Meyering  <jim@meyering.net>
108685             Bruno Haible  <bruno@clisp.org>
108687         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
108688         Adjust Makefile.am snippet not to redirect directly to target.
108689         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
108691 2003-06-05  Paul Eggert  <eggert@twinsun.com>
108693         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
108694         mismatch, look in future quarters as well as past.  This fixes a
108695         bug when processing fall-backwards gaps immediately after a long
108696         period of daylight-saving time.
108698         * lib/mktime.c: Assume freestanding C89 or better.
108699         (HAVE_LIMITS_H): Remove.  Assume it's 1.
108700         (__P): Remove; not used.
108701         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
108702         (mktime, not_equal_tm, print_tm, check_result,
108703         main): Use prototypes.  Use const * where appropriate.
108704         (main): Fix typo in testing code that uncovered by above changes.
108705         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
108707 2003-06-04  Paul Eggert  <eggert@twinsun.com>
108709         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
108710         locale.h, localeconv.  This merges changes from coreutils.
108712         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
108713         It can be removed after the next Autoconf is released.
108714         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
108715         needed.
108717 2003-06-04  Paul Eggert  <eggert@twinsun.com>
108719         * lib/mktime.c: Fix Debian bug 177940
108720         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
108721         (localtime_offset): Now long int, not time_t, because we want it
108722         to be guaranteed to be signed.  All uses changed.
108723         (__mktime_internal): If overflow would occur when adding offset,
108724         don't add it.
108726         Merge 'human' changes from coreutils.  Rewrite to support
108727         locale-specific notations like thousands separators.
108728         * lib/human.c: Simplify authorship notice.
108729         Include human.h immediately after config.h.
108730         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
108731         <limits.h>: Do not include, since human.h does.
108732         (SIZE_MAX, UINTMAX_MAX): New macros.
108733         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
108734         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
108735         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
108736         (power_letter): Renamed from suffixes.
108737         (generate_suffix_backwards): Remove.
108738         (adjust_value): Now takes int style (because of human.h changes)
108739         and long double value (for greater precision on some platforms).
108740         (group_number): New function.
108741         (human_readable): Use it.  Use integer options, not enum.
108742         Put the options before the sizes in the arg list.
108743         Support all the new options.
108744         The old human_readable function has been removed;
108745         use inttostr.h instead.
108746         (human_readable, default_block_size, humblock):
108747         Use uintmax_t, not int, for block sizes.
108748         (human_readable_inexact, block_size_types): Remove.
108749         (block_size_opts): New constant.
108750         (human_options): Renamed from human_block_size, with new signature
108751         that allows block sizes up to UINTMAX_MAX.  All callers changed.
108752         * lib/human.h: Add copyright and authorship notice.
108753         Include <limits.h> and <stdbool.h> unconditionally.
108754         (PARAMS): Remove.  All uses removed.
108755         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
108756         (enum human_inexact_style): Remove tag; now a nameless enum.
108757         (human_floor, human_ceiling, human_round_to_even): Now have
108758         values 2, 0, 1 rather than -1, 1, 0.
108759         (human_group_digits, human_suppress_point_zero, human_autoscale,
108760         human_base_1024, human_SI, human_B): New constants.
108761         (human_readable_inexact, human_block_size): Remove.
108762         (human_readable): Size args are now uintmax_t, not int.
108763         (human_options): New decl.
108765         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
108766         unnecessary now that we assume C89 or better.  This change
108767         imported from coreutils.
108769         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
108770         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
108771         in the 2003-05-30 sync from glibc.
108773         .h files should stand alone, but we shouldn't include <sys/types.h>
108774         if we can get away with just <stddef.h>.
108776         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
108777         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
108778         rather than <sys/types.h>, as we merely need size_t.
108779         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
108780         to get size_t.
108781         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
108782         Include <stdio.h>, to get FILE.
108783         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
108784         memcasecmp.h has included <stddef.h> and all we need is size_t.
108785         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
108786         our interface, instead of including <sys/types.h>
108788 2003-06-04  Paul Eggert  <eggert@twinsun.com>
108790         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
108791         now, as glibc mktime is buggy on non-glibc systems.
108793 2003-06-03  Karl Berry  <karl@gnu.org>
108795         * config/config.sub: update from prep.
108797 2003-06-02  Paul Eggert  <eggert@twinsun.com>
108799         [from coreutils]
108800         Fix some minor time-related bugs with POSIX time arguments.
108801         Some valid time stamps were being rejected (notably -1, and
108802         time stamps before 1900 on 64-bit hosts).  And some invalid
108803         time stamps were being accepted, e.g. September 31.
108805         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
108806         that we can return (time_t) -1 successfully.
108807         * lib/posixtm.c: Likewise.
108808         [HAVE_STDBOOL_H]: Include <stdbool.h>.
108809         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
108810         (t): Remove static var.
108811         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
108812         of static var.  All uses changed.
108813         (year): Do not reject years before 1900; they can occur with
108814         64-bit time_t.
108815         (posix_time_parse): Do not check for out-of-range components;
108816         that is now the caller's responsibility, since our checks were
108817         only approximations.
108818         (posixtime): Use mktime to check for out-of-range components,
108819         since it knows them exactly.
108820         If mktime returns (time_t) -1, check whether an error actually occurred
108821         by invoking localtime on -1.
108822         (main) [TEST_POSIXTIME]: Check for input data errors, and report
108823         posixtime failures better.
108824         Improve the test data (in comments only).
108826 2003-06-02  Karl Berry  <karl@gnu.org>
108828         * config/mkinstalldirs (version): new variable.
108829         (--version): new option.
108830         (usage): improve message.
108832 2003-05-30  Karl Berry  <karl@gnu.org>
108834         * lib/mktime.c: update from libc.
108836 2003-05-30  Bruno Haible  <bruno@clisp.org>
108838         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
108839         * config/config.rpath: Upgrade to gettext-0.12.1.
108841 2003-05-30  Bruno Haible  <bruno@clisp.org>
108843         * m4/gettext.m4: Upgrade to gettext-0.12.1.
108844         * m4/nls.m4: New file, from gettext-0.12.1.
108845         * m4/po.m4: New file, from gettext-0.12.1.
108846         * m4/progtest.m4: Upgrade to gettext-0.12.1.
108848 2003-05-30  Bruno Haible  <bruno@clisp.org>
108850         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
108851         * lib/localcharset.h: Likewise.
108852         * lib/localcharset.c: Likewise.
108854 2003-05-29  Karl Berry  <karl@gnu.org>
108856         * config/config.rpath: update from gettext.
108858 2003-05-28  Paul Eggert  <eggert@twinsun.com>
108860         Assume the headers required for C89 freestanding compilers.
108861         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
108862         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
108863         * m4/human.m4 (gl_HUMAN): Likewise.
108864         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
108865         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
108866         * m4/userspec.m4 (gl_USERSPEC): Likewise.
108867         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
108868         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
108869         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
108871 2003-05-28  Paul Eggert  <eggert@twinsun.com>
108873         Assume the headers required for C89 freestanding compilers.
108874         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
108875         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
108876         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
108877         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
108878         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
108879         define, since <limits.h> is guaranteed to do that.
108880         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
108881         * lib/exclude.c: Include <stdbool.h> unconditionally.
108882         * lib/tempname.c: Include <stddef.h> unconditionally.
108883         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
108884         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
108885         <stddef.h> does that.
108886         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
108887         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
108888         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
108889         needed.
108890         * lib/xstrtol.c: Likewise.
108891         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
108892         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
108894         * lib/addext.c (addext): Use assignment rather than cast, to avoid
108895         warnings on some platforms.
108897         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
108898         arbitrarily.
108900 2003-05-26  Jim Meyering  <jim@meyering.net>
108902         Merge in a change from coreutils:
108903         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
108904         that is guaranteed to be `no'.  Use `no_such_member' to indicate
108905         that condition, rather than `-1' which is slightly misleading.
108906         Change the name of the cache variable to have the gl_ prefix.
108907         Prompted by a patch from Richard Dawe for DJGPP.
108909 2003-05-24  Karl Berry  <karl@gnu.org>
108911         * config/config.guess: update from prep.
108913 2003-05-22  Karl Berry  <karl@gnu.org>
108915         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
108917 2003-05-20  Karl Berry  <karl@gnu.org>
108919         * config/config.guess: update from prep.
108921 2003-05-18  Karl Berry  <karl@gnu.org>
108923         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
108924         might actually be set by the user.
108926         * config/depcomp, install-sh, mdate-sh: update from automake.
108928 2003-05-17  Bruno Haible  <bruno@clisp.org>
108930         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
108931         invalid expansion for AC_EGREP_CPP.
108932         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
108933         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
108934         Suggested by Akim Demaille <akim@epita.fr> in
108935         http://mail.gnu.org/r/bug-autoconf/2003-05/threads.html
108937 2003-05-12  Jim Meyering  <jim@meyering.net>
108939         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
108940         the space-padded-by-default conversion specifiers, %e, %k, %l.
108942 2003-05-12  Bruno Haible  <bruno@clisp.org>
108944         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
108945         the string is longer than 4 KB.
108947 2003-05-11  Karl Berry  <karl@gnu.org>
108949         * config/config.{guess,sub}: update from prep.
108951 2003-05-09  Bruno Haible  <bruno@clisp.org>
108953         * modules/error: Add m4/strerror_r.m4 to file list.
108955 2003-05-03  Bruno Haible  <bruno@clisp.org>
108957         Upgrade to Unicode-4.0.
108958         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
108959         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
108960         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
108961         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
108962         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
108963         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
108964         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
108965         Change width of U+E0100..U+E01EF from 1 to 0.
108967 2003-04-25  Jim Meyering  <jim@meyering.net>
108969         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
108970         of type size_t, not int.
108972 2003-04-25  Bruno Haible  <bruno@clisp.org>
108974         * lib/copy-file.c: Include <stddef.h>, for size_t.
108976 2003-04-21  Paul Eggert  <eggert@twinsun.com>
108978         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
108979         code which expansion is under static control.  Patch imported from
108980         Akim Demaille's patch to Bison; see
108981         <http://mail.gnu.org/r/bison-patches/2003-03/msg00057.html>.
108983 2003-04-14  Bruno Haible  <bruno@clisp.org>
108985         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
108987 2003-04-11  Jim Meyering  <jim@meyering.net>
108989         Merge changes from Coreutils.
108991         2003-03-22  Jim Meyering  <jim@meyering.net>
108993         * lib/strftime.c (widen): Cast alloca return value to proper type.
108995         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
108997         From GNU libc.
108998         * lib/strftime.c (my_strftime): Handle very large width
108999         specifications for numeric values correctly.  Improve checks for
109000         overflow.
109002         2003-01-19  Jim Meyering  <jim@meyering.net>
109004         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
109005         definitions.
109006         (nl_get_alt_digit) [! defined my_strftime]: Define.
109007         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
109008         _nl_get_alt_digit and _nl_get_walt_digit.
109010         * lib/strftime.c (my_strftime): Merge in locale-related changes from
109011         libc. These changes have no effect outside of _LIBC.
109013 2003-04-10  Bruno Haible  <bruno@clisp.org>
109015         * modules/findprog: New file.
109016         * MODULES.html.sh (func_all_modules): Add it.
109018 2003-04-10  Bruno Haible  <bruno@clisp.org>
109020         * m4/findprog.m4: New file.
109021         * m4/eaccess.m4: New file.
109023 2003-04-10  Bruno Haible  <bruno@clisp.org>
109025         * lib/findprog.h: New file, from GNU gettext.
109026         * lib/findprog.c: New file, from GNU gettext.
109028 2003-04-05  Jim Meyering  <jim@meyering.net>
109030         Merge changes from Coreutils.
109032         * lib/exclude.h (PARAMS): Remove definition and uses.
109033         * lib/exclude.c: Remove uses of `PARAMS'.
109035         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
109036         Add test-cases for DOS filenames. Declare program_name.
109037         (main): Set up program_name.  Patch by Rich Dawe.
109039         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
109040         error from mntctl.
109041         Use mntctl's return value to drive the entry-processing loop, since
109042         we can't rely on the value of the vmt_length member in the last
109043         entry.  On some systems doing so could result in exhausting
109044         virtual memory.  Based in part on a patch from Mike Jetzer.
109046 2003-04-04  Bruno Haible  <bruno@clisp.org>
109048         * modules/linebreak: New file.
109049         * MODULES.html.sh (func_all_modules): Add it.
109051 2003-04-04  Bruno Haible  <bruno@clisp.org>
109053         * m4/linebreak.m4: New file.
109055 2003-04-04  Bruno Haible  <bruno@clisp.org>
109057         * lib/linebreak.h: New file, from GNU gettext.
109058         * lib/linebreak.c: New file, from GNU gettext with slight
109059         modifications.
109060         * lib/lbrkprop.h: New file, from GNU gettext.
109062 2003-04-03  Bruno Haible  <bruno@clisp.org>
109064         * modules/utf8-ucs4: New file.
109065         * modules/utf16-ucs4: New file.
109066         * modules/ucs4-utf8: New file.
109067         * modules/ucs4-utf16: New file.
109068         * MODULES.html.sh (func_all_modules): Add them.
109070 2003-04-03  Bruno Haible  <bruno@clisp.org>
109072         * m4/utf-ucs4.m4: New file.
109073         * m4/ucs4-utf.m4: New file.
109075 2003-04-03  Bruno Haible  <bruno@clisp.org>
109077         * lib/utf8-ucs4.h: New file, from GNU gettext.
109078         * lib/utf16-ucs4.h: New file, from GNU gettext.
109079         * lib/ucs4-utf8.h: New file, from GNU gettext.
109080         * lib/ucs4-utf16.h: New file, from GNU gettext.
109082 2003-04-02  Bruno Haible  <bruno@clisp.org>
109084         * modules/binary-io: New file.
109085         * MODULES.html.sh (func_all_modules): Add it.
109087 2003-04-02  Bruno Haible  <bruno@clisp.org>
109089         * lib/binary-io.h: New file, from GNU gettext.
109091 2003-04-01  Bruno Haible  <bruno@clisp.org>
109093         * modules/pathname: New file.
109094         * MODULES.html.sh (func_all_modules): Add it.
109096 2003-04-01  Bruno Haible  <bruno@clisp.org>
109098         * lib/pathname.h: New file, from GNU gettext.
109099         * lib/concatpath.c: New file, from GNU gettext.
109101 2003-03-30  Bruno Haible  <bruno@clisp.org>
109103         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
109105 2003-03-30  Bruno Haible  <bruno@clisp.org>
109107         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
109108         function chown() doesn't exist.
109110 2003-03-28  Bruno Haible  <bruno@clisp.org>
109112         * modules/copy-file: New file.
109113         * MODULES.html.sh (func_all_modules): Add it.
109115 2003-03-28  Bruno Haible  <bruno@clisp.org>
109117         * m4/copy-file.m4: New file.
109119 2003-03-28  Bruno Haible  <bruno@clisp.org>
109121         * lib/copy-file.h: New file, from GNU gettext.
109122         * lib/copy-file.c: New file, from GNU gettext.
109124 2003-03-18  Jim Meyering  <jim@meyering.net>
109126         * lib/quote.c (quote_n): Fix typo in comment.
109128 2003-03-18  Bruno Haible  <bruno@clisp.org>
109130         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
109131         checking.
109132         * m4/onceonly_2_57.m4: Likewise.
109134 2003-03-17  Bruno Haible  <bruno@clisp.org>
109136         * m4/onceonly.m4: Require autoconf 2.54 or newer.
109137         (m4_quote): Remove macro.
109138         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
109140 2003-03-14  Jim Meyering  <jim@meyering.net>
109142         Merge changes from Coreutils.
109143         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
109144         to be const, in order to avoid warnings.
109145         (obstack_room): Likewise.
109146         (obstack_empty_p): Likewise.
109148 2003-03-14  Bruno Haible  <bruno@clisp.org>
109150         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
109151         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
109153 2003-03-13  Paul Eggert  <eggert@twinsun.com>
109155         Merge changes from Bison.
109156         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
109157         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
109158         when compiling Bison 1.875's `bitset bset = obstack_alloc
109159         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
109160         * lib/hash.c: Include <stdbool.h> unconditionally.
109162 2003-03-13  Paul Eggert  <eggert@twinsun.com>
109164         * m4/onceonly.m4 (m4_quote): New macro.
109165         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
109166         Quote AC_FOREACH variable-expansions properly.
109168 2003-03-13  Paul Eggert  <eggert@twinsun.com>
109170         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
109172 2003-03-09  Paul Eggert  <eggert@twinsun.com>
109174         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
109175         Reported by Bruce Becker; see:
109176         http://mail.gnu.org/r/bug-bison/2003-03/msg00017.html
109178 2003-03-03  Paul Eggert  <eggert@twinsun.com>
109179             Bruno Haible  <bruno@clisp.org>
109181         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
109182         Reported by John Hughes, see
109183         http://mail.gnu.org/r/bug-bison/2003-02/msg00030.html
109185 2003-02-20  Bruno Haible  <bruno@clisp.org>
109187         * MODULES.html.sh (func_all_modules): Add poll.
109189 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
109191         * modules/poll: New file.
109193 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
109195         * lib/poll_.h: New file.
109196         * lib/poll.c: New file.
109198 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
109200         * m4/poll.m4: New file.
109202 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
109204         * modules/mathl: New file.
109206 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
109208         * lib/mathl.h: New file.
109209         * lib/acosl.c: New file.
109210         * lib/asinl.c: New file.
109211         * lib/atanl.c: New file.
109212         * lib/ceill.c: New file.
109213         * lib/cosl.c: New file.
109214         * lib/expl.c: New file.
109215         * lib/floorl.c: New file.
109216         * lib/frexpl.c: New file.
109217         * lib/ldexpl.c: New file.
109218         * lib/logl.c: New file.
109219         * lib/sincosl.c: New file.
109220         * lib/sinl.c: New file.
109221         * lib/sqrtl.c: New file.
109222         * lib/tanl.c: New file.
109223         * lib/trigl.c: New file.
109224         * lib/trigl.h: New file.
109226 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
109228         * m4/mathl.m4: New file.
109230 2003-02-18  Bruno Haible  <bruno@clisp.org>
109232         * MODULES.html.sh (func_all_modules): Add mathl.
109234 2003-02-17  Bruno Haible  <bruno@clisp.org>
109236         * modules/mkdtemp: New module.
109237         * MODULES.html.sh (func_all_modules): Add it.
109239 2003-02-17  Bruno Haible  <bruno@clisp.org>
109241         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
109243 2003-02-17  Bruno Haible  <bruno@clisp.org>
109245         * lib/mkdtemp.h: New file, from GNU gettext.
109246         * lib/mkdtemp.c: New file, from GNU gettext.
109248 2003-02-02  Jim Meyering  <jim@meyering.net>
109250         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
109251         e.g. glibc-2.2.93.
109253 2003-01-31  Bruno Haible  <bruno@clisp.org>
109255         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
109256         'rpl_rename'.
109257         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
109258         'rpl_strnlen'.
109259         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
109260         'rpl_strtod'.
109261         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
109262         'rpl_utime'.
109264 2003-01-31  Bruno Haible  <bruno@clisp.org>
109266         * lib/rename.c: #undef rename before defining rpl_rename.
109267         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
109269 2003-01-30  Bruno Haible  <bruno@clisp.org>
109271         * modules/vasnprintf, modules/vasprintf: New modules.
109272         * MODULES.html.sh (func_all_modules): Add them.
109274 2003-01-30  Bruno Haible  <bruno@clisp.org>
109276         * m4/signed.m4: New file, from GNU gettext.
109277         * m4/longdouble.m4: New file, from GNU gettext.
109278         * m4/wchar_t.m4: New file, from GNU gettext.
109279         * m4/wint_t.m4: New file, from GNU gettext.
109280         * m4/vasnprintf.m4: New file.
109281         * m4/vasprintf.m4: New file.
109283 2003-01-30  Bruno Haible  <bruno@clisp.org>
109285         * lib/printf-args.h: New file, from GNU gettext.
109286         * lib/printf-args.c: New file, from GNU gettext.
109287         * lib/printf-parse.h: New file, from GNU gettext.
109288         * lib/printf-parse.c: New file, from GNU gettext.
109289         * lib/vasnprintf.h: New file, from GNU gettext.
109290         * lib/vasnprintf.c: New file, from GNU gettext.
109291         * lib/asnprintf.c: New file, from GNU gettext.
109292         * lib/vasprintf.h: New file, from GNU gettext with modifications.
109293         * lib/vasprintf.c: New file, from GNU gettext.
109294         * lib/asprintf.c: New file, from GNU gettext.
109296 2003-01-29  Bruno Haible  <bruno@clisp.org>
109298         * modules/stpncpy: New module.
109299         * MODULES.html.sh (func_all_modules): Add it.
109301 2003-01-29  Bruno Haible  <bruno@clisp.org>
109303         * m4/stpncpy.m4: New file.
109305 2003-01-29  Bruno Haible  <bruno@clisp.org>
109307         * lib/stpncpy.h: New file, from GNU gettext with modifications.
109308         * lib/stpncpy.c: New file, from GNU gettext with modifications.
109310 2003-01-28  Bruno Haible  <bruno@clisp.org>
109312         * modules/c-ctype: New module.
109313         * MODULES.html.sh (func_all_modules): Add it.
109315 2003-01-28  Bruno Haible  <bruno@clisp.org>
109317         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
109318         Paul Eggert.
109319         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
109320         Paul Eggert.
109322 2003-01-27  Bruno Haible  <bruno@clisp.org>
109324         * modules/xsetenv: New module.
109325         * MODULES.html.sh (func_all_modules): Add it.
109327 2003-01-27  Bruno Haible  <bruno@clisp.org>
109329         * lib/xsetenv.h: New file, from GNU gettext.
109330         * lib/xsetenv.c: New file, from GNU gettext.
109332 2003-01-23  Jim Meyering  <jim@meyering.net>
109334         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
109335         from working on systems without dirfd (at least Irix and OSF1/Tru64).
109337 2003-01-23  Bruno Haible  <bruno@clisp.org>
109339         * modules/minmax: New module.
109340         * MODULES.html.sh (func_all_modules): Add it.
109342 2003-01-23  Bruno Haible  <bruno@clisp.org>
109344         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
109345         Eggert.
109347 2003-01-22  Bruno Haible  <bruno@clisp.org>
109349         * modules/exit: New module.
109350         * MODULES.html.sh (func_all_modules): Add it.
109352 2003-01-22  Bruno Haible  <bruno@clisp.org>
109354         * lib/exit.h: New file, from GNU gettext.
109356 2003-01-19  Bruno Haible  <bruno@clisp.org>
109358         * gnulib-tool: Recognize option --extract-maintainer.
109359         (func_get_maintainer): New function.
109360         * modules/*: Add Maintainer entry.
109362 2003-01-16  Jim Meyering  <jim@meyering.net>
109364         * m4/regex.m4: The `regex' struct is both input and output.
109365         Initialize it before each use.  Patch by Tim Waugh.
109367 2003-01-16  Bruno Haible  <bruno@clisp.org>
109369         * MODULES.html.sh: Add a table of contents. Add the module name as
109370         leftmost column. Add hyperlinks.
109372 2003-01-15  Bruno Haible  <bruno@clisp.org>
109374         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
109376 2003-01-15  Bruno Haible  <bruno@clisp.org>
109378         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
109379         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
109380         suffix.
109382 2003-01-15  Bruno Haible  <bruno@clisp.org>
109384         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
109386 2003-01-15  Bruno Haible  <bruno@clisp.org>
109388         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
109389         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
109391 2003-01-14  Jim Meyering  <jim@meyering.net>
109393         * lib/same.c (same_name): Tweak a comment.
109395 2003-01-14  Bruno Haible  <bruno@clisp.org>
109397         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
109398         when a string comparison is sufficient.
109400 2003-01-14  Bruno Haible  <bruno@clisp.org>
109402         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
109403         'unsigned int'.
109405 2003-01-14  Bruno Haible  <bruno@clisp.org>
109407         * lib/hash-pjw.c: Add comment about low quality of this function.
109409 2003-01-13  Bruno Haible  <bruno@clisp.org>
109411         * modules/stpcpy: Distribute lib/stpcpy.h.
109412         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
109414 2003-01-13  Bruno Haible  <bruno@clisp.org>
109416         * modules/*: Add a description.
109417         * modules/strpbrk: Fix Makefile.am snippet.
109418         * modules/strtoimax: Fix dependencies.
109419         * modules/strtoumax: Likewise.
109421 2003-01-13  Bruno Haible  <bruno@clisp.org>
109423         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
109424         * modules/alloca (Makefile.am): All object files depend on alloca.h.
109425         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
109427 2003-01-13  Bruno Haible  <bruno@clisp.org>
109429         * gnulib-tool (func_create_testdir): Store config/* files in the main
109430         directory.
109431         * config.rpath: Move to ...
109432         * config/config.rpath: ... here.
109433         * modules/gettext: Contains config/config.rpath, not config.rpath.
109434         * modules/iconv: Likewise.
109436 2003-01-12  Paul Eggert  <eggert@twinsun.com>
109438         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
109439         to avoid collisions with libcurses and libreadline.
109441         * m4/getstr.m4: Remove.
109442         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
109444 2003-01-12  Paul Eggert  <eggert@twinsun.com>
109446         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
109447         to avoid collisions with libcurses and libreadline.
109449         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
109450         * lib/getstr.h, getstr.c: Remove.
109451         * lib/getline.c: Include "getline.h", to check interface.
109452         Move body of old getstr.c here: this defines MIN_CHUNK and
109453         declares getdelim2, which is renamed from getstr.
109454         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
109456         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
109457         All uses changed.
109458         * lib/linebuffer.h: Likewise.
109459         (readline): Remove backward-compatibility macro.
109461 2003-01-12  Paul Eggert  <eggert@twinsun.com>
109463         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
109464         to avoid collisions with libcurses and libreadline.
109465         * getstr: Remove.
109466         * MODULES.html.sh: Remove getstr.
109467         * modules/getline: Depend on unlocked-io, not getstr.
109469 2003-01-12  Jim Meyering  <jim@meyering.net>
109471         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
109473 2003-01-10  Bruno Haible  <bruno@clisp.org>
109475         * modules/alloca: Change Makefile.am requirements. Simplify Include
109476         requirements. Add lib/alloca_.h to file list.
109478 2003-01-10  Bruno Haible  <bruno@clisp.org>
109480         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
109482 2003-01-10  Bruno Haible  <bruno@clisp.org>
109484         * lib/alloca_.h: New file.
109485         * lib/getdate.y: Unconditionally include alloca.h.
109486         * lib/makepath.c: Likewise.
109487         * lib/setenv.c: Likewise.
109488         * lib/userspec.c: Likewise.
109490 2003-01-09  Karl Berry  <karl@gnu.org>
109492         * MODULES.html.sh: include `dirname $0` in PATH, to find
109493         gnulib-tool.
109495 2003-01-09  Bruno Haible  <bruno@clisp.org>
109497         * modules/stdbool: Change configure.ac, Makefile.am requirements.
109498         Simplify Include requirements. Add lib/stdbool.h.in to file list.
109500 2003-01-09  Bruno Haible  <bruno@clisp.org>
109502         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
109504 2003-01-09  Bruno Haible  <bruno@clisp.org>
109506         * lib/stdbool.h.in: New file.
109508 2003-01-09  Bruno Haible  <bruno@clisp.org>
109510         * gnulib-tool (func_all_modules): Ignore files ending in ~.
109511         * MODULES.html.sh: Likewise.
109513 2003-01-08  Jim Meyering  <jim@meyering.net>
109515         * lib/full-write.c: Undefine and define-away `const' after inclusion
109516         of errno.h, not before.  Suggestion from Bruno Haible.
109518 2003-01-08  Bruno Haible  <bruno@clisp.org>
109520         * modules/full-read: Depend on full-write.
109522 2003-01-08  Bruno Haible  <bruno@clisp.org>
109524         * lib/safe-read.c: Include specification header first, to ensure its
109525         selfcontainedness.
109526         * lib/full-write.c: Likewise.
109528 2003-01-07  Jim Meyering  <jim@meyering.net>
109530         * lib/full-write.c: Rework so that it may serve to define full_read,
109531         too.
109532         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
109534 2003-01-07  Bruno Haible  <bruno@clisp.org>
109536         * lib/strtoimax.c: Include <stdint.h> as an alternative to
109537         <inttypes.h>.
109538         * lib/xstrtol.h: Likewise.
109539         * lib/xstrtoimax.c: Likewise.
109540         * lib/xstrtoumax.c: Likewise.
109541         * lib/human.h: Likewise.
109543         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
109544         on systems that have <inttypes.h> but not <stdint.h>.
109546 2003-01-07  Bruno Haible  <bruno@clisp.org>
109548         * MODULES.html.sh: Add copyright notice.
109549         (missed_files): Omit CVS directory entries.
109550         (func_module): Make it work with sed-3.02.
109551         * MODULES.txt: Remove file.
109553 2003-01-06  Jim Meyering  <jim@meyering.net>
109555         * lib/version-etc.c: Update year in translatable copyright string.
109557 2003-01-03  Karl Berry  <karl@gnu.org>
109559         * config/config.{guess,sub}: update from prep.
109561 2003-01-02  Karl Berry  <karl@gnu.org>
109563         * doc/COPYING.DOC: belatedly updated to 1.2.
109565 2003-01-01  Karl Berry  <karl@gnu.org>
109567         * gnulib-tool (func_verify_module): report module name $module in
109568         error message, not $1.
109569         * gnulib-tool (create-testdir): don't complain if destdir couldn't
109570         be created, only if it doesn't exist.
109571         * gnulib-tool (last_checkin_date): don't expand the $Date here.
109573 2002-12-31  Paul Eggert  <eggert@twinsun.com>
109575         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
109577 2002-12-31  Paul Eggert  <eggert@twinsun.com>
109579         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
109580         memcmp if strcoll doesn't work.
109582 2002-12-31  Bruno Haible  <bruno@clisp.org>
109584         * lib/utime.c (utime_null): No need to call ftruncate if the file was
109585         nonempty.
109587 2002-12-31  Bruno Haible  <bruno@clisp.org>
109589         * lib/memcoll.c (STRCOLL): New macro.
109590         (memcoll): Use it.
109592 2002-12-31  Bruno Haible  <bruno@clisp.org>
109594         * lib/localcharset.h: New file.
109595         * lib/localcharset.c: Include it.
109596         * lib/unicodeio.c: Likewise.
109598 2002-12-31  Bruno Haible  <bruno@clisp.org>
109600         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
109601         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
109603 2002-12-31  Bruno Haible  <bruno@clisp.org>
109605         * lib/getline.h: Include <stddef.h>, for size_t.
109607         * lib/unicodeio.h: Include <stddef.h>, for size_t.
109608         * lib/unicodeio.c: Don't include <stddef.h>.
109610 2002-12-31  Bruno Haible  <bruno@clisp.org>
109612         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
109613         HAVE_TM_ZONE.
109615 2002-12-24  Karl Berry  <karl@gnu.org>
109617         * config/config.guess: update from prep.
109619 2002-12-24  Bruno Haible  <bruno@clisp.org>
109621         General infrasructure.
109622         * m4/README: Rewritten.
109623         * m4/onceonly.m4: New file.
109624         * m4/onceonly_2_57.m4: New file.
109626         Module atexit.
109627         * m4/atexit.m4: New file.
109629         Module strtod.
109630         * m4/strtod.m4: New file.
109632         Module strtol.
109633         * m4/strtol.m4: New file.
109635         Module strtoul.
109636         * m4/strtoul.m4: New file.
109638         Module memchr.
109639         * m4/memchr.m4: New file.
109641         Module memcmp.
109642         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
109643         (jm_FUNC_MEMCMP): Invoke it.
109645         Module memcpy.
109646         * m4/memcpy.m4: New file.
109648         Module memmove.
109649         * m4/memmove.m4: New file.
109651         Module memset.
109652         * m4/memset.m4: New file.
109654         Module strcspn.
109655         * m4/strcspn.m4: New file.
109657         Module strpbrk.
109658         * m4/strpbrk.m4: New file.
109660         Module strstr.
109661         * m4/strstr.m4: New file.
109663         Module strerror.
109664         * m4/strerror.m4: New file.
109666         Module mktime.
109667         * m4/mktime.m4: Renamed from jm-mktime.m4.
109668         (gl_PREREQ_MKTIME): New macro.
109669         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
109671         Module malloc.
109672         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
109673         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
109674         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
109676         Module realloc.
109677         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
109678         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
109679         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
109681         Module strftime.
109682         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
109683         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
109684         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
109685         gl_TM_GMTOFF.
109686         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
109688         Module xalloc.
109689         * m4/xalloc.m4: New file.
109691         Module alloca.
109692         * m4/alloca.m4: New file.
109694         Module putenv.
109695         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
109696         (jm_FUNC_PUTENV): Invoke it.
109698         Module setenv.
109699         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
109700         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
109701         when invoked twice.
109702         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
109703         gt_FUNC_SETENV.
109705         Module memrchr.
109706         * m4/memrchr.m4: New file.
109708         Module stpcpy.
109709         * m4/stpcpy.m4: New file.
109711         Module strcase.
109712         * m4/strcase.m4: New file.
109714         Module strdup.
109715         * m4/strdup.m4: New file.
109717         Module strnlen.
109718         * m4/strnlen.m4: New file.
109720         Module strndup.
109721         * m4/strndup.m4: New file.
109723         Module xstrtod.
109724         * m4/xstrtod.m4: New file.
109726         Module xstrtol.
109727         * m4/xstrtol.m4: New file.
109729         Module getdate.
109730         * m4/getdate.m4: New file.
109732         Module unlocked-io.
109733         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
109734         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
109735         * m4/jm-glibc-io.m4n: Remove file.
109737         Module long-options.
109738         * m4/long-options.m4: New file.
109740         Module md5.
109741         * m4/md5.m4: New file.
109743         Module sha.
109744         * m4/sha.m4: New file.
109746         Module getstr.
109747         * m4/getstr.m4: New file.
109749         Module getline.
109750         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
109751         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
109752         <sys/types.h>, for size_t. Use the function name gnu_getline, not
109753         simply getline. Infoke gl_PREREQ_GETLINE.
109755         Module obstack.
109756         * m4/obstack.m4: New file.
109758         Module hash.
109759         * m4/hash.m4: New file.
109761         Module readtokens.
109762         * m4/readtokens.m4: New file.
109764         Module strverscmp.
109765         * m4/strverscmp.m4: New file.
109767         Module stdbool.
109768         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
109769         OSF/1.
109771         Module strtoll.
109772         * m4/strtoll.m4: New file.
109774         Module strtoull.
109775         * m4/strtoull.m4: New file.
109777         Module strtoimax.
109778         * m4/strtoimax.m4: New file.
109780         Module strtoumax.
109781         * m4/strtoumax.m4: New file.
109783         Module xstrtoimax.
109784         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
109785         jm_AC_PREREQ_XSTRTOIMAX.
109786         Moved the strtol prerequisites to strtol.m4.
109787         Moved the strtoll prerequisites to strtoll.m4.
109788         Moved the strtoimax prerequisites to strtoimax.m4.
109790         Module xstrtoumax.
109791         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
109792         jm_AC_PREREQ_XSTRTOUMAX.
109793         Moved the strtoul prerequisites to strtoul.m4.
109794         Moved the strtoull prerequisites to strtoull.m4.
109795         Moved the strtoumax prerequisites to strtoumax.m4.
109797         Module chown.
109798         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
109799         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
109801         Module dup2.
109802         * m4/dup2.m4: New file.
109804         Module ftruncate.
109805         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
109806         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
109808         Module getgroups.
109809         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
109810         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
109812         Module gettimeofday.
109813         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
109814         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
109815         gl_PREREQ_GETTIMEOFDAY.
109817         Module mkdir.
109818         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
109819         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
109821         Module mkstemp.
109822         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
109823         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
109824         jm_AC_TYPE_UINTMAX_T.
109825         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
109827         Module stat.
109828         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
109829         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
109831         Module lstat.
109832         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
109833         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
109835         Module timespec.
109836         * m4/timespec.m4 (gl_TIMESPEC): New macro.
109837         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
109838         * m4/st_mtim.m4: Indentation.
109840         Module nanosleep.
109841         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
109842         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
109843         gl_PREREQ_NANOSLEEP.
109845         Module regex.
109846         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
109847         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
109848         (gl_REGEX): New macro.
109850         Module rename.
109851         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
109852         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
109854         Module rmdir.
109855         * m4/rmdir.m4: New file.
109857         Module utime.
109858         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
109859         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
109860         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
109862         Module dirname.
109863         * m4/dirname.m4: New file.
109865         Module getopt.
109866         * m4/getopt.m4: New file.
109868         Module unistd-safer.
109869         * m4/unistd-safer.m4: New file.
109871         Module fnmatch.
109872         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
109873         declaration.
109874         (gl_PREREQ_FNMATCH_EXTRA): New macro.
109875         (gl_FUNC_FNMATCH_POSIX): New macro.
109876         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
109877         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
109878         simply fnmatch.
109880         Module exclude.
109881         * m4/exclude.m4: New file.
109883         Module human.
109884         * m4/human.m4: New file.
109886         Module acl.
109887         * m4/acl.m4: Nop.
109889         Module backupfile.
109890         * m4/backupfile.m4: New file.
109891         * m4/d-ino.m4: Indentation.
109893         Module fsusage.
109894         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
109895         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
109896         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
109898         Module dirfd.
109899         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
109900         requirements.
109902         Module euidaccess.
109903         * m4/euidaccess.m4: New file.
109905         Module file-type.
109906         * m4/file-type.m4: New file.
109908         Module fileblocks.
109909         * m4/fileblocks.m4: New file.
109911         Module filemode.
109912         * m4/filemode.m4: New file.
109914         Module isdir.
109915         * m4/isdir.m4: New file.
109917         Module lchown.
109918         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
109919         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
109921         Module makepath.
109922         * m4/makepath.m4: New file.
109924         Module modechange.
109925         * m4/modechange.m4: New file.
109927         Module mountlist.
109928         * m4/mountlist.m4: New file.
109929         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
109930         Indentation.
109932         Module path-concat.
109933         * m4/path-concat.m4: New file.
109935         Module pathmax.
109936         * m4/pathmax.m4: New file.
109938         Module same.
109939         * m4/same.m4: New file.
109941         Module save-cwd.
109942         * m4/save-cwd.m4: New file.
109944         Module savedir.
109945         * m4/savedir.m4: New file.
109947         Module xgetcwd.
109948         * m4/xgetcwd.m4: New file.
109949         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
109951         Module xreadlink.
109952         * m4/xreadlink.m4: New file.
109954         Module safe-read.
109955         * m4/safe-read.m4: New file.
109957         Module safe-write.
109958         * m4/safe-write.m4: New file.
109960         Module closeout.
109961         * m4/closeout.m4: New file.
109963         Module stdio-safer.
109964         * m4/stdio-safer.m4: New file.
109966         Module getpass.
109967         * m4/getpass.m4: New file.
109969         Module getugroups.
109970         * m4/getugroups.m4: New file.
109972         Module group-member.
109973         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
109974         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
109976         Module idcache.
109977         * m4/idcache.m4: New file.
109979         Module userspec.
109980         * m4/userspec.m4: New file.
109982         Module gettime.
109983         * m4/clock_time.m4: New file.
109984         * m4/gettime.m4: New file.
109986         Module settime.
109987         * m4/settime.m4: New file.
109989         Module posixtm.
109990         * m4/posixtm.m4: New file.
109992         Module gethostname.
109993         * m4/gethostname.m4: New file.
109995         Module canon-host.
109996         * m4/canon-host.m4: New file.
109998         Module gettext.
109999         * m4/codeset.m4: New file, from gettext-0.11.5.
110000         * m4/gettext.m4: New file, from gettext-0.11.5.
110001         * m4/glibc21.m4: New file, from gettext-0.11.5.
110002         * m4/iconv.m4: New file, from gettext-0.11.5.
110003         * m4/intdiv0.m4: New file, from gettext-0.11.5.
110004         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
110005         * m4/inttypes.m4: New file, from gettext-0.11.5.
110006         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
110007         * m4/isc-posix.m4: New file, from gettext-0.11.5.
110008         * m4/lcmessage.m4: New file, from gettext-0.11.5.
110009         * m4/lib-ld.m4: New file, from gettext-0.11.5.
110010         * m4/lib-link.m4: New file, from gettext-0.11.5.
110011         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
110012         * m4/progtest.m4: New file, from gettext-0.11.5.
110013         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
110014         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
110015         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
110017         Module localcharset.
110018         * m4/localcharset.m4: New file.
110020         Module hard-locale.
110021         * m4/hard-locale.m4: New file.
110023         Module mbswidth.
110024         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
110025         onceonly macros.
110026         * m4/mbrtowc.m4: Add comment.
110028         Module memcasecmp.
110029         * m4/memcasecmp.m4: New file.
110031         Module memcoll.
110032         * m4/memcoll.m4: New file.
110034         Module unicodeio.
110035         * m4/unicodeio.m4: New file.
110037         Module rpmatch.
110038         * m4/rpmatch.m4: New file.
110040         Module yesno.
110041         * m4/yesno.m4: New file.
110043         Module exitfail.
110044         * m4/exitfail.m4: New file.
110046         Module c-stack.
110047         * m4/c-stack.m4 (gl_C_STACK): New macro.
110048         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
110050         Module error.
110051         * m4/error.m4 (gl_ERROR): New macro.
110052         (jm_PREREQ_ERROR): Use onceonly macros.
110054         Module fatal.
110055         * m4/fatal.m4: New file.
110057         Module getloadavg.
110058         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
110059         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
110061         Module getpagesize.
110062         * m4/getpagesize.m4: New file.
110064         Module getusershell.
110065         * m4/getusershell.m4: New file.
110067         Module physmem.
110068         * m4/physmem.m4: New file.
110070         Module posixver.
110071         * m4/posixver.m4: New file.
110073         Module quotearg.
110074         * m4/quotearg.m4: New file.
110076         Module quote.
110077         * m4/quote.m4: New file.
110079         Module readutmp.
110080         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
110082         Module sig2str.
110083         * m4/sig2str.m4: New file.
110085         Other.
110086         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
110087         ulonglong.m4.
110088         * m4/intmax_t.m4: New file.
110089         * m4/d-type.m4: Indentation.
110090         * m4/jm-macros.m4: Update.
110091         * m4/prereq.m4 (jm_PREREQ): Update.
110092         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
110093         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
110094         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
110095         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
110096         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
110097         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
110098         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
110099         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
110100         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
110101         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
110102         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
110103         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
110104         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
110105         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
110106         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
110107         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
110108         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
110109         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
110110         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
110112 2002-12-24  Bruno Haible  <bruno@clisp.org>
110114         * MODULES.txt: Update according to m4/ changes.
110116         Module gettext.
110117         * config.rpath: New file, from gettext-0.11.5.
110119         * modules/*: New module descriptions.
110120         * gnulib-tool: New file.
110121         * MODULES.html.sh: New file.
110123 2002-12-21  Karl Berry  <karl@gnu.org>
110125         * doc/fdl.texi: update to version 1.2.
110127 2002-12-19  Karl Berry  <karl@gnu.org>
110129         * config/config.guess: update from prep.
110131 2002-12-18  Bruno Haible  <bruno@clisp.org>
110133         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
110134         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
110136 2002-12-17  Bruno Haible  <bruno@clisp.org>
110138         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
110139         stdlib.h, string.h.
110141 2002-12-17  Bruno Haible  <bruno@clisp.org>
110143         * lib/canon-host.c (strdup): Remove unused declaration.
110145         * lib/fsusage.c: Include full_read.h.
110146         (get_fs_usage): Use full_read instead of safe_read.
110148         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
110150 2002-12-12  Karl Berry  <karl@gnu.org>
110152         * config/config.guess: update from prep.
110154 2002-12-11  Bruno Haible  <bruno@clisp.org>
110156         * m4/setenv.m4: New file, from gettext-0.11.5.
110158 2002-12-11  Bruno Haible  <bruno@clisp.org>
110160         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
110161         not unsetenv().
110162         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
110163         modifications:
110165         2002-12-11  Bruno Haible  <bruno@clisp.org>
110167                 * setenv.c (alloca): Fall back to malloc.
110168                 (freea): New macro.
110169                 (setenv): Use freea() to free memory allocated with alloca().
110171         2002-11-13  Bruno Haible  <bruno@clisp.org>
110173                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
110174                 function declarations.
110175                 * unsetenv.c (unsetenv): Likewise.
110177         2002-03-04  Bruno Haible  <bruno@clisp.org>
110179                 Portability to AIX 4.3.3.
110180                 * unsetenv.c: New file, extracted from setenv.c.
110181                 * setenv.c: Move the unsetenv() function to unsetenv.c.
110183         2001-12-20  Bruno Haible  <bruno@clisp.org>
110185                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
110186                 use malloc instead. For SunOS 4.
110188         2001-12-11  Bruno Haible  <bruno@clisp.org>
110190                 * setenv.c: Declare alloca.
110191                 (compar_fn_t): New typedef.
110192                 (KNOWN_VALUE, STORE_VALUE): Use it.
110194         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
110195         setenv.h.
110197 2002-12-10  Paul Eggert  <eggert@twinsun.com>
110199         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
110200         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
110201         Choose values that are less likely to collide with system fnmatch
110202         options.
110203         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
110204         defined (e.g., a pure POSIX system).
110205         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
110206         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
110208 2002-12-06  Paul Eggert  <eggert@twinsun.com>
110210         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
110211         a pain in practice to deal with generated m4 files.  This change
110212         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
110214         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
110215         and jm-glibc-io.m4, as they are no longer a special case.
110216         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
110217         kludge and the auto-generation stuff.  Check only whether the
110218         functions are declared, not whether they exist, since older hosts
110219         that don't declare the functions can't use the optimization anyway.
110221 2002-12-06  Jim Meyering  <jim@meyering.net>
110223         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
110225         Merge in changes from libc's misc/error.c, in preparation
110226         for the merge of gnulib's changes back into libc.
110228         * lib/error.c (_): Define only if not already defined.
110229         Move definition to follow all #include directives.
110230         Include unlocked-io.h only if !_LIBC.
110231         [_LIBC]: Include <libio/libioP.h>.
110232         [USE_IN_LIBIO]: Include <libio/iolibio.h>
110233         (fflush): Tweak definition to use INTUSE.
110234         (putc): Define.
110236 2002-12-05  Paul Eggert  <eggert@twinsun.com>
110238         * lib/alloca.c [defined emacs]: Include "lisp.h".
110239         (xalloc_die) [defined emacs]: New macro.
110240         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
110241         [! defined emacs]: Include <xalloc.h>.
110242         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
110243         (pointer): Typedef to POINTER_TYPE *.
110244         (malloc): Remove decl; we now always use xmalloc.
110245         (alloca): Use old-style definition, since Emacs needs this.
110246         Check for arithmetic overflow when computing combined size.
110248 2002-12-04  Paul Eggert  <eggert@twinsun.com>
110250         Do not generate unlocked-io.h automatically, since it's easier to
110251         maintain it by hand.
110253         * lib/unlocked-io.h: New file, from GNU diffutils,
110254         but with proper copyright notice and attribution.
110255         * lib/gen-uio: Remove.
110256         * lib/Makefile.am: Add copyright notice.
110257         (libfetish_a_SOURCES): Add unlocked-io.h.
110258         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
110259         (DISTCLEANFILES, io_functions): Remove macros.
110260         (EXTRA_DIST): Remove gen_uio.
110261         (unlocked-io.h): Remove rule.
110263 2002-12-04  Jim Meyering  <jim@meyering.net>
110265         Reflect the fact that stat.c and lstat.c are no longer generated.
110266         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
110267         (DISTCLEANFILES): Likewise.
110268         (EXTRA_DIST): Likewise.
110269         (all_local): Don't depend on stat.c or lstat.c.
110270         (stat.c, lstat.c): Remove rules.
110271         (EXTRA_DIST): Remove xstat.in.
110273         * lib/xstat.in: Remove file.  Contents moved into stat.c.
110274         * lib/stat.c: New file.  Contents mostly from xstat.in.
110275         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
110276         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
110278         * lib/safe-read.c: Rework so that it may serve to define safe_write,
110279         too.
110280         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
110282 2002-12-03  Jim Meyering  <jim@meyering.net>
110284         * lib/safe-read.c, safe-write.c: Change variable names and comments,
110285         but not semantics, to minimize the differences between these two files.
110286         (safe_read): Change comment to mention SAFE_READ_ERROR.
110288         * lib/safe-read.c (IS_EINTR): Define.
110289         (safe_read): Use IS_EINTR in place of in-function cpp directives.
110291 2002-12-02  Jim Meyering  <jim@meyering.net>
110293         * lib/safe-read.c (EINTR): Define.
110294         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
110295         (INT_MAX): Provide fallback.
110296         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
110298         * lib/safe-read.h (SAFE_READ_ERROR): Define.
110300 2002-12-02  Bruno Haible  <bruno@clisp.org>
110302         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
110303         Define, taken from safe-read.c.
110304         (INT_MAX): Provide fallback.
110305         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
110306         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
110308         * lib/safe-read.c (EINTR): Remove definition.
110309         (safe_read): Don't use EINTR if it is absent.
110311 2002-12-01  Jim Meyering  <jim@meyering.net>
110313         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
110314         zero.
110315         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
110317 2002-11-27  Paul Eggert  <eggert@twinsun.com>
110319         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
110320         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
110321         with `if (! (value < limit)) abort ();', for readability.
110323 2002-11-26  Karl Berry  <karl@gnu.org>
110325         * lib/strdup.c: copy from libc again, with jim's ok.
110326         * lib/.cppi-disable: re-add strdup.c
110328 2002-11-25  Karl Berry  <karl@gnu.org>
110330         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
110331         instead of "strtol.c".
110333 2002-11-25  Karl Berry  <karl@gnu.org>
110335         * config/install-sh: update from automake for variable quoting, $0 in
110336         error msgs, etc.
110338         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
110339         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
110340         entry.
110342 2002-11-25  Jim Meyering  <jim@meyering.net>
110344         * lib/mktime.c: Sync from libc, now that it has the latest fix.
110346 2002-11-24  Karl Berry  <karl@gnu.org>
110348         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
110349         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
110351 2002-11-24  Jim Meyering  <jim@meyering.net>
110353         Update from coreutils:
110355         * lib/mktime.c: Merge in changes from libc.
110357         Avoid a link-time failure on some Linux systems.
110358         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
110359         (otherwise).
110360         (__mon_yday): Declare with the STATIC attribute.
110361         (__mktime_internal): Likewise.
110362         Based on a report from Greg Schafer.
110364 2002-11-23  Jim Meyering  <jim@meyering.net>
110366         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
110367         Use `unsigned', not `int', as type of index.
110369         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
110371         * lib/fsusage.c: Remove unneeded parentheses around operands of
110372         `defined'.
110374 2002-11-22  Paul Eggert  <eggert@twinsun.com>
110376         * lib/quotearg.h: Allow multiple inclusion by surrounding with
110377         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
110378         so that we can be included first.
110379         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
110380         * lib/quotearg.c: Include quotearg.h immediately after config.h.
110381         No need to include stddef.h or sys/types.h any more.
110382         Surround local include files with "", not "<>".
110383         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
110384         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
110385         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
110386         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
110387         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
110388         (ISPRINT): Remove; no longer needed now that we assume C89.
110390         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
110391         Preserve errno.
110393         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
110394         quotearg_char): Use SIZE_MAX rather than
110395         (size_t) -1 when we are talking about "infinity".
110397         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
110399 2002-11-22  Paul Eggert  <eggert@twinsun.com>
110401         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
110402         hint that one should use `if (! x) abort ();' rather than `assert
110403         (x);', and anyway it's one less thing to worry about configuring.
110404         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
110405         hash_rehash, hash_insert): Use abort rather than assert.
110407 2002-11-22  Bruno Haible  <bruno@clisp.org>
110409         * lib/safe-read.h: Assume C89. Add comments.
110410         (safe_read): Change return type to size_t.
110411         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
110412         byte counts > SSIZE_MAX correctly.
110413         * lib/safe-write.h: New file.
110414         * lib/safe-write.c: New file.
110415         * lib/full-read.h: New file.
110416         * lib/full-read.c: New file.
110417         * lib/full-write.h: Assume C89. Add comments.
110418         * lib/full-write.c: Include safe-write.h.
110419         (full_write): Rewritten to use safe_write.
110420         Suggested by Jim Meyering and Paul Eggert.
110422 2002-11-21  Jim Meyering  <jim@meyering.net>
110424         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
110426         Merge in changes from the coreutils.
110428         2002-09-25  Paul Eggert  <eggert@twinsun.com>
110429         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
110430         <stdint.h>.
110431         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
110432         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
110433         int.  Work more efficiently if X is the same width as uintmax_t.
110434         Do not compare X to -1, to avoid bogus compiler warning.
110435         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
110436         Don't assume that f_frsize and f_bsize are the same type.
110438         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
110439         warning on FreeBSD.
110441         * lib/makepath.c (make_path): Restore umask *before* creating the final
110442         component.
110443         (make_path): Minor reformatting.
110445         * lib/xmalloc.c: Adjust to work with new autoconf macros,
110446         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
110447         HAVE_MALLOC/HAVE_REALLOC.
110449         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
110450         dummy ones.  At least on GNU/Linux systems, `auto' means something
110451         else.
110452         From Michael Stone.
110454 2002-11-21  Bruno Haible  <bruno@clisp.org>
110456         Remove case insensitive option matching.
110457         * lib/argmatch.h (argcasematch): Remove declaration.
110458         (ARGCASEMATCH): Remove macro.
110459         (__xargmatch_internal): Remove case_sensitive argument.
110460         (XARGMATCH): Update.
110461         (XARGCASEMATCH): Remove macro.
110462         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
110463         case_sensitive argument.
110464         (argcasematch): Remove function.
110465         (__xargmatch_internal): Remove case_sensitive argument.
110466         (main): Use XARGMATCH instead of XARGCASEMATCH.
110468         * lib/xmalloc.c: Change compile-time error message. Add comment about
110469         required autoconf version.
110471 2002-11-20  Paul Eggert  <eggert@twinsun.com>
110473         Merge argmatch cleanups from Bison.  Assume C89.
110475         * lib/argmatch.c: Include config.h here, not in argmatch.h.
110476         Include stdlib.h, for EXIT_FAILURE.
110477         Always include <string.h>, since we assume C89.
110478         (EXIT_FAILURE): Remove pre-C89 bug workaround.
110479         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
110480         Include <stddef.h> instead, since it's all we need for size_t.
110481         (PARAMS): Remove.  All uses removed.
110482         (ARRAY_CARDINALITY): Do not bother to #undef.
110483         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
110484         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
110485         Remove unnecessary parentheses.
110486         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
110487         Insert necessary parentheses.
110488         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
110489         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
110491 2002-11-19  Bruno Haible  <bruno@clisp.org>
110493         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
110494         * lib/mbswidth.h: Include <stddef.h>, for size_t.
110496         * lib/mbswidth.h (PARAMS): Remove macro.
110497         (mbswidth, mbsnwidth): Use ANSI C function declarations.
110498         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
110500         * lib/gcd.h (PARAMS): Remove macro.
110501         (gcd): Use ANSI C function declarations.
110502         * lib/gcd.c (gcd): Likewise.
110504 2002-11-15  Bruno Haible  <bruno@clisp.org>
110506         * lib/strcspn.c: Include <stddef.h>.
110507         (strcspn): Use ANSI C function declaration. Change return type to
110508         size_t. Use NULL.
110509         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
110510         (strpbrk): Use NULL.
110511         * lib/strpbrk.h (PARAMS): Remove macro.
110512         (strpbrk): Use ANSI C function declaration.
110513         * lib/strstr.c: Don't include <sys/types.h>.
110514         * lib/strstr.h (PARAMS): Remove macro.
110515         (strstr): Use ANSI C function declarations.
110517 2002-11-14  Karl Berry  <karl@gnu.org>
110519         * config/mkinstalldirs: `do' on separate line, instead of
110520         `for var; do'.
110522 2002-11-06  Bruno Haible  <bruno@clisp.org>
110524         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
110525         * lib/gcd.c (gcd): Likewise.
110527 2002-11-05  Bruno Haible  <bruno@clisp.org>
110529         * lib/gcd.h: New file, from gettext-0.11.5.
110530         * lib/gcd.c: New file, from gettext-0.11.5.
110532 2002-11-05  Bruno Haible  <bruno@clisp.org>
110534         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
110535         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
110536         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
110537         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
110539         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
110540         <libintl.h>.
110541         * lib/makepath.c: Include gettext.h instead of <locale.h> and
110542         <libintl.h>.
110544         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
110545         * lib/human.c: Include gettext.h instead of <libintl.h>.
110546         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
110547         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
110548         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
110549         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
110550         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
110551         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
110552         (textdomain): Remove definition.
110553         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
110555         * lib/long-options.c: Remove include of <libintl.h> and definition of
110556         _.
110557         * lib/same.c: Remove include of <libintl.h> and definition of _.
110559 2002-11-04  Owen Taylor  <otaylor@redhat.com>
110561         * lib/config.charset: A few additions for Solaris.
110563 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
110565         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
110566         * lib/localcharset.c (locale_charset): Declare as extern "C".
110568 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
110570         * lib/config.charset: msdos in uk_UA uses CP1125.
110572 2002-11-04  Bruno Haible  <bruno@clisp.org>
110574         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
110575         * lib/strcase.h: New file, from GNU gettext-0.11.5.
110576         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
110577         * lib/strstr.h: New file, from GNU gettext-0.11.5.
110578         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
110580 2002-11-04  Bruno Haible  <bruno@clisp.org>
110582         * lib/localcharset.c (locale_charset): Don't return an empty string.
110584 2002-11-04  Bruno Haible  <bruno@clisp.org>
110586         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
110587         aliases.
110589 2002-11-04  Bruno Haible  <bruno@clisp.org>
110591         * lib/config.charset: Update for newest glibc. Add canonical names
110592         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
110594 2002-11-04  Bruno Haible  <bruno@clisp.org>
110596         * lib/config.charset: Add support for NetBSD.
110598 2002-11-04  Bruno Haible  <bruno@clisp.org>
110600         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
110602 2002-11-01  Bruno Haible  <bruno@clisp.org>
110604         * configure.in: Add AC_CONFIG_AUX_DIR call.
110605         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
110606         test/Makefile.
110607         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
110609 2002-09-28  Karl Berry  <karl@gnu.org>
110611         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
110612         installed automake until the next release, since changes have been
110613         made.
110615 2002-09-25  Karl Berry  <karl@gnu.org>
110617         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
110618         * lib/getopt*: copy from libc/posix.
110619         * lib/gettext.h: copy from gettext.
110620         * lib/.cppi-disable: add strdup.c, gettext.h.
110622 2002-09-25  Karl Berry  <karl@gnu.org>
110624         * config/srclist.txt: enable gettext.h check.
110625         * config/config.{guess,sub}: update from prep.
110626         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
110627                 from automake 1.6.3.
110628         See srclist*.
110630 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
110632         * regex.c (PATFETCH): Remove the translating fetch.
110633         (PATFETCH_RAW): Rename to PATFETCH.
110634         (set_image_of_range): New fun.
110635         (SET_RANGE_TABLE_WORK_AREA): Use it.
110636         (regex_compile): Don't translate the pattern chars so eagerly.
110637         Only do it when inserting an `exactn' bytecode or when handling
110638         a char-range.
110639         (mutually_exclusive_p): Avoid empty statement.
110641 2002-07-06  Jim Meyering  <meyering@lucent.com>
110643         * m4/README: Don't mention Makefile.am.in.
110644         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
110646 2002-07-01  Jim Meyering  <meyering@lucent.com>
110648         * lib/c-stack.c: Include sys/time.h.
110649         From Volker Borchert.
110651 2002-06-26  Paul Eggert  <eggert@twinsun.com>
110653         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
110655 2002-06-26  Paul Eggert  <eggert@twinsun.com>
110657         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
110658         New macro.  Use it uniformly instead of
110659         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
110660         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
110661         reported by Vin Shelton.
110663 2002-06-22  Paul Eggert  <eggert@twinsun.com>
110665         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
110666         Do not assume SA_SIGINFO behavior.
110667         Bug reported by Jim Meyering on NetBSD 1.5.2.
110669 2002-06-22  Jim Meyering  <meyering@lucent.com>
110671         * m4/c-stack.m4: New file, from diffutils-2.8.2.
110672         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
110674         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
110675         now that configure.ac uses AC_GNU_SOURCE.
110676         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
110677         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
110679         Update to latest tools.  Suggestions from Paul Eggert.
110680         * m4/stdbool.m4: New file, from diffutils-2.8.2.
110681         * m4/gnu-source.m4: Update from diffutils-2.8.2.
110682         * m4/fnmatch.m4: Likewise.
110683         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
110684         to AC_HEADER_STDBOOL
110686 2002-06-22  Jim Meyering  <meyering@lucent.com>
110688         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
110689         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
110691 2002-06-22  Jim Meyering  <meyering@lucent.com>
110693         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
110695         * lib/exitfail.c, exitfail.h: Likewise.
110696         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
110698         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
110699         of fnmatch.h.
110700         (EXTRA_DIST): Add fnmatch_loop.c.
110701         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
110703         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
110704         * lib/fnmatch.c: Update from diffutils-2.8.2.
110705         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
110706         * lib/fnmatch.h: Remove file.
110708 2002-06-21  Jim Meyering  <meyering@lucent.com>
110710         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
110711         * m4/mbrtowc.m4: Likewise.
110713         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
110714         * m4/mbswidth.m4: Reflect name change:
110715         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
110716         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
110718         * m4/lib-link.m4: Update from gettext-0.11.2.
110719         * m4/gettext.m4: Likewise.
110721         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
110722         From Alfred M. Szmidt.
110724 2002-06-18  Paul Eggert  <eggert@twinsun.com>
110726         * lib/file-type.h: Report an error if neither S_ISREG nor
110727         S_IFREG is defined, instead of using a test specific to glibc
110728         2.2.  This should be safe, since POSIX requires S_ISREG and
110729         Unix Version 7 had S_IFREG.  We don't need to check for
110730         <sys/types.h> since we don't use any symbols that it defines.
110732 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
110734         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
110735         $@-t, so that each temporary file name is unique and valid in the first
110736         8 characters, for operation under DOS.
110738 2002-06-15  Paul Eggert  <eggert@twinsun.com>
110740         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
110742 2002-06-15  Jim Meyering  <meyering@lucent.com>
110744         Work even with DJGPP 2.03, which lacks support for symlinks.
110745         From Richard Dawe.
110746         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
110747         is defined.
110748         * lib/lchown.c (S_ISLNK): Likewise.
110750 2002-06-15  Jim Meyering  <meyering@lucent.com>
110752         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
110753         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
110754         have been included before this file.
110756 2002-06-14  Jim Meyering  <meyering@lucent.com>
110758         * lib/file-type.h: Use the version from diffutils-2.8.2.
110759         * lib/file-type.c: Likewise.
110761 2002-06-07  Jim Meyering  <meyering@lucent.com>
110763         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
110764         They're needed at least for NetBSD 1.5.2.
110765         ($statxfs_includes): Include those same headers.
110766         ($statxfs_includes): Include sys/vfs.h if available.
110767         ($statxfs_includes): Likewise for sys/statvfs.h.
110768         Check for the following members in both structs statfs and statvfs:
110769         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
110771 2002-06-01  Jim Meyering  <meyering@lucent.com>
110773         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
110774         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
110776 2002-05-28  Jim Meyering  <meyering@lucent.com>
110778         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
110779         Reported by Volker Borchert.
110781 2002-05-27  Jim Meyering  <meyering@lucent.com>
110783         Fix a problem seen only on nonconforming systems whereby ls.c's
110784         use of localtime, and then of gettimeofday would cause trouble:
110785         the localtime call used to initialize rpl_gettimeofday's save
110786         mechanism would clobber ls's current local time information so
110787         that in any long listing the first file would always be listed
110788         with date 1970-01-01.  Analysis by Volker Borchert.
110790         * lib/gettimeofday.c (localtime): Undefine.
110791         (rpl_localtime): New function.
110793 2002-05-27  Jim Meyering  <meyering@lucent.com>
110795         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
110796         localtime.
110798         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
110799         use the replacement function; it wouldn't resolve at link time.
110800         Reported by Volker Borchert.
110802 2002-05-22  Jim Meyering  <meyering@lucent.com>
110804         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
110805         file-type.h.
110806         * lib/file-type.h: New file.
110807         * lib/file-type.c (file_type): New file/function.  Extracted from
110808         diffutils.
110810 2002-04-30  Jim Meyering  <meyering@lucent.com>
110812         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
110814 2002-04-29  Paul Eggert  <eggert@twinsun.com>
110816         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
110818 2002-04-29  Paul Eggert  <eggert@twinsun.com>
110820         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
110821         Do not check for alloca.h (no longer used) or stdbool.h (was never
110822         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
110824 2002-04-29  Paul Eggert  <eggert@twinsun.com>
110826         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
110828 2002-04-29  Jim Meyering  <meyering@lucent.com>
110830         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
110831         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
110832         Use AC_FUNC_STRNLEN here instead.
110834         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
110835         With autoconf-2.53a, it's part of AC_PROG_CC.
110837 2002-04-28  Paul Eggert  <eggert@twinsun.com>
110839         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
110840         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
110842 2002-04-28  Paul Eggert  <eggert@twinsun.com>
110844         * lib/sig2str.h, lib/sig2str.c: New files.
110845         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
110847 2002-04-28  Paul Eggert  <eggert@twinsun.com>
110849         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
110850         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
110851         of 127, since 64 is the largest conceivable number for ancient
110852         nonstandard hosts.
110853         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
110855 2002-04-28  Jim Meyering  <meyering@lucent.com>
110857         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
110859 2002-04-24  Jim Meyering  <meyering@lucent.com>
110861         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
110862         (jm_PREREQ): Use it.
110864         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
110865         mach/mach.h fcntl.h.
110866         Check for this function: setlocale.
110868 2002-04-24  Jim Meyering  <meyering@lucent.com>
110870         * lib/gettext.h: New file, from Gettext.
110871         * lib/Makefile.am (INCLUDES): Remove -I../intl.
110872         (libfetish_a_SOURCES): Add gettext.h.
110874 2002-04-16  Jim Meyering  <meyering@lucent.com>
110876         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
110877         ut_pid, ut_id, ut_exit.
110879 2002-04-16  Jim Meyering  <meyering@lucent.com>
110881         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
110882         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
110883         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
110885 2002-04-12  Jim Meyering  <meyering@lucent.com>
110887         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
110888         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
110889         existence of the getmntinfo function.  Needed for Darwin 5.3.
110891         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
110892         This is necessary at least on Darwin 5.3.
110894         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
110895         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
110896         strnlen.o in the library, and that makes some versions of ranlib
110897         object.
110899 2002-04-12  Jim Meyering  <meyering@lucent.com>
110901         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
110903 2002-04-09  Jim Meyering  <meyering@lucent.com>
110905         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
110906         to be more precise.  Rather than saying we're checking whether the
110907         function `works', say what we're testing.
110908         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
110909         Reported by Bruno Haible.
110911 2002-03-10  Jim Meyering  <meyering@lucent.com>
110913         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
110914         Suggestion from Santiago Vila.
110916 2002-03-08  Jim Meyering  <meyering@lucent.com>
110918         * lib/rename.c: Mention that this wrapper is needed also on
110919         mips-dec-ultrix4.4 systems.
110921 2002-03-02  Jim Meyering  <meyering@lucent.com>
110923         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
110924         not HAVE_CLOCK_SETTIME.
110926 2002-02-27  Paul Eggert  <eggert@twinsun.com>
110928         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
110929         Check for clock_settime.
110931 2002-02-27  Paul Eggert  <eggert@twinsun.com>
110933         * lib/nanosleep.h: Rename to....
110934         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
110936         * lib/gettime.c: New file.
110937         * lib/settime.c: New file.
110938         * lib/stime.c: Remove.
110940         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
110941         timespec.h.  Remove nanosleep.h.
110943 2002-02-25  Paul Eggert  <eggert@twinsun.com>
110945         * m4/acl.m4: New file.
110946         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
110947         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
110949 2002-02-25  Paul Eggert  <eggert@twinsun.com>
110951         * lib/acl.c, lib/acl.h: New files.
110952         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
110954 2002-02-24  Jim Meyering  <meyering@lucent.com>
110956         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
110957         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
110958         cause trouble.  Reported by Nelson Beebe.
110960 2002-02-23  Paul Eggert  <eggert@twinsun.com>
110962         * lib/path-concat.c (xpath_concat): Reorder code to pacify
110963         compilers that don't know that xalloc_die never returns.
110965 2002-02-20  Jim Meyering  <meyering@lucent.com>
110967         * lib/getdate.c: Regenerate using bison-1.33.
110969 2002-02-17  Jim Meyering  <meyering@lucent.com>
110971         * config/config.guess (main): Don't use `head -1'; it's no longer
110972         portable. Use `sed 1q' instead.
110974 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
110976         * m4/codeset.m4: Upgrade to gettext-0.11.
110977         * m4/gettext.m4: Upgrade to gettext-0.11.
110978         * m4/glibc21.m4: Upgrade to gettext-0.11.
110979         * m4/iconv.m4: Upgrade to gettext-0.11.
110980         * m4/isc-posix.m4: Upgrade to gettext-0.11.
110981         * m4/lcmessage.m4: Upgrade to gettext-0.11.
110982         * m4/lib-ld.m4: New file, from gettext-0.11.
110983         * m4/lib-link.m4: New file, from gettext-0.11.
110984         * m4/lib-prefix.m4: New file, from gettext-0.11.
110985         * m4/progtest.m4: Upgrade to gettext-0.11.
110987 2002-02-15  Paul Eggert  <eggert@twinsun.com>
110989         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
110990         (jm_PREREQ): Use it.
110992 2002-02-15  Paul Eggert  <eggert@twinsun.com>
110994         * lib/posixver.c, lib/posixver.h: New files.
110995         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
110997 2002-02-02  Paul Eggert  <eggert@twinsun.com>
110998             Bruno Haible  <bruno@clisp.org>
111000         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
111001         (fwrite_success_callback): New declaration.
111002         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
111003         print_unicode_char. Call failure callback instead of error.
111004         (fwrite_success_callback): New function.
111005         (exit_failure_callback): New function.
111006         (fallback_failure_callback): New function.
111007         (print_unicode_char): Call unicode_to_mb.
111009 2002-01-26  Jim Meyering  <meyering@lucent.com>
111011         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
111012         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
111014 2002-01-26  Jim Meyering  <meyering@lucent.com>
111016         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
111018 2002-01-22  Paul Eggert  <eggert@twinsun.com>
111020         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
111022 2002-01-22  Jim Meyering  <meyering@lucent.com>
111024         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
111025         Otherwise, some versions of automake would omit the rule that makes
111026         Makefile from Makefile.in.
111028 2002-01-21  Paul Eggert  <eggert@twinsun.com>
111030         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
111031         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
111032         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
111033         (memcoll): Set errno to zero if there is no error.
111035         * lib/quotearg.c (quotearg_buffer_restyled):
111036         Fix bug with quoting buffers containing NUL when backslashing escapes.
111037         This bug was exposed by the other changes in this patch.
111038         (quotearg_n_options): New arg ARGSIZE.
111039         All callers changed.
111040         (quoting_options_from_style): New function.
111041         (quotearg_n_style): Use it.
111042         (quotearg_n_style_mem): New function.
111044         * lib/quotearg.h (quotearg_n_style_mem): New function.
111046 2002-01-19  Jim Meyering  <meyering@lucent.com>
111048         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
111049         Remove useless quotes: DF_PROG="df".
111050         * m4/strnlen.m4: New file.
111052 2002-01-16  Paul Eggert  <eggert@twinsun.com>
111054         * lib/backupfile.c (ISDIGIT): Comment fix.
111055         * lib/getdate.y (ISDIGIT): Likewise.
111056         * lib/posixtm.c (ISDIGIT, year): Likewise.
111057         * lib/strverscmp.c (ISDIGIT): Likewise.
111058         * lib/userspec.c (ISDIGIT): Likewise.
111060 2002-01-16  Jim Meyering  <meyering@lucent.com>
111062         * lib/getdate.y: Add three semicolons, each just before a closing
111063         brace. Bison (as of version 1.31) no longer papers over that mistake.
111065 2002-01-05  Jim Meyering  <meyering@lucent.com>
111067         * lib/version-etc.c (version_etc_copyright): Update copyright year.
111069 2001-12-19  Paul Eggert  <eggert@twinsun.com>
111071         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
111072         not silently exit merely because the output buffer happens to
111073         have nothing pending.
111075 2001-12-18  Paul Eggert  <eggert@twinsun.com>
111077         See the big note in ../ChangeLog.
111078         * lib/human.c (suffixes): Prefer K to k for 1024.
111079         (generate_suffix_backwards): New function.
111080         (human_readable_inexact): Use it.
111081         * lib/xstrtol.c (__xstrtol): If there is no number but there
111082         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
111083         Accept 'K' as well as 'k'.
111085 2001-12-15  Jim Meyering  <meyering@lucent.com>
111087         * lib/regex.h (__restrict_arr): Update from libc.
111089         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
111090         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
111091         (STREQ): Define.
111093 2001-12-14  Jim Meyering  <meyering@lucent.com>
111095         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
111096         Suggestion from Bruno Haible.
111098 2001-12-10  Jim Meyering  <meyering@lucent.com>
111100         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
111101         xrealloc, Instead, include "xalloc.h".
111102         (initbuffer): Don't cast xmalloc return value to char*.
111103         (readline): Reword comment.
111104         Don't cast xrealloc return value to char*
111105         Return NULL, not 0.
111107 2001-12-09  Jim Meyering  <meyering@lucent.com>
111109         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
111110         about `signed and unsigned type in conditional expression'.
111111         * lib/posixtm.c (posix_time_parse): Likewise.
111113         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
111115         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
111116         to avoid a pedantic warning.
111118         * lib/getstr.c: Don't include assert.h.
111119         (getstr): Remove warning-evoking assertions.
111120         Return -1 if offset parameter is out of bounds.
111121         Change the type of a local from int to size_t.
111123         * lib/strftime.c (my_strftime_localtime_r): Include this function
111124         definition in the `#if ! HAVE_TM_GMTOFF' block.
111126         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
111127         Include xalloc.h instead.
111129 2001-12-02  Jim Meyering  <meyering@lucent.com>
111131         * lib/tempname.c: Don't declare getenv, thus reverting the change of
111132         2001-11-18.  It's no longer necessary, now that stdlib.h is always
111133         included.
111135         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
111136         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
111138 2001-11-30  Akim Demaille  <akim@epita.fr>
111140         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
111141         before being defined.
111143 2001-11-27  Paul Eggert  <eggert@twinsun.com>
111145         * lib/quotearg.h (quotearg_n, quotearg_n_style):
111146         First arg is int, not unsigned.
111147         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
111148         (SIZE_MAX, UINT_MAX): New macros.
111149         (quotearg_n_options): Abort if N is negative.
111150         Avoid overflow check on hosts where size_t is 64 bits and int
111151         is 32 bits, as overflow is impossible there.
111152         Fix off-by-one typo that caused unnecessary reallocation.
111154 2001-11-27  Jim Meyering  <meyering@lucent.com>
111156         * lib/tempname.c: Merge with version from libc.
111157         * lib/regex.c: Likewise.
111159         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
111160         systems for which STDC_HEADERS is 0, it was not included, resulting in
111161         a warning about an integer-to-pointer conversion problem with getenv.
111162         Reported by Volker Borchert.
111164 2001-11-26  Jim Meyering  <meyering@lucent.com>
111166         * lib/gtod.h: Remove file.
111167         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
111168         * lib/gettimeofday.c: Don't include gtod.h.
111169         (GTOD_init): Remove function.
111170         (rpl_gettimeofday): Do its job here instead, rather than aborting.
111171         Suggestion from Volker Borchert.
111173 2001-11-23  Jim Meyering  <meyering@lucent.com>
111175         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
111176         it.
111177         * lib/hash.c (struct hash_table): Define it here instead.
111179 2001-11-22  Jim Meyering  <meyering@lucent.com>
111181         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
111183 2001-11-20  Jim Meyering  <meyering@lucent.com>
111185         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
111186         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
111188 2001-11-19  Jim Meyering  <meyering@lucent.com>
111190         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
111191         directory.  Use "conftestXXXXXX" as the template.
111192         Suggestion from Paul Eggert.
111194         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
111195         immediately, so the test doesn't mistakenly hit the max-open-files
111196         limit.
111198 2001-11-18  Paul Eggert  <eggert@twinsun.com>
111200         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
111201         (TEMPORARIES): New macro.
111202         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
111203         removes an artificial limitation (e.g. HP-UX 10.20, where
111204         TMP_MAX is 17576).
111206 2001-11-18  Jim Meyering  <meyering@lucent.com>
111208         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
111210 2001-11-18  Jim Meyering  <meyering@lucent.com>
111212         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
111213         on SunOS 4.
111215         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
111216         files will be created before anything else.
111218 2001-11-17  Paul Eggert  <eggert@twinsun.com>
111220         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
111221         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
111223 2001-11-17  Jim Meyering  <meyering@lucent.com>
111225         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
111226         Prompted by a report from Bob Proulx.
111228         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
111229         Instead, require UTILS_FUNC_MKSTEMP.
111231 2001-11-17  Jim Meyering  <meyering@lucent.com>
111233         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
111234         Now, that's done as part of AC_FUNC_STRTOD.
111236 2001-11-17  Jim Meyering  <meyering@lucent.com>
111238         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
111239         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
111240         rather than group writable.  Patch by Juan F. Codagnone.
111242         * lib/readtokens.c: Remove explicit declarations of xmalloc and
111243         xrealloc, Instead, include "xalloc.h".
111245         * lib/mountlist.c: Include unlocked-io.h after all system headers.
111246         Remove explicit declarations of xmalloc, xrealloc,
111247         and xstrdup.  Instead, include "xalloc.h".
111249         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
111250         unlocked-io.h.
111251         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
111252         Likewise.
111253         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
111255         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
111256         Reported by Padraig Brady.
111258         * lib/mkstemp.c: #undef mkstemp.
111259         Include config.h.
111260         (rpl_mkstemp): Rename from mkstemp.
111261         Protoize.
111263 2001-11-16  Jim Meyering  <meyering@lucent.com>
111265         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
111266         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
111267         determine the amount of total physical memory, use pstat_getstatic.
111268         HPUX-11 doesn't define _SC_PHYS_PAGES.
111269         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
111270         If sysconf couldn't be used to determine the amount of available
111271         physical memory, use both pstat_getstatic and pstat_getdynamic.
111272         Based on a patch from Bob Proulx.
111274 2001-11-10  Jim Meyering  <meyering@lucent.com>
111276         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
111277         (jm_PREREQ): Use it.
111279 2001-11-09  Jim Meyering  <meyering@lucent.com>
111281         * m4/jm-macros.m4: Require autoconf-2.52f.
111282         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
111283         Use these AC_-prefixed names, not the AM_-prefixed ones.
111285         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
111287 2001-11-05  Jim Meyering  <meyering@lucent.com>
111289         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
111291 2001-11-04  Jim Meyering  <meyering@lucent.com>
111293         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
111294         $DEFS.
111296 2001-11-03  Jim Meyering  <meyering@lucent.com>
111298         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
111299         of AC_DEFUN.
111301         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
111302         know the name of the variable in the macro definition.
111304 2001-11-03  Jim Meyering  <meyering@lucent.com>
111306         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
111307         in argmatch_to_argument call.
111309         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
111310         argument.
111312         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
111313         e.g., a fault due to an attempt to free a NULL pointer.
111315 2001-11-01  Jim Meyering  <meyering@lucent.com>
111317         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
111318         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
111320 2001-11-01  Jim Meyering  <meyering@lucent.com>
111322         * lib/dirfd.c, lib/dirfd.h: New files.
111323         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
111325         * lib/hash.c (hash_print) [TESTING]: Clean up.
111327 2001-10-22  Paul Eggert  <eggert@twinsun.com>
111329         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
111330         to avoid a warning if -Wall.
111332 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
111334         * README: New file
111335         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
111336         (per RMS's instructions, this is now the canonical source)
111337         * lgpl/, gpl/: New directories.
111339 2001-10-21  Paul Eggert  <eggert@twinsun.com>
111341         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
111343 2001-10-21  Jim Meyering  <meyering@lucent.com>
111345         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
111346         this code would end up calling gettext even in packages built
111347         with --disable-nls.
111348         * lib/getopt.c (_): Likewise.
111349         * lib/regex.c (_): Likewise.
111351 2001-10-20  Paul Eggert  <eggert@twinsun.com>
111353         * m4/error.m4 (jm_PREREQ_ERROR):
111354         Do not invoke AC_CHECK_FUNCS with strerror_r, as
111355         AC_FUNC_STRERROR_R does that.
111356         Check for strerror declaration.
111358         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
111359         are supposed to have them these days.
111360         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
111361         Merge changes from latest Autoconf CVS.
111362         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
111363         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
111364         POSIX decided to standardize on the int flavor of strerror_r.
111366 2001-10-20  Paul Eggert  <eggert@twinsun.com>
111368         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
111369         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
111370         Use strerror_r that is only a macro, even if it is not a function.
111371         (strerror): Check for HAVE_DECL_STRERROR before declaring.
111372         (private_strerror): Use prototypes, not old-style function definition.
111373         (print_errno_message): New function.
111374         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
111375         char*-flavored one.
111376         (error_tail, error, error_at_line): Use it.
111378 2001-10-11  Jim Meyering  <meyering@lucent.com>
111380         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
111381         and quote_n (1, ... to avoid clobbering a buffer.
111383 2001-10-05  Jim Meyering  <meyering@lucent.com>
111385         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
111386         hash-pjw.h.
111387         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
111388         * lib/hash-pjw.h: New file.
111390 2001-09-30  Jim Meyering  <meyering@lucent.com>
111392         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
111393         `struct fsstat' has the `f_fstypename' member.
111394         Use that to define FS_TYPE, which is now used to make
111395         the getfsstat link test tighter.
111397 2001-09-30  Jim Meyering  <meyering@lucent.com>
111399         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
111400         Include <sys/ucred.h>, for Apple Darwin.
111401         Include sys/mount.h and sys/fs_types.h only if available.
111402         (FS_TYPE): Define.
111403         (read_filesystem_list): Use FS_TYPE.
111405 2001-09-29  Paul Eggert  <eggert@twinsun.com>
111407         * lib/exclude.c (excluded_filename): 0 -> false, since it's
111408         a boolean context.
111410 2001-09-29  Jim Meyering  <meyering@lucent.com>
111412         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
111413         [one-argument getmntent function]): Include stdio.h before mntent.h.
111414         SunOS 4.1.x needs it for the declaration of `FILE'.
111415         Patch by Volker Borchert.
111417         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
111418         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
111419         sys/fs_types.h, and make the link-test for getfsstat guard #include
111420         directives with appropriate #if HAVE_*_H tests so that we can
111421         detect getfsstat on Apple Darwin1.3.7 systems.
111422         Reported by Nelson Beebe.
111423         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
111425 2001-09-28  Paul Eggert  <eggert@twinsun.com>
111427         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
111428         #defines strtoimax.  Also treat the other strto* functions
111429         like strtoimax.
111431         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
111432         Check for strtoul and strtoumax,
111433         as those declarations are made even in the signed case.
111434         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
111435         Likewise, for strtol and strtoimax.
111437 2001-09-28  Paul Eggert  <eggert@twinsun.com>
111439         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
111440         #defines strtoimax.  Also treat the other strto* functions
111441         like strtoimax.
111443         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
111444         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
111445         (strtoimax, strtoumax): Do not declare if already defined as a macro.
111447 2001-09-26  Jim Meyering  <meyering@lucent.com>
111449         Most macros in unlocked-io.h had the wrong number of arguments.
111450         * lib/gen-uio: New script.
111451         (USE_UNLOCKED_IO): Define to 1 if not already defined.
111452         * lib/unlocked-io.hin: Remove file.
111453         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
111454         rather than trying to embed it here.
111455         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
111456         Reported by Padraig Brady.
111458 2001-09-25  Volker Borchert  <bt@teknon.de>
111460         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
111461         `result'.
111463 2001-09-24  Jim Meyering  <meyering@lucent.com>
111465         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
111467 2001-09-23  Jim Meyering  <meyering@lucent.com>
111469         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
111470         instead of the mere test for existence of mntent.h.  The latter
111471         would get a false-positive on AIX 3.4 systems.
111472         In the outer getmntent if-block, don't die if neither of the getmntent
111473         tests succeeds.  Instead, just fall through and continue with the
111474         remaining tests.
111476 2001-09-23  Jim Meyering  <meyering@lucent.com>
111478         * lib/mountlist.c: Remove useless parentheses in #if directives.
111479         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
111480         the deprecated MOUNTED symbol is no longer defined in mntent.h.
111482 2001-09-22  Jim Meyering  <meyering@lucent.com>
111484         * m4/gettext.m4: New file.  From gettext.
111485         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
111486         * m4/progtest.m4: Likewise
111487         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
111488         * m4/glibc21.m4: Likewise.
111490         * m4/libintl.m4: Remove.  No longer used.
111492 2001-09-22  Jim Meyering  <meyering@lucent.com>
111494         * lib/localcharset.c: Update from latest gettext.
111495         * lib/config.charset: Likewise.
111497 2001-09-20  Jim Meyering  <meyering@lucent.com>
111499         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
111500         strtoimax.
111501         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
111502         strtoumax.
111504 2001-09-20  Jim Meyering  <meyering@lucent.com>
111506         * lib/xstrtol.c (strtoimax): Guard declaration with
111507         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
111508         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
111509         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
111510         (strtoumax): Likewise, for completeness (it wasn't necessary).
111512 2001-09-17  Paul Eggert  <eggert@twinsun.com>
111514         * lib/strtoimax.c (HAVE_LONG_LONG):
111515         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
111516         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
111517         to work around bug in IBM C compiler.
111519 2001-09-17  Jim Meyering  <meyering@lucent.com>
111521         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
111522         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
111523         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
111524         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
111525         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
111526         whenever the right hand side need not be expanded by the shell.
111528 2001-09-16  Paul Eggert  <eggert@twinsun.com>
111530         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
111531         library.  It's not correct, as some older glibcs are buggy.
111532         fnmatch wasn't fixed until glibc 2.2.
111534         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
111535         special shell magic here.
111537 2001-09-16  Jim Meyering  <meyering@lucent.com>
111539         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
111540         * m4/jm-macros.m4: Require it.
111542 2001-09-16  Jim Meyering  <meyering@lucent.com>
111544         * lib/mkdir.c: New file.
111546 2001-09-15  Jim Meyering  <meyering@lucent.com>
111548         * m4/jm-macros.m4: Check for help2man.
111550 2001-09-11  Jim Meyering  <meyering@lucent.com>
111552         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
111553         The body, by Paul Eggert, was moved here from configure.in.
111554         * m4/jm-macros.m4: Require UTILS_HOST_OS.
111556 2001-09-04  Paul Eggert  <eggert@twinsun.com>
111558         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
111559         (jm_PREREQ): Use it.
111561 2001-09-04  Paul Eggert  <eggert@twinsun.com>
111563         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
111564         Use ssize_t, not int, to store result of readlink.
111565         Check for ssize_t overflow as well as size_t overflow,
111566         as POSIX says the result of readlink is implementation-defined
111567         when ssize_t overflows.
111568         Remove unnecessary cast to char*.
111569         Use free+malloc instead of realloc, as the storage doesn't need
111570         to be preserved and it's clearer and can be more efficient that way.
111571         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
111572         * lib/xreadlink.h (xreadlink): Update prototype.
111574 2001-09-04  Paul Eggert  <eggert@twinsun.com>
111576         * lib/xgetcwd.c: Revert some of the previous change; intead,
111577         fix the HAVE_GETCWD_NULL code to behave more like the
111578         !HAVE_GETCWD_NULL code used to.
111580         Include "xalloc.h".
111581         (xgetcwd): Do not return NULL when memory is exhausted; instead,
111582         invoke xalloc_die.
111584 2001-09-03  Paul Eggert  <eggert@twinsun.com>
111586         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
111587         sys/param.h, as pathmax.h includes them.
111589 2001-09-03  Paul Eggert  <eggert@twinsun.com>
111591         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
111592         (jm_PREREQ_XGETCWD): New macro.
111594         * m4/getcwd.m4: New file.
111596 2001-09-03  Paul Eggert  <eggert@twinsun.com>
111598         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
111599         like the HAVE_GETCWD_NULL code.
111600         Include pathmax.h if not HAVE_GETCWD.
111601         Do not include xalloc.h.
111602         (INITIAL_BUFFER_SIZE): New symbol.
111603         Do not use xmalloc / xrealloc, since the caller is responsible for
111604         handling errors.  Preserve errno around `free' during failure.
111605         Do not overrun buffer when using getwd.
111607 2001-09-03  Paul Eggert  <eggert@twinsun.com>
111609         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
111610         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
111611         getcwd (NULL, 0).
111613 2001-09-03  Paul Eggert  <eggert@twinsun.com>
111615         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
111616         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
111617         spotted by Jim Meyering.
111619 2001-09-03  Jim Meyering  <meyering@lucent.com>
111621         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
111622         failure.
111624 2001-09-02  Jim Meyering  <meyering@lucent.com>
111626         * lib/error.c: Update from GNU libc.
111628 2001-09-01  Jim Meyering  <meyering@lucent.com>
111630         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
111631         Used by df.
111633 2001-09-01  Jim Meyering  <meyering@lucent.com>
111635         * lib/xreadlink.c: New file.
111636         * lib/xreadlink.h: New file.
111637         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
111638         xreadlink.h.
111640         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
111641         doesn't conflict with sparc Solaris 7's definition in
111642         /usr/include/sys/int_types.h.
111644         * lib/exclude.c: Use `""', not `<>' to #include non-system header
111645         files.
111646         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
111647         and strncasecmp as r-values.  Unixware didn't have declarations.
111649 2001-08-31  Paul Eggert  <eggert@twinsun.com>
111651         * lib/xstrtol.h: Add copyright notice.
111652         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
111653         LONGINT_INVALID_SUFFIX_CHAR.
111655 2001-08-31  Paul Eggert  <eggert@twinsun.com>
111657         * lib/xstrtol.c (strtoimax): New decl.
111659 2001-08-31  Paul Eggert  <eggert@twinsun.com>
111661         * lib/xgetcwd.c: Don't include pathmax.h.
111662         Include stdlib.h and unistd.h if available.
111663         Include xalloc.h.
111664         (xmalloc, xstrdup, free): Remove decls.
111665         (xgetcwd): Don't assume sizes fit in unsigned.
111666         Check for overflow when computing sizes.
111667         Simplify reallocation code.
111669 2001-08-31  Paul Eggert  <eggert@twinsun.com>
111671         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
111672         a directory's st_size can have an arbitrary value, so the old
111673         usage could waste an arbitrary amount of memory.  All uses
111674         changed.
111675         * lib/savedir.h: Update prototype.
111677 2001-08-31  Paul Eggert  <eggert@twinsun.com>
111679         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
111681         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
111682         old strtoimax.c.
111684         Also, make the following further changes to make this file's
111685         configuration more similar to that of strtol.c:
111686         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
111687         (strtoumax, uintmax_t, strtoull, strtol): Remove.
111688         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
111689         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
111690         changed to signed values.
111692         And make the following changes as well:
111693         Fix copyright notice, as 1999 was missing.
111694         (verify): New macro.
111695         (strtoimax): Check sizes at compile-time, not run-time.
111696         Prefer strtol to strtoll if both work.
111697         (main): Remove; it was not that useful and was a pain to maintain.
111699         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
111701 2001-08-31  Jim Meyering  <meyering@lucent.com>
111703         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
111704         Use an initial, malloc'd, buffer of length 128 rather than
111705         a statically allocated one of length 1024.
111707 2001-08-30  Paul Eggert  <eggert@twinsun.com>
111709         Simplify code, partly by assuming autoconf 2.52 semantics.
111711         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
111713         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
111714         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
111715         All uses removed.
111716         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
111717         Move AC_REQUIRE to next-to-top level, to avoid confusion.
111718         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
111719         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
111720         jm_AC_HEADER_INTTYPES_H.
111721         * m4/jm-macros.m4 (jm_MACROS): Likewise.
111723         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
111725         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
111726         Quote first arg of AC_DEFUN.
111727         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
111728         since they are needed to parse the include file even if we need
111729         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
111730         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
111731         but with opposite signedness.
111733 2001-08-30  Paul Eggert  <eggert@twinsun.com>
111735         Merge 'exclude' changes from tar 1.13.22.
111736         This fixes one or two unlikely storage allocation overflow bugs,
111737         but doesn't change user-visible behavior otherwise.
111739 2001-08-30  Paul Eggert  <eggert@twinsun.com>
111741         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
111742         (jm_PREREQ_EXCLUDE): New macro.
111744 2001-08-30  Paul Eggert  <eggert@twinsun.com>
111746         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
111747         tm to be declared.
111749 2001-08-30  Paul Eggert  <eggert@twinsun.com>
111751         * lib/hash.c: Remove '2001' from copyright notice.
111753 2001-08-30  Paul Eggert  <eggert@twinsun.com>
111755         * lib/full-write.h: New file.
111756         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
111757         * lib/full-write.c: Correct credits, as cccp.c no longer
111758         exists and anyway it was so heavily changed from the old cccp
111759         code as to be unrecognizable.  Include full-write.h.
111760         (full_write): Return size_t, with short writes meaning failure.
111761         All callers changed.  This fixes a bug with large buffers
111762         on 64-bit hosts.
111763         * lib/utime.c: Include full-write.h.
111765 2001-08-30  Paul Eggert  <eggert@twinsun.com>
111767         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
111768         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
111769         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
111770         Include if available.
111771         (<xalloc.h>): Include
111772         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
111773         (verify): New macro.  Use it to verify that EXCLUDE macros do not
111774         collide with FNM macros.
111775         (struct patopts): New struct.
111776         (struct exclude): Use it, as exclude patterns now come with options.
111777         (new_exclude): Support above changes.
111778         (new_exclude, add_exclude_file):
111779         Initial size must now be a power of two to simplify overflow checking.
111780         (free_exclude, fnmatch_no_wildcards): New function.
111781         (excluded_filename): No longer requires options arg, as the options
111782         are determined by add_exclude.  Now returns bool, not int.
111783         (excluded_filename, add_exclude):
111784         Add support for the fancy new exclusion options.
111785         (add_exclude, add_exclude_file): Now takes int options arg.
111786         Check for arithmetic overflow when computing sizes.
111787         (add_exclude_file): xrealloc might modify errno, so don't
111788         realloc until after errno might be used.
111790         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
111791         New macros.
111792         (free_exclude): New decl.
111793         (add_exclude, add_exclude_file): Now takes int options arg.
111794         (excluded_filename): No longer requires options arg, as the options
111795         are determined by add_exclude.  Now returns bool, not int.
111797 2001-08-30  Paul Eggert  <eggert@twinsun.com>
111799         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
111801 2001-08-27  Jim Meyering  <meyering@lucent.com>
111803         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
111805         * lib/version-etc.c (N_): Remove definition.
111806         Revert most of last change.
111807         Instead, simply don't mark the `Copyright...' string for translation.
111808         Based on advice from Paul Eggert.
111810         * lib/strtoxmax.c: Tweak comment.
111812 2001-08-26  Jim Meyering  <meyering@lucent.com>
111814         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
111816         * m4/xstrtoimax.m4: New file.
111817         * m4/xstrtoumax.m4: Add comments explaining why we
111818         AC_REPLACE_FUNCS(strtol).
111820 2001-08-26  Jim Meyering  <meyering@lucent.com>
111822         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
111823         of copyright with `%s' so translators don't get an untranslated
111824         message in 2002.
111825         (COPYRIGHT_YEAR): Define.
111826         (version_etc): Use fprintf rather than fputs.
111827         Suggestion from Ulrich Drepper.
111829         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
111831         * lib/strtoll.c: New file, from GNU libc.
111832         * lib/xstrtoimax.c: New file.
111834         * lib/xstrtol.h: Add xstrtoimax.
111835         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
111836         * lib/strtoimax.c: New file.  Likewise, but first define
111837         STRTOUXMAX_SIGNED.
111839         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
111840         ...
111841         * lib/strtoxmax.c: ... then renamed to this.
111843 2001-08-18  Paul Eggert  <eggert@twinsun.com>
111845         * m4/inttypes.m4: Add AC_PREREQ(2.13).
111846         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
111847         (jm_AC_TYPE_INTMAX_T): New macro.
111848         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
111850         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
111852         * m4/longlong.m4: Renamed from ulonglong.m4.
111853         * m4/inttypes.m4: Renamed from inttypes_h.m4.
111854         * m4/uintmax_t.m4: Removed.
111856 2001-08-13  Paul Eggert  <eggert@twinsun.com>
111858         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
111859         Port to Solaris 8, where 'sed' requires a space after the 'r'
111860         command, and where sh dislikes "$/".  Clean up the spacing a bit.
111861         Redirect output to $tmp just once.
111863 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
111865         * lib/addext.c (<errno.h>): Include.
111866         (errno): Declare if not defined.
111867         (addext): Work correctly when pathconf returns -1 and leaves
111868         errno alone because there is no limit.  Also, work even if
111869         pathconf returns a value greater than SIZE_MAX.
111871 2001-08-12  Jim Meyering  <meyering@lucent.com>
111873         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
111874         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
111875         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
111876         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
111877         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
111878         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
111879         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
111880         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
111881         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
111882         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
111883         utime.m4, utimes.m4, xstrtoumax.m4:
111884         Quote the first argument in each use of AC_DEFUN.
111886 2001-08-12  Jim Meyering  <meyering@lucent.com>
111888         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
111889         Simply `return getcwd (NULL, 0);'.
111890         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
111891         Use 1300 as initial value for length, not PATH_MAX.
111893         * lib/pathmax.h: Clean up cpp syntax.
111895 2001-08-12  Jim Meyering  <meyering@lucent.com>
111897         * lib/gettimeofday.c: New file.
111898         * lib/gtod.h: New file.
111899         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
111901 2001-08-05  Jim Meyering  <meyering@lucent.com>
111903         * m4/jm-macros.m4: Require autoconf-2.52.
111905 2001-08-04  Jim Meyering  <meyering@lucent.com>
111907         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
111908         stmt, to get in sync with glibc.
111910 2001-08-03  Paul Eggert  <eggert@twinsun.com>
111912         The following changes are from gettext 0.10.39 as maintained by
111913         Bruno Haible.
111915         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
111916         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
111917         with inverted sense.  All uses changed.
111919         * lib/mbswidth.c: Don't include <limits.h>.
111920         Include <stdlib.h> and <string.h> unconditionally.
111921         (iswcntrl, mbsinit, ISCNTRL): New macros.
111922         (mbsnwidth): Use K&R style function declarations.
111923         Don't bother checking for MB_LEN_MAX == 1, since the compiler
111924         can optimize it when MB_CUR_MAX == 1.
111925         The width of control characters is zero, not 1.
111927 2001-08-03  Paul Eggert  <eggert@twinsun.com>
111929         The following changes are from gettext 0.10.39 as maintained by
111930         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
111932         * m4/codeset.m4: Upgrade to serial AM1.
111933         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
111934         all uses changed.  Quote first arg of AC_DEFUN.
111935         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
111937         * m4/iconv.m4: Upgrade to serial AM2.
111938         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
111939         Add --with-libconv-prefix.
111940         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
111941         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
111942         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
111943         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
111944         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
111946         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
111947         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
111948         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
111949         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
111950         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
111951         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
111952         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
111953         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
111954         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
111956         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
111957         string.h any more.
111959         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
111960         not the default value.
111962         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
111963         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
111964         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
111965         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
111966         Also check for iswcntrl, used for wcwidth fallback.
111967         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
111968         to Autoconf 2.13.
111970 2001-08-03  Jim Meyering  <meyering@lucent.com>
111972         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
111973         as it was in the original.  Reported by Paul Eggert.
111975 2001-07-16  Jim Meyering  <meyering@lucent.com>
111977         * m4/gettimeofday.m4: New file.
111978         Prompted by a report from Bernhard Baehr.
111980 2001-07-15  Jim Meyering  <meyering@lucent.com>
111982         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
111983         stuff. Now it's in ../Makefile.cfg.
111985 2001-07-15  Jim Meyering  <meyering@lucent.com>
111987         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
111988         (BUILT_SOURCES): Add unlocked-io.h.
111989         (io_functions): Define.
111990         (unlocked-io.h): New rule.
111991         (DISTCLEANFILES): Add unlocked-io.h.
111992         (all-local): Depend on unlocked-io.h, to ensure it is created.
111994         * lib/unlocked-io.hin: New file
111996         * lib/regex.c: Update from glibc.
111998 2001-07-05  Jim Meyering  <meyering@lucent.com>
112000         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
112001         recommendation.
112002         (libfetish_a_SOURCES): Put all .h files here instead.
112003         Remove a thus-exposed (better checks in automake) duplicate and
112004         two unnecessary .h files.
112006 2001-07-04  Jim Meyering  <meyering@lucent.com>
112008         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
112009         that generates jm-glibc-io.m4 so that it doesn't trigger any make
112010         distcheck failure.
112012 2001-07-02  Jim Meyering  <meyering@lucent.com>
112014         The following changes were prompted by suggestions from Bruno Haible.
112016         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
112017         is now generated.
112018         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
112019         definition of EXTRA_DIST.
112020         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
112021         ensure that the generated file is created/updated whenever the list
112022         of $(unlocked_functions) is changed.
112023         (jm-glibc-io.m4): New rule.
112024         (unlocked-io.h): New rule -- currently unused.
112026 2001-06-24  Jim Meyering  <meyering@lucent.com>
112028         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
112029         unmatched right bracket, rather than kludging it with an extra,
112030         falsely-matching quote in a comment.  Patch by Akim Demaille.
112032 2001-06-11  Jim Meyering  <meyering@lucent.com>
112034         * lib/regex.c: Update from GNU libc.
112036 2001-05-27  Jim Meyering  <meyering@lucent.com>
112038         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
112039         Check for ut_type in struct utmp.
112041 2001-05-27  Jim Meyering  <meyering@lucent.com>
112043         * lib/readutmp.h (UT_TYPE): Define.
112045 2001-05-24  Jim Meyering  <meyering@lucent.com>
112047         * lib/argmatch.c: Include "quote.h".
112048         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
112049         quote function.  Reported by Göran Uddeborg.
112051 2001-05-22  Jim Meyering  <meyering@lucent.com>
112053         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
112054         now that we use the package-supplied version unconditionally.
112055         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
112057 2001-05-21  Jim Meyering  <meyering@lucent.com>
112059         * m4/regex.m4: Change a couple backticks to single quotes to avoid
112060         shell syntax errors.
112062 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
112064         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
112066 2001-05-20  Paul Eggert  <eggert@twinsun.com>
112068         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
112069         Don't bother to check library strftime, since
112070         we'll be using our own my_strftime function anyway.
112071         Define my_strftime instead of strftime.
112073 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
112075         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
112076         which is not yet declared.
112078 2001-05-15  Jim Meyering  <meyering@lucent.com>
112080         * m4/regex.m4: Use proper quoting so brackets appear in the test
112081         program.
112082         Reported by, and with help from, Bruno Haible.
112084 2001-05-13  Jim Meyering  <meyering@lucent.com>
112086         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
112087         undefined.
112089 2001-05-11  Paul Eggert  <eggert@twinsun.com>
112091         dirname code cleanup.  base_name now behaves more compatibly
112092         with POSIX basename when given file names that have trailing
112093         slashes, and similarly for dir_name.  Add new primitives
112094         base_len and dir_len.  Put the directory-name-related decls
112095         into dirname.h.
112097         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
112098         * lib/backupfile.c (base_name): Likewise.
112099         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
112100         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
112101         * lib/makepath.c (strip_trailing_slashes): Likewise.
112102         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
112103         ISSLASH): Likewise.
112104         * lib/rename.c (strip_trailing_slashes): Likewise.
112105         * lib/same.c (base_name): Likewise.
112106         * lib/stripslash.c (ISSLASH): Likewise.
112108         * lib/addext.c: Include <dirname.h> after size_t is defined.
112109         * lib/backupfile.c: Likewise.
112111         * lib/addext.c (addext): Use base_len to trim redundant
112112         trailing slashes instead of doing it ourselves.
112113         But do not trim the last slash if it is not redundant.
112115         * lib/backupfile.c (find_backup_file_name,
112116         max_backup_version): Use base_len instead of rolling it ourselves.
112117         Handle the case of "" and (on DOS) "C:" correctly.
112119         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
112120         needed. Include <string.h>, <dirname.h>.
112121         (base_name): Allow file names ending in slashes, other than names
112122         that are all slashes.  In this case, return the basename followed
112123         by the slashes.  This is more general, and can be used in places
112124         where the original base_name purposely had an assertion failure.
112125         (base_len): New function.
112127         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
112128         Do not include <assert.h>; no longer needed.
112129         Include xalloc.h.
112130         (memrchr): Remove decl.
112131         (dir_name_r): Remove.
112132         (dir_len): Renamed from dirlen.  All callers changed.
112133         Rewrite in terms of base_name, for simplicity and consistency.
112134         (dir_name): Never return NULL.  All callers changed.
112135         Do not include <stdlib.h> in test program; no longer needed.
112136         return 0; is fine for test program.
112138         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
112139         New macros.
112140         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
112142         * lib/path-concat.c (path_concat): Use base_len to compute
112143         base length, not strlen; this means we cannot rely on memcpy
112144         to null-terminate.
112146         * lib/same.c (STREQ): Remove.
112147         (same_name): Handle the case where the basename ends in trailing '/'.
112149         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
112150         a slash was stripped.  Do not strip the last slash after a
112151         file system prefix.
112153 2001-05-11  Paul Eggert  <eggert@twinsun.com>
112155         * lib/Makefile.am (libfetish_a_SOURCES):
112156         Add strftime.c, since we now compile it on all hosts.
112158         * lib/strftime.c (my_strftime):
112159         Define to nstrftime if emacs, but only if my_strftime is not defined.
112160         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
112161         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
112162         Add one more extra argument: a nanoseconds value.
112163         All uses changed.
112164         (ns): New macro.
112165         (my_strftime function): Add %N format.
112166         (emacs_strftimeu): Renamed from emacs_strftime,
112167         with extra ut argument.
112169 2001-05-09  Paul Eggert  <eggert@twinsun.com>
112171         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
112173 2001-04-21  Jim Meyering  <meyering@lucent.com>
112175         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
112176         doesn't interfere.
112178 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
112180         * m4/ftruncate.m4: Check for chsize.
112181         Link with ftruncate.o unconditionally if ftruncate is missing.
112182         This was required when cross-compiling to i586-mingw32msvc.
112184 2001-04-08  Jim Meyering  <meyering@lucent.com>
112186         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
112187         recomputed; that's necessary when the offset spans a DST transition.
112188         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
112190 2001-04-02  Jim Meyering  <meyering@lucent.com>
112192         * lib/regex.h, regex.c: Update from GNU libc.
112194 2001-03-24  Jim Meyering  <meyering@lucent.com>
112196         * m4/jm-macros.m4: Require autoconf-2.49d.
112198 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
112200         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
112202 2001-03-19  Paul Eggert  <eggert@twinsun.com>
112204         * lib/version-etc.c (version_etc_copyright): Update to 2001.
112206 2001-03-17  Jim Meyering  <meyering@lucent.com>
112208         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
112209         now that the version in autoconf is equivalent.
112210         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
112212         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
112213         Suggestion from Akim Demaille.
112215         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
112216         (jm_PREREQ_TEMPNAME): New function.
112218 2001-03-16  Paul Eggert  <eggert@twinsun.com>
112220         * lib/tempname.c (uint64_t): Define to uintmax_t if
112221         not defined, and if UINT64_MAX is not defined.
112222         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
112223         Reported by John David Anglin.
112225 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
112227         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
112228         resolve alias if codeset is empty.
112229         * lib/config.charset (BeOS): Use wildcard syntax.
112231 2001-03-13  Jim Meyering  <meyering@lucent.com>
112233         * lib/path-concat.c (path_concat)
112234         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
112235         concatenating e.g., `C:' and `foo'.
112236         From Bruno Haible.
112238 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
112240         * lib/localcharset.c (locale_charset): Don't use
112241         setlocale(LC_CTYPE,NULL). Don't return NULL.
112242         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
112244 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
112246         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
112247         support for DOS/DJGPP.
112249 2001-03-01  Paul Eggert  <eggert@twinsun.com>
112251         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
112252         lacks mkstemp.  Compile our own tempname.c if we compile our own
112253         mkstemp.c, as mkstemp relies on tempname.
112255 2001-03-01  Jim Meyering  <meyering@lucent.com>
112257         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
112258         AH_VERBATIM really does output its argument verbatim.
112260 2001-02-28  Paul Eggert  <eggert@twinsun.com>
112262         * lib/Makefile.am (libfetish_a_SOURCES):
112263         Add dup-safer.c, fopen-safer.c.
112264         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
112266         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
112267         * lib/unistd-safer.h: New files.
112269 2001-02-25  Paul Eggert  <eggert@twinsun.com>
112271         The mkstemp replacement is taken from glibc 2.2.2, with some
112272         portability fixes for use outside glibc, as follows:
112274         * lib/tempname.c (struct_stat64): New macro.
112275         (direxists, __gen_tempname): Use it.
112276         This avoids a portability problem with Solaris 8.
112278         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
112279         (<stddef.h>, <stdint.h>, <string.h>):
112280         Include only if STDC_HEADERS || _LIBC.
112281         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
112282         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
112283         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
112284         (__set_errno): Define this macro if <errno.h> doesn't.
112285         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
112286         Define these macros if <stdio.h> doesn't.
112287         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
112288         Define these macros if <sys/stat.h>
112289         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
112290         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
112291         __xstat64): Define if not _LIBC.
112292         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
112293         (__gen_tempname): Invoke gettimeofday only if
112294         HAVE_GETTIMEOFDAY || _LIBC;
112295         otherwise, fall back on plain "time".
112296         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
112298         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
112300         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
112302 2001-02-18  Paul Eggert  <eggert@twinsun.com>
112304         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
112306 2001-02-17  Paul Eggert  <eggert@twinsun.com>
112308         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
112309         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
112310         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
112311         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
112313 2001-02-17  Paul Eggert  <eggert@twinsun.com>
112315         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
112316         Remove workaround macros for hosts that have mbrtowc but not
112317         mbstate_t, as we now insist on proper declarations for both
112318         before using mbrtowc.
112320 2001-02-17  Jim Meyering  <meyering@lucent.com>
112322         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
112323         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
112324         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
112325         UnixWare 7.1.1.
112327         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
112328         rather than AC_CACHE_VAL.
112330 2001-02-17  Jim Meyering  <meyering@lucent.com>
112332         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
112333         around included file name.
112335         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
112337         * lib/strftime.c: Update from GNU libc (the only changes were to
112338         comments).
112340 2001-02-17  Jim Meyering  <meyering@lucent.com>
112342         * lib/regex.c: Update from libc.
112344 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
112346         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
112347         clash.
112349 2001-02-16  Paul Eggert  <eggert@twinsun.com>
112351         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
112352         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
112353         Reported by Mark Hounschell via Paul Eggert.
112355 2001-02-07  Jim Meyering  <meyering@lucent.com>
112357         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
112359 2001-02-05  Jim Meyering  <meyering@lucent.com>
112361         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
112362         it includes the patch required for `large file' support with at least
112363         HP-UX's 10.20 /bin/cc.
112365 2001-02-03  Jim Meyering  <meyering@lucent.com>
112367         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
112368         AS_IF, now that it works once again (mysteriously).
112369         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
112371 2001-01-30  Jim Meyering  <meyering@lucent.com>
112373         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
112374         * m4/chown.m4: Rename conftestchown to conftest.chown.
112375         * m4/rename.m4: s/conftestdir/conftest.d1/ and
112376         s/conftestdir2/conftest.d2/.
112377         * m4/utimes.m4: s/conftestdata/conftest.data/
112378         Inspired by Pavel Roskin's change in autoconf.
112380 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
112382         * lib/config.charset: Update for FreeBSD 4.2.
112384 2001-01-27  Jim Meyering  <meyering@lucent.com>
112386         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
112387         a use of AS_IF.
112388         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
112390 2001-01-26  Jim Meyering  <meyering@lucent.com>
112392         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
112393         quotearg.c includes it.
112395 2001-01-26  Jim Meyering  <meyering@lucent.com>
112397         * lib/quotearg.c: Include stddef.h.
112398         * lib/quote.c: Include stddef.h.
112399         Reported by Axel Kittenberger.
112401         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
112402         line in double quotes so that it evokes a better diagnostic.
112403         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
112404         Reported by Axel Kittenberger.
112406 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
112408         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
112409         as if it was a `charset'.
112411 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
112413         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
112414         has const.
112416 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
112418         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
112419         to avoid a warning.  Add back 'const' to inptr.
112421 2001-01-20  Jim Meyering  <meyering@lucent.com>
112423         Be sure that headers are checked before used in code compiled
112424         for the type checks.
112425         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
112426         In place of that, invoke jm_CHECK_ALL_TYPES.
112427         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
112428         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
112429         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
112430         The check for ssize_t was mistakenly run before the test for unistd.h.
112432         The configure-time check for stdbool.h was missing.
112433         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
112434         (jm_PREREQ_HASH): New function.
112436 2001-01-17  Jim Meyering  <meyering@lucent.com>
112438         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
112439         for autoconf-2.49c.
112440         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
112442 2001-01-16  Jim Meyering  <meyering@lucent.com>
112444         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
112445         From Bruno Haible.
112447 2001-01-14  Jim Meyering  <meyering@lucent.com>
112449         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
112450         foo and bar.  Create conftestdir/ in the script, not in the C code.
112451         Remove directories in the script, not in the C code.
112452         Remove conftestdir{,2} before trying to create the directory.
112453         Make the entire configure script fail if the mkdir fails.
112455 2001-01-14  Jim Meyering  <meyering@lucent.com>
112457         * lib/rename.c: New file.  From Volker Borchert.
112458         Include stdlib.h, string.h or strings.h, and xalloc.h.
112459         Use strip_trailing_slashes rather than open-coding it.
112461 2001-01-03  Paul Eggert  <eggert@twinsun.com>
112463         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
112465 2001-01-03  Jim Meyering  <meyering@lucent.com>
112467         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
112468         of local `inptr' to avoid warning with some system declarations of
112469         iconv.
112471 2001-01-02  Volker Borchert  <bt@teknon.de>
112473         * m4/rename.m4: New file.
112474         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
112476 2001-01-01  Jim Meyering  <meyering@lucent.com>
112478         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
112479         even on systems with utmpx.h.  It's necessary for the declaration of
112480         utmp's ut_user member.  Reported by Andreas Jaeger.
112482         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
112483         available. They are required for the declarations of getgrgid and
112484         getpwuid resp.
112485         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
112486         Reported by Andreas Jaeger.
112488 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
112490         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
112491         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
112492         so `make install' also works in VPATH builds.
112494 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
112496         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
112497         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
112498         can be used in subdirectories.
112500 2000-12-29  Paul Eggert  <eggert@twinsun.com>
112502         * lib/modechange.c: Do not assume that mode_t uses the
112503         traditional octal encoding.  E.g. "chmod 1 FOO" should set
112504         the other-execute bit of FOO even if S_IXOTH != 1.
112506         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
112507         WOTH, XOTH, ALLM): New macros.
112508         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
112509          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
112510         Use them.
112511         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
112512         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
112513         (mode_compile):
112514         No need to use uintmax_t; unsigned long is long enough.
112515         Don't bother to get suffix since we don't use it.
112517 2000-12-26  Jim Meyering  <meyering@lucent.com>
112519         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
112520         better with autoheader.
112522 2000-12-24  Jim Meyering  <meyering@lucent.com>
112524         * lib/hash.c (is_prime): Return explicit boolean values.
112525         (hash_get_first): Return NULL to appease Irix5.6's 89.
112526         Reported by Nelson Beebe.
112528 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
112530         * lib/localcharset.c (locale_charset): Add support for Win32.
112532 2000-12-18  Paul Eggert  <eggert@twinsun.com>
112534         * lib/physmem.h, lib/physmem.c: New files.
112536         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
112537         (noinst_HEADERS): Add physmem.h.
112539         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
112540         't' for compatibility with Solaris 8 sort.
112542 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
112544         * lib/config.charset: Add support for BeOS.
112546 2000-12-17  Jim Meyering  <meyering@lucent.com>
112548         * m4/dos.m4 (jm_AC_DOS): New file and macro.
112549         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
112551 2000-12-16  Jim Meyering  <meyering@lucent.com>
112553         This bug had a serious impact on chown: `chown N:M FILE' (for integer
112554         N and M) would have treated it like `chown N:N FILE'.
112556         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
112558 2000-12-16  Jim Meyering  <meyering@lucent.com>
112560         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
112561         SHELLS_FILE to a file name that's useful on djgpp systems.
112562         Include stdlib.h.
112563         (ADDITIONAL_DEFAULT_SHELLS): Define.
112564         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
112565         Based mostly on a patch from Prashant TR.
112567 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
112569         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
112570         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
112571         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
112573 2000-12-08  Andreas Schwab  <schwab@suse.de>
112575         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
112576         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
112578 2000-12-07  Jim Meyering  <meyering@lucent.com>
112580         * lib/stripslash.c (ISSLASH): Define.
112581         (strip_trailing_slashes): Use ISSLASH rather than comparing against
112582         `/'.
112583         From Prashant TR.
112585         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
112586         (dir_name_r): Declare this function as static.
112587         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
112588         manifest itself on a name containing a mix of slashes and
112589         backslashes.
112590         Make this function work with names starting with a DOS-style
112591         drive letter and colon prefix.
112592         (dir_name): Append `.' if necessary.
112593         Based mostly on patches from Prashant TR and Eli Zaretskii.
112595         * lib/dirname.h (dir_name_r): Remove prototype.
112597 2000-12-06  Paul Eggert  <eggert@twinsun.com>
112599         * m4/off_t-format.m4: Remove this file.
112600         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
112602 2000-12-06  Jim Meyering  <meyering@lucent.com>
112604         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
112605         replacement strtoull, we may well need the replacement strtoul, too.
112606         Check for declarations of strtoul and strtoull.
112607         Check for strtol.  Mainly as a cue to cause automake to include
112608         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
112609         Check for limits.h -- strtol.c needs it.
112611 2000-12-05  Jim Meyering  <meyering@lucent.com>
112613         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
112615 2000-12-04  Jim Meyering  <meyering@lucent.com>
112617         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
112618         Also include memory.h, stdlib.h, unistd.h if appropriate.
112619         Reported by Andreas Jaeger (conflicting declaration of malloc).
112621 2000-12-02  Jim Meyering  <meyering@lucent.com>
112623         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
112624         * m4/jm-macros.m4 (jm_MACROS): require it.
112626 2000-12-02  Jim Meyering  <meyering@lucent.com>
112628         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
112630 2000-12-01  Paul Eggert  <eggert@twinsun.com>
112632         * lib/memrchr.c: Include <config.h> before any system include file.
112634 2000-11-30  Jim Meyering  <meyering@lucent.com>
112636         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
112638 2000-11-30  Jim Meyering  <meyering@lucent.com>
112640         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
112642 2000-11-29  Paul Eggert  <eggert@twinsun.com>
112644         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
112646 2000-11-26  Jim Meyering  <meyering@lucent.com>
112648         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
112650 2000-11-22  Paul Eggert  <eggert@twinsun.com>
112652         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
112653         size of (size_t) -1; it's not portable.
112655 2000-11-17  Jim Meyering  <meyering@lucent.com>
112657         * lib/strstr.c: Update from GNU libc.
112659 2000-11-17  Akim Demaille  <akim@epita.fr>
112661         * lib/obstack.h: Formatting changes.
112662         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
112663         prevent type checking.
112664         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
112665         cast the value to (void *): assigning a `foo *' to a `void *'
112666         variable is valid.
112667         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
112669 2000-11-16  Jim Meyering  <meyering@lucent.com>
112671         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
112673 2000-11-11  Jim Meyering  <meyering@lucent.com>
112675         * lib/error.c: Add a couple #includes, merging from GNU libc version.
112677 2000-11-10  Jim Meyering  <meyering@lucent.com>
112679         * lib/obstack.h: Update from GNU libc.
112680         * lib/obstack.c: Likewise.
112682 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
112684         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
112686 2000-11-06  Paul Eggert  <eggert@twinsun.com>
112688         * lib/getusershell.c (setusershell): Use rewind rather than
112689         fseek/fseeko, to avoid configuration hassles with fseeko.
112690         Don't bother opening SHELLS_FILE if shellstream is NULL;
112691         it's not necessary.
112693 2000-11-05  Jim Meyering  <meyering@lucent.com>
112695         * lib/makepath.h (make_dir): Declare.
112696         * lib/makepath.c (make_dir): Remove `static' attribute.
112697         Tweak a comment.
112699 2000-11-04  Jim Meyering  <meyering@lucent.com>
112701         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
112703 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
112705         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
112706         last one in a bucket, advance to the next bucket.
112708 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
112710         * lib/fnmatch.c: Do not comment out all the code if we are using
112711         the GNU C library, because in some cases we are replacing buggy
112712         code in the GNU C library itself.
112714 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
112716         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
112717         (regex_compile): Catch bogus \(\1\).
112719 2000-10-30  Paul Eggert  <eggert@twinsun.com>
112721         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
112722         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
112723         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
112725 2000-10-30  Paul Eggert  <eggert@twinsun.com>
112727         * lib/error.h, getline.h, modechange.h:
112728         Remove "2000" from Copyright line, as the file hasn't been
112729         changed this year other than in the copyright notice.
112731         * lib/xalloc.h: Add "2000" to Copyright line, as this file
112732         was changed this year.
112734 2000-10-29  Jim Meyering  <meyering@lucent.com>
112736         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
112737         renaming.
112738         * m4/ls-mntd-fs.m4: Likewise
112740 2000-10-29  Jim Meyering  <meyering@lucent.com>
112742         * lib/xstat.in: Fix grammar in comment.
112744 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
112746         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
112747         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
112748         doesn't define __restrict_arr.
112750 2000-10-28  Jim Meyering  <meyering@lucent.com>
112752         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
112753         (jm_PREREQ_MEMCHR): New function.
112755 2000-10-28  Jim Meyering  <meyering@lucent.com>
112757         * lib/memchr.c: Update from libc.
112758         Adjust for portability:
112759         [HAVE_STDLIB_H]: Include stdlib.h.
112760         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
112761         Undef __memchr, too.
112762         [!weak_alias]: Define __memchr to memchr.
112764         * lib/regex.c: Update from libc.
112765         * lib/regex.h: Likewise.
112766         * lib/getopt1.c: Likewise.
112767         * lib/memcmp.c: Likewise.
112769         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
112770         Avoid using fseek, when possible -- it's broken by design.
112771         Patch by Ulrich Drepper.
112773 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
112775         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
112776         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
112777         Giving in to popular pressure to shut up the compiler with casts.
112779 2000-10-26  Jim Meyering  <meyering@lucent.com>
112781         * lib/strftime.c: Update from libc.
112783 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
112785         * regex.c: More `unsigned char' -> `re_char' changes.
112786         Also change several `int' into `re_wchar_t'.
112787         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
112788         (PUSH_FAILURE_POINTER): Don't cast any more.
112789         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
112790         We want GCC to complain, since this piece of code makes
112791         re_match non-reentrant, which *should* be fixed.
112792         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
112793         (EXTEND_BUFFER): Use RETALLOC.
112794         (SET_LIST_BIT): Don't cast.
112795         (re_wchar_t): New type.
112796         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
112797         that those two functions will always properly return.
112798         (IMMEDIATE_QUIT_CHECK): Cast to void.
112799         (analyse_first): Use recursion rather than an explicit stack.
112800         (re_compile_fastmap): Can't fail anymore.
112801         (re_search_2): Don't check re_compile_fastmap for failure.
112802         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
112803         Now also sets the new value (passed in a new argument).
112804         (re_match_2_internal): Use it.
112805         Also, use a new var `reg' of type size_t when looping through regs
112806         rather than reuse the inappropriate `mcnt'.
112808 2000-10-25  Jim Meyering  <meyering@lucent.com>
112810         * lib/obstack.c: Update from libc.
112812 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
112814         * regex.c (regex_compile): Change the way of handling a range from
112815         a char less than 256 to a char not less than 256.
112817 2000-10-24  Andrew Innes  <andrewi@gnu.org>
112819         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
112820         NT-Emacs only.
112821         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
112822         so that re_search functions only quit when callers expect them to.
112824 2000-10-23  Jim Meyering  <meyering@lucent.com>
112826         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
112827         wrong.  That set_locale call must not have any side effects.
112828         From Paul Eggert.
112830 2000-10-22  Jim Meyering  <meyering@lucent.com>
112832         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
112833         [CYCLIC]: Remove now-unused definition.
112835         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
112836         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
112837         Suggestion from Ulrich Drepper.
112839 2000-10-21  Jim Meyering  <meyering@lucent.com>
112841         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
112842         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
112843         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
112845 2000-10-21  Jim Meyering  <meyering@lucent.com>
112847         * lib/dirname.c (memrchr): Declare if necessary.
112848         (dir_name): Remove the restriction that there be no
112849         trailing slashes.  Now, this code skips past them, effectively
112850         ignoring them.
112851         [TEST_DIRNAME] (main): New unit tests.
112853         * lib/memrchr.c: New file from GNU libc.
112854         Undef __memrchr, too.
112855         [!weak_alias]: Define __memrchr to memrchr.
112856         Guard weak_alias use with `#ifdef weak_alias'.
112858 2000-10-21  Jim Meyering  <meyering@lucent.com>
112860         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
112861         (dir_name): Use dir_name_r.
112862         * lib/dirname.h (dir_name_r): Declare it.
112864 2000-10-17  Jim Meyering  <meyering@lucent.com>
112866         * lib/quote.h (PARAMS): Define and use.
112867         Reported by Akim Demaille.
112869         * lib/getopt.c: Update from libc.
112871 2000-10-16  Jim Meyering  <meyering@lucent.com>
112873         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
112874         setlocale.
112875         From Jan Fedak.
112877 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
112879         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
112881 2000-09-25  Jim Meyering  <meyering@lucent.com>
112883         * lib/md5.h (rol): Define (from GnuPG).
112885         * lib/sha.c: Give credit (GnuPG) where due.
112886         (M): Use rol rather than open-coding it.
112887         Add a FIXME comment.
112889 2000-09-21  Jim Meyering  <meyering@lucent.com>
112891         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
112892         Reported by Michael Stone.
112894 2000-09-20  Jim Meyering  <meyering@lucent.com>
112896         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
112897         (noinst_HEADERS): Add sha.h.
112898         Based on code from Scott G. Miller and from GnuPG.
112900 2000-09-18  Jim Meyering  <meyering@lucent.com>
112902         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
112903         LIBS. Otherwise, everyone ends up linking with -lelf for some
112904         configurations.
112905         Reported by Mike Stone.
112907 2000-09-15  Jim Meyering  <meyering@lucent.com>
112909         * lib/regex.c: Update from libc.
112911 2000-09-10  Jim Meyering  <meyering@lucent.com>
112913         * lib/getopt.c (_getopt_internal): Update from glibc.
112915 2000-09-09  Jim Meyering  <meyering@lucent.com>
112917         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
112918         think it should be used as a general replacement for isascii.
112919         * lib/fnmatch.c: Likewise.
112920         * lib/mbswidth.c: Likewise
112921         * lib/regex.c: Likewise.
112923         Don't use atoi.
112924         * lib/userspec.c: Include sys/param.h and limits.h.
112925         Include xstrtol.h.
112926         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
112927         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
112928         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
112929         UID, GID.  Check range.
112931 2000-09-06  Jim Meyering  <meyering@lucent.com>
112933         * lib/getopt.c (_getopt_internal): Update from glibc.
112935 2000-08-30  Jim Meyering  <meyering@lucent.com>
112937         * lib/strftime.c: Merge in changes from GNU libc.
112939 2000-08-26  Jim Meyering  <meyering@lucent.com>
112941         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
112942         * m4/fpending.m4: New file.
112944 2000-08-26  Jim Meyering  <meyering@lucent.com>
112946         * lib/closeout.c: Include "__fpending.h".
112947         (close_stdout_status): Return right away if there's nothing to flush.
112949         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
112950         * lib/__fpending.c: New file.
112951         * lib/__fpending.h: New file.
112953 2000-08-20  Jim Meyering  <meyering@lucent.com>
112955         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
112956         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
112957         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
112959 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
112961         Improve fileutils installation on systems where running
112962         programs (like install) can't be unlinked.
112963         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
112964         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
112966 2000-08-07  Paul Eggert  <eggert@twinsun.com>
112968         Standardize on "memory exhausted" instead of "Memory exhausted"
112969         or "virtual memory exhausted".
112970         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
112971         "virtual memory exhausted".
112972         * lib/same.c (same_name): Invoke xalloc_die instead of printing
112973         our own message.
112974         * lib/userspec.c (parse_user_spec): Likewise.
112975         * lib/bumpalloc.h: comment fix
112976         * lib/same.c, userspec.c: Include xalloc.h.
112978         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
112979         not char *const and pointing to a constant array.
112980         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
112981         (xrealloc): Comment fix.
112983         * lib/userspec.c (parse_user_spec):
112984         Don't translate a message until just before returning,
112985         to avoid unnecessary translation.
112987 2000-08-07  Jim Meyering  <meyering@lucent.com>
112989         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
112990         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
112991         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
112992         getgroups.c, gethostname.c, getopt.h, group-member.c,
112993         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
112994         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
112995         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
112996         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
112997         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
112998         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
112999         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
113000         yesno.c: Back out Copyright date changes for each file with no change
113001         this year.  This eases coordination with other programs using the same
113002         source code modules.  From Paul Eggert.
113004 2000-08-06  Paul Eggert  <eggert@twinsun.com>
113006         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
113007         not char, for compatibility with glibc 2.1.3 strftime.c.
113009 2000-08-03  Greg McGary  <greg@mcgary.org>
113011         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
113012         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
113013         (EXTEND_BUFFER): Use them.
113015 2000-08-01  Jim Meyering  <meyering@lucent.com>
113017         * lib/dirname.c (ISSLASH): Define.
113018         (BACKSLASH_IS_PATH_SEPARATOR): Define.
113019         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
113020         both `\' and `/' may be use as path separators.
113021         Based on a patch from Prashant TR.
113023 2000-07-31  Paul Eggert  <eggert@twinsun.com>
113025         * lib/quotearg.c (quotearg_n_options): Don't make the initial
113026         slot vector a constant, since it might get modified.
113028 2000-07-31  Jim Meyering  <meyering@lucent.com>
113030         * lib/xmalloc.c: Use `virtual memory exhausted', not
113031         `Memory exhausted'.
113032         * lib/obstack.c (print_and_abort): Likewise.
113034 2000-07-30  Paul Eggert  <eggert@twinsun.com>
113036         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
113037         buffer, so that the caller can always quote one small
113038         component of a "memory exhausted" message in slot 0.
113039         From a suggestion by Jim Meyering.
113041 2000-07-30  Jim Meyering  <meyering@lucent.com>
113043         * lib/makepath.c (make_path): Quote the other instance, too.
113045         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
113046         (STATIC_BUF_SIZE): Define.
113047         (quotearg_n_options): Use only statically allocated storage when
113048         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
113049         than STATIC_BUF_SIZE.
113051 2000-07-29  Jim Meyering  <meyering@lucent.com>
113053         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
113054         * lib/dirname.c (dir_name): Likewise.
113056         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
113057         `/'.
113059         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
113060         (dir_name): Assert that there are no trailing slashes.
113062 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
113064         * lib/mbswidth.h (mbswidth): Add a flags argument.
113065         (mbswidth): New declaration.
113066         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
113067         * lib/mbswidth.c (mbswidth): Add a flags argument.
113068         (mbsnwidth): New function.
113070 2000-07-24  Jim Meyering  <meyering@lucent.com>
113072         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
113074 2000-07-23  Paul Eggert  <eggert@twinsun.com>
113076         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
113078 2000-07-23  Paul Eggert  <eggert@twinsun.com>
113080         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
113081         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
113082         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
113083         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
113084         invoke multibyte primitives.
113086 2000-07-23  Paul Eggert  <eggert@twinsun.com>
113088         * lib/quotearg.c:
113089         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
113090         so that mbstate_t is always defined.
113092         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
113093         be 1 in at least one GCC installation, and this configuration
113094         error is likely to be common.  Ignoring MB_LEN_MAX hurts
113095         performance on hosts that have mbrtowc but have only unibyte
113096         locales, but I assume these hosts are rare.
113098 2000-07-23  Paul Eggert  <eggert@twinsun.com>
113100         * lib/mbswidth.c (_XOPEN_SOURCE):
113101         Don't define; this causes problems on Solaris 7.
113102         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
113104 2000-07-23  Jim Meyering  <meyering@lucent.com>
113106         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
113107         too: getgrgid, getpwuid, getuid.
113109 2000-07-23  Jim Meyering  <meyering@lucent.com>
113111         * lib/basename.c (base_name): Add an assertion.
113113 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
113115         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
113116         shadow its mbsinit function.
113118 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
113120         * lib/mbswidth.h: New file.
113121         * lib/mbswidth.c: New file.
113122         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
113123         (noinst_HEADERS): Add mbswidth.h.
113125 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
113127         * lib/config.charset: Add support for FreeBSD. Improve support for
113128         HP-UX and IRIX 6.
113130 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
113132         * m4/mbswidth.m4: New file.
113133         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
113135 2000-07-15  Jim Meyering  <meyering@lucent.com>
113137         * lib/makepath.c: Include quote.h.
113138         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
113139         corresponding argument in a `quote (...)' call.
113140         Give better diagnostics.
113142         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
113143         (noinst_HEADERS): Add quote.h.
113145         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
113146         from tar's src/misc.c.
113147         * lib/quote.h: New file.  Prototypes for same.
113149 2000-07-14  Paul Eggert  <eggert@twinsun.com>
113151         From a suggestion by Bruno Haible.
113152         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
113153         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
113154         to decide whether to define the BeOS workaround macro;
113155         this adjusts to the change to AC_MBSTATE_T.
113157 2000-07-14  Jim Meyering  <meyering@lucent.com>
113159         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
113160         jm_AC_TYPE_UINTMAX_T.
113162 2000-07-13  Paul Eggert  <eggert@twinsun.com>
113164         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
113166         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
113167         quotearg_buffer_restyled): Add support for
113168         clocale_quoting_style.  Undo previous change to
113169         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
113170         and "{RIGHT QUOTATION MARK}" msgids.
113172 2000-07-10  Paul Eggert  <eggert@twinsun.com>
113174         From a suggestion by Bruno Haible.
113175         * m4/mbstate_t.m4 (AC_MBSTATE_T):
113176         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
113177         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
113178         and mbstate_t, to a single-part test that simply defines mbstate_t.
113179         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
113180         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
113182 2000-07-10  Jim Meyering  <meyering@lucent.com>
113184         * m4/strerror_r.m4: Mirror the correction made in autoconf.
113186         * m4/gnu-source.m4: Output to confdefs.h directly.
113187         Suggestion from Akim Demaille.
113189 2000-07-09  Paul Eggert  <eggert@twinsun.com>
113191         The old behavior of quoting `like this' doesn't look good with
113192         newer, ISO-style fonts.  See:
113193         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
113195         Instead, quote "like this" by default.  Let the translator
113196         tailor the locale-specific quoting behavior by providing
113197         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
113199         * lib/quotearg.c (N_): New macro.
113200         (gettext_default): New function.
113201         (quotearg_buffer_restyled): Use
113202         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
113203         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
113205 2000-07-09  Jim Meyering  <meyering@lucent.com>
113207         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
113208         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
113210         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
113211         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
113213 2000-07-09  Jim Meyering  <meyering@lucent.com>
113215         * lib/Most files: Update copyright dates to include 2000.
113217 2000-07-08  Jim Meyering  <meyering@lucent.com>
113219         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
113220         if not defined.
113221         (xgethostname): Remove now-unnecessary #ifdef.
113222         Move declaration of `err' into loop where it's used.
113224 2000-07-05  Paul Eggert  <eggert@twinsun.com>
113225         and Bruno Haible  <haible@clisp.cons.org>
113227         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
113228         only if the test for an object-type mbstate_t fails.  This
113229         prevents us from mistakenly reporting that mbstate_t is a
113230         system object type after we "#define mbstate_t int" to work
113231         around its lack.
113233 2000-07-05  Paul Eggert  <eggert@twinsun.com>
113234         and Bruno Haible  <haible@clisp.cons.org>
113236         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
113238 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
113240         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
113241         to strerror_r.
113242         Include <ctype.h> for use of isalpha.
113244 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
113246         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
113247         by allocating a larger buffer. Test the gethostname return value for
113248         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
113249         returns an error and ENAMETOOLONG isn't defined.
113251 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
113253         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
113254         dimension.
113256 2000-07-04  Jim Meyering  <meyering@lucent.com>
113258         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
113259         of the deprecated AC_CHECKING.
113261 2000-07-04  Jim Meyering  <meyering@lucent.com>
113263         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
113264         Reported by Bruno Haible.
113266 2000-07-04  Jim Meyering  <meyering@lucent.com>
113268         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
113269         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
113270         lacks mbrtowc.
113272 2000-07-03  Paul Eggert  <eggert@twinsun.com>
113274         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
113275         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
113277 2000-07-03  Paul Eggert  <eggert@twinsun.com>
113278         and Bruno Haible  <haible@clisp.cons.org>
113280         * lib/quotearg.c (mbrtowc):
113281         Assign to *pwc, and return 1 only if result is nonzero.
113282         (iswprint): Use ISPRINT when substituting our own mbrtowc.
113284 2000-07-03  Jim Meyering  <meyering@lucent.com>
113286         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
113288 2000-07-03  Jim Meyering  <meyering@lucent.com>
113290         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
113291         This is necessary to get a definition of e.g., UTMP_FILE on
113292         HP-UX 10.20.
113293         From Bob Proulx.
113295 2000-07-02  Jim Meyering  <meyering@lucent.com>
113297         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
113299         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
113300         AC_LIBOBJ(function_name).
113301         * m4/chown.m4: Likewise.
113302         * m4/fnmatch.m4: Likewise.
113303         * m4/ftruncate.m4: Likewise.
113304         * m4/getgroups.m4: Likewise.
113305         * m4/getline.m4: Likewise.
113306         * m4/group-member.m4: Likewise.
113307         * m4/jm-macros.m4: Likewise.
113308         * m4/lstat.m4: Likewise.
113309         * m4/malloc.m4: Likewise.
113310         * m4/memcmp.m4: Likewise.
113311         * m4/nanosleep.m4: Likewise.
113312         * m4/putenv.m4: Likewise.
113313         * m4/realloc.m4: Likewise.
113314         * m4/regex.m4: Likewise.
113315         * m4/stat.m4: Likewise.
113316         * m4/strftime.m4: Likewise.
113318 2000-07-02  Jim Meyering  <meyering@lucent.com>
113320         * lib/quotearg.c (mbstate_t): Don't define here.
113322 2000-07-02  Jim Meyering  <meyering@lucent.com>
113324         * lib/nanosleep.c (SIGCONT): Define if not already defined.
113326 2000-07-01  Jim Meyering  <meyering@lucent.com>
113328         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
113330 2000-07-01  Jim Meyering  <meyering@lucent.com>
113332         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
113333         problem.
113335 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
113337         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
113338         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
113340 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
113342         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
113343         per change in ../m4/ls-mntd-fs.m4.
113344         (read_filesystem_list): Ignore symbolic links.
113346 2000-06-29  Jim Meyering  <meyering@lucent.com>
113348         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
113349         for declaration of strcmp.
113351         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
113353         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
113354         Avoid warning by casting result to `char *' to remove `const'.
113356 2000-06-28  Jim Meyering  <meyering@lucent.com>
113358         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
113359         included by quotearg.c, for which we perform this test.  From
113360         Bruno Haible.
113362 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
113364         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
113365         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
113366         <utmpx.h> exists, put readutmp.o into LIBOBJS.
113368 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
113370         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
113372 2000-06-26  Paul Eggert  <eggert@twinsun.com>
113374         savedir now sets errno on failure and invokes xmalloc to get memory.
113375         Fix a couple of other minor bugs while we're at it.
113377         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
113378         (NAMLEN): Remove macro.
113379         (malloc, realloc): Remove decls.
113380         (stpcpy): Likewise.
113381         ("xalloc.h"): Include.
113382         (NAME_SIZE_DEFAULT): New macro.
113383         (savedir): Use xmalloc / xrealloc to allocate memory.
113384         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
113385         Skip "" directory entries.
113386         Use strlen to calculate directory entry length, since the old method
113387         is rarely used these days and isn't worth supporting.
113388         Don't use a pointer after freeing it.
113389         Check for integer overflow when calculating allocation size.
113390         Use memcpy to copy entries, instead of stpcpy.
113391         Set errno properly when returning NULL.
113392         Check for readdir error.
113394 2000-06-26  Jim Meyering  <meyering@lucent.com>
113396         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
113398 2000-06-25  Jim Meyering  <meyering@lucent.com>
113400         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
113401         Linux header bug when _XOPEN_SOURCE is defined to 500.
113403 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
113405         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
113406         deficiency.
113408 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
113410         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
113411         Include xalloc.h.
113412         Don't include <stdlib.h>.  Don't declare malloc, realloc.
113414 2000-06-24  Jim Meyering  <meyering@lucent.com>
113416         * m4/strerror_r.m4: Revive this file -- to try out an experimental
113417         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
113418         for which strerror does return char*, but which lacks a conveniently
113419         accessible declaration of the function.  If the compile-test says
113420         strerror_r doesn't work, then resort to a `run'-test that works on
113421         BeOS and segfaults on DEC Unix.
113423 2000-06-24  Jim Meyering  <meyering@lucent.com>
113425         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
113427 2000-06-23  Paul Eggert  <eggert@twinsun.com>
113429         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
113430         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
113432 2000-06-23  Paul Eggert  <eggert@twinsun.com>
113434         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
113435         (mbrtowc, mbstate_t): Define substitutes if
113436         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
113437         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
113438         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
113440 2000-06-23  Jim Meyering  <meyering@lucent.com>
113442         * m4/afs.m4: Add missing AC_MSG_RESULT.
113443         Reported by Bruno Haible.
113445         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
113446         Suggestion from Bruno Haible.
113448 2000-06-23  Jim Meyering  <meyering@lucent.com>
113450         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
113452 2000-06-21  Jim Meyering  <meyering@lucent.com>
113454         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
113456 2000-06-21  Jim Meyering  <meyering@lucent.com>
113458         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
113459         (noinst_HEADERS): Add getstr.h.
113461         * lib/getline.c (getstr): Move into a separate file.
113462         * lib/getstr.c (getstr): New file, extracted from getline.c, with
113463         the following changes: new parameter, delim2; both delim[12]
113464         parameters have type `int', not `char'.  The latter would lose
113465         with 8-bit delimiters.
113466         * lib/getstr.h: New file.
113468 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
113470         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
113471         than 1024, return a memory chunk of least possible size, instead
113472         of size PATH_MAX + 2. In the loop, increment the size proportionally.
113473         Use free/xmalloc instead of xrealloc to avoid copying for very long
113474         paths.
113476 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
113478         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
113479         the empty string.
113481 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
113483         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
113484         address, not strdup.  Include <stdlib.h> and don't declare free().
113486 2000-06-19  Jim Meyering  <meyering@lucent.com>
113488         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
113490 2000-06-18  Jim Meyering  <meyering@lucent.com>
113492         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
113494         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
113495         `checking whether...' message to be consistent with that of the
113496         lstat test.
113498 2000-06-18  Jim Meyering  <meyering@lucent.com>
113500         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
113501         Besides, these days every porting target provides a mkdir function.
113503         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
113504         needed. (this snippet comes from src/system.h).
113506 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
113508         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
113510 2000-06-15  Paul Eggert  <eggert@twinsun.com>
113512         * lib/human.c (adjust_value): New function.
113513         (human_readable_inexact): Apply rounding style even when
113514         printing approximate values.
113516 2000-06-14  Paul Eggert  <eggert@twinsun.com>
113518         * lib/human.c (human_readable_inexact): Allow an input block
113519         size that is not a multiple of the output block size, and vice versa.
113520         Reported by Piergiorgio Sartor.
113522 2000-06-14  Paul Eggert  <eggert@twinsun.com>
113524         * lib/getdate.y (get_date): Apply relative times after time
113525         zone indicator, not before.  Reported by Todd A. Jacobs.
113527 2000-06-13  Jim Meyering  <meyering@lucent.com>
113529         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
113531         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
113533 2000-06-12  Paul Eggert  <eggert@twinsun.com>
113535         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
113537 2000-06-12  Jim Meyering  <meyering@lucent.com>
113539         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
113540         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
113541         optional argument.
113542         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
113543         the optional argument, `lib'.
113545 2000-06-08  Jim Meyering  <meyering@lucent.com>
113547         * m4/largefile.m4: Remove file (now that it's part of autoconf).
113549 2000-06-04  Paul Eggert  <eggert@twinsun.com>
113551         Rewrite largefile configuration so that we don't need to run
113552         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
113553         AC_CANONICAL_HOST in configure.in -- jmm]
113555         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
113556         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
113557         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
113558         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
113559         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
113560         All uses changed.
113561         Instead of inspecting the output of getconf, try to compile the
113562         test program without and with the macro definition.
113563         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
113564         for getconf.  Instead, check for the needed flags by compiling
113565         test programs.
113567 2000-06-04  Paul Eggert  <eggert@twinsun.com>
113569         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
113571 2000-06-04  Jim Meyering  <meyering@lucent.com>
113573         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
113574         SunOS 4.1.4 for which gid_t is an unsigned type.
113576 2000-06-03  Jim Meyering  <meyering@lucent.com>
113578         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
113579         now that autoconf requires that.
113581         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
113582         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
113583         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
113585 2000-06-03  Jim Meyering  <meyering@lucent.com>
113587         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
113589 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
113591         * m4/glibc21.m4: New file.
113592         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
113594 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
113596         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
113597         newer, don't install charset.alias.
113598         * lib/config.charset: Change the Linux/glibc rules so they become empty
113599         on glibc-2.1 or newer.
113601 2000-06-02  Jim Meyering  <meyering@lucent.com>
113603         * lib/mountlist.c: Back out last change.  Instead, do this...
113604         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
113605         me_dummy member using the same `ignore'-testing code.
113606         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
113607         fs_type strings.
113608         From Mark D. Roth.
113610 2000-05-29  Jim Meyering  <meyering@lucent.com>
113612         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
113613         mounts with the `ignore' attribute.  Based on a patch from
113614         Mark D. Roth.
113616 2000-05-28  Jim Meyering  <meyering@lucent.com>
113618         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
113619         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
113620         * m4/stat.m4: Likewise.
113621         * m4/lstat.m4: Likewise.
113622         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
113624         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
113625         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
113627 2000-05-26  Jim Meyering  <meyering@lucent.com>
113629         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
113631 2000-05-24  Jim Meyering  <meyering@lucent.com>
113633         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
113634         autoconf requires that.
113635         * m4/lib-check.m4: Likewise.
113636         * m4/jm-macros.m4: Likewise.
113637         * m4/strftime.m4: Likewise.
113639         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
113640         AC_CHECK_DECLS, now that autoconf requires that.
113642 2000-05-22  Jim Meyering  <meyering@lucent.com>
113644         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
113645         * m4/lstat.m4: Likewise.
113647 2000-05-22  Jim Meyering  <meyering@lucent.com>
113649         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
113651 2000-05-20  Jim Meyering  <meyering@lucent.com>
113653         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
113654         (jm_PREREQ): Use it.
113656 2000-05-18  Jim Meyering  <meyering@lucent.com>
113658         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
113659         back, too, since it may have been modified by allocate_entry.
113660         (hash_delete): Rewrite to use neither the assignment operator
113661         nor the comma operator in an if-expression.
113663 2000-05-15  Paul Eggert  <eggert@twinsun.com>
113665         * lib/closeout.c:
113666         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
113667         Remove; no longer needed.
113668         "quotearg.h": Add include.
113669         (file_name): Do not bother to explicitly initialize to NULL; it's less
113670         efficient on some hosts.
113671         (close_stdout_status): Remove test as to whether stdout was already
113672         closed; it breaks for the case "echo x | sort >&-".
113673         Quote file name colons.
113674         Do not assume that _("write error") lacks format strings.
113676 2000-05-15  Jim Meyering  <meyering@lucent.com>
113678         * lib/version-etc.c (version_etc_copyright): Update the copyright
113679         string used in all --version output.
113681 2000-05-14  Jim Meyering  <meyering@lucent.com>
113683         * lib/closeout.c (close_stdout_set_file_name): New function.
113684         (close_stdout_status): Use new file-scoped global.
113685         Return right away if fstat says the stdout file descriptor is invalid.
113686         * lib/closeout.h (close_stdout_set_file_name): Declare.
113688 2000-05-10  Jim Meyering  <meyering@lucent.com>
113690         * lib/closeout.c [default_exit_status]: New file-scoped variable.
113691         (close_stdout_set_status): New function.
113692         * lib/closeout.h (close_stdout_set_status): Declare.
113694 2000-05-09  Jim Meyering  <meyering@lucent.com>
113696         * m4/gettext.m4: Rename this...
113697         * m4/libintl.m4: ...to this.
113699 2000-05-08  Jim Meyering  <meyering@lucent.com>
113701         * lib/long-options.c: Don't include closeout.h.
113702         (parse_long_options): Don't call close_stdout for --version.
113704 2000-05-06  Paul Eggert  <eggert@twinsun.com>
113706         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
113707         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
113708         2.1.3 bug.  This avoids a clash when files like regex.c define
113709         _GNU_SOURCE.
113711 2000-05-06  Jim Meyering  <meyering@lucent.com>
113713         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
113714         (AC_REPLACE_FUNCS): Add strnlen.
113716         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
113717         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
113719         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
113720         AC_SEARCH_LIBS call for nanosleep.
113721         (LIB_NANOSLEEP): Set and AC_SUBST.
113723 2000-05-06  Jim Meyering  <meyering@lucent.com>
113725         * lib/strnlen.c: Undefine __strnlen and strnlen.
113726         [!weak_alias]: Define __strnlen to strnlen.
113728         * lib/atexit.c: New file, from libiberty.
113730 2000-05-06  Jim Meyering  <meyering@lucent.com>
113732         * lib/closeout.c (close_stdout_status): Also check for errors on the
113733         stderr stream.
113735 2000-05-05  Jim Meyering  <meyering@lucent.com>
113737         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
113738         AC_SEARCH_LIBS call for clock_gettime.
113739         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
113741         * m4/search-libs.m4: Update from autoconf.
113743         su doesn't work on Solaris 2.6.
113744         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
113745         <shadow.h>.  Reported by Dragos Harabor.
113747 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
113749         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
113750         memcpy instead of xmalloc, xrealloc, path_concat.
113751         (locale_charset): Treat empty environment variables as absent.
113752         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
113754 2000-05-04  Jim Meyering  <meyering@lucent.com>
113756         * lib/getopt.c: Update from glibc.
113757         * lib/obstack.c: Likewise.
113758         * lib/obstack.h: Likewise.
113759         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
113760         file
113762         * lib/regex.h: Likewise.
113763         * lib/strndup.c: Likewise.
113764         * lib/strnlen.c: New file, from glibc.
113766 2000-05-03  Jim Meyering  <meyering@lucent.com>
113768         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
113770 2000-05-02  Paul Eggert  <eggert@twinsun.com>
113772         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
113773         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
113774         compile-time test, rather than inspecting host and OS, to
113775         decide whether to define _LARGEFILE_SOURCE.
113777 2000-05-01  Jim Meyering  <meyering@lucent.com>
113779         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
113781         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
113782         Based on a patch from Bruno Haible.
113784 2000-05-01  Jim Meyering  <meyering@lucent.com>
113786         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
113788 2000-04-29  Jim Meyering  <meyering@lucent.com>
113790         * lib/path-concat.c: Declare strdup only if it's not defined.
113791         * lib/canon-host.c: Likewise.
113793 2000-04-28  Jim Meyering  <meyering@lucent.com>
113795         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
113796         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
113797         is included first, then limits.h is included by locale.h by libintl.h.
113798         From John David Anglin.
113800 2000-04-25  Jim Meyering  <meyering@lucent.com>
113802         * lib/makepath.c (S_IRWXUGO): Define.
113803         (make_path): Always perform explicit chmod if MODE specifies any
113804         of the `special' permission bits.  Prompted by a bug report against
113805         install from Mate Wierdl and Joost van Baal.
113807 2000-04-18  Jim Meyering  <meyering@lucent.com>
113809         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
113810         (jm_PREREQ): Use it.
113812 2000-04-18  Jim Meyering  <meyering@lucent.com>
113814         * lib/README: New file.
113816         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
113817         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
113819 2000-04-17  Jim Meyering  <meyering@lucent.com>
113821         Get it right :-)
113822         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
113823         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
113824         Suggestion from Akim Demaille.
113826 2000-04-17  Jim Meyering  <meyering@lucent.com>
113828         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
113829         the definition of it to rpl_strftime also defined-away the system's
113830         declaration.
113832 2000-04-15  Jim Meyering  <meyering@lucent.com>
113834         Use `C' to denote so-called `contiguous' files, the same way
113835         that tar does.
113836         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
113837         (ftypelet): Use S_ISCTG.
113838         From Michael Deutschmann.
113840 2000-04-14  Jim Meyering  <meyering@lucent.com>
113842         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
113843         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
113844         clobbered.
113846 2000-04-14  Jim Meyering  <meyering@lucent.com>
113848         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
113850 2000-04-13  Jim Meyering  <meyering@lucent.com>
113852         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
113853         AH_VERBATIM to insert required #ifndef into config.h.in.
113854         Suggestion from Akim Demaille.
113856 2000-04-12  Jim Meyering  <meyering@lucent.com>
113858         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
113859         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
113860         Christian Krackowizer.
113862         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
113863         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
113864         (AC_SYS_LARGEFILE): Require.
113865         (AM_C_PROTOTYPES): Require.
113867 2000-04-08  Jim Meyering  <meyering@lucent.com>
113869         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
113870         names don't conflict.  Reported by Eli Zaretskii.
113872 2000-04-07  Jim Meyering  <meyering@lucent.com>
113874         * lib/putenv.c: Move inclusion of errno.h so it follows that of
113875         sys/types.h, to work around system header problems on AIX 3.2.5.
113876         From Bruno Haible.
113878 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
113880         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
113881         bug.  Deal with the different error behavior of Irix iconv.
113883 2000-04-05  Paul Eggert  <eggert@twinsun.com>
113885         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
113886         IRIX if the installer said otherwise.
113888 2000-04-05  Jim Meyering  <meyering@lucent.com>
113890         Portability tweaks required for ultrix4.3.
113891         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
113892         (jm_CHECK_DECLS): Add getutent to the list of functions.
113893         (_jm_DECL_HEADERS): Add utmpx.h.
113894         From John David Anglin.
113896         * m4/strftime.m4: Back out the 2000-04-02 change.
113897         Instead of that change, simply undefine putenv in the test program.
113899 2000-04-05  Jim Meyering  <meyering@lucent.com>
113901         Portability tweaks required for ultrix4.3.
113902         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
113903         getutent.
113904         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
113905         * lib/canon-host.c: Declare strdup.
113906         * lib/path-concat.c: Likewise.
113907         From John David Anglin.
113909 2000-04-04  Jim Meyering  <meyering@lucent.com>
113911         Be more DOS 8.3-friendly.
113912         * lib/ref-add.sin: Renamed from ref-add.sed.in.
113913         * lib/ref-del.sin: Renamed from ref-del.sed.in.
113914         * lib/Makefile.am: Reflect renaming.
113915         Reported by Eli Zaretskii.
113917         Use a temporary file name that won't clash with `charset.alias'
113918         in the DOS 8.3 name space.
113919         * lib/Makefile.am (charset_tmp): Define.
113920         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
113921         (uninstall-local): Likewise.
113922         Reported by Eli Zaretskii.
113924 2000-04-03  Jim Meyering  <meyering@lucent.com>
113926         * m4/gettext.m4: Fix typo in comment.
113928         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
113929         textutils/configure.in).  Suggestion from Paul Eggert.
113930         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
113932 2000-04-02  Paul Eggert  <eggert@twinsun.com>
113934         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
113935         variable in the shell rather than using putenv, which isn't
113936         portable.  This avoids the configure-time inter-test dependency
113937         on the potentially-renamed putenv function.
113939 2000-03-30  Paul Eggert  <eggert@twinsun.com>
113941         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
113942         before checking struct stat.st_blksize, so that
113943         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
113945 2000-03-29  Paul Eggert  <eggert@twinsun.com>
113947         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
113948         since strftime.c uses HAVE_STRFTIME to decide whether to use
113949         the underlying strftime.
113951 2000-03-29  Paul Eggert  <eggert@twinsun.com>
113953         * lib/time/strftime.c (my_strftime): Make sure we call the system
113954         strftime, not ourselves, when invoking the underlying strftime.
113956 2000-03-24  Jim Meyering  <meyering@lucent.com>
113958         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
113959         (charset_alias): Define.
113960         (install-exec-local): Factor out common code.
113961         (uninstall-local): Split lines longer than 80.
113962         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
113963         (SUFFIXES): Define.
113964         (.sed.in.sed): New rule.  Don't redirect directly to $@.
113965         (CLEANFILES): Add ref-add.sed and ref-del.sed.
113967 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
113969         * lib/config.charset: Output a line containing "Packages using this
113970         file".
113971         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
113972         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
113973         ref-del.sed): New rules.
113975 2000-03-17  Jim Meyering  <meyering@lucent.com>
113977         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
113978         Otherwise, include <strings.h>
113980 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
113982         * lib/unicodeio.c (utf8_wctomb): New function.
113983         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
113984         format instead of in UCS-4 with platform dependent endianness.
113986 2000-03-10  Jim Meyering  <meyering@lucent.com>
113988         * m4/lib-check.m4: Look for getspnam in -lgen, too.
113989         From Marco Franzen.
113991 2000-03-07  Paul Eggert  <eggert@twinsun.com>
113993         * lib/savedir.c (savedir): Work even if directory size is
113994         negative; this can happen with some screwy NFS configurations.
113996 2000-03-06  Jim Meyering  <meyering@lucent.com>
113998         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
113999         if it's NULL (because we ran out of memory).  From Bruno Haible.
114001 2000-03-05  Jim Meyering  <meyering@lucent.com>
114003         * lib/localcharset.c ("path-concat.h"): Include.
114004         (get_charset_aliases): Use path_concat instead of ANSI string
114005         concatenation.
114007         * lib/unicodeio.h (PARAMS): Define.
114008         Use it to guard prototype.
114010 2000-03-04  Jim Meyering  <meyering@lucent.com>
114012         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
114013         for lib/localcharset.c.
114015 2000-03-04  Jim Meyering  <meyering@lucent.com>
114017         * lib/Makefile.am (install-exec-local): Create $(libdir) before
114018         installing into it.
114019         (uninstall-local): Uncomment this rule so `make distcheck' works
114020         once again.
114022         * lib/unicodeio.c (<errno.h>): Include it.
114023         (errno): Declare if not defined.
114025         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
114027         * lib/config.charset: New version, incorporating remarks from a linux
114028         i18n mailing list.  From Bruno Haible.
114030 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
114032         * m4/codeset.m4: New file.
114033         * m4/iconv.m4: New file.
114034         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
114036 2000-03-03  Jim Meyering  <meyering@lucent.com>
114038         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
114040 2000-03-02  Jim Meyering  <meyering@lucent.com>
114042         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
114043         the messages come out on separate lines.
114045         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
114046         rather than jm_CHECK_DECLARATIONS.
114047         * m4/decl.m4: Remove now-unused file.
114049         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
114050         geteuid.
114052 2000-03-02  Jim Meyering  <meyering@lucent.com>
114054         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
114056 2000-03-01  Jim Meyering  <meyering@lucent.com>
114058         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
114059         * lib/unicodeio.c: Likewise.
114061 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
114063         * lib/config.charset: New file.
114064         * lib/localcharset.c: New file.
114065         * lib/unicodeio.h, lib/unicodeio.c: New files.
114066         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
114067         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
114068         (noinst_HEADERS): Add unicodeio.h.
114069         (all-local, install-exec-local, charset.alias): New targets.
114071 2000-02-28  Paul Eggert  <eggert@twinsun.com>
114073         * lib/quotearg.c (ALERT_CHAR): New macro.
114074         (quotearg_buffer_restyled): Use it.
114076 2000-02-27  Jim Meyering  <meyering@lucent.com>
114078         * m4/check-decl.m4: Add getenv to the list.
114080 2000-02-27  Jim Meyering  <meyering@lucent.com>
114082         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
114083         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
114085         * lib/backupfile.c: Guard inclusion of stdlib.h with
114086         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
114087         Declare malloc if needed.
114089         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
114090         `#ifndef HAVE_DECL..'
114091         now that autoconf always defines the HAVE_DECL_ symbols.
114092         * lib/human.c: Likewise.
114093         * lib/same.c: Likewise.
114094         * lib/strtoumax.c: Likewise.
114096         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
114097         declaration check was not run.
114098         * lib/hash.c: Likewise.
114099         * lib/human.c: Likewise.
114100         * lib/same.c: Likewise.
114101         * lib/strtoumax.c: Likewise.
114103         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
114104         `.', then first look up the entire `.'-containing string as a login
114105         name.
114107 2000-02-23  Jim Meyering  <meyering@lucent.com>
114109         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
114110         in place of my hack.
114112 2000-02-18  Paul Eggert  <eggert@twinsun.com>
114114         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
114115         (textint): New typedef.
114116         (parser_control): Member year changed from int to textint.
114117         All uses changed.
114118         (YYSTYPE): Removed; replaced by %union with int and textint members.
114119         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
114120         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
114121         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
114122         (tSNUMBER, tUNUMBER): Now of type <textintval>.
114123         (date, number, to_year): Use width of number in digits, not its value,
114124         to determine whether it's a 2-digit year, or a 2-digit time.
114125         (yylex): Store number of digits of numeric tokens.
114126         Reported by John Kendall.
114128         (parser_control): Changed from struct parser_control to typedef (for
114129         consistency).  All uses changed.
114131         (tID): Removed; not used.
114132         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
114134 2000-02-14  Paul Eggert  <eggert@twinsun.com>
114136         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
114137         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
114139 2000-02-12  Jim Meyering  <meyering@lucent.com>
114141         * lib/userspec.c (ISDIGIT): Define it.
114142         (isdigit): Remove definition.
114143         (is_number): Use ISDIGIT, not isdigit.
114144         <libintl.h>: Include.
114145         (_ and N_): Define.
114146         (parse_user_spec): Mark translatable strings.
114148 2000-02-10  Jim Meyering  <meyering@lucent.com>
114150         With these changes, nanosleep.[ch] are finally enough like the other
114151         lib/* replacement files to compile on a few more losing systems.
114153         * lib/nanosleep.h: Don't include config.h.
114154         Remove prototype from declaration of nanosleep.
114155         (PARAMS): Remove now-unneeded definition.
114156         * lib/nanosleep.c: #undef nanosleep.
114157         (rpl_nanosleep): Rename from nanosleep.
114159 2000-02-10  Jim Meyering  <meyering@lucent.com>
114161         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
114162         gnu_nanosleep to rpl_nanosleep.
114164 2000-02-09  Jim Meyering  <meyering@lucent.com>
114166         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
114167         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
114169 2000-02-08  Akim Demaille  <akim@epita.fr>
114171         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
114172         `[' and `]' and remove uses of `changequote'.
114173         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
114174         (AC_SYS_LARGEFILE): Likewise.
114175         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
114176         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
114177         of changequote.
114178         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
114179         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
114180         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
114181         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
114183 2000-02-05  Jim Meyering  <meyering@lucent.com>
114185         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
114186         Remove explicit use of AC_HEADER_TIME.  It is required by
114187         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
114188         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
114189         in autoconf whereby the expansion of the latter ended up preceding
114190         the expansion of its prerequisite, AC_HEADER_TIME.
114191         Reported by Volker Borchert.
114193 2000-02-03  Jim Meyering  <meyering@lucent.com>
114195         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
114197 2000-02-03  Jim Meyering  <meyering@lucent.com>
114199         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
114200         rather than with `#if HAVE_UTMPNAME'.
114202 2000-02-02  Jim Meyering  <meyering@lucent.com>
114204         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
114205         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
114206         Reported by Eli Zaretskii.
114208 2000-02-01  Jim Meyering  <meyering@lucent.com>
114210         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
114212 2000-01-31  Jim Meyering  <meyering@lucent.com>
114214         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
114215         functions.  Add the time.h and sys/time.h headers along with the
114216         AC_REQUIRE'ment of AC_HEADER_TIME.
114218 2000-01-31  Jim Meyering  <meyering@lucent.com>
114220         * lib/nanosleep.h (nanosleep): Guard declaration with
114221         `#if ! HAVE_DECL_NANOSLEEP'.
114222         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
114223         the declaration in that vendor's sys/timers.h.
114224         Reported by Christian Krackowizer.
114226         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
114227         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
114228         (ISPRINT): Likewise.
114229         Reported by Tom Tromey.
114231 2000-01-30  Jim Meyering  <meyering@lucent.com>
114233         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
114235         * m4/prereq.m4 (utmp_includes): Define.
114236         Check for ut_user and ut_name members in both struct utmpx
114237         and struct utmp.
114239 2000-01-30  Jim Meyering  <meyering@lucent.com>
114241         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
114242         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
114243         header files where only utmpx.ut_user is declared.
114245         * lib/readutmp.h (UT_USER): Define.
114247 2000-01-29  Jim Meyering  <meyering@lucent.com>
114249         * m4/lib-check.m4: New file containing library-related checks from
114250         fileutils and sh-utils (textutils had none).
114252 2000-01-28  Jim Meyering  <meyering@lucent.com>
114254         * m4/perl.m4: Change format of warning message to look more like that
114255         from the missing script.  Suggestion from François Pinard.
114257 2000-01-25  Jim Meyering  <meyering@lucent.com>
114259         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
114260         well as time.h in the compile check.
114261         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
114262         Fix typo in cross-compiling case: s/yes/no/.
114264 2000-01-23  Jim Meyering  <meyering@lucent.com>
114266         * m4/jm-macros.m4: Move df-related tests here from
114267         fileutils/configure.in
114269         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
114270         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
114272         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
114273         s/space/ac_fsusage_space/.
114274         (jm_FILE_SYSTEM_USAGE): Take two parameters.
114276         * m4/ftruncate.m4: New file (derived from part of
114277         fileutils/configure.in).
114278         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
114279         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
114281         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
114282         AC_SUBST these here, rather than just in sh-util/configure.in, so
114283         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
114284         all the same.
114285         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
114286         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
114287         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
114288         (AC_SUBST(POW_LIBM)): Likewise.
114289         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
114291 2000-01-23  Jim Meyering  <meyering@lucent.com>
114293         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
114294         obstack.c.
114296 2000-01-22  Jim Meyering  <meyering@lucent.com>
114298         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
114300         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
114302         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
114303         configure.in
114304         (AC_CHECK_HEADERS): Likewise for sh-utils.
114305         (AC_CHECK_HEADERS): Likewise for textutils.
114306         Merge the three lists of headers.
114308         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
114309         from fileutils' configure.in.
114311         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
114312         code. Moved tests into their own function (_jm_DECL_HEADERS) in
114313         check-decl.m4.
114315         * m4/check-decl.m4: Use #if rather than #ifdef.
114316         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
114317         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
114318         (_jm_DECL_HEADERS): Define new function.
114319         (jm_CHECK_DECLARATIONS): Require it.
114321 2000-01-22  Jim Meyering  <meyering@lucent.com>
114323         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
114324         [! HAVE_DECL_STRTOULL]: Declare strtoull.
114325         Required for some AIX systems.  Reported by Christian Krackowizer.
114326         [TESTING] (main): New function.
114328         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
114329         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
114330         letters.
114332         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
114333         iswprint.
114335         * lib/strverscmp.c (ISDIGIT): Define.
114336         (strverscmp): Use ISDIGIT, not isdigit.
114338 2000-01-19  Jim Meyering  <meyering@lucent.com>
114340         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
114341         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
114342         defines `struct timespec' in <sys/time.h>
114344         * m4/c-bs-a.m4: Remove uses of changequote altogether.
114345         Thanks to Akim for explaining.
114347 2000-01-17  Paul Eggert  <eggert@twinsun.com>
114349         * lib/nanosleep.c (nanosleep):
114350         Don't use SA_INTERRUPT to decide whether to call sigaction, as
114351         POSIX.1 doesn't require SA_INTERRUPT and some systems
114352         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
114353         it's been part of POSIX.1 since day 1 (in 1988).
114355 2000-01-17  Jim Meyering  <meyering@lucent.com>
114357         * lib/interlock: Remove unused file.  Reported by François Pinard.
114359 2000-01-16  Paul Eggert  <eggert@twinsun.com>
114361         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
114362         alert, backslash, formfeed, and vertical tab unnecessarily in
114363         shell quoting style.
114365 2000-01-16  Jim Meyering  <meyering@lucent.com>
114367         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
114368         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
114369         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
114370         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
114372 2000-01-16  Jim Meyering  <meyering@lucent.com>
114374         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
114375         because the latter didn't work.
114377 2000-01-15  Jim Meyering  <meyering@lucent.com>
114379         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
114380         (AC_REPLACE_FUNCS): Add memcpy and memset.
114381         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
114382         Add strpbrk.
114383         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
114385 2000-01-12  Jim Meyering  <meyering@lucent.com>
114387         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
114388         (jm_PREREQ): Use it.
114389         (jm_PREREQ_READUTMP): New macro.
114390         (jm_PREREQ): Use it.
114392 2000-01-11  Paul Eggert  <eggert@twinsun.com>
114394         Quote multibyte characters correctly.
114395         * m4/c-bs-a.m4: New file.
114396         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
114397         (jm_PREREQ): Use it.
114399 2000-01-11  Paul Eggert  <eggert@twinsun.com>
114401         * m4/uintmax_t.m4: Port to autoconf 2.13.
114403 2000-01-08  Jim Meyering  <meyering@ascend.com>
114405         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
114406         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
114408 2000-01-04  Jim Meyering  <meyering@ascend.com>
114410         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
114411         jm_STRUCT_DIRENT_D_TYPE.
114412         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
114413         jm_STRUCT_DIRENT_D_INO.
114414         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
114415         jm_STRUCT_UTIMBUF.
114416         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
114417         renamings.
114418         * m4/utime.m4: Likewise.
114420         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
114421         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
114423 2000-01-03  Paul Eggert  <eggert@twinsun.com>
114425         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
114426         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
114428 2000-01-02  Jim Meyering  <meyering@ascend.com>
114430         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
114431         remember if this is necessary.
114433 1999-12-26  Jim Meyering  <meyering@ascend.com>
114435         * m4/jm-macros.m4: Use it here.
114436         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
114438 1999-12-23  Jim Meyering  <meyering@ascend.com>
114440         * m4/jm-macros.m4: Check for clock_gettime (moved from
114441         fileutils/configure.in)
114442         Check for gettimeofday.
114444 1999-12-20  Jim Meyering  <meyering@ascend.com>
114446         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
114447         autoconf-2.14a-1999-12-20.
114449 1999-12-19  Jim Meyering  <meyering@ascend.com>
114451         * m4/lstat-slash.m4: New file.
114452         * m4/jm-macros.m4: Use the new macro:
114453         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
114455 1999-12-07  Jim Meyering  <meyering@ascend.com>
114457         * m4/perl.m4: Require that File::Compare be available, too.
114458         Too many systems seem to lack it.
114460         * m4/strftime.m4: Add checks for most of the cpp macros tested in
114461         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
114463 1999-11-18  Paul Eggert  <eggert@twinsun.com>
114465         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
114466         problem with the QNX 4.25 shell, which doesn't propagate exit
114467         status of failed commands inside shell assignments.
114469 1999-11-17  Jim Meyering  <meyering@ascend.com>
114471         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
114473 1999-11-07  Jim Meyering  <meyering@ascend.com>
114475         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
114477 1999-11-06  Jim Meyering  <meyering@ascend.com>
114479         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
114480         * m4/jm-macros.m4 (jm_MACROS): Use it here.
114482 1999-11-05  Jim Meyering  <meyering@ascend.com>
114484         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
114485         configure.in of textutils, fileutils, and sh-utils into this one
114486         (shared between those packages) file.
114487         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
114488         AC_STRUCT_ST_BLKSIZE.
114490 1999-11-03  Jim Meyering  <meyering@ascend.com>
114492         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
114493         of AC_CHECK_TYPE checks includes unistd.h.
114494         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
114495         Suggestion from Akim Demaille.
114497 1999-10-30  Jim Meyering  <meyering@ascend.com>
114499         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
114500         m4-quoted string.
114501         * m4/ls-mntd-fs.m4: Likewise.
114502         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
114503         * m4/jm-winsz1.m4: Likewise.
114505         * m4/const.m4: Remove file, since the fix made it into the experimental
114506         version of autoconf.
114507         * m4/mktime.m4: Likewise.
114509         * m4/check-type.m4: Remove file, now that the latest version of
114510         AC_CHECK_TYPE takes a third arg to specify additional #includes.
114512         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
114513         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
114514         AC_CHECK_TYPE.
114516 1999-10-04  Jim Meyering  <meyering@ascend.com>
114518         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
114520 1999-09-22  Paul Eggert  <eggert@twinsun.com>
114522         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
114523         2.95.1 bug with HP-UX 10.20.
114525 1999-09-17  Jim Meyering  <meyering@ascend.com>
114527         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
114528         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
114529         due to missing strdup (against sh-utils-2.0).
114531 1999-08-29  Jim Meyering  <meyering@ascend.com>
114533         * m4/jm-macros.m4: Require jm_BISON.
114534         * m4/bison.m4: New file.
114536 1999-08-17  Paul Eggert  <eggert@twinsun.com>
114538         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
114539         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
114541 1999-08-05  Jim Meyering  <meyering@ascend.com>
114543         * m4/getline.m4: Rename test file from conftestdata to conftest.data
114544         to avoid conflicts with `conftest' on 8+3 filesystems.
114545         Suggestion from Eli Zaretskii.
114547 1999-08-04  Jim Meyering  <meyering@ascend.com>
114549         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
114550         fileutils and sh-utils (textutils's getline test was inadequate).
114551         (AM_FUNC_GETLINE): Run this test.
114552         (AC_CHECK_FUNCS): Check for getdelim.
114553         Reported by Bob Proulx.
114555 1999-08-02  Jim Meyering  <meyering@ascend.com>
114557         * m4/jm-macros.m4: Add a comment.
114559 1999-08-01  Paul Eggert  <eggert@twinsun.com>
114561         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
114562         <inttypes.h> defines strtoumax as a macro (and not as a
114563         function).
114565 1999-08-01  Paul Eggert  <eggert@twinsun.com>
114567         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
114568         that we can shift, multiply and divide unsigned long long
114569         values; Ultrix cc can't do it.
114571 1999-08-01  Paul Eggert  <eggert@twinsun.com>
114573         * m4/mktime.m4: New file, which is a preview of what should appear
114574         in the next public autoconf release.
114576 1999-08-01  Paul Eggert  <eggert@twinsun.com>
114578         * m4/lfs.m4: Remove this file.
114579         * m4/largefile.m4: New file.  It contains the old contents of
114580         lfs.m4, except that all names with prefix AC_LFS have been
114581         changed to use the prefix AC_SYS_LARGEFILE instead, to be
114582         compatible with future autoconf versions.  Also, some minor m4
114583         quoting problems have been fixed.
114585 1999-08-01  Paul Eggert  <eggert@twinsun.com>
114587         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
114588         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
114589         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
114590         and simplify the shell code.
114592 1999-08-01  Jim Meyering  <meyering@ascend.com>
114594         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
114595         m4.
114597 1999-07-20  Jim Meyering  <meyering@ascend.com>
114599         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
114601 1999-07-15  Jim Meyering  <meyering@ascend.com>
114603         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
114605 1999-05-22  Jim Meyering  <meyering@ascend.com>
114607         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
114609 1999-05-20  Jim Meyering  <meyering@ascend.com>
114611         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
114612         Add a colon after each `then' in case $4 is empty.
114614 1999-05-16  Jim Meyering  <meyering@ascend.com>
114616         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
114618 1999-05-10  Jim Meyering  <meyering@ascend.com>
114620         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
114622         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
114623         AC_FUNC_MKTIME.
114625 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
114627         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
114629 1999-05-04  Paul Eggert  <eggert@twinsun.com>
114631         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
114632         not CPPFLAGS, so that linking works correctly in IRIX.
114634 1999-04-30  Paul Eggert  <eggert@twinsun.com>
114636         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
114638 1999-04-20  Paul Eggert  <eggert@twinsun.com>
114640         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
114641         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
114642         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
114643         jm_AC_TYPE_UNSIGNED_LONG_LONG.
114644         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
114646         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
114648 1999-04-20  Jim Meyering  <meyering@ascend.com>
114650         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
114651         AC_REPLACE xstroull if necessary.  From Paul Eggert.
114652         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
114654 1999-04-18  Jim Meyering  <meyering@ascend.com>
114656         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
114657         * m4/jm-macros.m4: Use it.
114659 1999-04-06  Jim Meyering  <meyering@ascend.com>
114661         * m4/strftime.m4: Remove test for %f.
114663 1999-03-29  Jim Meyering  <meyering@ascend.com>
114665         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
114666         superset of the AC_TYPE_* checks in the textutils, fileutils,
114667         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
114668         AC_TYPE_PID_T.
114670 1999-03-28  Jim Meyering  <meyering@ascend.com>
114672         * m4/jm-macros.m4: Define GNU_PACKAGE here.
114673         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
114674         replaced e.g., in the *.sh files of the sh-utils.
114676 1999-03-20  Jim Meyering  <meyering@ascend.com>
114678         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
114679         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
114680         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
114682 1999-03-19  Jim Meyering  <meyering@ascend.com>
114684         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
114686 1999-03-12  Jim Meyering  <meyering@ascend.com>
114688         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
114690 1999-03-07  Jim Meyering  <meyering@ascend.com>
114692         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
114693         declared.
114695 1999-02-17  Jim Meyering  <meyering@ascend.com>
114697         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
114698         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
114700 1999-02-07  Jim Meyering  <meyering@ascend.com>
114702         * m4/group-member.m4: New file -- extracted from sh-utils'
114703         configure.in.
114705         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
114706         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
114708 1999-02-06  Jim Meyering  <meyering@ascend.com>
114710         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
114711         * m4/fnmatch.m4: Likewise.
114712         * m4/getgroups.m4: Likewise.
114713         * m4/lstat.m4: Likewise.
114714         * m4/malloc.m4: Likewise.
114715         * m4/putenv.m4: Likewise.
114716         * m4/realloc.m4: Likewise.
114717         * m4/regex.m4: Likewise.
114718         * m4/stat.m4: Likewise.
114719         * m4/strftime.m4: Likewise.
114720         Suggestion from Alain Magloire.
114722         * m4/chown.m4: Use `.$ac_objext', not `.o'.
114723         * m4/fnmatch.m4: Likewise.
114724         * m4/getgroups.m4: Likewise.
114725         * m4/getline.m4: Likewise.
114726         * m4/lstat.m4: Likewise.
114727         * m4/malloc.m4: Likewise.
114728         * m4/memcmp.m4: Likewise.
114729         * m4/putenv.m4: Likewise.
114730         * m4/realloc.m4: Likewise.
114731         * m4/regex.m4: Likewise.
114732         * m4/stat.m4: Likewise.
114733         * m4/strftime.m4: Likewise.
114734         Suggestion from Alain Magloire.
114736         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
114737         an argument.
114739         * m4/regex.m4: Add a run-time Test for proper operation of
114740         re_compile_pattern.
114742 1999-01-31  Jim Meyering  <meyering@ascend.com>
114744         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
114746 1999-01-30  Jim Meyering  <meyering@ascend.com>
114748         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
114750         * m4/jm-mktime.m4: Make this a wrapper around the official
114751         AM_FUNC_MKTIME rather than my private copy, now that the official one
114752         is up to date.
114753         * m4/mktime.m4: Remove file.
114755         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
114756         * m4/uptime.m4: Likewise.
114757         * m4/uintmax_t.m4: Likewise.
114759 1999-01-28  Jim Meyering  <meyering@ascend.com>
114761         * m4/jm-macros.m4: Use jm_AFS.
114762         * m4/afs.m4: New file (from fileutils' configure.in).
114764         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
114765         * m4/chown.m4: Likewise.
114766         * m4/d-ino.m4: Likewise.
114767         * m4/d-type.m4: Likewise.
114768         * m4/fnmatch.m4: Likewise.
114769         * m4/getgroups.m4: Likewise.
114770         * m4/gettext.m4: Likewise.
114771         * m4/jm-mktime.m4: Likewise.
114772         * m4/jm-winsz2.m4: Likewise.
114773         * m4/lcmessage.m4: Likewise.
114774         * m4/ls-mntd-fs.m4: Likewise.
114775         * m4/malloc.m4: Likewise.
114776         * m4/memcmp.m4: Likewise.
114777         * m4/putenv.m4: Likewise.
114778         * m4/realloc.m4: Likewise.
114779         * m4/st_mtim.m4: Likewise.
114780         * m4/strftime.m4: Likewise.
114782 1999-01-16  Jim Meyering  <meyering@ascend.com>
114784         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
114785         (ARGMATCH_DIE_DECL): Define.
114787 1999-01-12  Jim Meyering  <meyering@ascend.com>
114789         * m4/Makefile.am.in: Rewrite to avoid using fmt.
114790         Reported by Lars Hecking.
114792 1999-01-10  Jim Meyering  <meyering@ascend.com>
114794         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
114795         gross kludge.
114796         * m4/inttypes_h.m4: Likewise.
114797         * m4/lstat.m4: Likewise.
114798         * m4/malloc.m4: Likewise.
114799         * m4/readdir.m4: Likewise.
114800         * m4/realloc.m4: Likewise.
114801         * m4/st_dm_mode.m4: Likewise.
114802         * m4/stat.m4: Likewise.
114803         * m4/utimbuf.m4: Likewise.
114804         * m4/utimes.m4: Likewise.
114806         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
114807         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
114808         comments in config.h.in are meaningful.
114810         * m4/jm-macros.m4: Require autoconf-2.13 here.
114812         * m4/regex.m4: By default, don't use the included regex.c on systems
114813         with glibc 2.  Suggestion from Uli Drepper.
114815 1999-01-02  Jim Meyering  <meyering@ascend.com>
114817         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
114819 1998-12-18  Jim Meyering  <meyering@ascend.com>
114821         * m4/Makefile.am.in (Makefile.am): Simplify rule.
114822         Based on a suggestion from Lars Hecking.
114824 1998-11-16  Paul Eggert  <eggert@twinsun.com>
114826         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
114828 1998-11-16  Jim Meyering  <meyering@ascend.com>
114830         * m4/lfs.m4: Double-quote the `uname...` expression.
114832 1998-11-14  Jim Meyering  <meyering@ascend.com>
114834         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
114835         * m4/stat.m4: Likewise.
114837 1998-11-03  Jim Meyering  <meyering@ascend.com>
114839         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
114840         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
114842 1998-10-18  Jim Meyering  <meyering@ascend.com>
114844         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
114846 1998-10-17  Jim Meyering  <meyering@ascend.com>
114848         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
114849         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
114850         calls for those previously hard-coded headers.  Instead, take a new
114851         parameter.
114852         (jm_CHECK_DECLARATIONS): Reflect interface change.
114853         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
114854         (jm_CHECK_DECL_LOCALTIME_R): New macro.
114856         * m4/mktime.m4: Test for spring-forward gap before long-running test.
114858 1998-10-14  Jim Meyering  <meyering@ascend.com>
114860         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
114861         instead of "TZ=America/Vancouver".  From Paul Eggert.
114863 1998-10-11  Jim Meyering  <meyering@ascend.com>
114865         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
114866         This adds a test for a recently added compatibility fix for mktime.c.
114867         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
114869 1998-09-27  Jim Meyering  <meyering@ascend.com>
114871         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
114873         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
114874         ../configure.in, including a change from Gordon Matzigkeit to allow
114875         cross-compiling for the Hurd.
114877         * m4/glibc.m4: New file/macro to test for the GNU C Library
114878         versions 1 and 2.  From Gordon Matzigkeit.
114879         Indent.
114881 1998-09-21  Jim Meyering  <meyering@ascend.com>
114883         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
114885 1998-08-18  Paul Eggert  <eggert@twinsun.com>
114887         Port nanosecond-resolution times to UnixWare 2.1.2 and
114888         pedantic Solaris 2.6.
114890         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
114891         AC_STRUCT_ST_MTIM.
114892         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
114893         Generate name of ns member, instead of just 1 or undef.
114894         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
114896 1998-08-15  Jim Meyering  <meyering@ascend.com>
114898         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
114899         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
114900         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
114901         instead of jm_TYPE_SSIZE_T.
114903 1998-08-12  Jim Meyering  <meyering@ascend.com>
114905         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
114907 1998-08-02  Jim Meyering  <meyering@ascend.com>
114909         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
114910         in acconfig.h manually.
114912 1998-07-31  Paul Eggert  <eggert@twinsun.com>
114914         * m4/st_mtim.m4: New file.
114916 1998-07-28  Jim Meyering  <meyering@ascend.com>
114918         * m4/utimes.m4: Undef stat.
114920 1998-07-25  Jim Meyering  <meyering@ascend.com>
114922         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
114923         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
114925 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
114927         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
114928         uid and gid actually remain unchanged.
114930 1998-07-07  Jim Meyering  <meyering@ascend.com>
114932         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
114934 1998-07-04  Jim Meyering  <meyering@ascend.com>
114936         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
114937         to prove that this macro can be used in packages without regex.c.
114939 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
114941         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
114942         is to be used.
114944 1998-07-03  Jim Meyering  <meyering@ascend.com>
114946         * m4/gettext.m4: Add -lintl if it's found to be necessary.
114948         * m4/gettext.m4: New file -- from gettext-0.10.35.
114949         * m4/lcmessage.m4: Likewise.
114950         * m4/progtest.m4: Likewise.
114952         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
114953         * m4/jm-macros.m4: Require the new macro.
114955 1998-06-29  Jim Meyering  <meyering@ascend.com>
114957         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
114958         for the definition of NGROUPS (used in a system header included
114959         by sys/mount.h).
114961 1998-06-28  Jim Meyering  <meyering@ascend.com>
114963         * m4/ls-mntd-fs.m4: New file.
114964         * m4/fstypename.m4: New file.
114966         * m4/jm-macros.m4: Require the new macro.
114967         * m4/jm-glibc-io.m4: New file.
114969 1998-05-19  Jim Meyering  <meyering@ascend.com>
114971         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
114972         * m4/lchown.m4: New file.
114974         * m4/Makefile.am.in: New file.
114975         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
114977 1998-05-14  Jim Meyering  <meyering@ascend.com>
114979         * m4/Makefile.am (EXTRA_DIST): Add them.
114980         * m4/jm-macros.m4: New file.
114981         * m4/utimbuf.m4: New file.
114983 1998-05-12  Jim Meyering  <meyering@ascend.com>
114985         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
114987 1998-05-11  Jim Meyering  <meyering@ascend.com>
114989         * m4/isc-posix.m4: New file.
114991 1998-05-10  Jim Meyering  <meyering@ascend.com>
114993         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
114995 1998-05-09  Jim Meyering  <meyering@ascend.com>
114997         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
114998         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
114999         with automake.
115001         * m4/ssize_t.m4: New file.
115002         * m4/mktime.m4: Remove file -- the new automake has this now.
115004 1998-04-26  Jim Meyering  <meyering@ascend.com>
115006         * m4/assert.m4: New file.
115007         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
115009 1998-04-05  Jim Meyering  <meyering@ascend.com>
115011         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
115012         (jm_PREREQ): Use it here.
115014 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
115016         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
115017         in acconfig.h.
115019 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
115021         * m4/prereq.m4: New file.
115022         * m4/error.m4: New file.
115023         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
115025 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
115027         * m4/getline.m4: Don't set am_cv_func_working_getline before the
115028         cache-check for the same variable -- that defeated the purpose of
115029         the test; the test program was never run.  This was a problem only
115030         on systems with losing getline functions -- HP-UX 10.20 is one.
115031         Reported by Bjorn Helgaas.
115033 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
115035         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
115037 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
115039         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
115041         * m4/const.m4: New file.  Use an initializer in this declaration
115042         typedef int charset[2]; const charset x;
115043         Reported by Bob Glickstein.
115045 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
115047         * m4/chown.m4: Fix reversed types on -1 args to chown.
115048         From Kaveh Ghazi.
115050 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
115052         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
115053         Add lseek and memchr.
115055         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
115056         T.E.Dickey <dickey@clark.net> said that some older preprocessors
115057         have a 20-character limit on names.
115059 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
115061         * m4/inttypes_h.m4: New file.
115062         * m4/uintmax_t.m4: New file.
115063         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
115066         -----
115068         Local Variables:
115069         coding: utf-8
115070         End:
115072         Copyright (C) 1997-2018 Free Software Foundation, Inc.
115074         Copying and distribution of this file, with or without
115075         modification, are permitted provided the copyright notice
115076         and this notice are preserved.